1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3980],{3321:(e,t,n)=>{"use strict";function r({moduleIds:e}){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),n(53954),n(71255),n(82706),n(9607),n(4187)},15615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(53954),o=n(68394),i=n(29556);function s(e){return{default:e&&"default"in e?e.default:e}}n(3321);let a={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},l=function(e){let t={...a,...e},n=(0,o.lazy)(()=>t.loader().then(s)),l=t.loading;function u(e){let s=l?(0,r.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,a=!t.ssr||!!t.loading,u=a?o.Suspense:o.Fragment,c=t.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(u,{...a?{fallback:s}:{},children:c})}return u.displayName="LoadableComponent",u}},29362:(e,t,n)=>{"use strict";function r(e,t,n,o=console){if(URL.canParse&&!URL.canParse(e,n))return"";try{return new URL(e,n)}catch(r){let n=`Invalid ${e} in createUrl`;t&&"function"==typeof t?t(r,n):o.error(n,r)}return""}n.d(t,{c:()=>r})},29556:(e,t,n)=>{"use strict";function r({reason:e,children:t}){return t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),n(54520)}
1,34733:(e,t,n)=>{"use strict";n.d(t,{AR:()=>s,C4:()=>i,IU:()=>l});var r=n(76065),o=n(29362);function i(){return"u"<typeof window?r.A.get("domain",""):window.location.origin}function s(){return"u"<typeof window?r.A.get("production_domain",""):window.__SITE?.domain||""}function a(){let e="u"<typeof window?r.A.get("trailing_slash"):window.__SITE?.trailing_slash;return void 0===e||e}function l(e,t){let n,l,u=!1;if("string"==typeof e)u=(n=e).startsWith("http://")||n.startsWith("https://");else if(e instanceof URL)n=(l=new URL(e.href)).pathname,u=!0;else{if(!e)return e;throw Error(`Invalid input type: ${typeof e}. Expected a string or URL.`)}t&&"object"!=typeof t&&(t={});let c=t||{},{fullUrl:d=!1,includeLocalePath:p,domain:f,caseSensitive:h=!1}=c;if(u||n.includes("?")||n.includes("#")||d){let e=!0===f?i():"production"===f?s():"string"==typeof f?f:void 0;if(e&&!e.includes("://")&&(e=`https://${e}`),!l&&!(l=(0,o.c)(n,void 0,e||i())))throw Error(`Invalid URL: ${n}`);if(u&&e&&l instanceof URL){let t=(0,o.c)(e);t instanceof URL&&(l.protocol=t.protocol,l.host=t.host)}n=l.pathname}else n.startsWith("/")||(n=`/${n}`);let{localePath:m,checkTrailingSlash:g=!0,trailingSlash:y,prefix:_}=c;if(g&&"boolean"!=typeof y)if(n.includes(".")){let e=n.split("/").pop()||"";e.length>3&&e.includes(".")?g=!1:y=a()}else y=a();let v=!1;if(_&&("string"!=typeof _?_="":(_.startsWith("/")||(_=`/${_}`),v=!0)),(p||(d||u)&&!1!==p)&&(m||(m="u"<typeof window?r.A.get("locale_path",""):window.__SITE?.locale_path||""),"string"==typeof m))if(m.startsWith("/")||(m=`/${m}`),n===m||n.startsWith(`${m}/`)){if(v){let e=n===`${m}${_}`||n.startsWith(`${m}${_}/`);m.endsWith(_)||e||(n=n.replace(m,`${m}${_}`)),v=!1}}else v&&!n.startsWith(_)&&(n=`${_}${n}`,v=!1),n=`${m}${n}`;if(v&&!n.startsWith(_)&&(n=`${_}${n}`),(!n||"/"===n)&&!l)return n;if(h||(n=n.toLowerCase()),n.includes("//")&&(n=n.replace(/\/+/g,"/")),g){let e=n.endsWith("/");y&&!e?n+="/":!1===y&&e&&(n=n.slice(0,-1))}if(l)return u||d?(l.pathname=n,e instanceof URL)?l:l.href:n+l.search+l.hash;return n}},37123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={bindSnapshot:function(){return l},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return u}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let o=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class i{disable(){throw o}getStore(){}run(){throw o}exit(){throw o}enterWith(){throw o}static bind(e){return e}}let s="u">typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return s?new s:new i}function l(e){return s?s.bind(e):i.bind(e)}function u(){return s?s.snapshot():function(e,...t){return e(...t)}}},42629:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(37123).createAsyncLocalStorage)()},50986:()=>{},68119:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(57029)._(n(15615));function o(e,t){let n={};"function"==typeof e&&(n.loader=e);let o={...n,...t};return(0,r.default)({...o,modules:o.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76065:(e,t,n)=>{"use strict";let r,o;n.d(t,{A:()=>i});let i=(o=(r=new Map,{getStore:()=>r,run(e,t){let n=r;r=e;try{t()}finally{r=n}},disable(){r=new Map}}),{getStore:()=>o?.getStore?.(),get size(){return this.getStore()?.size??0},get(e,t){let n=this.getStore();return n?n.get(e)??t:t},set(e,t){let n=this.getStore();return n&&n.set(e,t),this},setIfMissing(e,t,n={}){return function(e,t,n,r={},o=!0){if(e.has(t))return e.get(t);let{process:i=!1}=r,s=i&&"function"==typeof n?n(...Array.isArray(i)?i:[]):n;return o&&e.set(t,s),s}(this,e,t,n)},has(e){let t=this.getStore();return!!t&&t.has(e)},delete(e){let t=this.getStore();return!!t&&t.delete(e)},remove(e){return this.delete(e),this},keys(){let e=this.getStore();return e?e.keys():function*(){}()},values(){let e=this.getStore();return e?e.values():function*(){}()}
1,entries(){let e=this.getStore();return e?e.entries():function*(){}()},forEach(e,t){let n=this.getStore();if(n)for(let[r,o]of n.entries())e.call(t,o,r,n)},[Symbol.iterator](){return this.entries()},clear(){let e=this.getStore();return e&&e.clear(),this},run(e,t){return"function"==typeof o?.run?o.run(new Map(e),t):"function"==typeof t&&t(),this},disable(){return"function"==typeof o?.disable&&o.disable(),this},setInstance(e,t=!1){return(t||!o)&&(o&&o!==e&&o.disable?.(),o=e),this}})},82706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(42629)},88746:(e,t,n)=>{"use strict";n.d(t,{default:()=>o.a});var r=n(68119),o=n.n(r)},90578:(e,t,n)=>{"use strict";n.d(t,{T3:()=>O,tG:()=>k,T5:()=>C,pH:()=>P,ov:()=>A,zD:()=>R,VI:()=>j,ko:()=>i});var r=n(68394);let o=r.createContext(null);function i(){let e=(0,r.useContext)(o)?.maps,t=(0,r.useContext)(S);return(0,r.useMemo)(()=>({...e,current:t?.map}),[e,t])}function s(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 n=0;n<e.length;n++)if(!s(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;if("object"==typeof e&&"object"==typeof t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!t.hasOwnProperty(r)||!s(e[r],t[r]))return!1;return!0}return!1}function a(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function l(e,t){let n=t.viewState||t,r={};return"longitude"in n&&"latitude"in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)&&(r.center=new e.center.constructor(n.longitude,n.latitude)),"zoom"in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),"bearing"in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),"pitch"in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!s(n.padding,e.padding)&&(r.padding=n.padding),r}let u=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function c(e){if(!e)return null;if("string"==typeof e||("toJS"in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let n of e.layers)t[n.id]=n;let n=e.layers.map(e=>{let n=null;"interactive"in e&&(n=Object.assign({},e),delete n.interactive);let r=t[e.ref];if(r)for(let t of(n=n||Object.assign({},e),delete n.ref,u))t in r&&(n[t]=r[t]);return n||e});return{...e,layers:n}}let d={version:8,sources:{},layers:[]},p={minZoom:0,maxZoom:22,minPitch:0,maxPitch:85,maxBounds:[-180,-85.051129,180,85.051129],projection:"mercator",renderWorldCopies:!0},f={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"},m={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"},g=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],y=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class _{constructor(e,t,n){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{let t=this.props[m[e.type]];t?t(e):"error"===e.type&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||a(this._map.transform);let t=this.props[h[e.type]];t&&t(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=a(e),l(e,this.props)),this._onPointerEvent=e=>{("mousemove"===e.type||"mouseout"===e.type)&&this._updateHover(e);let t=this.props[f[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._MapClass=e,this.props=t,this._initialize(n)}get map(){return this._map}setProps(e){let t=this.props;this.props=e;let n=this._updateSettings(e,t),r=this._updateSize(e),o=this._updateViewState(e);this._updateStyle(e,t),this._updateStyleComponents(e),this._updateHandlers(e,t),(n||r||o&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){let n=_.savedMaps.pop();if(!n)return null;let r=n.map,o=r.getContainer();for(t.className=o.className;o.childNodes.length>0;)t.appendChild(o.childNodes[0]);r._container=t;let i=r._resizeObserver;i&&(i.disconnect(),i.observe(t)),n.setProps({...e,styleDiffing:!1}),r.resize();let{initialViewState:s}=e;return s&&(s.bounds?r.fitBounds(s.bounds,{...s.fitBoundsOptions,duration:0}):n._updateViewState(s)),r.isStyleLoaded()?r.fire("load"):r.once("style.load",()=>r.fire("load")),r._update(),n}_initialize(e){let{props:t}=this,{mapStyle:n=d}=t,r={...t,...t.initialViewState,container:e,style:c(n)},o=r.initialViewState||r.viewState||r;if(Object.assign(r,{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(r);for(let e in o.padding&&i.setPadding(o.padding),t.cursor&&(i.getCanvas().style.cursor=t.cursor),i.transformCameraUpdate=this._onCameraUpdate,i.on("style.load",()=>
1{this._styleComponents={light:i.getLight(),sky:i.getSky(),projection:i.getProjection?.(),terrain:i.getTerrain()},this._updateStyleComponents(this.props)}),i.on("sourcedata",()=>{this._updateStyleComponents(this.props)}),f)i.on(e,this._onPointerEvent);for(let e in h)i.on(e,this._onCameraEvent);for(let e in m)i.on(e,this._onEvent);this._map=i}recycle(){let e=this.map.getContainer().querySelector("[mapboxgl-children]");e?.remove(),_.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_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){let t=this._map,n=t.transform;if(!t.isMoving()){let r=l(n,e);if(Object.keys(r).length>0)return this._internalUpdate=!0,t.jumpTo(r),this._internalUpdate=!1,!0}return!1}_updateSettings(e,t){let n=this._map,r=!1;for(let o of g)if((o in e||o in t)&&!s(e[o],t[o])){r=!0;let t=o in e?e[o]:p[o],i=n[`set${o[0].toUpperCase()}${o.slice(1)}`];i?.call(n,t)}return r}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==t.mapStyle){let{mapStyle:t=d,styleDiffing:n=!0}=e,r={diff:n};"localIdeographFontFamily"in e&&(r.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(c(t),r)}}_updateStyleComponents({light:e,projection:t,sky:n,terrain:r}){let o=this._map,i=this._styleComponents;o.style?._loaded&&(e&&!s(e,i.light)&&(i.light=e,o.setLight(e)),t&&!s(t,i.projection)&&t!==i.projection?.type&&(i.projection="string"==typeof t?{type:t}:t,o.setProjection?.(i.projection)),n&&!s(n,i.sky)&&(i.sky=n,o.setSky(n)),void 0!==r&&!s(r,i.terrain)&&(!r||o.getSource(r.source))&&(i.terrain=r,o.setTerrain(r)))}_updateHandlers(e,t){let n=this._map;for(let r of y){let o=e[r]??!0;s(o,t[r]??!0)||(o?n[r].enable(o):n[r].disable())}}_queryRenderedFeatures(e){let t=this._map,{interactiveLayerIds:n=[]}=this.props;try{return t.queryRenderedFeatures(e,{layers:n.filter(t.getLayer.bind(t))})}catch{return[]}}_updateHover(e){let{props:t}=this;if(t.interactiveLayerIds&&(t.onMouseMove||t.onMouseEnter||t.onMouseLeave)){let t=e.type,n=this._hoveredFeatures?.length>0,r=this._queryRenderedFeatures(e.point),o=r.length>0;!o&&n&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=r,o&&!n&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=t}else this._hoveredFeatures=null}}_.savedMaps=[];let v=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"],b="u">typeof document?r.useLayoutEffect:r.useEffect,S=r.createContext(null),C=r.forwardRef(function(e,t){let i=(0,r.useContext)(o),[s,a]=(0,r.useState)(null),l=(0,r.useRef)(),{current:u}=(0,r.useRef)({mapLib:null,map:null});(0,r.useEffect)(()=>{let t,r=e.mapLib,o=!0;return Promise.resolve(r||n.e(1758).then(n.t.bind(n,61279,23))).then(n=>{if(!o)return;if(!n)throw Error("Invalid mapLib");let r="Map"in n?n:n.default;if(!r.Map)throw Error("Invalid mapLib");!function(e,t){let{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:o,workerUrl:i}=t;if(n&&e.getRTLTextPluginStatus&&"unavailable"===e.getRTLTextPluginStatus()){let{pluginUrl:t,lazy:r=!0}="string"==typeof n?{pluginUrl:n}:n;e.setRTLTextPlugin(t,e=>{e&&console.error(e)},r)}void 0!==r&&e.setMaxParallelImageRequests(r),void 0!==o&&e.setWorkerCount(o),void 0!==i&&e.setWorkerUrl(i)}(r,e),e.reuseMaps&&(t=_.reuse(e,l.current)),t||(t=new _(r.Map,e,l.current)),u.map=function(e){if(!e)return null;let t=e.map,n={getMap:()=>t};for(let e of function(e){let t=new Set,n=e;for(;n;){for(let r of Object.getOwnPropertyNames(n))"_"!==r[0]&&"function"==typeof e[r]&&"fire"!==r&&"setEventedParent"!==r&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}(t))e in n||v.includes(e)||(n[e]=t[e].bind(t));return n}(t),u.mapLib=r,a(t),i?.onMapMount(u.map,e.id)}).catch(t=>{let{onError:n}=e;n?n({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{o=!1,t&&(i?.onMapUnmount(e.id),e.reuseMaps?t.recycle():t.destroy())}},[]),b(()=>{s&&s.setProps(e)}),(0,r.useImperativeHandle)(t,()=>u.map,[s]);let c=(0,r.useMemo)(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]);return r.createElement("div",{id:e.id,ref:l,style:c},s&&r.createElement(S.Provider,{value:u},r.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},e.children)))});var w=n(71255);let L=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function E(e,t){if(!e||!t)return;let n=e.style;for(let e in t){let r=t[e];Number.isFinite(r)&&!L.test(e)?n[e]=`${r}px`:n[e]=r}}function M(e,t){if(e===t)return null;let n=x(e),r=x(t),o=[];for(let e of r)n.has(e)||o.push(e);for(let e of n)r.has(e)||o.push(e);return 0===o.length?null:o}function x(e){return new Set(e?e.trim().split(/\s+/):[])}let P=(0,r.memo)((0,r.forwardRef)((e,t)=>{var n;let o,i,s,a,{map:l,mapLib:u}=(0,r.useContext)(S),c=(0,r.useRef)({props:e}),d=(0,r.useMemo)(()=>{let t=!1;
1r.Children.forEach(e.children,e=>{e&&(t=!0)});let n={...e,element:t?document.createElement("div"):void 0},o=new u.Marker(n);return o.setLngLat([e.longitude,e.latitude]),o.getElement().addEventListener("click",e=>{c.current.props.onClick?.({type:"click",target:o,originalEvent:e})}),o.on("dragstart",e=>{e.lngLat=d.getLngLat(),c.current.props.onDragStart?.(e)}),o.on("drag",e=>{e.lngLat=d.getLngLat(),c.current.props.onDrag?.(e)}),o.on("dragend",e=>{e.lngLat=d.getLngLat(),c.current.props.onDragEnd?.(e)}),o},[]);(0,r.useEffect)(()=>(d.addTo(l.getMap()),()=>{d.remove()}),[]);let{longitude:p,latitude:f,offset:h,style:m,draggable:g=!1,popup:y=null,rotation:_=0,rotationAlignment:v="auto",pitchAlignment:b="auto"}=e;(0,r.useEffect)(()=>{E(d.getElement(),m)},[m]),(0,r.useImperativeHandle)(t,()=>d,[]);let C=c.current.props;(d.getLngLat().lng!==p||d.getLngLat().lat!==f)&&d.setLngLat([p,f]),h&&(n=d.getOffset(),o=Array.isArray(n)?n[0]:n?n.x:0,i=Array.isArray(n)?n[1]:n?n.y:0,s=Array.isArray(h)?h[0]:h?h.x:0,a=Array.isArray(h)?h[1]:h?h.y:0,o!==s||i!==a)&&d.setOffset(h),d.isDraggable()!==g&&d.setDraggable(g),d.getRotation()!==_&&d.setRotation(_),d.getRotationAlignment()!==v&&d.setRotationAlignment(v),d.getPitchAlignment()!==b&&d.setPitchAlignment(b),d.getPopup()!==y&&d.setPopup(y);let L=M(C.className,e.className);if(L)for(let e of L)d.toggleClassName(e);return c.current.props=e,(0,w.createPortal)(e.children,d.getElement())})),R=(0,r.memo)((0,r.forwardRef)((e,t)=>{let{map:n,mapLib:o}=(0,r.useContext)(S),i=(0,r.useMemo)(()=>document.createElement("div"),[]),a=(0,r.useRef)({props:e}),l=(0,r.useMemo)(()=>{let t={...e},n=new o.Popup(t);return n.setLngLat([e.longitude,e.latitude]),n.once("open",e=>{a.current.props.onOpen?.(e)}),n},[]);if((0,r.useEffect)(()=>{let e=e=>{a.current.props.onClose?.(e)};return l.on("close",e),l.setDOMContent(i).addTo(n.getMap()),()=>{l.off("close",e),l.isOpen()&&l.remove()}},[]),(0,r.useEffect)(()=>{E(l.getElement(),e.style)},[e.style]),(0,r.useImperativeHandle)(t,()=>l,[]),l.isOpen()){let t=a.current.props;(l.getLngLat().lng!==e.longitude||l.getLngLat().lat!==e.latitude)&&l.setLngLat([e.longitude,e.latitude]),e.offset&&!s(t.offset,e.offset)&&l.setOffset(e.offset),(t.anchor!==e.anchor||t.maxWidth!==e.maxWidth)&&(l.options.anchor=e.anchor,l.setMaxWidth(e.maxWidth));let n=M(t.className,e.className);if(n)for(let e of n)l.toggleClassName(e);a.current.props=e}return(0,w.createPortal)(e.children,i)}));function j(e,t,n,o){let i=(0,r.useContext)(S),s=(0,r.useMemo)(()=>e(i),[]);return(0,r.useEffect)(()=>{let e="function"==typeof t&&"function"==typeof n?t:null,r="function"==typeof n?n:"function"==typeof t?t:null,{map:a}=i;return!a.hasControl(s)&&(a.addControl(s,(o||n||t)?.position),e&&e(i)),()=>{r&&r(i),a.hasControl(s)&&a.removeControl(s)}},[]),s}(0,r.memo)(function(e){let t=j(({mapLib:t})=>new t.AttributionControl(e),{position:e.position});return(0,r.useEffect)(()=>{E(t._container,e.style)},[e.style]),null});let O=(0,r.memo)(function(e){let t=j(({mapLib:t})=>new t.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return(0,r.useEffect)(()=>{E(t._controlContainer,e.style)},[e.style]),null}),k=(0,r.memo)((0,r.forwardRef)(function(e,t){let n=(0,r.useRef)({props:e}),o=j(({mapLib:t})=>{let r=new t.GeolocateControl(e),o=r._setupUI;return r._setupUI=()=>{r._container.hasChildNodes()||o()},r.on("geolocate",e=>{n.current.props.onGeolocate?.(e)}),r.on("error",e=>{n.current.props.onError?.(e)}),r.on("outofmaxbounds",e=>{n.current.props.onOutOfMaxBounds?.(e)}),r.on("trackuserlocationstart",e=>{n.current.props.onTrackUserLocationStart?.(e)}),r.on("trackuserlocationend",e=>{n.current.props.onTrackUserLocationEnd?.(e)}),r},{position:e.position});return n.current.props=e,(0,r.useImperativeHandle)(t,()=>o,[]),(0,r.useEffect)(()=>{E(o._container,e.style)},[e.style]),null})),A=(0,r.memo)(function(e){let t=j(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,r.useEffect)(()=>{E(t._container,e.style)},[e.style]),null});(0,r.memo)(function(e){let t=j(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),n=(0,r.useRef)(e),o=n.current;n.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,r.useEffect)(()=>{E(t._container,i)},[i]),null}),(0,r.memo)(function(e){let t=j(({mapLib:t})=>new t.TerrainControl(e),{position:e.position});return(0,r.useEffect)(()=>{E(t._container,e.style)},[e.style]),null}),(0,r.memo)(function(e){let t=j(({mapLib:t})=>new t.LogoControl(e),{position:e.position});return(0,r.useEffect)(()=>{E(t._container,e.style)},[e.style]),null})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.