1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[208],{2129:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,n:()=>a});var i=n(14232),r=n(25894),o=n(18550),s=n(72655);let a=()=>{let{pageUiEnvironment:{window:e,document:t}}=(0,r.p)(),{headerHeight:n}=(0,o.A)(),a=(0,i.useRef)(n);(0,i.useEffect)(()=>{a.current=n},[n]);let l=(0,i.useCallback)((t,n="smooth")=>{null==e||e.scrollTo({top:t,behavior:n})},[e]),u=(0,i.useCallback)((t,n,i)=>{if(!t||!e)return;let r=t.getBoundingClientRect().top+e.pageYOffset;r&&l(r-(n||0),i)},[l,e]),h=(0,i.useCallback)((e,n=100)=>{let i=null==t?void 0:t.querySelector(".page-builder-build-wrapper");if(!i||!e)return;let r=i.getBoundingClientRect().top,o=e.getBoundingClientRect().top;i.scrollTo({top:i.scrollTop+(o-r)-n,behavior:"smooth"})},[t]),c=(0,i.useCallback)((e,i=0,r)=>{if(void 0===e)return;let o=null==t?void 0:t.querySelector(`[data-widget-id="${e}"]`);if(o)u(o,i+(1===s.N.getIndexById(e)?0:n),r)},[t,n,u]),d=(0,i.useCallback)(n=>{let i=null==t?void 0:t.querySelector(n);if(!i)return;let r=0,o=()=>Math.floor(i.getBoundingClientRect().top+e.scrollY-a.current),s=o(),u=()=>{let t=Date.now(),n=setInterval(()=>{let i=o(),a=Math.abs(i-e.scrollY);r<10&&(a>10||i!==s)?(clearInterval(n),s=i,l(i),r++,requestAnimationFrame(u)):(i===s||Date.now()-t>1e3)&&clearInterval(n)},100)};l(s),requestAnimationFrame(u)},[n]),_=(0,i.useCallback)((e,i=0)=>{let r=null==t?void 0:t.querySelector(`[data-widget="${e}"]`);r&&u(r,i+n)},[t,n,u]);return{scrollToPosition:l,scrollToElement:u,scrollToWidget:c,smoothTrackScrollToElement:d,scrollToElementInBuilder:h,scrollToWidgetByType:_}},l=a},39121:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var i=n(14232),r=n(25894);let o=({url:e,integrity:t,crossOrigin:n})=>{let{pageUiEnvironment:{document:o}}=(0,r.p)();(0,i.useEffect)(()=>{if(!o||o.querySelector(`link[href="${e}"]`))return;let i=o.createElement("link");i.rel="stylesheet",i.href=e,i.integrity=t||"",i.crossOrigin=n||"",o.head.appendChild(i)},[e,o,t,n])}},40208:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>et});var i=n(37876),r=n(14232),o=n(98477);let s=(0,r.createContext)(null),a=s.Provider;function l(){let e=(0,r.useContext)(s);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function u(e){return(0,r.forwardRef)(function(t,n){let{instance:i,context:o}=e(t).current;return(0,r.useImperativeHandle)(n,()=>i),null==t.children?null:r.createElement(a,{value:o},t.children)})}function h(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function c(e,t){return null==t?function(t,n){let i=(0,r.useRef)();return i.current||(i.current=e(t,n)),i}:function(n,i){let o=(0,r.useRef)();o.current||(o.current=e(n,i));let s=(0,r.useRef)(n),{instance:a}=o.current;return(0,r.useEffect)(function(){s.current!==n&&(t(a,n,s.current),s.current=n)},[a,n,i]),o}}function d(e,t){let n=(0,r.useRef)(t);(0,r.useEffect)(function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function _(e,t){let n=(0,r.useRef)();(0,r.useEffect)(function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}},[e,t])}function p(e,t){let n=e.pane??t.pane;return n?{...e,pane:n}:e}function f(e,t){(0,r.useEffect)(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function m(e){return function(t){let n=l(),i=e(p(t,n),n);return d(n.map,t.attribution),_(i.current,t.eventHandlers),f(i.current,n),i}}var g=n(16895),y=n.n(g);let v=u(m(c(function({position:e,...t},n){var i;let r=new g.Marker(e,t);return h(r,(i={overlayContainer:r},Object.freeze({...n,...i})))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())}))),C=function(e,t){var n,i;return n=c(e),i=function(e,i){let r=l(),o=n(p(e,r),r);return d(r.map,e.attribution),_(o.current,e.eventHandlers),t(o.current,r,e,i),o},(0,r.forwardRef)(function(e,t){let[n,s]=(0,r.useState)(!1),{instance:a}=i(e,s).current;(0,r.useImperativeHandle)(t,()=>a),(0,r.useEffect)(function(){n&&a.update()},[a,n,e.children]);let l=a._contentNode;return l?(0,o.createPortal)(e.children,l):null})}(function(e,t){return h(new g.Popup(e,t.overlayContainer),t)},function(e,t,{position:n},i){(0,r.useEffect)(function(){let{instance:r}=e;
1function o(e){e.popup===r&&(r.update(),i(!0))}function s(e){e.popup===r&&i(!1)}return t.map.on({popupopen:o,popupclose:s}),null==t.overlayContainer?(null!=n&&r.setLatLng(n),r.openOn(t.map)):t.overlayContainer.bindPopup(r),function(){t.map.off({popupopen:o,popupclose:s}),t.overlayContainer?.unbindPopup(),t.map.removeLayer(r)}},[e,t,i,n])});function M(){return(M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}let b=(0,r.forwardRef)(function({bounds:e,boundsOptions:t,center:n,children:i,className:o,id:s,placeholder:l,style:u,whenReady:h,zoom:c,...d},_){let[p]=(0,r.useState)({className:o,id:s,style:u}),[f,m]=(0,r.useState)(null);(0,r.useImperativeHandle)(_,()=>f?.map??null,[f]);let y=(0,r.useCallback)(i=>{if(null!==i&&null===f){let r=new g.Map(i,d);null!=n&&null!=c?r.setView(n,c):null!=e&&r.fitBounds(e,t),null!=h&&r.whenReady(h),m(Object.freeze({__version:1,map:r}))}},[]);(0,r.useEffect)(()=>()=>{f?.map.remove()},[f]);let v=f?r.createElement(a,{value:f},i):l??null;return r.createElement("div",M({},p,{ref:y}),v)}),k=function(e,t){var n;return n=m(c(e,t)),(0,r.forwardRef)(function(e,t){let{instance:i}=n(e).current;return(0,r.useImperativeHandle)(t,()=>i),null})}(function({url:e,...t},n){return h(new g.TileLayer(e,p(t,n)),n)},function(e,t,n){let{opacity:i,zIndex:r}=t;null!=i&&i!==n.opacity&&e.setOpacity(i),null!=r&&r!==n.zIndex&&e.setZIndex(r);let{url:o}=t;null!=o&&o!==n.url&&e.setUrl(o)});function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(59735);var S=["children"];function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){var i,r,o;i=e,r=t,o=n[t],(r=function(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=w(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}(r))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}g.MarkerClusterGroup.include({_flushLayerBuffer:function(){this.addLayers(this._layerBuffer),this._layerBuffer=[]},addLayer:function(e){0===this._layerBuffer.length&&setTimeout(this._flushLayerBuffer.bind(this),50),this._layerBuffer.push(e)}}),g.MarkerClusterGroup.addInitHook(function(){this._layerBuffer=[]});var z=function(e,t){var n;return u((n=c(e,void 0),function(e){let t=l(),i=n(p(e,t),t);_(i.current,e.eventHandlers),f(i.current,t);var o=i.current;let s=(0,r.useRef)();return(0,r.useEffect)(function(){if(e.pathOptions!==s.current){let t=e.pathOptions??{};o.instance.setStyle(t),s.current=t}},[o,e]),i}))}(function(e,t){e.children;var n=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,S),i={},r={};
1Object.entries(n).forEach(function(e){var t=P(e,2),n=t[0],o=t[1];return n.startsWith("on")?r[n]=o:i[n]=o});var o=new g.MarkerClusterGroup(i);return Object.entries(r).forEach(function(e){var t=P(e,2),n=t[0],i=t[1],r="cluster".concat(n.substring(2).toLowerCase());o.on(r,i)}),{instance:o,context:x(x({},t),{},{layerContainer:o})}}),B=n(5646),E=n(63853),I=n(39121),G=n(79685),Z=n(2129),j=n(78116),T=n(57484),N=n(32251),R=n(42689),U=n(81344),D=n(55952),H=n(79870),F=n(97144),q=n(77390),V=n(38924),W=n(45031),$=n(21845),Q=n(17370);let Y=({color:e,qty:t,alt:n,options:i})=>{let r=` 2 <svg xmlns="http://www.w3.org/2000/svg" width="32px" height="48px" viewBox="0 0 32 48" xml:space="preserve"> 3 <style type="text/css"> 4 .st0{fill:${$.a.White};} 5 .st1{fill:none;} 6 .st2{font-family:Arial,sans-serif;font-weight:bold;} 7 .st3{font-size:12px;} 8 .st4{fill:${e};} 9 </style> 10 <path class="st4" d="M16,47c-0.154,0-0.307-0.078-0.423-0.194c-0.385-0.468-4-4.678-7.5-10.487C3.424,28.717,1,21.778,1,16.203C1,7.822,7.731,1,16,1s15,6.822,15,15.203c0,5.458-2.424,12.358-7.038,19.998c-3.539,5.848-7.115,10.136-7.5,10.603C16.307,46.922,16.192,47,16,47z"/> 11 <path class="st0" d="M16,2c7.72,0,14,6.219,14,13.864c0,5.325-2.493,12.178-7.208,19.816c-2.584,4.178-5.19,7.588-6.781,9.558c-2.44-2.964-4.811-6.27-6.767-9.445C4.505,28.22,2,21.329,2,15.864C2,8.219,8.28,2,16,2 M16,0C7.179,0,0,7.118,0,15.864c0,5.818,2.585,13.058,7.549,20.99c3.734,6.061,7.59,10.454,8,10.943C15.672,47.918,15.835,48,16,48c0.205,0,0.328-0.082,0.493-0.204c0.41-0.487,4.225-4.962,8-11.064C29.415,28.759,32,21.559,32,15.864C32,7.118,24.821,0,16,0L16,0z"/> 12 <rect x="2" y="12.4" class="st1" width="28" height="11.6"/> 13 <text class="st0 st2 st3" text-anchor="middle" x="50%" y="44%">${(null==i?void 0:i.hideQty)?"":t}</text> 14 </svg> 15 `,o=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`;return y().divIcon({html:`<img src="${o}" alt="${n}"/>`,iconSize:[32,48],iconAnchor:[16,48],popupAnchor:[0,-48]})};n(41173);var J=n(34846),X=n(98755);let K=B.Ay.div.withConfig({displayName:"LazyLoadedMap__Container",componentId:"sc-1ynse2n-0"})(["position:relative;height:100%;width:100%;a{display:inline;}.leaflet-div-icon{background:none;border:none;}"]),ee=B.Ay.div.withConfig({displayName:"LazyLoadedMap__Description",componentId:"sc-1ynse2n-1"})([""," ",";position:absolute;z-index:1200;right:50%;bottom:32px;transform:translate(50%,0);text-align:center;"," padding:16px;width:90%;max-width:310px;background-color:",";color:",";font-size:1rem;line-height:1.33;@media ","{font-size:0.875rem;}@media ","{font-size:1.125rem;}p{margin:0;}"],D.BY,H.R_,(0,V.hD)(W.Dn,W.Vz),$.a.White,$.a.Text,Q.bp.p,Q.bp.d),et=({description:e,markers:t,center:n=[0,0],zoom:o=1,scrollWheelZoom:s=!1,isLoading:a=!1,onMarkerClick:l,skipApplyFilters:u=!1,className:h,hideQty:c=!1,altKey:d})=>{(0,I.t)({url:R.Hx});let{t:_}=(0,J.Bd)(),[p,{width:f,height:m}]=(0,G.W)(),{scrollToWidgetByType:g}=(0,Z.n)(),{onChangeJobFiltersState:y}=(0,T.G)(),{design:M}=(0,N.N)(),w=(0,r.useRef)(null),{0:S,1:O}=(0,r.useState)(!1),{0:x,1:P}=(0,r.useState)(!0),A=`#${M.colorSchema.highlight.value}`,B=(0,r.useCallback)(()=>{if(!w.current||!(null==t?void 0:t.length))return;let e=t.map(e=>e.coords);w.current.invalidateSize(!0),w.current.fitBounds(e,{padding:[30,30]})},[t]);(0,r.useEffect)(()=>{S&&B()},[S,B]);let D=(0,E.YQ)(B,100);(0,r.useEffect)(()=>{D()},[f,m,D]);let H=e=>{(e=>{if(u)return;let t=e.city||e.state||e.country||e.geoLocationName;t&&(y({location:[t]}),g(j.x.JobList))})(e),null==l||l(e)},V=e=>{var t,n;let i=e.layer,r=i._map,o=r.getBoundsZoom(i.getBounds()),s=r.getMaxZoom(),a=r.getZoom(),l=i.getAllChildMarkers();o>a&&a<s&&o!==s?r.setView(i.getLatLng(),o):H(null==(n=null==(t=null==l?void 0:l[0])?void 0:t.options.eventData)?void 0:n.marker)},W=e=>(0,X.Y)(_(d||"map.marker.alt-text"),{numberOfJobs:e});return(0,i.jsxs)(K,{ref:p,className:h,children:[(0,i.jsx)(q.Z,{isVisible:a||x}),(0,i.jsxs)(b,{ref:w,dragging:!U.is,center:n,zoom:o,scrollWheelZoom:s,whenReady:()=>{O(!0),setTimeout(()=>P(!1),250)},style:{height:"100%",width:"100%"},children:[(0,i.jsx)(k,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',url:"//{s}-tile.softgarden.io/{z}/{x}/{y}.png"}),(0,i.jsx)(z,{showCoverageOnHover:!1,spiderfyOnMaxZoom:!1,zoomToBoundsOnClick:!1,iconCreateFunction:e=>((e,t,n)=>{let i=e.getChildCount()||1,r=n(i);return Y({color:t,qty:i,alt:r})})(e,A,W),eventHandlers:{clusterclick:V,clusterkeydown:e=>{let{key:t}=e.originalEvent;"Enter"===t&&V(e)}},children:null==t?void 0:t.map((e,t)=>{let n=Y({color:e.color||A,qty:e.qty,alt:W(e.qty),options:{hideQty:c}});return(0,i.jsx)(v,{position:e.coords,icon:n,eventData:{marker:e},eventHandlers:{click:()=>H(e),keydown:t=>((e,t)=>{let{key:n}=e.originalEvent;"Enter"===n&&H(t)})(t,e)},children:e.tooltip&&(0,i.jsx)(C,{children:(0,i.jsx)(F.E,{children:e.tooltip})})},t)})})]}),e&&(0,i.jsx)(ee,{children:(0,i.jsx)(F.E,{children:e})})]})}},41173:()=>{},59735:function(e,t){(function(e){"use strict";var t=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster
15=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,n=this._zoom;if(e.__parent)for(;t.__parent._zoom>=n;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):(e.getLatLng?this._map?e.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow())):(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e})):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e})),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var n,i=this._featureGroup,r=this._nonPointGroup,o=this.options.chunkedLoading,s=this.options.chunkInterval,a=this.options.chunkProgress,l=e.length,u=0,h=!0;if(this._map){var c=new Date().getTime(),d=L.bind(function(){var _=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();u<l&&!(o&&u%200==0&&new Date().getTime()-_>s);u++){if((n=e[u])instanceof L.LayerGroup){h&&(e=e.slice(),h=!1),this._extractNonGroupLayers(n,e),l=e.length;continue}if(!n.getLatLng){r.addLayer(n),t||this.fire("layeradd",{layer:n});continue}if(!this.hasLayer(n)&&(this._addLayer(n,this._maxZoom),t||this.fire("layeradd",{layer:n}),n.__parent&&2===n.__parent.getChildCount())){var p=n.__parent.getAllChildMarkers(),f=p[0]===n?p[1]:p[0];i.removeLayer(f)}}a&&a(u,l,new Date().getTime()-c),u===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)},this);d()}else for(var _=this._needsClustering;u<l;u++){if((n=e[u])instanceof L.LayerGroup){h&&(e=e.slice(),h=!1),this._extractNonGroupLayers(n,e),l=e.length;continue}if(!n.getLatLng){r.addLayer(n);continue}this.hasLayer(n)||_.push(n)}return this},removeLayers:function(e){var t,n,i=e.length,r=this._featureGroup,o=this._nonPointGroup,s=!0;if(!this._map){for(t=0;t<i;t++){if((n=e[t])instanceof L.LayerGroup){s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(n,e),i=e.length;continue}this._arraySplice(this._needsClustering,n),o.removeLayer(n),this.hasLayer(n)&&this._needsRemoving.push({layer:n,latlng:n._latlng}),this.fire("layerremove",{layer:n})}return this}if(this._unspiderfy){this._unspiderfy();var a=e.slice(),l=i;for(t=0;t<l;t++){if((n=a[t])instanceof L.LayerGroup){this._extractNonGroupLayers(n,a),l=a.length;continue}this._unspiderfyLayer(n)}}for(t=0;t<i;t++){if((n=e[t])instanceof L.LayerGroup){s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(n,e),i=e.length;continue}if(!n.__parent){o.removeLayer(n),this.fire("layerremove",{layer:n});continue}this._removeLayer(n,!0,!0),this.fire("layerremove",{layer:n}),r.hasLayer(n)&&(r.removeLayer(n),n.clusterShow&&n.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;t>=0;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var n,i,r,o=this._needsClustering.slice(),s=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),i=o.length-1;i>=0;i--){for(n=!0,r=s.length-1;r>=0;r--)if(s[r].layer===o[i]){n=!1;break}n&&e.call(t,o[i])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer(function(t){e.push(t)}),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer(function(n){L.stamp(n)===e&&(t=n)}),t},hasLayer:function(e){if(!e)return!1;var t,n=this._needsClustering;for(t=n.length-1;t>=0;t--)if(n[t]===e)return!0;for(t=(n=this._needsRemoving).length-1;t>=0;t--)if(n[t].layer===e)return!1;return!!(e.__parent&&e.__parent._group===this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var n=this._map;"function"!=typeof t&&(t=function(){});var i=function(){(n.hasLayer(e)||n.hasLayer(e.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",i,this),this.off("animationend",i,this),n.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",i,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",i,this),this.on("animationend",i,this),e.__parent.zoomToBounds())},onAdd:function(e){var t,n,i;if(this._map=e,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";
vendor: 5,073 bytes, line 15
15for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,n=this._needsRemoving.length;t<n;t++)(i=this._needsRemoving[t]).newlatlng=i.layer._latlng,i.layer._latlng=i.latlng;for(t=0,n=this._needsRemoving.length;t<n;t++)i=this._needsRemoving[t],this._removeLayer(i.layer,!0),i.layer._latlng=i.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),n=this._needsClustering,this._needsClustering=[],this.addLayers(n,!0)},onRemove:function(e){e.off("zoomend",this._zoomEnd,this),e.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return e.splice(n,1),!0},_removeFromGridUnclustered:function(e,t){for(var n=this._map,i=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());t>=r&&i[t].removeObject(e,n.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,n){e._latlng=t,this.removeLayer(e),e._latlng=n,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,n){var i=this._gridClusters,r=this._gridUnclustered,o=this._featureGroup,s=this._map,a=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var l,u=e.__parent,h=u._markers;for(this._arraySplice(h,e);u&&(u._childCount--,u._boundsNeedUpdate=!0,!(u._zoom<a));)t&&u._childCount<=1?(l=u._markers[0]===e?u._markers[1]:u._markers[0],i[u._zoom].removeObject(u,s.project(u._cLatLng,u._zoom)),r[u._zoom].addObject(l,s.project(l.getLatLng(),u._zoom)),this._arraySplice(u.__parent._childClusters,u),u.__parent._markers.push(l),l.__parent=u.__parent,u._icon&&(o.removeLayer(u),n||o.addLayer(l))):u._iconNeedsUpdate=!0,u=u.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},fire:function(e,t,n){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e}L.FeatureGroup.prototype.fire.call(this,e,t,n)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),n=" marker-cluster-";return t<10?n+="small":t<100?n+="medium":n+="large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+n,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,n=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom;(t||i||r)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),n&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){var t=e.layer,n=t;if("clusterkeypress"!==e.type||!e.originalEvent||13===e.originalEvent.keyCode){for(;1===n._childClusters.length;)n=n._childClusters[0];n._zoom===this._maxZoom&&n._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(e){var t=this._map;!this._inZoomAnimation&&(this._shownPolygon&&t.removeLayer(this._shownPolygon),e.layer.getChildCount()>2&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,i=this.options.spiderfyOnEveryZoom,r=this._map;(e||n||i)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),r.off("zoomend",this._hideCoverage,this))}
vendor: 7,118 bytes, line 15
15,_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),n=this.options.maxClusterRadius,i=n;"function"!=typeof n&&(i=function(){return n}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var r=e;r>=t;r--)this._gridClusters[r]=new L.DistanceGrid(i(r)),this._gridUnclustered[r]=new L.DistanceGrid(i(r));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var n,i,r=this._gridClusters,o=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);t>=s;t--){n=this._map.project(e.getLatLng(),t);var a=r[t].getNearObject(n);if(a){a._addChild(e),e.__parent=a;return}if(a=o[t].getNearObject(n)){var l=a.__parent;l&&this._removeLayer(a,!1);var u=new this._markerCluster(this,t,a,e);r[t].addObject(u,this._map.project(u._cLatLng,t)),a.__parent=u,e.__parent=u;var h=u;for(i=t-1;i>l._zoom;i--)h=new this._markerCluster(this,i,h),r[i].addObject(h,this._map.project(a.getLatLng(),i));l._addChild(h),this._removeFromGridUnclustered(a,t);return}o[t].addObject(e,n)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()})},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var n=t.getAllChildMarkers();this._featureGroup.removeLayer(n[0]),this._featureGroup.removeLayer(n[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var n,i=e.getLayers(),r=0;for(t=t||[];r<i.length;r++){if((n=i[r])instanceof L.LayerGroup){this._extractNonGroupLayers(n,t);continue}t.push(n)}return t},_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(e,t){var n,i=this._getExpandedVisibleBounds(),r=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(i,e,o,function(o){var s,a=o._latlng,l=o._markers;for(i.contains(a)||(a=null),o._isSingleParent()&&e+1===t?(r.removeLayer(o),o._recursivelyAddChildrenToMap(null,t,i)):(o.clusterHide(),o._recursivelyAddChildrenToMap(a,t,i)),n=l.length-1;n>=0;n--)s=l[n],i.contains(s._latlng)||r.removeLayer(s)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(i,t),r.eachLayer(function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()}),this._topClusterLevel._recursively(i,e,t,function(e){e._recursivelyRestoreChildPositions(t)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(i,e,o,function(e){r.removeLayer(e),e.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var n=this,i=this._featureGroup;i.addLayer(e),t!==e&&(t._childCount>2?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue(function(){i.removeLayer(e),e.clusterShow(),n._animationEnd()})):(this._forceLayout(),n._animationStart(),n._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,n){var i=this._getExpandedVisibleBounds(),r=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(i,r,t+1,n);var o=this;this._forceLayout(),e._recursivelyBecomeVisible(i,n),this._enqueue(function(){if(1===e._childCount){var s=e._markers[0];this._ignoreMove=!0,s.setLatLng(s.getLatLng()),this._ignoreMove=!1,s.clusterShow&&s.clusterShow()}else e._recursively(i,n,r,function(e){e._recursivelyRemoveChildrenFromMap(i,r,t+1)});o._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};
vendor: 1,043 bytes, line 15
15var n=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,n,i){L.Marker.prototype.initialize.call(this,n?n._cLatLng||n.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,n&&this._addChild(n),i&&this._addChild(i)},getAllChildMarkers:function(e,t){e=e||[];for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n].getAllChildMarkers(e,t);for(var i=this._markers.length-1;i>=0;i--)t&&this._markers[i].__dragStart||e.push(this._markers[i]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,n=this._childClusters.slice(),i=this._group._map,r=i.getBoundsZoom(this._bounds),o=this._zoom+1,s=i.getZoom();n.length>0&&r>o;){o++;var a=[];for(t=0;t<n.length;t++)a=a.concat(n[t]._childClusters);n=a}r>o?this._group._map.setView(this._latlng,o):r<=s?this._group._map.setVie
vendor: 7,851 bytes, line 15
15w(this._latlng,s+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e,t,n,i,r=this._markers,o=this._childClusters,s=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),e=0;e<r.length;e++)n=r[e]._latlng,this._bounds.extend(n),s+=n.lat,a+=n.lng;for(e=0;e<o.length;e++)(t=o[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),n=t._wLatLng,i=t._childCount,s+=n.lat*i,a+=n.lng*i;this._latlng=this._wLatLng=new L.LatLng(s/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,n){this._recursively(e,this._group._map.getMinZoom(),n-1,function(e){var n,i,r=e._markers;for(n=r.length-1;n>=0;n--)(i=r[n])._icon&&(i._setPos(t),i.clusterHide())},function(e){var n,i,r=e._childClusters;for(n=r.length-1;n>=0;n--)(i=r[n])._icon&&(i._setPos(t),i.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,n,i){this._recursively(e,i,t,function(r){r._recursivelyAnimateChildrenIn(e,r._group._map.latLngToLayerPoint(r.getLatLng()).round(),n),r._isSingleParent()&&n-1===i?(r.clusterShow(),r._recursivelyRemoveChildrenFromMap(e,t,n)):r.clusterHide(),r._addToMap()})},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,function(e){e.clusterShow()})},_recursivelyAddChildrenToMap:function(e,t,n){this._recursively(n,this._group._map.getMinZoom()-1,t,function(i){if(t!==i._zoom)for(var r=i._markers.length-1;r>=0;r--){var o=i._markers[r];n.contains(o._latlng)&&(e&&(o._backupLatlng=o.getLatLng(),o.setLatLng(e),o.clusterHide&&o.clusterHide()),i._group._featureGroup.addLayer(o))}},function(t){t._addToMap(e)})},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;t>=0;t--){var n=this._markers[t];n._backupLatlng&&(n.setLatLng(n._backupLatlng),delete n._backupLatlng)}if(e-1===this._zoom)for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i]._restorePosition();else for(var r=this._childClusters.length-1;r>=0;r--)this._childClusters[r]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,n,i){var r,o;this._recursively(e,t-1,n-1,function(e){for(o=e._markers.length-1;o>=0;o--)r=e._markers[o],i&&i.contains(r._latlng)||(e._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())},function(e){for(o=e._childClusters.length-1;o>=0;o--)r=e._childClusters[o],i&&i.contains(r._latlng)||(e._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())})},_recursively:function(e,t,n,i,r){var o,s,a=this._childClusters,l=this._zoom;if(t<=l&&(i&&i(this),r&&l===n&&r(this)),l<t||l<n)for(o=a.length-1;o>=0;o--)(s=a[o])._boundsNeedUpdate&&s._recalculateBounds(),e.intersects(s._bounds)&&s._recursively(e,t,n,i,r)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var n=this._getCoord(t.x),i=this._getCoord(t.y),r=this._grid,o=r[i]=r[i]||{},s=o[n]=o[n]||[],a=L.Util.stamp(e);this._objectPoint[a]=t,s.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var n,i,r=this._getCoord(t.x),o=this._getCoord(t.y),s=this._grid,a=s[o]=s[o]||{},l=a[r]=a[r]||[];for(delete this._objectPoint[L.Util.stamp(e)],n=0,i=l.length;n<i;n++)if(l[n]===e)return l.splice(n,1),1===i&&delete a[r],!0},eachObject:function(e,t){var n,i,r,o,s,a,l=this._grid;for(n in l)for(i in s=l[n])for(r=0,o=(a=s[i]).length;r<o;r++)e.call(t,a[r])&&(r--,o--)},getNearObject:function(e){var t,n,i,r,o,s,a,l,u=this._getCoord(e.x),h=this._getCoord(e.y),c=this._objectPoint,d=this._sqCellSize,_=null;for(t=h-1;t<=h+1;t++)if(r=this._grid[t]){for(n=u-1;n<=u+1;n++)if(o=r[n])for(i=0,s=o.length;i<s;i++)a=o[i],((l=this._sqDist(c[L.Util.stamp(a)],e))<d||l<=d&&null===_)&&(d=l,_=a)}return _},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var n=t.x-e.x,i=t.y-e.y;return n*n+i*i}},L.QuickHull={getDistant:function(e,t){var n=t[1].lat-t[0].lat;return(t[0].lng-t[1].lng)*(e.lat-t[0].lat)+n*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var n,i,r,o=0,s=null,a=[];for(n=t.length-1;n>=0;n--)i=t[n],(r=this.getDistant(i,e))>0&&(a.push(i),r>o&&(o=r,s=i));return{maxPoint:s,newPoints:a}},buildConvexHull:function(e,t){var n=[],i=this.findMostDistantPointFromBaseLine(e,t);return i.maxPoint?n=(n=n.concat(this.buildConvexHull([e[0],i.maxPoint],i.newPoints))).concat(this.buildConvexHull([i.maxPoint,e[1]],i.newPoints)):[e[0]]},getConvexHull:function(e){var t,n=!1,i=!1,r=!1,o=!1,s=null,a=null,l=null,u=null,h=null,c=null;for(t=e.length-1;t>=0;t--){var d=e[t];(!1===n||d.lat>n)&&(s=d,n=d.lat),(!1===i||d.lat<i)&&(a=d,i=d.lat),(!1===r||d.lng>r)&&(l=d,r=d.lng),(!1===o||d.lng<o)&&(u=d,o=d.lng)}return i!==n?(c=a,h=s):(c=u,h=l),[].concat(this.buildConvexHull([c,h],e),this.buildConvexHull([h,c],e))}},L.MarkerCluster.include({getConvexHull:function(){var e,t,n=this.getAllChildMarkers(),i=[];for(t=n.length-1;t>=0;t--)e=n[t].getLatLng(),i.push(e);return L.QuickHull.getConvexHull(i)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var e,t=this.getAllChildMarkers(null,!0),n=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?e=this._group.options.spiderfyShapePositions(t.length,n):t.length>=this._circleSpiralSwitchover?e=this._generatePointsSpiral(t.length,n):(n.y+=10,e=this._generatePointsCircle(t.length,n)),this._animationSpiderfy(t,e)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var n,i,r=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,o=this._2PI/e,s=[];for(n=0,r=Math.max(r,35),s.length=e;n<e;n++)i=this._circleStartAngle+n*o,s[n]=new L.Point(t.x+r*Math.cos(i),t.y+r*Math.sin(i))._round();return s},_generatePointsSpiral:function(e,t){var n,i=this._group.options.spiderfyDistanceMultiplier,r=i*this._spiralLengthStart,o=i*this._spiralFootSeparation,s=i*this._spiralLengthFactor*this._2PI,a=0,l=[];for(l.length=e,n=e;n>=0;
vendor: 2,929 bytes, line 15
15n--)n<e&&(l[n]=new L.Point(t.x+r*Math.cos(a),t.y+r*Math.sin(a))._round()),a+=o/r+5e-4*n,r+=s/a;return l},_noanimationUnspiderfy:function(){var e,t,n=this._group,i=n._map,r=n._featureGroup,o=this.getAllChildMarkers(null,!0);for(n._ignoreMove=!0,this.setOpacity(1),t=o.length-1;t>=0;t--)e=o[t],r.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(i.removeLayer(e._spiderLeg),delete e._spiderLeg);n.fire("unspiderfied",{cluster:this,markers:o}),n._ignoreMove=!1,n._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var n,i,r,o,s=this._group,a=s._map,l=s._featureGroup,u=this._group.options.spiderLegPolylineOptions;for(n=0,s._ignoreMove=!0;n<e.length;n++)o=a.layerPointToLatLng(t[n]),i=e[n],r=new L.Polyline([this._latlng,o],u),a.addLayer(r),i._spiderLeg=r,i._preSpiderfyLatlng=i._latlng,i.setLatLng(o),i.setZIndexOffset&&i.setZIndexOffset(1e6),l.addLayer(i);this.setOpacity(.3),s._ignoreMove=!1,s.fire("spiderfied",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var n,i,r,o,s,a,l=this,u=this._group,h=u._map,c=u._featureGroup,d=this._latlng,_=h.latLngToLayerPoint(d),p=L.Path.SVG,f=L.extend({},this._group.options.spiderLegPolylineOptions),m=f.opacity;for(void 0===m&&(m=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),p?(f.opacity=0,f.className=(f.className||"")+" leaflet-cluster-spider-leg"):f.opacity=m,u._ignoreMove=!0,n=0;n<e.length;n++)i=e[n],a=h.layerPointToLatLng(t[n]),r=new L.Polyline([d,a],f),h.addLayer(r),i._spiderLeg=r,p&&(s=(o=r._path).getTotalLength()+.1,o.style.strokeDasharray=s,o.style.strokeDashoffset=s),i.setZIndexOffset&&i.setZIndexOffset(1e6),i.clusterHide&&i.clusterHide(),c.addLayer(i),i._setPos&&i._setPos(_);for(u._forceLayout(),u._animationStart(),n=e.length-1;n>=0;n--)a=h.layerPointToLatLng(t[n]),(i=e[n])._preSpiderfyLatlng=i._latlng,i.setLatLng(a),i.clusterShow&&i.clusterShow(),p&&((o=(r=i._spiderLeg)._path).style.strokeDashoffset=0,r.setStyle({opacity:m}));this.setOpacity(.3),u._ignoreMove=!1,setTimeout(function(){u._animationEnd(),u.fire("spiderfied",{cluster:l,markers:e})},200)},_animationUnspiderfy:function(e){var t,n,i,r,o,s,a=this,l=this._group,u=l._map,h=l._featureGroup,c=e?u._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):u.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),_=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),n=d.length-1;n>=0;n--)(t=d[n])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,s=!0,t._setPos&&(t._setPos(c),s=!1),t.clusterHide&&(t.clusterHide(),s=!1),s&&h.removeLayer(t),_&&(o=(r=(i=t._spiderLeg)._path).getTotalLength()+.1,r.style.strokeDashoffset=o,i.setStyle({opacity:0}
15)));l._ignoreMove=!1,setTimeout(function(){var e=0;for(n=d.length-1;n>=0;n--)(t=d[n])._spiderLeg&&e++;for(n=d.length-1;n>=0;n--)(t=d[n])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),e>1&&h.removeLayer(t),u.removeLayer(t._spiderLeg),delete t._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:d})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,n;for(t in e)for(n=e[t].__parent;n;)n._iconNeedsUpdate=!0,n=n.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,n;for(t in e)n=e[t],this.hasLayer(n)&&n.setIcon(this._overrideMarkerIcon(n))}}),L.Marker.include({refreshIconOptions:function(e,t){var n=this.options.icon;return L.setOptions(n,e),this.setIcon(n),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=n,Object.defineProperty(e,"__esModule",{value:!0})})(t)},81344:(e,t,n)=>{"use strict";n.d(t,{Xj:()=>s,is:()=>a,pz:()=>o,yS:()=>r});var i=n(59698);let r=!i.k&&(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&"ontouchend"in document),o=!i.k&&/iPhone|iPad|iPod/i.test(navigator.userAgent),s=!i.k&&/Android/i.test(navigator.userAgent),a=(()=>{var e;return!!(!i.k&&("ontouchstart"in window||(null==window?void 0:window.DocumentTouch)&&document instanceof(null==window?void 0:window.DocumentTouch)))||(e="("+" -webkit- -moz- -o- -ms- ".split(" ").join("touch-enabled),(")+"heartz)",!i.k&&window.matchMedia(e).matches)})()},98755:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});let i=(e,t)=>Object.keys(t).reduce((e,n)=>e.replace(RegExp(`%${n}%`,"g"),t[n]),e)}}]);
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.