1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[917],{2917:function(e,n,t){t.r(n),t.d(n,{default:function(){return O}});var r=t(5893),u=t(7294);let l=(0,u.createContext)(null),o=l.Provider;function a(){let e=(0,u.useContext)(l);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var i=t(3935);function c(e,n,t){return Object.freeze({instance:e,context:n,container:t})}function f(e,n){return null==n?function(n,t){let r=(0,u.useRef)();return r.current||(r.current=e(n,t)),r}:function(t,r){let l=(0,u.useRef)();l.current||(l.current=e(t,r));let o=(0,u.useRef)(t),{instance:a}=l.current;return(0,u.useEffect)(function(){o.current!==t&&(n(a,t,o.current),o.current=t)},[a,t,r]),l}}function p(e,n){let t=(0,u.useRef)(n);(0,u.useEffect)(function(){n!==t.current&&null!=e.attributionControl&&(null!=t.current&&e.attributionControl.removeAttribution(t.current),null!=n&&e.attributionControl.addAttribution(n)),t.current=n},[e,n])}function s(e,n){let t=(0,u.useRef)();(0,u.useEffect)(function(){return null!=n&&e.instance.on(n),t.current=n,function(){null!=t.current&&e.instance.off(t.current),t.current=null}},[e,n])}function d(e,n){let t=e.pane??n.pane;return t?{...e,pane:t}:e}function v(e){return function(n){var t;let r=a(),l=e(d(n,r),r);return p(r.map,n.attribution),s(l.current,n.eventHandlers),t=l.current,(0,u.useEffect)(function(){let e=r.layerContainer??r.map;return e.addLayer(t.instance),function(){r.layerContainer?.removeLayer(t.instance),r.map.removeLayer(t.instance)}},[r,t]),l}}var m=t(5243),g=t.n(m);let b=function(e,n){let t=f(e,n),r=v(t);return(0,u.forwardRef)(function(e,n){let{instance:t,context:l}=r(e).current;return(0,u.useImperativeHandle)(n,()=>t),null==e.children?null:u.createElement(o,{value:l},e.children)})}(function({position:e,...n},t){let r=new m.Marker(e,n);return c(r,Object.freeze({...t,overlayContainer:r}))},function(e,n,t){n.position!==t.position&&e.setLatLng(n.position),null!=n.icon&&n.icon!==t.icon&&e.setIcon(n.icon),null!=n.zIndexOffset&&n.zIndexOffset!==t.zIndexOffset&&e.setZIndexOffset(n.zIndexOffset),null!=n.opacity&&n.opacity!==t.opacity&&e.setOpacity(n.opacity),null!=e.dragging&&n.draggable!==t.draggable&&(!0===n.draggable?e.dragging.enable():e.dragging.disable())}),y=function(e,n){var t;let r=f(e);return t=function(e,t){let u=a(),l=r(d(e,u),u);return p(u.map,e.attribution),s(l.current,e.eventHandlers),n(l.current,u,e,t),l},(0,u.forwardRef)(function(e,n){let[r,l]=(0,u.useState)(!1),{instance:o}=t(e,l).current;(0,u.useImperativeHandle)(n,()=>o),(0,u.useEffect)(function(){r&&o.update()},[o,r,e.children]);let a=o._contentNode;return a?(0,i.createPortal)(e.children,a):null})}(function(e,n){let t=new m.Popup(e,n.overlayContainer);return c(t,n)},function(e,n,{position:t},r){(0,u.useEffect)(function(){let{instance:u}=e;function l(e){e.popup===u&&(u.update(),r(!0))}function o(e){e.popup===u&&r(!1)}return n.map.on({popupopen:l,popupclose:o}),null==n.overlayContainer?(null!=t&&u.setLatLng(t),u.openOn(n.map)):n.overlayContainer.bindPopup(u),function(){n.map.off({popupopen:l,popupclose:o}),n.overlayContainer?.unbindPopup(),n.map.removeLayer(u)}},[e,n,r,t])});function h(){return(h=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}let x=(0,u.forwardRef)(function({bounds:e,boundsOptions:n,center:t,children:r,className:l,id:a,placeholder:i,style:c,whenReady:f,zoom:p,...s},d){let[v]=(0,u.useState)({className:l,id:a,style:c}),[g,b]=(0,u.useState)(null);(0,u.useImperativeHandle)(d,()=>g?.map??null,[g]);let y=(0,u.useCallback)(r=>{if(null!==r&&null===g){let u=new m.Map(r,s);null!=t&&null!=p?u.setView(t,p):null!=e&&u.fitBounds(e,n),null!=f&&u.whenReady(f),b(Object.freeze({__version:1,map:u}))}},[]);(0,u.useEffect)(()=>()=>{g?.map.remove()},[g]);let x=g?u.createElement(o,{value:g},r):i??null;return u.createElement("div",h({},v,{ref:y}),x)}),C=function(e,n){let t=f(e,n),r=v(t);return(0,u.forwardRef)(function(e,n){let{instance:t}=r(e).current;return(0,u.useImperativeHandle)(n,()=>t),null})}(function({url:e,...n},t){let r=new m.TileLayer(e,d(n,t));return c(r,t)},function(e,n,t){!function(e,n,t){let{opacity:r,zIndex:u}=n;null!=r&&r!==t.opacity&&e.setOpacity(r),null!=u&&u!==t.zIndex&&e.setZIndex(u)}(e,n,t);let{url:r}=n;null!=r&&r!==t.url&&e.setUrl(r)});function w(e){let{data:n,titles:t}=e,u=a().map,l=g().icon({iconUrl:"/marker.webp",iconSize:[54,76],iconAnchor:[35,69]});return n.length>0&&n.map((e,n)=>{var o;return(0,r.jsx)(b,{eventHandlers:{click:()=>{u.setView([e.lat,e.lng],14)}},position:{lat:e.lat,lng:e.lng},icon:l,children:(null==t?void 0:t.length)&&(0,r.jsx)(y,{children:null==t?void 0:null===(o=t[n])||void 0===o?void 0:o.title})},n)})}var O=e=>{let{coords:n,zoom:t,center:u,titles:l}=e;return(0,r.jsxs)(x,{className:"markercluster-map",center:u,zoom:t,maxZoom:18,children:[(0,r.jsx)(C,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'\xa9 <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}),(0,r.jsx)(w,{data:n,titles:l})]})}}}]);
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.