@maptiler/geocoding-control 2.1.1 → 2.1.3-rc1
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/icons/sprite.json +259 -0
- package/icons/sprite.png +0 -0
- package/icons/sprite@2x.json +259 -0
- package/icons/sprite@2x.png +0 -0
- package/leaflet.js +1668 -1581
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +13 -1
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +1405 -1318
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +13 -1
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +1406 -1320
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +13 -1
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +1471 -1384
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +13 -1
- package/openlayers.umd.js.map +1 -1
- package/package.json +9 -9
- package/react.js +985 -898
- package/react.js.map +1 -1
- package/react.umd.js +13 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
- package/svelte/FeatureItem.svelte +70 -18
- package/svelte/GeocodingControl.svelte +46 -17
- package/svelte/GeocodingControl.svelte.d.ts +1 -0
- package/svelte/info.json +1 -0
- package/svelte/maptilersdk.js +1 -1
- package/svelte/types.d.ts +1 -0
- package/{src/types.d.ts → types.d.ts} +1 -0
- package/vanilla.js +1028 -941
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +13 -1
- package/vanilla.umd.js.map +1 -1
- package/icons/aerialway.svg +0 -1
- package/icons/airfield.svg +0 -1
- package/icons/airport.svg +0 -6
- package/icons/alcohol_shop.svg +0 -1
- package/icons/american_football.svg +0 -1
- package/icons/animal_shelter.svg +0 -4
- package/icons/aquarium.svg +0 -1
- package/icons/art_gallery.svg +0 -4
- package/icons/atm.svg +0 -5
- package/icons/attraction.svg +0 -1
- package/icons/bakery.svg +0 -1
- package/icons/bank.svg +0 -1
- package/icons/bar.svg +0 -1
- package/icons/barrier.svg +0 -4
- package/icons/baseball.svg +0 -4
- package/icons/basketball.svg +0 -4
- package/icons/bbq.svg +0 -4
- package/icons/beach.svg +0 -4
- package/icons/beer.svg +0 -4
- package/icons/bench.svg +0 -4
- package/icons/bicycle.svg +0 -4
- package/icons/bicycle_parking.svg +0 -5
- package/icons/bicycle_rental.svg +0 -5
- package/icons/bicycle_share.svg +0 -1
- package/icons/billiards.svg +0 -4
- package/icons/board.svg +0 -4
- package/icons/bollard.svg +0 -4
- package/icons/bowling.svg +0 -4
- package/icons/buddhist.svg +0 -1
- package/icons/building.svg +0 -4
- package/icons/bulldozer.svg +0 -4
- package/icons/bus_guided.svg +0 -4
- package/icons/bus_stop.svg +0 -1
- package/icons/bus_trolley.svg +0 -4
- package/icons/butcher.svg +0 -4
- package/icons/cafe.svg +0 -1
- package/icons/camper_trailer.svg +0 -4
- package/icons/campfire.svg +0 -4
- package/icons/campsite.svg +0 -1
- package/icons/car.svg +0 -1
- package/icons/car_rental.svg +0 -1
- package/icons/car_repair.svg +0 -14
- package/icons/casino.svg +0 -1
- package/icons/castle.svg +0 -1
- package/icons/caution.svg +0 -4
- package/icons/cemetery.svg +0 -4
- package/icons/charging_station.svg +0 -4
- package/icons/christian.svg +0 -5
- package/icons/cinema.svg +0 -1
- package/icons/circle-dot.svg +0 -4
- package/icons/circle-stroke.svg +0 -4
- package/icons/circle.svg +0 -4
- package/icons/city.svg +0 -4
- package/icons/clothing_store.svg +0 -1
- package/icons/college.svg +0 -1
- package/icons/commercial.svg +0 -1
- package/icons/communications_tower.svg +0 -4
- package/icons/confectionery.svg +0 -4
- package/icons/construction.svg +0 -4
- package/icons/convenience.svg +0 -1
- package/icons/cricket.svg +0 -4
- package/icons/cross.svg +0 -4
- package/icons/cycle_barrier.svg +0 -4
- package/icons/dam.svg +0 -4
- package/icons/danger.svg +0 -4
- package/icons/defibrillator.svg +0 -1
- package/icons/dentist.svg +0 -1
- package/icons/diamond.svg +0 -4
- package/icons/diamond_stroked.svg +0 -4
- package/icons/diplomatic.svg +0 -1
- package/icons/doctors.svg +0 -1
- package/icons/dog_park.svg +0 -1
- package/icons/dot.svg +0 -4
- package/icons/drinking_water.svg +0 -4
- package/icons/elevator.svg +0 -1
- package/icons/emergency_phone.svg +0 -4
- package/icons/entrance.svg +0 -4
- package/icons/farm.svg +0 -4
- package/icons/fast_food.svg +0 -1
- package/icons/fence.svg +0 -4
- package/icons/ferry_terminal.svg +0 -1
- package/icons/fire_station.svg +0 -1
- package/icons/fitness_centre.svg +0 -1
- package/icons/florist.svg +0 -4
- package/icons/fountain.svg +0 -1
- package/icons/fuel.svg +0 -1
- package/icons/furniture.svg +0 -4
- package/icons/gaming.svg +0 -4
- package/icons/garden.svg +0 -4
- package/icons/garden_centre.svg +0 -4
- package/icons/gate.svg +0 -4
- package/icons/gift.svg +0 -1
- package/icons/globe.svg +0 -4
- package/icons/golf.svg +0 -1
- package/icons/golf_green.svg +0 -4
- package/icons/gondola.svg +0 -4
- package/icons/grocery.svg +0 -1
- package/icons/guidepost.svg +0 -4
- package/icons/hairdresser.svg +0 -1
- package/icons/harbor.svg +0 -1
- package/icons/hardware.svg +0 -4
- package/icons/heart.svg +0 -4
- package/icons/heliport.svg +0 -4
- package/icons/highway_rest_area.svg +0 -4
- package/icons/hinduist.svg +0 -1
- package/icons/historic.svg +0 -1
- package/icons/home.svg +0 -4
- package/icons/horse_riding.svg +0 -1
- package/icons/hospital.svg +0 -1
- package/icons/hot_spring.svg +0 -4
- package/icons/hut.svg +0 -1
- package/icons/ice_cream.svg +0 -1
- package/icons/industry.svg +0 -4
- package/icons/information.svg +0 -1
- package/icons/jewelry.svg +0 -1
- package/icons/jewish.svg +0 -1
- package/icons/karaoke.svg +0 -4
- package/icons/landmark.svg +0 -1
- package/icons/laundry.svg +0 -1
- package/icons/library.svg +0 -1
- package/icons/lift_gate.svg +0 -4
- package/icons/light_rail.svg +0 -4
- package/icons/lighthouse.svg +0 -4
- package/icons/lodging.svg +0 -1
- package/icons/marker.svg +0 -4
- package/icons/marker_stroked.svg +0 -4
- package/icons/mobile_phone.svg +0 -1
- package/icons/monorail.svg +0 -4
- package/icons/monument.svg +0 -1
- package/icons/motorcycle.svg +0 -4
- package/icons/motorcycle_parking.svg +0 -4
- package/icons/motorcycle_rental.svg +0 -4
- package/icons/motorcycle_repair.svg +0 -4
- package/icons/museum.svg +0 -1
- package/icons/music.svg +0 -1
- package/icons/muslim.svg +0 -1
- package/icons/natural.svg +0 -4
- package/icons/noodle.svg +0 -4
- package/icons/obelisk.svg +0 -4
- package/icons/observation_tower.svg +0 -4
- package/icons/oneway.svg +0 -4
- package/icons/optician.svg +0 -4
- package/icons/outdoor.svg +0 -1
- package/icons/paint.svg +0 -1
- package/icons/park.svg +0 -4
- package/icons/parking.svg +0 -1
- package/icons/parking_garage.svg +0 -1
- package/icons/parking_paid.svg +0 -4
- package/icons/peak.svg +0 -1
- package/icons/perfumery.svg +0 -1
- package/icons/pharmacy.svg +0 -1
- package/icons/picnic_site.svg +0 -1
- package/icons/pin.svg +0 -4
- package/icons/pipe.svg +0 -4
- package/icons/pitch.svg +0 -1
- package/icons/pizza.svg +0 -4
- package/icons/place_of_worship.svg +0 -4
- package/icons/playground.svg +0 -4
- package/icons/police.svg +0 -1
- package/icons/post.svg +0 -1
- package/icons/prison.svg +0 -1
- package/icons/racetrack.svg +0 -4
- package/icons/radiation.svg +0 -4
- package/icons/railway.svg +0 -4
- package/icons/ranger_station.svg +0 -4
- package/icons/recycling.svg +0 -4
- package/icons/restaurant.svg +0 -1
- package/icons/road_accident.svg +0 -4
- package/icons/roadblock.svg +0 -4
- package/icons/rocket.svg +0 -4
- package/icons/school.svg +0 -1
- package/icons/school_bus.svg +0 -4
- package/icons/scooter.svg +0 -1
- package/icons/sculpture.svg +0 -4
- package/icons/seafood.svg +0 -4
- package/icons/shelter.svg +0 -4
- package/icons/shinto.svg +0 -1
- package/icons/shoes.svg +0 -4
- package/icons/shop.svg +0 -1
- package/icons/sikh.svg +0 -4
- package/icons/skateboard.svg +0 -1
- package/icons/snow.svg +0 -4
- package/icons/soccer.svg +0 -4
- package/icons/spring.svg +0 -4
- package/icons/square.svg +0 -4
- package/icons/square_stroked.svg +0 -4
- package/icons/stadium.svg +0 -1
- package/icons/star.svg +0 -4
- package/icons/star_stroked.svg +0 -4
- package/icons/statue.svg +0 -4
- package/icons/subway.svg +0 -4
- package/icons/suitcase.svg +0 -1
- package/icons/sushi.svg +0 -4
- package/icons/swimming.svg +0 -5
- package/icons/swimming_pool.svg +0 -8
- package/icons/tako.svg +0 -4
- package/icons/taoist.svg +0 -1
- package/icons/taxi.svg +0 -4
- package/icons/teahouse.svg +0 -4
- package/icons/telephone.svg +0 -1
- package/icons/tennis.svg +0 -1
- package/icons/terminal.svg +0 -4
- package/icons/theatre.svg +0 -1
- package/icons/theme_park.svg +0 -4
- package/icons/toilets.svg +0 -1
- package/icons/toll.svg +0 -1
- package/icons/town.svg +0 -4
- package/icons/town_hall.svg +0 -4
- package/icons/tram_stop.svg +0 -4
- package/icons/tramway.svg +0 -1
- package/icons/transit.svg +0 -4
- package/icons/triangle.svg +0 -4
- package/icons/triangle_stroked.svg +0 -4
- package/icons/truck.svg +0 -4
- package/icons/tunnel.svg +0 -4
- package/icons/veterinary.svg +0 -4
- package/icons/viewpoint.svg +0 -4
- package/icons/village.svg +0 -4
- package/icons/volcano.svg +0 -1
- package/icons/volleyball.svg +0 -4
- package/icons/warehouse.svg +0 -4
- package/icons/waste_basket.svg +0 -1
- package/icons/watches.svg +0 -1
- package/icons/water.svg +0 -4
- package/icons/water_park.svg +0 -6
- package/icons/water_tower.svg +0 -4
- package/icons/watermill.svg +0 -4
- package/icons/wetland.svg +0 -4
- package/icons/wheelchair.svg +0 -1
- package/icons/windmill.svg +0 -1
- package/icons/wine.svg +0 -4
- package/icons/zoo.svg +0 -1
- /package/{src/MapLibreBasedGeocodingControl.d.ts → MapLibreBasedGeocodingControl.d.ts} +0 -0
- /package/{src/geo-coordinates-parser.t.d.ts → geo-coordinates-parser.t.d.ts} +0 -0
- /package/{src/geoUtils.d.ts → geoUtils.d.ts} +0 -0
- /package/{src/leaflet-controller.d.ts → leaflet-controller.d.ts} +0 -0
- /package/{src/leaflet.d.ts → leaflet.d.ts} +0 -0
- /package/{src/maplibregl-controller.d.ts → maplibregl-controller.d.ts} +0 -0
- /package/{src/maplibregl.d.ts → maplibregl.d.ts} +0 -0
- /package/{src/maptilersdk.d.ts → maptilersdk.d.ts} +0 -0
- /package/{src/mask.d.ts → mask.d.ts} +0 -0
- /package/{src/openlayers-controller.d.ts → openlayers-controller.d.ts} +0 -0
- /package/{src/openlayers.d.ts → openlayers.d.ts} +0 -0
- /package/{src/proximity.d.ts → proximity.d.ts} +0 -0
- /package/{src/react.d.ts → react.d.ts} +0 -0
- /package/{src/vanilla.d.ts → vanilla.d.ts} +0 -0
package/react.umd.js
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
(function(x,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],H):(x=typeof globalThis<"u"?globalThis:x||self,H(x.reactMaptilerGeocoder={},x.React))})(this,function(x,H){"use strict";var Un=Object.defineProperty;var Dn=(x,H,U)=>H in x?Un(x,H,{enumerable:!0,configurable:!0,writable:!0,value:U}):x[H]=U;var Lt=(x,H,U)=>Dn(x,typeof H!="symbol"?H+"":H,U);function U(){}function ni(i,e){for(const t in e)i[t]=e[t];return i}function _t(i){return i()}function yt(){return Object.create(null)}function ue(i){i.forEach(_t)}function pt(i){return typeof i=="function"}function Le(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ge;function Y(i,e){return i===e?!0:(Ge||(Ge=document.createElement("a")),Ge.href=e,i===Ge.href)}function ri(i){return Object.keys(i).length===0}function oi(i,e,t,n){if(i){const r=wt(i,e,t,n);return i[0](r)}}function wt(i,e,t,n){return i[1]&&n?ni(t.ctx.slice(),i[1](n(e))):t.ctx}function si(i,e,t,n){return i[2],e.dirty}function ai(i,e,t,n,r,u){if(r){const l=wt(e,t,n,u);i.p(l,r)}}function li(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function Fe(i){return i??""}function N(i,e){i.appendChild(e)}function P(i,e,t){i.insertBefore(e,t||null)}function A(i){i.parentNode&&i.parentNode.removeChild(i)}function D(i){return document.createElement(i)}function ce(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ge(i){return document.createTextNode(i)}function $(){return ge(" ")}function ui(){return ge("")}function q(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ci(i){return function(e){return e.preventDefault(),i.call(this,e)}}function a(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function di(i){return Array.from(i.childNodes)}function ze(i,e){e=""+e,i.data!==e&&(i.data=e)}function Et(i,e){i.value=e??""}function Se(i,e,t){i.classList.toggle(e,!!t)}function fi(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Oe;function Re(i){Oe=i}function St(){if(!Oe)throw new Error("Function called outside component initialization");return Oe}function mi(i){St().$$.on_destroy.push(i)}function Tt(){const i=St();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const u=fi(e,t,{cancelable:n});return r.slice().forEach(l=>{l.call(i,u)}),!u.defaultPrevented}return!0}}function gi(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Te=[],et=[];let Ne=[];const Nt=[],hi=Promise.resolve();let tt=!1;function bi(){tt||(tt=!0,hi.then(kt))}function it(i){Ne.push(i)}const nt=new Set;let ke=0;function kt(){if(ke!==0)return;const i=Oe;do{try{for(;ke<Te.length;){const e=Te[ke];ke++,Re(e),vi(e.$$)}}catch(e){throw Te.length=0,ke=0,e}for(Re(null),Te.length=0,ke=0;et.length;)et.pop()();for(let e=0;e<Ne.length;e+=1){const t=Ne[e];nt.has(t)||(nt.add(t),t())}Ne.length=0}while(Te.length);for(;Nt.length;)Nt.pop()();tt=!1,nt.clear(),Re(i)}function vi(i){if(i.fragment!==null){i.update(),ue(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(it)}}function Li(i){const e=[],t=[];Ne.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Ne=e}const je=new Set;let _e;function He(){_e={r:0,c:[],p:_e}}function Ze(){_e.r||ue(_e.c),_e=_e.p}function G(i,e){i&&i.i&&(je.delete(i),i.i(e))}function K(i,e,t,n){if(i&&i.o){if(je.has(i))return;je.add(i),_e.c.push(()=>{je.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Mt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function _i(i,e){K(i,1,1,()=>{e.delete(i.key)})}function yi(i,e,t,n,r,u,l,o,d,c,f,g){let b=i.length,_=u.length,p=b;const I={};for(;p--;)I[i[p].key]=p;const E=[],S=new Map,z=new Map,W=[];for(p=_;p--;){const v=g(r,u,p),y=t(v);let k=l.get(y);k?W.push(()=>k.p(v,e)):(k=c(y,v),k.c()),S.set(y,E[p]=k),y in I&&z.set(y,Math.abs(p-I[y]))}const Q=new Set,X=new Set;function C(v){G(v,1),v.m(o,f),l.set(v.key,v),f=v.first,_--}for(;b&&_;){const v=E[_-1],y=i[b-1],k=v.key,M=y.key;v===y?(f=v.first,b--,_--):S.has(M)?!l.has(k)||Q.has(k)?C(v):X.has(M)?b--:z.get(k)>z.get(M)?(X.add(k),C(v)):(Q.add(M),b--):(d(y,l),b--)}for(;b--;){const v=i[b];S.has(v.key)||d(v,l)}for(;_;)C(E[_-1]);return ue(W),E}function he(i){i&&i.c()}function de(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),it(()=>{const u=i.$$.on_mount.map(_t).filter(pt);i.$$.on_destroy?i.$$.on_destroy.push(...u):ue(u),i.$$.on_mount=[]}),r.forEach(it)}function fe(i,e){const t=i.$$;t.fragment!==null&&(Li(t.after_update),ue(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function pi(i,e){i.$$.dirty[0]===-1&&(Te.push(i),bi(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ye(i,e,t,n,r,u,l=null,o=[-1]){const d=Oe;Re(i);const c=i.$$={fragment:null,ctx:[],props:u,update:U,not_equal:r,bound:yt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:yt(),dirty:o,skip_bound:!1,root:e.target||d.$$.root};l&&l(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(g,b,..._)=>{const p=_.length?_[0]:b;return c.ctx&&r(c.ctx[g],c.ctx[g]=p)&&(!c.skip_bound&&c.bound[g]&&c.bound[g](p),f&&pi(i,g)),b}):[],c.update(),f=!0,ue(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const g=di(e.target);c.fragment&&c.fragment.l(g),g.forEach(A)}else c.fragment&&c.fragment.c();e.intro&&G(i.$$.fragment),de(i,e.target,e.anchor),kt()}Re(d)}class pe{constructor(){Lt(this,"$$");Lt(this,"$$set")}$destroy(){fe(this,1),this.$destroy=U}$on(e,t){if(!pt(t))return U;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!ri(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const wi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(wi);function Ei(i){let e,t;return{c(){e=ce("svg"),t=ce("path"),a(t,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),a(e,"viewBox","0 0 14 14"),a(e,"width","13"),a(e,"height","13"),a(e,"class","svelte-en2qvf")},m(n,r){P(n,e,r),N(e,t)},p:U,i:U,o:U,d(n){n&&A(e)}}}class Ct extends pe{constructor(e){super(),ye(this,e,null,Ei,Le,{})}}function Si(i){let e,t;return{c(){e=ce("svg"),t=ce("path"),a(t,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),a(e,"viewBox","0 0 30 30"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"class","svelte-d2loi5")},m(n,r){P(n,e,r),N(e,t)},p:U,i:U,o:U,d(n){n&&A(e)}}}class Wt extends pe{constructor(e){super(),ye(this,e,null,Si,Le,{})}}function Ti(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"area.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&A(e)}}}function Ni(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&A(e)}}}function ki(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&A(e)}}}function Mi(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&A(e)}}}function Ci(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"street.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&A(e)}}}function Wi(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"road.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&A(e)}}}function zi(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&A(e)}}}function Oi(i){let e,t,n,r;return{c(){e=D("img"),Y(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(u,l){P(u,e,l),n||(r=q(e,"error",i[14]),n=!0)},p(u,l){l&32&&!Y(e.src,t=u[5])&&a(e,"src",t),l&16&&a(e,"alt",u[4]),l&64&&a(e,"title",u[6])},d(u){u&&A(e),n=!1,r()}}}function zt(i){let e,t;return{c(){e=D("span"),t=ge(i[6]),a(e,"class","secondary svelte-z7p9pp")},m(n,r){P(n,e,r),N(e,t)},p(n,r){r&64&&ze(t,n[6])},d(n){n&&A(e)}}}function Ri(i){let e,t,n,r,u,l,o,d,c,f=(i[8]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",g,b,_=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[8],p,I,E=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",S,z,W,Q,X,C;function v(w,m){return m&1&&(t=null),m&1&&(n=null),m&1&&(r=null),m&1&&(u=null),w[5]?Oi:w[0].address?zi:(t==null&&(t=!!w[0].id.startsWith("road.")),t?Wi:(n==null&&(n=!!w[0].id.startsWith("address.")),n?Ci:(r==null&&(r=!!w[0].id.startsWith("postal_code.")),r?Mi:(u==null&&(u=!!w[0].id.startsWith("poi.")),u?ki:w[8]?Ni:Ti))))}let y=v(i,-1),k=y(i),M=_&&zt(i);return{c(){e=D("li"),k.c(),l=$(),o=D("span"),d=D("span"),c=D("span"),g=ge(f),b=$(),M&&M.c(),p=$(),I=D("span"),S=ge(E),a(c,"class","primary svelte-z7p9pp"),a(d,"class","svelte-z7p9pp"),a(I,"class","line2 svelte-z7p9pp"),a(o,"class","texts svelte-z7p9pp"),a(e,"tabindex","-1"),a(e,"role","option"),a(e,"aria-selected",z=i[1]==="selected"),a(e,"aria-checked",W=i[1]==="picked"),a(e,"class",Q=Fe(i[1])+" svelte-z7p9pp")},m(w,m){P(w,e,m),k.m(e,null),N(e,l),N(e,o),N(o,d),N(d,c),N(c,g),N(d,b),M&&M.m(d,null),N(o,p),N(o,I),N(I,S),X||(C=[q(e,"mouseenter",i[13]),q(e,"focus",i[15]),q(e,"click",i[16])],X=!0)},p(w,[m]){y===(y=v(w,m))&&k?k.p(w,m):(k.d(1),k=y(w),k&&(k.c(),k.m(e,l))),m&1&&f!==(f=(w[8]?w[0].place_name:w[0].place_name.replace(/,.*/,""))+"")&&ze(g,f),m&37&&(_=w[2]==="always"||w[2]!=="never"&&!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[8]),_?M?M.p(w,m):(M=zt(w),M.c(),M.m(d,null)):M&&(M.d(1),M=null),m&1&&E!==(E=(w[8]?"":w[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&ze(S,E),m&2&&z!==(z=w[1]==="selected")&&a(e,"aria-selected",z),m&2&&W!==(W=w[1]==="picked")&&a(e,"aria-checked",W),m&2&&Q!==(Q=Fe(w[1])+" svelte-z7p9pp")&&a(e,"class",Q)},i:U,o:U,d(w){w&&A(e),k.d(),M&&M.d(),X=!1,ue(C)}}}function Ui(i,e,t){var X;let n,r,{feature:u}=e,{style:l="default"}=e,{showPlaceType:o}=e,{missingIconsCache:d}=e,{iconsBaseUrl:c}=e;const f=Tt(),g=(X=u.properties)==null?void 0:X.categories;let b,_,p=0,I=u.place_type[0]==="reverse";function E(){_&&d.add(_),t(11,p++,p)}function S(C){gi.call(this,i,C)}const z=()=>E(),W=()=>f("select",void 0),Q=C=>{document.activeElement!==C.target&&f("select",void 0)};return i.$$set=C=>{"feature"in C&&t(0,u=C.feature),"style"in C&&t(1,l=C.style),"showPlaceType"in C&&t(2,o=C.showPlaceType),"missingIconsCache"in C&&t(10,d=C.missingIconsCache),"iconsBaseUrl"in C&&t(3,c=C.iconsBaseUrl)},i.$$.update=()=>{var C,v,y,k;if(i.$$.dirty&7224)do t(12,n--,n),t(4,b=g==null?void 0:g[n]),t(5,_=b?c+b.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!_||d.has(_)));i.$$.dirty&1&&t(6,r=((v=(C=u.properties)==null?void 0:C.categories)==null?void 0:v.join(", "))??((k=(y=u.properties)==null?void 0:y.place_type_name)==null?void 0:k[0])??u.place_type[0])},t(12,n=(g==null?void 0:g.length)??0),[u,l,o,c,b,_,r,f,I,E,d,p,n,S,z,W,Q]}class Di extends pe{constructor(e){super(),ye(this,e,Ui,Ri,Le,{feature:0,style:1,showPlaceType:2,missingIconsCache:10,iconsBaseUrl:3})}}function Ii(i){let e;return{c(){e=D("div"),e.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',a(e,"class","svelte-7cmwmc")},m(t,n){P(t,e,n)},p:U,i:U,o:U,d(t){t&&A(e)}}}class Ai extends pe{constructor(e){super(),ye(this,e,null,Ii,Le,{})}}function Pi(i){let e,t;return{c(){e=ce("svg"),t=ce("path"),a(t,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),a(e,"viewBox","0 0 60.006 21.412"),a(e,"width","14"),a(e,"height","20"),a(e,"class","svelte-en2qvf")},m(n,r){P(n,e,r),N(e,t)},p:U,i:U,o:U,d(n){n&&A(e)}}}class Bi extends pe{constructor(e){super(),ye(this,e,null,Pi,Le,{})}}function Gi(i){let e,t,n;return{c(){e=ce("svg"),t=ce("circle"),n=ce("path"),a(t,"cx","4.789"),a(t,"cy","4.787"),a(t,"r","3.85"),a(t,"class","svelte-1aq105l"),a(n,"d","M12.063 12.063 7.635 7.635"),a(n,"class","svelte-1aq105l"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","13"),a(e,"height","13"),a(e,"viewBox","0 0 13 13"),a(e,"class","svelte-1aq105l")},m(r,u){P(r,e,u),N(e,t),N(e,n)},p:U,i:U,o:U,d(r){r&&A(e)}}}class Fi extends pe{constructor(e){super(),ye(this,e,null,Gi,Le,{})}}function ji(i,e,t){const n=e[1],r=e[0],u=n-r;return i===n&&t?i:((i-r)%u+u)%u+r}function Ot(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let Ue;async function Hi(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Ue&&r.cachedLocationExpiry&&Ue.time+r.cachedLocationExpiry>Date.now()){if(!Ue.coords)break e;return Ue.coords}let u;try{return u=await new Promise((l,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{l([d.coords.longitude,d.coords.latitude].map(c=>c.toFixed(6)).join(","))},d=>{o(d)},r)}),u}catch{}finally{r.cachedLocationExpiry&&(Ue={time:Date.now(),coords:u})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const Zi=/^(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,Rt=/^([+-]?[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,})$/,Ut=/^(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,Dt=/^(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,It=/^(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,At=/^(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 qi(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(_=>Number(_.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),u=Math.abs(n),l=t>0?"N":"S",o=n>0?"E":"W";let d;i=="DD"&&(d=`${r}° ${l}, ${u}° ${o}`);const c=Math.floor(r),f=Math.floor(u),g=(r-c)*60,b=(u-f)*60;if(i=="DM"){let _=Pt(g,3).toFixed(3).padStart(6,"0"),p=Pt(b,3).toFixed(3).padStart(6,"0");_.endsWith(".000")&&p.endsWith(".000")&&(_=_.replace(/\.000$/,""),p=p.replace(/\.000$/,"")),d=`${c}° ${_}' ${l}, ${f}° ${p}' ${o}`}if(i=="DMS"){const _=Math.floor(g),p=Math.floor(b);let I=((g-_)*60).toFixed(1).padStart(4,"0"),E=((b-p)*60).toFixed(1).padStart(4,"0");const S=_.toString().padStart(2,"0"),z=p.toString().padStart(2,"0");I.endsWith(".0")&&E.endsWith(".0")&&(I=I.replace(/\.0$/,""),E=E.replace(/\.0$/,"")),d=`${c}° ${S}' ${I}" ${l}, ${f}° ${z}' ${E}" ${o}`}return d}else throw new Error("no decimal coordinates to convert")}function Pt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function rt(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",u="",l=null,o=[],d=!1;if(Zi.test(i))throw new Error("invalid coordinate value");if(Rt.test(i))if(o=Rt.exec(i),d=De(o),d)t=Math.abs(o[1])+o[2]/60,Number(o[1])<0&&(t*=-1),n=Math.abs(o[3])+o[4]/60,Number(o[3])<0&&(n*=-1),l="DM";else throw new Error("invalid coordinate format");else if(Ut.test(i))if(o=Ut.exec(i),d=De(o),d){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),l="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");o[1]?(r=o[1],u=o[5]):o[4]&&(r=o[4],u=o[8])}else throw new Error("invalid decimal coordinate format");else if(Dt.test(i))if(o=Dt.exec(i),d=De(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,l="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,l="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[9])),o[11]&&(n+=o[11]/60),o[13]&&(n+=o[13].replace(",",".")/3600),parseInt(o[9])<0&&(n=-1*n),o[1]?(r=o[1],u=o[8]):o[7]&&(r=o[7],u=o[14]);else throw new Error("invalid DMS coordinates format");else if(It.test(i))if(o=It.exec(i),d=De(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,l="DM"),o[6]&&(t+=o[6]/3600,l="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12]/60),o[14]&&(n+=o[14]/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],u=o[9]):o[8]&&(r=o[8],u=o[16]);else throw new Error("invalid DMS coordinates format");else if(At.test(i)){if(o=At.exec(i),d=De(o),o.filter(c=>c).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,l="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,l="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12].replace(",",".")/60),o[14]&&(n+=o[14].replace(",",".")/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],u=o[9]):o[8]&&(r=o[8],u=o[16]);else throw new Error("invalid coordinates format")}if(d){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!u||!r&&u)throw new Error("invalid coordinates value");if(r&&r==u)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let c=/S|SOUTH/i;c.test(r)&&t>0&&(t=-1*t),c=/W|WEST/i,c.test(u)&&n>0&&(n=-1*n);const f=o[0].trim();let g,b;const _=/[,/;\u0020]/g,p=f.match(_);if(p==null){const S=Math.floor(i.length/2);g=f.substring(0,S).trim(),b=f.substring(S).trim()}else{let S;p.length%2==1?S=Math.floor(p.length/2):S=p.length/2-1;let z=0;if(S==0)z=f.indexOf(p[0]),g=f.substring(0,z).trim(),b=f.substring(z+1).trim();else{let W=0,Q=0;for(;W<=S;)z=f.indexOf(p[W],Q),Q=z+1,W++;g=f.substring(0,z).trim(),b=f.substring(z+1).trim()}}const I=g.split(".");if(I.length==2&&I[1]==0&&I[1].length!=2)throw new Error("invalid coordinates format");const E=b.split(".");if(E.length==2&&E[1]==0&&E[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(g)||/^\d+$/.test(b))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:f,verbatimLatitude:g,verbatimLongitude:b,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:l,closeEnough:Qi,toCoordinateFormat:qi})}else throw new Error("coordinates pattern match failed")}function De(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let u=0;u<r;u++){const l=e[u],o=e[u+r],d=t.test(l)&&t.test(o),c=n.test(l)&&n.test(o),f=l==o;if(!(l==null&&o==null)){if(l==null||o==null)return!1;if(d||c||f)continue;return!1}}return!0}function Bt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Qi(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Bt(this.decimalLatitude,Number(e[0]))&&Bt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Ki=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});rt.to=Ki;const Vi=[{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"}],Yi={decimalLatitude:40.123,decimalLongitude:-74.123},Xi=[{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}],Ji=[{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 xi(){const i=[];return Vi.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Yi})}),[...i,...Xi,...Ji]}const $i=xi();rt.formats=$i.map(i=>i.verbatimCoordinates);const en=rt;function Gt(i,e,t){const n=i.slice();return n[97]=e[t],n[99]=t,n}function Ft(i){let e,t;return e=new Ai({}),{c(){he(e.$$.fragment)},m(n,r){de(e,n,r),t=!0},i(n){t||(G(e.$$.fragment,n),t=!0)},o(n){K(e.$$.fragment,n),t=!1},d(n){fe(e,n)}}}function jt(i){let e,t,n,r,u;return t=new Bi({}),{c(){e=D("button"),he(t.$$.fragment),a(e,"type","button"),a(e,"title",i[10]),a(e,"class","svelte-bz0zu3"),Se(e,"active",i[0])},m(l,o){P(l,e,o),de(t,e,null),n=!0,r||(u=q(e,"click",i[79]),r=!0)},p(l,o){(!n||o[0]&1024)&&a(e,"title",l[10]),(!n||o[0]&1)&&Se(e,"active",l[0])},i(l){n||(G(t.$$.fragment,l),n=!0)},o(l){K(t.$$.fragment,l),n=!1},d(l){l&&A(e),fe(t),r=!1,u()}}}function tn(i){let e,t=[],n=new Map,r,u,l,o=Mt(i[13]);const d=c=>c[97].id+(c[97].address?","+c[97].address:"");for(let c=0;c<o.length;c+=1){let f=Gt(i,o,c),g=d(f);n.set(g,t[c]=Ht(g,f))}return{c(){e=D("ul");for(let c=0;c<t.length;c+=1)t[c].c();a(e,"class","options svelte-bz0zu3"),a(e,"role","listbox")},m(c,f){P(c,e,f);for(let g=0;g<t.length;g+=1)t[g]&&t[g].m(e,null);r=!0,u||(l=[q(e,"mouseleave",i[27]),q(e,"blur",i[83]),q(e,"keydown",i[23])],u=!0)},p(c,f){f[0]&102823936&&(o=Mt(c[13]),He(),t=yi(t,f,d,1,c,o,n,e,_i,Ht,null,Gt),Ze())},i(c){if(!r){for(let f=0;f<o.length;f+=1)G(t[f]);r=!0}},o(c){for(let f=0;f<t.length;f+=1)K(t[f]);r=!1},d(c){c&&A(e);for(let f=0;f<t.length;f+=1)t[f].d();u=!1,ue(l)}}}function nn(i){let e,t,n,r,u,l;return t=new Wt({}),{c(){e=D("div"),he(t.$$.fragment),n=$(),r=D("div"),u=ge(i[8]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,d){P(o,e,d),de(t,e,null),N(e,n),N(e,r),N(r,u),l=!0},p(o,d){(!l||d[0]&256)&&ze(u,o[8])},i(o){l||(G(t.$$.fragment,o),l=!0)},o(o){K(t.$$.fragment,o),l=!1},d(o){o&&A(e),fe(t)}}}function rn(i){let e="",t;return{c(){t=ge(e)},m(n,r){P(n,t,r)},p:U,i:U,o:U,d(n){n&&A(t)}}}function on(i){let e,t,n,r,u,l,o,d,c,f,g;return t=new Wt({}),d=new Ct({}),{c(){e=D("div"),he(t.$$.fragment),n=$(),r=D("div"),u=ge(i[7]),l=$(),o=D("button"),he(d.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(b,_){P(b,e,_),de(t,e,null),N(e,n),N(e,r),N(r,u),N(e,l),N(e,o),de(d,o,null),c=!0,f||(g=q(o,"click",i[80]),f=!0)},p(b,_){(!c||_[0]&128)&&ze(u,b[7])},i(b){c||(G(t.$$.fragment,b),G(d.$$.fragment,b),c=!0)},o(b){K(t.$$.fragment,b),K(d.$$.fragment,b),c=!1},d(b){b&&A(e),fe(t),fe(d),f=!1,g()}}}function Ht(i,e){var o;let t,n,r;function u(){return e[81](e[99])}function l(){return e[82](e[97])}return n=new Di({props:{feature:e[97],showPlaceType:e[11],style:e[15]===e[99]?"selected":((o=e[14])==null?void 0:o.id)===e[97].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",u),n.$on("select",l),{key:i,first:null,c(){t=ui(),he(n.$$.fragment),this.first=t},m(d,c){P(d,t,c),de(n,d,c),r=!0},p(d,c){var g;e=d;const f={};c[0]&8192&&(f.feature=e[97]),c[0]&2048&&(f.showPlaceType=e[11]),c[0]&57344&&(f.style=e[15]===e[99]?"selected":((g=e[14])==null?void 0:g.id)===e[97].id?"picked":"default"),c[0]&4096&&(f.iconsBaseUrl=e[12]),n.$set(f)},i(d){r||(G(n.$$.fragment,d),r=!0)},o(d){K(n.$$.fragment,d),r=!1},d(d){d&&A(t),fe(n,d)}}}function sn(i){let e,t,n,r,u,l,o,d,c,f,g,b,_,p,I,E,S,z,W,Q,X,C=!1;u=new Fi({}),g=new Ct({});let v=i[20]&&Ft(),y=i[6]==="button"&&jt(i);const k=i[70].default,M=oi(k,i,i[69],null),w=[on,rn,nn,tn],m=[];function we(L,F){var oe,ie;return L[19]?0:!L[16]&&!L[4]?1:((oe=L[13])==null?void 0:oe.length)===0?2:(ie=L[13])!=null&&ie.length&&(L[16]||L[4])?3:-1}return~(E=we(i))&&(S=m[E]=w[E](i)),{c(){e=$(),t=D("form"),n=D("div"),r=D("button"),he(u.$$.fragment),l=$(),o=D("input"),d=$(),c=D("div"),f=D("button"),he(g.$$.fragment),b=$(),v&&v.c(),_=$(),y&&y.c(),p=$(),M&&M.c(),I=$(),S&&S.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(o,"placeholder",i[9]),a(o,"aria-label",i[9]),a(o,"class","svelte-bz0zu3"),a(f,"type","button"),a(f,"title",i[3]),a(f,"class","svelte-bz0zu3"),a(c,"class","clear-button-container svelte-bz0zu3"),Se(c,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"class",z=Fe(i[2])+" svelte-bz0zu3"),Se(t,"can-collapse",i[5]&&i[1]==="")},m(L,F){P(L,e,F),P(L,t,F),N(t,n),N(n,r),de(u,r,null),N(n,l),N(n,o),i[72](o),Et(o,i[1]),N(n,d),N(n,c),N(c,f),de(g,f,null),N(c,b),v&&v.m(c,null),N(n,_),y&&y.m(n,null),N(n,p),M&&M.m(n,null),N(t,I),~E&&m[E].m(t,null),W=!0,Q||(X=[q(r,"click",i[71]),q(o,"input",i[73]),q(o,"focus",i[74]),q(o,"blur",i[75]),q(o,"click",i[76]),q(o,"keydown",i[23]),q(o,"input",i[24]),q(o,"change",i[77]),q(f,"click",i[78]),q(t,"submit",ci(i[22]))],Q=!0)},p(L,F){(!W||F[0]&512)&&a(o,"placeholder",L[9]),(!W||F[0]&512)&&a(o,"aria-label",L[9]),F[0]&2&&o.value!==L[1]&&Et(o,L[1]),(!W||F[0]&8)&&a(f,"title",L[3]),L[20]?v?F[0]&1048576&&G(v,1):(v=Ft(),v.c(),G(v,1),v.m(c,null)):v&&(He(),K(v,1,1,()=>{v=null}),Ze()),(!W||F[0]&2)&&Se(c,"displayable",L[1]!==""),L[6]==="button"?y?(y.p(L,F),F[0]&64&&G(y,1)):(y=jt(L),y.c(),G(y,1),y.m(n,p)):y&&(He(),K(y,1,1,()=>{y=null}),Ze()),M&&M.p&&(!W||F[2]&128)&&ai(M,k,L,L[69],W?si(k,L[69],F,null):li(L[69]),null);let oe=E;E=we(L),E===oe?~E&&m[E].p(L,F):(S&&(He(),K(m[oe],1,1,()=>{m[oe]=null}),Ze()),~E?(S=m[E],S?S.p(L,F):(S=m[E]=w[E](L),S.c()),G(S,1),S.m(t,null)):S=null),(!W||F[0]&4&&z!==(z=Fe(L[2])+" svelte-bz0zu3"))&&a(t,"class",z),(!W||F[0]&38)&&Se(t,"can-collapse",L[5]&&L[1]==="")},i(L){W||(G(C),G(u.$$.fragment,L),G(g.$$.fragment,L),G(v),G(y),G(M,L),G(S),W=!0)},o(L){K(C),K(u.$$.fragment,L),K(g.$$.fragment,L),K(v),K(y),K(M,L),K(S),W=!1},d(L){L&&(A(e),A(t)),fe(u),i[72](null),fe(g),v&&v.d(),y&&y.d(),M&&M.d(L),~E&&m[E].d(),Q=!1,ue(X)}}}function an(i,e,t){let n,r,u,{$$slots:l={},$$scope:o}=e;const d={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:c=void 0}=e,{apiKey:f}=e,{bbox:g=void 0}=e,{clearButtonTitle:b="clear"}=e,{clearOnBlur:_=!1}=e,{clearListOnPick:p=!1}=e,{keepListOpen:I=!1}=e,{collapsed:E=!1}=e,{country:S=void 0}=e,{debounceSearch:z=200}=e,{enableReverse:W="never"}=e,{errorMessage:Q="Something went wrong…"}=e,{filter:X=()=>!0}=e,{flyTo:C=!0}=e,{fuzzyMatch:v=!0}=e,{language:y=void 0}=e,{limit:k=void 0}=e;const M=41415112612;let{reverseGeocodingLimit:w=M}=e,{mapController:m=void 0}=e,{minLength:we=2}=e,{noResultsMessage:L="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:F="Search"}=e,{proximity:oe=[{type:"server-geolocation"}]}=e,{reverseActive:ie=W==="always"}=e,{reverseButtonTitle:Qt="toggle reverse geocoding"}=e,{searchValue:V=""}=e,{pickedResultStyle:qe="full-geometry"}=e,{showPlaceType:Kt="if-needed"}=e,{showResultsWhileTyping:Qe=!0}=e,{selectFirst:Me=!0}=e,{flyToSelected:Ke=!1}=e,{markerOnSelected:Ve=!0}=e,{types:ot=void 0}=e;const Vt=[];let{reverseGeocodingTypes:Ye=Vt}=e,{exhaustiveReverseGeocoding:st=!1}=e,{excludeTypes:at=!1}=e;const Yt=void 0;let{reverseGeocodingExcludeTypes:Xe=Yt}=e,{zoom:Je=d}=e,{apiUrl:lt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:ut={}}=e,{iconsBaseUrl:Xt="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.1/icons/"}=e,{adjustUrlQuery:ct=()=>{}}=e,{adjustUrl:dt=()=>{}}=e;function dn(s){re.focus(s)}function fn(){re.blur()}function Jt(s,B=!0,j=!1){t(1,V=s),B?(t(15,O=-1),$t()):(ei(void 0,!j,j),setTimeout(()=>{re.focus(),re.select()}))}function mn(){t(13,T=void 0),t(14,h=void 0),t(15,O=-1)}function gn(){t(64,Z=[]),t(14,h=void 0)}let T,Z,h,xt="",re,O=-1,se,xe=[],Ee,Ce,We,ft,me=!1;const hn=new Set,be=Tt();mi(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function $t(s){if(t(17,me=!1),Ce&&(clearTimeout(Ce),Ce=void 0),O>-1&&T)t(14,h=T[O]),t(1,V=h.place_type[0]==="reverse"?h.place_name:h.place_name.replace(/,.*/,"")),t(19,se=void 0),t(64,Z=void 0),t(15,O=-1);else if(V){const B=s||!mt(V);gt(V,{exact:!0}).then(()=>{t(64,Z=T),t(14,h=void 0),B&&bn()}).catch(j=>t(19,se=j))}}function mt(s){try{return en(s,6)}catch{return!1}}async function gt(s,{byId:B=!1,exact:j=!1}={}){var te,ae,ve;t(19,se=void 0),Ee==null||Ee.abort();const ee=new AbortController;t(20,Ee=ee);try{const R=mt(s),Ae=new URL(lt+"/"+encodeURIComponent(R?R.decimalLongitude+","+R.decimalLatitude:s)+".json"),ne=Ae.searchParams;y!==void 0&&ne.set("language",Array.isArray(y)?y.join(","):y??"");const[vt]=(m==null?void 0:m.getCenterAndZoom())??[];let le=(te=!R||Ye===Vt?ot:Ye)==null?void 0:te.map(J=>typeof J=="string"?J:vt===void 0||(J[0]??0)<=vt&&vt<(J[1]??1/0)?J[2]:void 0).filter(J=>J!==void 0);le&&(le=[...new Set(le)],ne.set("types",le.join(",")));const ii=!R||Xe===Yt?at:Xe;if(ii&&ne.set("excludeTypes",String(ii)),g&&ne.set("bbox",g.map(J=>J.toFixed(6)).join(",")),S&&ne.set("country",Array.isArray(S)?S.join(","):S),!B&&!R){const J=await Hi(m,oe,ee);J&&ne.set("proximity",J),(j||!Qe)&&ne.set("autocomplete","false"),ne.set("fuzzyMatch",String(v))}const Pe=w===M?k:w;Pe!==void 0&&Pe>1&&(le==null?void 0:le.length)!==1&&console.warn("For reverse geocoding when limit > 1 then types must contain single value."),R?(Pe===1||Pe!==void 0&&(st||(le==null?void 0:le.length)===1))&&ne.set("limit",String(Pe)):k!==void 0&&ne.set("limit",String(k)),ne.set("key",f),ct(ne),dt(Ae);const Rn=Ae.searchParams.get("types")===""&&Ae.searchParams.get("excludeTypes")!=="true",$e=Ae.toString();if($e===xt){B?(p&&t(13,T=void 0),t(14,h=xe[0])):(t(13,T=xe),((ae=T[O])==null?void 0:ae.id)!==(r==null?void 0:r.id)&&t(15,O=-1));return}xt=$e;let Be;if(Rn)Be={type:"FeatureCollection",features:[]};else{const J=await fetch($e,{signal:ee.signal,...ut});if(!J.ok)throw new Error(await J.text());Be=await J.json()}be("response",{url:$e,featureCollection:Be}),B?(p&&t(13,T=void 0),t(14,h=Be.features[0]),xe=[h]):(t(13,T=Be.features.filter(X)),R&&T.unshift({type:"Feature",properties:{},id:"reverse_"+R.decimalLongitude+"_"+R.decimalLatitude,text:R.decimalLatitude+", "+R.decimalLongitude,place_name:R.decimalLatitude+", "+R.decimalLongitude,place_type:["reverse"],center:[R.decimalLongitude,R.decimalLatitude],bbox:[R.decimalLongitude,R.decimalLatitude,R.decimalLongitude,R.decimalLatitude],geometry:{type:"Point",coordinates:[R.decimalLongitude,R.decimalLatitude]}}),xe=T,((ve=T[O])==null?void 0:ve.id)!==(r==null?void 0:r.id)&&t(15,O=-1),R&&re.focus())}catch(R){if(R&&typeof R=="object"&&"name"in R&&R.name==="AbortError")return;throw R}finally{ee===Ee&&t(20,Ee=void 0)}}function bn(){var ee;if(!(Z!=null&&Z.length)||!C)return;const s=[180,90,-180,-90],B=!Z.some(te=>!te.matching_text);let j;for(const te of Z){const ae=Ie(te);if(j=j===void 0?ae:ae===void 0?j:Math.max(j,ae),B||!te.matching_text)for(const ve of[0,1,2,3])s[ve]=Math[ve<2?"min":"max"](s[ve],((ee=te.bbox)==null?void 0:ee[ve])??te.center[ve%2])}m&&Z.length>0&&(h&&s[0]===s[2]&&s[1]===s[3]?m.flyTo(h.center,Ie(h)):m.fitBounds(Ot(s),50,j))}function ht(){!h||!m||(!h.bbox||h.bbox[0]===h.bbox[2]&&h.bbox[1]===h.bbox[3]?m.flyTo(h.center,Ie(h)):m.fitBounds(Ot(h.bbox),50,Ie(h)))}function Ie(s){var j;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const B=s.id.replace(/\..*/,"");return(Array.isArray((j=s.properties)==null?void 0:j.categories)?s.properties.categories.reduce((ee,te)=>{const ae=Je[B+"."+te];return ee===void 0?ae:ae===void 0?ee:Math.max(ee,ae)},void 0):void 0)??Je[B]}function vn(s){t(0,ie=W==="always"),t(13,T=void 0),t(14,h=void 0),t(15,O=-1),Jt(s[1].toFixed(6)+", "+ji(s[0],[-180,180],!0).toFixed(6),!1,!0)}function Ln(s){if(!T)return;let B=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;B&&(re.focus(),t(17,me=!0),s.preventDefault(),h&&O===-1&&t(15,O=T.findIndex(j=>j.id===(h==null?void 0:h.id))),O===(h||Me?0:-1)&&B===-1&&t(15,O=T.length),t(15,O+=B),O>=T.length&&t(15,O=-1),O<0&&(h||Me)&&t(15,O=0))}function ei(s,B=!0,j=!1){if(t(19,se=void 0),t(14,h=void 0),t(17,me=!0),Qe||j){if(Ce&&clearTimeout(Ce),V.length<we)return;const ee=V;Ce=window.setTimeout(()=>{gt(ee).catch(te=>t(19,se=te))},B?z:0)}else t(13,T=void 0),t(19,se=void 0)}function bt(s){h&&(h==null?void 0:h.id)===(s==null?void 0:s.id)?ht():(t(14,h=s),t(1,V=s.place_name))}function ti(s){t(15,O=s)}function _n(){(!Me||h)&&t(15,O=-1),Ke&&ht()}const yn=()=>re.focus();function pn(s){et[s?"unshift":"push"](()=>{re=s,t(18,re)})}function wn(){V=this.value,t(1,V),t(17,me),t(31,_),t(16,We)}const En=()=>t(17,me=!0),Sn=()=>t(17,me=!1),Tn=()=>t(17,me=!0),Nn=()=>t(14,h=void 0),kn=()=>{t(1,V=""),re.focus()},Mn=()=>t(0,ie=!ie),Cn=()=>t(19,se=void 0),Wn=s=>ti(s),zn=s=>bt(s),On=()=>{};return i.$$set=s=>{"class"in s&&t(2,c=s.class),"apiKey"in s&&t(29,f=s.apiKey),"bbox"in s&&t(30,g=s.bbox),"clearButtonTitle"in s&&t(3,b=s.clearButtonTitle),"clearOnBlur"in s&&t(31,_=s.clearOnBlur),"clearListOnPick"in s&&t(32,p=s.clearListOnPick),"keepListOpen"in s&&t(4,I=s.keepListOpen),"collapsed"in s&&t(5,E=s.collapsed),"country"in s&&t(33,S=s.country),"debounceSearch"in s&&t(34,z=s.debounceSearch),"enableReverse"in s&&t(6,W=s.enableReverse),"errorMessage"in s&&t(7,Q=s.errorMessage),"filter"in s&&t(35,X=s.filter),"flyTo"in s&&t(36,C=s.flyTo),"fuzzyMatch"in s&&t(37,v=s.fuzzyMatch),"language"in s&&t(38,y=s.language),"limit"in s&&t(39,k=s.limit),"reverseGeocodingLimit"in s&&t(40,w=s.reverseGeocodingLimit),"mapController"in s&&t(41,m=s.mapController),"minLength"in s&&t(42,we=s.minLength),"noResultsMessage"in s&&t(8,L=s.noResultsMessage),"placeholder"in s&&t(9,F=s.placeholder),"proximity"in s&&t(43,oe=s.proximity),"reverseActive"in s&&t(0,ie=s.reverseActive),"reverseButtonTitle"in s&&t(10,Qt=s.reverseButtonTitle),"searchValue"in s&&t(1,V=s.searchValue),"pickedResultStyle"in s&&t(44,qe=s.pickedResultStyle),"showPlaceType"in s&&t(11,Kt=s.showPlaceType),"showResultsWhileTyping"in s&&t(45,Qe=s.showResultsWhileTyping),"selectFirst"in s&&t(46,Me=s.selectFirst),"flyToSelected"in s&&t(47,Ke=s.flyToSelected),"markerOnSelected"in s&&t(48,Ve=s.markerOnSelected),"types"in s&&t(49,ot=s.types),"reverseGeocodingTypes"in s&&t(50,Ye=s.reverseGeocodingTypes),"exhaustiveReverseGeocoding"in s&&t(51,st=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(52,at=s.excludeTypes),"reverseGeocodingExcludeTypes"in s&&t(53,Xe=s.reverseGeocodingExcludeTypes),"zoom"in s&&t(54,Je=s.zoom),"apiUrl"in s&&t(55,lt=s.apiUrl),"fetchParameters"in s&&t(56,ut=s.fetchParameters),"iconsBaseUrl"in s&&t(12,Xt=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(57,ct=s.adjustUrlQuery),"adjustUrl"in s&&t(58,dt=s.adjustUrl),"$$scope"in s&&t(69,o=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,ie=W==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&8192&&qe!=="marker-only"&&h&&!h.address&&h.geometry.type==="Point"&&h.place_type[0]!=="reverse"&>(h.id,{byId:!0}).catch(s=>t(19,se=s)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1058|i.$$.dirty[2]&8&&(m&&h&&h.id!==ft&&C&&(ht(),p&&t(13,T=void 0),t(64,Z=void 0),t(15,O=-1)),t(65,ft=h==null?void 0:h.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,We=me),_&&!We&&t(1,V="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&2048&&V.length<we&&(t(13,T=void 0),t(19,se=void 0),t(64,Z=T)),i.$$.dirty[0]&57344|i.$$.dirty[1]&32768&&Me&&T!=null&&T.length&&O==-1&&!h&&t(15,O=0),i.$$.dirty[0]&8192|i.$$.dirty[2]&4&&Z!==T&&t(64,Z=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&1024|i.$$.dirty[2]&4&&m&&m.setEventHandler(s=>{switch(s.type){case"mapClick":ie&&vn(s.coordinates);break;case"markerClick":{const B=T==null?void 0:T.find(j=>j.id===s.id);B&&bt(B)}break;case"markerMouseEnter":Z&&t(15,O=We?(T==null?void 0:T.findIndex(B=>B.id===s.id))??-1:-1);break;case"markerMouseLeave":Z&&t(15,O=-1);break}}),i.$$.dirty[0]&40960&&t(66,r=T==null?void 0:T[O]),i.$$.dirty[1]&66592|i.$$.dirty[2]&16&&m&&r&&C&&Ke&&m.flyTo(r.center,Ie(r)),i.$$.dirty[1]&8192&&t(68,n=qe==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&132096|i.$$.dirty[2]&64&&(Ve||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&132096|i.$$.dirty[2]&84&&m&&Ve&&!Z&&(m.setFeatures(r?[r]:void 0,h,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1024|i.$$.dirty[2]&68&&m&&m.setFeatures(Z,h,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&1024|i.$$.dirty[2]&4&&Z&&m&&m.setSelectedMarker(O),i.$$.dirty[0]&2|i.$$.dirty[1]&1024&&m){const s=mt(V);m.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[2]&16&&be("select",{feature:r}),i.$$.dirty[0]&16384&&be("pick",{feature:h}),i.$$.dirty[0]&73744&&t(67,u=!!(T!=null&&T.length)&&(We||I)),i.$$.dirty[2]&32&&be("optionsvisibilitychange",{optionsVisible:u}),i.$$.dirty[0]&8192&&be("featureslisted",{features:T}),i.$$.dirty[2]&4&&be("featuresmarked",{features:Z}),i.$$.dirty[0]&1&&be("reversetoggle",{reverse:ie}),i.$$.dirty[0]&2&&be("querychange",{query:V}),i.$$.dirty[0]&1|i.$$.dirty[1]&1024&&m&&m.indicateReverse(ie)},[ie,V,c,b,I,E,W,Q,L,F,Qt,Kt,Xt,T,h,O,We,me,re,se,Ee,hn,$t,Ln,ei,bt,ti,_n,d,f,g,_,p,S,z,X,C,v,y,k,w,m,we,oe,qe,Qe,Me,Ke,Ve,ot,Ye,st,at,Xe,Je,lt,ut,ct,dt,dn,fn,Jt,mn,gn,Z,ft,r,u,n,o,l,yn,pn,wn,En,Sn,Tn,Nn,kn,Mn,Cn,Wn,zn,On]}class ln extends pe{constructor(e){super(),ye(this,e,an,sn,Le,{ZOOM_DEFAULTS:28,class:2,apiKey:29,bbox:30,clearButtonTitle:3,clearOnBlur:31,clearListOnPick:32,keepListOpen:4,collapsed:5,country:33,debounceSearch:34,enableReverse:6,errorMessage:7,filter:35,flyTo:36,fuzzyMatch:37,language:38,limit:39,reverseGeocodingLimit:40,mapController:41,minLength:42,noResultsMessage:8,placeholder:9,proximity:43,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:44,showPlaceType:11,showResultsWhileTyping:45,selectFirst:46,flyToSelected:47,markerOnSelected:48,types:49,reverseGeocodingTypes:50,exhaustiveReverseGeocoding:51,excludeTypes:52,reverseGeocodingExcludeTypes:53,zoom:54,apiUrl:55,fetchParameters:56,iconsBaseUrl:12,adjustUrlQuery:57,adjustUrl:58,focus:59,blur:60,setQuery:61,clearList:62,clearMap:63},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[59]}get blur(){return this.$$.ctx[60]}get setQuery(){return this.$$.ctx[61]}get clearList(){return this.$$.ctx[62]}get clearMap(){return this.$$.ctx[63]}}const Zt=["featuresListed","featuresMarked","optionsVisibilityChange","pick","queryChange","response","reverseToggle","select"],un=["adjustUrlQuery","adjustUrl","apiKey","apiUrl","bbox","class","clearButtonTitle","clearListOnPick","clearOnBlur","collapsed","country","debounceSearch","enableReverse","errorMessage","excludeTypes","reverseGeocodingExcludeTypes","exhaustiveReverseGeocoding","fetchParameters","filter","flyToSelected","fuzzyMatch","iconsBaseUrl","keepListOpen","language","limit","reverseGeocodingLimit","mapController","markerOnSelected","minLength","noResultsMessage","pickedResultStyle","placeholder","proximity","reverseActive","reverseButtonTitle","selectFirst","showPlaceType","showResultsWhileTyping","types","reverseGeocodingTypes","zoom"];function qt(i){return"on"+i[0].toUpperCase()+i.slice(1)}const cn=H.forwardRef(function(e,t){const n=H.useRef(void 0),r=H.useRef(void 0),u={...e};for(const l of Zt)delete u[qt(l)];H.useEffect(()=>{if(!n.current)throw new Error;const l=new ln({target:n.current,props:u});return r.current=l,()=>l.$destroy()},[]);for(const l of un)H.useEffect(()=>{r.current&&e[l]!==void 0&&r.current.$set({[l]:e[l]})},[e[l]]);for(const l of Zt){const o=e[qt(l)];H.useEffect(()=>{var d;return o&&((d=r.current)==null?void 0:d.$on(l.toLowerCase(),c=>{o(c.detail)}))},[o])}return H.useImperativeHandle(t,()=>({setQuery:(l,o=!0)=>{var d;return(d=r.current)==null?void 0:d.setQuery(l,o)},clearMap:()=>{var l;return(l=r.current)==null?void 0:l.clearMap()},clearList:()=>{var l;return(l=r.current)==null?void 0:l.clearList()},focus:l=>{var o;return(o=r.current)==null?void 0:o.focus(l)},blur:()=>{var l;return(l=r.current)==null?void 0:l.blur()},setReverseMode:l=>{var o;return(o=r.current)==null?void 0:o.$set({reverseActive:l})}})),H.createElement("div",{ref:n})});x.GeocodingControl=cn,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function($,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],F):($=typeof globalThis<"u"?globalThis:$||self,F($.reactMaptilerGeocoder={},$.React))})(this,function($,F){"use strict";var Zn=Object.defineProperty;var qn=($,F,D)=>F in $?Zn($,F,{enumerable:!0,configurable:!0,writable:!0,value:D}):$[F]=D;var St=($,F,D)=>qn($,typeof F!="symbol"?F+"":F,D);function D(){}function di(i,e){for(const t in e)i[t]=e[t];return i}function Tt(i){return i()}function kt(){return Object.create(null)}function fe(i){i.forEach(Tt)}function Nt(i){return typeof i=="function"}function Ee(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ze;function X(i,e){return i===e?!0:(Ze||(Ze=document.createElement("a")),Ze.href=e,i===Ze.href)}function fi(i){return Object.keys(i).length===0}function mi(i,e,t,n){if(i){const r=Mt(i,e,t,n);return i[0](r)}}function Mt(i,e,t,n){return i[1]&&n?di(t.ctx.slice(),i[1](n(e))):t.ctx}function gi(i,e,t,n){return i[2],e.dirty}function hi(i,e,t,n,r,c){if(r){const a=Mt(e,t,n,c);i.p(a,r)}}function bi(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function qe(i){return i??""}function N(i,e){i.appendChild(e)}function A(i,e,t){i.insertBefore(e,t||null)}function I(i){i.parentNode&&i.parentNode.removeChild(i)}function R(i){return document.createElement(i)}function me(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ve(i){return document.createTextNode(i)}function ee(){return ve(" ")}function vi(){return ve("")}function Z(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Li(i){return function(e){return e.preventDefault(),i.call(this,e)}}function l(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function _i(i){return Array.from(i.childNodes)}function Ue(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ct(i,e){i.value=e??""}function Ce(i,e,t){i.classList.toggle(e,!!t)}function yi(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let De;function Ie(i){De=i}function Wt(){if(!De)throw new Error("Function called outside component initialization");return De}function wi(i){Wt().$$.on_destroy.push(i)}function Ot(){const i=Wt();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const c=yi(e,t,{cancelable:n});return r.slice().forEach(a=>{a.call(i,c)}),!c.defaultPrevented}return!0}}function Ei(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const We=[],ot=[];let Oe=[];const Rt=[],pi=Promise.resolve();let st=!1;function Si(){st||(st=!0,pi.then(zt))}function lt(i){Oe.push(i)}const at=new Set;let Re=0;function zt(){if(Re!==0)return;const i=De;do{try{for(;Re<We.length;){const e=We[Re];Re++,Ie(e),Ti(e.$$)}}catch(e){throw We.length=0,Re=0,e}for(Ie(null),We.length=0,Re=0;ot.length;)ot.pop()();for(let e=0;e<Oe.length;e+=1){const t=Oe[e];at.has(t)||(at.add(t),t())}Oe.length=0}while(We.length);for(;Rt.length;)Rt.pop()();st=!1,at.clear(),Ie(i)}function Ti(i){if(i.fragment!==null){i.update(),fe(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(lt)}}function ki(i){const e=[],t=[];Oe.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Oe=e}const Qe=new Set;let pe;function Ke(){pe={r:0,c:[],p:pe}}function Ve(){pe.r||fe(pe.c),pe=pe.p}function B(i,e){i&&i.i&&(Qe.delete(i),i.i(e))}function K(i,e,t,n){if(i&&i.o){if(Qe.has(i))return;Qe.add(i),pe.c.push(()=>{Qe.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ut(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ni(i,e){K(i,1,1,()=>{e.delete(i.key)})}function Mi(i,e,t,n,r,c,a,o,d,u,f,h){let v=i.length,y=c.length,E=v;const z={};for(;E--;)z[i[E].key]=E;const T=[],p=new Map,W=new Map,C=[];for(E=y;E--;){const w=h(r,c,E),g=t(w);let M=a.get(g);M?C.push(()=>M.p(w,e)):(M=u(g,w),M.c()),p.set(g,T[E]=M),g in z&&W.set(g,Math.abs(E-z[g]))}const q=new Set,x=new Set;function V(w){B(w,1),w.m(o,f),a.set(w.key,w),f=w.first,y--}for(;v&&y;){const w=T[y-1],g=i[v-1],M=w.key,k=g.key;w===g?(f=w.first,v--,y--):p.has(k)?!a.has(M)||q.has(M)?V(w):x.has(k)?v--:W.get(M)>W.get(k)?(x.add(M),V(w)):(q.add(k),v--):(d(g,a),v--)}for(;v--;){const w=i[v];p.has(w.key)||d(w,a)}for(;y;)V(T[y-1]);return fe(C),T}function Le(i){i&&i.c()}function ge(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),lt(()=>{const c=i.$$.on_mount.map(Tt).filter(Nt);i.$$.on_destroy?i.$$.on_destroy.push(...c):fe(c),i.$$.on_mount=[]}),r.forEach(lt)}function he(i,e){const t=i.$$;t.fragment!==null&&(ki(t.after_update),fe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Ci(i,e){i.$$.dirty[0]===-1&&(We.push(i),Si(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Se(i,e,t,n,r,c,a=null,o=[-1]){const d=De;Ie(i);const u=i.$$={fragment:null,ctx:[],props:c,update:D,not_equal:r,bound:kt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:kt(),dirty:o,skip_bound:!1,root:e.target||d.$$.root};a&&a(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(h,v,...y)=>{const E=y.length?y[0]:v;return u.ctx&&r(u.ctx[h],u.ctx[h]=E)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](E),f&&Ci(i,h)),v}):[],u.update(),f=!0,fe(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const h=_i(e.target);u.fragment&&u.fragment.l(h),h.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&B(i.$$.fragment),ge(i,e.target,e.anchor),zt()}Ie(d)}class Te{constructor(){St(this,"$$");St(this,"$$set")}$destroy(){he(this,1),this.$destroy=D}$on(e,t){if(!Nt(t))return D;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!fi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Wi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wi);function Oi(i){let e,t;return{c(){e=me("svg"),t=me("path"),l(t,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),l(e,"viewBox","0 0 14 14"),l(e,"width","13"),l(e,"height","13"),l(e,"class","svelte-en2qvf")},m(n,r){A(n,e,r),N(e,t)},p:D,i:D,o:D,d(n){n&&I(e)}}}class Dt extends Te{constructor(e){super(),Se(this,e,null,Oi,Ee,{})}}function Ri(i){let e,t;return{c(){e=me("svg"),t=me("path"),l(t,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),l(e,"viewBox","0 0 30 30"),l(e,"fill","none"),l(e,"xmlns","http://www.w3.org/2000/svg"),l(e,"class","svelte-d2loi5")},m(n,r){A(n,e,r),N(e,t)},p:D,i:D,o:D,d(n){n&&I(e)}}}class It extends Te{constructor(e){super(),Se(this,e,null,Ri,Ee,{})}}function zi(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"area.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"area.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Ui(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"reverse.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"reverse.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Di(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"poi.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"poi.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Ii(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"postal_code.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"postal_code.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Ai(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"street.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"street.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Pi(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"road.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"road.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function Bi(i){let e,t;return{c(){e=R("img"),X(e.src,t=i[3]+"housenumber.svg")||l(e,"src",t),l(e,"alt",i[7]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(n,r){A(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"housenumber.svg")&&l(e,"src",t),r&128&&l(e,"alt",n[7]),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function ji(i){let e,t,n,r;return{c(){e=R("img"),X(e.src,t=i[5])||l(e,"src",t),l(e,"alt",i[4]),l(e,"title",i[7]),l(e,"class","svelte-w9y5n9")},m(c,a){A(c,e,a),n||(r=Z(e,"error",i[14]),n=!0)},p(c,a){a&32&&!X(e.src,t=c[5])&&l(e,"src",t),a&16&&l(e,"alt",c[4]),a&128&&l(e,"title",c[7])},d(c){c&&I(e),n=!1,r()}}}function Gi(i){let e,t;return{c(){e=R("div"),l(e,"class","sprite-icon svelte-w9y5n9"),l(e,"style",t=`
|
|
2
|
+
width: ${i[6].width/te}px;
|
|
3
|
+
height: ${i[6].height/te}px;
|
|
4
|
+
background-image: url(${i[3]}sprite${ut}.png);
|
|
5
|
+
background-position: -${i[6].x/te}px -${i[6].y/te}px;
|
|
6
|
+
background-size: ${oe.width/te}px ${oe.height/te}px;
|
|
7
|
+
`),l(e,"title",i[7])},m(n,r){A(n,e,r)},p(n,r){r&72&&t!==(t=`
|
|
8
|
+
width: ${n[6].width/te}px;
|
|
9
|
+
height: ${n[6].height/te}px;
|
|
10
|
+
background-image: url(${n[3]}sprite${ut}.png);
|
|
11
|
+
background-position: -${n[6].x/te}px -${n[6].y/te}px;
|
|
12
|
+
background-size: ${oe.width/te}px ${oe.height/te}px;
|
|
13
|
+
`)&&l(e,"style",t),r&128&&l(e,"title",n[7])},d(n){n&&I(e)}}}function At(i){let e,t;return{c(){e=R("span"),t=ve(i[7]),l(e,"class","secondary svelte-w9y5n9")},m(n,r){A(n,e,r),N(e,t)},p(n,r){r&128&&Ue(t,n[7])},d(n){n&&I(e)}}}function Fi(i){let e,t,n,r,c,a,o,d,u,f=(i[8]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,v,y=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[8],E,z,T=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",p,W,C,q,x,V;function w(L,m){return m&1&&(t=null),m&1&&(n=null),m&1&&(r=null),m&1&&(c=null),oe&&L[6]?Gi:L[5]?ji:L[0].address?Bi:(t==null&&(t=!!L[0].id.startsWith("road.")),t?Pi:(n==null&&(n=!!L[0].id.startsWith("address.")),n?Ai:(r==null&&(r=!!L[0].id.startsWith("postal_code.")),r?Ii:(c==null&&(c=!!L[0].id.startsWith("poi.")),c?Di:L[8]?Ui:zi))))}let g=w(i,-1),M=g(i),k=y&&At(i);return{c(){e=R("li"),M.c(),a=ee(),o=R("span"),d=R("span"),u=R("span"),h=ve(f),v=ee(),k&&k.c(),E=ee(),z=R("span"),p=ve(T),l(u,"class","primary svelte-w9y5n9"),l(d,"class","svelte-w9y5n9"),l(z,"class","line2 svelte-w9y5n9"),l(o,"class","texts svelte-w9y5n9"),l(e,"tabindex","-1"),l(e,"role","option"),l(e,"aria-selected",W=i[1]==="selected"),l(e,"aria-checked",C=i[1]==="picked"),l(e,"class",q=qe(i[1])+" svelte-w9y5n9")},m(L,m){A(L,e,m),M.m(e,null),N(e,a),N(e,o),N(o,d),N(d,u),N(u,h),N(d,v),k&&k.m(d,null),N(o,E),N(o,z),N(z,p),x||(V=[Z(e,"mouseenter",i[13]),Z(e,"focus",i[15]),Z(e,"click",i[16])],x=!0)},p(L,[m]){g===(g=w(L,m))&&M?M.p(L,m):(M.d(1),M=g(L),M&&(M.c(),M.m(e,a))),m&257&&f!==(f=(L[8]?L[0].place_name:L[0].place_name.replace(/,.*/,""))+"")&&Ue(h,f),m&293&&(y=L[2]==="always"||L[2]!=="never"&&!L[0].address&&!L[0].id.startsWith("road.")&&!L[0].id.startsWith("address.")&&!L[0].id.startsWith("postal_code.")&&(!L[0].id.startsWith("poi.")||!L[5])&&!L[8]),y?k?k.p(L,m):(k=At(L),k.c(),k.m(d,null)):k&&(k.d(1),k=null),m&257&&T!==(T=(L[8]?"":L[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ue(p,T),m&2&&W!==(W=L[1]==="selected")&&l(e,"aria-selected",W),m&2&&C!==(C=L[1]==="picked")&&l(e,"aria-checked",C),m&2&&q!==(q=qe(L[1])+" svelte-w9y5n9")&&l(e,"class",q)},i:D,o:D,d(L){L&&I(e),M.d(),k&&k.d(),x=!1,fe(V)}}}const Pt=devicePixelRatio>1.25,ut=Pt?"@2x":"",te=Pt?2:1;let oe,Ye;function Hi(i,e,t){let n,r,c,{feature:a}=e,{style:o="default"}=e,{showPlaceType:d}=e,{missingIconsCache:u}=e,{iconsBaseUrl:f}=e;const h=Ot();let v,y,E,z;function T(){Ye??(Ye=fetch(`${f}/sprite${ut}.json`).then(g=>g.json()).then(g=>{oe=g}).catch(()=>{oe=null}))}function p(){y&&u.add(y),W()}function W(){oe!==void 0?C():(T(),Ye==null||Ye.then(C))}function C(){do{if(z--,t(4,v=n==null?void 0:n[z]),t(6,E=v?oe==null?void 0:oe.icons[v]:void 0),E)break;t(5,y=v?f+v.replace(/ /g,"_")+".svg":void 0)}while(z>-1&&(!y||u.has(y)))}function q(g){Ei.call(this,i,g)}const x=()=>p(),V=()=>h("select",void 0),w=g=>{document.activeElement!==g.target&&h("select",void 0)};return i.$$set=g=>{"feature"in g&&t(0,a=g.feature),"style"in g&&t(1,o=g.style),"showPlaceType"in g&&t(2,d=g.showPlaceType),"missingIconsCache"in g&&t(11,u=g.missingIconsCache),"iconsBaseUrl"in g&&t(3,f=g.iconsBaseUrl)},i.$$.update=()=>{var g,M,k,L,m;i.$$.dirty&1&&t(12,n=(g=a.properties)==null?void 0:g.categories),i.$$.dirty&1&&t(8,r=a.place_type[0]==="reverse"),i.$$.dirty&1&&t(7,c=((k=(M=a.properties)==null?void 0:M.categories)==null?void 0:k.join(", "))??((m=(L=a.properties)==null?void 0:L.place_type_name)==null?void 0:m[0])??a.place_type[0]),i.$$.dirty&4096&&(z=(n==null?void 0:n.length)??0,W())},[a,o,d,f,v,y,E,c,r,h,p,u,n,q,x,V,w]}class Zi extends Te{constructor(e){super(),Se(this,e,Hi,Fi,Ee,{feature:0,style:1,showPlaceType:2,missingIconsCache:11,iconsBaseUrl:3})}}function qi(i){let e;return{c(){e=R("div"),e.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',l(e,"class","svelte-7cmwmc")},m(t,n){A(t,e,n)},p:D,i:D,o:D,d(t){t&&I(e)}}}class Qi extends Te{constructor(e){super(),Se(this,e,null,qi,Ee,{})}}function Ki(i){let e,t;return{c(){e=me("svg"),t=me("path"),l(t,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),l(e,"viewBox","0 0 60.006 21.412"),l(e,"width","14"),l(e,"height","20"),l(e,"class","svelte-en2qvf")},m(n,r){A(n,e,r),N(e,t)},p:D,i:D,o:D,d(n){n&&I(e)}}}class Vi extends Te{constructor(e){super(),Se(this,e,null,Ki,Ee,{})}}function Yi(i){let e,t,n;return{c(){e=me("svg"),t=me("circle"),n=me("path"),l(t,"cx","4.789"),l(t,"cy","4.787"),l(t,"r","3.85"),l(t,"class","svelte-1aq105l"),l(n,"d","M12.063 12.063 7.635 7.635"),l(n,"class","svelte-1aq105l"),l(e,"xmlns","http://www.w3.org/2000/svg"),l(e,"width","13"),l(e,"height","13"),l(e,"viewBox","0 0 13 13"),l(e,"class","svelte-1aq105l")},m(r,c){A(r,e,c),N(e,t),N(e,n)},p:D,i:D,o:D,d(r){r&&I(e)}}}class Xi extends Te{constructor(e){super(),Se(this,e,null,Yi,Ee,{})}}function Ji(i,e,t){const n=e[1],r=e[0],c=n-r;return i===n&&t?i:((i-r)%c+c)%c+r}function Bt(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let Ae;async function xi(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Ae&&r.cachedLocationExpiry&&Ae.time+r.cachedLocationExpiry>Date.now()){if(!Ae.coords)break e;return Ae.coords}let c;try{return c=await new Promise((a,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{a([d.coords.longitude,d.coords.latitude].map(u=>u.toFixed(6)).join(","))},d=>{o(d)},r)}),c}catch{}finally{r.cachedLocationExpiry&&(Ae={time:Date.now(),coords:c})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const $i=/^(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,jt=/^([+-]?[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,})$/,Gt=/^(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,Ft=/^(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,Ht=/^(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,Zt=/^(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 en(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(y=>Number(y.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),c=Math.abs(n),a=t>0?"N":"S",o=n>0?"E":"W";let d;i=="DD"&&(d=`${r}° ${a}, ${c}° ${o}`);const u=Math.floor(r),f=Math.floor(c),h=(r-u)*60,v=(c-f)*60;if(i=="DM"){let y=qt(h,3).toFixed(3).padStart(6,"0"),E=qt(v,3).toFixed(3).padStart(6,"0");y.endsWith(".000")&&E.endsWith(".000")&&(y=y.replace(/\.000$/,""),E=E.replace(/\.000$/,"")),d=`${u}° ${y}' ${a}, ${f}° ${E}' ${o}`}if(i=="DMS"){const y=Math.floor(h),E=Math.floor(v);let z=((h-y)*60).toFixed(1).padStart(4,"0"),T=((v-E)*60).toFixed(1).padStart(4,"0");const p=y.toString().padStart(2,"0"),W=E.toString().padStart(2,"0");z.endsWith(".0")&&T.endsWith(".0")&&(z=z.replace(/\.0$/,""),T=T.replace(/\.0$/,"")),d=`${u}° ${p}' ${z}" ${a}, ${f}° ${W}' ${T}" ${o}`}return d}else throw new Error("no decimal coordinates to convert")}function qt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function ct(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",c="",a=null,o=[],d=!1;if($i.test(i))throw new Error("invalid coordinate value");if(jt.test(i))if(o=jt.exec(i),d=Pe(o),d)t=Math.abs(o[1])+o[2]/60,Number(o[1])<0&&(t*=-1),n=Math.abs(o[3])+o[4]/60,Number(o[3])<0&&(n*=-1),a="DM";else throw new Error("invalid coordinate format");else if(Gt.test(i))if(o=Gt.exec(i),d=Pe(o),d){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),a="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");o[1]?(r=o[1],c=o[5]):o[4]&&(r=o[4],c=o[8])}else throw new Error("invalid decimal coordinate format");else if(Ft.test(i))if(o=Ft.exec(i),d=Pe(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,a="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,a="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[9])),o[11]&&(n+=o[11]/60),o[13]&&(n+=o[13].replace(",",".")/3600),parseInt(o[9])<0&&(n=-1*n),o[1]?(r=o[1],c=o[8]):o[7]&&(r=o[7],c=o[14]);else throw new Error("invalid DMS coordinates format");else if(Ht.test(i))if(o=Ht.exec(i),d=Pe(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,a="DM"),o[6]&&(t+=o[6]/3600,a="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12]/60),o[14]&&(n+=o[14]/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],c=o[9]):o[8]&&(r=o[8],c=o[16]);else throw new Error("invalid DMS coordinates format");else if(Zt.test(i)){if(o=Zt.exec(i),d=Pe(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,a="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,a="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12].replace(",",".")/60),o[14]&&(n+=o[14].replace(",",".")/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],c=o[9]):o[8]&&(r=o[8],c=o[16]);else throw new Error("invalid coordinates format")}if(d){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!c||!r&&c)throw new Error("invalid coordinates value");if(r&&r==c)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(c)&&n>0&&(n=-1*n);const f=o[0].trim();let h,v;const y=/[,/;\u0020]/g,E=f.match(y);if(E==null){const p=Math.floor(i.length/2);h=f.substring(0,p).trim(),v=f.substring(p).trim()}else{let p;E.length%2==1?p=Math.floor(E.length/2):p=E.length/2-1;let W=0;if(p==0)W=f.indexOf(E[0]),h=f.substring(0,W).trim(),v=f.substring(W+1).trim();else{let C=0,q=0;for(;C<=p;)W=f.indexOf(E[C],q),q=W+1,C++;h=f.substring(0,W).trim(),v=f.substring(W+1).trim()}}const z=h.split(".");if(z.length==2&&z[1]==0&&z[1].length!=2)throw new Error("invalid coordinates format");const T=v.split(".");if(T.length==2&&T[1]==0&&T[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\d+$/.test(v))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:f,verbatimLatitude:h,verbatimLongitude:v,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:a,closeEnough:tn,toCoordinateFormat:en})}else throw new Error("coordinates pattern match failed")}function Pe(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let c=0;c<r;c++){const a=e[c],o=e[c+r],d=t.test(a)&&t.test(o),u=n.test(a)&&n.test(o),f=a==o;if(!(a==null&&o==null)){if(a==null||o==null)return!1;if(d||u||f)continue;return!1}}return!0}function Qt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function tn(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Qt(this.decimalLatitude,Number(e[0]))&&Qt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const nn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});ct.to=nn;const rn=[{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"}],on={decimalLatitude:40.123,decimalLongitude:-74.123},sn=[{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}],ln=[{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 an(){const i=[];return rn.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...on})}),[...i,...sn,...ln]}const un=an();ct.formats=un.map(i=>i.verbatimCoordinates);const cn=ct;function Kt(i,e,t){const n=i.slice();return n[100]=e[t],n[102]=t,n}function Vt(i){let e,t;return e=new Qi({}),{c(){Le(e.$$.fragment)},m(n,r){ge(e,n,r),t=!0},i(n){t||(B(e.$$.fragment,n),t=!0)},o(n){K(e.$$.fragment,n),t=!1},d(n){he(e,n)}}}function Yt(i){let e,t,n,r,c;return t=new Vi({}),{c(){e=R("button"),Le(t.$$.fragment),l(e,"type","button"),l(e,"title",i[10]),l(e,"class","svelte-bz0zu3"),Ce(e,"active",i[0])},m(a,o){A(a,e,o),ge(t,e,null),n=!0,r||(c=Z(e,"click",i[81]),r=!0)},p(a,o){(!n||o[0]&1024)&&l(e,"title",a[10]),(!n||o[0]&1)&&Ce(e,"active",a[0])},i(a){n||(B(t.$$.fragment,a),n=!0)},o(a){K(t.$$.fragment,a),n=!1},d(a){a&&I(e),he(t),r=!1,c()}}}function dn(i){let e,t=[],n=new Map,r,c,a,o=Ut(i[13]);const d=u=>u[100].id+(u[100].address?","+u[100].address:"");for(let u=0;u<o.length;u+=1){let f=Kt(i,o,u),h=d(f);n.set(h,t[u]=Xt(h,f))}return{c(){e=R("ul");for(let u=0;u<t.length;u+=1)t[u].c();l(e,"class","options svelte-bz0zu3"),l(e,"role","listbox")},m(u,f){A(u,e,f);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);r=!0,c||(a=[Z(e,"mouseleave",i[27]),Z(e,"blur",i[85]),Z(e,"keydown",i[23])],c=!0)},p(u,f){f[0]&102823936&&(o=Ut(u[13]),Ke(),t=Mi(t,f,d,1,u,o,n,e,Ni,Xt,null,Kt),Ve())},i(u){if(!r){for(let f=0;f<o.length;f+=1)B(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)K(t[f]);r=!1},d(u){u&&I(e);for(let f=0;f<t.length;f+=1)t[f].d();c=!1,fe(a)}}}function fn(i){let e,t,n,r,c,a;return t=new It({}),{c(){e=R("div"),Le(t.$$.fragment),n=ee(),r=R("div"),c=ve(i[8]),l(r,"class","svelte-bz0zu3"),l(e,"class","no-results svelte-bz0zu3")},m(o,d){A(o,e,d),ge(t,e,null),N(e,n),N(e,r),N(r,c),a=!0},p(o,d){(!a||d[0]&256)&&Ue(c,o[8])},i(o){a||(B(t.$$.fragment,o),a=!0)},o(o){K(t.$$.fragment,o),a=!1},d(o){o&&I(e),he(t)}}}function mn(i){let e="",t;return{c(){t=ve(e)},m(n,r){A(n,t,r)},p:D,i:D,o:D,d(n){n&&I(t)}}}function gn(i){let e,t,n,r,c,a,o,d,u,f,h;return t=new It({}),d=new Dt({}),{c(){e=R("div"),Le(t.$$.fragment),n=ee(),r=R("div"),c=ve(i[7]),a=ee(),o=R("button"),Le(d.$$.fragment),l(r,"class","svelte-bz0zu3"),l(o,"class","svelte-bz0zu3"),l(e,"class","error svelte-bz0zu3")},m(v,y){A(v,e,y),ge(t,e,null),N(e,n),N(e,r),N(r,c),N(e,a),N(e,o),ge(d,o,null),u=!0,f||(h=Z(o,"click",i[82]),f=!0)},p(v,y){(!u||y[0]&128)&&Ue(c,v[7])},i(v){u||(B(t.$$.fragment,v),B(d.$$.fragment,v),u=!0)},o(v){K(t.$$.fragment,v),K(d.$$.fragment,v),u=!1},d(v){v&&I(e),he(t),he(d),f=!1,h()}}}function Xt(i,e){var o;let t,n,r;function c(){return e[83](e[102])}function a(){return e[84](e[100])}return n=new Zi({props:{feature:e[100],showPlaceType:e[11],style:e[15]===e[102]?"selected":((o=e[14])==null?void 0:o.id)===e[100].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",c),n.$on("select",a),{key:i,first:null,c(){t=vi(),Le(n.$$.fragment),this.first=t},m(d,u){A(d,t,u),ge(n,d,u),r=!0},p(d,u){var h;e=d;const f={};u[0]&8192&&(f.feature=e[100]),u[0]&2048&&(f.showPlaceType=e[11]),u[0]&57344&&(f.style=e[15]===e[102]?"selected":((h=e[14])==null?void 0:h.id)===e[100].id?"picked":"default"),u[0]&4096&&(f.iconsBaseUrl=e[12]),n.$set(f)},i(d){r||(B(n.$$.fragment,d),r=!0)},o(d){K(n.$$.fragment,d),r=!1},d(d){d&&I(t),he(n,d)}}}function hn(i){let e,t,n,r,c,a,o,d,u,f,h,v,y,E,z,T,p,W,C,q,x,V=!1;c=new Xi({}),h=new Dt({});let w=i[20]&&Vt(),g=i[6]==="button"&&Yt(i);const M=i[72].default,k=mi(M,i,i[71],null),L=[gn,mn,fn,dn],m=[];function ke(_,j){var ae,ie;return _[19]?0:!_[16]&&!_[4]?1:((ae=_[13])==null?void 0:ae.length)===0?2:(ie=_[13])!=null&&ie.length&&(_[16]||_[4])?3:-1}return~(T=ke(i))&&(p=m[T]=L[T](i)),{c(){e=ee(),t=R("form"),n=R("div"),r=R("button"),Le(c.$$.fragment),a=ee(),o=R("input"),d=ee(),u=R("div"),f=R("button"),Le(h.$$.fragment),v=ee(),w&&w.c(),y=ee(),g&&g.c(),E=ee(),k&&k.c(),z=ee(),p&&p.c(),l(r,"class","search-button svelte-bz0zu3"),l(r,"type","button"),l(o,"placeholder",i[9]),l(o,"aria-label",i[9]),l(o,"class","svelte-bz0zu3"),l(f,"type","button"),l(f,"title",i[3]),l(f,"class","svelte-bz0zu3"),l(u,"class","clear-button-container svelte-bz0zu3"),Ce(u,"displayable",i[1]!==""),l(n,"class","input-group svelte-bz0zu3"),l(t,"class",W=qe(i[2])+" svelte-bz0zu3"),Ce(t,"can-collapse",i[5]&&i[1]==="")},m(_,j){A(_,e,j),A(_,t,j),N(t,n),N(n,r),ge(c,r,null),N(n,a),N(n,o),i[74](o),Ct(o,i[1]),N(n,d),N(n,u),N(u,f),ge(h,f,null),N(u,v),w&&w.m(u,null),N(n,y),g&&g.m(n,null),N(n,E),k&&k.m(n,null),N(t,z),~T&&m[T].m(t,null),C=!0,q||(x=[Z(r,"click",i[73]),Z(o,"input",i[75]),Z(o,"focus",i[76]),Z(o,"blur",i[77]),Z(o,"click",i[78]),Z(o,"keydown",i[23]),Z(o,"input",i[24]),Z(o,"change",i[79]),Z(f,"click",i[80]),Z(t,"submit",Li(i[22]))],q=!0)},p(_,j){(!C||j[0]&512)&&l(o,"placeholder",_[9]),(!C||j[0]&512)&&l(o,"aria-label",_[9]),j[0]&2&&o.value!==_[1]&&Ct(o,_[1]),(!C||j[0]&8)&&l(f,"title",_[3]),_[20]?w?j[0]&1048576&&B(w,1):(w=Vt(),w.c(),B(w,1),w.m(u,null)):w&&(Ke(),K(w,1,1,()=>{w=null}),Ve()),(!C||j[0]&2)&&Ce(u,"displayable",_[1]!==""),_[6]==="button"?g?(g.p(_,j),j[0]&64&&B(g,1)):(g=Yt(_),g.c(),B(g,1),g.m(n,E)):g&&(Ke(),K(g,1,1,()=>{g=null}),Ve()),k&&k.p&&(!C||j[2]&512)&&hi(k,M,_,_[71],C?gi(M,_[71],j,null):bi(_[71]),null);let ae=T;T=ke(_),T===ae?~T&&m[T].p(_,j):(p&&(Ke(),K(m[ae],1,1,()=>{m[ae]=null}),Ve()),~T?(p=m[T],p?p.p(_,j):(p=m[T]=L[T](_),p.c()),B(p,1),p.m(t,null)):p=null),(!C||j[0]&4&&W!==(W=qe(_[2])+" svelte-bz0zu3"))&&l(t,"class",W),(!C||j[0]&38)&&Ce(t,"can-collapse",_[5]&&_[1]==="")},i(_){C||(B(V),B(c.$$.fragment,_),B(h.$$.fragment,_),B(w),B(g),B(k,_),B(p),C=!0)},o(_){K(V),K(c.$$.fragment,_),K(h.$$.fragment,_),K(w),K(g),K(k,_),K(p),C=!1},d(_){_&&(I(e),I(t)),he(c),i[74](null),he(h),w&&w.d(),g&&g.d(),k&&k.d(_),~T&&m[T].d(),q=!1,fe(x)}}}function bn(i,e,t){let n,r,c,{$$slots:a={},$$scope:o}=e;const d={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:u=void 0}=e,{apiKey:f}=e,{bbox:h=void 0}=e,{clearButtonTitle:v="clear"}=e,{clearOnBlur:y=!1}=e,{clearListOnPick:E=!1}=e,{keepListOpen:z=!1}=e,{collapsed:T=!1}=e,{country:p=void 0}=e,{debounceSearch:W=200}=e,{enableReverse:C="never"}=e,{errorMessage:q="Something went wrong…"}=e,{filter:x=()=>!0}=e,{flyTo:V=!0}=e,{fuzzyMatch:w=!0}=e,{language:g=void 0}=e,{limit:M=void 0}=e;const k=41415112612;let{reverseGeocodingLimit:L=k}=e,{mapController:m=void 0}=e,{minLength:ke=2}=e,{noResultsMessage:_="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:j="Search"}=e,{proximity:ae=[{type:"server-geolocation"}]}=e,{reverseActive:ie=C==="always"}=e,{reverseButtonTitle:$t="toggle reverse geocoding"}=e,{searchValue:Q=""}=e,{pickedResultStyle:Xe="full-geometry"}=e,{showPlaceType:ei="if-needed"}=e,{showResultsWhileTyping:Je=!0}=e,{autocompleteTimeout:dt=void 0}=e,{selectFirst:Ne=!0}=e,{flyToSelected:xe=!1}=e,{markerOnSelected:$e=!0}=e,{types:ft=void 0}=e;const ti=[];let{reverseGeocodingTypes:et=ti}=e,{exhaustiveReverseGeocoding:mt=!1}=e,{excludeTypes:gt=!1}=e;const ii=void 0;let{reverseGeocodingExcludeTypes:tt=ii}=e,{zoom:it=d}=e,{apiUrl:ht="https://api.maptiler.com/geocoding"}=e,{fetchParameters:bt={}}=e,{iconsBaseUrl:ni="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.3-rc1/icons/"}=e,{adjustUrlQuery:vt=()=>{}}=e,{adjustUrl:Lt=()=>{}}=e;function yn(s){se.focus(s)}function wn(){se.blur()}function ri(s,P=!0,G=!1){t(1,Q=s),P?(t(15,O=-1),si()):(li(void 0,!G,G),setTimeout(()=>{se.focus(),se.select()}))}function En(){t(13,S=void 0),t(14,b=void 0),t(15,O=-1)}function pn(){t(65,H=[]),t(14,b=void 0)}let S,H,b,oi="",se,O=-1,ue,nt=[],Me,_e,ne,ze,_t,be=!1;const Sn=new Set,ye=Ot();function Tn(){return!!ne}wi(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function si(s){if(t(17,be=!1),_e&&(window.clearTimeout(_e),_e=void 0),ne){window.clearTimeout(ne),t(66,ne=void 0),Be(Q,{appendSpace:!0});return}if(O>-1&&S)t(14,b=S[O]),t(1,Q=b.place_type[0]==="reverse"?b.place_name:b.place_name.replace(/,.*/,"")),t(19,ue=void 0),t(65,H=void 0),t(15,O=-1);else if(Q){const P=s||!yt(Q);Be(Q,{exact:!0}).then(()=>{t(65,H=S),t(14,b=void 0),P&&kn()}).catch(G=>t(19,ue=G))}}function yt(s){try{return cn(s,6)}catch{return!1}}async function Be(s,{byId:P=!1,exact:G=!1,appendSpace:le=!1}={}){var ce,we,ui;t(19,ue=void 0),Me==null||Me.abort();const Y=new AbortController;t(20,Me=Y);try{const U=yt(s),Ge=new URL(ht+"/"+encodeURIComponent(U?U.decimalLongitude+","+U.decimalLatitude:s+(le?" ":""))+".json"),re=Ge.searchParams;g!==void 0&&re.set("language",Array.isArray(g)?g.join(","):g??"");const[pt]=(m==null?void 0:m.getCenterAndZoom())??[];let de=(ce=!U||et===ti?ft:et)==null?void 0:ce.map(J=>typeof J=="string"?J:pt===void 0||(J[0]??0)<=pt&&pt<(J[1]??1/0)?J[2]:void 0).filter(J=>J!==void 0);de&&(de=[...new Set(de)],re.set("types",de.join(",")));const ci=!U||tt===ii?gt:tt;if(ci&&re.set("excludeTypes",String(ci)),h&&re.set("bbox",h.map(J=>J.toFixed(6)).join(",")),p&&re.set("country",Array.isArray(p)?p.join(","):p),!P&&!U){const J=await xi(m,ae,Y);J&&re.set("proximity",J),(G||!Je)&&re.set("autocomplete","false"),re.set("fuzzyMatch",String(w))}const Fe=L===k?M:L;Fe!==void 0&&Fe>1&&(de==null?void 0:de.length)!==1&&console.warn("For reverse geocoding when limit > 1 then types must contain single value."),U?(Fe===1||Fe!==void 0&&(mt||(de==null?void 0:de.length)===1))&&re.set("limit",String(Fe)):M!==void 0&&re.set("limit",String(M)),re.set("key",f),vt(re),Lt(Ge);const Hn=Ge.searchParams.get("types")===""&&Ge.searchParams.get("excludeTypes")!=="true",rt=Ge.toString();if(rt===oi){P?(E&&t(13,S=void 0),t(14,b=nt[0])):(t(13,S=nt),((we=S[O])==null?void 0:we.id)!==(r==null?void 0:r.id)&&t(15,O=-1));return}oi=rt;let He;if(Hn)He={type:"FeatureCollection",features:[]};else{const J=await fetch(rt,{signal:Y.signal,...bt});if(!J.ok)throw new Error(await J.text());He=await J.json()}ye("response",{url:rt,featureCollection:He}),P?(E&&t(13,S=void 0),t(14,b=He.features[0]),nt=[b]):(t(13,S=He.features.filter(x)),U&&S.unshift({type:"Feature",properties:{},id:"reverse_"+U.decimalLongitude+"_"+U.decimalLatitude,text:U.decimalLatitude+", "+U.decimalLongitude,place_name:U.decimalLatitude+", "+U.decimalLongitude,place_type:["reverse"],center:[U.decimalLongitude,U.decimalLatitude],bbox:[U.decimalLongitude,U.decimalLatitude,U.decimalLongitude,U.decimalLatitude],geometry:{type:"Point",coordinates:[U.decimalLongitude,U.decimalLatitude]}}),nt=S,((ui=S[O])==null?void 0:ui.id)!==(r==null?void 0:r.id)&&t(15,O=-1),U&&se.focus())}catch(U){if(U&&typeof U=="object"&&"name"in U&&U.name==="AbortError")return;throw U}finally{Y===Me&&t(20,Me=void 0)}}function kn(){var le;if(!(H!=null&&H.length)||!V)return;const s=[180,90,-180,-90],P=!H.some(Y=>!Y.matching_text);let G;for(const Y of H){const ce=je(Y);if(G=G===void 0?ce:ce===void 0?G:Math.max(G,ce),P||!Y.matching_text)for(const we of[0,1,2,3])s[we]=Math[we<2?"min":"max"](s[we],((le=Y.bbox)==null?void 0:le[we])??Y.center[we%2])}m&&H.length>0&&(b&&s[0]===s[2]&&s[1]===s[3]?m.flyTo(b.center,je(b)):m.fitBounds(Bt(s),50,G))}function wt(){!b||!m||(!b.bbox||b.bbox[0]===b.bbox[2]&&b.bbox[1]===b.bbox[3]?m.flyTo(b.center,je(b)):m.fitBounds(Bt(b.bbox),50,je(b)))}function je(s){var G;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const P=s.id.replace(/\..*/,"");return(Array.isArray((G=s.properties)==null?void 0:G.categories)?s.properties.categories.reduce((le,Y)=>{const ce=it[P+"."+Y];return le===void 0?ce:ce===void 0?le:Math.max(le,ce)},void 0):void 0)??it[P]}function Nn(s){t(0,ie=C==="always"),t(13,S=void 0),t(14,b=void 0),t(15,O=-1),ri(s[1].toFixed(6)+", "+Ji(s[0],[-180,180],!0).toFixed(6),!1,!0)}function Mn(s){if(!S)return;let P=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;P&&(se.focus(),t(17,be=!0),s.preventDefault(),b&&O===-1&&t(15,O=S.findIndex(G=>G.id===(b==null?void 0:b.id))),O===(b||Ne?0:-1)&&P===-1&&t(15,O=S.length),t(15,O+=P),O>=S.length&&t(15,O=-1),O<0&&(b||Ne)&&t(15,O=0))}function li(s,P=!0,G=!1){if(t(19,ue=void 0),t(14,b=void 0),t(17,be=!0),_e&&(window.clearTimeout(_e),_e=void 0),ne&&(window.clearTimeout(ne),t(66,ne=void 0)),!Je&&!G||Q.length<ke){t(13,S=void 0);return}const le=Q;_e=window.setTimeout(()=>{_e=void 0,Be(le).catch(Y=>t(19,ue=Y))},P?W:0),Q.endsWith(" ")||t(66,ne=window.setTimeout(()=>{t(66,ne=void 0),Be(le,{appendSpace:!0}).catch(Y=>t(19,ue=Y))},dt))}function Et(s){b&&(b==null?void 0:b.id)===(s==null?void 0:s.id)?wt():(t(14,b=s),t(1,Q=s.place_name))}function ai(s){t(15,O=s)}function Cn(){(!Ne||b)&&t(15,O=-1),xe&&wt()}const Wn=()=>se.focus();function On(s){ot[s?"unshift":"push"](()=>{se=s,t(18,se)})}function Rn(){Q=this.value,t(1,Q),t(17,be),t(31,y),t(16,ze)}const zn=()=>t(17,be=!0),Un=()=>t(17,be=!1),Dn=()=>t(17,be=!0),In=()=>t(14,b=void 0),An=()=>{t(1,Q=""),t(14,b=void 0),se.focus()},Pn=()=>t(0,ie=!ie),Bn=()=>t(19,ue=void 0),jn=s=>ai(s),Gn=s=>Et(s),Fn=()=>{};return i.$$set=s=>{"class"in s&&t(2,u=s.class),"apiKey"in s&&t(29,f=s.apiKey),"bbox"in s&&t(30,h=s.bbox),"clearButtonTitle"in s&&t(3,v=s.clearButtonTitle),"clearOnBlur"in s&&t(31,y=s.clearOnBlur),"clearListOnPick"in s&&t(32,E=s.clearListOnPick),"keepListOpen"in s&&t(4,z=s.keepListOpen),"collapsed"in s&&t(5,T=s.collapsed),"country"in s&&t(33,p=s.country),"debounceSearch"in s&&t(34,W=s.debounceSearch),"enableReverse"in s&&t(6,C=s.enableReverse),"errorMessage"in s&&t(7,q=s.errorMessage),"filter"in s&&t(35,x=s.filter),"flyTo"in s&&t(36,V=s.flyTo),"fuzzyMatch"in s&&t(37,w=s.fuzzyMatch),"language"in s&&t(38,g=s.language),"limit"in s&&t(39,M=s.limit),"reverseGeocodingLimit"in s&&t(40,L=s.reverseGeocodingLimit),"mapController"in s&&t(41,m=s.mapController),"minLength"in s&&t(42,ke=s.minLength),"noResultsMessage"in s&&t(8,_=s.noResultsMessage),"placeholder"in s&&t(9,j=s.placeholder),"proximity"in s&&t(43,ae=s.proximity),"reverseActive"in s&&t(0,ie=s.reverseActive),"reverseButtonTitle"in s&&t(10,$t=s.reverseButtonTitle),"searchValue"in s&&t(1,Q=s.searchValue),"pickedResultStyle"in s&&t(44,Xe=s.pickedResultStyle),"showPlaceType"in s&&t(11,ei=s.showPlaceType),"showResultsWhileTyping"in s&&t(45,Je=s.showResultsWhileTyping),"autocompleteTimeout"in s&&t(46,dt=s.autocompleteTimeout),"selectFirst"in s&&t(47,Ne=s.selectFirst),"flyToSelected"in s&&t(48,xe=s.flyToSelected),"markerOnSelected"in s&&t(49,$e=s.markerOnSelected),"types"in s&&t(50,ft=s.types),"reverseGeocodingTypes"in s&&t(51,et=s.reverseGeocodingTypes),"exhaustiveReverseGeocoding"in s&&t(52,mt=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(53,gt=s.excludeTypes),"reverseGeocodingExcludeTypes"in s&&t(54,tt=s.reverseGeocodingExcludeTypes),"zoom"in s&&t(55,it=s.zoom),"apiUrl"in s&&t(56,ht=s.apiUrl),"fetchParameters"in s&&t(57,bt=s.fetchParameters),"iconsBaseUrl"in s&&t(12,ni=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(58,vt=s.adjustUrlQuery),"adjustUrl"in s&&t(59,Lt=s.adjustUrl),"$$scope"in s&&t(71,o=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,ie=C==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&8192&&Xe!=="marker-only"&&b&&!b.address&&b.geometry.type==="Point"&&b.place_type[0]!=="reverse"&&Be(b.id,{byId:!0}).catch(s=>t(19,ue=s)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1058|i.$$.dirty[2]&32&&(m&&b&&b.id!==_t&&V&&(wt(),E&&t(13,S=void 0),t(65,H=void 0),t(15,O=-1)),t(67,_t=b==null?void 0:b.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,ze=be),y&&!ze&&t(1,Q="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&2048&&Q.length<ke&&(t(13,S=void 0),t(19,ue=void 0),t(65,H=S)),i.$$.dirty[0]&8192|i.$$.dirty[1]&65536&&Ne&&S!=null&&S.length&&(Tn()||t(15,O=0)),i.$$.dirty[0]&57344|i.$$.dirty[1]&65536&&Ne&&S!=null&&S.length&&O==-1&&!b&&t(15,O=0),i.$$.dirty[0]&8192|i.$$.dirty[2]&8&&H!==S&&t(65,H=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&1024|i.$$.dirty[2]&8&&m&&m.setEventHandler(s=>{switch(s.type){case"mapClick":ie&&Nn(s.coordinates);break;case"markerClick":{const P=S==null?void 0:S.find(G=>G.id===s.id);P&&Et(P)}break;case"markerMouseEnter":H&&t(15,O=ze?(S==null?void 0:S.findIndex(P=>P.id===s.id))??-1:-1);break;case"markerMouseLeave":H&&t(15,O=-1);break}}),i.$$.dirty[0]&40960&&t(68,r=S==null?void 0:S[O]),i.$$.dirty[1]&132128|i.$$.dirty[2]&64&&m&&r&&V&&xe&&m.flyTo(r.center,je(r)),i.$$.dirty[1]&8192&&t(70,n=Xe==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&263168|i.$$.dirty[2]&256&&($e||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&263168|i.$$.dirty[2]&328&&m&&$e&&!H&&(m.setFeatures(r?[r]:void 0,b,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1024|i.$$.dirty[2]&264&&m&&m.setFeatures(H,b,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&1024|i.$$.dirty[2]&8&&H&&m&&m.setSelectedMarker(O),i.$$.dirty[2]&80&&r&&(window.clearTimeout(ne),t(66,ne=void 0)),i.$$.dirty[0]&2|i.$$.dirty[1]&1024&&m){const s=yt(Q);m.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[2]&64&&ye("select",{feature:r}),i.$$.dirty[0]&16384&&ye("pick",{feature:b}),i.$$.dirty[0]&73744&&t(69,c=!!(S!=null&&S.length)&&(ze||z)),i.$$.dirty[2]&128&&ye("optionsvisibilitychange",{optionsVisible:c}),i.$$.dirty[0]&8192&&ye("featureslisted",{features:S}),i.$$.dirty[2]&8&&ye("featuresmarked",{features:H}),i.$$.dirty[0]&1&&ye("reversetoggle",{reverse:ie}),i.$$.dirty[0]&2&&ye("querychange",{query:Q}),i.$$.dirty[0]&1|i.$$.dirty[1]&1024&&m&&m.indicateReverse(ie)},[ie,Q,u,v,z,T,C,q,_,j,$t,ei,ni,S,b,O,ze,be,se,ue,Me,Sn,si,Mn,li,Et,ai,Cn,d,f,h,y,E,p,W,x,V,w,g,M,L,m,ke,ae,Xe,Je,dt,Ne,xe,$e,ft,et,mt,gt,tt,it,ht,bt,vt,Lt,yn,wn,ri,En,pn,H,ne,_t,r,c,n,o,a,Wn,On,Rn,zn,Un,Dn,In,An,Pn,Bn,jn,Gn,Fn]}class vn extends Te{constructor(e){super(),Se(this,e,bn,hn,Ee,{ZOOM_DEFAULTS:28,class:2,apiKey:29,bbox:30,clearButtonTitle:3,clearOnBlur:31,clearListOnPick:32,keepListOpen:4,collapsed:5,country:33,debounceSearch:34,enableReverse:6,errorMessage:7,filter:35,flyTo:36,fuzzyMatch:37,language:38,limit:39,reverseGeocodingLimit:40,mapController:41,minLength:42,noResultsMessage:8,placeholder:9,proximity:43,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:44,showPlaceType:11,showResultsWhileTyping:45,autocompleteTimeout:46,selectFirst:47,flyToSelected:48,markerOnSelected:49,types:50,reverseGeocodingTypes:51,exhaustiveReverseGeocoding:52,excludeTypes:53,reverseGeocodingExcludeTypes:54,zoom:55,apiUrl:56,fetchParameters:57,iconsBaseUrl:12,adjustUrlQuery:58,adjustUrl:59,focus:60,blur:61,setQuery:62,clearList:63,clearMap:64},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[60]}get blur(){return this.$$.ctx[61]}get setQuery(){return this.$$.ctx[62]}get clearList(){return this.$$.ctx[63]}get clearMap(){return this.$$.ctx[64]}}const Jt=["featuresListed","featuresMarked","optionsVisibilityChange","pick","queryChange","response","reverseToggle","select"],Ln=["adjustUrlQuery","adjustUrl","apiKey","apiUrl","bbox","class","clearButtonTitle","clearListOnPick","clearOnBlur","collapsed","country","debounceSearch","enableReverse","errorMessage","excludeTypes","reverseGeocodingExcludeTypes","exhaustiveReverseGeocoding","fetchParameters","filter","flyToSelected","fuzzyMatch","iconsBaseUrl","keepListOpen","language","limit","reverseGeocodingLimit","mapController","markerOnSelected","minLength","noResultsMessage","pickedResultStyle","placeholder","proximity","reverseActive","reverseButtonTitle","selectFirst","showPlaceType","showResultsWhileTyping","types","reverseGeocodingTypes","zoom"];function xt(i){return"on"+i[0].toUpperCase()+i.slice(1)}const _n=F.forwardRef(function(e,t){const n=F.useRef(void 0),r=F.useRef(void 0),c={...e};for(const a of Jt)delete c[xt(a)];F.useEffect(()=>{if(!n.current)throw new Error;const a=new vn({target:n.current,props:c});return r.current=a,()=>a.$destroy()},[]);for(const a of Ln)F.useEffect(()=>{r.current&&e[a]!==void 0&&r.current.$set({[a]:e[a]})},[e[a]]);for(const a of Jt){const o=e[xt(a)];F.useEffect(()=>{var d;return o&&((d=r.current)==null?void 0:d.$on(a.toLowerCase(),u=>{o(u.detail)}))},[o])}return F.useImperativeHandle(t,()=>({setQuery:(a,o=!0)=>{var d;return(d=r.current)==null?void 0:d.setQuery(a,o)},clearMap:()=>{var a;return(a=r.current)==null?void 0:a.clearMap()},clearList:()=>{var a;return(a=r.current)==null?void 0:a.clearList()},focus:a=>{var o;return(o=r.current)==null?void 0:o.focus(a)},blur:()=>{var a;return(a=r.current)==null?void 0:a.blur()},setReverseMode:a=>{var o;return(o=r.current)==null?void 0:o.$set({reverseActive:a})}})),F.createElement("div",{ref:n})});$.GeocodingControl=_n,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|
|
2
14
|
//# sourceMappingURL=react.umd.js.map
|