(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5283],{20357:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(88081)},88081:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(229);e.exports=o}()},9931:function(e,t,r){"use strict";r.d(t,{mh:function(){return Z},D5:function(){return F},Ib:function(){return i},Jx:function(){return D},Pv:function(){return N},GI:function(){return U},Hw:function(){return W},Sx:function(){return j}});var n=r(2265);let o=n.createContext(null),i=e=>{let[t,r]=(0,n.useState)({}),i=(0,n.useCallback)((e,t="default")=>{r(r=>{if("current"===t)throw Error("'current' cannot be used as map id");if(r[t])throw Error(`Multiple maps with the same id: ${t}`);return{...r,[t]:e}})},[]),a=(0,n.useCallback)((e="default")=>{r(t=>{if(t[e]){let r={...t};return delete r[e],r}return t})},[]);return n.createElement(o.Provider,{value:{maps:t,onMapMount:i,onMapUnmount:a}},e.children)};function a(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!a(e[r],t[r]))return!1;return!0}if(Array.isArray(t))return!1;if("object"==typeof e&&"object"==typeof t){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!t.hasOwnProperty(n)||!a(e[n],t[n]))return!1;return!0}return!1}function s(e,t){if(!e.getProjection)return;let r=e.getProjection();a(r,t.getProjection())||t.setProjection(r)}function l(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function u(e,t){let r=t.viewState||t,n=!1;if("longitude"in r&&"latitude"in r){let t=e.center;e.center=new t.constructor(r.longitude,r.latitude),n=n||t!==e.center}if("zoom"in r){let t=e.zoom;e.zoom=r.zoom,n=n||t!==e.zoom}if("bearing"in r){let t=e.bearing;e.bearing=r.bearing,n=n||t!==e.bearing}if("pitch"in r){let t=e.pitch;e.pitch=r.pitch,n=n||t!==e.pitch}return r.padding&&!e.isPaddingEqual(r.padding)&&(n=!0,e.padding=r.padding),n}let c=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function d(e){if(!e)return null;if("string"==typeof e||("toJS"in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let r of e.layers)t[r.id]=r;let r=e.layers.map(e=>{let r=null;"interactive"in e&&(r=Object.assign({},e),delete r.interactive);let n=t[e.ref];if(n)for(let t of(r=r||Object.assign({},e),delete r.ref,c))t in n&&(r[t]=n[t]);return r||e});return{...e,layers:r}}var f=r(20357);let p={version:8,sources:{},layers:[]},m={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},h={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},g={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},y=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],v=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class _{constructor(e,t,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=e=>{let t=this.props[g[e.type]];t?t(e):"error"===e.type&&console.error(e.error)},this._onPointerEvent=e=>{("mousemove"===e.type||"mouseout"===e.type)&&this._updateHover(e);let t=this.props[m[e.type]];t&&(this.props.interactiveLayerIds&&"mouseover"!==e.type&&"mouseout"!==e.type&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._onCameraEvent=e=>{if(!this._internalUpdate){let t=this.props[h[e.type]];t&&t(e)}e.type in this._deferredEvents&&(this._deferredEvents[e.type]=!1)},this._MapClass=e,this.props=t,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(e){let t=this.props;this.props=e;let r=this._updateSettings(e,t);r&&this._createShadowTransform(this._map);let n=this._updateSize(e),o=this._updateViewState(e,!0);this._updateStyle(e,t),this._updateStyleComponents(e,t),this._updateHandlers(e,t),(r||n||o&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){let r=_.savedMaps.pop();if(!r)return null;let n=r.map,o=n.getContainer();for(t.className=o.className;o.childNodes.length>0;)t.appendChild(o.childNodes[0]);n._container=t;let i=n._resizeObserver;i&&(i.disconnect(),i.observe(t)),r.setProps({...e,styleDiffing:!1}),n.resize();let{initialViewState:a}=e;return a&&(a.bounds?n.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):r._updateViewState(a,!1)),n.isStyleLoaded()?n.fire("load"):n.once("styledata",()=>n.fire("load")),n._update(),r}_initialize(e){let{props:t}=this,{mapStyle:r=p}=t,n={...t,...t.initialViewState,accessToken:t.mapboxAccessToken||function(){let e=null;if("undefined"!=typeof location){let t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||f.env.MapboxAccessToken}catch(e){}try{e=e||f.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch(e){}return e}()||null,container:e,style:d(r)},o=n.initialViewState||n.viewState||n;if(Object.assign(n,{center:[o.longitude||0,o.latitude||0],zoom:o.zoom||0,pitch:o.pitch||0,bearing:o.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let i=new this._MapClass(n);o.padding&&i.setPadding(o.padding),t.cursor&&(i.getCanvas().style.cursor=t.cursor),this._createShadowTransform(i);let a=i._render;i._render=e=>{this._inRender=!0,a.call(i,e),this._inRender=!1};let l=i._renderTaskQueue.run;i._renderTaskQueue.run=e=>{l.call(i._renderTaskQueue,e),this._onBeforeRepaint()},i.on("render",()=>this._onAfterRepaint());let u=i.fire;for(let e in i.fire=this._fireEvent.bind(this,u),i.on("resize",()=>{this._renderTransform.resize(i.transform.width,i.transform.height)}),i.on("styledata",()=>{this._updateStyleComponents(this.props,{}),s(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{})),m)i.on(e,this._onPointerEvent);for(let e in h)i.on(e,this._onCameraEvent);for(let e in g)i.on(e,this._onEvent);this._map=i}recycle(){let e=this.map.getContainer().querySelector("[mapboxgl-children]");null==e||e.remove(),_.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_createShadowTransform(e){let t=function(e){let t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}(e.transform);e.painter.transform=t,this._renderTransform=t}_updateSize(e){let{viewState:t}=e;if(t){let e=this._map;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e,t){if(this._internalUpdate)return!1;let r=this._map,n=this._renderTransform,{zoom:o,pitch:i,bearing:a}=n,s=r.isMoving();s&&(n.cameraElevationReference="sea");let c=u(n,{...l(r.transform),...e});if(s&&(n.cameraElevationReference="ground"),c&&t){let e=this._deferredEvents;e.move=!0,e.zoom||(e.zoom=o!==n.zoom),e.rotate||(e.rotate=a!==n.bearing),e.pitch||(e.pitch=i!==n.pitch)}return s||u(r.transform,e),c}_updateSettings(e,t){let r=this._map,n=!1;for(let o of y)if(o in e&&!a(e[o],t[o])){n=!0;let t=r[`set${o[0].toUpperCase()}${o.slice(1)}`];null==t||t.call(r,e[o])}return n}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==t.mapStyle){let{mapStyle:t=p,styleDiffing:r=!0}=e,n={diff:r};return"localIdeographFontFamily"in e&&(n.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(d(t),n),!0}return!1}_updateStyleComponents(e,t){let r=this._map,n=!1;return r.isStyleLoaded()&&("light"in e&&r.setLight&&!a(e.light,t.light)&&(n=!0,r.setLight(e.light)),"fog"in e&&r.setFog&&!a(e.fog,t.fog)&&(n=!0,r.setFog(e.fog)),"terrain"in e&&r.setTerrain&&!a(e.terrain,t.terrain)&&(!e.terrain||r.getSource(e.terrain.source))&&(n=!0,r.setTerrain(e.terrain))),n}_updateHandlers(e,t){var r,n;let o=this._map,i=!1;for(let s of v){let l=null===(r=e[s])||void 0===r||r;a(l,null===(n=t[s])||void 0===n||n)||(i=!0,l?o[s].enable(l):o[s].disable())}return i}_queryRenderedFeatures(e){let t=this._map,r=t.transform,{interactiveLayerIds:n=[]}=this.props;try{return t.transform=this._renderTransform,t.queryRenderedFeatures(e,{layers:n.filter(t.getLayer.bind(t))})}catch(e){return[]}finally{t.transform=r}}_updateHover(e){var t;let{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){let r=e.type,n=(null===(t=this._hoveredFeatures)||void 0===t?void 0:t.length)>0,o=this._queryRenderedFeatures(e.point),i=o.length>0;!i&&n&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=o,i&&!n&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=r}else this._hoveredFeatures=null}_fireEvent(e,t,r){let n=this._map,o=n.transform,i="string"==typeof t?t:t.type;return("move"===i&&this._updateViewState(this.props,!1),i in h&&("object"==typeof t&&(t.viewState=l(o)),this._map.isMoving()))?(n.transform=this._renderTransform,e.call(n,t,r),n.transform=o):e.call(n,t,r),n}_onBeforeRepaint(){let e=this._map;for(let t in this._internalUpdate=!0,this._deferredEvents)this._deferredEvents[t]&&e.fire(t);this._internalUpdate=!1;let t=this._map.transform;e.transform=this._renderTransform,this._onAfterRepaint=()=>{s(this._renderTransform,t),e.transform=t}}}_.savedMaps=[];let b=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"],E="undefined"!=typeof document?n.useLayoutEffect:n.useEffect,S=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"],x=n.createContext(null);var w=r(54887);let C=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function L(e,t){if(!e||!t)return;let r=e.style;for(let e in t){let n=t[e];Number.isFinite(n)&&!C.test(e)?r[e]=`${n}px`:r[e]=n}}var T=(0,n.memo)((0,n.forwardRef)(function(e,t){let{map:r,mapLib:o}=(0,n.useContext)(x),i=(0,n.useRef)({props:e});i.current.props=e;let a=(0,n.useMemo)(()=>{let t=!1;n.Children.forEach(e.children,e=>{e&&(t=!0)});let r={...e,element:t?document.createElement("div"):null},s=new o.Marker(r);return s.setLngLat([e.longitude,e.latitude]),s.getElement().addEventListener("click",e=>{var t,r;null===(r=(t=i.current.props).onClick)||void 0===r||r.call(t,{type:"click",target:s,originalEvent:e})}),s.on("dragstart",e=>{var t,r;e.lngLat=a.getLngLat(),null===(r=(t=i.current.props).onDragStart)||void 0===r||r.call(t,e)}),s.on("drag",e=>{var t,r;e.lngLat=a.getLngLat(),null===(r=(t=i.current.props).onDrag)||void 0===r||r.call(t,e)}),s.on("dragend",e=>{var t,r;e.lngLat=a.getLngLat(),null===(r=(t=i.current.props).onDragEnd)||void 0===r||r.call(t,e)}),s},[]);(0,n.useEffect)(()=>(a.addTo(r.getMap()),()=>{a.remove()}),[]);let{longitude:s,latitude:l,offset:u,style:c,draggable:d=!1,popup:f=null,rotation:p=0,rotationAlignment:m="auto",pitchAlignment:h="auto"}=e;return(0,n.useEffect)(()=>{L(a.getElement(),c)},[c]),(0,n.useImperativeHandle)(t,()=>a,[]),(a.getLngLat().lng!==s||a.getLngLat().lat!==l)&&a.setLngLat([s,l]),u&&!function(e,t){let r=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return r===o&&n===i}(a.getOffset(),u)&&a.setOffset(u),a.isDraggable()!==d&&a.setDraggable(d),a.getRotation()!==p&&a.setRotation(p),a.getRotationAlignment()!==m&&a.setRotationAlignment(m),a.getPitchAlignment()!==h&&a.setPitchAlignment(h),a.getPopup()!==f&&a.setPopup(f),(0,w.createPortal)(e.children,a.getElement())}));function M(e){return new Set(e?e.trim().split(/\s+/):[])}var P=(0,n.memo)((0,n.forwardRef)(function(e,t){let{map:r,mapLib:o}=(0,n.useContext)(x),i=(0,n.useMemo)(()=>document.createElement("div"),[]),s=(0,n.useRef)({props:e});s.current.props=e;let l=(0,n.useMemo)(()=>{let t={...e},r=new o.Popup(t);return r.setLngLat([e.longitude,e.latitude]),r.once("open",e=>{var t,r;null===(r=(t=s.current.props).onOpen)||void 0===r||r.call(t,e)}),r},[]);if((0,n.useEffect)(()=>{let e=e=>{var t,r;null===(r=(t=s.current.props).onClose)||void 0===r||r.call(t,e)};return l.on("close",e),l.setDOMContent(i).addTo(r.getMap()),()=>{l.off("close",e),l.isOpen()&&l.remove()}},[]),(0,n.useEffect)(()=>{L(l.getElement(),e.style)},[e.style]),(0,n.useImperativeHandle)(t,()=>l,[]),l.isOpen()&&((l.getLngLat().lng!==e.longitude||l.getLngLat().lat!==e.latitude)&&l.setLngLat([e.longitude,e.latitude]),e.offset&&!a(l.options.offset,e.offset)&&l.setOffset(e.offset),(l.options.anchor!==e.anchor||l.options.maxWidth!==e.maxWidth)&&(l.options.anchor=e.anchor,l.setMaxWidth(e.maxWidth)),l.options.className!==e.className)){let t=M(l.options.className),r=M(e.className);for(let e of t)r.has(e)||l.removeClassName(e);for(let e of r)t.has(e)||l.addClassName(e);l.options.className=e.className}return(0,w.createPortal)(e.children,i)})),R=function(e,t,r,o){let i=(0,n.useContext)(x),a=(0,n.useMemo)(()=>e(i),[]);return(0,n.useEffect)(()=>{let e=o||r||t,n="function"==typeof t&&"function"==typeof r?t:null,s="function"==typeof r?r:"function"==typeof t?t:null,{map:l}=i;return!l.hasControl(a)&&(l.addControl(a,null==e?void 0:e.position),n&&n(i)),()=>{s&&s(i),l.hasControl(a)&&l.removeControl(a)}},[]),a};(0,n.memo)(function(e){let t=R(({mapLib:t})=>new t.AttributionControl(e),{position:e.position});return(0,n.useEffect)(()=>{L(t._container,e.style)},[e.style]),null}),(0,n.memo)(function(e){let t=R(({mapLib:t})=>new t.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return(0,n.useEffect)(()=>{L(t._controlContainer,e.style)},[e.style]),null}),(0,n.memo)((0,n.forwardRef)(function(e,t){let r=(0,n.useRef)({props:e}),o=R(({mapLib:t})=>{let n=new t.GeolocateControl(e),o=n._setupUI;return n._setupUI=e=>{n._container.hasChildNodes()||o(e)},n.on("geolocate",e=>{var t,n;null===(n=(t=r.current.props).onGeolocate)||void 0===n||n.call(t,e)}),n.on("error",e=>{var t,n;null===(n=(t=r.current.props).onError)||void 0===n||n.call(t,e)}),n.on("outofmaxbounds",e=>{var t,n;null===(n=(t=r.current.props).onOutOfMaxBounds)||void 0===n||n.call(t,e)}),n.on("trackuserlocationstart",e=>{var t,n;null===(n=(t=r.current.props).onTrackUserLocationStart)||void 0===n||n.call(t,e)}),n.on("trackuserlocationend",e=>{var t,n;null===(n=(t=r.current.props).onTrackUserLocationEnd)||void 0===n||n.call(t,e)}),n},{position:e.position});return r.current.props=e,(0,n.useImperativeHandle)(t,()=>o,[]),(0,n.useEffect)(()=>{L(o._container,e.style)},[e.style]),null}));var z=(0,n.memo)(function(e){let t=R(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,n.useEffect)(()=>{L(t._container,e.style)},[e.style]),null});function k(e,t){if(!e)throw Error(t)}(0,n.memo)(function(e){let t=R(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),r=(0,n.useRef)(e),o=r.current;r.current=e;let{style:i}=e;return void 0!==e.maxWidth&&e.maxWidth!==o.maxWidth&&(t.options.maxWidth=e.maxWidth),void 0!==e.unit&&e.unit!==o.unit&&t.setUnit(e.unit),(0,n.useEffect)(()=>{L(t._container,i)},[i]),null});let A=0,O=0;function j(){return function(){var e;let t=null===(e=(0,n.useContext)(o))||void 0===e?void 0:e.maps,r=(0,n.useContext)(x);return(0,n.useMemo)(()=>({...t,current:null==r?void 0:r.map}),[t,r])}()}let I=r.e(3415).then(r.t.bind(r,77719,23)),F=n.forwardRef(function(e,t){return function(e,t,r){let i=(0,n.useContext)(o),[a,s]=(0,n.useState)(null),l=(0,n.useRef)(),{current:u}=(0,n.useRef)({mapLib:null,map:null});(0,n.useEffect)(()=>{let t;let n=e.mapLib,o=!0;return Promise.resolve(n||r).then(r=>{if(!o)return;if(!r)throw Error("Invalid mapLib");let n="Map"in r?r:r.default;if(!n.Map)throw Error("Invalid mapLib");if(function(e,t){for(let r of S)r in t&&(e[r]=t[r]);let{RTLTextPlugin:r="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;r&&e.getRTLTextPluginStatus&&"unavailable"===e.getRTLTextPluginStatus()&&e.setRTLTextPlugin(r,e=>{e&&console.error(e)},!0)}(n,e),!n.supported||n.supported(e))e.reuseMaps&&(t=_.reuse(e,l.current)),t||(t=new _(n.Map,e,l.current)),u.map=function(e){if(!e)return null;let t=e.map,r={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{let n=t.transform;t.transform=e.transform;let o=t.project(r);return t.transform=n,o},unproject:r=>{let n=t.transform;t.transform=e.transform;let o=t.unproject(r);return t.transform=n,o},queryTerrainElevation:(r,n)=>{let o=t.transform;t.transform=e.transform;let i=t.queryTerrainElevation(r,n);return t.transform=o,i},queryRenderedFeatures:(r,n)=>{let o=t.transform;t.transform=e.transform;let i=t.queryRenderedFeatures(r,n);return t.transform=o,i}};for(let e of function(e){let t=new Set,r=e;for(;r;){for(let n of Object.getOwnPropertyNames(r))"_"!==n[0]&&"function"==typeof e[n]&&"fire"!==n&&"setEventedParent"!==n&&t.add(n);r=Object.getPrototypeOf(r)}return Array.from(t)}(t))e in r||b.includes(e)||(r[e]=t[e].bind(t));return r}(t),u.mapLib=n,s(t),null==i||i.onMapMount(u.map,e.id);else throw Error("Map is not supported by this browser")}).catch(t=>{let{onError:r}=e;r?r({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{o=!1,t&&(null==i||i.onMapUnmount(e.id),e.reuseMaps?t.recycle():t.destroy())}},[]),E(()=>{a&&a.setProps(e)}),(0,n.useImperativeHandle)(t,()=>u.map,[a]);let c=(0,n.useMemo)(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]);return n.createElement("div",{id:e.id,ref:l,style:c},a&&n.createElement(x.Provider,{value:u},n.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},e.children)))}(e,t,I)}),D=T,U=P,N=z,Z=function(e){let t=(0,n.useContext)(x).map.getMap(),r=(0,n.useRef)(e),[,o]=(0,n.useState)(0),i=(0,n.useMemo)(()=>e.id||`jsx-layer-${A++}`,[]);if((0,n.useEffect)(()=>{if(t){let e=()=>o(e=>e+1);return t.on("styledata",e),e(),()=>{t.off("styledata",e),t.style&&t.style._loaded&&t.getLayer(i)&&t.removeLayer(i)}}},[t]),t&&t.style&&t.getLayer(i))try{!function(e,t,r,n){if(k(r.id===n.id,"layer id changed"),k(r.type===n.type,"layer type changed"),"custom"===r.type||"custom"===n.type)return;let{layout:o={},paint:i={},filter:s,minzoom:l,maxzoom:u,beforeId:c}=r;if(c!==n.beforeId&&e.moveLayer(t,c),o!==n.layout){let r=n.layout||{};for(let n in o)a(o[n],r[n])||e.setLayoutProperty(t,n,o[n]);for(let n in r)o.hasOwnProperty(n)||e.setLayoutProperty(t,n,void 0)}if(i!==n.paint){let r=n.paint||{};for(let n in i)a(i[n],r[n])||e.setPaintProperty(t,n,i[n]);for(let n in r)i.hasOwnProperty(n)||e.setPaintProperty(t,n,void 0)}a(s,n.filter)||e.setFilter(t,s),(l!==n.minzoom||u!==n.maxzoom)&&e.setLayerZoomRange(t,l,u)}(t,i,e,r.current)}catch(e){console.warn(e)}else!function(e,t,r){if(e.style&&e.style._loaded&&(!("source"in r)||e.getSource(r.source))){let n={...r,id:t};delete n.beforeId,e.addLayer(n,r.beforeId)}}(t,i,e);return r.current=e,null},W=function(e){let t=(0,n.useContext)(x).map.getMap(),r=(0,n.useRef)(e),[,o]=(0,n.useState)(0),i=(0,n.useMemo)(()=>e.id||`jsx-source-${O++}`,[]);(0,n.useEffect)(()=>{if(t){let e=()=>setTimeout(()=>o(e=>e+1),0);return t.on("styledata",e),e(),()=>{var r;if(t.off("styledata",e),t.style&&t.style._loaded&&t.getSource(i)){let e=null===(r=t.getStyle())||void 0===r?void 0:r.layers;if(e)for(let r of e)r.source===i&&t.removeLayer(r.id);t.removeSource(i)}}}},[t]);let s=t&&t.style&&t.getSource(i);return s?function(e,t,r){k(t.id===r.id,"source id changed"),k(t.type===r.type,"source type changed");let n="",o=0;for(let e in t)"children"!==e&&"id"!==e&&!a(r[e],t[e])&&(n=e,o++);if(!o)return;let i=t.type;if("geojson"===i)e.setData(t.data);else if("image"===i)e.updateImage({url:t.url,coordinates:t.coordinates});else if("setCoordinates"in e&&1===o&&"coordinates"===n)e.setCoordinates(t.coordinates);else if("setUrl"in e)switch(n){case"url":e.setUrl(t.url);break;case"tiles":e.setTiles(t.tiles)}else console.warn(`Unable to update <Source> prop: ${n}`)}(s,e,r.current):s=function(e,t,r){if(e.style&&e.style._loaded){let n={...r};return delete n.id,delete n.children,e.addSource(t,n),e.getSource(t)}return null}(t,i,e),r.current=e,s&&n.Children.map(e.children,e=>e&&(0,n.cloneElement)(e,{source:i}))||null}},85107:function(e,t,r){"use strict";var n=r(2265),o=r(10554),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=n(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(a=e,s=r)}var a,s,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,o]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},35006:function(e,t,r){"use strict";e.exports=r(85107)},39099:function(e,t,r){"use strict";r.d(t,{Ue:function(){return f}});let n=e=>{let t;let r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,i={setState:n,getState:o,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(n,o,i);return i},o=e=>e?n(e):n;var i=r(2265),a=r(35006);let{useDebugValue:s}=i,{useSyncExternalStoreWithSelector:l}=a,u=!1,c=e=>e,d=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?o(e):e,r=(e,r)=>(function(e,t=c,r){r&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let n=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return s(n),n})(t,e,r);return Object.assign(r,t),r},f=e=>e?d(e):d}}]);