@maptiler/geocoding-control 1.4.0 → 1.4.2-dev.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/README.md +1 -1
- package/leaflet.js +1 -1
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +1 -1
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +1 -1
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +1 -1
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +1 -1
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +1 -1
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +1 -1
- package/openlayers.umd.js.map +1 -1
- package/package.json +20 -20
- package/react.js +1 -1
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +1 -1
- package/vanilla.js +1 -1
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/leaflet.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(O,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("leaflet")):typeof define=="function"&&define.amd?define(["exports","leaflet"],B):(O=typeof globalThis<"u"?globalThis:O||self,B(O.leafletMaptilerGeocoder={},O.L))})(this,function(O,B){"use strict";var no=Object.defineProperty;var ji=O=>{throw TypeError(O)};var ro=(O,B,K)=>B in O?no(O,B,{enumerable:!0,configurable:!0,writable:!0,value:K}):O[B]=K;var Ft=(O,B,K)=>ro(O,typeof B!="symbol"?B+"":B,K),Zi=(O,B,K)=>B.has(O)||ji("Cannot "+K);var de=(O,B,K)=>(Zi(O,B,"read from private field"),K?K.call(O):B.get(O)),Gt=(O,B,K)=>B.has(O)?ji("Cannot add the same private member more than once"):B instanceof WeakSet?B.add(O):B.set(O,K),dt=(O,B,K,oe)=>(Zi(O,B,"write to private field"),oe?oe.call(O,K):B.set(O,K),K);var ue,Te;function K(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const oe=K(B);function D(){}function Qi(n,e){for(const t in e)n[t]=e[t];return n}function qt(n){return n()}function jt(){return Object.create(null)}function ye(n){n.forEach(qt)}function Zt(n){return typeof n=="function"}function we(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let $e;function J(n,e){return n===e?!0:($e||($e=document.createElement("a")),$e.href=e,n===$e.href)}function Hi(n){return Object.keys(n).length===0}function Vi(n,e,t,i){if(n){const r=Qt(n,e,t,i);return n[0](r)}}function Qt(n,e,t,i){return n[1]&&i?Qi(t.ctx.slice(),n[1](i(e))):t.ctx}function Yi(n,e,t,i){if(n[2]&&i){const r=n[2](i(t));if(e.dirty===void 0)return r;if(typeof r=="object"){const o=[],l=Math.max(e.dirty.length,r.length);for(let s=0;s<l;s+=1)o[s]=e.dirty[s]|r[s];return o}return e.dirty|r}return e.dirty}function Xi(n,e,t,i,r,o){if(r){const l=Qt(e,t,i,o);n.p(l,r)}}function Ki(n){if(n.ctx.length>32){const e=[],t=n.ctx.length/32;for(let i=0;i<t;i++)e[i]=-1;return e}return-1}function Ht(n){return n??""}function T(n,e){n.appendChild(e)}function z(n,e,t){n.insertBefore(e,t||null)}function U(n){n.parentNode&&n.parentNode.removeChild(n)}function A(n){return document.createElement(n)}function ce(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function _e(n){return document.createTextNode(n)}function ie(){return _e(" ")}function Ji(){return _e("")}function ee(n,e,t,i){return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}function $i(n){return function(e){return e.preventDefault(),n.call(this,e)}}function y(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function en(n){return Array.from(n.childNodes)}function Fe(n,e){e=""+e,n.data!==e&&(n.data=e)}function Vt(n,e){n.value=e??""}function se(n,e,t){n.classList.toggle(e,!!t)}function tn(n,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(n,{detail:e,bubbles:t,cancelable:i})}let Ge;function qe(n){Ge=n}function Yt(){if(!Ge)throw new Error("Function called outside component initialization");return Ge}function nn(n){Yt().$$.on_destroy.push(n)}function rn(){const n=Yt();return(e,t,{cancelable:i=!1}={})=>{const r=n.$$.callbacks[e];if(r){const o=tn(e,t,{cancelable:i});return r.slice().forEach(l=>{l.call(n,o)}),!o.defaultPrevented}return!0}}function Xt(n,e){const t=n.$$.callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const Oe=[],ht=[];let We=[];const Kt=[],on=Promise.resolve();let mt=!1;function sn(){mt||(mt=!0,on.then(Jt))}function gt(n){We.push(n)}const yt=new Set;let Ae=0;function Jt(){if(Ae!==0)return;const n=Ge;do{try{for(;Ae<Oe.length;){const e=Oe[Ae];Ae++,qe(e),ln(e.$$)}}catch(e){throw Oe.length=0,Ae=0,e}for(qe(null),Oe.length=0,Ae=0;ht.length;)ht.pop()();for(let e=0;e<We.length;e+=1){const t=We[e];yt.has(t)||(yt.add(t),t())}We.length=0}while(Oe.length);for(;Kt.length;)Kt.pop()();mt=!1,yt.clear(),qe(n)}function ln(n){if(n.fragment!==null){n.update(),ye(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(gt)}}function un(n){const e=[],t=[];We.forEach(i=>n.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),We=e}const et=new Set;let Pe;function tt(){Pe={r:0,c:[],p:Pe}}function it(){Pe.r||ye(Pe.c),Pe=Pe.p}function Q(n,e){n&&n.i&&(et.delete(n),n.i(e))}function X(n,e,t,i){if(n&&n.o){if(et.has(n))return;et.add(n),Pe.c.push(()=>{et.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}function $t(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function an(n,e){X(n,1,1,()=>{e.delete(n.key)})}function cn(n,e,t,i,r,o,l,s,c,u,h,a){let f=n.length,d=o.length,g=f;const p={};for(;g--;)p[n[g].key]=g;const b=[],v=new Map,S=new Map,E=[];for(g=d;g--;){const L=a(r,o,g),w=t(L);let k=l.get(w);k?E.push(()=>k.p(L,e)):(k=u(w,L),k.c()),v.set(w,b[g]=k),w in p&&S.set(w,Math.abs(g-p[w]))}const _=new Set,C=new Set;function x(L){Q(L,1),L.m(s,h),l.set(L.key,L),h=L.first,d--}for(;f&&d;){const L=b[d-1],w=n[f-1],k=L.key,I=w.key;L===w?(h=L.first,f--,d--):v.has(I)?!l.has(k)||_.has(k)?x(L):C.has(I)?f--:S.get(k)>S.get(I)?(C.add(k),x(L)):(_.add(I),f--):(c(w,l),f--)}for(;f--;){const L=n[f];v.has(L.key)||c(L,l)}for(;d;)x(b[d-1]);return ye(E),b}function Ee(n){n&&n.c()}function pe(n,e,t){const{fragment:i,after_update:r}=n.$$;i&&i.m(e,t),gt(()=>{const o=n.$$.on_mount.map(qt).filter(Zt);n.$$.on_destroy?n.$$.on_destroy.push(...o):ye(o),n.$$.on_mount=[]}),r.forEach(gt)}function be(n,e){const t=n.$$;t.fragment!==null&&(un(t.after_update),ye(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function fn(n,e){n.$$.dirty[0]===-1&&(Oe.push(n),sn(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function Le(n,e,t,i,r,o,l=null,s=[-1]){const c=Ge;qe(n);const u=n.$$={fragment:null,ctx:[],props:o,update:D,not_equal:r,bound:jt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:jt(),dirty:s,skip_bound:!1,root:e.target||c.$$.root};l&&l(u.root);let h=!1;if(u.ctx=t?t(n,e.props||{},(a,f,...d)=>{const g=d.length?d[0]:f;return u.ctx&&r(u.ctx[a],u.ctx[a]=g)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](g),h&&fn(n,a)),f}):[],u.update(),h=!0,ye(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const a=en(e.target);u.fragment&&u.fragment.l(a),a.forEach(U)}else u.fragment&&u.fragment.c();e.intro&&Q(n.$$.fragment),pe(n,e.target,e.anchor),Jt()}qe(c)}class Se{constructor(){Ft(this,"$$");Ft(this,"$$set")}$destroy(){be(this,1),this.$destroy=D}$on(e,t){if(!Zt(t))return D;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!Hi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const dn="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(dn);function hn(n){let e,t;return{c(){e=ce("svg"),t=ce("path"),y(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"),y(e,"viewBox","0 0 14 14"),y(e,"width","13"),y(e,"height","13"),y(e,"class","svelte-en2qvf")},m(i,r){z(i,e,r),T(e,t)},p:D,i:D,o:D,d(i){i&&U(e)}}}class ei extends Se{constructor(e){super(),Le(this,e,null,hn,we,{})}}function mn(n){let e,t;return{c(){e=ce("svg"),t=ce("path"),y(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"),y(e,"viewBox","0 0 30 30"),y(e,"fill","none"),y(e,"xmlns","http://www.w3.org/2000/svg"),y(e,"class","svelte-d2loi5")},m(i,r){z(i,e,r),T(e,t)},p:D,i:D,o:D,d(i){i&&U(e)}}}class ti extends Se{constructor(e){super(),Le(this,e,null,mn,we,{})}}function gn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"area.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"area.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function yn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"reverse.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"reverse.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function pn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"poi.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"poi.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function bn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"postal_code.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"postal_code.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function vn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"street.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"street.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function wn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"road.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"road.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function _n(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"housenumber.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"housenumber.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function En(n){let e,t,i,r;return{c(){e=A("img"),J(e.src,t=n[5])||y(e,"src",t),y(e,"alt",n[4]),y(e,"class","svelte-ltkwvy")},m(o,l){z(o,e,l),i||(r=ee(e,"error",n[14]),i=!0)},p(o,l){l&32&&!J(e.src,t=o[5])&&y(e,"src",t),l&16&&y(e,"alt",o[4])},d(o){o&&U(e),i=!1,r()}}}function ii(n){let e,t;return{c(){e=A("span"),t=_e(n[6]),y(e,"class","secondary svelte-ltkwvy")},m(i,r){z(i,e,r),T(e,t)},p(i,r){r&64&&Fe(t,i[6])},d(i){i&&U(e)}}}function Ln(n){let e,t,i,r,o,l,s,c,u,h=(n[7]?n[0].place_name:n[0].place_name.replace(/,.*/,""))+"",a,f,d=n[2]==="always"||n[2]&&!n[0].address&&!n[0].id.startsWith("road.")&&!n[0].id.startsWith("address.")&&!n[0].id.startsWith("postal_code.")&&(!n[0].id.startsWith("poi.")||!n[5])&&!n[7],g,p,b=(n[7]?"":n[0].place_name.replace(/[^,]*,?\s*/,""))+"",v,S,E;function _(w,k){return k&1&&(t=null),k&1&&(i=null),k&1&&(r=null),k&1&&(o=null),w[5]?En:w[0].address?_n:(t==null&&(t=!!w[0].id.startsWith("road.")),t?wn:(i==null&&(i=!!w[0].id.startsWith("address.")),i?vn:(r==null&&(r=!!w[0].id.startsWith("postal_code.")),r?bn:(o==null&&(o=!!w[0].id.startsWith("poi.")),o?pn:w[7]?yn:gn))))}let C=_(n,-1),x=C(n),L=d&&ii(n);return{c(){e=A("li"),x.c(),l=ie(),s=A("span"),c=A("span"),u=A("span"),a=_e(h),f=ie(),L&&L.c(),g=ie(),p=A("span"),v=_e(b),y(u,"class","primary svelte-ltkwvy"),y(c,"class","svelte-ltkwvy"),y(p,"class","line2 svelte-ltkwvy"),y(s,"class","texts svelte-ltkwvy"),y(e,"tabindex","0"),y(e,"data-selected",n[1]),y(e,"class","svelte-ltkwvy"),se(e,"selected",n[1])},m(w,k){z(w,e,k),x.m(e,null),T(e,l),T(e,s),T(s,c),T(c,u),T(u,a),T(c,f),L&&L.m(c,null),T(s,g),T(s,p),T(p,v),S||(E=[ee(e,"mouseenter",n[12]),ee(e,"focus",n[13])],S=!0)},p(w,[k]){C===(C=_(w,k))&&x?x.p(w,k):(x.d(1),x=C(w),x&&(x.c(),x.m(e,l))),k&1&&h!==(h=(w[7]?w[0].place_name:w[0].place_name.replace(/,.*/,""))+"")&&Fe(a,h),k&37&&(d=w[2]==="always"||w[2]&&!w[0].address&&!w[0].id.startsWith("road.")&&!w[0].id.startsWith("address.")&&!w[0].id.startsWith("postal_code.")&&(!w[0].id.startsWith("poi.")||!w[5])&&!w[7]),d?L?L.p(w,k):(L=ii(w),L.c(),L.m(c,null)):L&&(L.d(1),L=null),k&1&&b!==(b=(w[7]?"":w[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Fe(v,b),k&2&&y(e,"data-selected",w[1]),k&2&&se(e,"selected",w[1])},i:D,o:D,d(w){w&&U(e),x.d(),L&&L.d(),S=!1,ye(E)}}}function Sn(n,e,t){var E;let i,r,{feature:o}=e,{selected:l=!1}=e,{showPlaceType:s}=e,{missingIconsCache:c}=e,{iconsBaseUrl:u}=e;const h=(E=o.properties)==null?void 0:E.categories;let a,f,d=0,g=o.place_type[0]==="reverse";function p(){f&&c.add(f),t(10,d++,d)}function b(_){Xt.call(this,n,_)}function v(_){Xt.call(this,n,_)}const S=()=>p();return n.$$set=_=>{"feature"in _&&t(0,o=_.feature),"selected"in _&&t(1,l=_.selected),"showPlaceType"in _&&t(2,s=_.showPlaceType),"missingIconsCache"in _&&t(9,c=_.missingIconsCache),"iconsBaseUrl"in _&&t(3,u=_.iconsBaseUrl)},n.$$.update=()=>{var _,C,x,L;if(n.$$.dirty&3640)do t(11,i--,i),t(4,a=h==null?void 0:h[i]),t(5,f=a?u+a.replace(/ /g,"_")+".svg":void 0);while(i>-1&&(!f||c.has(f)));n.$$.dirty&1&&t(6,r=((C=(_=o.properties)==null?void 0:_.categories)==null?void 0:C.join(", "))??((L=(x=o.properties)==null?void 0:x.place_type_name)==null?void 0:L[0])??o.place_type[0])},t(11,i=(h==null?void 0:h.length)??0),[o,l,s,u,a,f,r,g,p,c,d,i,b,v,S]}class xn extends Se{constructor(e){super(),Le(this,e,Sn,Ln,we,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function Mn(n){let e;return{c(){e=A("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>',y(e,"class","svelte-7cmwmc")},m(t,i){z(t,e,i)},p:D,i:D,o:D,d(t){t&&U(e)}}}class Cn extends Se{constructor(e){super(),Le(this,e,null,Mn,we,{})}}function kn(n){let e,t,i;return{c(){e=ce("svg"),t=ce("path"),y(t,"stroke-width","4"),y(t,"d","M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"),y(t,"class","svelte-gzo3ar"),y(e,"width",i=n[0]==="list"?20:void 0),y(e,"viewBox","0 0 70 85"),y(e,"fill","none"),y(e,"class","svelte-gzo3ar"),se(e,"in-map",n[0]!=="list"),se(e,"list-icon",n[0]==="list")},m(r,o){z(r,e,o),T(e,t)},p(r,[o]){o&1&&i!==(i=r[0]==="list"?20:void 0)&&y(e,"width",i),o&1&&se(e,"in-map",r[0]!=="list"),o&1&&se(e,"list-icon",r[0]==="list")},i:D,o:D,d(r){r&&U(e)}}}function Nn(n,e,t){let{displayIn:i}=e;return n.$$set=r=>{"displayIn"in r&&t(0,i=r.displayIn)},[i]}class Pn extends Se{constructor(e){super(),Le(this,e,Nn,kn,we,{displayIn:0})}}function Tn(n){let e,t;return{c(){e=ce("svg"),t=ce("path"),y(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"),y(e,"viewBox","0 0 60.006 21.412"),y(e,"width","14"),y(e,"height","20"),y(e,"class","svelte-en2qvf")},m(i,r){z(i,e,r),T(e,t)},p:D,i:D,o:D,d(i){i&&U(e)}}}class Rn extends Se{constructor(e){super(),Le(this,e,null,Tn,we,{})}}function In(n){let e,t,i;return{c(){e=ce("svg"),t=ce("circle"),i=ce("path"),y(t,"cx","4.789"),y(t,"cy","4.787"),y(t,"r","3.85"),y(t,"class","svelte-1aq105l"),y(i,"d","M12.063 12.063 7.635 7.635"),y(i,"class","svelte-1aq105l"),y(e,"xmlns","http://www.w3.org/2000/svg"),y(e,"width","13"),y(e,"height","13"),y(e,"viewBox","0 0 13 13"),y(e,"class","svelte-1aq105l")},m(r,o){z(r,e,o),T(e,t),T(e,i)},p:D,i:D,o:D,d(r){r&&U(e)}}}class On extends Se{constructor(e){super(),Le(this,e,null,In,we,{})}}function Wn(n,e,t){const i=e[1],r=e[0],o=i-r;return n===i&&t?n:((n-r)%o+o)%o+r}function je(n){const e=[...n];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 An(n,e,t){const i=n==null?void 0:n.getCenterAndZoom();for(const r of e??[])if(!(i&&(r.minZoom!=null&&r.minZoom>i[0]||r.maxZoom!=null&&r.maxZoom<i[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 o;try{return o=await new Promise((l,s)=>{t.signal.addEventListener("abort",()=>{s(Error("aborted"))}),navigator.geolocation.getCurrentPosition(c=>{l([c.coords.longitude,c.coords.latitude].map(u=>u.toFixed(6)).join(","))},c=>{s(c)},r)}),o}catch{}finally{r.cachedLocationExpiry&&(Ze={time:Date.now(),coords:o})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(i&&r.type==="map-center")return i[1].toFixed(6)+","+i[2].toFixed(6)}}const Bn=/^(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,ni=/^([+-]?[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,})$/,ri=/^(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,oi=/^(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,si=/^(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,li=/^(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 Dn(n){if(!["DMS","DM","DD"].includes(n))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(d=>Number(d.trim())),t=Number(e[0]),i=Number(e[1]),r=Math.abs(t),o=Math.abs(i),l=t>0?"N":"S",s=i>0?"E":"W";let c;n=="DD"&&(c=`${r}° ${l}, ${o}° ${s}`);const u=Math.floor(r),h=Math.floor(o),a=(r-u)*60,f=(o-h)*60;if(n=="DM"){let d=ui(a,3).toFixed(3).padStart(6,"0"),g=ui(f,3).toFixed(3).padStart(6,"0");d.endsWith(".000")&&g.endsWith(".000")&&(d=d.replace(/\.000$/,""),g=g.replace(/\.000$/,"")),c=`${u}° ${d}' ${l}, ${h}° ${g}' ${s}`}if(n=="DMS"){const d=Math.floor(a),g=Math.floor(f);let p=((a-d)*60).toFixed(1).padStart(4,"0"),b=((f-g)*60).toFixed(1).padStart(4,"0");const v=d.toString().padStart(2,"0"),S=g.toString().padStart(2,"0");p.endsWith(".0")&&b.endsWith(".0")&&(p=p.replace(/\.0$/,""),b=b.replace(/\.0$/,"")),c=`${u}° ${v}' ${p}" ${l}, ${h}° ${S}' ${b}" ${s}`}return c}else throw new Error("no decimal coordinates to convert")}function ui(n,e){const t=Math.pow(10,e);return Math.round((n+Number.EPSILON)*t)/t}function pt(n,e){e||(e=5),n=n.replace(/\s+/g," ").trim();let t=null,i=null,r="",o="",l=null,s=[],c=!1;if(Bn.test(n))throw new Error("invalid coordinate value");if(ni.test(n))if(s=ni.exec(n),c=Qe(s),c)t=Math.abs(s[1])+s[2]/60,Number(s[1])<0&&(t*=-1),i=Math.abs(s[3])+s[4]/60,Number(s[3])<0&&(i*=-1),l="DM";else throw new Error("invalid coordinate format");else if(ri.test(n))if(s=ri.exec(n),c=Qe(s),c){if(t=s[2],i=s[6],t.includes(",")&&(t=t.replace(",",".")),i.includes(",")&&(i=i.replace(",",".")),l="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(i))==Number(i))throw new Error("integer only coordinate provided");s[1]?(r=s[1],o=s[5]):s[4]&&(r=s[4],o=s[8])}else throw new Error("invalid decimal coordinate format");else if(oi.test(n))if(s=oi.exec(n),c=Qe(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,l="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[9])),s[11]&&(i+=s[11]/60),s[13]&&(i+=s[13].replace(",",".")/3600),parseInt(s[9])<0&&(i=-1*i),s[1]?(r=s[1],o=s[8]):s[7]&&(r=s[7],o=s[14]);else throw new Error("invalid DMS coordinates format");else if(si.test(n))if(s=si.exec(n),c=Qe(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,l="DM"),s[6]&&(t+=s[6]/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[10])),s[12]&&(i+=s[12]/60),s[14]&&(i+=s[14]/3600),parseInt(s[10])<0&&(i=-1*i),s[1]?(r=s[1],o=s[9]):s[8]&&(r=s[8],o=s[16]);else throw new Error("invalid DMS coordinates format");else if(li.test(n)){if(s=li.exec(n),c=Qe(s),s.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4].replace(",",".")/60,l="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[10])),s[12]&&(i+=s[12].replace(",",".")/60),s[14]&&(i+=s[14].replace(",",".")/3600),parseInt(s[10])<0&&(i=-1*i),s[1]?(r=s[1],o=s[9]):s[8]&&(r=s[8],o=s[16]);else throw new Error("invalid coordinates format")}if(c){if(Math.abs(i)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!o||!r&&o)throw new Error("invalid coordinates value");if(r&&r==o)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),i.toString().includes(",")&&(i=i.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(o)&&i>0&&(i=-1*i);const h=s[0].trim();let a,f;const d=/[,/;\u0020]/g,g=h.match(d);if(g==null){const v=Math.floor(n.length/2);a=h.substring(0,v).trim(),f=h.substring(v).trim()}else{let v;g.length%2==1?v=Math.floor(g.length/2):v=g.length/2-1;let S=0;if(v==0)S=h.indexOf(g[0]),a=h.substring(0,S).trim(),f=h.substring(S+1).trim();else{let E=0,_=0;for(;E<=v;)S=h.indexOf(g[E],_),_=S+1,E++;a=h.substring(0,S).trim(),f=h.substring(S+1).trim()}}const p=a.split(".");if(p.length==2&&p[1]==0&&p[1].length!=2)throw new Error("invalid coordinates format");const b=f.split(".");if(b.length==2&&b[1]==0&&b[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(a)||/^\d+$/.test(f))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),i=Number(Number(i).toFixed(e)),Object.freeze({verbatimCoordinates:h,verbatimLatitude:a,verbatimLongitude:f,decimalLatitude:t,decimalLongitude:i,decimalCoordinates:`${t},${i}`,originalFormat:l,closeEnough:Un,toCoordinateFormat:Dn})}else throw new Error("coordinates pattern match failed")}function Qe(n){if(!isNaN(n[0]))return!1;const e=[...n];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,i=/[eastsouthnorthwest]+/i,r=e.length/2;for(let o=0;o<r;o++){const l=e[o],s=e[o+r],c=t.test(l)&&t.test(s),u=i.test(l)&&i.test(s),h=l==s;if(!(l==null&&s==null)){if(l==null||s==null)return!1;if(c||u||h)continue;return!1}}return!0}function ai(n,e){const t=Math.abs(n-e);return Number(t.toFixed(6))<=1e-5}function Un(n){if(!n)throw new Error("coords must be provided");if(n.includes(",")){const e=n.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return ai(this.decimalLatitude,Number(e[0]))&&ai(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const zn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});pt.to=zn;const Fn=[{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"}],Gn={decimalLatitude:40.123,decimalLongitude:-74.123},qn=[{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}],jn=[{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 Zn(){const n=[];return Fn.forEach(e=>{e.decimalLatitude?n.push(e):n.push({...e,...Gn})}),[...n,...qn,...jn]}const Qn=Zn();pt.formats=Qn.map(n=>n.verbatimCoordinates);const Hn=pt;function ci(n,e,t){const i=n.slice();return i[83]=e[t],i[85]=t,i}function fi(n){let e,t;return e=new Cn({}),{c(){Ee(e.$$.fragment)},m(i,r){pe(e,i,r),t=!0},i(i){t||(Q(e.$$.fragment,i),t=!0)},o(i){X(e.$$.fragment,i),t=!1},d(i){be(e,i)}}}function di(n){let e,t,i,r,o;return t=new Rn({}),{c(){e=A("button"),Ee(t.$$.fragment),y(e,"type","button"),y(e,"title",n[9]),y(e,"class","svelte-qnu791"),se(e,"active",n[0])},m(l,s){z(l,e,s),pe(t,e,null),i=!0,r||(o=ee(e,"click",n[68]),r=!0)},p(l,s){(!i||s[0]&512)&&y(e,"title",l[9]),(!i||s[0]&1)&&se(e,"active",l[0])},i(l){i||(Q(t.$$.fragment,l),i=!0)},o(l){X(t.$$.fragment,l),i=!1},d(l){l&&U(e),be(t),r=!1,o()}}}function Vn(n){let e,t=[],i=new Map,r,o,l,s=$t(n[14]);const c=u=>u[83].id+(u[83].address?","+u[83].address:"");for(let u=0;u<s.length;u+=1){let h=ci(n,s,u),a=c(h);i.set(a,t[u]=hi(a,h))}return{c(){e=A("ul");for(let u=0;u<t.length;u+=1)t[u].c();y(e,"class","svelte-qnu791")},m(u,h){z(u,e,h);for(let a=0;a<t.length;a+=1)t[a]&&t[a].m(e,null);r=!0,o||(l=[ee(e,"mouseleave",n[72]),ee(e,"blur",n[73])],o=!0)},p(u,h){h[0]&17880064&&(s=$t(u[14]),tt(),t=cn(t,h,c,1,u,s,i,e,an,hi,null,ci),it())},i(u){if(!r){for(let h=0;h<s.length;h+=1)Q(t[h]);r=!0}},o(u){for(let h=0;h<t.length;h+=1)X(t[h]);r=!1},d(u){u&&U(e);for(let h=0;h<t.length;h+=1)t[h].d();o=!1,ye(l)}}}function Yn(n){let e,t,i,r,o,l;return t=new ti({}),{c(){e=A("div"),Ee(t.$$.fragment),i=ie(),r=A("div"),o=_e(n[7]),y(r,"class","svelte-qnu791"),y(e,"class","no-results svelte-qnu791")},m(s,c){z(s,e,c),pe(t,e,null),T(e,i),T(e,r),T(r,o),l=!0},p(s,c){(!l||c[0]&128)&&Fe(o,s[7])},i(s){l||(Q(t.$$.fragment,s),l=!0)},o(s){X(t.$$.fragment,s),l=!1},d(s){s&&U(e),be(t)}}}function Xn(n){let e="",t;return{c(){t=_e(e)},m(i,r){z(i,t,r)},p:D,i:D,o:D,d(i){i&&U(t)}}}function Kn(n){let e,t,i,r,o,l,s,c,u,h,a;return t=new ti({}),c=new ei({}),{c(){e=A("div"),Ee(t.$$.fragment),i=ie(),r=A("div"),o=_e(n[6]),l=ie(),s=A("button"),Ee(c.$$.fragment),y(r,"class","svelte-qnu791"),y(s,"class","svelte-qnu791"),y(e,"class","error svelte-qnu791")},m(f,d){z(f,e,d),pe(t,e,null),T(e,i),T(e,r),T(r,o),T(e,l),T(e,s),pe(c,s,null),u=!0,h||(a=ee(s,"click",n[69]),h=!0)},p(f,d){(!u||d[0]&64)&&Fe(o,f[6])},i(f){u||(Q(t.$$.fragment,f),Q(c.$$.fragment,f),u=!0)},o(f){X(t.$$.fragment,f),X(c.$$.fragment,f),u=!1},d(f){f&&U(e),be(t),be(c),h=!1,a()}}}function hi(n,e){let t,i,r;function o(){return e[70](e[85])}function l(){return e[71](e[83])}return i=new xn({props:{feature:e[83],showPlaceType:e[10],selected:e[15]===e[85],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),i.$on("mouseenter",o),i.$on("focus",l),{key:n,first:null,c(){t=Ji(),Ee(i.$$.fragment),this.first=t},m(s,c){z(s,t,c),pe(i,s,c),r=!0},p(s,c){e=s;const u={};c[0]&16384&&(u.feature=e[83]),c[0]&1024&&(u.showPlaceType=e[10]),c[0]&49152&&(u.selected=e[15]===e[85]),c[0]&4096&&(u.iconsBaseUrl=e[12]),i.$set(u)},i(s){r||(Q(i.$$.fragment,s),r=!0)},o(s){X(i.$$.fragment,s),r=!1},d(s){s&&U(t),be(i,s)}}}function Jn(n){let e,t,i,r,o,l,s,c,u,h,a,f,d,g,p,b,v,S,E,_,C,x=!1;o=new On({}),a=new ei({});let L=n[19]&&fi(),w=n[5]===!0&&di(n);const k=n[60].default,I=Vi(k,n,n[59],null),F=[Kn,Xn,Yn,Vn],q=[];function W(M,j){var ne,ae;return M[18]?0:M[16]?((ne=M[14])==null?void 0:ne.length)===0?2:M[16]&&((ae=M[14])!=null&&ae.length)?3:-1:1}return~(b=W(n))&&(v=q[b]=F[b](n)),{c(){e=ie(),t=A("form"),i=A("div"),r=A("button"),Ee(o.$$.fragment),l=ie(),s=A("input"),c=ie(),u=A("div"),h=A("button"),Ee(a.$$.fragment),f=ie(),L&&L.c(),d=ie(),w&&w.c(),g=ie(),I&&I.c(),p=ie(),v&&v.c(),y(r,"class","search-button svelte-qnu791"),y(r,"type","button"),y(s,"placeholder",n[8]),y(s,"aria-label",n[8]),y(s,"class","svelte-qnu791"),y(h,"type","button"),y(h,"title",n[3]),y(h,"class","svelte-qnu791"),y(u,"class","clear-button-container svelte-qnu791"),se(u,"displayable",n[1]!==""),y(i,"class","input-group svelte-qnu791"),y(t,"tabindex","0"),y(t,"class",S=Ht(n[2])+" svelte-qnu791"),se(t,"can-collapse",n[4]&&n[1]==="")},m(M,j){z(M,e,j),z(M,t,j),T(t,i),T(i,r),pe(o,r,null),T(i,l),T(i,s),n[62](s),Vt(s,n[1]),T(i,c),T(i,u),T(u,h),pe(a,h,null),T(u,f),L&&L.m(u,null),T(i,d),w&&w.m(i,null),T(i,g),I&&I.m(i,null),T(t,p),~b&&q[b].m(t,null),E=!0,_||(C=[ee(r,"click",n[61]),ee(s,"input",n[63]),ee(s,"focus",n[64]),ee(s,"blur",n[65]),ee(s,"keydown",n[22]),ee(s,"input",n[66]),ee(h,"click",n[67]),ee(t,"submit",$i(n[21]))],_=!0)},p(M,j){(!E||j[0]&256)&&y(s,"placeholder",M[8]),(!E||j[0]&256)&&y(s,"aria-label",M[8]),j[0]&2&&s.value!==M[1]&&Vt(s,M[1]),(!E||j[0]&8)&&y(h,"title",M[3]),M[19]?L?j[0]&524288&&Q(L,1):(L=fi(),L.c(),Q(L,1),L.m(u,null)):L&&(tt(),X(L,1,1,()=>{L=null}),it()),(!E||j[0]&2)&&se(u,"displayable",M[1]!==""),M[5]===!0?w?(w.p(M,j),j[0]&32&&Q(w,1)):(w=di(M),w.c(),Q(w,1),w.m(i,g)):w&&(tt(),X(w,1,1,()=>{w=null}),it()),I&&I.p&&(!E||j[1]&268435456)&&Xi(I,k,M,M[59],E?Yi(k,M[59],j,null):Ki(M[59]),null);let ne=b;b=W(M),b===ne?~b&&q[b].p(M,j):(v&&(tt(),X(q[ne],1,1,()=>{q[ne]=null}),it()),~b?(v=q[b],v?v.p(M,j):(v=q[b]=F[b](M),v.c()),Q(v,1),v.m(t,null)):v=null),(!E||j[0]&4&&S!==(S=Ht(M[2])+" svelte-qnu791"))&&y(t,"class",S),(!E||j[0]&22)&&se(t,"can-collapse",M[4]&&M[1]==="")},i(M){E||(Q(x),Q(o.$$.fragment,M),Q(a.$$.fragment,M),Q(L),Q(w),Q(I,M),Q(v),E=!0)},o(M){X(x),X(o.$$.fragment,M),X(a.$$.fragment,M),X(L),X(w),X(I,M),X(v),E=!1},d(M){M&&(U(e),U(t)),be(o),n[62](null),be(a),L&&L.d(),w&&w.d(),I&&I.d(M),~b&&q[b].d(),_=!1,ye(C)}}}function $n(n,e,t){let i,{$$slots:r={},$$scope:o}=e;const l={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:s=void 0}=e,{apiKey:c}=e,{bbox:u=void 0}=e,{clearButtonTitle:h="clear"}=e,{clearOnBlur:a=!1}=e,{collapsed:f=!1}=e,{country:d=void 0}=e,{debounceSearch:g=200}=e,{enableReverse:p=!1}=e,{errorMessage:b="Something went wrong…"}=e,{filter:v=()=>!0}=e,{flyTo:S=!0}=e,{fuzzyMatch:E=!0}=e,{language:_=void 0}=e,{limit:C=void 0}=e,{mapController:x=void 0}=e,{minLength:L=2}=e,{noResultsMessage:w="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=e,{placeholder:k="Search"}=e,{proximity:I=[{type:"server-geolocation"}]}=e,{reverseActive:F=p==="always"}=e,{reverseButtonTitle:q="toggle reverse geocoding"}=e,{searchValue:W=""}=e,{showFullGeometry:M=!0}=e,{showPlaceType:j="ifNeeded"}=e,{showResultsWhileTyping:ne=!0}=e,{selectFirst:ae=!0}=e,{flyToSelected:Pt=!1}=e,{markerOnSelected:st=!0}=e,{types:Re=void 0}=e,{excludeTypes:lt=!1}=e,{zoom:De=l}=e,{maxZoom:ut=void 0}=e,{apiUrl:Tt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:Rt={}}=e,{iconsBaseUrl:zi="https://cdn.maptiler.com/maptiler-geocoding-control/v1.4.0/icons/"}=e,{adjustUrlQuery:It=()=>{}}=e;function Ar(){he.focus()}function Br(){he.blur()}function Fi(m,Z=!0,Y=!1){t(1,W=m),Z?(t(15,G=-1),qi()):(Bt(!Y,Y),setTimeout(()=>{he.focus(),he.select()}))}function Dr(){t(14,R=void 0),t(56,N=void 0),t(15,G=-1)}function Ur(){t(55,H=[]),t(56,N=void 0)}let Ue=!1,R,H,N,Gi="",he,G=-1,me,at=[],Ie,ze,ct,Ot;const zr=new Set,Ne=rn();nn(()=>{x&&(x.setEventHandler(void 0),x.indicateReverse(!1),x.setSelectedMarker(-1),x.setMarkers(void 0,void 0))});function qi(m){if(ze&&(clearTimeout(ze),ze=void 0),G>-1&&R)t(56,N=R[G]),t(1,W=N.place_type[0]==="reverse"?N.place_name:N.place_name.replace(/,.*/,"")),t(18,me=void 0),t(55,H=void 0),t(15,G=-1);else if(W){const Z=m||!Wt(W);At(W,{exact:!0}).then(()=>{t(55,H=R),t(56,N=void 0),Z&&Fr()}).catch(Y=>t(18,me=Y))}}function Wt(m){try{return Hn(m,6)}catch{return!1}}async function At(m,{byId:Z=!1,exact:Y=!1}={}){t(18,me=void 0),Ie==null||Ie.abort();const re=new AbortController;t(19,Ie=re);try{const P=Wt(m),V=new URLSearchParams;if(_!==void 0&&V.set("language",Array.isArray(_)?_.join(","):_??""),Re&&V.set("types",Re.join(",")),lt&&V.set("excludeTypes",String(lt)),u&&V.set("bbox",u.map(ft=>ft.toFixed(6)).join(",")),d&&V.set("country",Array.isArray(d)?d.join(","):d),!Z&&!P){const ft=await An(x,I,re);ft&&V.set("proximity",ft),(Y||!ne)&&V.set("autocomplete","false"),V.set("fuzzyMatch",String(E))}C!==void 0&&(!P||(Re==null?void 0:Re.length)===1)&&V.set("limit",String(C)),V.set("key",c),It(V);const ge=Tt+"/"+encodeURIComponent(P?P.decimalLongitude+","+P.decimalLatitude:m)+".json?"+V.toString();if(ge===Gi){Z?(t(14,R=void 0),t(56,N=at[0])):t(14,R=at);return}Gi=ge;const Ut=await fetch(ge,{signal:re.signal,...Rt});if(!Ut.ok)throw new Error(await Ut.text());const zt=await Ut.json();Ne("response",{url:ge,featureCollection:zt}),Z?(t(14,R=void 0),t(56,N=zt.features[0]),at=[N]):(t(14,R=zt.features.filter(v)),P&&R.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]}}),at=R,P&&he.focus())}catch(P){if(P&&typeof P=="object"&&"name"in P&&P.name==="AbortError")return;throw P}finally{re===Ie&&t(19,Ie=void 0)}}function Fr(){var re;if(!(H!=null&&H.length)||!S)return;const m=[180,90,-180,-90],Z=!H.some(P=>!P.matching_text);let Y;for(const P of H){const V=Je(P);if(Y=ut??(Y===void 0?V:V===void 0?Y:Math.max(Y,V)),Z||!P.matching_text)for(const ge of[0,1,2,3])m[ge]=Math[ge<2?"min":"max"](m[ge],((re=P.bbox)==null?void 0:re[ge])??P.center[ge%2])}x&&H.length>0&&(N&&m[0]===m[2]&&m[1]===m[3]?x.flyTo(N.center,Je(N)):x.fitBounds(je(m),50,Y))}function Je(m){var Y;if(!m.bbox||m.bbox[0]!==m.bbox[2]&&m.bbox[1]!==m.bbox[3])return;if(typeof De=="number")return m.id.startsWith("poi.")||m.id.startsWith("address.")?ut:De;const Z=m.id.replace(/\..*/,"");return(Array.isArray((Y=m.properties)==null?void 0:Y.categories)?m.properties.categories.reduce((re,P)=>{const V=De[Z+"."+P];return re===void 0?V:V===void 0?re:Math.max(re,V)},void 0):void 0)??De[Z]}function Gr(m){t(0,F=p==="always"),t(14,R=void 0),t(56,N=void 0),t(15,G=-1),Fi(m[1].toFixed(6)+", "+Wn(m[0],[-180,180],!0).toFixed(6),!1,!0)}function qr(m){if(!R)return;let Z=m.key==="ArrowDown"?1:m.key==="ArrowUp"?-1:0;Z&&(G===(ae?0:-1)&&Z===-1&&t(15,G=R.length),t(15,G+=Z),G>=R.length&&t(15,G=-1),G<0&&ae&&t(15,G=0),m.preventDefault())}function Bt(m=!0,Z=!1){if(t(18,me=void 0),ne||Z){if(ze&&clearTimeout(ze),W.length<L)return;const Y=W;ze=window.setTimeout(()=>{At(Y).catch(re=>t(18,me=re))},m?g:0)}else t(14,R=void 0),t(18,me=void 0)}function Dt(m){t(56,N=m),t(1,W=m.place_name),t(15,G=-1)}const jr=()=>he.focus();function Zr(m){ht[m?"unshift":"push"](()=>{he=m,t(17,he)})}function Qr(){W=this.value,t(1,W),t(13,Ue),t(28,a)}const Hr=()=>t(13,Ue=!0),Vr=()=>t(13,Ue=!1),Yr=()=>Bt(),Xr=()=>{t(1,W=""),he.focus()},Kr=()=>t(0,F=!F),Jr=()=>t(18,me=void 0),$r=m=>t(15,G=m),eo=m=>Dt(m),to=()=>{ae||t(15,G=-1)},io=()=>{};return n.$$set=m=>{"class"in m&&t(2,s=m.class),"apiKey"in m&&t(26,c=m.apiKey),"bbox"in m&&t(27,u=m.bbox),"clearButtonTitle"in m&&t(3,h=m.clearButtonTitle),"clearOnBlur"in m&&t(28,a=m.clearOnBlur),"collapsed"in m&&t(4,f=m.collapsed),"country"in m&&t(29,d=m.country),"debounceSearch"in m&&t(30,g=m.debounceSearch),"enableReverse"in m&&t(5,p=m.enableReverse),"errorMessage"in m&&t(6,b=m.errorMessage),"filter"in m&&t(31,v=m.filter),"flyTo"in m&&t(32,S=m.flyTo),"fuzzyMatch"in m&&t(33,E=m.fuzzyMatch),"language"in m&&t(34,_=m.language),"limit"in m&&t(35,C=m.limit),"mapController"in m&&t(36,x=m.mapController),"minLength"in m&&t(37,L=m.minLength),"noResultsMessage"in m&&t(7,w=m.noResultsMessage),"placeholder"in m&&t(8,k=m.placeholder),"proximity"in m&&t(38,I=m.proximity),"reverseActive"in m&&t(0,F=m.reverseActive),"reverseButtonTitle"in m&&t(9,q=m.reverseButtonTitle),"searchValue"in m&&t(1,W=m.searchValue),"showFullGeometry"in m&&t(39,M=m.showFullGeometry),"showPlaceType"in m&&t(10,j=m.showPlaceType),"showResultsWhileTyping"in m&&t(40,ne=m.showResultsWhileTyping),"selectFirst"in m&&t(11,ae=m.selectFirst),"flyToSelected"in m&&t(41,Pt=m.flyToSelected),"markerOnSelected"in m&&t(42,st=m.markerOnSelected),"types"in m&&t(43,Re=m.types),"excludeTypes"in m&&t(44,lt=m.excludeTypes),"zoom"in m&&t(45,De=m.zoom),"maxZoom"in m&&t(46,ut=m.maxZoom),"apiUrl"in m&&t(47,Tt=m.apiUrl),"fetchParameters"in m&&t(48,Rt=m.fetchParameters),"iconsBaseUrl"in m&&t(12,zi=m.iconsBaseUrl),"adjustUrlQuery"in m&&t(49,It=m.adjustUrlQuery),"$$scope"in m&&t(59,o=m.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&32&&t(0,F=p==="always"),n.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,ct=Ue),a&&!Ue&&t(1,W="")}),n.$$.dirty[0]&16386|n.$$.dirty[1]&64&&W.length<L&&(t(56,N=void 0),t(14,R=void 0),t(18,me=void 0),t(55,H=R)),n.$$.dirty[1]&33554688&&M&&N&&!N.address&&N.geometry.type==="Point"&&N.place_type[0]!=="reverse"&&At(N.id,{byId:!0}).catch(m=>t(18,me=m)),n.$$.dirty[1]&100663330&&(x&&N&&N.id!==Ot&&S&&(!N.bbox||N.bbox[0]===N.bbox[2]&&N.bbox[1]===N.bbox[3]?x.flyTo(N.center,Je(N)):x.fitBounds(je(N.bbox),50,Je(N)),t(14,R=void 0),t(55,H=void 0),t(15,G=-1)),t(57,Ot=N==null?void 0:N.id)),n.$$.dirty[0]&18432&&ae&&R!=null&&R.length&&t(15,G=0),n.$$.dirty[0]&2050&&(ae||t(15,G=-1)),n.$$.dirty[0]&16384|n.$$.dirty[1]&16777216&&H!==R&&t(55,H=void 0),n.$$.dirty[0]&81921|n.$$.dirty[1]&16777248&&x&&x.setEventHandler(m=>{switch(m.type){case"mapClick":F&&Gr(m.coordinates);break;case"markerClick":{const Z=R==null?void 0:R.find(Y=>Y.id===m.id);Z&&Dt(Z)}break;case"markerMouseEnter":H&&t(15,G=ct?(R==null?void 0:R.findIndex(Z=>Z.id===m.id))??-1:-1);break;case"markerMouseLeave":H&&t(15,G=-1);break}}),n.$$.dirty[0]&49152&&t(58,i=R==null?void 0:R[G]),n.$$.dirty[1]&134218786&&x&&i&&S&&Pt&&x.flyTo(i.center,Je(i)),n.$$.dirty[1]&2080&&(st||x==null||x.setMarkers(void 0,void 0)),n.$$.dirty[1]&150997024&&x&&st&&!H&&(x.setMarkers(i?[i]:void 0,void 0),x.setSelectedMarker(i?0:-1)),n.$$.dirty[1]&50331680&&x&&x.setMarkers(H,N),n.$$.dirty[0]&32768|n.$$.dirty[1]&16777248&&H&&x&&x.setSelectedMarker(G),n.$$.dirty[0]&2|n.$$.dirty[1]&32&&x){const m=Wt(W);x.setReverseMarker(m?[m.decimalLongitude,m.decimalLatitude]:void 0)}n.$$.dirty[1]&134217728&&Ne("select",i),n.$$.dirty[1]&33554432&&Ne("pick",N),n.$$.dirty[0]&81920&&Ne("optionsVisibilityChange",ct&&!!R),n.$$.dirty[0]&16384&&Ne("featuresListed",R),n.$$.dirty[1]&16777216&&Ne("featuresMarked",H),n.$$.dirty[0]&1&&Ne("reverseToggle",F),n.$$.dirty[0]&2&&Ne("queryChange",W),n.$$.dirty[0]&1|n.$$.dirty[1]&32&&x&&x.indicateReverse(F)},[F,W,s,h,f,p,b,w,k,q,j,ae,zi,Ue,R,G,ct,he,me,Ie,zr,qi,qr,Bt,Dt,l,c,u,a,d,g,v,S,E,_,C,x,L,I,M,ne,Pt,st,Re,lt,De,ut,Tt,Rt,It,Ar,Br,Fi,Dr,Ur,H,N,Ot,i,o,r,jr,Zr,Qr,Hr,Vr,Yr,Xr,Kr,Jr,$r,eo,to,io]}let er=class extends Se{constructor(e){super(),Le(this,e,$n,Jn,we,{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,showFullGeometry:39,showPlaceType:10,showResultsWhileTyping:40,selectFirst:11,flyToSelected:41,markerOnSelected:42,types:43,excludeTypes:44,zoom:45,maxZoom: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]}};function He(n,e,t={}){const i={type:"Feature"};return(t.id===0||t.id)&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.properties=e||{},i.geometry=n,i}function bt(n,e,t={}){for(const r of n){if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(r[r.length-1].length!==r[0].length)throw new Error("First and last Position are not equivalent.");for(let o=0;o<r[r.length-1].length;o++)if(r[r.length-1][o]!==r[0][o])throw new Error("First and last Position are not equivalent.")}return He({type:"Polygon",coordinates:n},e,t)}function Ve(n,e={}){const t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=n,t}function mi(n,e,t={}){return He({type:"MultiPolygon",coordinates:n},e,t)}function gi(n,e,t){if(n!==null)for(var i,r,o,l,s,c,u,h=0,a=0,f,d=n.type,g=d==="FeatureCollection",p=d==="Feature",b=g?n.features.length:1,v=0;v<b;v++){u=g?n.features[v].geometry:p?n.geometry:n,f=u?u.type==="GeometryCollection":!1,s=f?u.geometries.length:1;for(var S=0;S<s;S++){var E=0,_=0;if(l=f?u.geometries[S]:u,l!==null){c=l.coordinates;var C=l.type;switch(h=0,C){case null:break;case"Point":if(e(c,a,v,E,_)===!1)return!1;a++,E++;break;case"LineString":case"MultiPoint":for(i=0;i<c.length;i++){if(e(c[i],a,v,E,_)===!1)return!1;a++,C==="MultiPoint"&&E++}C==="LineString"&&E++;break;case"Polygon":case"MultiLineString":for(i=0;i<c.length;i++){for(r=0;r<c[i].length-h;r++){if(e(c[i][r],a,v,E,_)===!1)return!1;a++}C==="MultiLineString"&&E++,C==="Polygon"&&_++}C==="Polygon"&&E++;break;case"MultiPolygon":for(i=0;i<c.length;i++){for(_=0,r=0;r<c[i].length;r++){for(o=0;o<c[i][r].length-h;o++){if(e(c[i][r][o],a,v,E,_)===!1)return!1;a++}_++}E++}break;case"GeometryCollection":for(i=0;i<l.geometries.length;i++)if(gi(l.geometries[i],e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function vt(n,e){var t,i,r,o,l,s,c,u,h,a,f=0,d=n.type==="FeatureCollection",g=n.type==="Feature",p=d?n.features.length:1;for(t=0;t<p;t++){for(s=d?n.features[t].geometry:g?n.geometry:n,u=d?n.features[t].properties:g?n.properties:{},h=d?n.features[t].bbox:g?n.bbox:void 0,a=d?n.features[t].id:g?n.id:void 0,c=s?s.type==="GeometryCollection":!1,l=c?s.geometries.length:1,r=0;r<l;r++){if(o=c?s.geometries[r]:s,o===null){if(e(null,f,u,h,a)===!1)return!1;continue}switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(o,f,u,h,a)===!1)return!1;break}case"GeometryCollection":{for(i=0;i<o.geometries.length;i++)if(e(o.geometries[i],f,u,h,a)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}f++}}function tr(n,e){vt(n,function(t,i,r,o,l){var s=t===null?null:t.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return e(He(t,r,{bbox:o,id:l}),i,0)===!1?!1:void 0}var c;switch(s){case"MultiPoint":c="Point";break;case"MultiLineString":c="LineString";break;case"MultiPolygon":c="Polygon";break}for(var u=0;u<t.coordinates.length;u++){var h=t.coordinates[u],a={type:c,coordinates:h};if(e(He(a,r),i,u)===!1)return!1}})}function ir(n,e={}){if(n.bbox!=null&&e.recompute!==!0)return n.bbox;const t=[1/0,1/0,-1/0,-1/0];return gi(n,i=>{t[0]>i[0]&&(t[0]=i[0]),t[1]>i[1]&&(t[1]=i[1]),t[2]<i[0]&&(t[2]=i[0]),t[3]<i[1]&&(t[3]=i[1])}),t}var wt=ir;function nr(n){if(!n)throw new Error("geojson is required");switch(n.type){case"Feature":return yi(n);case"FeatureCollection":return rr(n);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return _t(n);default:throw new Error("unknown GeoJSON type")}}function yi(n){const e={type:"Feature"};return Object.keys(n).forEach(t=>{switch(t){case"type":case"properties":case"geometry":return;default:e[t]=n[t]}}),e.properties=pi(n.properties),n.geometry==null?e.geometry=null:e.geometry=_t(n.geometry),e}function pi(n){const e={};return n&&Object.keys(n).forEach(t=>{const i=n[t];typeof i=="object"?i===null?e[t]=null:Array.isArray(i)?e[t]=i.map(r=>r):e[t]=pi(i):e[t]=i}),e}function rr(n){const e={type:"FeatureCollection"};return Object.keys(n).forEach(t=>{switch(t){case"type":case"features":return;default:e[t]=n[t]}}),e.features=n.features.map(t=>yi(t)),e}function _t(n){const e={type:n.type};return n.bbox&&(e.bbox=n.bbox),n.type==="GeometryCollection"?(e.geometries=n.geometries.map(t=>_t(t)),e):(e.coordinates=bi(n.coordinates),e)}function bi(n){const e=n;return typeof e[0]!="object"?e.slice():e.map(t=>bi(t))}var or=nr;/**
|
|
1
|
+
(function(O,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("leaflet")):typeof define=="function"&&define.amd?define(["exports","leaflet"],B):(O=typeof globalThis<"u"?globalThis:O||self,B(O.leafletMaptilerGeocoder={},O.L))})(this,function(O,B){"use strict";var no=Object.defineProperty;var ji=O=>{throw TypeError(O)};var ro=(O,B,K)=>B in O?no(O,B,{enumerable:!0,configurable:!0,writable:!0,value:K}):O[B]=K;var Ft=(O,B,K)=>ro(O,typeof B!="symbol"?B+"":B,K),Zi=(O,B,K)=>B.has(O)||ji("Cannot "+K);var de=(O,B,K)=>(Zi(O,B,"read from private field"),K?K.call(O):B.get(O)),Gt=(O,B,K)=>B.has(O)?ji("Cannot add the same private member more than once"):B instanceof WeakSet?B.add(O):B.set(O,K),dt=(O,B,K,oe)=>(Zi(O,B,"write to private field"),oe?oe.call(O,K):B.set(O,K),K);var ue,Te;function K(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const oe=K(B);function D(){}function Qi(n,e){for(const t in e)n[t]=e[t];return n}function qt(n){return n()}function jt(){return Object.create(null)}function ye(n){n.forEach(qt)}function Zt(n){return typeof n=="function"}function we(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let $e;function J(n,e){return n===e?!0:($e||($e=document.createElement("a")),$e.href=e,n===$e.href)}function Hi(n){return Object.keys(n).length===0}function Vi(n,e,t,i){if(n){const r=Qt(n,e,t,i);return n[0](r)}}function Qt(n,e,t,i){return n[1]&&i?Qi(t.ctx.slice(),n[1](i(e))):t.ctx}function Yi(n,e,t,i){if(n[2]&&i){const r=n[2](i(t));if(e.dirty===void 0)return r;if(typeof r=="object"){const o=[],l=Math.max(e.dirty.length,r.length);for(let s=0;s<l;s+=1)o[s]=e.dirty[s]|r[s];return o}return e.dirty|r}return e.dirty}function Xi(n,e,t,i,r,o){if(r){const l=Qt(e,t,i,o);n.p(l,r)}}function Ki(n){if(n.ctx.length>32){const e=[],t=n.ctx.length/32;for(let i=0;i<t;i++)e[i]=-1;return e}return-1}function Ht(n){return n??""}function T(n,e){n.appendChild(e)}function z(n,e,t){n.insertBefore(e,t||null)}function U(n){n.parentNode&&n.parentNode.removeChild(n)}function A(n){return document.createElement(n)}function ce(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function _e(n){return document.createTextNode(n)}function ie(){return _e(" ")}function Ji(){return _e("")}function ee(n,e,t,i){return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}function $i(n){return function(e){return e.preventDefault(),n.call(this,e)}}function y(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function en(n){return Array.from(n.childNodes)}function Fe(n,e){e=""+e,n.data!==e&&(n.data=e)}function Vt(n,e){n.value=e??""}function se(n,e,t){n.classList.toggle(e,!!t)}function tn(n,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(n,{detail:e,bubbles:t,cancelable:i})}let Ge;function qe(n){Ge=n}function Yt(){if(!Ge)throw new Error("Function called outside component initialization");return Ge}function nn(n){Yt().$$.on_destroy.push(n)}function rn(){const n=Yt();return(e,t,{cancelable:i=!1}={})=>{const r=n.$$.callbacks[e];if(r){const o=tn(e,t,{cancelable:i});return r.slice().forEach(l=>{l.call(n,o)}),!o.defaultPrevented}return!0}}function Xt(n,e){const t=n.$$.callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const Oe=[],ht=[];let We=[];const Kt=[],on=Promise.resolve();let mt=!1;function sn(){mt||(mt=!0,on.then(Jt))}function gt(n){We.push(n)}const yt=new Set;let Ae=0;function Jt(){if(Ae!==0)return;const n=Ge;do{try{for(;Ae<Oe.length;){const e=Oe[Ae];Ae++,qe(e),ln(e.$$)}}catch(e){throw Oe.length=0,Ae=0,e}for(qe(null),Oe.length=0,Ae=0;ht.length;)ht.pop()();for(let e=0;e<We.length;e+=1){const t=We[e];yt.has(t)||(yt.add(t),t())}We.length=0}while(Oe.length);for(;Kt.length;)Kt.pop()();mt=!1,yt.clear(),qe(n)}function ln(n){if(n.fragment!==null){n.update(),ye(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(gt)}}function un(n){const e=[],t=[];We.forEach(i=>n.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),We=e}const et=new Set;let Pe;function tt(){Pe={r:0,c:[],p:Pe}}function it(){Pe.r||ye(Pe.c),Pe=Pe.p}function Q(n,e){n&&n.i&&(et.delete(n),n.i(e))}function X(n,e,t,i){if(n&&n.o){if(et.has(n))return;et.add(n),Pe.c.push(()=>{et.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}function $t(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function an(n,e){X(n,1,1,()=>{e.delete(n.key)})}function cn(n,e,t,i,r,o,l,s,c,u,h,a){let f=n.length,d=o.length,g=f;const p={};for(;g--;)p[n[g].key]=g;const b=[],v=new Map,S=new Map,E=[];for(g=d;g--;){const L=a(r,o,g),w=t(L);let k=l.get(w);k?E.push(()=>k.p(L,e)):(k=u(w,L),k.c()),v.set(w,b[g]=k),w in p&&S.set(w,Math.abs(g-p[w]))}const _=new Set,C=new Set;function x(L){Q(L,1),L.m(s,h),l.set(L.key,L),h=L.first,d--}for(;f&&d;){const L=b[d-1],w=n[f-1],k=L.key,I=w.key;L===w?(h=L.first,f--,d--):v.has(I)?!l.has(k)||_.has(k)?x(L):C.has(I)?f--:S.get(k)>S.get(I)?(C.add(k),x(L)):(_.add(I),f--):(c(w,l),f--)}for(;f--;){const L=n[f];v.has(L.key)||c(L,l)}for(;d;)x(b[d-1]);return ye(E),b}function Ee(n){n&&n.c()}function pe(n,e,t){const{fragment:i,after_update:r}=n.$$;i&&i.m(e,t),gt(()=>{const o=n.$$.on_mount.map(qt).filter(Zt);n.$$.on_destroy?n.$$.on_destroy.push(...o):ye(o),n.$$.on_mount=[]}),r.forEach(gt)}function be(n,e){const t=n.$$;t.fragment!==null&&(un(t.after_update),ye(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function fn(n,e){n.$$.dirty[0]===-1&&(Oe.push(n),sn(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function Le(n,e,t,i,r,o,l=null,s=[-1]){const c=Ge;qe(n);const u=n.$$={fragment:null,ctx:[],props:o,update:D,not_equal:r,bound:jt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:jt(),dirty:s,skip_bound:!1,root:e.target||c.$$.root};l&&l(u.root);let h=!1;if(u.ctx=t?t(n,e.props||{},(a,f,...d)=>{const g=d.length?d[0]:f;return u.ctx&&r(u.ctx[a],u.ctx[a]=g)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](g),h&&fn(n,a)),f}):[],u.update(),h=!0,ye(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const a=en(e.target);u.fragment&&u.fragment.l(a),a.forEach(U)}else u.fragment&&u.fragment.c();e.intro&&Q(n.$$.fragment),pe(n,e.target,e.anchor),Jt()}qe(c)}class Se{constructor(){Ft(this,"$$");Ft(this,"$$set")}$destroy(){be(this,1),this.$destroy=D}$on(e,t){if(!Zt(t))return D;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!Hi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const dn="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(dn);function hn(n){let e,t;return{c(){e=ce("svg"),t=ce("path"),y(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"),y(e,"viewBox","0 0 14 14"),y(e,"width","13"),y(e,"height","13"),y(e,"class","svelte-en2qvf")},m(i,r){z(i,e,r),T(e,t)},p:D,i:D,o:D,d(i){i&&U(e)}}}class ei extends Se{constructor(e){super(),Le(this,e,null,hn,we,{})}}function mn(n){let e,t;return{c(){e=ce("svg"),t=ce("path"),y(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"),y(e,"viewBox","0 0 30 30"),y(e,"fill","none"),y(e,"xmlns","http://www.w3.org/2000/svg"),y(e,"class","svelte-d2loi5")},m(i,r){z(i,e,r),T(e,t)},p:D,i:D,o:D,d(i){i&&U(e)}}}class ti extends Se{constructor(e){super(),Le(this,e,null,mn,we,{})}}function gn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"area.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"area.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function yn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"reverse.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"reverse.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function pn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"poi.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"poi.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function bn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"postal_code.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"postal_code.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function vn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"street.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"street.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function wn(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"road.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"road.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function _n(n){let e,t;return{c(){e=A("img"),J(e.src,t=n[3]+"housenumber.svg")||y(e,"src",t),y(e,"alt",n[6]),y(e,"class","svelte-ltkwvy")},m(i,r){z(i,e,r)},p(i,r){r&8&&!J(e.src,t=i[3]+"housenumber.svg")&&y(e,"src",t),r&64&&y(e,"alt",i[6])},d(i){i&&U(e)}}}function En(n){let e,t,i,r;return{c(){e=A("img"),J(e.src,t=n[5])||y(e,"src",t),y(e,"alt",n[4]),y(e,"class","svelte-ltkwvy")},m(o,l){z(o,e,l),i||(r=ee(e,"error",n[14]),i=!0)},p(o,l){l&32&&!J(e.src,t=o[5])&&y(e,"src",t),l&16&&y(e,"alt",o[4])},d(o){o&&U(e),i=!1,r()}}}function ii(n){let e,t;return{c(){e=A("span"),t=_e(n[6]),y(e,"class","secondary svelte-ltkwvy")},m(i,r){z(i,e,r),T(e,t)},p(i,r){r&64&&Fe(t,i[6])},d(i){i&&U(e)}}}function Ln(n){let e,t,i,r,o,l,s,c,u,h=(n[7]?n[0].place_name:n[0].place_name.replace(/,.*/,""))+"",a,f,d=n[2]==="always"||n[2]&&!n[0].address&&!n[0].id.startsWith("road.")&&!n[0].id.startsWith("address.")&&!n[0].id.startsWith("postal_code.")&&(!n[0].id.startsWith("poi.")||!n[5])&&!n[7],g,p,b=(n[7]?"":n[0].place_name.replace(/[^,]*,?\s*/,""))+"",v,S,E;function _(w,k){return k&1&&(t=null),k&1&&(i=null),k&1&&(r=null),k&1&&(o=null),w[5]?En:w[0].address?_n:(t==null&&(t=!!w[0].id.startsWith("road.")),t?wn:(i==null&&(i=!!w[0].id.startsWith("address.")),i?vn:(r==null&&(r=!!w[0].id.startsWith("postal_code.")),r?bn:(o==null&&(o=!!w[0].id.startsWith("poi.")),o?pn:w[7]?yn:gn))))}let C=_(n,-1),x=C(n),L=d&&ii(n);return{c(){e=A("li"),x.c(),l=ie(),s=A("span"),c=A("span"),u=A("span"),a=_e(h),f=ie(),L&&L.c(),g=ie(),p=A("span"),v=_e(b),y(u,"class","primary svelte-ltkwvy"),y(c,"class","svelte-ltkwvy"),y(p,"class","line2 svelte-ltkwvy"),y(s,"class","texts svelte-ltkwvy"),y(e,"tabindex","0"),y(e,"data-selected",n[1]),y(e,"class","svelte-ltkwvy"),se(e,"selected",n[1])},m(w,k){z(w,e,k),x.m(e,null),T(e,l),T(e,s),T(s,c),T(c,u),T(u,a),T(c,f),L&&L.m(c,null),T(s,g),T(s,p),T(p,v),S||(E=[ee(e,"mouseenter",n[12]),ee(e,"focus",n[13])],S=!0)},p(w,[k]){C===(C=_(w,k))&&x?x.p(w,k):(x.d(1),x=C(w),x&&(x.c(),x.m(e,l))),k&1&&h!==(h=(w[7]?w[0].place_name:w[0].place_name.replace(/,.*/,""))+"")&&Fe(a,h),k&37&&(d=w[2]==="always"||w[2]&&!w[0].address&&!w[0].id.startsWith("road.")&&!w[0].id.startsWith("address.")&&!w[0].id.startsWith("postal_code.")&&(!w[0].id.startsWith("poi.")||!w[5])&&!w[7]),d?L?L.p(w,k):(L=ii(w),L.c(),L.m(c,null)):L&&(L.d(1),L=null),k&1&&b!==(b=(w[7]?"":w[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Fe(v,b),k&2&&y(e,"data-selected",w[1]),k&2&&se(e,"selected",w[1])},i:D,o:D,d(w){w&&U(e),x.d(),L&&L.d(),S=!1,ye(E)}}}function Sn(n,e,t){var E;let i,r,{feature:o}=e,{selected:l=!1}=e,{showPlaceType:s}=e,{missingIconsCache:c}=e,{iconsBaseUrl:u}=e;const h=(E=o.properties)==null?void 0:E.categories;let a,f,d=0,g=o.place_type[0]==="reverse";function p(){f&&c.add(f),t(10,d++,d)}function b(_){Xt.call(this,n,_)}function v(_){Xt.call(this,n,_)}const S=()=>p();return n.$$set=_=>{"feature"in _&&t(0,o=_.feature),"selected"in _&&t(1,l=_.selected),"showPlaceType"in _&&t(2,s=_.showPlaceType),"missingIconsCache"in _&&t(9,c=_.missingIconsCache),"iconsBaseUrl"in _&&t(3,u=_.iconsBaseUrl)},n.$$.update=()=>{var _,C,x,L;if(n.$$.dirty&3640)do t(11,i--,i),t(4,a=h==null?void 0:h[i]),t(5,f=a?u+a.replace(/ /g,"_")+".svg":void 0);while(i>-1&&(!f||c.has(f)));n.$$.dirty&1&&t(6,r=((C=(_=o.properties)==null?void 0:_.categories)==null?void 0:C.join(", "))??((L=(x=o.properties)==null?void 0:x.place_type_name)==null?void 0:L[0])??o.place_type[0])},t(11,i=(h==null?void 0:h.length)??0),[o,l,s,u,a,f,r,g,p,c,d,i,b,v,S]}class xn extends Se{constructor(e){super(),Le(this,e,Sn,Ln,we,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function Mn(n){let e;return{c(){e=A("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>',y(e,"class","svelte-7cmwmc")},m(t,i){z(t,e,i)},p:D,i:D,o:D,d(t){t&&U(e)}}}class Cn extends Se{constructor(e){super(),Le(this,e,null,Mn,we,{})}}function kn(n){let e,t,i;return{c(){e=ce("svg"),t=ce("path"),y(t,"stroke-width","4"),y(t,"d","M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"),y(t,"class","svelte-gzo3ar"),y(e,"width",i=n[0]==="list"?20:void 0),y(e,"viewBox","0 0 70 85"),y(e,"fill","none"),y(e,"class","svelte-gzo3ar"),se(e,"in-map",n[0]!=="list"),se(e,"list-icon",n[0]==="list")},m(r,o){z(r,e,o),T(e,t)},p(r,[o]){o&1&&i!==(i=r[0]==="list"?20:void 0)&&y(e,"width",i),o&1&&se(e,"in-map",r[0]!=="list"),o&1&&se(e,"list-icon",r[0]==="list")},i:D,o:D,d(r){r&&U(e)}}}function Nn(n,e,t){let{displayIn:i}=e;return n.$$set=r=>{"displayIn"in r&&t(0,i=r.displayIn)},[i]}class Pn extends Se{constructor(e){super(),Le(this,e,Nn,kn,we,{displayIn:0})}}function Tn(n){let e,t;return{c(){e=ce("svg"),t=ce("path"),y(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"),y(e,"viewBox","0 0 60.006 21.412"),y(e,"width","14"),y(e,"height","20"),y(e,"class","svelte-en2qvf")},m(i,r){z(i,e,r),T(e,t)},p:D,i:D,o:D,d(i){i&&U(e)}}}class Rn extends Se{constructor(e){super(),Le(this,e,null,Tn,we,{})}}function In(n){let e,t,i;return{c(){e=ce("svg"),t=ce("circle"),i=ce("path"),y(t,"cx","4.789"),y(t,"cy","4.787"),y(t,"r","3.85"),y(t,"class","svelte-1aq105l"),y(i,"d","M12.063 12.063 7.635 7.635"),y(i,"class","svelte-1aq105l"),y(e,"xmlns","http://www.w3.org/2000/svg"),y(e,"width","13"),y(e,"height","13"),y(e,"viewBox","0 0 13 13"),y(e,"class","svelte-1aq105l")},m(r,o){z(r,e,o),T(e,t),T(e,i)},p:D,i:D,o:D,d(r){r&&U(e)}}}class On extends Se{constructor(e){super(),Le(this,e,null,In,we,{})}}function Wn(n,e,t){const i=e[1],r=e[0],o=i-r;return n===i&&t?n:((n-r)%o+o)%o+r}function je(n){const e=[...n];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 An(n,e,t){const i=n==null?void 0:n.getCenterAndZoom();for(const r of e??[])if(!(i&&(r.minZoom!=null&&r.minZoom>i[0]||r.maxZoom!=null&&r.maxZoom<i[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 o;try{return o=await new Promise((l,s)=>{t.signal.addEventListener("abort",()=>{s(Error("aborted"))}),navigator.geolocation.getCurrentPosition(c=>{l([c.coords.longitude,c.coords.latitude].map(u=>u.toFixed(6)).join(","))},c=>{s(c)},r)}),o}catch{}finally{r.cachedLocationExpiry&&(Ze={time:Date.now(),coords:o})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(i&&r.type==="map-center")return i[1].toFixed(6)+","+i[2].toFixed(6)}}const Bn=/^(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,ni=/^([+-]?[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,})$/,ri=/^(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,oi=/^(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,si=/^(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,li=/^(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 Dn(n){if(!["DMS","DM","DD"].includes(n))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(d=>Number(d.trim())),t=Number(e[0]),i=Number(e[1]),r=Math.abs(t),o=Math.abs(i),l=t>0?"N":"S",s=i>0?"E":"W";let c;n=="DD"&&(c=`${r}° ${l}, ${o}° ${s}`);const u=Math.floor(r),h=Math.floor(o),a=(r-u)*60,f=(o-h)*60;if(n=="DM"){let d=ui(a,3).toFixed(3).padStart(6,"0"),g=ui(f,3).toFixed(3).padStart(6,"0");d.endsWith(".000")&&g.endsWith(".000")&&(d=d.replace(/\.000$/,""),g=g.replace(/\.000$/,"")),c=`${u}° ${d}' ${l}, ${h}° ${g}' ${s}`}if(n=="DMS"){const d=Math.floor(a),g=Math.floor(f);let p=((a-d)*60).toFixed(1).padStart(4,"0"),b=((f-g)*60).toFixed(1).padStart(4,"0");const v=d.toString().padStart(2,"0"),S=g.toString().padStart(2,"0");p.endsWith(".0")&&b.endsWith(".0")&&(p=p.replace(/\.0$/,""),b=b.replace(/\.0$/,"")),c=`${u}° ${v}' ${p}" ${l}, ${h}° ${S}' ${b}" ${s}`}return c}else throw new Error("no decimal coordinates to convert")}function ui(n,e){const t=Math.pow(10,e);return Math.round((n+Number.EPSILON)*t)/t}function pt(n,e){e||(e=5),n=n.replace(/\s+/g," ").trim();let t=null,i=null,r="",o="",l=null,s=[],c=!1;if(Bn.test(n))throw new Error("invalid coordinate value");if(ni.test(n))if(s=ni.exec(n),c=Qe(s),c)t=Math.abs(s[1])+s[2]/60,Number(s[1])<0&&(t*=-1),i=Math.abs(s[3])+s[4]/60,Number(s[3])<0&&(i*=-1),l="DM";else throw new Error("invalid coordinate format");else if(ri.test(n))if(s=ri.exec(n),c=Qe(s),c){if(t=s[2],i=s[6],t.includes(",")&&(t=t.replace(",",".")),i.includes(",")&&(i=i.replace(",",".")),l="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(i))==Number(i))throw new Error("integer only coordinate provided");s[1]?(r=s[1],o=s[5]):s[4]&&(r=s[4],o=s[8])}else throw new Error("invalid decimal coordinate format");else if(oi.test(n))if(s=oi.exec(n),c=Qe(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,l="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[9])),s[11]&&(i+=s[11]/60),s[13]&&(i+=s[13].replace(",",".")/3600),parseInt(s[9])<0&&(i=-1*i),s[1]?(r=s[1],o=s[8]):s[7]&&(r=s[7],o=s[14]);else throw new Error("invalid DMS coordinates format");else if(si.test(n))if(s=si.exec(n),c=Qe(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,l="DM"),s[6]&&(t+=s[6]/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[10])),s[12]&&(i+=s[12]/60),s[14]&&(i+=s[14]/3600),parseInt(s[10])<0&&(i=-1*i),s[1]?(r=s[1],o=s[9]):s[8]&&(r=s[8],o=s[16]);else throw new Error("invalid DMS coordinates format");else if(li.test(n)){if(s=li.exec(n),c=Qe(s),s.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4].replace(",",".")/60,l="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[10])),s[12]&&(i+=s[12].replace(",",".")/60),s[14]&&(i+=s[14].replace(",",".")/3600),parseInt(s[10])<0&&(i=-1*i),s[1]?(r=s[1],o=s[9]):s[8]&&(r=s[8],o=s[16]);else throw new Error("invalid coordinates format")}if(c){if(Math.abs(i)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!o||!r&&o)throw new Error("invalid coordinates value");if(r&&r==o)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),i.toString().includes(",")&&(i=i.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(o)&&i>0&&(i=-1*i);const h=s[0].trim();let a,f;const d=/[,/;\u0020]/g,g=h.match(d);if(g==null){const v=Math.floor(n.length/2);a=h.substring(0,v).trim(),f=h.substring(v).trim()}else{let v;g.length%2==1?v=Math.floor(g.length/2):v=g.length/2-1;let S=0;if(v==0)S=h.indexOf(g[0]),a=h.substring(0,S).trim(),f=h.substring(S+1).trim();else{let E=0,_=0;for(;E<=v;)S=h.indexOf(g[E],_),_=S+1,E++;a=h.substring(0,S).trim(),f=h.substring(S+1).trim()}}const p=a.split(".");if(p.length==2&&p[1]==0&&p[1].length!=2)throw new Error("invalid coordinates format");const b=f.split(".");if(b.length==2&&b[1]==0&&b[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(a)||/^\d+$/.test(f))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),i=Number(Number(i).toFixed(e)),Object.freeze({verbatimCoordinates:h,verbatimLatitude:a,verbatimLongitude:f,decimalLatitude:t,decimalLongitude:i,decimalCoordinates:`${t},${i}`,originalFormat:l,closeEnough:Un,toCoordinateFormat:Dn})}else throw new Error("coordinates pattern match failed")}function Qe(n){if(!isNaN(n[0]))return!1;const e=[...n];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,i=/[eastsouthnorthwest]+/i,r=e.length/2;for(let o=0;o<r;o++){const l=e[o],s=e[o+r],c=t.test(l)&&t.test(s),u=i.test(l)&&i.test(s),h=l==s;if(!(l==null&&s==null)){if(l==null||s==null)return!1;if(c||u||h)continue;return!1}}return!0}function ai(n,e){const t=Math.abs(n-e);return Number(t.toFixed(6))<=1e-5}function Un(n){if(!n)throw new Error("coords must be provided");if(n.includes(",")){const e=n.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return ai(this.decimalLatitude,Number(e[0]))&&ai(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const zn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});pt.to=zn;const Fn=[{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"}],Gn={decimalLatitude:40.123,decimalLongitude:-74.123},qn=[{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}],jn=[{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 Zn(){const n=[];return Fn.forEach(e=>{e.decimalLatitude?n.push(e):n.push({...e,...Gn})}),[...n,...qn,...jn]}const Qn=Zn();pt.formats=Qn.map(n=>n.verbatimCoordinates);const Hn=pt;function ci(n,e,t){const i=n.slice();return i[83]=e[t],i[85]=t,i}function fi(n){let e,t;return e=new Cn({}),{c(){Ee(e.$$.fragment)},m(i,r){pe(e,i,r),t=!0},i(i){t||(Q(e.$$.fragment,i),t=!0)},o(i){X(e.$$.fragment,i),t=!1},d(i){be(e,i)}}}function di(n){let e,t,i,r,o;return t=new Rn({}),{c(){e=A("button"),Ee(t.$$.fragment),y(e,"type","button"),y(e,"title",n[9]),y(e,"class","svelte-qnu791"),se(e,"active",n[0])},m(l,s){z(l,e,s),pe(t,e,null),i=!0,r||(o=ee(e,"click",n[68]),r=!0)},p(l,s){(!i||s[0]&512)&&y(e,"title",l[9]),(!i||s[0]&1)&&se(e,"active",l[0])},i(l){i||(Q(t.$$.fragment,l),i=!0)},o(l){X(t.$$.fragment,l),i=!1},d(l){l&&U(e),be(t),r=!1,o()}}}function Vn(n){let e,t=[],i=new Map,r,o,l,s=$t(n[14]);const c=u=>u[83].id+(u[83].address?","+u[83].address:"");for(let u=0;u<s.length;u+=1){let h=ci(n,s,u),a=c(h);i.set(a,t[u]=hi(a,h))}return{c(){e=A("ul");for(let u=0;u<t.length;u+=1)t[u].c();y(e,"class","svelte-qnu791")},m(u,h){z(u,e,h);for(let a=0;a<t.length;a+=1)t[a]&&t[a].m(e,null);r=!0,o||(l=[ee(e,"mouseleave",n[72]),ee(e,"blur",n[73])],o=!0)},p(u,h){h[0]&17880064&&(s=$t(u[14]),tt(),t=cn(t,h,c,1,u,s,i,e,an,hi,null,ci),it())},i(u){if(!r){for(let h=0;h<s.length;h+=1)Q(t[h]);r=!0}},o(u){for(let h=0;h<t.length;h+=1)X(t[h]);r=!1},d(u){u&&U(e);for(let h=0;h<t.length;h+=1)t[h].d();o=!1,ye(l)}}}function Yn(n){let e,t,i,r,o,l;return t=new ti({}),{c(){e=A("div"),Ee(t.$$.fragment),i=ie(),r=A("div"),o=_e(n[7]),y(r,"class","svelte-qnu791"),y(e,"class","no-results svelte-qnu791")},m(s,c){z(s,e,c),pe(t,e,null),T(e,i),T(e,r),T(r,o),l=!0},p(s,c){(!l||c[0]&128)&&Fe(o,s[7])},i(s){l||(Q(t.$$.fragment,s),l=!0)},o(s){X(t.$$.fragment,s),l=!1},d(s){s&&U(e),be(t)}}}function Xn(n){let e="",t;return{c(){t=_e(e)},m(i,r){z(i,t,r)},p:D,i:D,o:D,d(i){i&&U(t)}}}function Kn(n){let e,t,i,r,o,l,s,c,u,h,a;return t=new ti({}),c=new ei({}),{c(){e=A("div"),Ee(t.$$.fragment),i=ie(),r=A("div"),o=_e(n[6]),l=ie(),s=A("button"),Ee(c.$$.fragment),y(r,"class","svelte-qnu791"),y(s,"class","svelte-qnu791"),y(e,"class","error svelte-qnu791")},m(f,d){z(f,e,d),pe(t,e,null),T(e,i),T(e,r),T(r,o),T(e,l),T(e,s),pe(c,s,null),u=!0,h||(a=ee(s,"click",n[69]),h=!0)},p(f,d){(!u||d[0]&64)&&Fe(o,f[6])},i(f){u||(Q(t.$$.fragment,f),Q(c.$$.fragment,f),u=!0)},o(f){X(t.$$.fragment,f),X(c.$$.fragment,f),u=!1},d(f){f&&U(e),be(t),be(c),h=!1,a()}}}function hi(n,e){let t,i,r;function o(){return e[70](e[85])}function l(){return e[71](e[83])}return i=new xn({props:{feature:e[83],showPlaceType:e[10],selected:e[15]===e[85],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),i.$on("mouseenter",o),i.$on("focus",l),{key:n,first:null,c(){t=Ji(),Ee(i.$$.fragment),this.first=t},m(s,c){z(s,t,c),pe(i,s,c),r=!0},p(s,c){e=s;const u={};c[0]&16384&&(u.feature=e[83]),c[0]&1024&&(u.showPlaceType=e[10]),c[0]&49152&&(u.selected=e[15]===e[85]),c[0]&4096&&(u.iconsBaseUrl=e[12]),i.$set(u)},i(s){r||(Q(i.$$.fragment,s),r=!0)},o(s){X(i.$$.fragment,s),r=!1},d(s){s&&U(t),be(i,s)}}}function Jn(n){let e,t,i,r,o,l,s,c,u,h,a,f,d,g,p,b,v,S,E,_,C,x=!1;o=new On({}),a=new ei({});let L=n[19]&&fi(),w=n[5]===!0&&di(n);const k=n[60].default,I=Vi(k,n,n[59],null),F=[Kn,Xn,Yn,Vn],q=[];function W(M,j){var ne,ae;return M[18]?0:M[16]?((ne=M[14])==null?void 0:ne.length)===0?2:M[16]&&((ae=M[14])!=null&&ae.length)?3:-1:1}return~(b=W(n))&&(v=q[b]=F[b](n)),{c(){e=ie(),t=A("form"),i=A("div"),r=A("button"),Ee(o.$$.fragment),l=ie(),s=A("input"),c=ie(),u=A("div"),h=A("button"),Ee(a.$$.fragment),f=ie(),L&&L.c(),d=ie(),w&&w.c(),g=ie(),I&&I.c(),p=ie(),v&&v.c(),y(r,"class","search-button svelte-qnu791"),y(r,"type","button"),y(s,"placeholder",n[8]),y(s,"aria-label",n[8]),y(s,"class","svelte-qnu791"),y(h,"type","button"),y(h,"title",n[3]),y(h,"class","svelte-qnu791"),y(u,"class","clear-button-container svelte-qnu791"),se(u,"displayable",n[1]!==""),y(i,"class","input-group svelte-qnu791"),y(t,"tabindex","0"),y(t,"class",S=Ht(n[2])+" svelte-qnu791"),se(t,"can-collapse",n[4]&&n[1]==="")},m(M,j){z(M,e,j),z(M,t,j),T(t,i),T(i,r),pe(o,r,null),T(i,l),T(i,s),n[62](s),Vt(s,n[1]),T(i,c),T(i,u),T(u,h),pe(a,h,null),T(u,f),L&&L.m(u,null),T(i,d),w&&w.m(i,null),T(i,g),I&&I.m(i,null),T(t,p),~b&&q[b].m(t,null),E=!0,_||(C=[ee(r,"click",n[61]),ee(s,"input",n[63]),ee(s,"focus",n[64]),ee(s,"blur",n[65]),ee(s,"keydown",n[22]),ee(s,"input",n[66]),ee(h,"click",n[67]),ee(t,"submit",$i(n[21]))],_=!0)},p(M,j){(!E||j[0]&256)&&y(s,"placeholder",M[8]),(!E||j[0]&256)&&y(s,"aria-label",M[8]),j[0]&2&&s.value!==M[1]&&Vt(s,M[1]),(!E||j[0]&8)&&y(h,"title",M[3]),M[19]?L?j[0]&524288&&Q(L,1):(L=fi(),L.c(),Q(L,1),L.m(u,null)):L&&(tt(),X(L,1,1,()=>{L=null}),it()),(!E||j[0]&2)&&se(u,"displayable",M[1]!==""),M[5]===!0?w?(w.p(M,j),j[0]&32&&Q(w,1)):(w=di(M),w.c(),Q(w,1),w.m(i,g)):w&&(tt(),X(w,1,1,()=>{w=null}),it()),I&&I.p&&(!E||j[1]&268435456)&&Xi(I,k,M,M[59],E?Yi(k,M[59],j,null):Ki(M[59]),null);let ne=b;b=W(M),b===ne?~b&&q[b].p(M,j):(v&&(tt(),X(q[ne],1,1,()=>{q[ne]=null}),it()),~b?(v=q[b],v?v.p(M,j):(v=q[b]=F[b](M),v.c()),Q(v,1),v.m(t,null)):v=null),(!E||j[0]&4&&S!==(S=Ht(M[2])+" svelte-qnu791"))&&y(t,"class",S),(!E||j[0]&22)&&se(t,"can-collapse",M[4]&&M[1]==="")},i(M){E||(Q(x),Q(o.$$.fragment,M),Q(a.$$.fragment,M),Q(L),Q(w),Q(I,M),Q(v),E=!0)},o(M){X(x),X(o.$$.fragment,M),X(a.$$.fragment,M),X(L),X(w),X(I,M),X(v),E=!1},d(M){M&&(U(e),U(t)),be(o),n[62](null),be(a),L&&L.d(),w&&w.d(),I&&I.d(M),~b&&q[b].d(),_=!1,ye(C)}}}function $n(n,e,t){let i,{$$slots:r={},$$scope:o}=e;const l={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:s=void 0}=e,{apiKey:c}=e,{bbox:u=void 0}=e,{clearButtonTitle:h="clear"}=e,{clearOnBlur:a=!1}=e,{collapsed:f=!1}=e,{country:d=void 0}=e,{debounceSearch:g=200}=e,{enableReverse:p=!1}=e,{errorMessage:b="Something went wrong…"}=e,{filter:v=()=>!0}=e,{flyTo:S=!0}=e,{fuzzyMatch:E=!0}=e,{language:_=void 0}=e,{limit:C=void 0}=e,{mapController:x=void 0}=e,{minLength:L=2}=e,{noResultsMessage:w="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=e,{placeholder:k="Search"}=e,{proximity:I=[{type:"server-geolocation"}]}=e,{reverseActive:F=p==="always"}=e,{reverseButtonTitle:q="toggle reverse geocoding"}=e,{searchValue:W=""}=e,{showFullGeometry:M=!0}=e,{showPlaceType:j="ifNeeded"}=e,{showResultsWhileTyping:ne=!0}=e,{selectFirst:ae=!0}=e,{flyToSelected:Pt=!1}=e,{markerOnSelected:st=!0}=e,{types:Re=void 0}=e,{excludeTypes:lt=!1}=e,{zoom:De=l}=e,{maxZoom:ut=void 0}=e,{apiUrl:Tt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:Rt={}}=e,{iconsBaseUrl:zi="https://cdn.maptiler.com/maptiler-geocoding-control/v1.4.2-dev.1/icons/"}=e,{adjustUrlQuery:It=()=>{}}=e;function Ar(){he.focus()}function Br(){he.blur()}function Fi(m,Z=!0,Y=!1){t(1,W=m),Z?(t(15,G=-1),qi()):(Bt(!Y,Y),setTimeout(()=>{he.focus(),he.select()}))}function Dr(){t(14,R=void 0),t(56,N=void 0),t(15,G=-1)}function Ur(){t(55,H=[]),t(56,N=void 0)}let Ue=!1,R,H,N,Gi="",he,G=-1,me,at=[],Ie,ze,ct,Ot;const zr=new Set,Ne=rn();nn(()=>{x&&(x.setEventHandler(void 0),x.indicateReverse(!1),x.setSelectedMarker(-1),x.setMarkers(void 0,void 0))});function qi(m){if(ze&&(clearTimeout(ze),ze=void 0),G>-1&&R)t(56,N=R[G]),t(1,W=N.place_type[0]==="reverse"?N.place_name:N.place_name.replace(/,.*/,"")),t(18,me=void 0),t(55,H=void 0),t(15,G=-1);else if(W){const Z=m||!Wt(W);At(W,{exact:!0}).then(()=>{t(55,H=R),t(56,N=void 0),Z&&Fr()}).catch(Y=>t(18,me=Y))}}function Wt(m){try{return Hn(m,6)}catch{return!1}}async function At(m,{byId:Z=!1,exact:Y=!1}={}){t(18,me=void 0),Ie==null||Ie.abort();const re=new AbortController;t(19,Ie=re);try{const P=Wt(m),V=new URLSearchParams;if(_!==void 0&&V.set("language",Array.isArray(_)?_.join(","):_??""),Re&&V.set("types",Re.join(",")),lt&&V.set("excludeTypes",String(lt)),u&&V.set("bbox",u.map(ft=>ft.toFixed(6)).join(",")),d&&V.set("country",Array.isArray(d)?d.join(","):d),!Z&&!P){const ft=await An(x,I,re);ft&&V.set("proximity",ft),(Y||!ne)&&V.set("autocomplete","false"),V.set("fuzzyMatch",String(E))}C!==void 0&&(!P||(Re==null?void 0:Re.length)===1)&&V.set("limit",String(C)),V.set("key",c),It(V);const ge=Tt+"/"+encodeURIComponent(P?P.decimalLongitude+","+P.decimalLatitude:m)+".json?"+V.toString();if(ge===Gi){Z?(t(14,R=void 0),t(56,N=at[0])):t(14,R=at);return}Gi=ge;const Ut=await fetch(ge,{signal:re.signal,...Rt});if(!Ut.ok)throw new Error(await Ut.text());const zt=await Ut.json();Ne("response",{url:ge,featureCollection:zt}),Z?(t(14,R=void 0),t(56,N=zt.features[0]),at=[N]):(t(14,R=zt.features.filter(v)),P&&R.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]}}),at=R,P&&he.focus())}catch(P){if(P&&typeof P=="object"&&"name"in P&&P.name==="AbortError")return;throw P}finally{re===Ie&&t(19,Ie=void 0)}}function Fr(){var re;if(!(H!=null&&H.length)||!S)return;const m=[180,90,-180,-90],Z=!H.some(P=>!P.matching_text);let Y;for(const P of H){const V=Je(P);if(Y=ut??(Y===void 0?V:V===void 0?Y:Math.max(Y,V)),Z||!P.matching_text)for(const ge of[0,1,2,3])m[ge]=Math[ge<2?"min":"max"](m[ge],((re=P.bbox)==null?void 0:re[ge])??P.center[ge%2])}x&&H.length>0&&(N&&m[0]===m[2]&&m[1]===m[3]?x.flyTo(N.center,Je(N)):x.fitBounds(je(m),50,Y))}function Je(m){var Y;if(!m.bbox||m.bbox[0]!==m.bbox[2]&&m.bbox[1]!==m.bbox[3])return;if(typeof De=="number")return m.id.startsWith("poi.")||m.id.startsWith("address.")?ut:De;const Z=m.id.replace(/\..*/,"");return(Array.isArray((Y=m.properties)==null?void 0:Y.categories)?m.properties.categories.reduce((re,P)=>{const V=De[Z+"."+P];return re===void 0?V:V===void 0?re:Math.max(re,V)},void 0):void 0)??De[Z]}function Gr(m){t(0,F=p==="always"),t(14,R=void 0),t(56,N=void 0),t(15,G=-1),Fi(m[1].toFixed(6)+", "+Wn(m[0],[-180,180],!0).toFixed(6),!1,!0)}function qr(m){if(!R)return;let Z=m.key==="ArrowDown"?1:m.key==="ArrowUp"?-1:0;Z&&(G===(ae?0:-1)&&Z===-1&&t(15,G=R.length),t(15,G+=Z),G>=R.length&&t(15,G=-1),G<0&&ae&&t(15,G=0),m.preventDefault())}function Bt(m=!0,Z=!1){if(t(18,me=void 0),ne||Z){if(ze&&clearTimeout(ze),W.length<L)return;const Y=W;ze=window.setTimeout(()=>{At(Y).catch(re=>t(18,me=re))},m?g:0)}else t(14,R=void 0),t(18,me=void 0)}function Dt(m){t(56,N=m),t(1,W=m.place_name),t(15,G=-1)}const jr=()=>he.focus();function Zr(m){ht[m?"unshift":"push"](()=>{he=m,t(17,he)})}function Qr(){W=this.value,t(1,W),t(13,Ue),t(28,a)}const Hr=()=>t(13,Ue=!0),Vr=()=>t(13,Ue=!1),Yr=()=>Bt(),Xr=()=>{t(1,W=""),he.focus()},Kr=()=>t(0,F=!F),Jr=()=>t(18,me=void 0),$r=m=>t(15,G=m),eo=m=>Dt(m),to=()=>{ae||t(15,G=-1)},io=()=>{};return n.$$set=m=>{"class"in m&&t(2,s=m.class),"apiKey"in m&&t(26,c=m.apiKey),"bbox"in m&&t(27,u=m.bbox),"clearButtonTitle"in m&&t(3,h=m.clearButtonTitle),"clearOnBlur"in m&&t(28,a=m.clearOnBlur),"collapsed"in m&&t(4,f=m.collapsed),"country"in m&&t(29,d=m.country),"debounceSearch"in m&&t(30,g=m.debounceSearch),"enableReverse"in m&&t(5,p=m.enableReverse),"errorMessage"in m&&t(6,b=m.errorMessage),"filter"in m&&t(31,v=m.filter),"flyTo"in m&&t(32,S=m.flyTo),"fuzzyMatch"in m&&t(33,E=m.fuzzyMatch),"language"in m&&t(34,_=m.language),"limit"in m&&t(35,C=m.limit),"mapController"in m&&t(36,x=m.mapController),"minLength"in m&&t(37,L=m.minLength),"noResultsMessage"in m&&t(7,w=m.noResultsMessage),"placeholder"in m&&t(8,k=m.placeholder),"proximity"in m&&t(38,I=m.proximity),"reverseActive"in m&&t(0,F=m.reverseActive),"reverseButtonTitle"in m&&t(9,q=m.reverseButtonTitle),"searchValue"in m&&t(1,W=m.searchValue),"showFullGeometry"in m&&t(39,M=m.showFullGeometry),"showPlaceType"in m&&t(10,j=m.showPlaceType),"showResultsWhileTyping"in m&&t(40,ne=m.showResultsWhileTyping),"selectFirst"in m&&t(11,ae=m.selectFirst),"flyToSelected"in m&&t(41,Pt=m.flyToSelected),"markerOnSelected"in m&&t(42,st=m.markerOnSelected),"types"in m&&t(43,Re=m.types),"excludeTypes"in m&&t(44,lt=m.excludeTypes),"zoom"in m&&t(45,De=m.zoom),"maxZoom"in m&&t(46,ut=m.maxZoom),"apiUrl"in m&&t(47,Tt=m.apiUrl),"fetchParameters"in m&&t(48,Rt=m.fetchParameters),"iconsBaseUrl"in m&&t(12,zi=m.iconsBaseUrl),"adjustUrlQuery"in m&&t(49,It=m.adjustUrlQuery),"$$scope"in m&&t(59,o=m.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&32&&t(0,F=p==="always"),n.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,ct=Ue),a&&!Ue&&t(1,W="")}),n.$$.dirty[0]&16386|n.$$.dirty[1]&64&&W.length<L&&(t(56,N=void 0),t(14,R=void 0),t(18,me=void 0),t(55,H=R)),n.$$.dirty[1]&33554688&&M&&N&&!N.address&&N.geometry.type==="Point"&&N.place_type[0]!=="reverse"&&At(N.id,{byId:!0}).catch(m=>t(18,me=m)),n.$$.dirty[1]&100663330&&(x&&N&&N.id!==Ot&&S&&(!N.bbox||N.bbox[0]===N.bbox[2]&&N.bbox[1]===N.bbox[3]?x.flyTo(N.center,Je(N)):x.fitBounds(je(N.bbox),50,Je(N)),t(14,R=void 0),t(55,H=void 0),t(15,G=-1)),t(57,Ot=N==null?void 0:N.id)),n.$$.dirty[0]&18432&&ae&&R!=null&&R.length&&t(15,G=0),n.$$.dirty[0]&2050&&(ae||t(15,G=-1)),n.$$.dirty[0]&16384|n.$$.dirty[1]&16777216&&H!==R&&t(55,H=void 0),n.$$.dirty[0]&81921|n.$$.dirty[1]&16777248&&x&&x.setEventHandler(m=>{switch(m.type){case"mapClick":F&&Gr(m.coordinates);break;case"markerClick":{const Z=R==null?void 0:R.find(Y=>Y.id===m.id);Z&&Dt(Z)}break;case"markerMouseEnter":H&&t(15,G=ct?(R==null?void 0:R.findIndex(Z=>Z.id===m.id))??-1:-1);break;case"markerMouseLeave":H&&t(15,G=-1);break}}),n.$$.dirty[0]&49152&&t(58,i=R==null?void 0:R[G]),n.$$.dirty[1]&134218786&&x&&i&&S&&Pt&&x.flyTo(i.center,Je(i)),n.$$.dirty[1]&2080&&(st||x==null||x.setMarkers(void 0,void 0)),n.$$.dirty[1]&150997024&&x&&st&&!H&&(x.setMarkers(i?[i]:void 0,void 0),x.setSelectedMarker(i?0:-1)),n.$$.dirty[1]&50331680&&x&&x.setMarkers(H,N),n.$$.dirty[0]&32768|n.$$.dirty[1]&16777248&&H&&x&&x.setSelectedMarker(G),n.$$.dirty[0]&2|n.$$.dirty[1]&32&&x){const m=Wt(W);x.setReverseMarker(m?[m.decimalLongitude,m.decimalLatitude]:void 0)}n.$$.dirty[1]&134217728&&Ne("select",i),n.$$.dirty[1]&33554432&&Ne("pick",N),n.$$.dirty[0]&81920&&Ne("optionsVisibilityChange",ct&&!!R),n.$$.dirty[0]&16384&&Ne("featuresListed",R),n.$$.dirty[1]&16777216&&Ne("featuresMarked",H),n.$$.dirty[0]&1&&Ne("reverseToggle",F),n.$$.dirty[0]&2&&Ne("queryChange",W),n.$$.dirty[0]&1|n.$$.dirty[1]&32&&x&&x.indicateReverse(F)},[F,W,s,h,f,p,b,w,k,q,j,ae,zi,Ue,R,G,ct,he,me,Ie,zr,qi,qr,Bt,Dt,l,c,u,a,d,g,v,S,E,_,C,x,L,I,M,ne,Pt,st,Re,lt,De,ut,Tt,Rt,It,Ar,Br,Fi,Dr,Ur,H,N,Ot,i,o,r,jr,Zr,Qr,Hr,Vr,Yr,Xr,Kr,Jr,$r,eo,to,io]}let er=class extends Se{constructor(e){super(),Le(this,e,$n,Jn,we,{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,showFullGeometry:39,showPlaceType:10,showResultsWhileTyping:40,selectFirst:11,flyToSelected:41,markerOnSelected:42,types:43,excludeTypes:44,zoom:45,maxZoom: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]}};function He(n,e,t={}){const i={type:"Feature"};return(t.id===0||t.id)&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.properties=e||{},i.geometry=n,i}function bt(n,e,t={}){for(const r of n){if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(r[r.length-1].length!==r[0].length)throw new Error("First and last Position are not equivalent.");for(let o=0;o<r[r.length-1].length;o++)if(r[r.length-1][o]!==r[0][o])throw new Error("First and last Position are not equivalent.")}return He({type:"Polygon",coordinates:n},e,t)}function Ve(n,e={}){const t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=n,t}function mi(n,e,t={}){return He({type:"MultiPolygon",coordinates:n},e,t)}function gi(n,e,t){if(n!==null)for(var i,r,o,l,s,c,u,h=0,a=0,f,d=n.type,g=d==="FeatureCollection",p=d==="Feature",b=g?n.features.length:1,v=0;v<b;v++){u=g?n.features[v].geometry:p?n.geometry:n,f=u?u.type==="GeometryCollection":!1,s=f?u.geometries.length:1;for(var S=0;S<s;S++){var E=0,_=0;if(l=f?u.geometries[S]:u,l!==null){c=l.coordinates;var C=l.type;switch(h=0,C){case null:break;case"Point":if(e(c,a,v,E,_)===!1)return!1;a++,E++;break;case"LineString":case"MultiPoint":for(i=0;i<c.length;i++){if(e(c[i],a,v,E,_)===!1)return!1;a++,C==="MultiPoint"&&E++}C==="LineString"&&E++;break;case"Polygon":case"MultiLineString":for(i=0;i<c.length;i++){for(r=0;r<c[i].length-h;r++){if(e(c[i][r],a,v,E,_)===!1)return!1;a++}C==="MultiLineString"&&E++,C==="Polygon"&&_++}C==="Polygon"&&E++;break;case"MultiPolygon":for(i=0;i<c.length;i++){for(_=0,r=0;r<c[i].length;r++){for(o=0;o<c[i][r].length-h;o++){if(e(c[i][r][o],a,v,E,_)===!1)return!1;a++}_++}E++}break;case"GeometryCollection":for(i=0;i<l.geometries.length;i++)if(gi(l.geometries[i],e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function vt(n,e){var t,i,r,o,l,s,c,u,h,a,f=0,d=n.type==="FeatureCollection",g=n.type==="Feature",p=d?n.features.length:1;for(t=0;t<p;t++){for(s=d?n.features[t].geometry:g?n.geometry:n,u=d?n.features[t].properties:g?n.properties:{},h=d?n.features[t].bbox:g?n.bbox:void 0,a=d?n.features[t].id:g?n.id:void 0,c=s?s.type==="GeometryCollection":!1,l=c?s.geometries.length:1,r=0;r<l;r++){if(o=c?s.geometries[r]:s,o===null){if(e(null,f,u,h,a)===!1)return!1;continue}switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(o,f,u,h,a)===!1)return!1;break}case"GeometryCollection":{for(i=0;i<o.geometries.length;i++)if(e(o.geometries[i],f,u,h,a)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}f++}}function tr(n,e){vt(n,function(t,i,r,o,l){var s=t===null?null:t.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return e(He(t,r,{bbox:o,id:l}),i,0)===!1?!1:void 0}var c;switch(s){case"MultiPoint":c="Point";break;case"MultiLineString":c="LineString";break;case"MultiPolygon":c="Polygon";break}for(var u=0;u<t.coordinates.length;u++){var h=t.coordinates[u],a={type:c,coordinates:h};if(e(He(a,r),i,u)===!1)return!1}})}function ir(n,e={}){if(n.bbox!=null&&e.recompute!==!0)return n.bbox;const t=[1/0,1/0,-1/0,-1/0];return gi(n,i=>{t[0]>i[0]&&(t[0]=i[0]),t[1]>i[1]&&(t[1]=i[1]),t[2]<i[0]&&(t[2]=i[0]),t[3]<i[1]&&(t[3]=i[1])}),t}var wt=ir;function nr(n){if(!n)throw new Error("geojson is required");switch(n.type){case"Feature":return yi(n);case"FeatureCollection":return rr(n);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return _t(n);default:throw new Error("unknown GeoJSON type")}}function yi(n){const e={type:"Feature"};return Object.keys(n).forEach(t=>{switch(t){case"type":case"properties":case"geometry":return;default:e[t]=n[t]}}),e.properties=pi(n.properties),n.geometry==null?e.geometry=null:e.geometry=_t(n.geometry),e}function pi(n){const e={};return n&&Object.keys(n).forEach(t=>{const i=n[t];typeof i=="object"?i===null?e[t]=null:Array.isArray(i)?e[t]=i.map(r=>r):e[t]=pi(i):e[t]=i}),e}function rr(n){const e={type:"FeatureCollection"};return Object.keys(n).forEach(t=>{switch(t){case"type":case"features":return;default:e[t]=n[t]}}),e.features=n.features.map(t=>yi(t)),e}function _t(n){const e={type:n.type};return n.bbox&&(e.bbox=n.bbox),n.type==="GeometryCollection"?(e.geometries=n.geometries.map(t=>_t(t)),e):(e.coordinates=bi(n.coordinates),e)}function bi(n){const e=n;return typeof e[0]!="object"?e.slice():e.map(t=>bi(t))}var or=nr;/**
|
|
2
2
|
* splaytree v3.1.2
|
|
3
3
|
* Fast Splay tree for Node and browser
|
|
4
4
|
*
|