1(self.webpackChunk=self.webpackChunk||[]).push([[635],{8635:(t,e,n)=>{var r,a,o;a=[n(53481)],void 0===(o="function"==typeof(r=function(t){"use strict";return t.Polyline._flat=t.LineUtil.isFlat||t.Polyline._flat||function(e){return!t.Util.isArray(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]},t.GeometryUtil=t.extend(t.GeometryUtil||{},{distance:function(t,e,n){return t.latLngToLayerPoint(e).distanceTo(t.latLngToLayerPoint(n))},distanceSegment:function(e,n,r,a){var o=e.latLngToLayerPoint(n),i=e.latLngToLayerPoint(r),l=e.latLngToLayerPoint(a);return t.LineUtil.pointToSegmentDistance(o,i,l)},readableDistance:function(t,e){return"imperial"!==e?t>1e3?(t/1e3).toFixed(2)+" km":Math.ceil(t)+" m":(t*=1.09361)>1760?(t/1760).toFixed(2)+" miles":Math.ceil(t)+" yd"},belongsSegment:function(t,e,n,r){r=void 0===r?.2:r;var a=e.distanceTo(n);return(e.distanceTo(t)+t.distanceTo(n)-a)/a<r},length:function(e){var n=t.GeometryUtil.accumulatedLengths(e);return n.length>0?n[n.length-1]:0},accumulatedLengths:function(t){if("function"==typeof t.getLatLngs&&(t=t.getLatLngs()),0===t.length)return[];for(var e=0,n=[0],r=0,a=t.length-1;r<a;r++)e+=t[r].distanceTo(t[r+1]),n.push(e);return n},closestOnSegment:function(e,n,r,a){var o=e.getMaxZoom();o===1/0&&(o=e.getZoom());var i=e.project(n,o),l=e.project(r,o),s=e.project(a,o),c=t.LineUtil.closestPointOnSegment(i,l,s);return e.unproject(c,o)},closest:function(e,n,r,a){var o,i,l,s,c,u=1/0,g=null;if(n instanceof Array){if(n[0]instanceof Array&&"number"!=typeof n[0][0]){for(i=0;i<n.length;i++)(c=t.GeometryUtil.closest(e,n[i],r,a))&&c.distance<u&&(u=c.distance,g=c);return g}if(!(n[0]instanceof t.LatLng||"number"==typeof n[0][0]||"number"==typeof n[0].lat))return g;n=t.polyline(n)}if(!(n instanceof t.Polyline))return g;if(o=JSON.parse(JSON.stringify(n.getLatLngs().slice(0))),n instanceof t.Polygon){var f=function(e){if(t.Polyline._flat(e))e.push(e[0]);else for(var n=0;n<e.length;n++)f(e[n])};f(o)}if(t.Polyline._flat(o)){if(a){for(i=0,l=o.length;i<l;i++){var y=o[i];(s=t.GeometryUtil.distance(e,r,y))<u&&(u=s,(g=y).distance=s)}return g}for(i=0,l=o.length;i<l-1;i++){var L=o[i],h=o[i+1];(s=t.GeometryUtil.distanceSegment(e,r,L,h))<=u&&(u=s,(g=t.GeometryUtil.closestOnSegment(e,r,L,h)).distance=s)}return g}for(i=0;i<o.length;i++)(c=t.GeometryUtil.closest(e,o[i],r,a)).distance<u&&(u=c.distance,g=c);return g},closestLayer:function(e,n,r){for(var a=1/0,o=null,i=null,l=1/0,s=0,c=n.length;s<c;s++){var u=n[s];if(u instanceof t.LayerGroup){var g=t.GeometryUtil.closestLayer(e,u.getLayers(),r);g.distance<a&&(a=g.distance,o=g)}else"function"==typeof u.getLatLng?(i=u.getLatLng(),l=t.GeometryUtil.distance(e,r,i)):(i=t.GeometryUtil.closest(e,u,r))&&(l=i.distance),l<a&&(a=l,o={layer:u,latlng:i,distance:l})}return o},nClosestLayers:function(e,n,r,a){if((a="number"==typeof a?a:n.length)<1||n.length<1)return null;for(var o,i,l=[],s=0,c=n.length;s<c;s++){var u=n[s];if(u instanceof t.LayerGroup){var g=t.GeometryUtil.closestLayer(e,u.getLayers(),r);l.push(g)}else"function"==typeof u.getLatLng?(i=u.getLatLng(),o=t.GeometryUtil.distance(e,r,i)):(i=t.GeometryUtil.closest(e,u,r))&&(o=i.distance),l.push({layer:u,latlng:i,distance:o})}return l.sort(function(t,e){return t.distance-e.distance}),l.length>a?l.slice(0,a):l},layersWithin:function(e,n,r,a){a="number"==typeof a?a:1/0;for(var o=[],i=null,l=0,s=0,c=n.length;s<c;s++){var u=n[s];"function"==typeof u.getLatLng?(i=u.getLatLng(),l=t.GeometryUtil.distance(e,r,i)):(i=t.GeometryUtil.closest(e,u,r))&&(l=i.distance),i&&l<a&&o.push({layer:u,latlng:i,distance:l})}return o.sort(function(t,e){return t.distance-e.distance})},closestLayerSnap:function(e,n,r,a,o){a="number"==typeof a?a:1/0,o="boolean"!=typeof o||o;var i=t.GeometryUtil.closestLayer(e,n,r);if(!i||i.distance>a)return null;if(o&&"function"==typeof i.layer.getLatLngs){var l=t.GeometryUtil.closest(e,i.layer,i.latlng,!0);l.distance<a&&(i.latlng=l,i.distance=t.GeometryUtil.distance(e,l,r))}return i},interpolateOnPointSegment:function(e,n,r){return t.point(e.x*(1-r)+r*n.x,e.y*(1-r)+r*n.y)},interpolateOnLine:function(e,n,r){var a=(n=n instanceof t.Polyline?n.getLatLngs():n).length;if(a<2)return null;if(0===(r=Math.max(Math.min(r,1),0)))return{latLng:n[0]instanceof t.LatLng?n[0]:t.latLng(n[0]),predecessor:-1};if(1==r)return{latLng:n[n.length-1]instanceof t.LatLng?n[n.length-1]:t.latLng(n[n.length-1]),predecessor:n.length-2};var o=e.getMaxZoom();o===1/0&&(o=e.getZoom());for(var i=[],l=0,s=0;s<a;s++)i[s]=e.project(n[s],o),s>0&&(l+=i[s-1].distanceTo(i[s]));var c=l*r,u=0,g=0;for(s=0;g<c;s++){var f=i[s],y=i[s+1];u=g,g+=f.distanceTo(y)}null==f&&null==y&&(f=i[0],y=i[1],s=1);var L=g-u!==0?(c-u)/(g-u):0,h=t.GeometryUtil.interpolateOnPointSegment(f,y,L);return{latLng:e.unproject(h,o),predecessor:s-1}},locateOnLine:function(e,n,r){var a=n.getLatLngs();if(r.equals(a[0]))return 0;if(r.equals(a[a.length-1]))return 1;for(var o=t.GeometryUtil.closest(e,n,r,!1),i=t.GeometryUtil.accumulatedLengths(a),l=i[i.length-1],s=0,c=!1,u=0,g=a.length-1;u<g;u++){var f=a[u],y=a[u+1];if(s=i[u],t.GeometryUtil.belongsSegment(o,f,y,.001)){s+=f.distanceTo(o),c=!0;break}}if(!c)throw"Could not interpolate "+r.toString()+" within "+n.toString();return s/l},reverse:function(e){return t.polyline(e.getLatLngs().slice(0).reverse())},extract:function(e,n,r,a){if(r>a)return t.GeometryUtil.extract(e,t.GeometryUtil.reverse(n),1-r,1-a);r=Math.max(Math.min(r,1),0),a=Math.max(Math.min(a,1),0);var o=n.getLatLngs(),i=t.GeometryUtil.interpolateOnLine(e,n,r),l=t.GeometryUtil.interpolateOnLine(e,n,a);if(r==a)return[t.GeometryUtil.interpolateOnLine(e,n,a).latLng];-1==i.predecessor&&(i.predecessor=0),-1==l.predecessor&&(l.predecessor=0);var s=o.slice(i.predecessor+1,l.predecessor+1);return s.unshift(i.latLng),s.push(l.latLng),s},isBefore:function(t,e){if(!e)return!1;var n=t.getLatLngs(),r=e.getLatLngs();return n[n.length-1].equals(r[0])},isAfter:function(t,e){if(!e)return!1;var n=t.getLatLngs(),r=e.getLatLngs();return n[0].equals(r[r.length-1])},startsAtExtremity:function(t,e){if(!e)return!1;var n=t.getLatLngs(),r=e.getLatLngs(),a=n[0];return a.equals(r[0])||a.equals(r[r.length-1])},computeAngle:function(t,e){return 180*Math.atan2(e.y-t.y,e.x-t.x)/Math.PI},computeSlope:function(t,e){var n=(e.y-t.y)/(e.x-t.x);return{a:n,b:t.y-n*t.x}},rotatePoint:function(e,n,r,a){var o=e.getMaxZoom();o===1/0&&(o=e.getZoom());var i=r*Math.PI/180,l=e.project(n,o),s=e.project(a,o),c=Math.cos(i)*(l.x-s.x)-Math.sin(i)*(l.y-s.y)+s.x,u=Math.sin(i)*(l.x-s.x)+Math.cos(i)*(l.y-s.y)+s.y;return e.unproject(new t.Point(c,u),o)},bearing:function(t,e){var n=Math.PI/180,r=t.lat*n,a=e.lat*n,o=t.lng*n,i=e.lng*n,l=Math.sin(i-o)*Math.cos(a),s=Math.cos(r)*Math.sin(a)-Math.sin(r)*Math.cos(a)*Math.cos(i-o),c=(180*Math.atan2(l,s)/Math.PI+360)%360;return c>=180?c-360:c},destination:function(e,n,r){n=(n+360)%360;var a=Math.PI/180,o=180/Math.PI,i=6378137,l=e.lng*a,s=e.lat*a,c=n*a,u=Math.sin(s),g=Math.cos(s),f=Math.cos(r/i),y=Math.sin(r/i),L=Math.asin(u*f+g*y*Math.cos(c)),h=l+Math.atan2(Math.sin(c)*y*g,f-u*Math.sin(L));return h=(h*=o)>180?h-360:h<-180?h+360:h,t.latLng([L*o,h])},angle:function(t,e,n){var r=t.latLngToContainerPoint(e),a=t.latLngToContainerPoint(n),o=180*Math.atan2(a.y-r.y,a.x-r.x)/Math.PI+90;return o+=o<0?360:0},destinationOnSegment:function(e,n,r,a){var o=t.GeometryUtil.angle(e,n,r),i=t.GeometryUtil.destination(n,o,a);return t.GeometryUtil.closestOnSegment(e,i,n,r)}}),t.GeometryUtil})?r.apply(e,a):r)||(t.exports=o)}}]);
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.