PageSourceSearch

https://www.parcum.be/frontend/leaflet-src-CLCA3X1B.js

js parcum.be collected 2026-10-02 06:42:17 UTC 139,664 bytes, 1 lines download raw bytes

1var Fi=Object.defineProperty;var Hi=(n,t,e)=>t in n?Fi(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var Ke=(n,t,e)=>Hi(n,typeof t!="symbol"?t+"":t,e);let ei=0;function w(n){return"_leaflet_id"in n||(n._leaflet_id=++ei),n._leaflet_id}function ii(n,t,e){let i,s;function o(){i=!1,s&&(r.apply(e,s),s=!1)}function r(...a){i?s=a:(n.apply(e,a),setTimeout(o,t),i=!0)}return r}function dt(n,t,e){const i=t[1],s=t[0],o=i-s;return n===i&&e?n:((n-s)%o+o)%o+s}function E(){return!1}function I(n,t){if(t===!1)return n;const e=10**(t===void 0?6:t);return Math.round(n*e)/e}function D(n){return n.trim().split(/\s+/)}function P(n,t){Object.hasOwn(n,"options")||(n.options=n.options?Object.create(n.options):{});for(const e in t)Object.hasOwn(t,e)&&(n.options[e]=t[e]);return n.options}const ji=/\{ *([\w_ -]+) *\}/g;function si(n,t){return n.replace(ji,(e,i)=>{let s=t[i];if(s===void 0)throw new Error(`No value provided for variable ${e}`);return typeof s=="function"&&(s=s(t)),s})}const zt="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";var Wi={__proto__:null,emptyImageUrl:zt,falseFn:E,formatNum:I,get lastId(){return ei},setOptions:P,splitWords:D,stamp:w,template:si,throttle:ii,wrapNum:dt};class yt{static extend({statics:t,includes:e,...i}){const s=class extends this{};Object.setPrototypeOf(s,this);const o=this.prototype,r=s.prototype;if(t&&Object.assign(s,t),Array.isArray(e))for(const a of e)Object.assign(r,a);else e&&Object.assign(r,e);return Object.assign(r,i),r.options&&(r.options=o.options?Object.create(o.options):{},Object.assign(r.options,i.options)),r._initHooks=[],s}static include(t){const e=this.prototype.options;return Object.assign(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this}static setDefaultOptions(t){return P(this.prototype,t),this}static mergeOptions(t){return this.prototype.options??={},Object.assign(this.prototype.options,t),this}static addInitHook(t,...e){const i=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks??=[],this.prototype._initHooks.push(i),this}constructor(...t){this._initHooksCalled=!1,P(this),this.initialize&&this.initialize(...t),this.callInitHooks()}initialize(){}callInitHooks(){if(this._initHooksCalled)return;const t=[];let e=this;for(;(e=Object.getPrototypeOf(e))!==null;)t.push(e);t.reverse();for(const i of t)for(const s of i._initHooks??[])s.call(this);this._initHooksCalled=!0}}class vt extends yt{on(t,e,i){if(typeof t=="object")for(const[s,o]of Object.entries(t))this._on(s,o,e);else for(const s of D(t))this._on(s,e,i);return this}off(t,e,i){if(!arguments.length)delete this._events;else if(typeof t=="object")for(const[s,o]of Object.entries(t))this._off(s,o,e);else{const s=arguments.length===1;for(const o of D(t))s?this._off(o):this._off(o,e,i)}return this}_on(t,e,i,s){if(typeof e!="function"){console.warn(`wrong listener type: ${typeof e}`);return}if(this._listens(t,e,i)!==!1)return;i===this&&(i=void 0);const o={fn:e,ctx:i};s&&(o.once=!0),this._events??={},this._events[t]??=[],this._events[t].push(o)}_off(t,e,i){if(!this._events)return;let s=this._events[t];if(!s)return;if(arguments.length===1){if(this._firingCount)for(const r of s)r.fn=E;delete this._events[t];return}if(typeof e!="function"){console.warn(`wrong listener type: ${typeof e}`);return}const o=this._listens(t,e,i);if(o!==!1){const r=s[o];this._firingCount&&(r.fn=E,this._events[t]=s=s.slice()),s.splice(o,1)}}fire(t,e,i){if(!this.listens(t,i))return this;const s={...e,type:t,target:this,sourceTarget:e?.sourceTarget||this};if(this._events){const o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(const r of o){const a=r.fn;r.once&&this.off(t,a,r.ctx),a.call(r.ctx||this,s)}this._firingCount--}}return i&&this._propagateEvent(s),this}listens(t,e,i,s){typeof t!="string"&&console.warn('"string" type argument expected');let o=e;if(typeof e!="function"&&(s=!!e,o=void 0,i=void 0),this._events?.[t]?.length&&this._listens(t,o,i)!==!1)return!0;if(s){for(const r of Object.values(this._eventParents??{}))if(r.listens(t,e,i,s))return!0}return!1}_listens(t,e,i){if(!this._events)return!1;const s=this._events[t]??[];
1if(!e)return!!s.length;i===this&&(i=void 0);const o=s.findIndex(r=>r.fn===e&&r.ctx===i);return o===-1?!1:o}once(t,e,i){if(typeof t=="object")for(const[s,o]of Object.entries(t))this._on(s,o,e,!0);else for(const s of D(t))this._on(s,e,i,!0);return this}addEventParent(t){return this._eventParents??={},this._eventParents[w(t)]=t,this}removeEventParent(t){return this._eventParents&&delete this._eventParents[w(t)],this}_propagateEvent(t){for(const e of Object.values(this._eventParents??{}))e.fire(t.type,{propagatedFrom:t.target,...t},!0)}}class c{constructor(t,e,i){if(!c.validate(t,e))throw new Error(`Invalid Point object: (${t}, ${e})`);let o,r;if(t instanceof c)return t;Array.isArray(t)?(o=t[0],r=t[1]):typeof t=="object"&&"x"in t&&"y"in t?(o=t.x,r=t.y):(o=t,r=e),this.x=i?Math.round(o):o,this.y=i?Math.round(r):r}static validate(t,e){return t instanceof c||Array.isArray(t)||t&&typeof t=="object"&&"x"in t&&"y"in t?!0:!!((t||t===0)&&(e||e===0))}clone(){const t=new c(0,0);return t.x=this.x,t.y=this.y,t}add(t){return this.clone()._add(new c(t))}_add(t){return this.x+=t.x,this.y+=t.y,this}subtract(t){return this.clone()._subtract(new c(t))}_subtract(t){return this.x-=t.x,this.y-=t.y,this}divideBy(t){return this.clone()._divideBy(t)}_divideBy(t){return this.x/=t,this.y/=t,this}multiplyBy(t){return this.clone()._multiplyBy(t)}_multiplyBy(t){return this.x*=t,this.y*=t,this}scaleBy(t){return new c(this.x*t.x,this.y*t.y)}unscaleBy(t){return new c(this.x/t.x,this.y/t.y)}round(){return this.clone()._round()}_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}floor(){return this.clone()._floor()}_floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.clone()._ceil()}_ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}trunc(){return this.clone()._trunc()}_trunc(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}distanceTo(t){t=new c(t);const e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)}equals(t){return t=new c(t),t.x===this.x&&t.y===this.y}contains(t){return t=new c(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)}toString(){return`Point(${I(this.x)}, ${I(this.y)})`}}class f{constructor(t,e){if(!t)return;if(t instanceof f)return t;const i=e?[t,e]:t;for(const s of i)this.extend(s)}extend(t){let e,i;if(!t)return this;if(t instanceof c||typeof t[0]=="number"||"x"in t)e=i=new c(t);else if(t=new f(t),e=t.min,i=t.max,!e||!i)return this;return!this.min&&!this.max?(this.min=e.clone(),this.max=i.clone()):(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)),this}getCenter(t){return new c((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)}getBottomLeft(){return new c(this.min.x,this.max.y)}getTopRight(){return new c(this.max.x,this.min.y)}getTopLeft(){return this.min}getBottomRight(){return this.max}getSize(){return this.max.subtract(this.min)}contains(t){let e,i;return typeof t[0]=="number"||t instanceof c?t=new c(t):t=new f(t),t instanceof f?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y}intersects(t){t=new f(t);const e=this.min,i=this.max,s=t.min,o=t.max,r=o.x>=e.x&&s.x<=i.x,a=o.y>=e.y&&s.y<=i.y;return r&&a}overlaps(t){t=new f(t);const e=this.min,i=this.max,s=t.min,o=t.max,r=o.x>e.x&&s.x<i.x,a=o.y>e.y&&s.y<i.y;return r&&a}isValid(){return!!(this.min&&this.max)}pad(t){const e=this.min,i=this.max,s=Math.abs(e.x-i.x)*t,o=Math.abs(e.y-i.y)*t;return new f(new c(e.x-s,e.y-o),new c(i.x+s,i.y+o))}equals(t){return t?(t=new f(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}}class g{constructor(t,e){if(!t)return;if(t instanceof g)return t;const i=e?[t,e]:t;for(const s of i)this.extend(s)}extend(t){const e=this._southWest,i=this._northEast;let s,o;if(t instanceof _)s=t,o=t;else if(t instanceof g){if(s=t._southWest,o=t._northEast,!s||!o)return this}else return t?_.validate(t)?this.extend(new _(t)):this.extend(new g(t)):this;return!e&&!i?(this._southWest=new _(s.lat,s.lng),this._northEast=new _(o.lat,o.lng)):(e.lat=Math.min(s.lat,e.lat),e.lng=Math.min(s.lng,e.lng),i.lat=Math.max(o.lat,i.lat),i.lng=Math.max(o.lng,i.lng)),this}pad(t){const e=this._southWest,i=this._northEast,s=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new g(new _(e.lat-s,e.lng-o),new _(i.lat+s,i.lng+o))}getCenter(){return new _((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)}
1getSouthWest(){return this._southWest}getNorthEast(){return this._northEast}getNorthWest(){return new _(this.getNorth(),this.getWest())}getSouthEast(){return new _(this.getSouth(),this.getEast())}getWest(){return this._southWest.lng}getSouth(){return this._southWest.lat}getEast(){return this._northEast.lng}getNorth(){return this._northEast.lat}contains(t){_.validate(t)?t=new _(t):t=new g(t);const e=this._southWest,i=this._northEast;let s,o;return t instanceof g?(s=t.getSouthWest(),o=t.getNorthEast()):s=o=t,s.lat>=e.lat&&o.lat<=i.lat&&s.lng>=e.lng&&o.lng<=i.lng}intersects(t){t=new g(t);const e=this._southWest,i=this._northEast,s=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&s.lat<=i.lat,a=o.lng>=e.lng&&s.lng<=i.lng;return r&&a}overlaps(t){t=new g(t);const e=this._southWest,i=this._northEast,s=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&s.lat<i.lat,a=o.lng>e.lng&&s.lng<i.lng;return r&&a}toBBoxString(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")}equals(t,e){return t?(t=new g(t),this._southWest.equals(t.getSouthWest
1(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1}isValid(){return!!(this._southWest&&this._northEast)}}class _{constructor(t,e,i){if(!_.validate(t,e,i))throw new Error(`Invalid LatLng object: (${t}, ${e})`);let o,r,a;if(t instanceof _)return t;Array.isArray(t)&&typeof t[0]!="object"?t.length===3?(o=t[0],r=t[1],a=t[2]):t.length===2&&(o=t[0],r=t[1]):typeof t=="object"&&"lat"in t?(o=t.lat,r="lng"in t?t.lng:t.lon,a=t.alt):(o=t,r=e,a=i),this.lat=+o,this.lng=+r,a!==void 0&&(this.alt=+a)}static validate(t,e,i){return t instanceof _||typeof t=="object"&&"lat"in t?!0:t&&Array.isArray(t)&&typeof t[0]!="object"?t.length===3||t.length===2:!!((t||t===0)&&(e||e===0))}equals(t,e){return t?(t=new _(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(e??1e-9)):!1}toString(t){return`LatLng(${I(this.lat,t)}, ${I(this.lng,t)})`}distanceTo(t){return G.distance(this,new _(t))}wrap(){return G.wrapLatLng(this)}toBounds(t){const e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return new g([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])}clone(){const t=new _(0,0);return t.lat=this.lat,t.lng=this.lng,t.alt=this.alt,t}}class W{static projection=void 0;static transformation=void 0;static latLngToPoint(t,e){const i=this.projection.project(t),s=this.scale(e);return this.transformation._transform(i,s)}static pointToLatLng(t,e){const i=this.scale(e),s=this.transformation.untransform(t,i);return this.projection.unproject(s)}static project(t){return this.projection.project(t)}static unproject(t){return this.projection.unproject(t)}static scale(t){return 256*2**t}static zoom(t){return Math.log(t/256)/Math.LN2}static getProjectedBounds(t){if(this.infinite)return null;const e=this.projection.bounds,i=this.scale(t),s=this.transformation.transform(e.min,i),o=this.transformation.transform(e.max,i);return new f(s,o)}static infinite=!1;static wrapLatLng(t){t=new _(t);const e=this.wrapLng?dt(t.lng,this.wrapLng,!0):t.lng,i=this.wrapLat?dt(t.lat,this.wrapLat,!0):t.lat,s=t.alt;return new _(i,e,s)}static wrapLatLngBounds(t){t=new g(t);const e=t.getCenter(),i=this.wrapLatLng(e),s=e.lat-i.lat,o=e.lng-i.lng;if(s===0&&o===0)return t;
1const r=t.getSouthWest(),a=t.getNorthEast(),h=new _(r.lat-s,r.lng-o),l=new _(a.lat-s,a.lng-o);return new g(h,l)}}class G extends W{static wrapLng=[-180,180];static R=6371e3;static distance(t,e){const i=Math.PI/180,s=t.lat*i,o=e.lat*i,r=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),h=r*r+Math.cos(s)*Math.cos(o)*a*a,l=2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h));return this.R*l}}const Ye=6378137,Vt={R:Ye,MAX_LATITUDE:85.0511287798,project(n){n=new _(n);const t=Math.PI/180,e=this.MAX_LATITUDE,i=Math.max(Math.min(e,n.lat),-e),s=Math.sin(i*t);return new c(this.R*n.lng*t,this.R*Math.log((1+s)/(1-s))/2)},unproject(n){n=new c(n);const t=180/Math.PI;return new _((2*Math.atan(Math.exp(n.y/this.R))-Math.PI/2)*t,n.x*t/this.R)},bounds:(()=>{const n=Ye*Math.PI;return new f([-n,-n],[n,n])})()};class wt{constructor(t,e,i,s){if(Array.isArray(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=e,this._c=i,this._d=s}transform(t,e){return this._transform(t.clone(),e)}_transform(t,e){return e||=1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t}untransform(t,e){return e||=1,new c((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}}class he extends G{static code="EPSG:3857";static projection=Vt;static transformation=(()=>{const t=.5/(Math.PI*Vt.R);return new wt(t,.5,-t,.5)})()}class $i extends he{static code="EPSG:900913"}const ni=le("chrome"),qi=!ni&&le("safari"),Ui=typeof orientation<"u"||le("mobile"),oi=typeof window>"u"?!1:!!window.PointerEvent,ri=typeof window>"u"?!1:"ontouchstart"in window||!!window.TouchEvent,Vi=ri||oi,Gi=typeof window>"u"||typeof window.devicePixelRatio>"u"?!1:window.devicePixelRatio>1,Ki=typeof navigator>"u"||typeof navigator.platform>"u"?!1:navigator.platform.startsWith("Mac"),Yi=typeof navigator>"u"||typeof navigator.platform>"u"?!1:navigator.platform.startsWith("Linux");function le(n){return typeof navigator>"u"||typeof navigator.userAgent>"u"?!1:navigator.userAgent.toLowerCase().includes(n)}var O={chrome:ni,safari:qi,mobile:Ui,pointer:oi,touch:Vi,touchNative:ri,retina:Gi,mac:Ki,linux:Yi};function Xi(n){let t={bubbles:n.bubbles,cancelable:n.cancelable,composed:n.composed,detail:2,view:n.view,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,altKey:n.altKey,metaKey:n.metaKey,button:n.button,buttons:n.buttons,relatedTarget:n.relatedTarget,region:n.region},e;return n instanceof PointerEvent?(t={...t,pointerId:n.pointerId,width:n.width,height:n.height,pressure:n.pressure,tangentialPressure:n.tangentialPressure,tiltX:n.tiltX,tiltY:n.tiltY,twist:n.twist,pointerType:n.pointerType,isPrimary:n.isPrimary},e=new PointerEvent("dblclick",t)):e=new MouseEvent("dblclick",t),e}const Ji=200;function Qi(n,t){n.addEventListener("dblclick",t);let e=0,i;function s(o){if(o.detail!==1){i=o.detail;return}if(o.pointerType==="mouse"||o.sourceCapabilities&&!o.sourceCapabilities.firesTouchEvents)return;const r=_i(o);if(r.some(h=>h instanceof HTMLLabelElement&&h.attributes.for)&&!r.some(h=>h instanceof HTMLInputElement||h instanceof HTMLSelectElement))return;const a=Date.now();a-e<=Ji?(i++,i===2&&o.target.dispatchEvent(Xi(o))):i=1,e=a}return n.addEventListener("click",s),{dblclick:t,simDblclick:s}}function ts(n,t){n.removeEventListener("dblclick",t.dblclick),n.removeEventListener("click",t.simDblclick)}function ai(n){return typeof n=="string"?document.getElementById(n):n}function v(n,t,e){const i=document.createElement(n);return i.className=t??"",e?.appendChild(i),i}function xt(n){const t=n.parentNode;t&&t.lastChild!==n&&t.appendChild(n)}function Pt(n){const t=n.parentNode;t&&t.firstChild!==n&&t.insertBefore(n,t.firstChild)}function tt(n,t,e){const i=t??new c(0,0);n.style.transform=`translate3d(${i.x}px,${i.y}px,0)${e?` scale(${e})`:""}`}const hi=new WeakMap;function T(n,t){hi.set(n,t),tt(n,t)}function et(n){return hi.get(n)??new c(0,0)}const Mt=typeof document>"u"?{}:document.documentElement.style,Gt=["userSelect","WebkitUserSelect"].find(n=>n in Mt);let Ot;function ce(){const n=Mt[Gt];n!=="none"&&(Ot=n,Mt[Gt]="none")}function de(){typeof Ot>"u"||(Mt[Gt]=Ot,Ot=void 0)}function ue(){p(window,"dragstart",Z)}function _e(){x(window,"dragstart",Z)}let Zt,Kt;function pe(n){for(;n.tabIndex===-1;)n=n.parentNode;n.style&&(St(),Zt=n,Kt=n.style.outlineStyle,n.style.outlineStyle="none",p(window,"keydown",St))}function St(){Zt&&(Zt.style.outlineStyle=Kt,Zt=void 0,Kt=void 0,x(window,"keydown",St))}function li(n){do n=n.parentNode;while((!n.offsetWidth||!n.offsetHeight)&&n!==document.body);return n}function me(n){const t=n.getBoundingClientRect();return{x:t.width/n.offsetWidth||1,y:t.height/n.offsetHeight||1,boundingClientRect:t}}var es={__proto__:null,create:v,disableImageDrag:ue,disableTextSelection:ce,enableImageDrag:_e,enableTextSelection:de,get:ai,getPosition:et,getScale:me,getSizedParentNode:li,preventOutline:pe,restoreOutline:St,setPosition:T,setTransform:tt,toBack:Pt,toFront:xt};let it=new Map,Yt=!1;function ci(){Yt||(Yt=!0,document.addEventListener("pointerdown",di,{capture:!0}),document.addEventListener("pointermove",ui,{capture:!0}),document.addEventListener("pointerup",Et,{capture:!0}),document.addEventListener("pointercancel",Et,{capture:!0}),it=new Map)}function is(){document.removeEventListener("pointerdown",di,{capture:!0}),document.removeEventListener("pointermove",ui,{capture:!0}),document.removeEventListener("pointerup",Et,{capture:!0}),document.removeEventListener("pointercancel",Et,{capture:!0}),Yt=!1}function di(n){it.set(n.pointerId,n)}
1function ui(n){it.has(n.pointerId)&&it.set(n.pointerId,n)}function Et(n){it.delete(n.pointerId)}function ht(){return[...it.values()]}function ss(){it.clear()}var ns={__proto__:null,cleanupPointers:ss,disablePointerDetection:is,enablePointerDetection:ci,getPointers:ht};function p(n,t,e,i){if(t&&typeof t=="object")for(const[s,o]of Object.entries(t))Jt(n,s,o,e);else for(const s of D(t))Jt(n,s,e,i);return this}const H="_leaflet_events";function x(n,t,e,i){if(arguments.length===1)Xe(n),delete n[H];else if(t&&typeof t=="object")for(const[s,o]of Object.entries(t))Qt(n,s,o,e);else if(t=D(t),arguments.length===2)Xe(n,s=>t.includes(s));else for(const s of t)Qt(n,s,e,i);return this}function Xe(n,t){for(const e of Object.keys(n[H]??{})){const i=e.split(/\d/)[0];(!t||t(i))&&Qt(n,i,null,null,e)}}const Xt={pointerenter:"pointerover",pointerleave:"pointerout",wheel:typeof window>"u"?!1:!("onwheel"in window)&&"mousewheel"};function Jt(n,t,e,i){const s=t+w(e)+(i?`_${w(i)}`:"");if(n[H]&&n[H][s])return this;let o=function(a){return e.call(i||n,a||window.event)};const r=o;O.touch&&t==="dblclick"?o=Qi(n,o):"addEventListener"in n?t==="wheel"||t==="mousewheel"?n.addEventListener(Xt[t]||t,o,{passive:!1}):t==="pointerenter"||t==="pointerleave"?(o=function(a){a??=window.event,ge(n,a)&&r(a)},n.addEventListener(Xt[t],o,!1)):n.addEventListener(t,r,!1):n.attachEvent(`on${t}`,o),n[H]??={},n[H][s]=o}function Qt(n,t,e,i,s){s??=t+w(e)+(i?`_${w(i)}`:"");const o=n[H]&&n[H][s];if(!o)return this;O.touch&&t==="dblclick"?ts(n,o):"removeEventListener"in n?n.removeEventListener(Xt[t]||t,o,!1):n.detachEvent(`on${t}`,o),n[H][s]=null}function U(n){return n.stopPropagation?n.stopPropagation():n.originalEvent?n.originalEvent._stopped=!0:n.cancelBubble=!0,this}function fe(n){return Jt(n,"wheel",U),this}function Lt(n){return p(n,"pointerdown dblclick contextmenu",U),n._leaflet_disable_click=!0,this}function Z(n){return n.preventDefault?n.preventDefault():n.returnValue=!1,this}function st(n){return Z(n),U(n),this}function _i(n){return n.composedPath()}function pi(n,t){if(!t)return new c(n.clientX,n.clientY);const e=me(t),i=e.boundingClientRect;return new c((n.clientX-i.left)/e.x-t.clientLeft,(n.clientY-i.top)/e.y-t.clientTop)}function mi(){const n=window.devicePixelRatio;return O.linux&&O.chrome?n:O.mac?n*3:n>0?2*n:1}function fi(n){return n.deltaY&&n.deltaMode===0?-n.deltaY/mi():n.deltaY&&n.deltaMode===1?-n.deltaY*20:n.deltaY&&n.deltaMode===2?-n.deltaY*60:(n.deltaX||n.deltaZ,0)}function ge(n,t){let e=t.relatedTarget;if(!e)return!0;try{for(;e&&e!==n;)e=e.parentNode}catch{return!1}return e!==n}var te={__proto__:null,PointerEvents:ns,disableClickPropagation:Lt,disableScrollPropagation:fe,getPointerPosition:pi,getPropagationPath:_i,getWheelDelta:fi,getWheelPxFactor:mi,isExternalTarget:ge,off:x,on:p,preventDefault:Z,stop:st,stopPropagation:U};class gi extends vt{run(t,e,i,s){this.stop(),this._el=t,this._inProgress=!0,this._duration=i??.25,this._easeOutPower=1/Math.max(s??.5,.2),this._startPos=et(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()}stop(){this._inProgress&&(this._step(!0),this._complete())}_animate(){this._animId=requestAnimationFrame(this._animate.bind(this)),this._step()}_step(t){const e=+new Date-this._startTime,i=this._duration*1e3;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())}_runFrame(t,e){const i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),T(this._el,i),this.fire("step")}_complete(){cancelAnimationFrame(this._animId),this._inProgress=!1,this.fire("end")}_easeOut(t){return 1-(1-t)**this._easeOutPower}}var q;let m=(q=class extends vt{initialize(t,e){e=P(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.zoom!==void 0&&(this._zoom=this._limitZoom(e.zoom)),e.center&&e.zoom!==void 0&&this.setView(new _(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=this.options.zoomAnimation,this._zoomAnimated&&this._createAnimProxy(),this._addLayers(this.options.layers)}setView(t,e,i){return e=e===void 0?this._zoom:this._limitZoom(e),t=this._limitCenter(new _(t),e,this.options.maxBounds),i??={},this._stop(),this._loaded&&!i.reset&&i!==!0&&(i.animate!==void 0&&(i.zoom={animate:i.animate,...i.zoom},i.pan={animate:i.animate,duration:i.duration,...i.pan}
1),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,i.pan?.noMoveStart),this)}setZoom(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)}zoomIn(t,e){return t??=this.options.zoomDelta,this.setZoom(this._zoom+t,e)}zoomOut(t,e){return t??=this.options.zoomDelta,this.setZoom(this._zoom-t,e)}setZoomAround(t,e,i){const s=this.getZoomScale(e),o=this.getSize().divideBy(2),r=t instanceof c?t:this.latLngToContainerPoint(t),a=r.subtract(o).multiplyBy(1-1/s),h=this.containerPointToLatLng(o.add(a));return this.setView(h,e,{zoom:i})}_getBoundsCenterZoom(t,e){e??={},t=t.getBounds?t.getBounds():new g(t);const i=new c(e.paddingTopLeft||e.padding||[0,0]),s=new c(e.paddingBottomRight||e.padding||[0,0]);let o=this.getBoundsZoom(t,!1,i.add(s));if(o=typeof e.maxZoom=="number"?Math.min(e.maxZoom,o):o,o===1/0)return{center:t.getCenter(),zoom:o};const r=s.subtract(i).divideBy(2),a=this.project(t.getSouthWest
1(),o),h=this.project(t.getNorthEast(),o);return{center:this.unproject(a.add(h).divideBy(2).add(r),o),zoom:o}}fitBounds(t,e){if(t=new g(t),!t.isValid())throw new Error("Bounds are not valid.");const i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)}fitWorld(t){return this.fitBounds([[-90,-180],[90,180]],t)}panTo(t,e){return this.setView(t,this._zoom,{pan:e})}panBy(t,e){if(t=new c(t).round(),e??={},!t.x&&!t.y)return this.fire("moveend");if(e.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new gi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){this._mapPane.classList.add("leaflet-pan-anim");const i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this}flyTo(t,e,i){if(i??={},i.animate===!1)return this.setView(t,e,i);this._stop();const s=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),a=this._zoom;t=new _(t),e=e===void 0?a:this._limitZoom(e);const h=Math.max(r.x,r.y),l=h*this.getZoomScale(a,e),d=o.distanceTo(s)||1,u=1.42,y=u*u;function b(L){const Tt=L?-1:1,Di=L?l:h,Ri=l*l-h*h+Tt*y*y*d*d,Ni=2*Di*y*d,Ut=Ri/Ni,Ge=Math.sqrt(Ut*Ut+1)-Ut;return Ge<1e-9?-18:Math.log(Ge)}function z(L){return(Math.exp(L)-Math.exp(-L))/2}function M(L){return(Math.exp(L)+Math.exp(-L))/2}function Y(L){return z(L)/M(L)}const F=b(0);function Ei(L){return h*(M(F)/M(F+u*L))}function ki(L){return h*(M(F)*Y(F+u*L)-z(F))/y}function Ai(L){return 1-(1-L)**1.5}const Bi=Date.now(),Ue=(b(1)-F)/u,Ii=i.duration?1e3*i.duration:1e3*Ue*.8,Ve=()=>{const L=(Date.now()-Bi)/Ii,Tt=Ai(L)*Ue;L<=1?(this._flyToFrame=requestAnimationFrame(Ve),this._move(this.unproject(s.add(o.subtract(s).multiplyBy(ki(Tt)/d)),a),this.get
1ScaleZoom(h/Ei(Tt),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)};return this._moveStart(!0,i.noMoveStart),Ve(),this}flyToBounds(t,e){const i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)}setMaxBounds(t){return t=new g(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)}setMinZoom(t){const e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this}setMaxZoom(t){const e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this}panInsideBounds(t,e){this._enforcingBounds=!0;const i=this.getCenter(),s=this._limitCenter(i,this._zoom,new g(t));return i.equals(s)||this.panTo(s,e),this._enforcingBounds=!1,this}panInside(t,e){e??={};const i=new c(e.paddingTopLeft||e.padding||[0,0]),s=new c(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),a=this.getPixelBounds(),h=new f([a.min.add(i),a.max.subtract(s)]),l=h.getSize();if(!h.contains(r)){this._enforcingBounds=!0;const d=r.subtract(h.getCenter()),u=h.extend(r).getSize().subtract(l);o.x+=d.x<0?-u.x:u.x,o.y+=d.y<0?-u.y:u.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this}invalidateSize(t){if(!this._loaded)return this;t={animate:!1,pan:!0,...t===!0?{animate:!0}:t};const e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;const i=this.getSize(),s=e.divideBy(2).round(),o=i.divideBy(2).round(),r=s.subtract(o);return!r.x&&!r.y?this:(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(this.fire.bind(this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))}stop(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()}locate(t){if(t=this._locateOptions={timeout:1e4,watch:!1,...t},!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;const e=this._handleGeolocationResponse.bind(this),i=this._handleGeolocationError.bind(this);return t.watch?(this._locationWatchId!==void 0&&navigator.geolocation.clearWatch(this._locationWatchId),this._locationWatchId=navigator.geolocation.watchPosition(e,i,t)):navigator.geolocation.getCurrentPosition(e,i,t),this}stopLocate(){return navigator.geolocation?.clearWatch?.(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this}_handleGeolocationError(t){if(!this._container._leaflet_id)return;const e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:`Geolocation error: ${i}.`})}_handleGeolocationResponse(t){if(!this._container._leaflet_id)return;const e=t.coords.latitude,i=t.coords.longitude,s=new _(e,i),o=s.toBounds(t.coords.accuracy*2),r=this._locateOptions;if(r.setView){const h=this.getBoundsZoom(o);this.setView(s,r.maxZoom?Math.min(h,r.maxZoom):h)}const a={latlng:s,bounds:o,timestamp:t.timestamp};for(const h in t.coords)typeof t.coords[h]=="number"&&(a[h]=t.coords[h]);this.fire("locationfound",a)}addHandler(t,e){if(!e)return this;const i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this}remove(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");delete this._container._leaflet_id,delete this._containerId,this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),this._mapPane.remove(),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(cancelAnimationFrame(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),clearTimeout(this._transitionEndTimer),clearTimeout(this._sizeTimer),this._loaded&&this.fire("unload"),this._destroyAnimProxy();for(const t of Object.values(this._layers))t.remove();for(const t of Object.values(this._panes))t.remove();return this._layers={},this._panes={},delete this._mapPane,delete this._renderer,this}createPane(t,e){const i=`leaflet-pane${t?` leaflet-${t.replace("Pane","")}-pane`:""}`,s=v("div",i,e||this._mapPane);return t&&(this._panes[t]=s),s}getCenter(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())}getZoom(){return this._zoom}getBounds(){const t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());
1return new g(e,i)}getMinZoom(){return this.options.minZoom??this._layersMinZoom??0}getMaxZoom(){return this.options.maxZoom??this._layersMaxZoom??1/0}getBoundsZoom(t,e,i){t=new g(t),i=new c(i??[0,0]);let s=this.getZoom()??0;const o=this.getMinZoom(),r=this.getMaxZoom(),a=t.getNorthWest(),h=t.getSouthEast(),l=this.getSize().subtract(i),d=new f(this.project(h,s),this.project(a,s)).getSize(),u=this.options.zoomSnap,y=l.x/d.x,b=l.y/d.y,z=e?Math.max(y,b):Math.min(y,b);return s=this.getScaleZoom(z,s),u&&(s=Math.round(s/(u/100))*(u/100),s=e?Math.ceil(s/u)*u:Math.floor(s/u)*u),Math.max(o,Math.min(r,s))}getSize(){return(!this._size||this._sizeChanged)&&(this._size=new c(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()}getPixelBounds(t,e){const i=this._getTopLeftPoint(t,e);return new f(i,i.add(this.getSize()))}getPixelOrigin(){return this._checkIfLoaded(),this._pixelOrigin}getPixelWorldBounds(t){return this.options.crs.getProjectedBounds(t??this.getZoom())}getPane(t){return typeof t=="string"?this._panes[t]:t}getPanes(){return this._panes}getContainer(){return this._container}getZoomScale(t,e){const i=this.options.crs;return e??=this._zoom,i.scale(t)/i.scale(e)}getScaleZoom(t,e){const i=this.options.crs;e??=this._zoom;const s=i.zoom(t*i.scale(e));return isNaN(s)?1/0:s}project(t,e){return e??=this._zoom,this.options.crs.latLngToPoint(new _(t),e)}unproject(t,e){return e??=this._zoom,this.options.crs.pointToLatLng(new c(t),e)}layerPointToLatLng(t){const e=new c(t).add(this.getPixelOrigin());return this.unproject(e)}latLngToLayerPoint(t){return this.project(new _(t))._round()._subtract(this.getPixelOrigin())}wrapLatLng(t){return this.options.crs.wrapLatLng(new _(t))}wrapLatLngBounds(t){return this.options.crs.wrapLatLngBounds(new g(t))}distance(t,e){return this.options.crs.distance(new _(t),new _(e))}containerPointToLayerPoint(t){return new c(t).subtract(this._getMapPanePos())}layerPointToContainerPoint(t){return new c(t).add(this._getMapPanePos())}containerPointToLatLng(t){const e=this.containerPointToLayerPoint(new c(t));return this.layerPointToLatLng(e)}latLngToContainerPoint(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(new _(t)))}pointerEventToContainerPoint(t){return pi(t,this._container)}pointerEventToLayerPoint(t){return this.containerPointToLayerPoint(this.pointerEventToContainerPoint(t))}pointerEventToLatLng(t){return this.layerPointToLatLng(this.pointerEventToLayerPoint(t))}_initContainer(t){const e=this._container=ai(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");p(e,"scroll",this._onScroll,this),this._containerId=w(e),ci()}_initLayout(){const t=this._container;this._fadeAnimated=this.options.fadeAnimation;const e=["leaflet-container","leaflet-touch"];O.retina&&e.push("leaflet-retina"),O.safari&&e.push("leaflet-safari"),this._fadeAnimated&&e.push("leaflet-fade-anim"),t.classList.add(...e);const{position:i}=getComputedStyle(t);i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()}_initPanes(){const t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),T(this._mapPane,new c(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(t.markerPane.classList.add("leaflet-zoom-hide"),t.shadowPane.classList.add("leaflet-zoom-hide"))}_resetView(t,e,i){T(this._mapPane,new c(0,0));const s=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");const o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),s&&this.fire("load")}_moveStart(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this}_move(t,e,i,s){e===void 0&&(e=this._zoom);const o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),s?i?.pinch&&this.fire("zoom",i):((o||i?.pinch)&&this.fire("zoom",i),this.fire("move",i)),this}_moveEnd(t){return t&&this.fire("zoomend"),this.fire("moveend")}_stop(){return cancelAnimationFrame(this._flyToFrame),this._panAnim?.stop(),this}_rawPanBy(t){T(this._mapPane,this._getMapPanePos().subtract(t))}_getZoomSpan(){return this.getMaxZoom()-this.getMinZoom()}_panInsideMaxBounds(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)}_checkIfLoaded(){if(!this._loaded)throw new Error("Set map center and zoom first.")}_initEvents(t){this._targets={},this._targets[w(this._container)]=this,(t?x:p)(this._container,"click dblclick pointerdown pointerup pointerover pointerout pointermove c
1ontextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&(t?this._resizeObserver.disconnect():(this._resizeObserver||(this._resizeObserver=new ResizeObserver(this._onResize.bind(this))),this._resizeObserver.observe(this._container))),this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}_onResize(){cancelAnimationFrame(this._resizeRequest),this._resizeRequest=requestAnimationFrame(()=>{this.invalidateSize({debounceMoveend:!0})})}_onScroll(){this._container.scrollTop=0,this._container.scrollLeft=0}_onMoveEnd(){const t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())}_findEventTargets(t,e){let i=[],s,o=t.target||t.srcElement,r=!1;const a=e==="pointerout"||e==="pointerover";for(;o;){if(s=this._targets[w(o)],s&&(e==="click"||e==="preclick")&&this._draggableMoved(s)){r=!0;break}if(s&&s.listens(e,!0)&&(a&&!ge(o,t)||(i.push(s),a))||o===this._container)break;o=o.parentNode}return!i.length&&!r&&!a&&this.listens(e,!0)&&(i=[this]),i}_isClickDisabled(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click||!t.parentNode)return!0;t=t.parentNode}}_handleDOMEvent(t){const e=t.target??t.srcElement;if(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))return;const i=t.type;i==="pointerdown"&&pe(e),this._fireDOMEvent(t,i)}_fireDOMEvent(t,e,i){e==="click"&&this._fireDOMEvent(t,"preclick",i);let s=this._findEventTargets(t,e);if(i&&(s=i.filter(h=>h.listens(e,!0)).concat(s)),!s.length)return;e==="contextmenu"&&Z(t);const o=s[0],r={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){const a=o.getLatLng&&(!o._radius||o._radius<=10);r.containerPoint=a?this.latLngToContainerPoint(o.getLatLng()):this.pointerEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?o.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(const a of s)if(a.fire(e,r,!0),r.originalEvent._stopped||a.options.bubblingPointerEvents===!1&&q._pointerEvents.includes(e))return}_draggableMoved(t){return t=t.dragging?.enabled()?t:this,t.dragging?.moved()||this.boxZoom?.moved()}_clearHandlers(){for(const t of this._handlers)t.disable()}whenReady(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this}_getMapPanePos(){return et(this._mapPane)}_moved(){const t=this._getMapPanePos();return t&&!t.equals([0,0])}_getTopLeftPoint(t,e){return(t&&e!==void 0?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())}_getNewPixelOrigin(t,e){const i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()}_latLngToNewLayerPoint(t,e,i){const s=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(s)}_latLngBoundsToNewLayerBounds(t,e,i){const s=this._getNewPixelOrigin(i,e);
1return new f([this.project(t.getSouthWest(),e)._subtract(s),this.project(t.getNorthWest(),e)._subtract(s),this.project(t.getSouthEast(),e)._subtract(s),this.project(t.getNorthEast(),e)._subtract(s)])}_getCenterLayerPoint(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))}_getCenterOffset(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())}_limitCenter(t,e,i){if(!i)return t;const s=this.project(t,e),o=this.getSize().divideBy(2),r=new f(s.subtract(o),s.add(o)),a=this._getBoundsOffset(r,i,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(s.add(a),e)}_limitOffset(t,e){if(!e)return t;const i=this.getPixelBounds(),s=new f(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(s,e))}_getBoundsOffset(t,e,i){const s=new f(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=s.min.subtract(t.min),r=s.max.subtract(t.max),a=this._rebound(o.x,-r.x),h=this._rebound(o.y,-r.y);return new c(a,h)}_rebound(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))}_limitZoom(t){const e=this.getMinZoom(),i=this.getMaxZoom(),s=this.options.zoomSnap;return s&&(t=Math.round(t/s)*s),Math.max(e,Math.min(i,t))}_onPanTransitionStep(){this.fire("move")}_onPanTransitionEnd(){this._mapPane.classList.remove("leaflet-pan-anim"),this.fire("moveend")}_tryAnimatedPan(t,e){const i=this._getCenterOffset(t)._trunc();return e?.animate!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)}_createAnimProxy(){this._proxy=v("div","leaflet-proxy leaflet-zoom-animated"),this._panes.mapPane.appendChild(this._proxy),this.on("zoomanim",this._animateProxyZoom,this),this.on("load moveend",this._animMoveEnd,this),p(this._proxy,"transitionend",this._catchTransitionEnd,this)}_animateProxyZoom(t){const e=this._proxy.style.transform;tt(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style.transform&&this._animatingZoom&&this._onZoomTransitionEnd()}_animMoveEnd(){const t=this.getCenter(),e=this.getZoom();tt(this._proxy,this.project(t,e),this.getZoomScale(e,1))}_destroyAnimProxy(){this._proxy&&(x(this._proxy,"transitionend",this._catchTransitionEnd,this),this._proxy.remove(),this.off("zoomanim",this._animateProxyZoom,this),this.off("load moveend",this._animMoveEnd,this),delete this._proxy)}_catchTransitionEnd(t){this._animatingZoom&&t.propertyName.includes("transform")&&this._onZoomTransitionEnd()}_nothingToAnimate(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length}_tryAnimatedZoom(t,e,i){if(this._animatingZoom)return!0;if(i??={},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;const s=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/s);return i.animate!==!0&&!this.getSize().contains(o)?!1:(requestAnimationFrame(()=>{this._moveStart(!0,i.noMoveStart??!1)._animateZoom(t,e,!0)}),!0)}_animateZoom(t,e,i,s){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,this._mapPane.classList.add("leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:s}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._transitionEndTimer=setTimeout(this._onZoomTransitionEnd.bind(this),250))}_onZoomTransitionEnd(){this._animatingZoom&&(this._mapPane?.classList.remove("leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}},q.setDefaultOptions({crs:he,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0}),Ke(q,"_pointerEvents",["click","dblclick","pointerover","pointerout","contextmenu"]),q);const os=m,be=class be extends yt{initialize(t){P(this,t)}getPosition(){return this.options.position}setPosition(t){const e=this._map;return e?.removeControl(this),this.options.position=t,e?.addControl(this),this}getContainer(){return this._container}addTo(t){this.remove(),this._map=t;const e=this._container=this.onAdd(t),i=this.getPosition(),s=t._controlCorners[i];return e.classList.add("leaflet-control"),i.includes("bottom")?s.insertBefore(e,s.firstChild):s.appendChild(e),this._map.on("unload",this.remove,this),this}remove(){return this._map?(this._container.remove(),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this}_refocusOnMap(t){this._map&&t&&!(t.screenX===0&&t.screenY===0)&&this._map.getContainer().focus()}};be.setDefaultOptions({position:"topright"});let k=be;m.include({addControl(n){return n.addTo(this),this},removeControl(n){return n.remove(),this}
1,_initControlPos(){const n=this._controlCorners={},t="leaflet-",e=this._controlContainer=v("div",`${t}control-container`,this._container);function i(s,o){const r=`${t+s} ${t}${o}`;n[s+o]=v("div",r,e)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos(){for(const n of Object.values(this._controlCorners))n.remove();this._controlContainer.remove(),delete this._controlCorners,delete this._controlContainer}});const Te=class Te extends k{initialize(t,e,i){P(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(const[s,o]of Object.entries(t??{}))this._addLayer(o,s);for(const[s,o]of Object.entries(e??{}))this._addLayer(o,s,!0)}onAdd(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(const e of this._layers)e.layer.on("add remove",this._onLayerChange,this);return this.options.collapsed||t.on("resize",this._expandIfNotCollapsed,this),this._container}addTo(t){return k.prototype.addTo.call(this,t),this._expandIfNotCollapsed()}onRemove(){this._map.off("zoomend",this._checkDisabledLayers,this);for(const t of this._layers)t.layer.off("add remove",this._onLayerChange,this);this._map.off("resize",this._expandIfNotCollapsed,this)}addBaseLayer(t,e){return this._addLayer(t,e),this._map?this._update():this}addOverlay(t,e){return this._addLayer(t,e,!0),this._map?this._update():this}removeLayer(t){t.off("add remove",this._onLayerChange,this);const e=this._getLayer(w(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this}expand(){clearTimeout(this._collapseDelayTimeout),this._container.classList.add("leaflet-control-layers-expanded"),this._section.style.height=null;const t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(this._section.classList.add("leaflet-control-layers-scrollbar"),this._section.style.height=`${t}px`):this._section.classList.remove("leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this}collapse(t){if(!t||!((t.type==="pointerleave"||t.type==="pointerout")&&t.pointerType==="touch")){if(this.options.collapseDelay>0)return this._collapseDelayTimeout=setTimeout(()=>{this._container.classList.remove("leaflet-control-layers-expanded")},this.options.collapseDelay),this;this._container.classList.remove("leaflet-control-layers-expanded")}return this}_initLayout(){const t="leaflet-control-layers",e=this._container=v("div",t),i=this.options.collapsed;Lt(e),fe(e);const s=this._section=v("fieldset",`${t}-list`);i&&(this._map.on("click",this.collapse,this),p(e,{pointerenter:this._expandSafely,pointerleave:this.collapse},this));const o=this._layersLink=v("a",`${t}-toggle`,e);o.href="#",o.title="Layers",o.setAttribute("role","button"),p(o,{keydown(r){r.code==="Enter"&&this._expandSafely()},click(r){Z(r),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=v("div",`${t}-base`,s),this._separator=v("div",`${t}-separator`,s),this._overlaysList=v("div",`${t}-overlays`,s),e.appendChild(s)}_getLayer(t){for(const e of this._layers)if(e&&w(e.layer)===t)return e}_addLayer(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(((s,o)=>this.options.sortFunction(s.layer,o.layer,s.name,o.name))),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()}_update(){if(!this._container)return this;this._baseLayersList.replaceChildren(),this._overlaysList.replaceChildren(),this._layerControlInputs=[];let t,e,i=0;for(const s of this._layers)this._addItem(s),e||=s.overlay,t||=!s.overlay,i+=s.overlay?0:1;return this.options.hideSingleBase&&(t=t&&i>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this}_onLayerChange(t){this._handlingClick||this._update();const e=this._getLayer(w(t.target)),i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;i&&this._map.fire(i,e)}_addItem(t){const e=document.createElement("label"),i=this._map.hasLayer(t.layer),s=document.createElement("input");s.type=t.overlay?"checkbox":"radio",s.className="leaflet-control-layers-selector",s.defaultChecked=i,t.overlay||(s.name=`leaflet-base-layers_${w(this)}`),this._layerControlInputs.push(s),s.layerId=w(t.layer),p(s,"click",this._onInputClick,this);const o=document.createElement("span");o.innerHTML=` ${t.name}`;const r=document.createElement("span");return e.appendChild(r),r.appendChild(s),r.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e}_onInputClick(t){if(this._preventClick)return;const e=this._layerControlInputs,i=[],s=[];this._handlingClick=!0;for(const o of e){const r=this._getLayer(o.layerId).layer;o.checked?i.push(r):o.checked||s.push(r)}for(const o of s)this._map.hasLayer(o)&&this._map.removeLayer(o);for(const o of i)this._map.hasLayer(o)||this._map.addLayer(o);this._handlingClick=!1,this._refocusOnMap(t)}_checkDisabledLayers(){const t=this._layerControlInputs,e=this._map.getZoom();for(const i of t){const s=this._getLayer(i.layerId).layer;i.disabled=s.options.minZoom!==void 0&&e<s.options.minZoom||s.options.maxZoom!==void 0&&e>s.options.maxZoom}}_expandIfNotCollapsed(){return this._map&&!this.options.collapsed&&this.expand(),this}_expandSafely(){const t=this._section;this._preventClick=!0,p(t,"click",Z),this.expand(),setTimeout(()=>{x(t,"click",Z),this._preventClick=!1})}};Te.setDefaultOptions({collapsed:!0,collapseDelay:0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction(t,e,
1i,s){return i<s?-1:s<i?1:0}});let ee=Te;const ze=class ze extends k{onAdd(t){const e="leaflet-control-zoom",i=v("div",`${e} leaflet-bar`),s=this.options;return this._zoomInButton=this._createButton(s.zoomInText,s.zoomInTitle,`${e}-in`,i,this._zoomIn),this._zoomOutButton=this._createButton(s.zoomOutText,s.zoomOutTitle,`${e}-out`,i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i}onRemove(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)}disable(){return this._disabled=!0,this._updateDisabled(),this}enable(){return this._disabled=!1,this._updateDisabled(),this}_zoomIn(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}_zoomOut(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}_createButton(t,e,i,s,o){const r=v("a",i,s);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),Lt(r),p(r,"click",st),p(r,"click",o,this),p(r,"click",this._refocusOnMap,this),r}_updateDisabled(){const t=this._map,e="leaflet-disabled";this._zoomInButton.classList.remove(e),this._zoomOutButton.classList.remove(e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(this._zoomOutButton.classList.add(e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(this._zoomInButton.classList.add(e),this._zoomInButton.setAttribute("aria-disabled","true"))}};ze.setDefaultOptions({position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"});let kt=ze;m.mergeOptions({zoomControl:!0});m.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new kt,this.addControl(this.zoomControl))});const Oe=class Oe extends k{onAdd(t){const e="leaflet-control-scale",i=v("div",e),s=this.options;return this._addScales(s,`${e}-line`,i),t.on(s.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i}onRemove(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)}_addScales(t,e,i){t.metric&&(this._mScale=v("div",e,i)),t.imperial&&(this._iScale=v("div",e,i))}_update(){const t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)}_updateScales(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)}_updateMetric(t){const e=this._getRoundNum(t),i=e<1e3?`${e} m`:`${e/1e3} km`;this._updateScale(this._mScale,i,e/t)}_updateImperial(t){const e=t*3.2808399;let i,s,o;e>5280?(i=e/5280,s=this._getRoundNum(i),this._updateScale(this._iScale,`${s} mi`,s/i)):(o=this._getRoundNum(e),this._updateScale(this._iScale,`${o} ft`,o/e))}_updateScale(t,e,i){t.style.width=`${Math.round(this.options.maxWidth*i)}px`,t.innerHTML=e}_getRoundNum(t){const e=10**(`${Math.floor(t)}`.length-1);let i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}};Oe.setDefaultOptions({position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1});let ie=Oe;const rs='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Ze=class Ze extends k{initialize(t){P(this,t),this._attributions={}}onAdd(t){t.attributionControl=this,this._container=v("div","leaflet-control-attribution"),Lt(this._container);for(const e of Object.values(t._layers))e.getAttribution&&this.addAttribution(e.getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container}onRemove(t){t.off("layeradd",this._addAttribution,this)}_addAttribution(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",()=>this.removeAttribution(t.layer.getAttribution())))}setPrefix(t){return this.options.prefix=t,this._update(),this}addAttribution(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this}removeAttribution(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this}
1_update(){if(!this._map)return;const t=Object.keys(this._attributions).filter(i=>this._attributions[i]),e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> ')}};Ze.setDefaultOptions({position:"bottomright",prefix:`<a target="_blank" href="https://leafletjs.com" title="A JavaScript library for interactive maps">${rs}Leaflet</a>`});let At=Ze;m.mergeOptions({attributionControl:!0});m.addInitHook(function(){this.options.attributionControl&&new At().addTo(this)});k.Layers=ee;k.Zoom=kt;k.Scale=ie;k.Attribution=At;class N extends yt{initialize(t){this._map=t}enable(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)}disable(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this}enabled(){return!!this._enabled}}N.addTo=function(n,t){return n.addHandler(t,this),this};const $=class $ extends vt{initialize(t,e,i,s){P(this,s),this._element=t,this._dragStartTarget=e??t,this._preventOutline=i}enable(){this._enabled||(p(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!0)}disable(){this._enabled&&($._dragging===this&&this.finishDrag(!0),x(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!1,this._moved=!1)}_onDown(t){if(this._moved=!1,this._element.classList.contains("leaflet-zoom-anim"))return;if(ht().length!==1){$._dragging===this&&this.finishDrag();return}if($._dragging||t.shiftKey||t.button!==0&&t.pointerType!=="touch"||($._dragging=this,this._preventOutline&&pe(this._element),ue(),ce(),this._moving))return;this.fire("down");const e=li(this._element);this._startPoint=new c(t.clientX,t.clientY),this._startPos=et(this._element),this._parentScale=me(e),p(document,"pointermove",this._onMove,this),p(document,"pointerup pointercancel",this._onUp,this)}_onMove(t){if(ht().length>1){this._moved=!0;return}const e=new c(t.clientX,t.clientY)._subtract(this._startPoint);!e.x&&!e.y||Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,t.cancelable&&Z(t),this._moved||(this.fire("dragstart"),this._moved=!0,document.body.classList.add("leaflet-dragging"),this._lastTarget=t.target??t.srcElement,this._lastTarget.classList.add("leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,this._lastEvent=t,this._updatePosition())}_updatePosition(){const t={originalEvent:this._lastEvent};this.fire("predrag",t),T(this._element,this._newPos),this.fire("drag",t)}_onUp(){this.finishDrag()}finishDrag(t){document.body.classList.remove("leaflet-dragging"),this._lastTarget&&(this._lastTarget.classList.remove("leaflet-drag-target"),this._lastTarget=null),x(document,"pointermove",this._onMove,this),x(document,"pointerup pointercancel",this._onUp,this),_e(),de();const e=this._moved&&this._moving;this._moving=!1,$._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}};$.setDefaultOptions({clickTolerance:3});let ut=$;function yi(n,t,e){let i,s,o,r,a,h,l,d,u;const y=[1,4,2,8];for(s=0,l=n.length;s<l;s++)n[s]._code=J(n[s],t);for(r=0;r<4;r++){for(d=y[r],i=[],s=0,l=n.length,o=l-1;s<l;o=s++)a=n[s],h=n[o],a._code&d?h._code&d||(u=Bt(h,a,d,t,e),u._code=J(u,t),i.push(u)):(h._code&d&&(u=Bt(h,a,d,t,e),u._code=J(u,t),i.push(u)),i.push(a));n=i}return n}function vi(n,t){let e,i,s,o,r,a,h,l,d;if(!n||n.length===0)throw new Error("latlngs not passed");B(n)||(console.warn("latlngs are not flat! Only the first ring will be used"),n=n[0]);let u=new _([0,0]);const y=new g(n);
1y.getNorthWest().distanceTo(y.getSouthWest())*y.getNorthEast().distanceTo(y.getNorthWest())<1700&&(u=ye(n));const z=n.length,M=[];for(e=0;e<z;e++){const F=new _(n[e]);M.push(t.project(new _([F.lat-u.lat,F.lng-u.lng])))}for(a=h=l=0,e=0,i=z-1;e<z;i=e++)s=M[e],o=M[i],r=s.y*o.x-o.y*s.x,h+=(s.x+o.x)*r,l+=(s.y+o.y)*r,a+=r*3;a===0?d=M[0]:d=[h/a,l/a];const Y=t.unproject(new c(d));return new _([Y.lat+u.lat,Y.lng+u.lng])}function ye(n){let t=0,e=0,i=0;for(const s of n){const o=new _(s);t+=o.lat,e+=o.lng,i++}return new _([t/i,e/i])}var as={__proto__:null,centroid:ye,clipPolygon:yi,polygonCenter:vi};function wi(n,t){if(!t||!n.length)return n.slice();const e=t*t;return n=cs(n,e),n=ls(n,e),n}function xi(n,t,e){return Math.sqrt(bt(n,t,e,!0))}function hs(n,t,e){return bt(n,t,e)}function ls(n,t){const e=n.length,i=new Uint8Array(e);i[0]=i[e-1]=1,se(n,i,t,0,e-1);let s;const o=[];for(s=0;s<e;s++)i[s]&&o.push(n[s]);return o}function se(n,t,e,i,s){let o=0,r,a,h;for(a=i+1;a<=s-1;a++)h=bt(n[a],n[i],n[s],!0),h>o&&(r=a,o=h);o>e&&(t[r]=1,se(n,t,e,i,r),se(n,t,e,r,s))}function cs(n,t){const e=[n[0]];let i=0;for(let s=1;s<n.length;s++)ds(n[s],n[i])>t&&(e.push(n[s]),i=s);return i<n.length-1&&e.push(n[n.length-1]),e}let Je;function Pi(n,t,e,i,s){let o=i?Je:J(n,e),r=J(t,e),a,h,l;for(Je=r;;){if(!(o|r))return[n,t];if(o&r)return!1;a=o||r,h=Bt(n,t,a,e,s),l=J(h,e),a===o?(n=h,o=l):(t=h,r=l)}}function Bt(n,t,e,i,s){const o=t.x-n.x,r=t.y-n.y,a=i.min,h=i.max;let l,d;return e&8?(l=n.x+o*(h.y-n.y)/r,d=h.y):e&4?(l=n.x+o*(a.y-n.y)/r,d=a.y):e&2?(l=h.x,d=n.y+r*(h.x-n.x)/o):e&1&&(l=a.x,d=n.y+r*(a.x-n.x)/o),new c(l,d,s)}function J(n,t){let e=0;return n.x<t.min.x?e|=1:n.x>t.max.x&&(e|=2),n.y<t.min.y?e|=4:n.y>t.max.y&&(e|=8),e}function ds(n,t){const e=t.x-n.x,i=t.y-n.y;return e*e+i*i}function bt(n,t,e,i){let s=t.x,o=t.y,r=e.x-s,a=e.y-o,h;const l=r*r+a*a;return l>0&&(h=((n.x-s)*r+(n.y-o)*a)/l,h>1?(s=e.x,o=e.y):h>0&&(s+=r*h,o+=a*h)),r=n.x-s,a=n.y-o,i?r*r+a*a:new c(s,o)}function B(n){return!Array.isArray(n[0])||typeof n[0][0]!="object"&&typeof n[0][0]<"u"}function Li(n,t){let e,i,s,o,r,a,h,l;if(!n||n.length===0)throw new Error("latlngs not passed");B(n)||(console.warn("latlngs are not flat! Only the first ring will be used"),n=n[0]);let d=new _([0,0]);const u=new g(n);
1u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(d=ye(n));const b=n.length,z=[];for(e=0;e<b;e++){const Y=new _(n[e]);z.push(t.project(new _([Y.lat-d.lat,Y.lng-d.lng])))}for(e=0,i=0;e<b-1;e++)i+=z[e].distanceTo(z[e+1])/2;if(i===0)l=z[0];else for(e=0,o=0;e<b-1;e++)if(r=z[e],a=z[e+1],s=r.distanceTo(a),o+=s,o>i){h=(o-i)/s,l=[a.x-h*(a.x-r.x),a.y-h*(a.y-r.y)];break}const M=t.unproject(new c(l));return new _([M.lat+d.lat,M.lng+d.lng])}var us={__proto__:null,_getBitCode:J,_getEdgeIntersection:Bt,_sqClosestPointOnSegment:bt,clipSegment:Pi,closestPointOnSegment:hs,isFlat:B,pointToSegmentDistance:xi,polylineCenter:Li,simplify:wi};const ve={project(n){return n=new _(n),new c(n.lng,n.lat)},unproject(n){return n=new c(n),new _(n.y,n.x)},bounds:new f([-180,-90],[180,90])},_s=6378137,ne={R:_s,R_MINOR:6356752314245179e-9,bounds:new f([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project(n){n=new _(n);const t=Math.PI/180,e=this.R,i=this.R_MINOR/e,s=Math.sqrt(1-i*i);let o=n.lat*t;const r=s*Math.sin(o),a=Math.tan(Math.PI/4-o/2)/((1-r)/(1+r))**(s/2);return o=-e*Math.log(Math.max(a,1e-10)),new c(n.lng*t*e,o)},unproject(n){n=new c(n);const t=180/Math.PI,e=this.R,i=this.R_MINOR/e,s=Math.sqrt(1-i*i),o=Math.exp(-n.y/e);let r=Math.PI/2-2*Math.atan(o);for(let a=0,h=.1,l;a<15&&Math.abs(h)>1e-7;a++)l=s*Math.sin(r),l=((1-l)/(1+l))**(s/2),h=Math.PI/2-2*Math.atan(o*l)-r,r+=h;return new _(r*t,n.x*t/e)}};var ps={__proto__:null,LonLat:ve,Mercator:ne,SphericalMercator:Vt};class ms extends G{static code="EPSG:3395";static projection=ne;static transformation=(()=>{const t=.5/(Math.PI*ne.R);return new wt(t,.5,-t,.5)})()}class bi extends G{static code="EPSG:4326";static projection=ve;static transformation=new wt(1/180,1,-1/180,.5)}class fs extends W{static projection=ve;static transformation=new wt(1,0,-1,0);static scale(t){return 2**t}static zoom(t){return Math.log(t)/Math.LN2}static distance(t,e){const i=e.lng-t.lng,s=e.lat-t.lat;return Math.sqrt(i*i+s*s)}static infinite=!0}W.Earth=G;W.EPSG3395=ms;W.EPSG3857=he;W.EPSG900913=$i;W.EPSG4326=bi;W.Simple=fs;const Ce=class Ce extends vt{addTo(t){return t.addLayer(this),this}remove(){return this.removeFrom(this._map||this._mapToAdd)}removeFrom(t){return t?.removeLayer(this),this}getPane(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)}addInteractiveTarget(t){return this._map._targets[w(t)]=this,this}removeInteractiveTarget(t){return delete this._map._targets[w(t)],this}getAttribution(){return this.options.attribution}_layerAdd(t){const e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){const i=this.getEvents();e.on(i,this),this.once("remove",()=>e.off(i,this))}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}};Ce.setDefaultOptions({pane:"overlayPane",attribution:null,bubblingPointerEvents:!0});let C=Ce;m.include({addLayer(n){if(!n._layerAdd)throw new Error("The provided object is not a Layer.");const t=w(n);return this._layers[t]?this:(this._layers[t]=n,n._mapToAdd=this,n.beforeAdd&&n.beforeAdd(this),this.whenReady(n._layerAdd,n),this)},removeLayer(n){const t=w(n);return this._layers[t]?(this._loaded&&n.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:n}),n.fire("remove")),n._map=n._mapToAdd=null,this):this},hasLayer(n){return w(n)in this._layers},eachLayer(n,t){for(const e of Object.values(this._layers))n.call(t,e);return this},_addLayers(n){n=n?Array.isArray(n)?n:[n]:[];for(const t of n)this.addLayer(t)},_addZoomLimit(n){(!isNaN(n.options.maxZoom)||!isNaN(n.options.minZoom))&&(this._zoomBoundLayers[w(n)]=n,this._updateZoomLevels())},_removeZoomLimit(n){const t=w(n);
1this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels(){let n=1/0,t=-1/0;const e=this._getZoomSpan();for(const i of Object.values(this._zoomBoundLayers)){const s=i.options;n=Math.min(n,s.minZoom??1/0),t=Math.max(t,s.maxZoom??-1/0)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=n===1/0?void 0:n,e!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});class ct extends C{initialize(t,e){P(this,e),this._layers={};for(const i of t??[])this.addLayer(i)}addLayer(t){const e=this.getLayerId(t);return this._layers[e]=t,this._map?.addLayer(t),this}removeLayer(t){const e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this}hasLayer(t){return(typeof t=="number"?t:this.getLayerId(t))in this._layers}clearLayers(){return this.eachLayer(this.removeLayer,this)}invoke(t,...e){for(const i of Object.values(this._layers))i[t]?.apply(i,e);return this}onAdd(t){this.eachLayer(t.addLayer,t)}onRemove(t){this.eachLayer(t.removeLayer,t)}eachLayer(t,e){for(const i of Object.values(this._layers))t.call(e,i);return this}getLayer(t){return this._layers[t]}getLayers(){const t=[];return this.eachLayer(t.push,t),t}setZIndex(t){return this.invoke("setZIndex",t)}getLayerId(t){return w(t)}}class V extends ct{addLayer(t){return this.hasLayer(t)?this:(t.addEventParent(this),ct.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))}removeLayer(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),ct.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this}setStyle(t){return this.invoke("setStyle",t)}bringToFront(){return this.invoke("bringToFront")}bringToBack(){return this.invoke("bringToBack")}getBounds(){const t=new g;for(const e of Object.values(this._layers))t.extend(e.getBounds?e.getBounds():e.getLatLng());return t}}const Me=class Me extends yt{initialize(t){P(this,t)}createIcon(t){return this._createIcon("icon",t)}createShadow(t){return this._createIcon("shadow",t)}_createIcon(t,e){const i=this._getIconUrl(t);if(!i){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}const s=this._createImg(i,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(s,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),s}_setIconStyles(t,e){const i=this.options;let s=i[`${e}Size`];typeof s=="number"&&(s=[s,s]);const o=c.validate(s)&&new c(s),r=e==="shadow"&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0),a=c.validate(r)&&new c(r);t.className=`leaflet-marker-${e} ${i.className||""}`,a&&(t.style.marginLeft=`${-a.x}px`,t.style.marginTop=`${-a.y}px`),o&&(t.style.width=`${o.x}px`,t.style.height=`${o.y}px`)}_createImg(t,e){return e??=document.createElement("img"),e.src=t,e}_getIconUrl(t){return O.retina&&this.options[`${t}RetinaUrl`]||this.options[`${t}Url`]}};Me.setDefaultOptions({popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1});let nt=Me;const rt=class rt extends nt{_getIconUrl(t){rt.imagePath||(rt.imagePath=this._detectIconPath());const e=nt.prototype._getIconUrl.call(this,t);return e?(this.options.imagePath||rt.imagePath)+e:null}_stripUrl(t){const e=function(i,s,o){const r=s.exec(i);return r&&r[o]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)}_detectIconPath(){const t=v("div","leaflet-default-icon-path",document.body),e=this._stripUrl(getComputedStyle(t).backgroundImage);if(document.body.removeChild(t),e)return e;const i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}};rt.setDefaultOptions({iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]});let It=rt;class Qe extends N{initialize(t){this._marker=t}
1addHooks(){const t=this._marker._icon;this._draggable||(this._draggable=new ut(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),t.classList.add("leaflet-marker-draggable")}removeHooks(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon?.classList.remove("leaflet-marker-draggable")}moved(){return this._draggable?._moved}_adjustPan(t){const e=this._marker,i=e._map,s=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=et(e._icon),a=i.getPixelBounds(),h=i.getPixelOrigin(),l=new f(a.min._subtract(h).add(o),a.max._subtract(h).subtract(o));if(!l.contains(r)){const d=new c((Math.max(l.max.x,r.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(s);i.panBy(d,{animate:!1}),this._draggable._newPos._add(d),this._draggable._startPos._add(d),T(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,t))}}_onDragStart(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup?.(),this._marker.fire("movestart").fire("dragstart")}_onPreDrag(t){this._marker.options.autoPan&&(cancelAnimationFrame(this._panRequest),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,t)))}_onDrag(t){const e=this._marker,i=e._shadow,s=et(e._icon),o=e._map.layerPointToLatLng(s);i&&T(i,s),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)}_onDragEnd(t){cancelAnimationFrame(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}const Se=class Se extends C{initialize(t,e){P(this,e),this._latlng=new _(t)}onAdd(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()}onRemove(t){this.dragging?.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()}getEvents(){return{zoom:this.update,viewreset:this.update}}getLatLng(){return this._latlng}setLatLng(t){const e=this._latlng;return this._latlng=new _(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})}setZIndexOffset(t){return this.options.zIndexOffset=t,this.update()}getIcon(){return this.options.icon}setIcon(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this}getElement(){return this._icon}update(){if(this._icon&&this._map){const t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this}_initIcon(){const t=this.options,e=`leaflet-zoom-${this._zoomAnimated?"animated":"hide"}`,i=t.icon.createIcon(this._icon);let s=!1;i!==this._icon&&(this._icon&&this._removeIcon(),s=!0,t.title&&(i.title=t.title),i.tagName==="IMG"&&(i.alt=t.alt??"")),i.classList.add(e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({pointerover:this._bringToFront,pointerout:this._resetZIndex}),this.options.autoPanOnFocus&&p(i,"focus",this._panOnFocus,this);const o=t.icon.createShadow(this._shadow);let r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(o.classList.add(e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),s&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)}_removeIcon(){this.options.riseOnHover&&this.off({pointerover:this._bringToFront,pointerout:this._resetZIndex}),this.options.autoPanOnFocus&&x(this._icon,"focus",this._panOnFocus,this),this._icon.remove(),this.removeInteractiveTarget(this._icon),this._icon=null}_removeShadow(){this._shadow?.remove(),this._shadow=null}_setPos(t){this._icon&&T(this._icon,t),this._shadow&&T(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()}_updateZIndex(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)}_animateZoom(t){const e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)}_initInteraction(){if(this.options.interactive&&(this._icon.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._icon),Qe)){let t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Qe(this),t&&this.dragging.enable()}}setOpacity(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this}_updateOpacity(){const t=this.options.opacity;this._icon&&(this._icon.style.opacity=t),this._shadow&&(this._shadow.style.opacity=t)}_bringToFront(){this._updateZIndex(this.options.riseOffset)}_resetZIndex(){this._updateZIndex(0)}_panOnFocus(){const t=this._map;if(!t)return;const e=this.options.icon.options,i=e.iconSize?new c(e.iconSize):new c(0,0),s=e.iconAnchor?new c(e.iconAnchor):new c(0,0);t.panInside(this._latlng,{paddingTopLeft:s,paddingBottomRight:i.subtract(s)})}_getPopupAnchor(){return this.options.icon.options.popupAnchor}_getTooltipAnchor(){return this.options.icon.options.tooltipAnchor}};Se.setDefaultOptions({icon:new It,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingPointerEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10});let _t=Se;const Ee=class Ee extends C{beforeAdd(t){this._renderer=t.getRenderer(this)}onAdd(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)}onRemove(){this._renderer._removePath(this)}redraw(){return this._map&&this._renderer._updatePath(this),this}setStyle(t){return P(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.hasOwn(t,"weight")&&this._updateBounds()),this}bringToFront(){return this._renderer?._bringToFront(this),this}bringToBack(){return this._renderer?._bringToBack(this),this}getElement(){return this._path}_reset(){this._project(),this._update()}_clickTolerance(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}};Ee.setDefaultOptions({stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,f
1illRule:"evenodd",interactive:!0,bubblingPointerEvents:!0});let R=Ee;const ke=class ke extends R{initialize(t,e){P(this,e),this._latlng=new _(t),this._radius=this.options.radius}setLatLng(t){const e=this._latlng;return this._latlng=new _(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})}getLatLng(){return this._latlng}setRadius(t){return this.options.radius=this._radius=t,this.redraw()}getRadius(){return this._radius}setStyle(t){const e=t?.radius??this._radius;return R.prototype.setStyle.call(this,t),this.setRadius(e),this}_project(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()}_updateBounds(){const t=this._radius,e=this._radiusY??t,i=this._clickTolerance(),s=[t+i,e+i];this._pxBounds=new f(this._point.subtract(s),this._point.add(s))}_update(){this._map&&this._updatePath()}_updatePath(){this._renderer._updateCircle(this)}_empty(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)}_containsPoint(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}};ke.setDefaultOptions({fill:!0,radius:10});let pt=ke;class Ti extends pt{initialize(t,e){if(P(this,e),this._latlng=new _(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius}setRadius(t){return this._mRadius=t,this.redraw()}getRadius(){return this._mRadius}getBounds(){const t=[this._radius,this._radiusY??this._radius];return new g(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))}setStyle=R.prototype.setStyle;_project(){const t=this._latlng.lng,e=this._latlng.lat,i=this._map,s=i.options.crs;if(s.distance===G.distance){const o=Math.PI/180,r=this._mRadius/G.R/o,a=i.project([e+r,t]),h=i.project([e-r,t]),l=a.add(h).divideBy(2),d=i.unproject(l).lat;let u=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(d*o))/(Math.cos(e*o)*Math.cos(d*o)))/o;(isNaN(u)||u===0)&&(u=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(i.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-i.project([d,t-u]).x,this._radiusY=l.y-a.y}else{const o=s.unproject(s.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=Math.abs(this._point.x-i.latLngToLayerPoint(o).x)}this._updateBounds()}}const Ae=class Ae extends R{initialize(t,e){P(this,e),this._setLatLngs(t)}getLatLngs(){return this._latlngs}setLatLngs(t){return this._setLatLngs(t),this.redraw()}isEmpty(){return!this._latlngs.length}closestLayerPoint(t){t=new c(t);let e=1/0,i=null,s,o;const r=bt;for(const a of this._parts)for(let h=1,l=a.length;h<l;h++){s=a[h-1],o=a[h];const d=r(t,s,o,!0);d<e&&(e=d,i=r(t,s,o))}return i&&(i.distance=Math.sqrt(e)),i}
1getCenter(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Li(this._defaultShape(),this._map.options.crs)}getBounds(){return this._bounds}addLatLng(t,e){return e??=this._defaultShape(),t=new _(t),e.push(t),this._bounds.extend(t),this.redraw()}_setLatLngs(t){this._bounds=new g,this._latlngs=this._convertLatLngs(t)}_defaultShape(){return B(this._latlngs)?this._latlngs:this._latlngs[0]}_convertLatLngs(t){const e=[],i=B(t);for(let s=0,o=t.length;s<o;s++)i?(e[s]=new _(t[s]),this._bounds.extend(e[s])):e[s]=this._convertLatLngs(t[s]);return e}_project(){const t=new f;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())}_updateBounds(){const t=this._clickTolerance(),e=new c(t,t);this._rawPxBounds&&(this._pxBounds=new f([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))}_projectLatlngs(t,e,i){if(t[0]instanceof _){const o=t.map(r=>this._map.latLngToLayerPoint(r));o.forEach(r=>i.extend(r)),e.push(o)}else t.forEach(o=>this._projectLatlngs(o,e,i))}_clipPoints(){const t=this._renderer._bounds;if(this._parts=[],!this._pxBounds||!this._pxBounds.intersects(t))return;if(this.options.noClip){this._parts=this._rings;return}const e=this._parts;let i,s,o,r,a,h,l;for(i=0,o=0,r=this._rings.length;i<r;i++)for(l=this._rings[i],s=0,a=l.length;s<a-1;s++)h=Pi(l[s],l[s+1],t,s,!0),h&&(e[o]??=[],e[o].push(h[0]),(h[1]!==l[s+1]||s===a-2)&&(e[o].push(h[1]),o++))}_simplifyPoints(){const t=this._parts,e=this.options.smoothFactor;for(let i=0,s=t.length;i<s;i++)t[i]=wi(t[i],e)}_update(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())}_updatePath(){this._renderer._updatePoly(this)}_containsPoint(t,e){let i,s,o,r,a,h;const l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,r=this._parts.length;i<r;i++)for(h=this._parts[i],s=0,a=h.length,o=a-1;s<a;o=s++)if(!(!e&&s===0)&&xi(t,h[o],h[s])<=l)return!0;return!1}};Ae.setDefaultOptions({smoothFactor:1,noClip:!1});let j=Ae;const Be=class Be extends j{isEmpty(){return!this._latlngs.length||!this._latlngs[0].length}
1getCenter(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return vi(this._defaultShape(),this._map.options.crs)}_convertLatLngs(t){const e=j.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof _&&e[0].equals(e[i-1])&&e.pop(),e}_setLatLngs(t){j.prototype._setLatLngs.call(this,t),B(this._latlngs)&&(this._latlngs=[this._latlngs])}_defaultShape(){return B(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]}_clipPoints(){let t=this._renderer._bounds;const e=this.options.weight,i=new c(e,e);if(t=new f(t.min.subtract(i),t.max.add(i)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(const s of this._rings){const o=yi(s,t,!0);o.length&&this._parts.push(o)}}}_updatePath(){this._renderer._updatePoly(this,!0)}_containsPoint(t){let e=!1,i,s,o,r,a,h,l,d;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,l=this._parts.length;r<l;r++)for(i=this._parts[r],a=0,d=i.length,h=d-1;a<d;h=a++)s=i[a],o=i[h],s.y>t.y!=o.y>t.y&&t.x<(o.x-s.x)*(t.y-s.y)/(o.y-s.y)+s.x&&(e=!e);return e||j.prototype._containsPoint.call(this,t,!0)}};Be.setDefaultOptions({fill:!0});let ot=Be;class K extends V{initialize(t,e){P(this,e),this._layers={},t&&this.addData(t)}addData(t){const e=Array.isArray(t)?t:t.features;if(e){for(const o of e)(o.geometries||o.geometry||o.features||o.coordinates)&&this.addData(o);return this}const i=this.options;if(i.filter&&!i.filter(t))return this;const s=Dt(t,i);return s?(s.feature=$t(t),s.defaultOptions=s.options,this.resetStyle(s),i.onEachFeature&&i.onEachFeature(t,s),this.addLayer(s)):this}resetStyle(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=Object.create(t.defaultOptions),this._setLayerStyle(t,this.options.style),this)}setStyle(t){return this.eachLayer(e=>this._setLayerStyle(e,t))}_setLayerStyle(t,e){t.setStyle&&(typeof e=="function"&&(e=e(t.feature)),t.setStyle(e))}}function Dt(n,t){const e=n.type==="Feature"?n.geometry:n,i=e?.coordinates,s=[],o=t?.pointToLayer,r=t?.coordsToLatLng??we;let a,h;if(!i&&!e)return null;switch(e.type){case"Point":return a=r(i),ti(o,n,a,t);case"MultiPoint":for(const l of i)a=r(l),s.push(ti(o,n,a,t));return new V(s);case"LineString":case"MultiLineString":return h=Rt(i,e.type==="LineString"?0:1,r),new j(h,t);case"Polygon":case"MultiPolygon":return h=Rt(i,e.type==="Polygon"?1:2,r),new ot(h,t);case"GeometryCollection":for(const l of e.geometries){const d=Dt({geometry:l,type:"Feature",properties:n.properties},t);d&&s.push(d)}return new V(s);case"FeatureCollection":for(const l of e.features){const d=Dt(l,t);d&&s.push(d)}return new V(s);default:throw new Error("Invalid GeoJSON object.")}}function ti(n,t,e,i){return n?n(t,e):new _t(e,i?.markersInheritOptions&&i)}function we(n){return new _(n[1],n[0],n[2])}function Rt(n,t,e){return n.map(i=>t?Rt(i,t-1,e):(e||we)(i))}function xe(n,t){return n=new _(n),n.alt!==void 0?[I(n.lng,t),I(n.lat,t),I(n.alt,t)]:[I(n.lng,t),I(n.lat,t)]}function Wt(n,t,e,i){const s=n.map(o=>t?Wt(o,B(o)?0:t-1,e,i):xe(o,i));return!t&&e&&s.length>0&&s.push(s[0].slice()),s}function lt(n,t){return n.feature?{...n.feature,geometry:t}:$t(t)}function $t(n){return n.type==="Feature"||n.type==="FeatureCollection"?n:{type:"Feature",properties:{},geometry:n}}const Pe={toGeoJSON(n){return lt(this,{type:"Point",coordinates:xe(this.getLatLng(),n)})}};_t.include(Pe);Ti.include(Pe);pt.include(Pe);j.include({toGeoJSON(n){const t=!B(this._latlngs),e=Wt(this._latlngs,t?1:0,!1,n);return lt(this,{type:`${t?"Multi":""}LineString`,coordinates:e})}});ot.include({toGeoJSON(n){const t=!B(this._latlngs),e=t&&!B(this._latlngs[0]);let i=Wt(this._latlngs,e?2:t?1:0,!0,n);return t||(i=[i]),lt(this,{type:`${e?"Multi":""}Polygon`,coordinates:i})}});ct.include({toMultiPoint(n){const t=[];return this.eachLayer(e=>{t.push(e.toGeoJSON(n).geometry.coordinates)}),lt(this,{type:"MultiPoint",coordinates:t})},toGeoJSON(n){const t=this.feature?.geometry?.type;if(t==="MultiPoint")return this.toMultiPoint(n);const e=t==="GeometryCollection",i=[];return this.eachLayer(s=>{if(s.toGeoJSON){const o=s.toGeoJSON(n);if(e)i.push(o.geometry);else{const r=$t(o);r.type==="FeatureCollection"?i.push.apply(i,r.features):i.push(r)}}}),e?lt(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});const Ie=class Ie extends C{initialize(t){P(this,t)}onAdd(){this._container||(this._initContainer(),this._container.classList.add("leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._resizeContainer(),this._onMoveEnd()}onRemove(){this._destroyContainer()}getEvents(){const t={viewreset:this._reset,zoom:this._onZoom,moveend:this._onMoveEnd,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),this.options.continuous&&(t.move=this._onMoveEnd),t}_onAnimZoom(t){this._updateTransform(t.center,t.zoom)}_onZoom(){this._updateTransform(this._map.getCenter(),this._map.getZoom())}_updateTransform(t,e){const i=this._map.getZoomScale(e,this._zoom),s=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=s.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));tt(this._container,r,i)}_onMoveEnd(t){const e=this.options.padding,i=this._map.getSize(),s=this._map.containerPointToLayerPoint(i.multiplyBy(-e)).round();
1this._bounds=new f(s,s.add(i.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom(),this._updateTransform(this._center,this._zoom),this._onSettled(t),this._resizeContainer()}_reset(){this._onSettled(),this._updateTransform(this._center,this._zoom),this._onViewReset()}_initContainer(){this._container=v("div")}_destroyContainer(){x(this._container),this._container.remove(),delete this._container}_resizeContainer(){const t=this.options.padding,e=this._map.getSize().multiplyBy(1+t*2).round();return this._container.style.width=`${e.x}px`,this._container.style.height=`${e.y}px`,e}_onZoomEnd(){}_onViewReset(){}_onSettled(){}};Ie.setDefaultOptions({padding:.1,continuous:!1});let Nt=Ie;const De=class De extends C{initialize(t,e,i){this._url=t,this._bounds=new g(e),P(this,i)}onAdd(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(this._image.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()}onRemove(){this._image.remove(),this.options.interactive&&this.removeInteractiveTarget(this._image)}setOpacity(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this}setStyle(t){return t.opacity&&this.setOpacity(t.opacity),this}bringToFront(){return this._map&&xt(this._image),this}bringToBack(){return this._map&&Pt(this._image),this}setUrl(t){return this._url=t,this._image&&(this._image.src=t),this}setBounds(t){return this._bounds=new g(t),this._map&&this._reset(),this}getEvents(){const t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t}setZIndex(t){return this.options.zIndex=t,this._updateZIndex(),this}getBounds(){return this._bounds}getElement(){return this._image}_initImage(){const t=this._url.tagName==="IMG",e=this._image=t?this._url:v("img");if(e.classList.add("leaflet-image-layer"),this._zoomAnimated&&e.classList.add("leaflet-zoom-animated"),this.options.className&&e.classList.add(...D(this.options.className)),e.onselectstart=E,e.onpointermove=E,e.onload=this.fire.bind(this,"load"),e.onerror=this._overlayOnError.bind(this),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),e.decoding=this.options.decoding,this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt}_animateZoom(t){const e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;tt(this._image,i,e)}_reset(){const t=this._image,e=new f(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();T(t,e.min),t.style.width=`${i.x}px`,t.style.height=`${i.y}px`}_updateOpacity(){this._image.style.opacity=this.options.opacity}_updateZIndex(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)}_overlayOnError(){this.fire("error");const t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}getCenter(){return this._bounds.getCenter()}};De.setDefaultOptions({opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:"",decoding:"auto"});let mt=De;const Re=class Re extends mt{_initImage(){const t=this._url.tagName==="VIDEO",e=this._image=t?this._url:v("video");if(e.classList.add("leaflet-image-layer"),this._zoomAnimated&&e.classList.add("leaflet-zoom-animated"),this.options.className&&e.classList.add(...D(this.options.className)),p(e,"pointerdown",i=>{e.controls&&U(i)}),e.onloadeddata=this.fire.bind(this,"load"),t){const i=e.getElementsByTagName("source"),s=i.map(o=>o.src);this._url=i.length>0?s:[e.src];return}Array.isArray(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.hasOwn(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.controls=!!this.options.controls,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInl
1ine=!!this.options.playsInline;for(const i of this._url){const s=v("source");s.src=i,e.appendChild(s)}}};Re.setDefaultOptions({autoplay:!0,controls:!1,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0});let oe=Re;class gs extends mt{_initImage(){const t=this._image=this._url;t.classList.add("leaflet-image-layer"),this._zoomAnimated&&t.classList.add("leaflet-zoom-animated"),this.options.className&&t.classList.add(...D(this.options.className)),t.onselectstart=E,t.onpointermove=E}}const Ne=class Ne extends C{initialize(t,e){t instanceof _||Array.isArray(t)?(this._latlng=new _(t),P(this,e)):(P(this,t),this._source=e),this.options.content&&(this._content=this.options.content)}openOn(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this}close(){return this._map?.removeLayer(this),this}toggle(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this}onAdd(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&(this._container.style.opacity=0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&(this._container.style.opacity=1),this.bringToFront(),this.options.interactive&&(this._container.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._container))}onRemove(t){t._fadeAnimated?(this._container.style.opacity=0,this._removeTimeout=setTimeout(()=>this._container.remove(),200)):this._container.remove(),this.options.interactive&&(this._container.classList.remove("leaflet-interactive"),this.removeInteractiveTarget(this._container))}getLatLng(){return this._latlng}setLatLng(t){return this._latlng=new _(t),this._map&&(this._updatePosition(),this._adjustPan()),this}getContent(){return this._content}setContent(t){return this._content=t,this.update(),this}getElement(){return this._container}update(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())}getEvents(){const t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t}isOpen(){return!!this._map&&this._map.hasLayer(this)}bringToFront(){return this._map&&xt(this._container),this}bringToBack(){return this._map&&Pt(this._container),this}_prepareOpen(t){let e=this._source;if(!e._map)return!1;if(e instanceof V){e=null;for(const i of Object.values(this._source._layers))if(i._map){e=i;break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else if(e.getBounds)t=e.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0}_updateContent(){if(!this._content)return;const t=this._contentNode,e=typeof this._content=="function"?this._content(this._source??this):this._content;if(typeof e=="string")t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}_updatePosition(){if(!this._map)return;const t=this._map.latLngToLayerPoint(this._latlng),e=this._getAnchor();let i=new c(this.options.offset);this._zoomAnimated?T(this._container,t.add(e)):i=i.add(t).add(e);const s=this._containerBottom=-i.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=`${s}px`,this._container.style.left=`${o}px`}_getAnchor(){return[0,0]}};Ne.setDefaultOptions({interactive:!1,offset:[0,0],className:"",pane:void 0,content:""});let S=Ne;m.include({_initOverlay(n,t,e,i){let s=t;return s instanceof n||(s=new n(i).setContent(t)),e&&s.setLatLng(e),s}});C.include({_initOverlay(n,t,e,i){let s=e;return s instanceof n?(P(s,i),s._source=this):(s=t&&!i?t:new n(i,this),s.setContent(e)),s}});const Fe=class Fe extends S{openOn(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,S.prototype.openOn.call(this,t)}onAdd(t){S.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof R||this._source.on("preclick",U))}onRemove(t){S.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof R||this._source.off("preclick",U))}getEvents(){const t=S.prototype.getEvents.call(this);return(this.options.closeOnClick??this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&
1(t.moveend=this._adjustPan),t}_initLayout(){const t="leaflet-popup",e=this._container=v("div",`${t} ${this.options.className||""} leaflet-zoom-animated`),i=this._wrapper=v("div",`${t}-content-wrapper`,e);if(this._contentNode=v("div",`${t}-content`,i),Lt(e),fe(this._contentNode),p(e,"contextmenu",U),this._tipContainer=v("div",`${t}-tip-container`,e),this._tip=v("div",`${t}-tip`,this._tipContainer),this.options.closeButton){const s=this._closeButton=v("a",`${t}-close-button`,e);s.setAttribute("role","button"),s.setAttribute("aria-label",this.options.closeButtonLabel),s.href="#close",s.innerHTML='<span aria-hidden="true">&#215;</span>',p(s,"click",o=>{Z(o),this.close()})}this.options.trackResize&&(this._resizeObserver=new ResizeObserver((s=>{this._map&&(this._containerWidth=s[0]?.contentRect?.width,this._containerHeight=s[0]?.contentRect?.height,this._updateLayout(),this._updatePosition(),this._adjustPan())})),this._resizeObserver.observe(this._contentNode))}_updateLayout(){const t=this._contentNode,e=t.style;e.maxWidth=`${this.options.maxWidth}px`,e.minWidth=`${this.options.minWidth}px`;const i=this._containerHeight??t.offsetHeight,s=this.options.maxHeight,o="leaflet-popup-scrolled";s&&i>s?(e.height=`${s}px`,t.classList.add(o)):t.classList.remove(o),this._containerWidth=this._container.offsetWidth,this._containerHeight=this._container.offsetHeight}_animateZoom(t){const e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();T(this._container,e.add(i))}_adjustPan(){if(!this.options.autoPan)return;if(this._map._panAnim?.stop(),this._autopanning){this._autopanning=!1;return}const t=this._map,e=parseInt(getComputedStyle(this._container).marginBottom,10)||0,i=this._containerHeight+e,s=this._containerWidth,o=new c(this._containerLeft,-i-this._containerBottom);o._add(et(this._container));const r=t.layerPointToContainerPoint(o),a=new c(this.options.autoPanPadding),h=new c(this.options.autoPanPaddingTopLeft??a),l=new c(this.options.autoPanPaddingBottomRight??a),d=t.getSize();let u=0,y=0;r.x+s+l.x>d.x&&(u=r.x+s-d.x+l.x),r.x-u-h.x<0&&(u=r.x-h.x),r.y+i+l.y>d.y&&(y=r.y+i-d.y+l.y),r.y-y-h.y<0&&(y=r.y-h.y),(u||y)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,y]))}_getAnchor(){return new c(this._source?._getPopupAnchor?this._source._getPopupAnchor():[0,0])}};Fe.setDefaultOptions({pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,closeButtonLabel:"Close popup",autoClose:!0,closeOnEscapeKey:!0,className:"",trackResize:!0});let ft=Fe;m.mergeOptions({closePopupOnClick:!0});m.include({openPopup(n,t,e){return this._initOverlay(ft,n,t,e).openOn(this),this},closePopup(n){return n=arguments.length?n:this._popup,n?.close(),this}});C.include({bindPopup(n,t){return this._popup=this._initOverlay(ft,this._popup,n,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup(n){return this._popup&&(this instanceof V||(this._popup._source=this),this._popup._prepareOpen(n||this._latlng)&&this._popup.openOn(this._map)),this},closePopup(){return this._popup?.close(),this},togglePopup(){return this._popup?.toggle(this),this},isPopupOpen(){return this._popup?.isOpen()??!1}
1,setPopupContent(n){return this._popup?.setContent(n),this},getPopup(){return this._popup},_openPopup(n){if(!this._popup||!this._map)return;st(n);const t=n.propagatedFrom??n.target;if(this._popup._source===t&&!(t instanceof R)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(n.latlng);return}this._popup._source=t,this.openPopup(n.latlng)},_movePopup(n){this._popup.setLatLng(n.latlng)},_onKeyPress(n){n.originalEvent.code==="Enter"&&this._openPopup(n)}});const He=class He extends S{onAdd(t){S.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))}onRemove(t){S.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))}getEvents(){const t=S.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t}_initLayout(){const t="leaflet-tooltip",e=`${t} ${this.options.className||""} leaflet-zoom-${this._zoomAnimated?"animated":"hide"}`;this._contentNode=this._container=v("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id",`leaflet-tooltip-${w(this)}`)}_updateLayout(){}_adjustPan(){}_setPosition(t){let e,i,s=this.options.direction;const o=this._map,r=this._container,a=o.latLngToContainerPoint(o.getCenter()),h=o.layerPointToContainerPoint(t),l=r.offsetWidth,d=r.offsetHeight,u=new c(this.options.offset),y=this._getAnchor();s==="top"?(e=l/2,i=d):s==="bottom"?(e=l/2,i=0):s==="center"?(e=l/2,i=d/2):s==="right"?(e=0,i=d/2):s==="left"?(e=l,i=d/2):h.x<a.x?(s="right",e=0,i=d/2):(s="left",e=l+(u.x+y.x)*2,i=d/2),t=t.subtract(new c(e,i,!0)).add(u).add(y),r.classList.remove("leaflet-tooltip-right","leaflet-tooltip-left","leaflet-tooltip-top","leaflet-tooltip-bottom"),r.classList.add(`leaflet-tooltip-${s}`),T(r,t)}_updatePosition(){const t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)}setOpacity(t){this.options.opacity=t,this._container&&(this._container.style.opacity=t)}_animateZoom(t){const e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)}_getAnchor(){return new c(this._source?._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}};He.setDefaultOptions({pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9});let gt=He;m.include({openTooltip(n,t,e){return this._initOverlay(gt,n,t,e).openOn(this),this},closeTooltip(n){return n.close(),this}});C.include({bindTooltip(n,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(gt,this._tooltip,n,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions(n){if(!n&&this._tooltipHandlersAdded)return;const t=n?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?e.add=this._openTooltip:(e.pointerover=this._openTooltip,e.pointerout=this.closeTooltip,e.click=this._openTooltip,this._map?this._addFocusListeners(n):e.add=()=>this._addFocusListeners(n)),this._tooltip.options.sticky&&(e.pointermove=this._moveTooltip),this[t](e),this._tooltipHandlersAdded=!n},openTooltip(n){return this._tooltip&&(this instanceof V||(this._tooltip._source=this),this._tooltip._prepareOpen(n)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip(){if(this._tooltip)return this._tooltip.close()},toggleTooltip(){return this._tooltip?.toggle(this),this},isTooltipOpen(){return this._tooltip.isOpen()},setTooltipContent(n){return this._tooltip?.setContent(n),this},getTooltip(){return this._tooltip},_addFocusListeners(n){this.getElement?this._addFocusListenersOnLayer(this,n):this.eachLayer&&this.eachLayer(t=>this._addFocusListenersOnLayer(t,n),this)},_addFocusListenersOnLayer(n,t){const e=typeof n.getElement=="function"&&n.getElement();if(e){const i=t?"off":"on";t||(e._leaflet_focus_handler&&x(e,"focus",e._leaflet_focus_handler,this),e._leaflet_focus_handler=()=>{this._tooltip&&(this._tooltip._source=n,this.openTooltip())}),e._leaflet_focus_handler&&te[i](e,"focus",e._leaflet_focus_handler,this),te[i](e,"blur",this.closeTooltip,this),t&&delete e._leaflet_focus_handler}},_setAriaDescribedByOnLayer(n){(typeof n.getElement=="function"&&n.getElement())?.setAttribute?.("aria-describedby",this._tooltip._container.id)},_openTooltip(n){if(!(!this._tooltip||!this._map)){if(this._map.dragging?.moving()){n.type==="add"&&!this._moveEndOpensTooltip&&(this._moveEndOpensTooltip=!0,this._map.once("moveend",()=>{this._moveEndOpensTooltip=!1,this._openTooltip(n)}));return}this._tooltip._source=n.propagatedFrom??n.target,this.openTooltip(this._tooltip.options.sticky?n.latlng:void 0)}},_moveTooltip(n){let t=n.latlng,e,i;this._tooltip.options.sticky&&n.originalEvent&&(e=this._map.pointerEventToContainerPoint(n.originalEvent),i=this._map.containerPointToLayerPoint(e),t=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(t)}});const je=class je extends nt{createIcon(t){const e=t&&t.tagName==="DIV"?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(e.replaceChildren(),e.appendChild(i.html)):e.innerHTML=i.html!==!1?i.html:"",i.bgPos){const s=new c(i.bgPos);e.style.backgroundPosition=`${-s.x}px ${-s.y}px`}return this._setIconStyles(e,"icon"),e}createShadow(){return null}};je.setDefaultOptions({iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"});let re=je;nt.Default=It;const We=class We extends C{initialize(t){P(this,t)}onAdd(){this._initContainer(),this._levels={},this._tiles={},this._resetView()}beforeAdd(t){t._addZoomLimit(this)}onRemove(t){this._removeAllTiles(),this._container.remove(),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0,clearTimeout(this._pruneTimeout)}bringToFront(){return this._map&&(xt(this._container),this._setAutoZIndex(Math.max)),this}bringToBack(){return this._map&&(Pt(this._container),this._setAutoZIndex(Math.min)),this}getContainer(){return this._container}setOpacity(t){return this.options.opacity=t,this._updateOpacity(),this}setZIndex(t){return this.options.zIndex=t,this._updateZIndex(),this}isLoading(){return this._loading}redraw(){if(this._map){this._removeAllTiles();const t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this}getEvents(){const t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=ii(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t}createTile(){return document.createElement("div")}getTileSize(){const t=this.options.tileSize;return t instanceof c?t:new c(t,t)}_updateZIndex(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)}_setAutoZIndex(t){const e=this.getPane().children;let i=-t(-1/0,1/0);for(const s of e){const o=s.style.zIndex;s!==this._container&&o&&(i=t(i,+o))}isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())}_updateOpacity(){if(!this._map)return;this._container.style.opacity=this.options.opacity;const t=+new Date;let e=!1,i=!1;for(const s of Object.values(this._tiles??{})){if(!s.current||!s.loaded)continue;const o=Math.min(1,(t-s.loaded)/200);s.el.style.opacity=o,o<1?e=!0:(s.active?i=!0:this._onOpaqueTile(s),s.active=!0)}i&&!this._noPrune&&this._pruneTiles(),e&&(cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this)))}_onOpaqueTile(){}_initContainer(){this._container||(this._container=v("div",`leaflet-layer ${this.options.className??""}`),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))}_updateLevels(){const t=this._tileZoom,e=this.options.maxZoom;if(t===void 0)return;for(let o of Object.keys(this._levels))o=Number(o),this._levels[o].el.children.length||o===t?(this._levels[o].el.style.zIndex=e-Math.abs(t-o),this._onUpdateLevel(o)):(this._levels[o].el.remove(),this._removeTilesAtZoom(o),this._onRemoveLevel(o),delete this._levels[o]);let i=this._levels[t];const s=this._map;
1return i||(i=this._levels[t]={},i.el=v("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=s.project(s.unproject(s.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,s.getCenter(),s.getZoom()),E(i.el.offsetWidth),this._onCreateLevel(i)),this._level=i,i}_onUpdateLevel(){}_onRemoveLevel(){}_onCreateLevel(){}_pruneTiles(){if(!this._map)return;const t=this._map.getZoom();if(t>this.options.maxZoom||t<this.options.minZoom){this._removeAllTiles();return}for(const e of Object.values(this._tiles))e.retain=e.current;for(const e of Object.values(this._tiles))if(e.current&&!e.active){const i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(const[e,i]of Object.entries(this._tiles))i.retain||this._removeTile(e)}_removeTilesAtZoom(t){for(const[e,i]of Object.entries(this._tiles))i.coords.z===t&&this._removeTile(e)}_removeAllTiles(){for(const t of Object.keys(this._tiles))this._removeTile(t)}_invalidateAll(){for(const t of Object.keys(this._levels))this._levels[t].el.remove(),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0}_retainParent(t,e,i,s){const o=Math.floor(t/2),r=Math.floor(e/2),a=i-1,h=new c(+o,+r);h.z=+a;const l=this._tileCoordsToKey(h),d=this._tiles[l];return d?.active?(d.retain=!0,!0):(d?.loaded&&(d.retain=!0),a>s?this._retainParent(o,r,a,s):!1)}_retainChildren(t,e,i,s){for(let o=2*t;o<2*t+2;o++)for(let r=2*e;r<2*e+2;r++){const a=new c(o,r);a.z=i+1;const h=this._tileCoordsToKey(a),l=this._tiles[h];if(l?.active){l.retain=!0;continue}else l?.loaded&&(l.retain=!0);i+1<s&&this._retainChildren(o,r,i+1,s)}}_resetView(t){const e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)}_animateZoom(t){this._setView(t.center,t.zoom,!0,t.noUpdate)}_clampZoom(t){const e=this.options;return e.minNativeZoom!==void 0&&t<e.minNativeZoom?e.minNativeZoom:e.maxNativeZoom!==void 0&&e.maxNativeZoom<t?e.maxNativeZoom:t}_setView(t,e,i,s){let o=Math.round(e);this.options.maxZoom!==void 0&&o>this.options.maxZoom||this.options.minZoom!==void 0&&o<this.options.minZoom?o=void 0:o=this._clampZoom(o);const r=this.options.updateWhenZooming&&o!==this._tileZoom;(!s||r)&&(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),o!==void 0&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)}_setZoomTransforms(t,e){for(const i of Object.values(this._levels))this._setZoomTransform(i,t,e)}_setZoomTransform(t,e,i){const s=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(s).subtract(this._map._getNewPixelOrigin(e,i)).round();tt(t.el,o,s)}_resetGrid(){const t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),s=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],s).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],s).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],s).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],s).y/i.y)]}_onMoveEnd(){!this._map||this._map._animatingZoom||this._update()}_getTiledPixelBounds(t){const e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),s=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(s*2);return new f(o.subtract(r),o.add(r))}_update(t){const e=this._map;if(!e)return;const i=this._clampZoom(e.getZoom());if(t===void 0&&(t=e.getCenter()),this._tileZoom===void 0)return;const s=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(s),r=o.getCenter(),a=[],h=this.options.keepBuffer,l=new f(o.getBottomLeft().subtract([h,-h]),o.getTopRight().add([h,-h]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(const d of Object.values(this._tiles)){const u=d.coords;(u.z!==this._tileZoom||!l.contains(new c(u.x,u.y)))&&(d.current=!1)}if(Math.abs(i-this._tileZoom)>
11){this._setView(t,i);return}for(let d=o.min.y;d<=o.max.y;d++)for(let u=o.min.x;u<=o.max.x;u++){const y=new c(u,d);if(y.z=this._tileZoom,!this._isValidTile(y))continue;const b=this._tiles[this._tileCoordsToKey(y)];b?b.current=!0:a.push(y)}if(a.sort((d,u)=>d.distanceTo(r)-u.distanceTo(r)),a.length!==0){this._loading||(this._loading=!0,this.fire("loading"));const d=document.createDocumentFragment();for(const u of a)this._addTile(u,d);this._level.el.appendChild(d)}}_isValidTile(t){const e=this._map.options.crs;if(!e.infinite){const s=this._globalTileRange;if(!e.wrapLng&&(t.x<s.min.x||t.x>s.max.x)||!e.wrapLat&&(t.y<s.min.y||t.y>s.max.y))return!1}if(!this.options.bounds)return!0;const i=this._tileCoordsToBounds(t);return new g(this.options.bounds).overlaps(i)}_keyToBounds(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))}_tileCoordsToNwSe(t){const e=this._map,i=this.getTileSize(),s=t.scaleBy(i),o=s.add(i),r=e.unproject(s,t.z),a=e.unproject(o,t.z);return[r,a]}_tileCoordsToBounds(t){const e=this._tileCoordsToNwSe(t);let i=new g(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i}_tileCoordsToKey(t){return`${t.x}:${t.y}:${t.z}`}_keyToTileCoords(t){const e=t.split(":"),i=new c(+e[0],+e[1]);return i.z=+e[2],i}_removeTile(t){const e=this._tiles[t];e&&(e.el.remove(),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))}_initTile(t){t.classList.add("leaflet-tile");const e=this.getTileSize();t.style.width=`${e.x}px`,t.style.height=`${e.y}px`,t.onselectstart=E,t.onpointermove=E}_addTile(t,e){const i=this._getTilePos(t),s=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),this._tileReady.bind(this,t));this._initTile(o),this.createTile.length<2&&requestAnimationFrame(this._tileReady.bind(this,t,null,o)),T(o,i),this._tiles[s]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})}_tileReady(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});const s=this._tileCoordsToKey(t);i=this._tiles[s],i&&(i.loaded=+new Date,this._map._fadeAnimated?(i.el.style.opacity=0,cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this))):(i.active=!0,this._pruneTiles()),e||(i.el.classList.add("leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),this._map._fadeAnimated?this._pruneTimeout=setTimeout(this._pruneTiles.bind(this),250):requestAnimationFrame(this._pruneTiles.bind(this))))}_getTilePos(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)}_wrapCoords(t){const e=new c(this._wrapX?dt(t.x,this._wrapX):t.x,this._wrapY?dt(t.y,this._wrapY):t.y);return e.z=t.z,e}_pxBoundsToTileRange(t){const e=this.getTileSize();return new f(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))}_noTilesToLoad(){return Object.values(this._tiles).every(t=>t.loaded)}};We.setDefaultOptions({tileSize:256,opacity:1,updateWhenIdle:O.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2});let X=We;const $e=class $e extends X{initialize(t,e){if(this._url=t,e=P(this,e),e.attribution===null&&URL.canParse(t)){const i=new URL(t).hostname;["tile.openstreetmap.org","tile.osm.org"].some(o=>i.endsWith(o))&&(e.attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors')}e.detectRetina&&O.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)}setUrl(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this}createTile(t,e){const i=document.createElement("img");return p(i,"load",this._tileOnLoad.bind(this,e,i)),p(i,"error",this._tileOnError.bind(this,e,i)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i}getTileUrl(t){const e=Object.create(this.options);if(Object.assign(e,{r:O.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()}),this._map&&!this._map.options.crs.infinite){const i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return si(this._url,e)}_tileOnLoad(t,e){t(null,e)}_tileOnError(t,e,i){const s=this.options.errorTileUrl;s&&e.getAttribute("src")!==s&&(e.src=s),t(i,e)}_onTileRemove(t){t.tile.onload=null}_getZoomForUrl(){let t=this._tileZoom;const e=this.options.maxZoom,i=this.options.zoomReverse,s=this.options.zoomOffset;return i&&(t=e-t),t+s}_getSubdomain(t){const e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]}
1_abortLoading(){let t,e;for(t of Object.keys(this._tiles))if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=E,e.onerror=E,!e.complete)){e.src=zt;const i=this._tiles[t].coords;e.remove(),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}}_removeTile(t){const e=this._tiles[t];if(e)return e.el.setAttribute("src",zt),X.prototype._removeTile.call(this,t)}_tileReady(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===zt))return X.prototype._tileReady.call(this,t,e,i)}_clampZoom(t){return Math.round(X.prototype._clampZoom.call(this,t))}};$e.setDefaultOptions({minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1});let Q=$e;const jt=class jt extends Q{initialize(t,e){this._url=t;const i={...this.defaultWmsParams};for(const r of Object.keys(e))r in this.options||(i[r]=e[r]);e=P(this,e);const s=e.detectRetina&&O.retina?2:1,o=this.getTileSize();i.width=o.x*s,i.height=o.y*s,this.wmsParams=i}onAdd(t){this._crs=this.options.crs??t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);const e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Q.prototype.onAdd.call(this,t)}getTileUrl(t){const e=this._tileCoordsToNwSe(t),i=this._crs,s=new f(i.project(e[0]),i.project(e[1])),o=s.min,r=s.max,a=(this._wmsVersion>=1.3&&this._crs===bi?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),h=new URL(Q.prototype.getTileUrl.call(this,t));for(const[l,d]of Object.entries({...this.wmsParams,bbox:a}))h.searchParams.append(this.options.uppercase?l.toUpperCase():l,d);return h.toString()}setParams(t,e){return Object.assign(this.wmsParams,t),e||this.redraw(),this}};jt.prototype.defaultWmsParams={service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},jt.setDefaultOptions({crs:null,uppercase:!1});let ae=jt;Q.WMS=ae;class A extends Nt{initialize(t){P(this,{...t,continuous:!1}),w(this),this._layers??={}}onAdd(t){super.onAdd(t),this.on("update",this._updatePaths,this)}onRemove(){super.onRemove(),this.off("update",this._updatePaths,this)}_onZoomEnd(){for(const t of Object.values(this._layers))t._project()}_updatePaths(){for(const t of Object.values(this._layers))t._update()}_onViewReset(){for(const t of Object.values(this._layers))t._reset()}_onSettled(){this._update()}_update(){}}const qe=class qe extends A{getEvents(){const t=A.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t}_onViewPreReset(){this._postponeUpdatePaths=!0}onAdd(t){A.prototype.onAdd.call(this,t),this._draw()}onRemove(){A.prototype.onRemove.call(this),clearTimeout(this._pointerHoverThrottleTimeout)}_initContainer(){const t=this._container=document.createElement("canvas");p(t,"pointermove",this._onPointerMove,this),p(t,"click dblclick pointerdown pointerup contextmenu",this._onClick,this),p(t,"pointerout",this._handlePointerOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")}_destroyContainer(){cancelAnimationFrame(this._redrawRequest),this._redrawRequest=null,delete this._ctx,A.prototype._destroyContainer.call(this)}_resizeContainer(){const t=A.prototype._resizeContainer.call(this),e=this._ctxScale=window.devicePixelRatio;this._container.width=e*t.x,this._container.height=e*t.y}_updatePaths(){if(!this._postponeUpdatePaths){this._redrawBounds=null;for(const t of Object.values(this._layers))t._update();this._redraw()}}_update(){if(this._map._animatingZoom&&this._bounds)return;const t=this._bounds,e=this._ctxScale;this._ctx.setTransform(e,0,0,e,-t.min.x*e,-t.min.y*e),this.fire("update")}_reset(){A.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())}_initPath(t){this._updateDashArray(t),this._layers[w(t)]=t;const e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst??=this._drawLast}_addPath(t){this._requestRedraw(t)}_removePath(t){const e=t._order,i=e.next,s=e.prev;i?i.prev=s:this._drawLast=s,s?s.next=i:this._drawFirst=i,delete t._order,delete this._layers[w(t)],this._requestRedraw(t)}_updatePath(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)}_updateStyle(t){this._updateDashArray(t),this._requestRedraw(t)}_updateDashArray(t){if(typeof t.options.dashArray=="string"){const e=t.options.dashArray.split(/[, ]+/);t.options._dashArray=e.map(i=>Number(i)).filter(i=>!isNaN(i))}else t.options._dashArray=t.options.dashArray}_requestRedraw(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest??=requestAnimationFrame(this._redraw.bind(this)))}_extendRedrawBounds(t){if(t._pxBounds){const e=(t.options.weight??0)+1;this._redrawBounds??=new f,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}}_redraw(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null}_clear(){const t=this._redrawBounds;if(t){const e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore(
1)}_draw(){let t;const e=this._redrawBounds;if(this._ctx.save(),e){const i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(let i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()}_updatePoly(t,e){if(!this._drawing)return;const i=t._parts,s=this._ctx;i.length&&(s.beginPath(),i.forEach(o=>{o.forEach((r,a)=>{s[a?"lineTo":"moveTo"](r.x,r.y)}),e&&s.closePath()}),this._fillStroke(s,t))}_updateCircle(t){if(!this._drawing||t._empty())return;const e=t._point,i=this._ctx,s=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||s)/s;o!==1&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,s,0,Math.PI*2,!1),o!==1&&i.restore(),this._fillStroke(i,t)}_fillStroke(t,e){const i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor??i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&i.weight!==0&&(t.setLineDash&&(t.lineDashOffset=Number(i.dashOffset??0),t.setLineDash(i._dashArray??[])),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())}_onClick(t){const e=this._map.pointerEventToLayerPoint(t);let i,s;for(let o=this._drawFirst;o;o=o.next)i=o.layer,i.options.interactive&&i._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i))&&(s=i);this._fireEvent(s?[s]:!1,t)}_onPointerMove(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom)return;const e=this._map.pointerEventToLayerPoint(t);this._handlePointerHover(t,e)}_handlePointerOut(t){const e=this._hoveredLayer;e&&(this._container.classList.remove("leaflet-interactive"),this._fireEvent([e],t,"pointerout"),this._hoveredLayer=null,this._pointerHoverThrottled=!1)}_handlePointerHover(t,e){if(this._pointerHoverThrottled)return;let i,s;for(let o=this._drawFirst;o;o=o.next)i=o.layer,i.options.interactive&&i._containsPoint(e)&&(s=i);s!==this._hoveredLayer&&(this._handlePointerOut(t),s&&(this._container.classList.add("leaflet-interactive"),this._fireEvent([s],t,"pointerover"),this._hoveredLayer=s)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._pointerHoverThrottled=!0,this._pointerHoverThrottleTimeout=setTimeout((()=>{this._pointerHoverThrottled=!1}),32)}_fireEvent(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)}_bringToFront(t){const e=t._order;if(!e)return;const i=e.next,s=e.prev;if(i)i.prev=s;else return;s?s.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t)}_bringToBack(t){const e=t._order;if(!e)return;const i=e.next,s=e.prev;if(s)s.next=i;else return;i?i.prev=s:s&&(this._drawLast=s),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}};qe.setDefaultOptions({tolerance:0});let Ft=qe;function ys(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function zi(n,t){return n.flatMap(i=>[...i.map((s,o)=>`${(o?"L":"M")+s.x} ${s.y}`),t?"z":""]).join("")||"M0 0"}const Ct=ys;class qt extends A{_initContainer(){this._container=Ct("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ct("g"),this._container.appendChild(this._rootGroup)}_destroyContainer(){A.prototype._destroyContainer.call(this),delete this._rootGroup,delete this._svgSize}_resizeContainer(){const t=A.prototype._resizeContainer.call(this);(!this._svgSize||!this._svgSize.equals(t))&&(this._svgSize=t,this._container.setAttribute("width",t.x),this._container.setAttribute("height",t.y))}_update(){if(this._map._animatingZoom&&this._bounds)return;const t=this._bounds,e=t.getSize();this._container.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}_initPath(t){const e=t._path=Ct("path");t.options.className&&e.classList.add(...D(t.options.className)),t.options.interactive&&e.classList.add("leaflet-interactive"),this._updateStyle(t),this._layers[w(t)]=t}_addPath(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)}_removePath(t){t._path.remove(),t.removeInteractiveTarget(t._path),delete this._layers[w(t)]}_updatePath(t){t._project(),t._update()}_updateStyle(t){const e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))}_updatePoly(t,e){this._setPath(t,zi(t._parts,e))}_updateCircle(t){const e=t._point,i=Math.max(Math.round(t._radius),1),s=Math.max(Math.round(t._radiusY),1)||i,o=`a${i},${s} 0 1,0 `,r=t._empty()?"M0 0":`M${e.x-i},${e.y}${o}${i*2},0 ${o}${-i*2},0 `;this._setPath(t,r)}_setPath(t,e){t._path.setAttribute("d",e)}_bringToFront(t){xt(t._path)}_bringToBack(t){Pt(t._path)}}m.include({getRenderer(n){let t=n.options.renderer??this._getPaneRenderer(n.options.pane)??this.options.renderer??this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer(n){if(n==="overlayPane"||n===void 0)return;let t=this._paneRenderers[n];return t===void 0&&(t=this._createRenderer({pane:n}
1),this._paneRenderers[n]=t),t},_createRenderer(n){return this.options.preferCanvas&&new Ft(n)||new qt(n)}});class vs extends ot{initialize(t,e){ot.prototype.initialize.call(this,this._boundsToLatLngs(t),e)}setBounds(t){return this.setLatLngs(this._boundsToLatLngs(t))}_boundsToLatLngs(t){return t=new g(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}}qt.create=Ct;qt.pointsToPath=zi;K.geometryToLayer=Dt;K.coordsToLatLng=we;K.coordsToLatLngs=Rt;K.latLngToCoords=xe;K.latLngsToCoords=Wt;K.getFeature=lt;K.asFeature=$t;m.mergeOptions({boxZoom:!0});class Oi extends N{initialize(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)}addHooks(){p(this._container,"pointerdown",this._onPointerDown,this)}removeHooks(){x(this._container,"pointerdown",this._onPointerDown,this)}moved(){return this._moved}_destroy(){this._pane.remove(),delete this._pane}_resetState(){this._resetStateTimeout=0,this._moved=!1}_clearDeferredResetState(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)}_onPointerDown(t){if(!t.shiftKey||t.button!==0)return!1;this._clearDeferredResetState(),this._resetState(),ce(),ue(),this._startPoint=this._map.pointerEventToContainerPoint(t),p(document,{contextmenu:st,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)}_onPointerMove(t){this._moved||(this._moved=!0,this._box=v("div","leaflet-zoom-box",this._container),this._container.classList.add("leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.pointerEventToContainerPoint(t);const e=new f(this._point,this._startPoint),i=e.getSize();T(this._box,e.min),this._box.style.width=`${i.x}px`,this._box.style.height=`${i.y}px`}_finish(){this._moved&&(this._box.remove(),this._container.classList.remove("leaflet-crosshair")),de(),_e(),x(document,{contextmenu:st,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)}_onPointerUp(t){if(t.button!==0||(this._finish(),!this._moved))return;this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(this._resetState.bind(this),0);const e=new g(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}_onKeyDown(t){t.code==="Escape"&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}m.addInitHook("addHandler","boxZoom",Oi);m.mergeOptions({doubleClickZoom:!0});class Zi extends N{addHooks(){this._map.on("dblclick",this._onDoubleClick,this)}removeHooks(){this._map.off("dblclick",this._onDoubleClick,this)}_onDoubleClick(t){const e=this._map,i=e.getZoom(),s=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-s:i+s;e.options.doubleClickZoom==="center"?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}}m.addInitHook("addHandler","doubleClickZoom",Zi);m.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});class Ci extends N{addHooks(){if(!this._draggable){const t=this._map;this._draggable=new ut(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}this._map._container.classList.add("leaflet-grab","leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]}removeHooks(){this._map._container.classList.remove("leaflet-grab","leaflet-touch-drag"),this._draggable.disable()}moved(){return this._draggable?._moved}moving(){return this._draggable?._moving}_onDragStart(){const t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){const e=new g(this._map.options.maxBounds);this._offsetLimit=new f(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])}_onDrag(t){if(this._map.options.inertia){const e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)}_prunePositions(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()}_onZoomEnd(){const t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x}_viscousLimit(t,e){return t-(t-e)*this._viscosity}_onPreDragLimit(){if(!this._viscosity||!this._offsetLimit)return;const t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}_onPreDragWrap(){const t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,s=this._draggable._newPos.x,o=(s-e+i)%t+e-i,r=(s+e+i)%t-e-i,a=Math.abs(o+i)<Math.abs(r+i)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a}_onDragEnd(t){const e=this._map,i=e.options,s=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),s)e.fire("moveend");else{this._prunePositions(+new Date);const o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,a=i.easeLinearity,h=o.multiplyBy(a/r),l=h.distanceTo([0,0]),d=Math.min(i.inertiaMaxSpeed,l),u=h.multiplyBy(d/l),y=d/(i.inertiaDeceleration*a);let b=u.multiplyBy(-y/2).round();!b.x&&!b.y?e.fire("moveend"):(b=e._limitOffset(b,e.options.maxBounds),requestAnimationFrame(()=>{e.panBy(b,{duration:y,easeLinearity:a,noMoveStart:!0,animate:!0})}
1))}}}m.addInitHook("addHandler","dragging",Ci);m.mergeOptions({keyboard:!0,keyboardPanDelta:80});class at extends N{static keyCodes={left:["ArrowLeft"],right:["ArrowRight"],down:["ArrowDown"],up:["ArrowUp"],zoomIn:["Equal","NumpadAdd","BracketRight"],zoomOut:["Minus","NumpadSubtract","Digit6","Slash"]};initialize(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)}addHooks(){const t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),t.ariaKeyShortcuts=Object.values(at.keyCodes).flat().join(" "),p(t,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)}removeHooks(){this._removeHooks(),x(this._map._container,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)}_onPointerDown(){if(this._focused)return;const t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,s=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(s,i)}_onFocus(){this._focused=!0,this._map.fire("focus")}_onBlur(){this._focused=!1,this._map.fire("blur")}_setPanDelta(t){const e=this._panKeys={},i=at.keyCodes;for(const s of i.left)e[s]=[-1*t,0];for(const s of i.right)e[s]=[t,0];for(const s of i.down)e[s]=[0,t];for(const s of i.up)e[s]=[0,-1*t]}_setZoomDelta(t){const e=this._zoomKeys={},i=at.keyCodes;for(const s of i.zoomIn)e[s]=t;for(const s of i.zoomOut)e[s]=-t}_addHooks(){p(document,"keydown",this._onKeyDown,this)}_removeHooks(){x(document,"keydown",this._onKeyDown,this)}_onKeyDown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;const e=t.code,i=this._map;let s;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(s=this._panKeys[e],t.shiftKey&&(s=new c(s).multiplyBy(3)),i.options.maxBounds&&(s=i._limitOffset(new c(s),i.options.maxBounds)),i.options.worldCopyJump){const o=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(s)));i.panTo(o)}else i.panBy(s)}else if(e in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else if(e==="Escape"&&i._popup&&i._popup.options.closeOnEscapeKey)i.closePopup();else return;st(t)}}m.addInitHook("addHandler","keyboard",at);m.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});class Mi extends N{addHooks(){p(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0}removeHooks(){x(this._map._container,"wheel",this._onWheelScroll,this),clearTimeout(this._timer)}_onWheelScroll(t){const e=fi(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.pointerEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);const s=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(this._performZoom.bind(this),s),st(t)}_performZoom(){const t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap??0;t._stop();const s=this._delta/(this._map.options.wheelPxPerZoomLevel*4),o=4*Math.log(2/(1+Math.exp(-Math.abs(s))))/Math.LN2,r=i?Math.ceil(o/i)*i:o,a=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,a&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}}m.addInitHook("addHandler","scrollWheelZoom",Mi);const ws=600;m.mergeOptions({tapHold:O.safari&&O.mobile,tapTolerance:15});class Si extends N{addHooks(){p(this._map._container,"pointerdown",this._onDown,this)}removeHooks(){x(this._map._container,"pointerdown",this._onDown,this),clearTimeout(this._holdTimeout)}_onDown(t){clearTimeout(this._holdTimeout),!(ht().length!==1||t.pointerType==="mouse")&&(this._startPos=this._newPos=new c(t.clientX,t.clientY),this._holdTimeout=setTimeout((()=>{this._cancel(),this._isTapValid()&&(p(document,"pointerup",Z),p(document,"pointerup pointercancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),ws),p(document,"pointerup pointercancel contextmenu",this._cancel,this),p(document,"pointermove",this._onMove,this))}_cancelClickPrevent=function t(){x(document,"pointerup",Z),x(document,"pointerup pointercancel",t)};_cancel(){clearTimeout(this._holdTimeout),x(document,"pointerup pointercancel contextmenu",this._cancel,this),x(document,"pointermove",this._onMove,this)}_onMove(t){this._newPos=new c(t.clientX,t.clientY)}_isTapValid(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance}_simulateEvent(t,e){const i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}}m.addInitHook("addHandler","tapHold",Si);m.mergeOptions({pinchZoom:!0,bounceAtZoomLimits:!0});class Le extends N{addHooks(){this._map._container.classList.add("leaflet-touch-zoom"),p(this._map._container,"pointerdown",this._onPointerStart,this)}removeHooks(){this._map._container.classList.remove("leaflet-touch-zoom"),x(this._map._container,"pointerdown",this._onPointerStart,this)}_onPointerStart(t){const e=this._map,i=ht();if(i.length!==2||e._animatingZoom||this._zooming)return;const s=e.pointerEventToContainerPoint(i[0]),o=e.pointerEventToContainerPoint(i[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.pinchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(s.add(o)._divideBy(2))),this._startDist=s.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),p(document,"pointermove",this._onPointerMove,this),p(document,"pointerup pointercancel",this._onPointerEnd,this),Z(t)}_onPointerMove(t){const e=ht();if(e.length!==2||!this._zooming)return;const i=this._map,s=i.pointerEventToContainerPoint(e[0]),o=i.pointerEventToContainerPoint(e[1]),r=s.distanceTo(o)/this._startDist;if(this._zoom=i.getScaleZoom(r,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&r<1||this._zoom>i.getMaxZoom()&&r>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.pinchZoom==="center"){if(this._center=this._startLatLng,r===1)return}else{const h=s._add(o)._divideBy(2)._subtract(this._centerPoint);if(r===1&&h.x===0&&h.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(h),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),cancelAnimationFrame(this._animRequest);const a=i._move.bind(i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=requestAnimationFrame(a.bind(this)),Z(t)}_onPointerEnd(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,cancelAnimationFrame(this._animRequest),x(document,"pointermove",this._onPointerMove,this),x(document,"pointerup pointercancel",this._onPointerEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}m.addInitHook("addHandler","pinchZoom",Le);m.addInitHook(function(){this.touchZoom=this.pinchZoom,this.options.touchZoom!==void 0&&(console.warn("Map: touchZoom option is deprecated and will be removed in future versions. Use pinchZoom instead."),this.options.pinchZoom=this.options.touchZoom,delete this.options.touchZoom),this.options.pinchZoom?this.pinchZoom.enable():this.pinchZoom.disable()});m.BoxZoom=Oi;m.DoubleClickZoom=Zi;m.Drag=Ci;m.Keyboard=at;m.ScrollWheelZoom=Mi;m.TapHold=Si;m.PinchZoom=Le;m.TouchZoom=Le;const xs="2.0.0-alpha.1";var Ps={__proto__:null,BlanketOverlay:Nt,Bounds:f,Browser:O,CRS:W,Canvas:Ft,Circle:Ti,CircleMarker:pt,Class:yt,Control:k,DivIcon:re,DivOverlay:S,DomEvent:te,DomUtil:es,Draggable:ut,Evented:vt,FeatureGroup:V,GeoJSON:K,GridLayer:X,Handler:N,Icon:nt,ImageOverlay:mt,LatLng:_,LatLngBounds:g,Layer:C,LayerGroup:ct,LeafletMap:os,LineUtil:us,Map:m,Marker:_t,Path:R,Point:c,PolyUtil:as,Polygon:ot,Polyline:j,Popup:ft,PosAnimation:gi,Projection:ps,Rectangle:vs,Renderer:A,SVG:qt,SVGOverlay:gs,TileLayer:Q,Tooltip:gt,Transformation:wt,Util:Wi,VideoOverlay:oe,version:xs};const Ls=Ht().L;Ht().L=Ps;Ht().L.noConflict=function(){return Ht().L=Ls,this};function Ht(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}export{Nt as BlanketOverlay,f as Bounds,O as Browser,W as CRS,Ft as Canvas,Ti as Circle,pt as CircleMarker,yt as Class,k as Control,re as DivIcon,S as DivOverlay,te as DomEvent,es as DomUtil,ut as Draggable,vt as Evented,V as FeatureGroup,K as GeoJSON,X as GridLayer,N as Handler,nt as Icon,mt as ImageOverlay,_ as LatLng,g as LatLngBounds,C as Layer,ct as LayerGroup,os as LeafletMap,us as LineUtil,m as Map,_t as Marker,R as Path,c as Point,as as PolyUtil,ot as Polygon,j as Polyline,ft as Popup,gi as PosAnimation,ps as Projection,vs as Rectangle,A as Renderer,qt as SVG,gs as SVGOverlay,Q as TileLayer,gt as Tooltip,wt as Transformation,Wi as Util,oe as VideoOverlay,Ps as default,xs as version};

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.