PageSourceSearch

https://seasia-hearing.org/themes/JaapKunstFoundation/asset/vendor/leaflet/leaflet.js?v=1.5.3

js seasia-hearing.org collected 2026-10-04 18:30:38 UTC 200,486 bytes, 2,547 lines download raw bytes

vendor: 199,243 bytes, lines 1-2544
1/* @preserve
2 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
3 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4 */
5! function(t, e) { "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e((t = "undefined" != typeof globalThis ? globalThis : t || self).leaflet = {}) }(this, function(t) {
6    "use strict";
7
8    function l(t) {
9        for (var e, i, n = 1, o = arguments.length; n < o; n++)
10            for (e in i = arguments[n]) t[e] = i[e];
11        return t
12    }
13    var R = Object.create || function(t) { return N.prototype = t, new N };
14
15    function N() {}
16
17    function a(t, e) { var i, n = Array.prototype.slice; return t.bind ? t.bind.apply(t, n.call(arguments, 1)) : (i = n.call(arguments, 2), function() { return t.apply(e, i.length ? i.concat(n.call(arguments)) : arguments) }) }
18    var D = 0;
19
20    function h(t) { return "_leaflet_id" in t || (t._leaflet_id = ++D), t._leaflet_id }
21
22    function j(t, e, i) {
23        var n, o, s = function() { n = !1, o && (r.apply(i, o), o = !1) },
24            r = function() { n ? o = arguments : (t.apply(i, arguments), setTimeout(s, e), n = !0) };
25        return r
26    }
27
28    function H(t, e, i) {
29        var n = e[1],
30            e = e[0],
31            o = n - e;
32        return t === n && i ? t : ((t - e) % o + o) % o + e
33    }
34
35    function u() { return !1 }
36
37    function i(t, e) { return !1 === e ? t : (e = Math.pow(10, void 0 === e ? 6 : e), Math.round(t * e) / e) }
38
39    function W(t) { return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "") }
40
41    function F(t) { return W(t).split(/\s+/) }
42
43    function c(t, e) { for (var i in Object.prototype.hasOwnProperty.call(t, "options") || (t.options = t.options ? R(t.options) : {}), e) t.options[i] = e[i]; return t.options }
44
45    function U(t, e, i) { var n, o = []; for (n in t) o.push(encodeURIComponent(i ? n.toUpperCase() : n) + "=" + encodeURIComponent(t[n])); return (e && -1 !== e.indexOf("?") ? "&" : "?") + o.join("&") }
46    var V = /\{ *([\w_ -]+) *\}/g;
47
48    function q(t, i) { return t.replace(V, function(t, e) { e = i[e]; if (void 0 === e) throw new Error("No value provided for variable " + t); return e = "function" == typeof e ? e(i) : e }) }
49    var d = Array.isArray || function(t) { return "[object Array]" === Object.prototype.toString.call(t) };
50
51    function G(t, e) {
52        for (var i = 0; i < t.length; i++)
53            if (t[i] === e) return i;
54        return -1
55    }
56    var K = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
57
58    function Y(t) { return window["webkit" + t] || window["moz" + t] || window["ms" + t] }
59    var X = 0;
60
61    function J(t) {
62        var e = +new Date,
63            i = Math.max(0, 16 - (e - X));
64        return X = e + i, window.setTimeout(t, i)
65    }
66    var $ = window.requestAnimationFrame || Y("RequestAnimationFrame") || J,
67        Q = window.cancelAnimationFrame || Y("CancelAnimationFrame") || Y("CancelRequestAnimationFrame") || function(t) { window.clearTimeout(t) };
68
69    function x(t, e, i) {
70        if (!i || $ !== J) return $.call(window, a(t, e));
71        t.call(e)
72    }
73
74    function r(t) { t && Q.call(window, t) }
75    var tt = { __proto__: null, extend: l, create: R, bind: a, get lastId() { return D }, stamp: h, throttle: j, wrapNum: H, falseFn: u, formatNum: i, trim: W, splitWords: F, setOptions: c, getParamString: U, template: q, isArray: d, indexOf: G, emptyImageUrl: K, requestFn: $, cancelFn: Q, requestAnimFrame: x, cancelAnimFrame: r };
76
77    function et() {}
78    et.extend = function(t) {
79        function e() { c(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks() }
80        var i, n = e.__super__ = this.prototype,
81            o = R(n);
82        for (i in (o.constructor = e).prototype = o, this) Object.prototype.hasOwnProperty.call(this, i) && "prototype" !== i && "__super__" !== i && (e[i] = this[i]);
83        if (t.statics && l(e, t.statics), t.includes) {
84            var s = t.includes;
85            if ("undefined" != typeof L && L && L.Mixin) { s = d(s) ? s : [s]; for (var r = 0; r < s.length; r++) s[r] === L.Mixin.Events && console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.", (new Error).stack) }
86            l.apply(null, [o].concat(t.includes))
87        }
88        return l(o, t), delete o.statics, delete o.includes, o.options && (o.options = n.options ? R(n.options) : {}, l(o.options, t.options)), o._initHooks = [], o.callInitHooks = function() { if (!this._initHooksCalled) { n.callInitHooks && n.callInitHooks.call(this), this._initHooksCalled = !0; for (var t = 0, e = o._initHooks.length; t < e; t++) o._initHooks[t].call(this) } }, e
89    }, et.include = function(t) { var e = this.prototype.options; return l(this.prototype, t), t.options && (this.prototype.options = e, this.mergeOptions(t.options)), this }, et.mergeOptions = function(t) { return l(this.prototype.options, t), this }, et.addInitHook = function(t) {
90        var e = Array.prototype.slice.call(arguments, 1),
91            i = "function" == typeof t ? t : function() { this[t].apply(this, e) };
92        return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(i), this
93    };
94    var e = {
95            on: function(t, e, i) {
96                if ("object" == typeof t)
97                    for (var n in t) this._on(n, t[n], e);
98                else
99                    for (var o = 0, s = (t = F(t)).length; o < s; o++) this._on(t[o], e, i);
100                return this
101            },
102            off: function(t, e, i) {
103                if (arguments.length)
104                    if ("object" == typeof t)
105                        for (var n in t) this._off(n, t[n], e);
106                    else { t = F(t); for (var o = 1 === arguments.length, s = 0, r = t.length; s < r; s++) o ? this._off(t[s]) : this._off(t[s], e, i) }
107                else delete this._events;
108                return this
109            },
110            _on: function(t, e, i, n) { "function" != typeof e ? console.warn("wrong listener type: " + typeof e) : !1 === this._listens(t, e, i) && (e = { fn: e, ctx: i = i === this ? void 0 : i }, n && (e.once = !0), this._events = this._events || {}, this._events[t] = this._events[t] || [], this._events[t].push(e)) },
111            _off: function(t, e, i) {
112                var n, o, s;
113                if (this._events && (n = this._events[t]))
114                    if (1 === arguments.length) {
115                        if (this._firingCount)
116                            for (o = 0, s = n.length; o < s; o++) n[o].fn = u;
117                        delete this._events[t]
118                    } else "function" != typeof e ? console.warn("wrong listener type: " + typeof e) : !1 !== (e = this._listens(t, e, i)) && (i = n[e], this._firingCount && (i.fn = u, this._events[t] = n = n.slice()), n.splice(e, 1))
119            },
120            fire: function(t, e, i) {
121                if (this.listens(t, i)) {
122                    var n = l({}, e, { type: t, target: this, sourceTarget: e && e.sourceTarget || this });
123                    if (this._events) {
124                        var o = this._events[t];
125                        if (o) {
126                            this._firingCount = this._firingCount + 1 || 1;
127                            for (var s = 0, r = o.length; s < r; s++) {
128                                var a = o[s],
129                                    h = a.fn;
130                                a.once && this.off(t, h, a.ctx), h.call(a.ctx || this, n)
131                            }
132                            this._firingCount--
133                        }
134                    }
135                    i && this._propagateEvent(n)
136                }
137                return this
138            },
139            listens: function(t, e, i, n) {
140                "string" != typeof t && console.warn('"string" type argument expected');
141                var o = e,
142                    s = ("function" != typeof e && (n = !!e, i = o = void 0), this._events && this._events[t]);
143                if (s && s.length && !1 !== this._listens(t, o, i)) return !0;
144                if (n)
145                    for (var r in this._eventParents)
146                        if (this._eventParents[r].listens(t, e, i, n)) return !0;
147                return !1
148            },
149            _listens: function(t, e, i) {
150                if (this._events) {
151                    var n = this._events[t] || [];
152                    if (!e) return !!n.length;
153                    i === this && (i = void 0);
154                    for (var o = 0, s = n.length; o < s; o++)
155                        if (n[o].fn === e && n[o].ctx === i) return o
156                }
157                return !1
158            },
159            once: function(t, e, i) {
160                if ("object" == typeof t)
161                    for (var n in t) this._on(n, t[n], e, !0);
162                else
163                    for (var o = 0, s = (t = F(t)).length; o < s; o++) this._on(t[o], e, i, !0);
164                return this
165            },
166            addEventParent: function(t) { return this._eventParents = this._eventParents || {}, this._eventParents[h(t)] = t, this },
167            removeEventParent: function(t) { return this._eventParents && delete this._eventParents[h(t)], this },
168            _propagateEvent: function(t) { for (var e in this._eventParents) this._eventParents[e].fire(t.type, l({ layer: t.target, propagatedFrom: t.target }, t), !0) }
169        },
170        it = (e.addEventListener = e.on, e.removeEventListener = e.clearAllEventListeners = e.off, e.addOneTimeEventListener = e.once, e.fireEvent = e.fire, e.hasEventListeners = e.listens, et.extend(e));
171
172    function p(t, e, i) { this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e }
173    var nt = Math.trunc || function(t) { return 0 < t ? Math.floor(t) : Math.ceil(t) };
174
175    function m(t, e, i) { return t instanceof p ? t : d(t) ? new p(t[0], t[1]) : null == t ? t : "object" == typeof t && "x" in t && "y" in t ? new p(t.x, t.y) : new p(t, e, i) }
176
177    function f(t, e) {
178        if (t)
179            for (var i = e ? [t, e] : t, n = 0, o = i.length; n < o; n++) this.extend(i[n])
180    }
181
182    function _(t, e) { return !t || t instanceof f ? t : new f(t, e) }
183
184    function s(t, e) {
185        if (t)
186            for (var i = e ? [t, e] : t, n = 0, o = i.length; n < o; n++) this.extend(i[n])
187    }
188
189    function g(t, e) { return t instanceof s ? t : new s(t, e) }
190
191    function v(t, e, i) {
192        if (isNaN(t) || isNaN(e)) throw new Error("Invalid LatLng object: (" + t + ", " + e + ")");
193        this.lat = +t, this.lng = +e, void 0 !== i && (this.alt = +i)
194    }
195
196    function w(t, e, i) { return t instanceof v ? t : d(t) && "object" != typeof t[0] ? 3 === t.length ? new v(t[0], t[1], t[2]) : 2 === t.length ? new v(t[0], t[1]) : null : null == t ? t : "object" == typeof t && "lat" in t ? new v(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : void 0 === e ? null : new v(t, e, i) }
197    p.prototype = {
198        clone: function() { return new p(this.x, this.y) },
199        add: function(t) { return this.clone()._add(m(t)) },
200        _add: function(t) { return this.x += t.x, this.y += t.y, this },
201        subtract: function(t) { return this.clone()._subtract(m(t)) },
202        _subtract: function(t) { return this.x -= t.x, this.y -= t.y, this },
203        divideBy: function(t) { return this.clone()._divideBy(t) },
204        _divideBy: function(t) { return this.x /= t, this.y /= t, this },
205        multiplyBy: function(t) { return this.clone()._multiplyBy(t) },
206        _multiplyBy: function(t) { return this.x *= t, this.y *= t, this },
207        scaleBy: function(t) { return new p(this.x * t.x, this.y * t.y) },
208        unscaleBy: function(t) { return new p(this.x / t.x, this.y / t.y) },
209        round: function() { return this.clone()._round() },
210        _round: function() { return this.x = Math.round(this.x), this.y = Math.round(this.y), this },
211        floor: function() { return this.clone()._floor() },
212        _floor: function() { return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this },
213        ceil: function() { return this.clone()._ceil() },
214        _ceil: function() { return this.x = Math.ceil(this.x), this.y = Math.ceil(this.y), this },
215        trunc: function() { return this.clone()._trunc() },
216        _trunc: function() { return this.x = nt(this.x), this.y = nt(this.y), this },
217        distanceTo: function(t) {
218            var e = (t = m(t)).x - this.x,
219                t = t.y - this.y;
220            return Math.sqrt(e * e + t * t)
221        },
222        equals: function(t) { return (t = m(t)).x === this.x && t.y === this.y },
223        contains: function(t) { return t = m(t), Math.abs(t.x) <= Math.abs(this.x) && Math.abs(t.y) <= Math.abs(this.y) },
224        toString: function() { return "Point(" + i(this.x) + ", " + i(this.y) + ")" }
225    }, f.prototype = {
226        extend: function(t) {
227            var e, i;
228            if (t) {
229                if (t instanceof p || "number" == typeof t[0] || "x" in t) e = i = m(t);
230                else if (e = (t = _(t)).min, i = t.max, !e || !i) return this;
231                this.min || this.max ? (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.min = e.clone(), this.max = i.clone())
232            }
233            return this
234        },
235        getCenter: function(t) { return m((this.min.x + this.max.x) / 2, (this.min.y + this.max.y) / 2, t) },
236        getBottomLeft: function() { return m(this.min.x, this.max.y) },
237        getTopRight: function() { return m(this.max.x, this.min.y) },
238        getTopLeft: function() { return this.min },
239        getBottomRight: function() { return this.max },
240        getSize: function() { return this.max.subtract(this.min) },
241        contains: function(t) { var e, i; return (t = ("number" == typeof t[0] || t instanceof p ? m : _)(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 },
242        intersects: function(t) {
243            t = _(t);
244            var e = this.min,
245                i = this.max,
246                n = t.min,
247                t = t.max,
248                o = t.x >= e.x && n.x <= i.x,
249                t = t.y >= e.y && n.y <= i.y;
250            return o && t
251        },
252        overlaps: function(t) {
253            t = _(t);
254            var e = this.min,
255                i = this.max,
256                n = t.min,
257                t = t.max,
258                o = t.x > e.x && n.x < i.x,
259                t = t.y > e.y && n.y < i.y;
260            return o && t
261        },
262        isValid: function() { return !(!this.min || !this.max) },
263        pad: function(t) {
264            var e = this.min,
265                i = this.max,
266                n = Math.abs(e.x - i.x) * t,
267                t = Math.abs(e.y - i.y) * t;
268            return _(m(e.x - n, e.y - t), m(i.x + n, i.y + t))
269        },
270        equals: function(t) { return !!t && (t = _(t), this.min.equals(t.getTopLeft()) && this.max.equals(t.getBottomRight())) }
271    }, s.prototype = {
272        extend: function(t) {
273            var e, i, n = this._southWest,
274                o = this._northEast;
275            if (t instanceof v) i = e = t;
276            else { if (!(t instanceof s)) return t ? this.extend(w(t) || g(t)) : this; if (e = t._southWest, i = t._northEast, !e || !i) return this }
277            return n || o ? (n.lat = Math.min(e.lat, n.lat), n.lng = Math.min(e.lng, n.lng), o.lat = Math.max(i.lat, o.lat), o.lng = Math.max(i.lng, o.lng)) : (this._southWest = new v(e.lat, e.lng), this._northEast = new v(i.lat, i.lng)), this
278        },
279        pad: function(t) {
280            var e = this._southWest,
281                i = this._northEast,
282                n = Math.abs(e.lat - i.lat) * t,
283                t = Math.abs(e.lng - i.lng) * t;
284            return new s(new v(e.lat - n, e.lng - t), new v(i.lat + n, i.lng + t))
285        },
286        getCenter: function() { return new v((this._southWest.lat + this._northEast.lat) / 2, (this._southWest.lng + this._northEast.lng) / 2) },
287        getSouthWest: function() { return this._southWest },
288        getNorthEast: function() { return this._northEast },
289        getNorthWest: function() { return new v(this.getNorth(), this.getWest()) },
290        getSouthEast: function() { return new v(this.getSouth(), this.getEast()) },
291        getWest: function() { return this._southWest.lng },
292        getSouth: function() { return this._southWest.lat },
293        getEast: function() { return this._northEast.lng },
294        getNorth: function() { return this._northEast.lat },
295        contains: function(t) {
296            t = ("number" == typeof t[0] || t instanceof v || "lat" in t ? w : g)(t);
297            var e, i, n = this._southWest,
298                o = this._northEast;
299            return t instanceof s ? (e = t.getSouthWest(), i = t.getNorthEast()) : e = i = t, e.lat >= n.lat && i.lat <= o.lat && e.lng >= n.lng && i.lng <= o.lng
300        },
301        intersects: function(t) {
302            t = g(t);
303            var e = this._southWest,
304                i = this._northEast,
305                n = t.getSouthWest(),
306                t = t.getNorthEast(),
307                o = t.lat >= e.lat && n.lat <= i.lat,
308                t = t.lng >= e.lng && n.lng <= i.lng;
309            return o && t
310        },
311        overlaps: function(t) {
312            t = g(t);
313            var e = this._southWest,
314                i = this._northEast,
315                n = t.getSouthWest(),
316                t = t.getNorthEast(),
317                o = t.lat > e.lat && n.lat < i.lat,
318                t = t.lng > e.lng && n.lng < i.lng;
319            return o && t
320        },
321        toBBoxString: function() { return [this.getWest(), this.getSouth(), this.getEast(), this.getNorth()].join(",") },
322        equals: function(t, e) { return !!t && (t = g(t), this._southWest.equals(t.getSouthWest(), e) && this._northEast.equals(t.getNorthEast(), e)) },
323        isValid: function() { return !(!this._southWest || !this._northEast) }
324    };
325    var ot = {
326            latLngToPoint: function(t, e) { t = this.projection.project(t), e = this.scale(e); return this.transformation._transform(t, e) },
327            pointToLatLng: function(t, e) { e = this.scale(e), t = this.transformation.untransform(t, e); return this.projection.unproject(t) },
328            project: function(t) { return this.projection.project(t) },
329            unproject: function(t) { return this.projection.unproject(t) },
330            scale: function(t) { return 256 * Math.pow(2, t) },
331            zoom: function(t) { return Math.log(t / 256) / Math.LN2 },
332            getProjectedBounds: function(t) { var e; return this.infinite ? null : (e = this.projection.bounds, t = this.scale(t), new f(this.transformation.transform(e.min, t), this.transformation.transform(e.max, t))) },
333            infinite: !(v.prototype = {
334                equals: function(t, e) { return !!t && (t = w(t), Math.max(Math.abs(this.lat - t.lat), Math.abs(this.lng - t.lng)) <= (void 0 === e ? 1e-9 : e)) },
335                toString: function(t) { return "LatLng(" + i(this.lat, t) + ", " + i(this.lng, t) + ")" },
336                distanceTo: function(t) { return st.distance(this, w(t)) },
337                wrap: function() { return st.wrapLatLng(this) },
338                toBounds: function(t) {
339                    var t = 180 * t / 40075017,
340                        e = t / Math.cos(Math.PI / 180 * this.lat);
341                    return g([this.lat - t, this.lng - e], [this.lat + t, this.lng + e])
342                },
343                clone: function() { return new v(this.lat, this.lng, this.alt) }
344            }),
345            wrapLatLng: function(t) { var e = this.wrapLng ? H(t.lng, this.wrapLng, !0) : t.lng; return new v(this.wrapLat ? H(t.lat, this.wrapLat, !0) : t.lat, e, t.alt) },
346            wrapLatLngBounds: function(t) {
347                var e = t.getCenter(),
348                    i = this.wrapLatLng(e),
349                    n = e.lat - i.lat,
350                    e = e.lng - i.lng;
351                return 0 == n && 0 == e ? t : (i = t.getSouthWest(), t = t.getNorthEast(), new s(new v(i.lat - n, i.lng - e), new v(t.lat - n, t.lng - e)))
352            }
353        },
354        st = l({}, ot, {
355            wrapLng: [-180, 180],
356            R: 6371e3,
357            distance: function(t, e) {
358                var i = Math.PI / 180,
359                    n = t.lat * i,
360                    o = e.lat * i,
361                    s = Math.sin((e.lat - t.lat) * i / 2),
362                    e = Math.sin((e.lng - t.lng) * i / 2),
363                    t = s * s + Math.cos(n) * Math.cos(o) * e * e,
364                    i = 2 * Math.atan2(Math.sqrt(t), Math.sqrt(1 - t));
365                return this.R * i
366            }
367        }),
368        rt = 6378137,
369        rt = {
370            R: rt,
371            MAX_LATITUDE: 85.0511287798,
372            project: function(t) {
373                var e = Math.PI / 180,
374                    i = this.MAX_LATITUDE,
375                    i = Math.max(Math.min(i, t.lat), -i),
376                    i = Math.sin(i * e);
377                return new p(this.R * t.lng * e, this.R * Math.log((1 + i) / (1 - i)) / 2)
378            },
379            unproject: function(t) { var e = 180 / Math.PI; return new v((2 * Math.atan(Math.exp(t.y / this.R)) - Math.PI / 2) * e, t.x * e / this.R) },
380            bounds: new f([-(rt = rt * Math.PI), -rt], [rt, rt])
381        };
382
383    function at(t, e, i, n) { d(t) ? (this._a = t[0], this._b = t[1], this._c = t[2], this._d = t[3]) : (this._a = t, this._b = e, this._c = i, this._d = n) }
384
385    function ht(t, e, i, n) { return new at(t, e, i, n) }
386    at.prototype = { transform: function(t, e) { return this._transform(t.clone(), e) }, _transform: function(t, e) { return t.x = (e = e || 1) * (this._a * t.x + this._b), t.y = e * (this._c * t.y + this._d), t }, untransform: function(t, e) { return new p((t.x / (e = e || 1) - this._b) / this._a, (t.y / e - this._d) / this._c) } };
387    var lt = l({}, st, { code: "EPSG:3857", projection: rt, transformation: ht(lt = .5 / (Math.PI * rt.R), .5, -lt, .5) }),
388        ut = l({}, lt, { code: "EPSG:900913" });
389
390    function ct(t) { return document.createElementNS("http://www.w3.org/2000/svg", t) }
391
392    function dt(t, e) {
393        for (var i, n, o, s, r = "", a = 0, h = t.length; a < h; a++) {
394            for (i = 0, n = (o = t[a]).length; i < n; i++) r += (i ? "L" : "M") + (s = o[i]).x + " " + s.y;
395            r += e ? b.svg ? "z" : "x" : ""
396        }
397        return r || "M0 0"
398    }
399    var _t = document.documentElement.style,
400        pt = "ActiveXObject" in window,
401        mt = pt && !document.addEventListener,
402        n = "msLaunchUri" in navigator && !("documentMode" in document),
403        ft = y("webkit"),
404        gt = y("android"),
405        vt = y("android 2") || y("android 3"),
406        yt = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10),
407        yt = gt && y("Google") && yt < 537 && !("AudioNode" in window),
408        xt = !!window.opera,
409        wt = !n && y("chrome"),
410        bt = y("gecko") && !ft && !xt && !pt,
411        Pt = !wt && y("safari"),
412        Lt = y("phantom"),
413        o = "OTransition" in _t,
414        Tt = 0 === navigator.platform.indexOf("Win"),
415        Mt = pt && "transition" in _t,
416        zt = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix && !vt,
417        _t = "MozPerspective" in _t,
418        Ct = !window.L_DISABLE_3D && (Mt || zt || _t) && !o && !Lt,
419        Zt = "undefined" != typeof orientation || y("mobile"),
420        St = Zt && ft,
421        Et = Zt && zt,
422        kt = !window.PointerEvent && window.MSPointerEvent,
423        Ot = !(!window.PointerEvent && !kt),
424        At = "ontouchstart" in window || !!window.TouchEvent,
425        Bt = !window.L_NO_TOUCH && (At || Ot),
426        It = Zt && xt,
427        Rt = Zt && bt,
428        Nt = 1 < (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI),
429        Dt = function() {
430            var t = !1;
431            try {
432                var e = Object.defineProperty({}, "passive", { get: function() { t = !0 } });
433                window.addEventListener("testPassiveEventSupport", u, e), window.removeEventListener("testPassiveEventSupport", u, e)
434            } catch (t) {}
435            return t
436        }(),
437        jt = !!document.createElement("canvas").getContext,
438        Ht = !(!document.createElementNS || !ct("svg").createSVGRect),
439        Wt = !!Ht && ((Wt = document.createElement("div")).innerHTML = "<svg/>", "http://www.w3.org/2000/svg" === (Wt.firstChild && Wt.firstChild.namespaceURI));
440
441    function y(t) { return 0 <= navigator.userAgent.toLowerCase().indexOf(t) }
442    var b = {
443            ie: pt,
444            ielt9: mt,
445            edge: n,
446            webkit: ft,
447            android: gt,
448            android23: vt,
449            androidStock: yt,
450            opera: xt,
451            chrome: wt,
452            gecko: bt,
453            safari: Pt,
454            phantom: Lt,
455            opera12: o,
456            win: Tt,
457            ie3d: Mt,
458            webkit3d: zt,
459            gecko3d: _t,
460            any3d: Ct,
461            mobile: Zt,
462            mobileWebkit: St,
463            mobileWebkit3d: Et,
464            msPointer: kt,
465            pointer: Ot,
466            touch: Bt,
467            touchNative: At,
468            mobileOpera: It,
469            mobileGecko: Rt,
470            retina: Nt,
471            passiveEvents: Dt,
472            canvas: jt,
473            svg: Ht,
474            vml: !Ht && function() {
475                try {
476                    var t = document.createElement("div"),
477                        e = (t.innerHTML = '<v:shape adj="1"/>', t.firstChild);
478                    return e.style.behavior = "url(#default#VML)", e && "object" == typeof e.adj
479                } catch (t) { return !1 }
480            }(),
481            inlineSvg: Wt,
482            mac: 0 === navigator.platform.indexOf("Mac"),
483            linux: 0 === navigator.platform.indexOf("Linux")
484        },
485        Ft = b.msPointer ? "MSPointerDown" : "pointerdown",
486        Ut = b.msPointer ? "MSPointerMove" : "pointermove",
487        Vt = b.msPointer ? "MSPointerUp" : "pointerup",
488        qt = b.msPointer ? "MSPointerCancel" : "pointercancel",
489        Gt = { touchstart: Ft, touchmove: Ut, touchend: Vt, touchcancel: qt },
490        Kt = {
491            touchstart: function(t, e) {
492                e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && O(e);
493                ee(t, e)
494            },
495            touchmove: ee,
496            touchend: ee,
497            touchcancel: ee
498        },
499        Yt = {},
500        Xt = !1;
501
502    function Jt(t, e, i) { return "touchstart" !== e || Xt || (document.addEventListener(Ft, $t, !0), document.addEventListener(Ut, Qt, !0), document.addEventListener(Vt, te, !0), document.addEventListener(qt, te, !0), Xt = !0), Kt[e] ? (i = Kt[e].bind(this, i), t.addEventListener(Gt[e], i, !1), i) : (console.warn("wrong event specified:", e), u) }
503
504    function $t(t) { Yt[t.pointerId] = t }
505
506    function Qt(t) { Yt[t.pointerId] && (Yt[t.pointerId] = t) }
507
508    function te(t) { delete Yt[t.pointerId] }
509
510    function ee(t, e) {
511        if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
512            for (var i in e.touches = [], Yt) e.touches.push(Yt[i]);
513            e.changedTouches = [e], t(e)
514        }
515    }
516    var ie = 200;
517
518    function ne(t, i) {
519        t.addEventListener("dblclick", i);
520        var n, o = 0;
521
522        function e(t) {
523            var e;
524            1 !== t.detail ? n = t.detail : "mouse" === t.pointerType || t.sourceCapabilities && !t.sourceCapabilities.firesTouchEvents || ((e = Ne(t)).some(function(t) { return t instanceof HTMLLabelElement && t.attributes.for }) && !e.some(function(t) { return t instanceof HTMLInputElement || t instanceof HTMLSelectElement }) || ((e = Date.now()) - o <= ie ? 2 === ++n && i(function(t) { var e, i, n = {}; for (i in t) e = t[i], n[i] = e && e.bind ? e.bind(t) : e; return (t = n).type = "dblclick", n.detail = 2, n.isTrusted = !1, n._simulated = !0, n }(t)) : n = 1, o = e))
525        }
526        return t.addEventListener("click", e), { dblclick: i, simDblclick: e }
527    }
528    var oe, se, re, ae, he, le, ue = we(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]),
529        ce = we(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]),
530        de = "webkitTransition" === ce || "OTransition" === ce ? ce + "End" : "transitionend";
531
532    function _e(t) { return "string" == typeof t ? document.getElementById(t) : t }
533
534    function pe(t, e) { var i = t.style[e] || t.currentStyle && t.currentStyle[e]; return "auto" === (i = i && "auto" !== i || !document.defaultView ? i : (t = document.defaultView.getComputedStyle(t, null)) ? t[e] : null) ? null : i }
535
536    function P(t, e, i) { t = document.createElement(t); return t.className = e || "", i && i.appendChild(t), t }
537
538    function T(t) {
539        var e = t.parentNode;
540        e && e.removeChild(t)
541    }
542
543    function me(t) { for (; t.firstChild;) t.removeChild(t.firstChild) }
544
545    function fe(t) {
546        var e = t.parentNode;
547        e && e.lastChild !== t && e.appendChild(t)
548    }
549
550    function ge(t) {
551        var e = t.parentNode;
552        e && e.firstChild !== t && e.insertBefore(t, e.firstChild)
553    }
554
555    function ve(t, e) { return void 0 !== t.classList ? t.classList.contains(e) : 0 < (t = xe(t)).length && new RegExp("(^|\\s)" + e + "(\\s|$)").test(t) }
556
557    function M(t, e) {
558        var i;
559        if (void 0 !== t.classList)
560            for (var n = F(e), o = 0, s = n.length; o < s; o++) t.classList.add(n[o]);
561        else ve(t, e) || ye(t, ((i = xe(t)) ? i + " " : "") + e)
562    }
563
564    function z(t, e) { void 0 !== t.classList ? t.classList.remove(e) : ye(t, W((" " + xe(t) + " ").replace(" " + e + " ", " "))) }
565
566    function ye(t, e) { void 0 === t.className.baseVal ? t.className = e : t.className.baseVal = e }
567
568    function xe(t) { return void 0 === (t = t.correspondingElement ? t.correspondingElement : t).className.baseVal ? t.className : t.className.baseVal }
569
570    function C(t, e) {
571        if ("opacity" in t.style) t.style.opacity = e;
572        else if ("filter" in t.style) {
573            var i = !1,
574                n = "DXImageTransform.Microsoft.Alpha";
575            try { i = t.filters.item(n) } catch (t) { if (1 === e) return }
576            e = Math.round(100 * e), i ? (i.Enabled = 100 !== e, i.Opacity = e) : t.style.filter += " progid:" + n + "(opacity=" + e + ")"
577        }
578    }
579
580    function we(t) {
581        for (var e = document.documentElement.style, i = 0; i < t.length; i++)
582            if (t[i] in e) return t[i];
583        return !1
584    }
585
586    function be(t, e, i) {
587        e = e || new p(0, 0);
588        t.style[ue] = (b.ie3d ? "translate(" + e.x + "px," + e.y + "px)" : "translate3d(" + e.x + "px," + e.y + "px,0)") + (i ? " scale(" + i + ")" : "")
589    }
590
591    function Z(t, e) { t._leaflet_pos = e, b.any3d ? be(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px") }
592
593    function Pe(t) { return t._leaflet_pos || new p(0, 0) }
594
595    function Le() { S(window, "dragstart", O) }
596
597    function Te() { k(window, "dragstart", O) }
598
599    function Me(t) {
600        for (; - 1 === t.tabIndex;) t = t.parentNode;
601        t.style && (ze(), le = (he = t).style.outlineStyle, t.style.outlineStyle = "none", S(window, "keydown", ze))
602    }
603
604    function ze() { he && (he.style.outlineStyle = le, le = he = void 0, k(window, "keydown", ze)) }
605
606    function Ce(t) { for (; !((t = t.parentNode).offsetWidth && t.offsetHeight || t === document.body);); return t }
607
608    function Ze(t) { var e = t.getBoundingClientRect(); return { x: e.width / t.offsetWidth || 1, y: e.height / t.offsetHeight || 1, boundingClientRect: e } }
609    ae = "onselectstart" in document ? (re = function() { S(window, "selectstart", O) }, function() { k(window, "selectstart", O) }) : (se = we(["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]), re = function() {
610        var t;
611        se && (t = document.documentElement.style, oe = t[se], t[se] = "none")
612    }, function() { se && (document.documentElement.style[se] = oe, oe = void 0) });
613    pt = { __proto__: null, TRANSFORM: ue, TRANSITION: ce, TRANSITION_END: de, get: _e, getStyle: pe, create: P, remove: T, empty: me, toFront: fe, toBack: ge, hasClass: ve, addClass: M, removeClass: z, setClass: ye, getClass: xe, setOpacity: C, testProp: we, setTransform: be, setPosition: Z, getPosition: Pe, get disableTextSelection() { return re }, get enableTextSelection() { return ae }, disableImageDrag: Le, enableImageDrag: Te, preventOutline: Me, restoreOutline: ze, getSizedParentNode: Ce, getScale: Ze };
614
615    function S(t, e, i, n) {
616        if (e && "object" == typeof e)
617            for (var o in e) ke(t, o, e[o], i);
618        else
619            for (var s = 0, r = (e = F(e)).length; s < r; s++) ke(t, e[s], i, n);
620        return this
621    }
622    var E = "_leaflet_events";
623
624    function k(t, e, i, n) {
625        if (1 === arguments.length) Se(t), delete t[E];
626        else if (e && "object" == typeof e)
627            for (var o in e) Oe(t, o, e[o], i);
628        else if (e = F(e), 2 === arguments.length) Se(t, function(t) { return -1 !== G(e, t) });
629        else
630            for (var s = 0, r = e.length; s < r; s++) Oe(t, e[s], i, n);
631        return this
632    }
633
634    function Se(t, e) {
635        for (var i in t[E]) {
636            var n = i.split(/\d/)[0];
637            e && !e(n) || Oe(t, n, null, null, i)
638        }
639    }
640    var Ee = { mouseenter: "mouseover", mouseleave: "mouseout", wheel: !("onwheel" in window) && "mousewheel" };
641
642    function ke(e, t, i, n) {
643        var o, s, r = t + h(i) + (n ? "_" + h(n) : "");
644        e[E] && e[E][r] || (s = o = function(t) { return i.call(n || e, t || window.event) }, !b.touchNative && b.pointer && 0 === t.indexOf("touch") ? o = Jt(e, t, o) : b.touch && "dblclick" === t ? o = ne(e, o) : "addEventListener" in e ? "touchstart" === t || "touchmove" === t || "wheel" === t || "mousewheel" === t ? e.addEventListener(Ee[t] || t, o, !!b.passiveEvents && { passive: !1 }) : "mouseenter" === t || "mouseleave" === t ? e.addEventListener(Ee[t], o = function(t) { t = t || window.event, We(e, t) && s(t) }, !1) : e.addEventListener(t, s, !1) : e.attachEvent("on" + t, o), e[E] = e[E] || {}, e[E][r] = o)
645    }
646
647    function Oe(t, e, i, n, o) {
648        o = o || e + h(i) + (n ? "_" + h(n) : "");
649        var s, r, i = t[E] && t[E][o];
650        i && (!b.touchNative && b.pointer && 0 === e.indexOf("touch") ? (n = t, r = i, Gt[s = e] ? n.removeEventListener(Gt[s], r, !1) : console.warn("wrong event specified:", s)) : b.touch && "dblclick" === e ? (n = i, (r = t).removeEventListener("dblclick", n.dblclick), r.removeEventListener("click", n.simDblclick)) : "removeEventListener" in t ? t.removeEventListener(Ee[e] || e, i, !1) : t.detachEvent("on" + e, i), t[E][o] = null)
651    }
652
653    function Ae(t) { return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this }
654
655    function Be(t) { return ke(t, "wheel", Ae), this }
656
657    function Ie(t) { return S(t, "mousedown touchstart dblclick contextmenu", Ae), t._leaflet_disable_click = !0, this }
658
659    function O(t) { return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this }
660
661    function Re(t) { return O(t), Ae(t), this }
662
663    function Ne(t) { if (t.composedPath) return t.composedPath(); for (var e = [], i = t.target; i;) e.push(i), i = i.parentNode; return e }
664
665    function De(t, e) { var i, n; return e ? (n = (i = Ze(e)).boundingClientRect, new p((t.clientX - n.left) / i.x - e.clientLeft, (t.clientY - n.top) / i.y - e.clientTop)) : new p(t.clientX, t.clientY) }
666    var je = b.linux && b.chrome ? window.devicePixelRatio : b.mac ? 3 * window.devicePixelRatio : 0 < window.devicePixelRatio ? 2 * window.devicePixelRatio : 1;
667
668    function He(t) { return b.edge ? t.wheelDeltaY / 2 : t.deltaY && 0 === t.deltaMode ? -t.deltaY / je : t.deltaY && 1 === t.deltaMode ? 20 * -t.deltaY : t.deltaY && 2 === t.deltaMode ? 60 * -t.deltaY : t.deltaX || t.deltaZ ? 0 : t.wheelDelta ? (t.wheelDeltaY || t.wheelDelta) / 2 : t.detail && Math.abs(t.detail) < 32765 ? 20 * -t.detail : t.detail ? t.detail / -32765 * 60 : 0 }
669
670    function We(t, e) { var i = e.relatedTarget; if (!i) return !0; try { for (; i && i !== t;) i = i.parentNode } catch (t) { return !1 } return i !== t }
671    var mt = { __proto__: null, on: S, off: k, stopPropagation: Ae, disableScrollPropagation: Be, disableClickPropagation: Ie, preventDefault: O, stop: Re, getPropagationPath: Ne, getMousePosition: De, getWheelDelta: He, isExternalTarget: We, addListener: S, removeListener: k },
672        Fe = it.extend({
673            run: function(t, e, i, n) { this.stop(), this._el = t, this._inProgress = !0, this._duration = i || .25, this._easeOutPower = 1 / Math.max(n || .5, .2), this._startPos = Pe(t), this._offset = e.subtract(this._startPos), this._startTime = +new Date, this.fire("start"), this._animate() },
674            stop: function() { this._inProgress && (this._step(!0), this._complete()) },
675            _animate: function() { this._animId = x(this._animate, this), this._step() },
676            _step: function(t) {
677                var e = +new Date - this._startTime,
678                    i = 1e3 * this._duration;
679                e < i ? this._runFrame(this._easeOut(e / i), t) : (this._runFrame(1), this._complete())
680            },
681            _runFrame: function(t, e) {
682                t = this._startPos.add(this._offset.multiplyBy(t));
683                e && t._round(), Z(this._el, t), this.fire("step")
684            },
685            _complete: function() { r(this._animId), this._inProgress = !1, this.fire("end") },
686            _easeOut: function(t) { return 1 - Math.pow(1 - t, this._easeOutPower) }
687        }),
688        A = it.extend({
689            options: { crs: lt, 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 },
690            initialize: function(t, e) { e = c(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = a(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), void 0 !== e.zoom && (this._zoom = this._limitZoom(e.zoom)), e.center && void 0 !== e.zoom && this.setView(w(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = ce && b.any3d && !b.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), S(this._proxy, de, this._catchTransitionEnd, this)), this._addLayers(this.options.layers) },
691            setView: function(t, e, i) { if ((e = void 0 === e ? this._zoom : this._limitZoom(e), t = this._limitCenter(w(t), e, this.options.maxBounds), i = i || {}, this._stop(), this._loaded && !i.reset && !0 !== i) && (void 0 !== i.animate && (i.zoom = l({ animate: i.animate }, i.zoom), i.pan = l({ animate: i.animate, duration: i.duration }, i.pan)), this._zoom !== e ? this._tryAnimatedZoom && this._tryAnimatedZoom(t, e, i.zoom) : this._tryAnimatedPan(t, i.pan))) return clearTimeout(this._sizeTimer), this; return this._resetView(t, e, i.pan && i.pan.noMoveStart), this },
692            setZoom: function(t, e) { return this._loaded ? this.setView(this.getCenter(), t, { zoom: e }) : (this._zoom = t, this) },
693            zoomIn: function(t, e) { return t = t || (b.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom + t, e) },
694            zoomOut: function(t, e) { return t = t || (b.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom - t, e) },
695            setZoomAround: function(t, e, i) {
696                var n = this.getZoomScale(e),
697                    o = this.getSize().divideBy(2),
698                    t = (t instanceof p ? t : this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1 - 1 / n),
699                    n = this.containerPointToLatLng(o.add(t));
700                return this.setView(n, e, { zoom: i })
701            },
702            _getBoundsCenterZoom: function(t, e) {
703                e = e || {}, t = t.getBounds ? t.getBounds() : g(t);
704                var i = m(e.paddingTopLeft || e.padding || [0, 0]),
705                    n = m(e.paddingBottomRight || e.padding || [0, 0]),
706                    o = this.getBoundsZoom(t, !1, i.add(n));
707                return (o = "number" == typeof e.maxZoom ? Math.min(e.maxZoom, o) : o) === 1 / 0 ? { center: t.getCenter(), zoom: o } : (e = n.subtract(i).divideBy(2), n = this.project(t.getSouthWest(), o), i = this.project(t.getNorthEast(), o), { center: this.unproject(n.add(i).divideBy(2).add(e), o), zoom: o })
708            },
709            fitBounds: function(t, e) { if ((t = g(t)).isValid()) return t = this._getBoundsCenterZoom(t, e), this.setView(t.center, t.zoom, e); throw new Error("Bounds are not valid.") },
710            fitWorld: function(t) {
711                return this.fitBounds([
712                    [-90, -180],
713                    [90, 180]
714                ], t)
715            },
716            panTo: function(t, e) { return this.setView(t, this._zoom, { pan: e }) },
717            panBy: function(t, e) { var i; return e = e || {}, (t = m(t).round()).x || t.y ? (!0 === e.animate || this.getSize().contains(t) ? (this._panAnim || (this._panAnim = new Fe, this._panAnim.on({ step: this._onPanTransitionStep, end: this._onPanTransitionEnd }, this)), e.noMoveStart || this.fire("movestart"), !1 !== e.animate ? (M(this._mapPane, "leaflet-pan-anim"), i = this._getMapPanePos().subtract(t).round(), this._panAnim.run(this._mapPane, i, e.duration || .25, e.easeLinearity)) : (this._rawPanBy(t), this.fire("move").fire("moveend"))) : this._resetView(this.unproject(this.project(this.getCenter()).add(t)), this.getZoom()), this) : this.fire("moveend") },
718            flyTo: function(n, o, t) {
719                if (!1 === (t = t || {}).animate || !b.any3d) return this.setView(n, o, t);
720                this._stop();
721                var s = this.project(this.getCenter()),
722                    r = this.project(n),
723                    e = this.getSize(),
724                    a = this._zoom,
725                    h = (n = w(n), o = void 0 === o ? a : o, Math.max(e.x, e.y)),
726                    i = h * this.getZoomScale(a, o),
727                    l = r.distanceTo(s) || 1,
728                    u = 1.42,
729                    c = u * u;
730
731                function d(t) { t = (i * i - h * h + (t ? -1 : 1) * c * c * l * l) / (2 * (t ? i : h) * c * l), t = Math.sqrt(t * t + 1) - t; return t < 1e-9 ? -18 : Math.log(t) }
732
733                function _(t) { return (Math.exp(t) - Math.exp(-t)) / 2 }
734
735                function p(t) { return (Math.exp(t) + Math.exp(-t)) / 2 }
736                var m = d(0);
737
738                function f(t) { return h * (p(m) * (_(t = m + u * t) / p(t)) - _(m)) / c }
739                var g = Date.now(),
740                    v = (d(1) - m) / u,
741                    y = t.duration ? 1e3 * t.duration : 1e3 * v * .8;
742                return this._moveStart(!0, t.noMoveStart),
743                    function t() {
744                        var e = (Date.now() - g) / y,
745                            i = (1 - Math.pow(1 - e, 1.5)) * v;
746                        e <= 1 ? (this._flyToFrame = x(t, this), this._move(this.unproject(s.add(r.subtract(s).multiplyBy(f(i) / l)), a), this.getScaleZoom(h / (e = i, h * (p(m) / p(m + u * e))), a), { flyTo: !0 })) : this._move(n, o)._moveEnd(!0)
747                    }.call(this), this
748            },
749            flyToBounds: function(t, e) { t = this._getBoundsCenterZoom(t, e); return this.flyTo(t.center, t.zoom, e) },
750            setMaxBounds: function(t) { return t = 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) },
751            setMinZoom: function(t) { var 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 },
752            setMaxZoom: function(t) { var 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 },
753            panInsideBounds: function(t, e) {
754                this._enforcingBounds = !0;
755                var i = this.getCenter(),
756                    t = this._limitCenter(i, this._zoom, g(t));
757                return i.equals(t) || this.panTo(t, e), this._enforcingBounds = !1, this
758            },
759            panInside: function(t, e) {
760                var i = m((e = e || {}).paddingTopLeft || e.padding || [0, 0]),
761                    n = m(e.paddingBottomRight || e.padding || [0, 0]),
762                    o = this.project(this.getCenter()),
763                    t = this.project(t),
764                    s = this.getPixelBounds(),
765                    i = _([s.min.add(i), s.max.subtract(n)]),
766                    s = i.getSize();
767                return i.contains(t) || (this._enforcingBounds = !0, n = t.subtract(i.getCenter()), i = i.extend(t).getSize().subtract(s), o.x += n.x < 0 ? -i.x : i.x, o.y += n.y < 0 ? -i.y : i.y, this.panTo(this.unproject(o), e), this._enforcingBounds = !1), this
768            },
769            invalidateSize: function(t) {
770                if (!this._loaded) return this;
771                t = l({ animate: !1, pan: !0 }, !0 === t ? { animate: !0 } : t);
772                var e = this.getSize(),
773                    i = (this._sizeChanged = !0, this._lastCenter = null, this.getSize()),
774                    n = e.divideBy(2).round(),
775                    o = i.divideBy(2).round(),
776                    n = n.subtract(o);
777                return n.x || n.y ? (t.animate && t.pan ? this.panBy(n) : (t.pan && this._rawPanBy(n), this.fire("move"), t.debounceMoveend ? (clearTimeout(this._sizeTimer), this._sizeTimer = setTimeout(a(this.fire, this, "moveend"), 200)) : this.fire("moveend")), this.fire("resize", { oldSize: e, newSize: i })) : this
778            },
779            stop: function() { return this.setZoom(this._limitZoom(this._zoom)), this.options.zoomSnap || this.fire("viewreset"), this._stop() },
780            locate: function(t) { var e, i; return t = this._locateOptions = l({ timeout: 1e4, watch: !1 }, t), "geolocation" in navigator ? (e = a(this._handleGeolocationResponse, this), i = a(this._handleGeolocationError, this), t.watch ? this._locationWatchId = navigator.geolocation.watchPosition(e, i, t) : navigator.geolocation.getCurrentPosition(e, i, t)) : this._handleGeolocationError({ code: 0, message: "Geolocation not supported." }), this },
781            stopLocate: function() { return navigator.geolocation && navigator.geolocation.clearWatch && navigator.geolocation.clearWatch(this._locationWatchId), this._locateOptions && (this._locateOptions.setView = !1), this },
782            _handleGeolocationError: function(t) {
783                var e;
784                this._container._leaflet_id && (e = t.code, t = t.message || (1 === e ? "permission denied" : 2 === e ? "position unavailable" : "timeout"), this._locateOptions.setView && !this._loaded && this.fitWorld(), this.fire("locationerror", { code: e, message: "Geolocation error: " + t + "." }))
785            },
786            _handleGeolocationResponse: function(t) {
787                if (this._container._leaflet_id) {
788                    var e, i, n = new v(t.coords.latitude, t.coords.longitude),
789                        o = n.toBounds(2 * t.coords.accuracy),
790                        s = this._locateOptions,
791                        r = (s.setView && (e = this.getBoundsZoom(o), this.setView(n, s.maxZoom ? Math.min(e, s.maxZoom) : e)), { latlng: n, bounds: o, timestamp: t.timestamp });
792                    for (i in t.coords) "number" == typeof t.coords[i] && (r[i] = t.coords[i]);
793                    this.fire("locationfound", r)
794                }
795            },
796            addHandler: function(t, e) { return e && (e = this[t] = new e(this), this._handlers.push(e), this.options[t] && e.enable()), this },
797            remove: function() { 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"); try { delete this._container._leaflet_id, delete this._containerId } catch (t) { this._container._leaflet_id = void 0, this._containerId = void 0 } for (var t in void 0 !== this._locationWatchId && this.stopLocate(), this._stop(), T(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (r(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload"), this._layers) this._layers[t].remove(); for (t in this._panes) T(this._panes[t]); return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer, this },
798            createPane: function(t, e) { e = P("div", "leaflet-pane" + (t ? " leaflet-" + t.replace("Pane", "") + "-pane" : ""), e || this._mapPane); return t && (this._panes[t] = e), e },
799            getCenter: function() { return this._checkIfLoaded(), this._lastCenter && !this._moved() ? this._lastCenter.clone() : this.layerPointToLatLng(this._getCenterLayerPoint()) },
800            getZoom: function() { return this._zoom },
801            getBounds: function() { var t = this.getPixelBounds(); return new s(this.unproject(t.getBottomLeft()), this.unproject(t.getTopRight())) },
802            getMinZoom: function() { return void 0 === this.options.minZoom ? this._layersMinZoom || 0 : this.options.minZoom },
803            getMaxZoom: function() { return void 0 === this.options.maxZoom ? void 0 === this._layersMaxZoom ? 1 / 0 : this._layersMaxZoom : this.options.maxZoom },
804            getBoundsZoom: function(t, e, i) {
805                t = g(t), i = m(i || [0, 0]);
806                var n = this.getZoom() || 0,
807                    o = this.getMinZoom(),
808                    s = this.getMaxZoom(),
809                    r = t.getNorthWest(),
810                    t = t.getSouthEast(),
811                    i = this.getSize().subtract(i),
812                    t = _(this.project(t, n), this.project(r, n)).getSize(),
813                    r = b.any3d ? this.options.zoomSnap : 1,
814                    a = i.x / t.x,
815                    i = i.y / t.y,
816                    t = e ? Math.max(a, i) : Math.min(a, i),
817                    n = this.getScaleZoom(t, n);
818                return r && (n = Math.round(n / (r / 100)) * (r / 100), n = e ? Math.ceil(n / r) * r : Math.floor(n / r) * r), Math.max(o, Math.min(s, n))
819            },
820            getSize: function() { return this._size && !this._sizeChanged || (this._size = new p(this._container.clientWidth || 0, this._container.clientHeight || 0), this._sizeChanged = !1), this._size.clone() },
821            getPixelBounds: function(t, e) { t = this._getTopLeftPoint(t, e); return new f(t, t.add(this.getSize())) },
822            getPixelOrigin: function() { return this._checkIfLoaded(), this._pixelOrigin },
823            getPixelWorldBounds: function(t) { return this.options.crs.getProjectedBounds(void 0 === t ? this.getZoom() : t) },
824            getPane: function(t) { return "string" == typeof t ? this._panes[t] : t },
825            getPanes: function() { return this._panes },
826            getContainer: function() { return this._container },
827            getZoomScale: function(t, e) { var i = this.options.crs; return e = void 0 === e ? this._zoom : e, i.scale(t) / i.scale(e) },
828            getScaleZoom: function(t, e) {
829                var i = this.options.crs,
830                    t = (e = void 0 === e ? this._zoom : e, i.zoom(t * i.scale(e)));
831                return isNaN(t) ? 1 / 0 : t
832            },
833            project: function(t, e) { return e = void 0 === e ? this._zoom : e, this.options.crs.latLngToPoint(w(t), e) },
834            unproject: function(t, e) { return e = void 0 === e ? this._zoom : e, this.options.crs.pointToLatLng(m(t), e) },
835            layerPointToLatLng: function(t) { t = m(t).add(this.getPixelOrigin()); return this.unproject(t) },
836            latLngToLayerPoint: function(t) { return this.project(w(t))._round()._subtract(this.getPixelOrigin()) },
837            wrapLatLng: function(t) { return this.options.crs.wrapLatLng(w(t)) },
838            wrapLatLngBounds: function(t) { return this.options.crs.wrapLatLngBounds(g(t)) },
839            distance: function(t, e) { return this.options.crs.distance(w(t), w(e)) },
840            containerPointToLayerPoint: function(t) { return m(t).subtract(this._getMapPanePos()) },
841            layerPointToContainerPoint: function(t) { return m(t).add(this._getMapPanePos()) },
842            containerPointToLatLng: function(t) { t = this.containerPointToLayerPoint(m(t)); return this.layerPointToLatLng(t) },
843            latLngToContainerPoint: function(t) { return this.layerPointToContainerPoint(this.latLngToLayerPoint(w(t))) },
844            mouseEventToContainerPoint: function(t) { return De(t, this._container) },
845            mouseEventToLayerPoint: function(t) { return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t)) },
846            mouseEventToLatLng: function(t) { return this.layerPointToLatLng(this.mouseEventToLayerPoint(t)) },
847            _initContainer: function(t) {
848                t = this._container = _e(t);
849                if (!t) throw new Error("Map container not found.");
850                if (t._leaflet_id) throw new Error("Map container is already initialized.");
851                S(t, "scroll", this._onScroll, this), this._containerId = h(t)
852            },
853            _initLayout: function() {
854                var t = this._container,
855                    e = (this._fadeAnimated = this.options.fadeAnimation && b.any3d, M(t, "leaflet-container" + (b.touch ? " leaflet-touch" : "") + (b.retina ? " leaflet-retina" : "") + (b.ielt9 ? " leaflet-oldie" : "") + (b.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : "")), pe(t, "position"));
856                "absolute" !== e && "relative" !== e && "fixed" !== e && "sticky" !== e && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos()
857            },
858            _initPanes: function() {
859                var t = this._panes = {};
860                this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), Z(this._mapPane, new p(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (M(t.markerPane, "leaflet-zoom-hide"), M(t.shadowPane, "leaflet-zoom-hide"))
861            },
862            _resetView: function(t, e, i) {
863                Z(this._mapPane, new p(0, 0));
864                var n = !this._loaded,
865                    o = (this._loaded = !0, e = this._limitZoom(e), this.fire("viewprereset"), this._zoom !== e);
866                this._moveStart(o, i)._move(t, e)._moveEnd(o), this.fire("viewreset"), n && this.fire("load")
867            },
868            _moveStart: function(t, e) { return t && this.fire("zoomstart"), e || this.fire("movestart"), this },
869            _move: function(t, e, i, n) { void 0 === e && (e = this._zoom); var o = this._zoom !== e; return this._zoom = e, this._lastCenter = t, this._pixelOrigin = this._getNewPixelOrigin(t), n ? i && i.pinch && this.fire("zoom", i) : ((o || i && i.pinch) && this.fire("zoom", i), this.fire("move", i)), this },
870            _moveEnd: function(t) { return t && this.fire("zoomend"), this.fire("moveend") },
871            _stop: function() { return r(this._flyToFrame), this._panAnim && this._panAnim.stop(), this },
872            _rawPanBy: function(t) { Z(this._mapPane, this._getMapPanePos().subtract(t)) },
873            _getZoomSpan: function() { return this.getMaxZoom() - this.getMinZoom() },
874            _panInsideMaxBounds: function() { this._enforcingBounds || this.panInsideBounds(this.options.maxBounds) },
875            _checkIfLoaded: function() { if (!this._loaded) throw new Error("Set map center and zoom first.") },
876            _initEvents: function(t) {
877                this._targets = {};
878                var e = t ? k : S;
879                e((this._targets[h(this._container)] = this)._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && e(window, "resize", this._onResize, this), b.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd)
880            },
881            _onResize: function() { r(this._resizeRequest), this._resizeRequest = x(function() { this.invalidateSize({ debounceMoveend: !0 }) }, this) },
882            _onScroll: function() { this._container.scrollTop = 0, this._container.scrollLeft = 0 },
883            _onMoveEnd: function() {
884                var t = this._getMapPanePos();
885                Math.max(Math.abs(t.x), Math.abs(t.y)) >= this.options.transform3DLimit && this._resetView(this.getCenter(), this.getZoom())
886            },
887            _findEventTargets: function(t, e) {
888                for (var i, n = [], o = "mouseout" === e || "mouseover" === e, s = t.target || t.srcElement, r = !1; s;) {
889                    if ((i = this._targets[h(s)]) && ("click" === e || "preclick" === e) && this._draggableMoved(i)) { r = !0; break }
890                    if (i && i.listens(e, !0)) { if (o && !We(s, t)) break; if (n.push(i), o) break }
891                    if (s === this._container) break;
892                    s = s.parentNode
893                }
894                return n = n.length || r || o || !this.listens(e, !0) ? n : [this]
895            },
896            _isClickDisabled: function(t) {
897                for (; t && t !== this._container;) {
898                    if (t._leaflet_disable_click) return !0;
899                    t = t.parentNode
900                }
901            },
902            _handleDOMEvent: function(t) { var e, i = t.target || t.srcElement;!this._loaded || i._leaflet_disable_events || "click" === t.type && this._isClickDisabled(i) || ("mousedown" === (e = t.type) && Me(i), this._fireDOMEvent(t, e)) },
903            _mouseEvents: ["click", "dblclick", "mouseover", "mouseout", "contextmenu"],
904            _fireDOMEvent: function(t, e, i) {
905                "click" === t.type && ((a = l({}, t)).type = "preclick", this._fireDOMEvent(a, a.type, i));
906                var n = this._findEventTargets(t, e);
907                if (i) {
908                    for (var o = [], s = 0; s < i.length; s++) i[s].listens(e, !0) && o.push(i[s]);
909                    n = o.concat(n)
910                }
911                if (n.length) {
912                    "contextmenu" === e && O(t);
913                    var r, a = n[0],
914                        h = { originalEvent: t };
915                    for ("keypress" !== t.type && "keydown" !== t.type && "keyup" !== t.type && (r = a.getLatLng && (!a._radius || a._radius <= 10), h.containerPoint = r ? this.latLngToContainerPoint(a.getLatLng()) : this.mouseEventToContainerPoint(t), h.layerPoint = this.containerPointToLayerPoint(h.containerPoint), h.latlng = r ? a.getLatLng() : this.layerPointToLatLng(h.layerPoint)), s = 0; s < n.length; s++)
916                        if (n[s].fire(e, h, !0), h.originalEvent._stopped || !1 === n[s].options.bubblingMouseEvents && -1 !== G(this._mouseEvents, e)) return
917                }
918            },
919            _draggableMoved: function(t) { return (t = t.dragging && t.dragging.enabled() ? t : this).dragging && t.dragging.moved() || this.boxZoom && this.boxZoom.moved() },
920            _clearHandlers: function() { for (var t = 0, e = this._handlers.length; t < e; t++) this._handlers[t].disable() },
921            whenReady: function(t, e) { return this._loaded ? t.call(e || this, { target: this }) : this.on("load", t, e), this },
922            _getMapPanePos: function() { return Pe(this._mapPane) || new p(0, 0) },
923            _moved: function() { var t = this._getMapPanePos(); return t && !t.equals([0, 0]) },
924            _getTopLeftPoint: function(t, e) { return (t && void 0 !== e ? this._getNewPixelOrigin(t, e) : this.getPixelOrigin()).subtract(this._getMapPanePos()) },
925            _getNewPixelOrigin: function(t, e) { var i = this.getSize()._divideBy(2); return this.project(t, e)._subtract(i)._add(this._getMapPanePos())._round() },
926            _latLngToNewLayerPoint: function(t, e, i) { i = this._getNewPixelOrigin(i, e); return this.project(t, e)._subtract(i) },
927            _latLngBoundsToNewLayerBounds: function(t, e, i) { i = this._getNewPixelOrigin(i, e); return _([this.project(t.getSouthWest(), e)._subtract(i), this.project(t.getNorthWest(), e)._subtract(i), this.project(t.getSouthEast(), e)._subtract(i), this.project(t.getNorthEast(), e)._subtract(i)]) },
928            _getCenterLayerPoint: function() { return this.containerPointToLayerPoint(this.getSize()._divideBy(2)) },
929            _getCenterOffset: function(t) { return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint()) },
930            _limitCenter: function(t, e, i) { var n, o; return !i || (n = this.project(t, e), o = this.getSize().divideBy(2), o = new f(n.subtract(o), n.add(o)), o = this._getBoundsOffset(o, i, e), Math.abs(o.x) <= 1 && Math.abs(o.y) <= 1) ? t : this.unproject(n.add(o), e) },
931            _limitOffset: function(t, e) { var i; return e ? (i = new f((i = this.getPixelBounds()).min.add(t), i.max.add(t)), t.add(this._getBoundsOffset(i, e))) : t },
932            _getBoundsOffset: function(t, e, i) { e = _(this.project(e.getNorthEast(), i), this.project(e.getSouthWest(), i)), i = e.min.subtract(t.min), e = e.max.subtract(t.max); return new p(this._rebound(i.x, -e.x), this._rebound(i.y, -e.y)) },
933            _rebound: function(t, e) { return 0 < t + e ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e)) },
934            _limitZoom: function(t) {
935                var e = this.getMinZoom(),
936                    i = this.getMaxZoom(),
937                    n = b.any3d ? this.options.zoomSnap : 1;
938                return n && (t = Math.round(t / n) * n), Math.max(e, Math.min(i, t))
939            },
940            _onPanTransitionStep: function() { this.fire("move") },
941            _onPanTransitionEnd: function() { z(this._mapPane, "leaflet-pan-anim"), this.fire("moveend") },
942            _tryAnimatedPan: function(t, e) { t = this._getCenterOffset(t)._trunc(); return !(!0 !== (e && e.animate) && !this.getSize().contains(t)) && (this.panBy(t, e), !0) },
943            _createAnimProxy: function() {
944                var t = this._proxy = P("div", "leaflet-proxy leaflet-zoom-animated");
945                this._panes.mapPane.appendChild(t), this.on("zoomanim", function(t) {
946                    var e = ue,
947                        i = this._proxy.style[e];
948                    be(this._proxy, this.project(t.center, t.zoom), this.getZoomScale(t.zoom, 1)), i === this._proxy.style[e] && this._animatingZoom && this._onZoomTransitionEnd()
949                }, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this)
950            },
951            _destroyAnimProxy: function() { T(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy },
952            _animMoveEnd: function() {
953                var t = this.getCenter(),
954                    e = this.getZoom();
955                be(this._proxy, this.project(t, e), this.getZoomScale(e, 1))
956            },
957            _catchTransitionEnd: function(t) { this._animatingZoom && 0 <= t.propertyName.indexOf("transform") && this._onZoomTransitionEnd() },
958            _nothingToAnimate: function() { return !this._container.getElementsByClassName("leaflet-zoom-animated").length },
959            _tryAnimatedZoom: function(t, e, i) {
960                if (!this._animatingZoom) {
961                    if (i = i || {}, !this._zoomAnimated || !1 === i.animate || this._nothingToAnimate() || Math.abs(e - this._zoom) > this.options.zoomAnimationThreshold) return !1;
962                    var n = this.getZoomScale(e),
963                        n = this._getCenterOffset(t)._divideBy(1 - 1 / n);
964                    if (!0 !== i.animate && !this.getSize().contains(n)) return !1;
965                    x(function() { this._moveStart(!0, i.noMoveStart || !1)._animateZoom(t, e, !0) }, this)
966                }
967                return !0
968            },
969            _animateZoom: function(t, e, i, n) { this._mapPane && (i && (this._animatingZoom = !0, this._animateToCenter = t, this._animateToZoom = e, M(this._mapPane, "leaflet-zoom-anim")), this.fire("zoomanim", { center: t, zoom: e, noUpdate: n }), this._tempFireZoomEvent || (this._tempFireZoomEvent = this._zoom !== this._animateToZoom), this._move(this._animateToCenter, this._animateToZoom, void 0, !0), setTimeout(a(this._onZoomTransitionEnd, this), 250)) },
970            _onZoomTransitionEnd: function() { this._animatingZoom && (this._mapPane && z(this._mapPane, "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)) }
971        });
972
973    function Ue(t) { return new B(t) }
974    var B = et.extend({
975            options: { position: "topright" },
976            initialize: function(t) { c(this, t) },
977            getPosition: function() { return this.options.position },
978            setPosition: function(t) { var e = this._map; return e && e.removeControl(this), this.options.position = t, e && e.addControl(this), this },
979            getContainer: function() { return this._container },
980            addTo: function(t) {
981                this.remove(), this._map = t;
982                var e = this._container = this.onAdd(t),
983                    i = this.getPosition(),
984                    t = t._controlCorners[i];
985                return M(e, "leaflet-control"), -1 !== i.indexOf("bottom") ? t.insertBefore(e, t.firstChild) : t.appendChild(e), this._map.on("unload", this.remove, this), this
986            },
987            remove: function() { return this._map && (T(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null), this },
988            _refocusOnMap: function(t) { this._map && t && 0 < t.screenX && 0 < t.screenY && this._map.getContainer().focus() }
989        }),
990        Ve = (A.include({
991            addControl: function(t) { return t.addTo(this), this },
992            removeControl: function(t) { return t.remove(), this },
993            _initControlPos: function() {
994                var i = this._controlCorners = {},
995                    n = "leaflet-",
996                    o = this._controlContainer = P("div", n + "control-container", this._container);
997
998                function t(t, e) { i[t + e] = P("div", n + t + " " + n + e, o) }
999                t("top", "left"), t("top", "right"), t("bottom", "left"), t("bottom", "right")
1000            },
1001            _clearControlPos: function() {
1002                for (var t in this._controlCorners) T(this._controlCorners[t]);
1003                T(this._controlContainer), delete this._controlCorners, delete this._controlContainer
1004            }
1005        }), B.extend({
1006            options: { collapsed: !0, position: "topright", autoZIndex: !0, hideSingleBase: !1, sortLayers: !1, sortFunction: function(t, e, i, n) { return i < n ? -1 : n < i ? 1 : 0 } },
1007            initialize: function(t, e, i) { for (var n in c(this, i), this._layerControlInputs = [], this._layers = [], this._lastZIndex = 0, this._handlingClick = !1, this._preventClick = !1, t) this._addLayer(t[n], n); for (n in e) this._addLayer(e[n], n, !0) },
1008            onAdd: function(t) { this._initLayout(), this._update(), (this._map = t).on("zoomend", this._checkDisabledLayers, this); for (var e = 0; e < this._layers.length; e++) this._layers[e].layer.on("add remove", this._onLayerChange, this); return this._container },
1009            addTo: function(t) { return B.prototype.addTo.call(this, t), this._expandIfNotCollapsed() },
1010            onRemove: function() { this._map.off("zoomend", this._checkDisabledLayers, this); for (var t = 0; t < this._layers.length; t++) this._layers[t].layer.off("add remove", this._onLayerChange, this) },
1011            addBaseLayer: function(t, e) { return this._addLayer(t, e), this._map ? this._update() : this },
1012            addOverlay: function(t, e) { return this._addLayer(t, e, !0), this._map ? this._update() : this },
1013            removeLayer: function(t) {
1014                t.off("add remove", this._onLayerChange, this);
1015                t = this._getLayer(h(t));
1016                return t && this._layers.splice(this._layers.indexOf(t), 1), this._map ? this._update() : this
1017            },
1018            expand: function() { M(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null; var t = this._map.getSize().y - (this._container.offsetTop + 50); return t < this._section.clientHeight ? (M(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") : z(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this },
1019            collapse: function() { return z(this._container, "leaflet-control-layers-expanded"), this },
1020            _initLayout: function() {
1021                var t = "leaflet-control-layers",
1022                    e = this._container = P("div", t),
1023                    i = this.options.collapsed,
1024                    n = (e.setAttribute("aria-haspopup", !0), Ie(e), Be(e), this._section = P("section", t + "-list")),
1025                    o = (i && (this._map.on("click", this.collapse, this), S(e, { mouseenter: this._expandSafely, mouseleave: this.collapse }, this)), this._layersLink = P("a", t + "-toggle", e));
1026                o.href = "#", o.title = "Layers", o.setAttribute("role", "button"), S(o, { keydown: function(t) { 13 === t.keyCode && this._expandSafely() }, click: function(t) { O(t), this._expandSafely() } }, this), i || this.expand(), this._baseLayersList = P("div", t + "-base", n), this._separator = P("div", t + "-separator", n), this._overlaysList = P("div", t + "-overlays", n), e.appendChild(n)
1027            },
1028            _getLayer: function(t) {
1029                for (var e = 0; e < this._layers.length; e++)
1030                    if (this._layers[e] && h(this._layers[e].layer) === t) return this._layers[e]
1031            },
1032            _addLayer: function(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(a(function(t, e) { return this.options.sortFunction(t.layer, e.layer, t.name, e.name) }, this)), this.options.autoZIndex && t.setZIndex && (this._lastZIndex++, t.setZIndex(this._lastZIndex)), this._expandIfNotCollapsed() },
1033            _update: function() {
1034                if (this._container) {
1035                    me(this._baseLayersList), me(this._overlaysList), this._layerControlInputs = [];
1036                    for (var t, e, i, n = 0, o = 0; o < this._layers.length; o++) i = this._layers[o], this._addItem(i), e = e || i.overlay, t = t || !i.overlay, n += i.overlay ? 0 : 1;
1037                    this.options.hideSingleBase && (this._baseLayersList.style.display = (t = t && 1 < n) ? "" : "none"), this._separator.style.display = e && t ? "" : "none"
1038                }
1039                return this
1040            },
1041            _onLayerChange: function(t) {
1042                this._handlingClick || this._update();
1043                var e = this._getLayer(h(t.target)),
1044                    t = e.overlay ? "add" === t.type ? "overlayadd" : "overlayremove" : "add" === t.type ? "baselayerchange" : null;
1045                t && this._map.fire(t, e)
1046            },
1047            _createRadioElement: function(t, e) { t = '<input type="radio" class="leaflet-control-layers-selector" name="' + t + '"' + (e ? ' checked="checked"' : "") + "/>", e = document.createElement("div"); return e.innerHTML = t, e.firstChild },
1048            _addItem: function(t) {
1049                var e, i = document.createElement("label"),
1050                    n = this._map.hasLayer(t.layer),
1051                    n = (t.overlay ? ((e = document.createElement("input")).type = "checkbox", e.className = "leaflet-control-layers-selector", e.defaultChecked = n) : e = this._createRadioElement("leaflet-base-layers_" + h(this), n), this._layerControlInputs.push(e), e.layerId = h(t.layer), S(e, "click", this._onInputClick, this), document.createElement("span")),
1052                    o = (n.innerHTML = " " + t.name, document.createElement("span"));
1053                return i.appendChild(o), o.appendChild(e), o.appendChild(n), (t.overlay ? this._overlaysList : this._baseLayersList).appendChild(i), this._checkDisabledLayers(), i
1054            },
1055            _onInputClick: function() {
1056                if (!this._preventClick) {
1057                    var t, e, i = this._layerControlInputs,
1058                        n = [],
1059                        o = [];
1060                    this._handlingClick = !0;
1061                    for (var s = i.length - 1; 0 <= s; s--) t = i[s], e = this._getLayer(t.layerId).layer, t.checked ? n.push(e) : t.checked || o.push(e);
1062                    for (s = 0; s < o.length; s++) this._map.hasLayer(o[s]) && this._map.removeLayer(o[s]);
1063                    for (s = 0; s < n.length; s++) this._map.hasLayer(n[s]) || this._map.addLayer(n[s]);
1064                    this._handlingClick = !1, this._refocusOnMap()
1065                }
1066            },
1067            _checkDisabledLayers: function() { for (var t, e, i = this._layerControlInputs, n = this._map.getZoom(), o = i.length - 1; 0 <= o; o--) t = i[o], e = this._getLayer(t.layerId).layer, t.disabled = void 0 !== e.options.minZoom && n < e.options.minZoom || void 0 !== e.options.maxZoom && n > e.options.maxZoom },
1068            _expandIfNotCollapsed: function() { return this._map && !this.options.collapsed && this.expand(), this },
1069            _expandSafely: function() {
1070                var t = this._section,
1071                    e = (this._preventClick = !0, S(t, "click", O), this.expand(), this);
1072                setTimeout(function() { k(t, "click", O), e._preventClick = !1 })
1073            }
1074        })),
1075        qe = B.extend({
1076            options: { position: "topleft", zoomInText: '<span aria-hidden="true">+</span>', zoomInTitle: "Zoom in", zoomOutText: '<span aria-hidden="true">&#x2212;</span>', zoomOutTitle: "Zoom out" },
1077            onAdd: function(t) {
1078                var e = "leaflet-control-zoom",
1079                    i = P("div", e + " leaflet-bar"),
1080                    n = this.options;
1081                return this._zoomInButton = this._createButton(n.zoomInText, n.zoomInTitle, e + "-in", i, this._zoomIn), this._zoomOutButton = this._createButton(n.zoomOutText, n.zoomOutTitle, e + "-out", i, this._zoomOut), this._updateDisabled(), t.on("zoomend zoomlevelschange", this._updateDisabled, this), i
1082            },
1083            onRemove: function(t) { t.off("zoomend zoomlevelschange", this._updateDisabled, this) },
1084            disable: function() { return this._disabled = !0, this._updateDisabled(), this },
1085            enable: function() { return this._disabled = !1, this._updateDisabled(), this },
1086            _zoomIn: function(t) {!this._disabled && this._map._zoom < this._map.getMaxZoom() && this._map.zoomIn(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1)) },
1087            _zoomOut: function(t) {!this._disabled && this._map._zoom > this._map.getMinZoom() && this._map.zoomOut(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1)) },
1088            _createButton: function(t, e, i, n, o) { i = P("a", i, n); return i.innerHTML = t, i.href = "#", i.title = e, i.setAttribute("role", "button"), i.setAttribute("aria-label", e), Ie(i), S(i, "click", Re), S(i, "click", o, this), S(i, "click", this._refocusOnMap, this), i },
1089            _updateDisabled: function() {
1090                var t = this._map,
1091                    e = "leaflet-disabled";
1092                z(this._zoomInButton, e), z(this._zoomOutButton, e), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), !this._disabled && t._zoom !== t.getMinZoom() || (M(this._zoomOutButton, e), this._zoomOutButton.setAttribute("aria-disabled", "true")), !this._disabled && t._zoom !== t.getMaxZoom() || (M(this._zoomInButton, e), this._zoomInButton.setAttribute("aria-disabled", "true"))
1093            }
1094        }),
1095        Ge = (A.mergeOptions({ zoomControl: !0 }), A.addInitHook(function() { this.options.zoomControl && (this.zoomControl = new qe, this.addControl(this.zoomControl)) }), B.extend({
1096            options: { position: "bottomleft", maxWidth: 100, metric: !0, imperial: !0 },
1097            onAdd: function(t) {
1098                var e = "leaflet-control-scale",
1099                    i = P("div", e),
1100                    n = this.options;
1101                return this._addScales(n, e + "-line", i), t.on(n.updateWhenIdle ? "moveend" : "move", this._update, this), t.whenReady(this._update, this), i
1102            },
1103            onRemove: function(t) { t.off(this.options.updateWhenIdle ? "moveend" : "move", this._update, this) },
1104            _addScales: function(t, e, i) { t.metric && (this._mScale = P("div", e, i)), t.imperial && (this._iScale = P("div", e, i)) },
1105            _update: function() {
1106                var t = this._map,
1107                    e = t.getSize().y / 2,
1108                    t = t.distance(t.containerPointToLatLng([0, e]), t.containerPointToLatLng([this.options.maxWidth, e]));
1109                this._updateScales(t)
1110            },
1111            _updateScales: function(t) { this.options.metric && t && this._updateMetric(t), this.options.imperial && t && this._updateImperial(t) },
1112            _updateMetric: function(t) {
1113                var e = this._getRoundNum(t);
1114                this._updateScale(this._mScale, e < 1e3 ? e + " m" : e / 1e3 + " km", e / t)
1115            },
1116            _updateImperial: function(t) {
1117                var e, i, t = 3.2808399 * t;
1118                5280 < t ? (i = this._getRoundNum(e = t / 5280), this._updateScale(this._iScale, i + " mi", i / e)) : (i = this._getRoundNum(t), this._updateScale(this._iScale, i + " ft", i / t))
1119            },
1120            _updateScale: function(t, e, i) { t.style.width = Math.round(this.options.maxWidth * i) + "px", t.innerHTML = e },
1121            _getRoundNum: function(t) {
1122                var e = Math.pow(10, (Math.floor(t) + "").length - 1),
1123                    t = t / e;
1124                return e * (t = 10 <= t ? 10 : 5 <= t ? 5 : 3 <= t ? 3 : 2 <= t ? 2 : 1)
1125            }
1126        })),
1127        Ke = B.extend({
1128            options: { position: "bottomright", prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (b.inlineSvg ? '<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> ' : "") + "Leaflet</a>" },
1129            initialize: function(t) { c(this, t), this._attributions = {} },
1130            onAdd: function(t) { for (var e in (t.attributionControl = this)._container = P("div", "leaflet-control-attribution"), Ie(this._container), t._layers) t._layers[e].getAttribution && this.addAttribution(t._layers[e].getAttribution()); return this._update(), t.on("layeradd", this._addAttribution, this), this._container },
1131            onRemove: function(t) { t.off("layeradd", this._addAttribution, this) },
1132            _addAttribution: function(t) { t.layer.getAttribution && (this.addAttribution(t.layer.getAttribution()), t.layer.once("remove", function() { this.removeAttribution(t.layer.getAttribution()) }, this)) },
1133            setPrefix: function(t) { return this.options.prefix = t, this._update(), this },
1134            addAttribution: function(t) { return t && (this._attributions[t] || (this._attributions[t] = 0), this._attributions[t]++, this._update()), this },
1135            removeAttribution: function(t) { return t && this._attributions[t] && (this._attributions[t]--, this._update()), this },
1136            _update: function() {
1137                if (this._map) {
1138                    var t, e = [];
1139                    for (t in this._attributions) this._attributions[t] && e.push(t);
1140                    var i = [];
1141                    this.options.prefix && i.push(this.options.prefix), e.length && i.push(e.join(", ")), this._container.innerHTML = i.join(' <span aria-hidden="true">|</span> ')
1142                }
1143            }
1144        }),
1145        n = (A.mergeOptions({ attributionControl: !0 }), A.addInitHook(function() { this.options.attributionControl && (new Ke).addTo(this) }), B.Layers = Ve, B.Zoom = qe, B.Scale = Ge, B.Attribution = Ke, Ue.layers = function(t, e, i) { return new Ve(t, e, i) }, Ue.zoom = function(t) { return new qe(t) }, Ue.scale = function(t) { return new Ge(t) }, Ue.attribution = function(t) { return new Ke(t) }, et.extend({ initialize: function(t) { this._map = t }, enable: function() { return this._enabled || (this._enabled = !0, this.addHooks()), this }, disable: function() { return this._enabled && (this._enabled = !1, this.removeHooks()), this }, enabled: function() { return !!this._enabled } })),
1146        ft = (n.addTo = function(t, e) { return t.addHandler(e, this), this }, { Events: e }),
1147        Ye = b.touch ? "touchstart mousedown" : "mousedown",
1148        Xe = it.extend({
1149            options: { clickTolerance: 3 },
1150            initialize: function(t, e, i, n) { c(this, n), this._element = t, this._dragStartTarget = e || t, this._preventOutline = i },
1151            enable: function() { this._enabled || (S(this._dragStartTarget, Ye, this._onDown, this), this._enabled = !0) },
1152            disable: function() { this._enabled && (Xe._dragging === this && this.finishDrag(!0), k(this._dragStartTarget, Ye, this._onDown, this), this._enabled = !1, this._moved = !1) },
1153            _onDown: function(t) {
1154                var e, i;
1155                this._enabled && (this._moved = !1, ve(this._element, "leaflet-zoom-anim") || (t.touches && 1 !== t.touches.length ? Xe._dragging === this && this.finishDrag() : Xe._dragging || t.shiftKey || 1 !== t.which && 1 !== t.button && !t.touches || ((Xe._dragging = this)._preventOutline && Me(this._element), Le(), re(), this._moving || (this.fire("down"), i = t.touches ? t.touches[0] : t, e = Ce(this._element), this._startPoint = new p(i.clientX, i.clientY), this._startPos = Pe(this._element), this._parentScale = Ze(e), i = "mousedown" === t.type, S(document, i ? "mousemove" : "touchmove", this._onMove, this), S(document, i ? "mouseup" : "touchend touchcancel", this._onUp, this)))))
1156            },
1157            _onMove: function(t) {
1158                var e;
1159                this._enabled && (t.touches && 1 < t.touches.length ? this._moved = !0 : !(e = new p((e = t.touches && 1 === t.touches.length ? t.touches[0] : t).clientX, e.clientY)._subtract(this._startPoint)).x && !e.y || Math.abs(e.x) + Math.abs(e.y) < this.options.clickTolerance || (e.x /= this._parentScale.x, e.y /= this._parentScale.y, O(t), this._moved || (this.fire("dragstart"), this._moved = !0, M(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), M(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(e), this._moving = !0, this._lastEvent = t, this._updatePosition()))
1160            },
1161            _updatePosition: function() {
1162                var t = { originalEvent: this._lastEvent };
1163                this.fire("predrag", t), Z(this._element, this._newPos), this.fire("drag", t)
1164            },
1165            _onUp: function() { this._enabled && this.finishDrag() },
1166            finishDrag: function(t) {
1167                z(document.body, "leaflet-dragging"), this._lastTarget && (z(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), k(document, "mousemove touchmove", this._onMove, this), k(document, "mouseup touchend touchcancel", this._onUp, this), Te(), ae();
1168                var e = this._moved && this._moving;
1169                this._moving = !1, Xe._dragging = !1, e && this.fire("dragend", { noInertia: t, distance: this._newPos.distanceTo(this._startPos) })
1170            }
1171        });
1172
1173    function Je(t, e, i) {
1174        for (var n, o, s, r, a, h, l, u = [1, 4, 2, 8], c = 0, d = t.length; c < d; c++) t[c]._code = si(t[c], e);
1175        for (s = 0; s < 4; s++) {
1176            for (h = u[s], n = [], c = 0, o = (d = t.length) - 1; c < d; o = c++) r = t[c], a = t[o], r._code & h ? a._code & h || ((l = oi(a, r, h, e, i))._code = si(l, e), n.push(l)) : (a._code & h && ((l = oi(a, r, h, e, i))._code = si(l, e), n.push(l)), n.push(r));
1177            t = n
1178        }
1179        return t
1180    }
1181
1182    function $e(t, e) {
1183        var i, n, o, s, r, a, h;
1184        if (!t || 0 === t.length) throw new Error("latlngs not passed");
1185        I(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
1186        for (var l = w([0, 0]), u = g(t), c = (u.getNorthWest().distanceTo(u.getSouthWest()) * u.getNorthEast().distanceTo(u.getNorthWest()) < 1700 && (l = Qe(t)), t.length), d = [], _ = 0; _ < c; _++) {
1187            var p = w(t[_]);
1188            d.push(e.project(w([p.lat - l.lat, p.lng - l.lng])))
1189        }
1190        for (_ = r = a = h = 0, i = c - 1; _ < c; i = _++) n = d[_], o = d[i], s = n.y * o.x - o.y * n.x, a += (n.x + o.x) * s, h += (n.y + o.y) * s, r += 3 * s;
1191        u = 0 === r ? d[0] : [a / r, h / r], u = e.unproject(m(u));
1192        return w([u.lat + l.lat, u.lng + l.lng])
1193    }
1194
1195    function Qe(t) {
1196        for (var e = 0, i = 0, n = 0, o = 0; o < t.length; o++) {
1197            var s = w(t[o]);
1198            e += s.lat, i += s.lng, n++
1199        }
1200        return w([e / n, i / n])
1201    }
1202    var ti, gt = { __proto__: null, clipPolygon: Je, polygonCenter: $e, centroid: Qe };
1203
1204    function ei(t, e) {
1205        if (e && t.length) {
1206            var i = t = function(t, e) {
1207                    for (var i = [t[0]], n = 1, o = 0, s = t.length; n < s; n++)(function(t, e) {
1208                        var i = e.x - t.x,
1209                            e = e.y - t.y;
1210                        return i * i + e * e
1211                    })(t[n], t[o]) > e && (i.push(t[n]), o = n);
1212                    o < s - 1 && i.push(t[s - 1]);
1213                    return i
1214                }(t, e = e * e),
1215                n = i.length,
1216                o = new(typeof Uint8Array != void 0 + "" ? Uint8Array : Array)(n);
1217            o[0] = o[n - 1] = 1,
1218                function t(e, i, n, o, s) {
1219                    var r, a, h, l = 0;
1220                    for (a = o + 1; a <= s - 1; a++) h = ri(e[a], e[o], e[s], !0), l < h && (r = a, l = h);
1221                    n < l && (i[r] = 1, t(e, i, n, o, r), t(e, i, n, r, s))
1222                }(i, o, e, 0, n - 1);
1223            var s, r = [];
1224            for (s = 0; s < n; s++) o[s] && r.push(i[s]);
1225            return r
1226        }
1227        return t.slice()
1228    }
1229
1230    function ii(t, e, i) { return Math.sqrt(ri(t, e, i, !0)) }
1231
1232    function ni(t, e, i, n, o) {
1233        var s, r, a, h = n ? ti : si(t, i),
1234            l = si(e, i);
1235        for (ti = l;;) {
1236            if (!(h | l)) return [t, e];
1237            if (h & l) return !1;
1238            a = si(r = oi(t, e, s = h || l, i, o), i), s === h ? (t = r, h = a) : (e = r, l = a)
1239        }
1240    }
1241
1242    function oi(t, e, i, n, o) {
1243        var s, r, a = e.x - t.x,
1244            e = e.y - t.y,
1245            h = n.min,
1246            n = n.max;
1247        return 8 & i ? (s = t.x + a * (n.y - t.y) / e, r = n.y) : 4 & i ? (s = t.x + a * (h.y - t.y) / e, r = h.y) : 2 & i ? (s = n.x, r = t.y + e * (n.x - t.x) / a) : 1 & i && (s = h.x, r = t.y + e * (h.x - t.x) / a), new p(s, r, o)
1248    }
1249
1250    function si(t, e) { var i = 0; return t.x < e.min.x ? i |= 1 : t.x > e.max.x && (i |= 2), t.y < e.min.y ? i |= 4 : t.y > e.max.y && (i |= 8), i }
1251
1252    function ri(t, e, i, n) {
1253        var o = e.x,
1254            e = e.y,
1255            s = i.x - o,
1256            r = i.y - e,
1257            a = s * s + r * r;
1258        return 0 < a && (1 < (a = ((t.x - o) * s + (t.y - e) * r) / a) ? (o = i.x, e = i.y) : 0 < a && (o += s * a, e += r * a)), s = t.x - o, r = t.y - e, n ? s * s + r * r : new p(o, e)
1259    }
1260
1261    function I(t) { return !d(t[0]) || "object" != typeof t[0][0] && void 0 !== t[0][0] }
1262
1263    function ai(t) { return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), I(t) }
1264
1265    function hi(t, e) {
1266        var i, n, o, s, r, a;
1267        if (!t || 0 === t.length) throw new Error("latlngs not passed");
1268        I(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
1269        for (var h = w([0, 0]), l = g(t), u = (l.getNorthWest().distanceTo(l.getSouthWest()) * l.getNorthEast().distanceTo(l.getNorthWest()) < 1700 && (h = Qe(t)), t.length), c = [], d = 0; d < u; d++) {
1270            var _ = w(t[d]);
1271            c.push(e.project(w([_.lat - h.lat, _.lng - h.lng])))
1272        }
1273        for (i = d = 0; d < u - 1; d++) i += c[d].distanceTo(c[d + 1]) / 2;
1274        if (0 === i) a = c[0];
1275        else
1276            for (n = d = 0; d < u - 1; d++)
1277                if (o = c[d], s = c[d + 1], i < (n += r = o.distanceTo(s))) { a = [s.x - (r = (n - i) / r) * (s.x - o.x), s.y - r * (s.y - o.y)]; break }
1278        l = e.unproject(m(a));
1279        return w([l.lat + h.lat, l.lng + h.lng])
1280    }
1281    var vt = { __proto__: null, simplify: ei, pointToSegmentDistance: ii, closestPointOnSegment: function(t, e, i) { return ri(t, e, i) }, clipSegment: ni, _getEdgeIntersection: oi, _getBitCode: si, _sqClosestPointOnSegment: ri, isFlat: I, _flat: ai, polylineCenter: hi },
1282        yt = { project: function(t) { return new p(t.lng, t.lat) }, unproject: function(t) { return new v(t.y, t.x) }, bounds: new f([-180, -90], [180, 90]) },
1283        xt = {
1284            R: 6378137,
1285            R_MINOR: 6356752.314245179,
1286            bounds: new f([-20037508.34279, -15496570.73972], [20037508.34279, 18764656.23138]),
1287            project: function(t) {
1288                var e = Math.PI / 180,
1289                    i = this.R,
1290                    n = t.lat * e,
1291                    o = this.R_MINOR / i,
1292                    o = Math.sqrt(1 - o * o),
1293                    s = o * Math.sin(n),
1294                    s = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - s) / (1 + s), o / 2),
1295                    n = -i * Math.log(Math.max(s, 1e-10));
1296                return new p(t.lng * e * i, n)
1297            },
1298            unproject: function(t) { for (var e, i = 180 / Math.PI, n = this.R, o = this.R_MINOR / n, s = Math.sqrt(1 - o * o), r = Math.exp(-t.y / n), a = Math.PI / 2 - 2 * Math.atan(r), h = 0, l = .1; h < 15 && 1e-7 < Math.abs(l); h++) e = s * Math.sin(a), e = Math.pow((1 - e) / (1 + e), s / 2), a += l = Math.PI / 2 - 2 * Math.atan(r * e) - a; return new v(a * i, t.x * i / n) }
1299        },
1300        wt = { __proto__: null, LonLat: yt, Mercator: xt, SphericalMercator: rt },
1301        Pt = l({}, st, { code: "EPSG:3395", projection: xt, transformation: ht(bt = .5 / (Math.PI * xt.R), .5, -bt, .5) }),
1302        li = l({}, st, { code: "EPSG:4326", projection: yt, transformation: ht(1 / 180, 1, -1 / 180, .5) }),
1303        Lt = l({}, ot, {
1304            projection: yt,
1305            transformation: ht(1, 0, -1, 0),
1306            scale: function(t) { return Math.pow(2, t) },
1307            zoom: function(t) { return Math.log(t) / Math.LN2 },
1308            distance: function(t, e) {
1309                var i = e.lng - t.lng,
1310                    e = e.lat - t.lat;
1311                return Math.sqrt(i * i + e * e)
1312            },
1313            infinite: !0
1314        }),
1315        o = (ot.Earth = st, ot.EPSG3395 = Pt, ot.EPSG3857 = lt, ot.EPSG900913 = ut, ot.EPSG4326 = li, ot.Simple = Lt, it.extend({
1316            options: { pane: "overlayPane", attribution: null, bubblingMouseEvents: !0 },
1317            addTo: function(t) { return t.addLayer(this), this },
1318            remove: function() { return this.removeFrom(this._map || this._mapToAdd) },
1319            removeFrom: function(t) { return t && t.removeLayer(this), this },
1320            getPane: function(t) { return this._map.getPane(t ? this.options[t] || t : this.options.pane) },
1321            addInteractiveTarget: function(t) { return this._map._targets[h(t)] = this },
1322            removeInteractiveTarget: function(t) { return delete this._map._targets[h(t)], this },
1323            getAttribution: function() { return this.options.attribution },
1324            _layerAdd: function(t) {
1325                var e, i = t.target;
1326                i.hasLayer(this) && (this._map = i, this._zoomAnimated = i._zoomAnimated, this.getEvents && (e = this.getEvents(), i.on(e, this), this.once("remove", function() { i.off(e, this) }, this)), this.onAdd(i), this.fire("add"), i.fire("layeradd", { layer: this }))
1327            }
1328        })),
1329        ui = (A.include({
1330            addLayer: function(t) { var e; if (t._layerAdd) return e = h(t), this._layers[e] || ((this._layers[e] = t)._mapToAdd = this, t.beforeAdd && t.beforeAdd(this), this.whenReady(t._layerAdd, t)), this; throw new Error("The provided object is not a Layer.") },
1331            removeLayer: function(t) { var e = h(t); return this._layers[e] && (this._loaded && t.onRemove(this), delete this._layers[e], this._loaded && (this.fire("layerremove", { layer: t }), t.fire("remove")), t._map = t._mapToAdd = null), this },
1332            hasLayer: function(t) { return h(t) in this._layers },
1333            eachLayer: function(t, e) { for (var i in this._layers) t.call(e, this._layers[i]); return this },
1334            _addLayers: function(t) { for (var e = 0, i = (t = t ? d(t) ? t : [t] : []).length; e < i; e++) this.addLayer(t[e]) },
1335            _addZoomLimit: function(t) { isNaN(t.options.maxZoom) && isNaN(t.options.minZoom) || (this._zoomBoundLayers[h(t)] = t, this._updateZoomLevels()) },
1336            _removeZoomLimit: function(t) {
1337                t = h(t);
1338                this._zoomBoundLayers[t] && (delete this._zoomBoundLayers[t], this._updateZoomLevels())
1339            },
1340            _updateZoomLevels: function() {
1341                var t, e = 1 / 0,
1342                    i = -1 / 0,
1343                    n = this._getZoomSpan();
1344                for (t in this._zoomBoundLayers) var o = this._zoomBoundLayers[t].options,
1345                    e = void 0 === o.minZoom ? e : Math.min(e, o.minZoom),
1346                    i = void 0 === o.maxZoom ? i : Math.max(i, o.maxZoom);
1347                this._layersMaxZoom = i === -1 / 0 ? void 0 : i, this._layersMinZoom = e === 1 / 0 ? void 0 : e, n !== this._getZoomSpan() && this.fire("zoomlevelschange"), void 0 === this.options.maxZoom && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this.setZoom(this._layersMaxZoom), void 0 === this.options.minZoom && this._layersMinZoom && this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom)
1348            }
1349        }), o.extend({
1350            initialize: function(t, e) {
1351                var i, n;
1352                if (c(this, e), this._layers = {}, t)
1353                    for (i = 0, n = t.length; i < n; i++) this.addLayer(t[i])
1354            },
1355            addLayer: function(t) { var e = this.getLayerId(t); return this._layers[e] = t, this._map && this._map.addLayer(t), this },
1356            removeLayer: function(t) { t = t in this._layers ? t : this.getLayerId(t); return this._map && this._layers[t] && this._map.removeLayer(this._layers[t]), delete this._layers[t], this },
1357            hasLayer: function(t) { return ("number" == typeof t ? t : this.getLayerId(t)) in this._layers },
1358            clearLayers: function() { return this.eachLayer(this.removeLayer, this) },
1359            invoke: function(t) { var e, i, n = Array.prototype.slice.call(arguments, 1); for (e in this._layers)(i = this._layers[e])[t] && i[t].apply(i, n); return this },
1360            onAdd: function(t) { this.eachLayer(t.addLayer, t) },
1361            onRemove: function(t) { this.eachLayer(t.removeLayer, t) },
1362            eachLayer: function(t, e) { for (var i in this._layers) t.call(e, this._layers[i]); return this },
1363            getLayer: function(t) { return this._layers[t] },
1364            getLayers: function() { var t = []; return this.eachLayer(t.push, t), t },
1365            setZIndex: function(t) { return this.invoke("setZIndex", t) },
1366            getLayerId: h
1367        })),
1368        ci = ui.extend({
1369            addLayer: function(t) { return this.hasLayer(t) ? this : (t.addEventParent(this), ui.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t })) },
1370            removeLayer: function(t) { return this.hasLayer(t) ? ((t = t in this._layers ? this._layers[t] : t).removeEventParent(this), ui.prototype.removeLayer.call(this, t), this.fire("layerremove", { layer: t })) : this },
1371            setStyle: function(t) { return this.invoke("setStyle", t) },
1372            bringToFront: function() { return this.invoke("bringToFront") },
1373            bringToBack: function() { return this.invoke("bringToBack") },
1374            getBounds: function() {
1375                var t, e = new s;
1376                for (t in this._layers) {
1377                    var i = this._layers[t];
1378                    e.extend(i.getBounds ? i.getBounds() : i.getLatLng())
1379                }
1380                return e
1381            }
1382        }),
1383        di = et.extend({
1384            options: { popupAnchor: [0, 0], tooltipAnchor: [0, 0], crossOrigin: !1 },
1385            initialize: function(t) { c(this, t) },
1386            createIcon: function(t) { return this._createIcon("icon", t) },
1387            createShadow: function(t) { return this._createIcon("shadow", t) },
1388            _createIcon: function(t, e) { var i = this._getIconUrl(t); if (i) return i = this._createImg(i, e && "IMG" === e.tagName ? e : null), this._setIconStyles(i, t), !this.options.crossOrigin && "" !== this.options.crossOrigin || (i.crossOrigin = !0 === this.options.crossOrigin ? "" : this.options.crossOrigin), i; if ("icon" === t) throw new Error("iconUrl not set in Icon options (see the docs)."); return null },
1389            _setIconStyles: function(t, e) {
1390                var i = this.options,
1391                    n = i[e + "Size"],
1392                    n = m(n = "number" == typeof n ? [n, n] : n),
1393                    o = m("shadow" === e && i.shadowAnchor || i.iconAnchor || n && n.divideBy(2, !0));
1394                t.className = "leaflet-marker-" + e + " " + (i.className || ""), o && (t.style.marginLeft = -o.x + "px", t.style.marginTop = -o.y + "px"), n && (t.style.width = n.x + "px", t.style.height = n.y + "px")
1395            },
1396            _createImg: function(t, e) { return (e = e || document.createElement("img")).src = t, e },
1397            _getIconUrl: function(t) { return b.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"] }
1398        });
1399    var _i = di.extend({
1400            options: { 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] },
1401            _getIconUrl: function(t) { return "string" != typeof _i.imagePath && (_i.imagePath = this._detectIconPath()), (this.options.imagePath || _i.imagePath) + di.prototype._getIconUrl.call(this, t) },
1402            _stripUrl: function(t) {
1403                function e(t, e, i) { return (e = e.exec(t)) && e[i] }
1404                return (t = e(t, /^url\((['"])?(.+)\1\)$/, 2)) && e(t, /^(.*)marker-icon\.png$/, 1)
1405            },
1406            _detectIconPath: function() {
1407                var t = P("div", "leaflet-default-icon-path", document.body),
1408                    e = pe(t, "background-image") || pe(t, "backgroundImage");
1409                return document.body.removeChild(t), (e = this._stripUrl(e)) ? e : (t = document.querySelector('link[href$="leaflet.css"]')) ? t.href.substring(0, t.href.length - "leaflet.css".length - 1) : ""
1410            }
1411        }),
1412        pi = n.extend({
1413            initialize: function(t) { this._marker = t },
1414            addHooks: function() {
1415                var t = this._marker._icon;
1416                this._draggable || (this._draggable = new Xe(t, t, !0)), this._draggable.on({ dragstart: this._onDragStart, predrag: this._onPreDrag, drag: this._onDrag, dragend: this._onDragEnd }, this).enable(), M(t, "leaflet-marker-draggable")
1417            },
1418            removeHooks: function() { this._draggable.off({ dragstart: this._onDragStart, predrag: this._onPreDrag, drag: this._onDrag, dragend: this._onDragEnd }, this).disable(), this._marker._icon && z(this._marker._icon, "leaflet-marker-draggable") },
1419            moved: function() { return this._draggable && this._draggable._moved },
1420            _adjustPan: function(t) {
1421                var e = this._marker,
1422                    i = e._map,
1423                    n = this._marker.options.autoPanSpeed,
1424                    o = this._marker.options.autoPanPadding,
1425                    s = Pe(e._icon),
1426                    r = i.getPixelBounds(),
1427                    a = i.getPixelOrigin(),
1428                    a = _(r.min._subtract(a).add(o), r.max._subtract(a).subtract(o));
1429                a.contains(s) || (o = m((Math.max(a.max.x, s.x) - a.max.x) / (r.max.x - a.max.x) - (Math.min(a.min.x, s.x) - a.min.x) / (r.min.x - a.min.x), (Math.max(a.max.y, s.y) - a.max.y) / (r.max.y - a.max.y) - (Math.min(a.min.y, s.y) - a.min.y) / (r.min.y - a.min.y)).multiplyBy(n), i.panBy(o, { animate: !1 }), this._draggable._newPos._add(o), this._draggable._startPos._add(o), Z(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = x(this._adjustPan.bind(this, t)))
1430            },
1431            _onDragStart: function() { this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup && this._marker.closePopup(), this._marker.fire("movestart").fire("dragstart") },
1432            _onPreDrag: function(t) { this._marker.options.autoPan && (r(this._panRequest), this._panRequest = x(this._adjustPan.bind(this, t))) },
1433            _onDrag: function(t) {
1434                var e = this._marker,
1435                    i = e._shadow,
1436                    n = Pe(e._icon),
1437                    o = e._map.layerPointToLatLng(n);
1438                i && Z(i, n), e._latlng = o, t.latlng = o, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t)
1439            },
1440            _onDragEnd: function(t) { r(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t) }
1441        }),
1442        mi = o.extend({
1443            options: { icon: new _i, interactive: !0, keyboard: !0, title: "", alt: "Marker", zIndexOffset: 0, opacity: 1, riseOnHover: !1, riseOffset: 250, pane: "markerPane", shadowPane: "shadowPane", bubblingMouseEvents: !1, autoPanOnFocus: !0, draggable: !1, autoPan: !1, autoPanPadding: [50, 50], autoPanSpeed: 10 },
1444            initialize: function(t, e) { c(this, e), this._latlng = w(t) },
1445            onAdd: function(t) { this._zoomAnimated = this._zoomAnimated && t.options.markerZoomAnimation, this._zoomAnimated && t.on("zoomanim", this._animateZoom, this), this._initIcon(), this.update() },
1446            onRemove: function(t) { this.dragging && 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() },
1447            getEvents: function() { return { zoom: this.update, viewreset: this.update } },
1448            getLatLng: function() { return this._latlng },
1449            setLatLng: function(t) { var e = this._latlng; return this._latlng = w(t), this.update(), this.fire("move", { oldLatLng: e, latlng: this._latlng }) },
1450            setZIndexOffset: function(t) { return this.options.zIndexOffset = t, this.update() },
1451            getIcon: function() { return this.options.icon },
1452            setIcon: function(t) { return this.options.icon = t, this._map && (this._initIcon(), this.update()), this._popup && this.bindPopup(this._popup, this._popup.options), this },
1453            getElement: function() { return this._icon },
1454            update: function() { var t; return this._icon && this._map && (t = this._map.latLngToLayerPoint(this._latlng).round(), this._setPos(t)), this },
1455            _initIcon: function() {
1456                var t = this.options,
1457                    e = "leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide"),
1458                    i = t.icon.createIcon(this._icon),
1459                    n = !1,
1460                    i = (i !== this._icon && (this._icon && this._removeIcon(), n = !0, t.title && (i.title = t.title), "IMG" === i.tagName && (i.alt = t.alt || "")), M(i, e), t.keyboard && (i.tabIndex = "0", i.setAttribute("role", "button")), this._icon = i, t.riseOnHover && this.on({ mouseover: this._bringToFront, mouseout: this._resetZIndex }), this.options.autoPanOnFocus && S(i, "focus", this._panOnFocus, this), t.icon.createShadow(this._shadow)),
1461                    o = !1;
1462                i !== this._shadow && (this._removeShadow(), o = !0), i && (M(i, e), i.alt = ""), this._shadow = i, t.opacity < 1 && this._updateOpacity(), n && this.getPane().appendChild(this._icon), this._initInteraction(), i && o && this.getPane(t.shadowPane).appendChild(this._shadow)
1463            },
1464            _removeIcon: function() { this.options.riseOnHover && this.off({ mouseover: this._bringToFront, mouseout: this._resetZIndex }), this.options.autoPanOnFocus && k(this._icon, "focus", this._panOnFocus, this), T(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null },
1465            _removeShadow: function() { this._shadow && T(this._shadow), this._shadow = null },
1466            _setPos: function(t) { this._icon && Z(this._icon, t), this._shadow && Z(this._shadow, t), this._zIndex = t.y + this.options.zIndexOffset, this._resetZIndex() },
1467            _updateZIndex: function(t) { this._icon && (this._icon.style.zIndex = this._zIndex + t) },
1468            _animateZoom: function(t) {
1469                t = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center).round();
1470                this._setPos(t)
1471            },
1472            _initInteraction: function() {
1473                var t;
1474                this.options.interactive && (M(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), pi && (t = this.options.draggable, this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new pi(this), t && this.dragging.enable()))
1475            },
1476            setOpacity: function(t) { return this.options.opacity = t, this._map && this._updateOpacity(), this },
1477            _updateOpacity: function() {
1478                var t = this.options.opacity;
1479                this._icon && C(this._icon, t), this._shadow && C(this._shadow, t)
1480            },
1481            _bringToFront: function() { this._updateZIndex(this.options.riseOffset) },
1482            _resetZIndex: function() { this._updateZIndex(0) },
1483            _panOnFocus: function() {
1484                var t, e, i = this._map;
1485                i && (t = (e = this.options.icon.options).iconSize ? m(e.iconSize) : m(0, 0), e = e.iconAnchor ? m(e.iconAnchor) : m(0, 0), i.panInside(this._latlng, { paddingTopLeft: e, paddingBottomRight: t.subtract(e) }))
1486            },
1487            _getPopupAnchor: function() { return this.options.icon.options.popupAnchor },
1488            _getTooltipAnchor: function() { return this.options.icon.options.tooltipAnchor }
1489        });
1490    var fi = o.extend({ options: { stroke: !0, color: "#3388ff", weight: 3, opacity: 1, lineCap: "round", lineJoin: "round", dashArray: null, dashOffset: null, fill: !1, fillColor: null, fillOpacity: .2, fillRule: "evenodd", interactive: !0, bubblingMouseEvents: !0 }, beforeAdd: function(t) { this._renderer = t.getRenderer(this) }, onAdd: function() { this._renderer._initPath(this), this._reset(), this._renderer._addPath(this) }, onRemove: function() { this._renderer._removePath(this) }, redraw: function() { return this._map && this._renderer._updatePath(this), this }, setStyle: function(t) { return c(this, t), this._renderer && (this._renderer._updateStyle(this), this.options.stroke && t && Object.prototype.hasOwnProperty.call(t, "weight") && this._updateBounds()), this }, bringToFront: function() { return this._renderer && this._renderer._bringToFront(this), this }, bringToBack: function() { return this._renderer && this._renderer._bringToBack(this), this }, getElement: function() { return this._path }, _reset: function() { this._project(), this._update() }, _clickTolerance: function() { return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0) } }),
1491        gi = fi.extend({
1492            options: { fill: !0, radius: 10 },
1493            initialize: function(t, e) { c(this, e), this._latlng = w(t), this._radius = this.options.radius },
1494            setLatLng: function(t) { var e = this._latlng; return this._latlng = w(t), this.redraw(), this.fire("move", { oldLatLng: e, latlng: this._latlng }) },
1495            getLatLng: function() { return this._latlng },
1496            setRadius: function(t) { return this.options.radius = this._radius = t, this.redraw() },
1497            getRadius: function() { return this._radius },
1498            setStyle: function(t) { var e = t && t.radius || this._radius; return fi.prototype.setStyle.call(this, t), this.setRadius(e), this },
1499            _project: function() { this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds() },
1500            _updateBounds: function() {
1501                var t = this._radius,
1502                    e = this._radiusY || t,
1503                    i = this._clickTolerance(),
1504                    t = [t + i, e + i];
1505                this._pxBounds = new f(this._point.subtract(t), this._point.add(t))
1506            },
1507            _update: function() { this._map && this._updatePath() },
1508            _updatePath: function() { this._renderer._updateCircle(this) },
1509            _empty: function() { return this._radius && !this._renderer._bounds.intersects(this._pxBounds) },
1510            _containsPoint: function(t) { return t.distanceTo(this._point) <= this._radius + this._clickTolerance() }
1511        });
1512    var vi = gi.extend({
1513        initialize: function(t, e, i) {
1514            if (c(this, e = "number" == typeof e ? l({}, i, { radius: e }) : e), this._latlng = w(t), isNaN(this.options.radius)) throw new Error("Circle radius cannot be NaN");
1515            this._mRadius = this.options.radius
1516        },
1517        setRadius: function(t) { return this._mRadius = t, this.redraw() },
1518        getRadius: function() { return this._mRadius },
1519        getBounds: function() { var t = [this._radius, this._radiusY || this._radius]; return new s(this._map.layerPointToLatLng(this._point.subtract(t)), this._map.layerPointToLatLng(this._point.add(t))) },
1520        setStyle: fi.prototype.setStyle,
1521        _project: function() {
1522            var t, e, i, n, o, s = this._latlng.lng,
1523                r = this._latlng.lat,
1524                a = this._map,
1525                h = a.options.crs;
1526            h.distance === st.distance ? (n = Math.PI / 180, o = this._mRadius / st.R / n, t = a.project([r + o, s]), e = a.project([r - o, s]), e = t.add(e).divideBy(2), i = a.unproject(e).lat, n = Math.acos((Math.cos(o * n) - Math.sin(r * n) * Math.sin(i * n)) / (Math.cos(r * n) * Math.cos(i * n))) / n, !isNaN(n) && 0 !== n || (n = o / Math.cos(Math.PI / 180 * r)), this._point = e.subtract(a.getPixelOrigin()), this._radius = isNaN(n) ? 0 : e.x - a.project([i, s - n]).x, this._radiusY = e.y - t.y) : (o = h.unproject(h.project(this._latlng).subtract([this._mRadius, 0])), this._point = a.latLngToLayerPoint(this._latlng), this._radius = this._point.x - a.latLngToLayerPoint(o).x), this._updateBounds()
1527        }
1528    });
1529    var yi = fi.extend({
1530        options: { smoothFactor: 1, noClip: !1 },
1531        initialize: function(t, e) { c(this, e), this._setLatLngs(t) },
1532        getLatLngs: function() { return this._latlngs },
1533        setLatLngs: function(t) { return this._setLatLngs(t), this.redraw() },
1534        isEmpty: function() { return !this._latlngs.length },
1535        closestLayerPoint: function(t) {
1536            for (var e = 1 / 0, i = null, n = ri, o = 0, s = this._parts.length; o < s; o++)
1537                for (var r = this._parts[o], a = 1, h = r.length; a < h; a++) {
1538                    var l, u, c = n(t, l = r[a - 1], u = r[a], !0);
1539                    c < e && (e = c, i = n(t, l, u))
1540                }
1541            return i && (i.distance = Math.sqrt(e)), i
1542        },
1543        getCenter: function() { if (this._map) return hi(this._defaultShape(), this._map.options.crs); throw new Error("Must add layer to map before using getCenter()") },
1544        getBounds: function() { return this._bounds },
1545        addLatLng: function(t, e) { return e = e || this._defaultShape(), t = w(t), e.push(t), this._bounds.extend(t), this.redraw() },
1546        _setLatLngs: function(t) { this._bounds = new s, this._latlngs = this._convertLatLngs(t) },
1547        _defaultShape: function() { return I(this._latlngs) ? this._latlngs : this._latlngs[0] },
1548        _convertLatLngs: function(t) { for (var e = [], i = I(t), n = 0, o = t.length; n < o; n++) i ? (e[n] = w(t[n]), this._bounds.extend(e[n])) : e[n] = this._convertLatLngs(t[n]); return e },
1549        _project: function() {
1550            var t = new f;
1551            this._rings = [], this._projectLatlngs(this._latlngs, this._rings, t), this._bounds.isValid() && t.isValid() && (this._rawPxBounds = t, this._updateBounds())
1552        },
1553        _updateBounds: function() {
1554            var t = this._clickTolerance(),
1555                t = new p(t, t);
1556            this._rawPxBounds && (this._pxBounds = new f([this._rawPxBounds.min.subtract(t), this._rawPxBounds.max.add(t)]))
1557        },
1558        _projectLatlngs: function(t, e, i) {
1559            var n, o, s = t[0] instanceof v,
1560                r = t.length;
1561            if (s) {
1562                for (o = [], n = 0; n < r; n++) o[n] = this._map.latLngToLayerPoint(t[n]), i.extend(o[n]);
1563                e.push(o)
1564            } else
1565                for (n = 0; n < r; n++) this._projectLatlngs(t[n], e, i)
1566        },
1567        _clipPoints: function() {
1568            var t = this._renderer._bounds;
1569            if (this._parts = [], this._pxBounds && this._pxBounds.intersects(t))
1570                if (this.options.noClip) this._parts = this._rings;
1571                else
1572                    for (var e, i, n, o, s = this._parts, r = 0, a = 0, h = this._rings.length; r < h; r++)
1573                        for (e = 0, i = (o = this._rings[r]).length; e < i - 1; e++)(n = ni(o[e], o[e + 1], t, e, !0)) && (s[a] = s[a] || [], s[a].push(n[0]), n[1] === o[e + 1] && e !== i - 2 || (s[a].push(n[1]), a++))
1574        },
1575        _simplifyPoints: function() { for (var t = this._parts, e = this.options.smoothFactor, i = 0, n = t.length; i < n; i++) t[i] = ei(t[i], e) },
1576        _update: function() { this._map && (this._clipPoints(), this._simplifyPoints(), this._updatePath()) },
1577        _updatePath: function() { this._renderer._updatePoly(this) },
1578        _containsPoint: function(t, e) {
1579            var i, n, o, s, r, a, h = this._clickTolerance();
1580            if (this._pxBounds && this._pxBounds.contains(t))
1581                for (i = 0, s = this._parts.length; i < s; i++)
1582                    for (n = 0, o = (r = (a = this._parts[i]).length) - 1; n < r; o = n++)
1583                        if ((e || 0 !== n) && ii(t, a[o], a[n]) <= h) return !0;
1584            return !1
1585        }
1586    });
1587    yi._flat = ai;
1588    var xi = yi.extend({
1589        options: { fill: !0 },
1590        isEmpty: function() { return !this._latlngs.length || !this._latlngs[0].length },
1591        getCenter: function() { if (this._map) return $e(this._defaultShape(), this._map.options.crs); throw new Error("Must add layer to map before using getCenter()") },
1592        _convertLatLngs: function(t) {
1593            var t = yi.prototype._convertLatLngs.call(this, t),
1594                e = t.length;
1595            return 2 <= e && t[0] instanceof v && t[0].equals(t[e - 1]) && t.pop(), t
1596        },
1597        _setLatLngs: function(t) { yi.prototype._setLatLngs.call(this, t), I(this._latlngs) && (this._latlngs = [this._latlngs]) },
1598        _defaultShape: function() { return (I(this._latlngs[0]) ? this._latlngs : this._latlngs[0])[0] },
1599        _clipPoints: function() {
1600            var t = this._renderer._bounds,
1601                e = this.options.weight,
1602                e = new p(e, e),
1603                t = new f(t.min.subtract(e), t.max.add(e));
1604            if (this._parts = [], this._pxBounds && this._pxBounds.intersects(t))
1605                if (this.options.noClip) this._parts = this._rings;
1606                else
1607                    for (var i, n = 0, o = this._rings.length; n < o; n++)(i = Je(this._rings[n], t, !0)).length && this._parts.push(i)
1608        },
1609        _updatePath: function() { this._renderer._updatePoly(this, !0) },
1610        _containsPoint: function(t) {
1611            var e, i, n, o, s, r, a, h, l = !1;
1612            if (!this._pxBounds || !this._pxBounds.contains(t)) return !1;
1613            for (o = 0, a = this._parts.length; o < a; o++)
1614                for (s = 0, r = (h = (e = this._parts[o]).length) - 1; s < h; r = s++) i = e[s], n = e[r], i.y > t.y != n.y > t.y && t.x < (n.x - i.x) * (t.y - i.y) / (n.y - i.y) + i.x && (l = !l);
1615            return l || yi.prototype._containsPoint.call(this, t, !0)
1616        }
1617    });
1618    var wi = ci.extend({ initialize: function(t, e) { c(this, e), this._layers = {}, t && this.addData(t) }, addData: function(t) { var e, i, n, o = d(t) ? t : t.features; if (o) { for (e = 0, i = o.length; e < i; e++)((n = o[e]).geometries || n.geometry || n.features || n.coordinates) && this.addData(n); return this } var s, r = this.options; return (!r.filter || r.filter(t)) && (s = bi(t, r)) ? (s.feature = Zi(t), s.defaultOptions = s.options, this.resetStyle(s), r.onEachFeature && r.onEachFeature(t, s), this.addLayer(s)) : this }, resetStyle: function(t) { return void 0 === t ? this.eachLayer(this.resetStyle, this) : (t.options = l({}, t.defaultOptions), this._setLayerStyle(t, this.options.style), this) }, setStyle: function(e) { return this.eachLayer(function(t) { this._setLayerStyle(t, e) }, this) }, _setLayerStyle: function(t, e) { t.setStyle && ("function" == typeof e && (e = e(t.feature)), t.setStyle(e)) } });
1619
1620    function bi(t, e) {
1621        var i, n, o, s, r = "Feature" === t.type ? t.geometry : t,
1622            a = r ? r.coordinates : null,
1623            h = [],
1624            l = e && e.pointToLayer,
1625            u = e && e.coordsToLatLng || Li;
1626        if (!a && !r) return null;
1627        switch (r.type) {
1628            case "Point":
1629                return Pi(l, t, i = u(a), e);
1630            case "MultiPoint":
1631                for (o = 0, s = a.length; o < s; o++) i = u(a[o]), h.push(Pi(l, t, i, e));
1632                return new ci(h);
1633            case "LineString":
1634            case "MultiLineString":
1635                return n = Ti(a, "LineString" === r.type ? 0 : 1, u), new yi(n, e);
1636            case "Polygon":
1637            case "MultiPolygon":
1638                return n = Ti(a, "Polygon" === r.type ? 1 : 2, u), new xi(n, e);
1639            case "GeometryCollection":
1640                for (o = 0, s = r.geometries.length; o < s; o++) {
1641                    var c = bi({ geometry: r.geometries[o], type: "Feature", properties: t.properties }, e);
1642                    c && h.push(c)
1643                }
1644                return new ci(h);
1645            case "FeatureCollection":
1646                for (o = 0, s = r.features.length; o < s; o++) {
1647                    var d = bi(r.features[o], e);
1648                    d && h.push(d)
1649                }
1650                return new ci(h);
1651            default:
1652                throw new Error("Invalid GeoJSON object.")
1653        }
1654    }
1655
1656    function Pi(t, e, i, n) { return t ? t(e, i) : new mi(i, n && n.markersInheritOptions && n) }
1657
1658    function Li(t) { return new v(t[1], t[0], t[2]) }
1659
1660    function Ti(t, e, i) { for (var n, o = [], s = 0, r = t.length; s < r; s++) n = e ? Ti(t[s], e - 1, i) : (i || Li)(t[s]), o.push(n); return o }
1661
1662    function Mi(t, e) { return void 0 !== (t = w(t)).alt ? [i(t.lng, e), i(t.lat, e), i(t.alt, e)] : [i(t.lng, e), i(t.lat, e)] }
1663
1664    function zi(t, e, i, n) { for (var o = [], s = 0, r = t.length; s < r; s++) o.push(e ? zi(t[s], I(t[s]) ? 0 : e - 1, i, n) : Mi(t[s], n)); return !e && i && 0 < o.length && o.push(o[0].slice()), o }
1665
1666    function Ci(t, e) { return t.feature ? l({}, t.feature, { geometry: e }) : Zi(e) }
1667
1668    function Zi(t) { return "Feature" === t.type || "FeatureCollection" === t.type ? t : { type: "Feature", properties: {}, geometry: t } }
1669    Tt = { toGeoJSON: function(t) { return Ci(this, { type: "Point", coordinates: Mi(this.getLatLng(), t) }) } };
1670
1671    function Si(t, e) { return new wi(t, e) }
1672    mi.include(Tt), vi.include(Tt), gi.include(Tt), yi.include({ toGeoJSON: function(t) { var e = !I(this._latlngs); return Ci(this, { type: (e ? "Multi" : "") + "LineString", coordinates: zi(this._latlngs, e ? 1 : 0, !1, t) }) } }), xi.include({
1673        toGeoJSON: function(t) {
1674            var e = !I(this._latlngs),
1675                i = e && !I(this._latlngs[0]),
1676                t = zi(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
1677            return Ci(this, { type: (i ? "Multi" : "") + "Polygon", coordinates: t = e ? t : [t] })
1678        }
1679    }), ui.include({ toMultiPoint: function(e) { var i = []; return this.eachLayer(function(t) { i.push(t.toGeoJSON(e).geometry.coordinates) }), Ci(this, { type: "MultiPoint", coordinates: i }) }, toGeoJSON: function(e) { var i, n, t = this.feature && this.feature.geometry && this.feature.geometry.type; return "MultiPoint" === t ? this.toMultiPoint(e) : (i = "GeometryCollection" === t, n = [], this.eachLayer(function(t) { t.toGeoJSON && (t = t.toGeoJSON(e), i ? n.push(t.geometry) : "FeatureCollection" === (t = Zi(t)).type ? n.push.apply(n, t.features) : n.push(t)) }), i ? Ci(this, { geometries: n, type: "GeometryCollection" }) : { type: "FeatureCollection", features: n }) } });
1680    var Mt = Si,
1681        Ei = o.extend({
1682            options: { opacity: 1, alt: "", interactive: !1, crossOrigin: !1, errorOverlayUrl: "", zIndex: 1, className: "" },
1683            initialize: function(t, e, i) { this._url = t, this._bounds = g(e), c(this, i) },
1684            onAdd: function() { this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (M(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset() },
1685            onRemove: function() { T(this._image), this.options.interactive && this.removeInteractiveTarget(this._image) },
1686            setOpacity: function(t) { return this.options.opacity = t, this._image && this._updateOpacity(), this },
1687            setStyle: function(t) { return t.opacity && this.setOpacity(t.opacity), this },
1688            bringToFront: function() { return this._map && fe(this._image), this },
1689            bringToBack: function() { return this._map && ge(this._image), this },
1690            setUrl: function(t) { return this._url = t, this._image && (this._image.src = t), this },
1691            setBounds: function(t) { return this._bounds = g(t), this._map && this._reset(), this },
1692            getEvents: function() { var t = { zoom: this._reset, viewreset: this._reset }; return this._zoomAnimated && (t.zoomanim = this._animateZoom), t },
1693            setZIndex: function(t) { return this.options.zIndex = t, this._updateZIndex(), this },
1694            getBounds: function() { return this._bounds },
1695            getElement: function() { return this._image },
1696            _initImage: function() {
1697                var t = "IMG" === this._url.tagName,
1698                    e = this._image = t ? this._url : P("img");
1699                M(e, "leaflet-image-layer"), this._zoomAnimated && M(e, "leaflet-zoom-animated"), this.options.className && M(e, this.options.className), e.onselectstart = u, e.onmousemove = u, e.onload = a(this.fire, this, "load"), e.onerror = a(this._overlayOnError, this, "error"), !this.options.crossOrigin && "" !== this.options.crossOrigin || (e.crossOrigin = !0 === this.options.crossOrigin ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), t ? this._url = e.src : (e.src = this._url, e.alt = this.options.alt)
1700            },
1701            _animateZoom: function(t) {
1702                var e = this._map.getZoomScale(t.zoom),
1703                    t = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min;
1704                be(this._image, t, e)
1705            },
1706            _reset: function() {
1707                var t = this._image,
1708                    e = new f(this._map.latLngToLayerPoint(this._bounds.getNorthWest()), this._map.latLngToLayerPoint(this._bounds.getSouthEast())),
1709                    i = e.getSize();
1710                Z(t, e.min), t.style.width = i.x + "px", t.style.height = i.y + "px"
1711            },
1712            _updateOpacity: function() { C(this._image, this.options.opacity) },
1713            _updateZIndex: function() { this._image && void 0 !== this.options.zIndex && null !== this.options.zIndex && (this._image.style.zIndex = this.options.zIndex) },
1714            _overlayOnError: function() {
1715                this.fire("error");
1716                var t = this.options.errorOverlayUrl;
1717                t && this._url !== t && (this._url = t, this._image.src = t)
1718            },
1719            getCenter: function() { return this._bounds.getCenter() }
1720        }),
1721        ki = Ei.extend({
1722            options: { autoplay: !0, loop: !0, keepAspectRatio: !0, muted: !1, playsInline: !0 },
1723            _initImage: function() {
1724                var t = "VIDEO" === this._url.tagName,
1725                    e = this._image = t ? this._url : P("video");
1726                if (M(e, "leaflet-image-layer"), this._zoomAnimated && M(e, "leaflet-zoom-animated"), this.options.className && M(e, this.options.className), e.onselectstart = u, e.onmousemove = u, e.onloadeddata = a(this.fire, this, "load"), t) {
1727                    for (var i = e.getElementsByTagName("source"), n = [], o = 0; o < i.length; o++) n.push(i[o].src);
1728                    this._url = 0 < i.length ? n : [e.src]
1729                } else {
1730                    d(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(e.style, "objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop, e.muted = !!this.options.muted, e.playsInline = !!this.options.playsInline;
1731                    for (var s = 0; s < this._url.length; s++) {
1732                        var r = P("source");
1733                        r.src = this._url[s], e.appendChild(r)
1734                    }
1735                }
1736            }
1737        });
1738    var Oi = Ei.extend({
1739        _initImage: function() {
1740            var t = this._image = this._url;
1741            M(t, "leaflet-image-layer"), this._zoomAnimated && M(t, "leaflet-zoom-animated"), this.options.className && M(t, this.options.className), t.onselectstart = u, t.onmousemove = u
1742        }
1743    });
1744    var Ai = o.extend({
1745            options: { interactive: !1, offset: [0, 0], className: "", pane: void 0, content: "" },
1746            initialize: function(t, e) { t && (t instanceof v || d(t)) ? (this._latlng = w(t), c(this, e)) : (c(this, t), this._source = e), this.options.content && (this._content = this.options.content) },
1747            openOn: function(t) { return (t = arguments.length ? t : this._source._map).hasLayer(this) || t.addLayer(this), this },
1748            close: function() { return this._map && this._map.removeLayer(this), this },
1749            toggle: function(t) { return this._map ? this.close() : (arguments.length ? this._source = t : t = this._source, this._prepareOpen(), this.openOn(t._map)), this },
1750            onAdd: function(t) { this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && C(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && C(this._container, 1), this.bringToFront(), this.options.interactive && (M(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container)) },
1751            onRemove: function(t) { t._fadeAnimated ? (C(this._container, 0), this._removeTimeout = setTimeout(a(T, void 0, this._container), 200)) : T(this._container), this.options.interactive && (z(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container)) },
1752            getLatLng: function() { return this._latlng },
1753            setLatLng: function(t) { return this._latlng = w(t), this._map && (this._updatePosition(), this._adjustPan()), this },
1754            getContent: function() { return this._content },
1755            setContent: function(t) { return this._content = t, this.update(), this },
1756            getElement: function() { return this._container },
1757            update: function() { this._map && (this._container.style.visibility = "hidden", this._updateContent(), this._updateLayout(), this._updatePosition(), this._container.style.visibility = "", this._adjustPan()) },
1758            getEvents: function() { var t = { zoom: this._updatePosition, viewreset: this._updatePosition }; return this._zoomAnimated && (t.zoomanim = this._animateZoom), t },
1759            isOpen: function() { return !!this._map && this._map.hasLayer(this) },
1760            bringToFront: function() { return this._map && fe(this._container), this },
1761            bringToBack: function() { return this._map && ge(this._container), this },
1762            _prepareOpen: function(t) {
1763                if (!(i = this._source)._map) return !1;
1764                if (i instanceof ci) {
1765                    var e, i = null,
1766                        n = this._source._layers;
1767                    for (e in n)
1768                        if (n[e]._map) { i = n[e]; break }
1769                    if (!i) return !1;
1770                    this._source = i
1771                }
1772                if (!t)
1773                    if (i.getCenter) t = i.getCenter();
1774                    else if (i.getLatLng) t = i.getLatLng();
1775                else {
1776                    if (!i.getBounds) throw new Error("Unable to get source layer LatLng.");
1777                    t = i.getBounds().getCenter()
1778                }
1779                return this.setLatLng(t), this._map && this.update(), !0
1780            },
1781            _updateContent: function() {
1782                if (this._content) {
1783                    var t = this._contentNode,
1784                        e = "function" == typeof this._content ? this._content(this._source || this) : this._content;
1785                    if ("string" == typeof e) t.innerHTML = e;
1786                    else {
1787                        for (; t.hasChildNodes();) t.removeChild(t.firstChild);
1788                        t.appendChild(e)
1789                    }
1790                    this.fire("contentupdate")
1791                }
1792            },
1793            _updatePosition: function() {
1794                var t, e, i;
1795                this._map && (e = this._map.latLngToLayerPoint(this._latlng), t = m(this.options.offset), i = this._getAnchor(), this._zoomAnimated ? Z(this._container, e.add(i)) : t = t.add(e).add(i), e = this._containerBottom = -t.y, i = this._containerLeft = -Math.round(this._containerWidth / 2) + t.x, this._container.style.bottom = e + "px", this._container.style.left = i + "px")
1796            },
1797            _getAnchor: function() { return [0, 0] }
1798        }),
1799        Bi = (A.include({ _initOverlay: function(t, e, i, n) { var o = e; return o instanceof t || (o = new t(n).setContent(e)), i && o.setLatLng(i), o } }), o.include({ _initOverlay: function(t, e, i, n) { var o = i; return o instanceof t ? (c(o, n), o._source = this) : (o = e && !n ? e : new t(n, this)).setContent(i), o } }), Ai.extend({
1800            options: { pane: "popupPane", offset: [0, 7], maxWidth: 300, minWidth: 50, maxHeight: null, autoPan: !0, autoPanPaddingTopLeft: null, autoPanPaddingBottomRight: null, autoPanPadding: [5, 5], keepInView: !1, closeButton: !0, autoClose: !0, closeOnEscapeKey: !0, className: "" },
1801            openOn: function(t) { return !(t = arguments.length ? t : this._source._map).hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, Ai.prototype.openOn.call(this, t) },
1802            onAdd: function(t) { Ai.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof fi || this._source.on("preclick", Ae)) },
1803            onRemove: function(t) { Ai.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof fi || this._source.off("preclick", Ae)) },
1804            getEvents: function() { var t = Ai.prototype.getEvents.call(this); return (void 0 !== this.options.closeOnClick ? this.options.closeOnClick : this._map.options.closePopupOnClick) && (t.preclick = this.close), this.options.keepInView && (t.moveend = this._adjustPan), t },
1805            _initLayout: function() {
1806                var t = "leaflet-popup",
1807                    e = this._container = P("div", t + " " + (this.options.className || "") + " leaflet-zoom-animated"),
1808                    i = this._wrapper = P("div", t + "-content-wrapper", e);
1809                this._contentNode = P("div", t + "-content", i), Ie(e), Be(this._contentNode), S(e, "contextmenu", Ae), this._tipContainer = P("div", t + "-tip-container", e), this._tip = P("div", t + "-tip", this._tipContainer), this.options.closeButton && ((i = this._closeButton = P("a", t + "-close-button", e)).setAttribute("role", "button"), i.setAttribute("aria-label", "Close popup"), i.href = "#close", i.innerHTML = '<span aria-hidden="true">&#215;</span>', S(i, "click", function(t) { O(t), this.close() }, this))
1810            },
1811            _updateLayout: function() {
1812                var t = this._contentNode,
1813                    e = t.style,
1814                    i = (e.width = "", e.whiteSpace = "nowrap", t.offsetWidth),
1815                    i = Math.min(i, this.options.maxWidth),
1816                    i = (i = Math.max(i, this.options.minWidth), e.width = i + 1 + "px", e.whiteSpace = "", e.height = "", t.offsetHeight),
1817                    n = this.options.maxHeight,
1818                    o = "leaflet-popup-scrolled";
1819                (n && n < i ? (e.height = n + "px", M) : z)(t, o), this._containerWidth = this._container.offsetWidth
1820            },
1821            _animateZoom: function(t) {
1822                var t = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center),
1823                    e = this._getAnchor();
1824                Z(this._container, t.add(e))
1825            },
1826            _adjustPan: function() {
1827                var t, e, i, n, o, s, r, a;
1828                this.options.autoPan && (this._map._panAnim && this._map._panAnim.stop(), this._autopanning ? this._autopanning = !1 : (t = this._map, e = parseInt(pe(this._container, "marginBottom"), 10) || 0, e = this._container.offsetHeight + e, a = this._containerWidth, (i = new p(this._containerLeft, -e - this._containerBottom))._add(Pe(this._container)), i = t.layerPointToContainerPoint(i), o = m(this.options.autoPanPadding), n = m(this.options.autoPanPaddingTopLeft || o), o = m(this.options.autoPanPaddingBottomRight || o), s = t.getSize(), r = 0, i.x + a + o.x > s.x && (r = i.x + a - s.x + o.x), i.x - r - n.x < (a = 0) && (r = i.x - n.x), i.y + e + o.y > s.y && (a = i.y + e - s.y + o.y), i.y - a - n.y < 0 && (a = i.y - n.y), (r || a) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([r, a]))))
1829            },
1830            _getAnchor: function() { return m(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]) }
1831        })),
1832        Ii = (A.mergeOptions({ closePopupOnClick: !0 }), A.include({ openPopup: function(t, e, i) { return this._initOverlay(Bi, t, e, i).openOn(this), this }, closePopup: function(t) { return (t = arguments.length ? t : this._popup) && t.close(), this } }), o.include({
1833            bindPopup: function(t, e) { return this._popup = this._initOverlay(Bi, this._popup, t, e), this._popupHandlersAdded || (this.on({ click: this._openPopup, keypress: this._onKeyPress, remove: this.closePopup, move: this._movePopup }), this._popupHandlersAdded = !0), this },
1834            unbindPopup: function() { return this._popup && (this.off({ click: this._openPopup, keypress: this._onKeyPress, remove: this.closePopup, move: this._movePopup }), this._popupHandlersAdded = !1, this._popup = null), this },
1835            openPopup: function(t) { return this._popup && (this instanceof ci || (this._popup._source = this), this._popup._prepareOpen(t || this._latlng) && this._popup.openOn(this._map)), this },
1836            closePopup: function() { return this._popup && this._popup.close(), this },
1837            togglePopup: function() { return this._popup && this._popup.toggle(this), this },
1838            isPopupOpen: function() { return !!this._popup && this._popup.isOpen() },
1839            setPopupContent: function(t) { return this._popup && this._popup.setContent(t), this },
1840            getPopup: function() { return this._popup },
1841            _openPopup: function(t) {
1842                var e;
1843                this._popup && this._map && (Re(t), e = t.layer || t.target, this._popup._source !== e || e instanceof fi ? (this._popup._source = e, this.openPopup(t.latlng)) : this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(t.latlng))
1844            },
1845            _movePopup: function(t) { this._popup.setLatLng(t.latlng) },
1846            _onKeyPress: function(t) { 13 === t.originalEvent.keyCode && this._openPopup(t) }
1847        }), Ai.extend({
1848            options: { pane: "tooltipPane", offset: [0, 0], direction: "auto", permanent: !1, sticky: !1, opacity: .9 },
1849            onAdd: function(t) { Ai.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)) },
1850            onRemove: function(t) { Ai.prototype.onRemove.call(this, t), t.fire("tooltipclose", { tooltip: this }), this._source && (this.removeEventParent(this._source), this._source.fire("tooltipclose", { tooltip: this }, !0)) },
1851            getEvents: function() { var t = Ai.prototype.getEvents.call(this); return this.options.permanent || (t.preclick = this.close), t },
1852            _initLayout: function() {
1853                var t = "leaflet-tooltip " + (this.options.className || "") + " leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide");
1854                this._contentNode = this._container = P("div", t), this._container.setAttribute("role", "tooltip"), this._container.setAttribute("id", "leaflet-tooltip-" + h(this))
1855            },
1856            _updateLayout: function() {},
1857            _adjustPan: function() {},
1858            _setPosition: function(t) {
1859                var e, i = this._map,
1860                    n = this._container,
1861                    o = i.latLngToContainerPoint(i.getCenter()),
1862                    i = i.layerPointToContainerPoint(t),
1863                    s = this.options.direction,
1864                    r = n.offsetWidth,
1865                    a = n.offsetHeight,
1866                    h = m(this.options.offset),
1867                    l = this._getAnchor(),
1868                    i = "top" === s ? (e = r / 2, a) : "bottom" === s ? (e = r / 2, 0) : (e = "center" === s ? r / 2 : "right" === s ? 0 : "left" === s ? r : i.x < o.x ? (s = "right", 0) : (s = "left", r + 2 * (h.x + l.x)), a / 2);
1869                t = t.subtract(m(e, i, !0)).add(h).add(l), z(n, "leaflet-tooltip-right"), z(n, "leaflet-tooltip-left"), z(n, "leaflet-tooltip-top"), z(n, "leaflet-tooltip-bottom"), M(n, "leaflet-tooltip-" + s), Z(n, t)
1870            },
1871            _updatePosition: function() {
1872                var t = this._map.latLngToLayerPoint(this._latlng);
1873                this._setPosition(t)
1874            },
1875            setOpacity: function(t) { this.options.opacity = t, this._container && C(this._container, t) },
1876            _animateZoom: function(t) {
1877                t = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center);
1878                this._setPosition(t)
1879            },
1880            _getAnchor: function() { return m(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]) }
1881        })),
1882        Ri = (A.include({ openTooltip: function(t, e, i) { return this._initOverlay(Ii, t, e, i).openOn(this), this }, closeTooltip: function(t) { return t.close(), this } }), o.include({
1883            bindTooltip: function(t, e) { return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(Ii, this._tooltip, t, e), this._initTooltipInteractions(), this._tooltip.options.permanent && this._map && this._map.hasLayer(this) && this.openTooltip(), this },
1884            unbindTooltip: function() { return this._tooltip && (this._initTooltipInteractions(!0), this.closeTooltip(), this._tooltip = null), this },
1885            _initTooltipInteractions: function(t) { var e, i;!t && this._tooltipHandlersAdded || (e = t ? "off" : "on", i = { remove: this.closeTooltip, move: this._moveTooltip }, this._tooltip.options.permanent ? i.add = this._openTooltip : (i.mouseover = this._openTooltip, i.mouseout = this.closeTooltip, i.click = this._openTooltip, this._map ? this._addFocusListeners() : i.add = this._addFocusListeners), this._tooltip.options.sticky && (i.mousemove = this._moveTooltip), this[e](i), this._tooltipHandlersAdded = !t) },
1886            openTooltip: function(t) { return this._tooltip && (this instanceof ci || (this._tooltip._source = this), this._tooltip._prepareOpen(t) && (this._tooltip.openOn(this._map), this.getElement ? this._setAriaDescribedByOnLayer(this) : this.eachLayer && this.eachLayer(this._setAriaDescribedByOnLayer, this))), this },
1887            closeTooltip: function() { if (this._tooltip) return this._tooltip.close() },
1888            toggleTooltip: function() { return this._tooltip && this._tooltip.toggle(this), this },
1889            isTooltipOpen: function() { return this._tooltip.isOpen() },
1890            setTooltipContent: function(t) { return this._tooltip && this._tooltip.setContent(t), this },
1891            getTooltip: function() { return this._tooltip },
1892            _addFocusListeners: function() { this.getElement ? this._addFocusListenersOnLayer(this) : this.eachLayer && this.eachLayer(this._addFocusListenersOnLayer, this) },
1893            _addFocusListenersOnLayer: function(t) {
1894                var e = "function" == typeof t.getElement && t.getElement();
1895                e && (S(e, "focus", function() { this._tooltip._source = t, this.openTooltip() }, this), S(e, "blur", this.closeTooltip, this))
1896            },
1897            _setAriaDescribedByOnLayer: function(t) {
1898                t = "function" == typeof t.getElement && t.getElement();
1899                t && t.setAttribute("aria-describedby", this._tooltip._container.id)
1900            },
1901            _openTooltip: function(t) {
1902                var e;
1903                this._tooltip && this._map && (this._map.dragging && this._map.dragging.moving() && !this._openOnceFlag ? (this._openOnceFlag = !0, (e = this)._map.once("moveend", function() { e._openOnceFlag = !1, e._openTooltip(t) })) : (this._tooltip._source = t.layer || t.target, this.openTooltip(this._tooltip.options.sticky ? t.latlng : void 0)))
1904            },
1905            _moveTooltip: function(t) {
1906                var e = t.latlng;
1907                this._tooltip.options.sticky && t.originalEvent && (t = this._map.mouseEventToContainerPoint(t.originalEvent), t = this._map.containerPointToLayerPoint(t), e = this._map.layerPointToLatLng(t)), this._tooltip.setLatLng(e)
1908            }
1909        }), di.extend({
1910            options: { iconSize: [12, 12], html: !1, bgPos: null, className: "leaflet-div-icon" },
1911            createIcon: function(t) {
1912                var t = t && "DIV" === t.tagName ? t : document.createElement("div"),
1913                    e = this.options;
1914                return e.html instanceof Element ? (me(t), t.appendChild(e.html)) : t.innerHTML = !1 !== e.html ? e.html : "", e.bgPos && (e = m(e.bgPos), t.style.backgroundPosition = -e.x + "px " + -e.y + "px"), this._setIconStyles(t, "icon"), t
1915            },
1916            createShadow: function() { return null }
1917        }));
1918    di.Default = _i;
1919    var Ni = o.extend({
1920        options: { tileSize: 256, opacity: 1, updateWhenIdle: b.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 },
1921        initialize: function(t) { c(this, t) },
1922        onAdd: function() { this._initContainer(), this._levels = {}, this._tiles = {}, this._resetView() },
1923        beforeAdd: function(t) { t._addZoomLimit(this) },
1924        onRemove: function(t) { this._removeAllTiles(), T(this._container), t._removeZoomLimit(this), this._container = null, this._tileZoom = void 0 },
1925        bringToFront: function() { return this._map && (fe(this._container), this._setAutoZIndex(Math.max)), this },
1926        bringToBack: function() { return this._map && (ge(this._container), this._setAutoZIndex(Math.min)), this },
1927        getContainer: function() { return this._container },
1928        setOpacity: function(t) { return this.options.opacity = t, this._updateOpacity(), this },
1929        setZIndex: function(t) { return this.options.zIndex = t, this._updateZIndex(), this },
1930        isLoading: function() { return this._loading },
1931        redraw: function() { var t; return this._map && (this._removeAllTiles(), (t = this._clampZoom(this._map.getZoom())) !== this._tileZoom && (this._tileZoom = t, this._updateLevels()), this._update()), this },
1932        getEvents: function() { var t = { viewprereset: this._invalidateAll, viewreset: this._resetView, zoom: this._resetView, moveend: this._onMoveEnd }; return this.options.updateWhenIdle || (this._onMove || (this._onMove = j(this._onMoveEnd, this.options.updateInterval, this)), t.move = this._onMove), this._zoomAnimated && (t.zoomanim = this._animateZoom), t },
1933        createTile: function() { return document.createElement("div") },
1934        getTileSize: function() { var t = this.options.tileSize; return t instanceof p ? t : new p(t, t) },
1935        _updateZIndex: function() { this._container && void 0 !== this.options.zIndex && null !== this.options.zIndex && (this._container.style.zIndex = this.options.zIndex) },
1936        _setAutoZIndex: function(t) {
1937            for (var e, i = this.getPane().children, n = -t(-1 / 0, 1 / 0), o = 0, s = i.length; o < s; o++) e = i[o].style.zIndex, i[o] !== this._container && e && (n = t(n, +e));
1938            isFinite(n) && (this.options.zIndex = n + t(-1, 1), this._updateZIndex())
1939        },
1940        _updateOpacity: function() {
1941            if (this._map && !b.ielt9) {
1942                C(this._container, this.options.opacity);
1943                var t, e = +new Date,
1944                    i = !1,
1945                    n = !1;
1946                for (t in this._tiles) {
1947                    var o, s = this._tiles[t];
1948                    s.current && s.loaded && (o = Math.min(1, (e - s.loaded) / 200), C(s.el, o), o < 1 ? i = !0 : (s.active ? n = !0 : this._onOpaqueTile(s), s.active = !0))
1949                }
1950                n && !this._noPrune && this._pruneTiles(), i && (r(this._fadeFrame), this._fadeFrame = x(this._updateOpacity, this))
1951            }
1952        },
1953        _onOpaqueTile: u,
1954        _initContainer: function() { this._container || (this._container = P("div", "leaflet-layer " + (this.options.className || "")), this._updateZIndex(), this.options.opacity < 1 && this._updateOpacity(), this.getPane().appendChild(this._container)) },
1955        _updateLevels: function() {
1956            var t = this._tileZoom,
1957                e = this.options.maxZoom;
1958            if (void 0 !== t) {
1959                for (var i in this._levels) i = Number(i), this._levels[i].el.children.length || i === t ? (this._levels[i].el.style.zIndex = e - Math.abs(t - i), this._onUpdateLevel(i)) : (T(this._levels[i].el), this._removeTilesAtZoom(i), this._onRemoveLevel(i), delete this._levels[i]);
1960                var n = this._levels[t],
1961                    o = this._map;
1962                return n || ((n = this._levels[t] = {}).el = P("div", "leaflet-tile-container leaflet-zoom-animated", this._container), n.el.style.zIndex = e, n.origin = o.project(o.unproject(o.getPixelOrigin()), t).round(), n.zoom = t, this._setZoomTransform(n, o.getCenter(), o.getZoom()), u(n.el.offsetWidth), this._onCreateLevel(n)), this._level = n
1963            }
1964        },
1965        _onUpdateLevel: u,
1966        _onRemoveLevel: u,
1967        _onCreateLevel: u,
1968        _pruneTiles: function() {
1969            if (this._map) {
1970                var t, e, i, n = this._map.getZoom();
1971                if (n > this.options.maxZoom || n < this.options.minZoom) this._removeAllTiles();
1972                else { for (t in this._tiles)(i = this._tiles[t]).retain = i.current; for (t in this._tiles)(i = this._tiles[t]).current && !i.active && (e = i.coords, this._retainParent(e.x, e.y, e.z, e.z - 5) || this._retainChildren(e.x, e.y, e.z, e.z + 2)); for (t in this._tiles) this._tiles[t].retain || this._removeTile(t) }
1973            }
1974        },
1975        _removeTilesAtZoom: function(t) { for (var e in this._tiles) this._tiles[e].coords.z === t && this._removeTile(e) },
1976        _removeAllTiles: function() { for (var t in this._tiles) this._removeTile(t) },
1977        _invalidateAll: function() {
1978            for (var t in this._levels) T(this._levels[t].el), this._onRemoveLevel(Number(t)), delete this._levels[t];
1979            this._removeAllTiles(), this._tileZoom = void 0
1980        },
1981        _retainParent: function(t, e, i, n) {
1982            var t = Math.floor(t / 2),
1983                e = Math.floor(e / 2),
1984                i = i - 1,
1985                o = new p(+t, +e),
1986                o = (o.z = i, this._tileCoordsToKey(o)),
1987                o = this._tiles[o];
1988            return o && o.active ? o.retain = !0 : (o && o.loaded && (o.retain = !0), n < i && this._retainParent(t, e, i, n))
1989        },
1990        _retainChildren: function(t, e, i, n) {
1991            for (var o = 2 * t; o < 2 * t + 2; o++)
1992                for (var s = 2 * e; s < 2 * e + 2; s++) {
1993                    var r = new p(o, s),
1994                        r = (r.z = i + 1, this._tileCoordsToKey(r)),
1995                        r = this._tiles[r];
1996                    r && r.active ? r.retain = !0 : (r && r.loaded && (r.retain = !0), i + 1 < n && this._retainChildren(o, s, i + 1, n))
1997                }
1998        },
1999        _resetView: function(t) {
2000            t = t && (t.pinch || t.flyTo);
2001            this._setView(this._map.getCenter(), this._map.getZoom(), t, t)
2002        },
2003        _animateZoom: function(t) { this._setView(t.center, t.zoom, !0, t.noUpdate) },
2004        _clampZoom: function(t) { var e = this.options; return void 0 !== e.minNativeZoom && t < e.minNativeZoom ? e.minNativeZoom : void 0 !== e.maxNativeZoom && e.maxNativeZoom < t ? e.maxNativeZoom : t },
2005        _setView: function(t, e, i, n) {
2006            var o = Math.round(e),
2007                o = void 0 !== this.options.maxZoom && o > this.options.maxZoom || void 0 !== this.options.minZoom && o < this.options.minZoom ? void 0 : this._clampZoom(o),
2008                s = this.options.updateWhenZooming && o !== this._tileZoom;
2009            n && !s || (this._tileZoom = o, this._abortLoading && this._abortLoading(), this._updateLevels(), this._resetGrid(), void 0 !== o && this._update(t), i || this._pruneTiles(), this._noPrune = !!i), this._setZoomTransforms(t, e)
2010        },
2011        _setZoomTransforms: function(t, e) { for (var i in this._levels) this._setZoomTransform(this._levels[i], t, e) },
2012        _setZoomTransform: function(t, e, i) {
2013            var n = this._map.getZoomScale(i, t.zoom),
2014                e = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
2015            b.any3d ? be(t.el, e, n) : Z(t.el, e)
2016        },
2017        _resetGrid: function() {
2018            var t = this._map,
2019                e = t.options.crs,
2020                i = this._tileSize = this.getTileSize(),
2021                n = this._tileZoom,
2022                o = this._map.getPixelWorldBounds(this._tileZoom);
2023            o && (this._globalTileRange = this._pxBoundsToTileRange(o)), this._wrapX = e.wrapLng && !this.options.noWrap && [Math.floor(t.project([0, e.wrapLng[0]], n).x / i.x), Math.ceil(t.project([0, e.wrapLng[1]], n).x / i.y)], this._wrapY = e.wrapLat && !this.options.noWrap && [Math.floor(t.project([e.wrapLat[0], 0], n).y / i.x), Math.ceil(t.project([e.wrapLat[1], 0], n).y / i.y)]
2024        },
2025        _onMoveEnd: function() { this._map && !this._map._animatingZoom && this._update() },
2026        _getTiledPixelBounds: function(t) {
2027            var e = this._map,
2028                i = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(),
2029                i = e.getZoomScale(i, this._tileZoom),
2030                t = e.project(t, this._tileZoom).floor(),
2031                e = e.getSize().divideBy(2 * i);
2032            return new f(t.subtract(e), t.add(e))
2033        },
2034        _update: function(t) {
2035            var e = this._map;
2036            if (e) {
2037                var i = this._clampZoom(e.getZoom());
2038                if (void 0 === t && (t = e.getCenter()), void 0 !== this._tileZoom) {
2039                    var n, e = this._getTiledPixelBounds(t),
2040                        o = this._pxBoundsToTileRange(e),
2041                        s = o.getCenter(),
2042                        r = [],
2043                        e = this.options.keepBuffer,
2044                        a = new f(o.getBottomLeft().subtract([e, -e]), o.getTopRight().add([e, -e]));
2045                    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");
2046                    for (n in this._tiles) {
2047                        var h = this._tiles[n].coords;
2048                        h.z === this._tileZoom && a.contains(new p(h.x, h.y)) || (this._tiles[n].current = !1)
2049                    }
2050                    if (1 < Math.abs(i - this._tileZoom)) this._setView(t, i);
2051                    else {
2052                        for (var l = o.min.y; l <= o.max.y; l++)
2053                            for (var u = o.min.x; u <= o.max.x; u++) {
2054                                var c, d = new p(u, l);
2055                                d.z = this._tileZoom, this._isValidTile(d) && ((c = this._tiles[this._tileCoordsToKey(d)]) ? c.current = !0 : r.push(d))
2056                            }
2057                        if (r.sort(function(t, e) { return t.distanceTo(s) - e.distanceTo(s) }), 0 !== r.length) {
2058                            this._loading || (this._loading = !0, this.fire("loading"));
2059                            for (var _ = document.createDocumentFragment(), u = 0; u < r.length; u++) this._addTile(r[u], _);
2060                            this._level.el.appendChild(_)
2061                        }
2062                    }
2063                }
2064            }
2065        },
2066        _isValidTile: function(t) { var e = this._map.options.crs; if (!e.infinite) { var i = this._globalTileRange; if (!e.wrapLng && (t.x < i.min.x || t.x > i.max.x) || !e.wrapLat && (t.y < i.min.y || t.y > i.max.y)) return !1 } return !this.options.bounds || (e = this._tileCoordsToBounds(t), g(this.options.bounds).overlaps(e)) },
2067        _keyToBounds: function(t) { return this._tileCoordsToBounds(this._keyToTileCoords(t)) },
2068        _tileCoordsToNwSe: function(t) {
2069            var e = this._map,
2070                i = this.getTileSize(),
2071                n = t.scaleBy(i),
2072                i = n.add(i);
2073            return [e.unproject(n, t.z), e.unproject(i, t.z)]
2074        },
2075        _tileCoordsToBounds: function(t) { t = this._tileCoordsToNwSe(t), t = new s(t[0], t[1]); return t = this.options.noWrap ? t : this._map.wrapLatLngBounds(t) },
2076        _tileCoordsToKey: function(t) { return t.x + ":" + t.y + ":" + t.z },
2077        _keyToTileCoords: function(t) {
2078            var t = t.split(":"),
2079                e = new p(+t[0], +t[1]);
2080            return e.z = +t[2], e
2081        },
2082        _removeTile: function(t) {
2083            var e = this._tiles[t];
2084            e && (T(e.el), delete this._tiles[t], this.fire("tileunload", { tile: e.el, coords: this._keyToTileCoords(t) }))
2085        },
2086        _initTile: function(t) {
2087            M(t, "leaflet-tile");
2088            var e = this.getTileSize();
2089            t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = u, t.onmousemove = u, b.ielt9 && this.options.opacity < 1 && C(t, this.options.opacity)
2090        },
2091        _addTile: function(t, e) {
2092            var i = this._getTilePos(t),
2093                n = this._tileCoordsToKey(t),
2094                o = this.createTile(this._wrapCoords(t), a(this._tileReady, this, t));
2095            this._initTile(o), this.createTile.length < 2 && x(a(this._tileReady, this, t, null, o)), Z(o, i), this._tiles[n] = { el: o, coords: t, current: !0 }, e.appendChild(o), this.fire("tileloadstart", { tile: o, coords: t })
2096        },
2097        _tileReady: function(t, e, i) {
2098            e && this.fire("tileerror", { error: e, tile: i, coords: t });
2099            var n = this._tileCoordsToKey(t);
2100            (i = this._tiles[n]) && (i.loaded = +new Date, this._map._fadeAnimated ? (C(i.el, 0), r(this._fadeFrame), this._fadeFrame = x(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (M(i.el, "leaflet-tile-loaded"), this.fire("tileload", { tile: i.el, coords: t })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), b.ielt9 || !this._map._fadeAnimated ? x(this._pruneTiles, this) : setTimeout(a(this._pruneTiles, this), 250)))
2101        },
2102        _getTilePos: function(t) { return t.scaleBy(this.getTileSize()).subtract(this._level.origin) },
2103        _wrapCoords: function(t) { var e = new p(this._wrapX ? H(t.x, this._wrapX) : t.x, this._wrapY ? H(t.y, this._wrapY) : t.y); return e.z = t.z, e },
2104        _pxBoundsToTileRange: function(t) { var e = this.getTileSize(); return new f(t.min.unscaleBy(e).floor(), t.max.unscaleBy(e).ceil().subtract([1, 1])) },
2105        _noTilesToLoad: function() {
2106            for (var t in this._tiles)
2107                if (!this._tiles[t].loaded) return !1;
2108            return !0
2109        }
2110    });
2111    var Di = Ni.extend({
2112        options: { minZoom: 0, maxZoom: 18, subdomains: "abc", errorTileUrl: "", zoomOffset: 0, tms: !1, zoomReverse: !1, detectRetina: !1, crossOrigin: !1, referrerPolicy: !1 },
2113        initialize: function(t, e) { this._url = t, (e = c(this, e)).detectRetina && b.retina && 0 < e.maxZoom ? (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), "string" == typeof e.subdomains && (e.subdomains = e.subdomains.split("")), this.on("tileunload", this._onTileRemove) },
2114        setUrl: function(t, e) { return this._url === t && void 0 === e && (e = !0), this._url = t, e || this.redraw(), this },
2115        createTile: function(t, e) { var i = document.createElement("img"); return S(i, "load", a(this._tileOnLoad, this, e, i)), S(i, "error", a(this._tileOnError, this, e, i)), !this.options.crossOrigin && "" !== this.options.crossOrigin || (i.crossOrigin = !0 === this.options.crossOrigin ? "" : this.options.crossOrigin), "string" == typeof this.options.referrerPolicy && (i.referrerPolicy = this.options.referrerPolicy), i.alt = "", i.src = this.getTileUrl(t), i },
2116        getTileUrl: function(t) { var e = { r: b.retina ? "@2x" : "", s: this._getSubdomain(t), x: t.x, y: t.y, z: this._getZoomForUrl() }; return this._map && !this._map.options.crs.infinite && (t = this._globalTileRange.max.y - t.y, this.options.tms && (e.y = t), e["-y"] = t), q(this._url, l(e, this.options)) },
2117        _tileOnLoad: function(t, e) { b.ielt9 ? setTimeout(a(t, this, null, e), 0) : t(null, e) },
2118        _tileOnError: function(t, e, i) {
2119            var n = this.options.errorTileUrl;
2120            n && e.getAttribute("src") !== n && (e.src = n), t(i, e)
2121        },
2122        _onTileRemove: function(t) { t.tile.onload = null },
2123        _getZoomForUrl: function() {
2124            var t = this._tileZoom,
2125                e = this.options.maxZoom;
2126            return (t = this.options.zoomReverse ? e - t : t) + this.options.zoomOffset
2127        },
2128        _getSubdomain: function(t) { t = Math.abs(t.x + t.y) % this.options.subdomains.length; return this.options.subdomains[t] },
2129        _abortLoading: function() { var t, e, i; for (t in this._tiles) this._tiles[t].coords.z !== this._tileZoom && ((i = this._tiles[t].el).onload = u, i.onerror = u, i.complete || (i.src = K, e = this._tiles[t].coords, T(i), delete this._tiles[t], this.fire("tileabort", { tile: i, coords: e }))) },
2130        _removeTile: function(t) { var e = this._tiles[t]; if (e) return e.el.setAttribute("src", K), Ni.prototype._removeTile.call(this, t) },
2131        _tileReady: function(t, e, i) { if (this._map && (!i || i.getAttribute("src") !== K)) return Ni.prototype._tileReady.call(this, t, e, i) }
2132    });
2133
2134    function ji(t, e) { return new Di(t, e) }
2135    var Hi = Di.extend({
2136        defaultWmsParams: { service: "WMS", request: "GetMap", layers: "", styles: "", format: "image/jpeg", transparent: !1, version: "1.1.1" },
2137        options: { crs: null, uppercase: !1 },
2138        initialize: function(t, e) {
2139            this._url = t;
2140            var i, n = l({}, this.defaultWmsParams);
2141            for (i in e) i in this.options || (n[i] = e[i]);
2142            var t = (e = c(this, e)).detectRetina && b.retina ? 2 : 1,
2143                o = this.getTileSize();
2144            n.width = o.x * t, n.height = o.y * t, this.wmsParams = n
2145        },
2146        onAdd: function(t) {
2147            this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
2148            var e = 1.3 <= this._wmsVersion ? "crs" : "srs";
2149            this.wmsParams[e] = this._crs.code, Di.prototype.onAdd.call(this, t)
2150        },
2151        getTileUrl: function(t) {
2152            var e = this._tileCoordsToNwSe(t),
2153                i = this._crs,
2154                i = _(i.project(e[0]), i.project(e[1])),
2155                e = i.min,
2156                i = i.max,
2157                e = (1.3 <= this._wmsVersion && this._crs === li ? [e.y, e.x, i.y, i.x] : [e.x, e.y, i.x, i.y]).join(","),
2158                i = Di.prototype.getTileUrl.call(this, t);
2159            return i + U(this.wmsParams, i, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + e
2160        },
2161        setParams: function(t, e) { return l(this.wmsParams, t), e || this.redraw(), this }
2162    });
2163    Di.WMS = Hi, ji.wms = function(t, e) { return new Hi(t, e) };
2164    var Wi = o.extend({
2165            options: { padding: .1 },
2166            initialize: function(t) { c(this, t), h(this), this._layers = this._layers || {} },
2167            onAdd: function() { this._container || (this._initContainer(), M(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this) },
2168            onRemove: function() { this.off("update", this._updatePaths, this), this._destroyContainer() },
2169            getEvents: function() { var t = { viewreset: this._reset, zoom: this._onZoom, moveend: this._update, zoomend: this._onZoomEnd }; return this._zoomAnimated && (t.zoomanim = this._onAnimZoom), t },
2170            _onAnimZoom: function(t) { this._updateTransform(t.center, t.zoom) },
2171            _onZoom: function() { this._updateTransform(this._map.getCenter(), this._map.getZoom()) },
2172            _updateTransform: function(t, e) {
2173                var i = this._map.getZoomScale(e, this._zoom),
2174                    n = this._map.getSize().multiplyBy(.5 + this.options.padding),
2175                    o = this._map.project(this._center, e),
2176                    n = n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t, e));
2177                b.any3d ? be(this._container, n, i) : Z(this._container, n)
2178            },
2179            _reset: function() { for (var t in this._update(), this._updateTransform(this._center, this._zoom), this._layers) this._layers[t]._reset() },
2180            _onZoomEnd: function() { for (var t in this._layers) this._layers[t]._project() },
2181            _updatePaths: function() { for (var t in this._layers) this._layers[t]._update() },
2182            _update: function() {
2183                var t = this.options.padding,
2184                    e = this._map.getSize(),
2185                    i = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();
2186                this._bounds = new f(i, i.add(e.multiplyBy(1 + 2 * t)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom()
2187            }
2188        }),
2189        Fi = Wi.extend({
2190            options: { tolerance: 0 },
2191            getEvents: function() { var t = Wi.prototype.getEvents.call(this); return t.viewprereset = this._onViewPreReset, t },
2192            _onViewPreReset: function() { this._postponeUpdatePaths = !0 },
2193            onAdd: function() { Wi.prototype.onAdd.call(this), this._draw() },
2194            _initContainer: function() {
2195                var t = this._container = document.createElement("canvas");
2196                S(t, "mousemove", this._onMouseMove, this), S(t, "click dblclick mousedown mouseup contextmenu", this._onClick, this), S(t, "mouseout", this._handleMouseOut, this), t._leaflet_disable_events = !0, this._ctx = t.getContext("2d")
2197            },
2198            _destroyContainer: function() { r(this._redrawRequest), delete this._ctx, T(this._container), k(this._container), delete this._container },
2199            _updatePaths: function() {
2200                if (!this._postponeUpdatePaths) {
2201                    for (var t in this._redrawBounds = null, this._layers) this._layers[t]._update();
2202                    this._redraw()
2203                }
2204            },
2205            _update: function() {
2206                var t, e, i, n;
2207                this._map._animatingZoom && this._bounds || (Wi.prototype._update.call(this), t = this._bounds, e = this._container, i = t.getSize(), n = b.retina ? 2 : 1, Z(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", b.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update"))
2208            },
2209            _reset: function() { Wi.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths()) },
2210            _initPath: function(t) {
2211                this._updateDashArray(t);
2212                t = (this._layers[h(t)] = t)._order = { layer: t, prev: this._drawLast, next: null };
2213                this._drawLast && (this._drawLast.next = t), this._drawLast = t, this._drawFirst = this._drawFirst || this._drawLast
2214            },
2215            _addPath: function(t) { this._requestRedraw(t) },
2216            _removePath: function(t) {
2217                var e = t._order,
2218                    i = e.next,
2219                    e = e.prev;
2220                i ? i.prev = e : this._drawLast = e, e ? e.next = i : this._drawFirst = i, delete t._order, delete this._layers[h(t)], this._requestRedraw(t)
2221            },
2222            _updatePath: function(t) { this._extendRedrawBounds(t), t._project(), t._update(), this._requestRedraw(t) },
2223            _updateStyle: function(t) { this._updateDashArray(t), this._requestRedraw(t) },
2224            _updateDashArray: function(t) {
2225                if ("string" == typeof t.options.dashArray) {
2226                    for (var e, i = t.options.dashArray.split(/[, ]+/), n = [], o = 0; o < i.length; o++) {
2227                        if (e = Number(i[o]), isNaN(e)) return;
2228                        n.push(e)
2229                    }
2230                    t.options._dashArray = n
2231                } else t.options._dashArray = t.options.dashArray
2232            },
2233            _requestRedraw: function(t) { this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest || x(this._redraw, this)) },
2234            _extendRedrawBounds: function(t) {
2235                var e;
2236                t._pxBounds && (e = (t.options.weight || 0) + 1, this._redrawBounds = this._redrawBounds || new f, this._redrawBounds.extend(t._pxBounds.min.subtract([e, e])), this._redrawBounds.extend(t._pxBounds.max.add([e, e])))
2237            },
2238            _redraw: function() { this._redrawRequest = null, this._redrawBounds && (this._redrawBounds.min._floor(), this._redrawBounds.max._ceil()), this._clear(), this._draw(), this._redrawBounds = null },
2239            _clear: function() {
2240                var t, e = this._redrawBounds;
2241                e ? (t = e.getSize(), this._ctx.clearRect(e.min.x, e.min.y, t.x, t.y)) : (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())
2242            },
2243            _draw: function() {
2244                var t, e, i = this._redrawBounds;
2245                this._ctx.save(), i && (e = i.getSize(), this._ctx.beginPath(), this._ctx.rect(i.min.x, i.min.y, e.x, e.y), this._ctx.clip()), this._drawing = !0;
2246                for (var n = this._drawFirst; n; n = n.next) t = n.layer, (!i || t._pxBounds && t._pxBounds.intersects(i)) && t._updatePath();
2247                this._drawing = !1, this._ctx.restore()
2248            },
2249            _updatePoly: function(t, e) {
2250                if (this._drawing) {
2251                    var i, n, o, s, r = t._parts,
2252                        a = r.length,
2253                        h = this._ctx;
2254                    if (a) {
2255                        for (h.beginPath(), i = 0; i < a; i++) {
2256                            for (n = 0, o = r[i].length; n < o; n++) s = r[i][n], h[n ? "lineTo" : "moveTo"](s.x, s.y);
2257                            e && h.closePath()
2258                        }
2259                        this._fillStroke(h, t)
2260                    }
2261                }
2262            },
2263            _updateCircle: function(t) {
2264                var e, i, n, o;
2265                this._drawing && !t._empty() && (e = t._point, i = this._ctx, n = Math.max(Math.round(t._radius), 1), 1 != (o = (Math.max(Math.round(t._radiusY), 1) || n) / n) && (i.save(), i.scale(1, o)), i.beginPath(), i.arc(e.x, e.y / o, n, 0, 2 * Math.PI, !1), 1 != o && i.restore(), this._fillStroke(i, t))
2266            },
2267            _fillStroke: function(t, e) {
2268                var i = e.options;
2269                i.fill && (t.globalAlpha = i.fillOpacity, t.fillStyle = i.fillColor || i.color, t.fill(i.fillRule || "evenodd")), i.stroke && 0 !== i.weight && (t.setLineDash && t.setLineDash(e.options && e.options._dashArray || []), t.globalAlpha = i.opacity, t.lineWidth = i.weight, t.strokeStyle = i.color, t.lineCap = i.lineCap, t.lineJoin = i.lineJoin, t.stroke())
2270            },
2271            _onClick: function(t) {
2272                for (var e, i, n = this._map.mouseEventToLayerPoint(t), o = this._drawFirst; o; o = o.next)(e = o.layer).options.interactive && e._containsPoint(n) && (("click" === t.type || "preclick" === t.type) && this._map._draggableMoved(e) || (i = e));
2273                this._fireEvent(!!i && [i], t)
2274            },
2275            _onMouseMove: function(t) { var e;!this._map || this._map.dragging.moving() || this._map._animatingZoom || (e = this._map.mouseEventToLayerPoint(t), this._handleMouseHover(t, e)) },
2276            _handleMouseOut: function(t) {
2277                var e = this._hoveredLayer;
2278                e && (z(this._container, "leaflet-interactive"), this._fireEvent([e], t, "mouseout"), this._hoveredLayer = null, this._mouseHoverThrottled = !1)
2279            },
2280            _handleMouseHover: function(t, e) {
2281                if (!this._mouseHoverThrottled) {
2282                    for (var i, n, o = this._drawFirst; o; o = o.next)(i = o.layer).options.interactive && i._containsPoint(e) && (n = i);
2283                    n !== this._hoveredLayer && (this._handleMouseOut(t), n && (M(this._container, "leaflet-interactive"), this._fireEvent([n], t, "mouseover"), this._hoveredLayer = n)), this._fireEvent(!!this._hoveredLayer && [this._hoveredLayer], t), this._mouseHoverThrottled = !0, setTimeout(a(function() { this._mouseHoverThrottled = !1 }, this), 32)
2284                }
2285            },
2286            _fireEvent: function(t, e, i) { this._map._fireDOMEvent(e, i || e.type, t) },
2287            _bringToFront: function(t) {
2288                var e, i, n = t._order;
2289                n && (e = n.next, i = n.prev, e && ((e.prev = i) ? i.next = e : e && (this._drawFirst = e), n.prev = this._drawLast, (this._drawLast.next = n).next = null, this._drawLast = n, this._requestRedraw(t)))
2290            },
2291            _bringToBack: function(t) {
2292                var e, i, n = t._order;
2293                n && (e = n.next, (i = n.prev) && ((i.next = e) ? e.prev = i : i && (this._drawLast = i), n.prev = null, n.next = this._drawFirst, this._drawFirst.prev = n, this._drawFirst = n, this._requestRedraw(t)))
2294            }
2295        });
2296
2297    function Ui(t) { return b.canvas ? new Fi(t) : null }
2298    var Vi = function() {
2299            try {
2300                return document.namespaces.add("lvml", "urn:schemas-microsoft-com:vml"),
2301                    function(t) { return document.createElement("<lvml:" + t + ' class="lvml">') }
2302            } catch (t) {}
2303            return function(t) { return document.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">') }
2304        }(),
2305        zt = {
2306            _initContainer: function() { this._container = P("div", "leaflet-vml-container") },
2307            _update: function() { this._map._animatingZoom || (Wi.prototype._update.call(this), this.fire("update")) },
2308            _initPath: function(t) {
2309                var e = t._container = Vi("shape");
2310                M(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path = Vi("path"), e.appendChild(t._path), this._updateStyle(t), this._layers[h(t)] = t
2311            },
2312            _addPath: function(t) {
2313                var e = t._container;
2314                this._container.appendChild(e), t.options.interactive && t.addInteractiveTarget(e)
2315            },
2316            _removePath: function(t) {
2317                var e = t._container;
2318                T(e), t.removeInteractiveTarget(e), delete this._layers[h(t)]
2319            },
2320            _updateStyle: function(t) {
2321                var e = t._stroke,
2322                    i = t._fill,
2323                    n = t.options,
2324                    o = t._container;
2325                o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e = e || (t._stroke = Vi("stroke")), o.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = d(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = n.lineCap.replace("butt", "flat"), e.joinstyle = n.lineJoin) : e && (o.removeChild(e), t._stroke = null), n.fill ? (i = i || (t._fill = Vi("fill")), o.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (o.removeChild(i), t._fill = null)
2326            },
2327            _updateCircle: function(t) {
2328                var e = t._point.round(),
2329                    i = Math.round(t._radius),
2330                    n = Math.round(t._radiusY || i);
2331                this._setPath(t, t._empty() ? "M0 0" : "AL " + e.x + "," + e.y + " " + i + "," + n + " 0,23592600")
2332            },
2333            _setPath: function(t, e) { t._path.v = e },
2334            _bringToFront: function(t) { fe(t._container) },
2335            _bringToBack: function(t) { ge(t._container) }
2336        },
2337        qi = b.vml ? Vi : ct,
2338        Gi = Wi.extend({
2339            _initContainer: function() { this._container = qi("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = qi("g"), this._container.appendChild(this._rootGroup) },
2340            _destroyContainer: function() { T(this._container), k(this._container), delete this._container, delete this._rootGroup, delete this._svgSize },
2341            _update: function() {
2342                var t, e, i;
2343                this._map._animatingZoom && this._bounds || (Wi.prototype._update.call(this), e = (t = this._bounds).getSize(), i = this._container, this._svgSize && this._svgSize.equals(e) || (this._svgSize = e, i.setAttribute("width", e.x), i.setAttribute("height", e.y)), Z(i, t.min), i.setAttribute("viewBox", [t.min.x, t.min.y, e.x, e.y].join(" ")), this.fire("update"))
2344            },
2345            _initPath: function(t) {
2346                var e = t._path = qi("path");
2347                t.options.className && M(e, t.options.className), t.options.interactive && M(e, "leaflet-interactive"), this._updateStyle(t), this._layers[h(t)] = t
2348            },
2349            _addPath: function(t) { this._rootGroup || this._initContainer(), this._rootGroup.appendChild(t._path), t.addInteractiveTarget(t._path) },
2350            _removePath: function(t) { T(t._path), t.removeInteractiveTarget(t._path), delete this._layers[h(t)] },
2351            _updatePath: function(t) { t._project(), t._update() },
2352            _updateStyle: function(t) {
2353                var e = t._path,
2354                    t = t.options;
2355                e && (t.stroke ? (e.setAttribute("stroke", t.color), e.setAttribute("stroke-opacity", t.opacity), e.setAttribute("stroke-width", t.weight), e.setAttribute("stroke-linecap", t.lineCap), e.setAttribute("stroke-linejoin", t.lineJoin), t.dashArray ? e.setAttribute("stroke-dasharray", t.dashArray) : e.removeAttribute("stroke-dasharray"), t.dashOffset ? e.setAttribute("stroke-dashoffset", t.dashOffset) : e.removeAttribute("stroke-dashoffset")) : e.setAttribute("stroke", "none"), t.fill ? (e.setAttribute("fill", t.fillColor || t.color), e.setAttribute("fill-opacity", t.fillOpacity), e.setAttribute("fill-rule", t.fillRule || "evenodd")) : e.setAttribute("fill", "none"))
2356            },
2357            _updatePoly: function(t, e) { this._setPath(t, dt(t._parts, e)) },
2358            _updateCircle: function(t) {
2359                var e = t._point,
2360                    i = Math.max(Math.round(t._radius), 1),
2361                    n = "a" + i + "," + (Math.max(Math.round(t._radiusY), 1) || i) + " 0 1,0 ",
2362                    e = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + n + 2 * i + ",0 " + n + 2 * -i + ",0 ";
2363                this._setPath(t, e)
2364            },
2365            _setPath: function(t, e) { t._path.setAttribute("d", e) },
2366            _bringToFront: function(t) { fe(t._path) },
2367            _bringToBack: function(t) { ge(t._path) }
2368        });
2369
2370    function Ki(t) { return b.svg || b.vml ? new Gi(t) : null }
2371    b.vml && Gi.include(zt), A.include({ getRenderer: function(t) { t = (t = t.options.renderer || this._getPaneRenderer(t.options.pane) || this.options.renderer || this._renderer) || (this._renderer = this._createRenderer()); return this.hasLayer(t) || this.addLayer(t), t }, _getPaneRenderer: function(t) { var e; return "overlayPane" !== t && void 0 !== t && (void 0 === (e = this._paneRenderers[t]) && (e = this._createRenderer({ pane: t }), this._paneRenderers[t] = e), e) }, _createRenderer: function(t) { return this.options.preferCanvas && Ui(t) || Ki(t) } });
2372    var Yi = xi.extend({ initialize: function(t, e) { xi.prototype.initialize.call(this, this._boundsToLatLngs(t), e) }, setBounds: function(t) { return this.setLatLngs(this._boundsToLatLngs(t)) }, _boundsToLatLngs: function(t) { return [(t = g(t)).getSouthWest(), t.getNorthWest(), t.getNorthEast(), t.getSouthEast()] } });
2373    Gi.create = qi, Gi.pointsToPath = dt, wi.geometryToLayer = bi, wi.coordsToLatLng = Li, wi.coordsToLatLngs = Ti, wi.latLngToCoords = Mi, wi.latLngsToCoords = zi, wi.getFeature = Ci, wi.asFeature = Zi, A.mergeOptions({ boxZoom: !0 });
2374    var _t = n.extend({
2375            initialize: function(t) { this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this) },
2376            addHooks: function() { S(this._container, "mousedown", this._onMouseDown, this) },
2377            removeHooks: function() { k(this._container, "mousedown", this._onMouseDown, this) },
2378            moved: function() { return this._moved },
2379            _destroy: function() { T(this._pane), delete this._pane },
2380            _resetState: function() { this._resetStateTimeout = 0, this._moved = !1 },
2381            _clearDeferredResetState: function() { 0 !== this._resetStateTimeout && (clearTimeout(this._resetStateTimeout), this._resetStateTimeout = 0) },
2382            _onMouseDown: function(t) {
2383                if (!t.shiftKey || 1 !== t.which && 1 !== t.button) return !1;
2384                this._clearDeferredResetState(), this._resetState(), re(), Le(), this._startPoint = this._map.mouseEventToContainerPoint(t), S(document, { contextmenu: Re, mousemove: this._onMouseMove, mouseup: this._onMouseUp, keydown: this._onKeyDown }, this)
2385            },
2386            _onMouseMove: function(t) {
2387                this._moved || (this._moved = !0, this._box = P("div", "leaflet-zoom-box", this._container), M(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(t);
2388                var t = new f(this._point, this._startPoint),
2389                    e = t.getSize();
2390                Z(this._box, t.min), this._box.style.width = e.x + "px", this._box.style.height = e.y + "px"
2391            },
2392            _finish: function() { this._moved && (T(this._box), z(this._container, "leaflet-crosshair")), ae(), Te(), k(document, { contextmenu: Re, mousemove: this._onMouseMove, mouseup: this._onMouseUp, keydown: this._onKeyDown }, this) },
2393            _onMouseUp: function(t) { 1 !== t.which && 1 !== t.button || (this._finish(), this._moved && (this._clearDeferredResetState(), this._resetStateTimeout = setTimeout(a(this._resetState, this), 0), t = new s(this._map.containerPointToLatLng(this._startPoint), this._map.containerPointToLatLng(this._point)), this._map.fitBounds(t).fire("boxzoomend", { boxZoomBounds: t }))) },
2394            _onKeyDown: function(t) { 27 === t.keyCode && (this._finish(), this._clearDeferredResetState(), this._resetState()) }
2395        }),
2396        Ct = (A.addInitHook("addHandler", "boxZoom", _t), A.mergeOptions({ doubleClickZoom: !0 }), n.extend({
2397            addHooks: function() { this._map.on("dblclick", this._onDoubleClick, this) },
2398            removeHooks: function() { this._map.off("dblclick", this._onDoubleClick, this) },
2399            _onDoubleClick: function(t) {
2400                var e = this._map,
2401                    i = e.getZoom(),
2402                    n = e.options.zoomDelta,
2403                    i = t.originalEvent.shiftKey ? i - n : i + n;
2404                "center" === e.options.doubleClickZoom ? e.setZoom(i) : e.setZoomAround(t.containerPoint, i)
2405            }
2406        })),
2407        Zt = (A.addInitHook("addHandler", "doubleClickZoom", Ct), A.mergeOptions({ dragging: !0, inertia: !0, inertiaDeceleration: 3400, inertiaMaxSpeed: 1 / 0, easeLinearity: .2, worldCopyJump: !1, maxBoundsViscosity: 0 }), n.extend({
2408            addHooks: function() {
2409                var t;
2410                this._draggable || (t = this._map, this._draggable = new Xe(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))), M(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = []
2411            },
2412            removeHooks: function() { z(this._map._container, "leaflet-grab"), z(this._map._container, "leaflet-touch-drag"), this._draggable.disable() },
2413            moved: function() { return this._draggable && this._draggable._moved },
2414            moving: function() { return this._draggable && this._draggable._moving },
2415            _onDragStart: function() {
2416                var t, e = this._map;
2417                e._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity ? (t = g(this._map.options.maxBounds), this._offsetLimit = _(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1), this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())), this._viscosity = Math.min(1, Math.max(0, this._map.options.maxBoundsViscosity))) : this._offsetLimit = null, e.fire("movestart").fire("dragstart"), e.options.inertia && (this._positions = [], this._times = [])
2418            },
2419            _onDrag: function(t) {
2420                var e, i;
2421                this._map.options.inertia && (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)
2422            },
2423            _prunePositions: function(t) { for (; 1 < this._positions.length && 50 < t - this._times[0];) this._positions.shift(), this._times.shift() },
2424            _onZoomEnd: function() {
2425                var t = this._map.getSize().divideBy(2),
2426                    e = this._map.latLngToLayerPoint([0, 0]);
2427                this._initialWorldOffset = e.subtract(t).x, this._worldWidth = this._map.getPixelWorldBounds().getSize().x
2428            },
2429            _viscousLimit: function(t, e) { return t - (t - e) * this._viscosity },
2430            _onPreDragLimit: function() {
2431                var t, e;
2432                this._viscosity && this._offsetLimit && (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))
2433            },
2434            _onPreDragWrap: function() {
2435                var t = this._worldWidth,
2436                    e = Math.round(t / 2),
2437                    i = this._initialWorldOffset,
2438                    n = this._draggable._newPos.x,
2439                    o = (n - e + i) % t + e - i,
2440                    n = (n + e + i) % t - e - i,
2441                    t = Math.abs(o + i) < Math.abs(n + i) ? o : n;
2442                this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = t
2443            },
2444            _onDragEnd: function(t) {
2445                var e, i, n, o, s = this._map,
2446                    r = s.options,
2447                    a = !r.inertia || t.noInertia || this._times.length < 2;
2448                s.fire("dragend", t), !a && (this._prunePositions(+new Date), t = this._lastPos.subtract(this._positions[0]), a = (this._lastTime - this._times[0]) / 1e3, e = r.easeLinearity, a = (t = t.multiplyBy(e / a)).distanceTo([0, 0]), i = Math.min(r.inertiaMaxSpeed, a), t = t.multiplyBy(i / a), n = i / (r.inertiaDeceleration * e), (o = t.multiplyBy(-n / 2).round()).x || o.y) ? (o = s._limitOffset(o, s.options.maxBounds), x(function() { s.panBy(o, { duration: n, easeLinearity: e, noMoveStart: !0, animate: !0 }) })) : s.fire("moveend")
2449            }
2450        })),
2451        St = (A.addInitHook("addHandler", "dragging", Zt), A.mergeOptions({ keyboard: !0, keyboardPanDelta: 80 }), n.extend({
2452            keyCodes: { left: [37], right: [39], down: [40], up: [38], zoomIn: [187, 107, 61, 171], zoomOut: [189, 109, 54, 173] },
2453            initialize: function(t) { this._map = t, this._setPanDelta(t.options.keyboardPanDelta), this._setZoomDelta(t.options.zoomDelta) },
2454            addHooks: function() {
2455                var t = this._map._container;
2456                t.tabIndex <= 0 && (t.tabIndex = "0"), S(t, { focus: this._onFocus, blur: this._onBlur, mousedown: this._onMouseDown }, this), this._map.on({ focus: this._addHooks, blur: this._removeHooks }, this)
2457            },
2458            removeHooks: function() { this._removeHooks(), k(this._map._container, { focus: this._onFocus, blur: this._onBlur, mousedown: this._onMouseDown }, this), this._map.off({ focus: this._addHooks, blur: this._removeHooks }, this) },
2459            _onMouseDown: function() {
2460                var t, e, i;
2461                this._focused || (i = document.body, t = document.documentElement, e = i.scrollTop || t.scrollTop, i = i.scrollLeft || t.scrollLeft, this._map._container.focus(), window.scrollTo(i, e))
2462            },
2463            _onFocus: function() { this._focused = !0, this._map.fire("focus") },
2464            _onBlur: function() { this._focused = !1, this._map.fire("blur") },
2465            _setPanDelta: function(t) { for (var e = this._panKeys = {}, i = this.keyCodes, n = 0, o = i.left.length; n < o; n++) e[i.left[n]] = [-1 * t, 0]; for (n = 0, o = i.right.length; n < o; n++) e[i.right[n]] = [t, 0]; for (n = 0, o = i.down.length; n < o; n++) e[i.down[n]] = [0, t]; for (n = 0, o = i.up.length; n < o; n++) e[i.up[n]] = [0, -1 * t] },
2466            _setZoomDelta: function(t) { for (var e = this._zoomKeys = {}, i = this.keyCodes, n = 0, o = i.zoomIn.length; n < o; n++) e[i.zoomIn[n]] = t; for (n = 0, o = i.zoomOut.length; n < o; n++) e[i.zoomOut[n]] = -t },
2467            _addHooks: function() { S(document, "keydown", this._onKeyDown, this) },
2468            _removeHooks: function() { k(document, "keydown", this._onKeyDown, this) },
2469            _onKeyDown: function(t) {
2470                if (!(t.altKey || t.ctrlKey || t.metaKey)) {
2471                    var e, i, n = t.keyCode,
2472                        o = this._map;
2473                    if (n in this._panKeys) o._panAnim && o._panAnim._inProgress || (i = this._panKeys[n], t.shiftKey && (i = m(i).multiplyBy(3)), o.options.maxBounds && (i = o._limitOffset(m(i), o.options.maxBounds)), o.options.worldCopyJump ? (e = o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(i))), o.panTo(e)) : o.panBy(i));
2474                    else if (n in this._zoomKeys) o.setZoom(o.getZoom() + (t.shiftKey ? 3 : 1) * this._zoomKeys[n]);
2475                    else {
2476                        if (27 !== n || !o._popup || !o._popup.options.closeOnEscapeKey) return;
2477                        o.closePopup()
2478                    }
2479                    Re(t)
2480                }
2481            }
2482        })),
2483        Et = (A.addInitHook("addHandler", "keyboard", St), A.mergeOptions({ scrollWheelZoom: !0, wheelDebounceTime: 40, wheelPxPerZoomLevel: 60 }), n.extend({
2484            addHooks: function() { S(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0 },
2485            removeHooks: function() { k(this._map._container, "wheel", this._onWheelScroll, this) },
2486            _onWheelScroll: function(t) {
2487                var e = He(t),
2488                    i = this._map.options.wheelDebounceTime,
2489                    e = (this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +new Date), Math.max(i - (+new Date - this._startTime), 0));
2490                clearTimeout(this._timer), this._timer = setTimeout(a(this._performZoom, this), e), Re(t)
2491            },
2492            _performZoom: function() {
2493                var t = this._map,
2494                    e = t.getZoom(),
2495                    i = this._map.options.zoomSnap || 0,
2496                    n = (t._stop(), this._delta / (4 * this._map.options.wheelPxPerZoomLevel)),
2497                    n = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(n)))) / Math.LN2,
2498                    i = i ? Math.ceil(n / i) * i : n,
2499                    n = t._limitZoom(e + (0 < this._delta ? i : -i)) - e;
2500                this._delta = 0, this._startTime = null, n && ("center" === t.options.scrollWheelZoom ? t.setZoom(e + n) : t.setZoomAround(this._lastMousePos, e + n))
2501            }
2502        })),
2503        kt = (A.addInitHook("addHandler", "scrollWheelZoom", Et), A.mergeOptions({ tapHold: b.touchNative && b.safari && b.mobile, tapTolerance: 15 }), n.extend({
2504            addHooks: function() { S(this._map._container, "touchstart", this._onDown, this) },
2505            removeHooks: function() { k(this._map._container, "touchstart", this._onDown, this) },
2506            _onDown: function(t) {
2507                var e;
2508                clearTimeout(this._holdTimeout), 1 === t.touches.length && (e = t.touches[0], this._startPos = this._newPos = new p(e.clientX, e.clientY), this._holdTimeout = setTimeout(a(function() { this._cancel(), this._isTapValid() && (S(document, "touchend", O), S(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e)) }, this), 600), S(document, "touchend touchcancel contextmenu", this._cancel, this), S(document, "touchmove", this._onMove, this))
2509            },
2510            _cancelClickPrevent: function t() { k(document, "touchend", O), k(document, "touchend touchcancel", t) },
2511            _cancel: function() { clearTimeout(this._holdTimeout), k(document, "touchend touchcancel contextmenu", this._cancel, this), k(document, "touchmove", this._onMove, this) },
2512            _onMove: function(t) {
2513                t = t.touches[0];
2514                this._newPos = new p(t.clientX, t.clientY)
2515            },
2516            _isTapValid: function() { return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance },
2517            _simulateEvent: function(t, e) {
2518                t = new MouseEvent(t, { bubbles: !0, cancelable: !0, view: window, screenX: e.screenX, screenY: e.screenY, clientX: e.clientX, clientY: e.clientY });
2519                t._simulated = !0, e.target.dispatchEvent(t)
2520            }
2521        })),
2522        Ot = (A.addInitHook("addHandler", "tapHold", kt), A.mergeOptions({ touchZoom: b.touch, bounceAtZoomLimits: !0 }), n.extend({
2523            addHooks: function() { M(this._map._container, "leaflet-touch-zoom"), S(this._map._container, "touchstart", this._onTouchStart, this) },
2524            removeHooks: function() { z(this._map._container, "leaflet-touch-zoom"), k(this._map._container, "touchstart", this._onTouchStart, this) },
2525            _onTouchStart: function(t) { var e, i, n = this._map;!t.touches || 2 !== t.touches.length || n._animatingZoom || this._zooming || (e = n.mouseEventToContainerPoint(t.touches[0]), i = n.mouseEventToContainerPoint(t.touches[1]), this._centerPoint = n.getSize()._divideBy(2), this._startLatLng = n.containerPointToLatLng(this._centerPoint), "center" !== n.options.touchZoom && (this._pinchStartLatLng = n.containerPointToLatLng(e.add(i)._divideBy(2))), this._startDist = e.distanceTo(i), this._startZoom = n.getZoom(), this._moved = !1, this._zooming = !0, n._stop(), S(document, "touchmove", this._onTouchMove, this), S(document, "touchend touchcancel", this._onTouchEnd, this), O(t)) },
2526            _onTouchMove: function(t) {
2527                if (t.touches && 2 === t.touches.length && this._zooming) {
2528                    var e = this._map,
2529                        i = e.mouseEventToContainerPoint(t.touches[0]),
2530                        n = e.mouseEventToContainerPoint(t.touches[1]),
2531                        o = i.distanceTo(n) / this._startDist;
2532                    if (this._zoom = e.getScaleZoom(o, this._startZoom), !e.options.bounceAtZoomLimits && (this._zoom < e.getMinZoom() && o < 1 || this._zoom > e.getMaxZoom() && 1 < o) && (this._zoom = e._limitZoom(this._zoom)), "center" === e.options.touchZoom) { if (this._center = this._startLatLng, 1 == o) return } else {
2533                        i = i._add(n)._divideBy(2)._subtract(this._centerPoint);
2534                        if (1 == o && 0 === i.x && 0 === i.y) return;
2535                        this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(i), this._zoom)
2536                    }
2537                    this._moved || (e._moveStart(!0, !1), this._moved = !0), r(this._animRequest);
2538                    n = a(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
2539                    this._animRequest = x(n, this, !0), O(t)
2540                }
2541            },
2542            _onTouchEnd: function() { this._moved && this._zooming ? (this._zooming = !1, r(this._animRequest), k(document, "touchmove", this._onTouchMove, this), k(document, "touchend touchcancel", this._onTouchEnd, 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))) : this._zooming = !1 }
2543        })),
2544        Xi = (A.addInitHook("addHandler", "touchZoom", Ot), A.BoxZoom = _t, A.DoubleClickZoom = Ct, A.Drag = Zt, A.Keyboard = St, A.ScrollWheelZoom = Et, A.TapHold = kt, A.TouchZoom = Ot, t.Bounds = f, t.Browser = b, t.CRS = ot, t.Canvas = Fi, t.Circle = vi, t.CircleMarker = gi, t.Class = et, t.Control = B, t.DivIcon = Ri, t.DivOverlay = Ai, t.DomEvent = mt, t.DomUtil = pt, t.Draggable = Xe, t.Evented = it, t.FeatureGroup = ci, t.GeoJSON = wi, t.GridLayer = Ni, t.Handler = n, t.Icon = di, t.ImageOverlay = Ei, t.LatLng = v, t.LatLngBounds = s, t.Layer = o, t.LayerGroup = ui, t.LineUtil = vt, t.Map = A, t.Marker = mi, t.Mixin = ft, t.Path = fi, t.Point = p, t.PolyUtil = gt, t.Polygon = xi, t.Polyline = yi, t.Popup = Bi, t.PosAnimation = Fe, t.Projection = wt, t.Rectangle = Yi, t.Renderer = Wi, t.SVG = Gi, t.SVGOverlay = Oi, t.TileLayer = Di, t.Tooltip = Ii, t.Transformation = at, t.Util = tt, t.VideoOverlay = ki, t.bind = a, t.bounds = _, t.canvas = Ui, t.cir
2544cle = function(t, e, i) { return new vi(t, e, i) }, t.circleMarker = function(t, e) { return new gi(t, e) }, t.control = Ue, t.divIcon = function(t) { return new Ri(t) }, t.extend = l, t.featureGroup = function(t, e) { return new ci(t, e) }, t.geoJSON = Si, t.geoJson = Mt, t.gridLayer = function(t) { return new Ni(t) }, t.icon = function(t) { return new di(t) }, t.imageOverlay = function(t, e, i) { return new Ei(t, e, i) }, t.latLng = w, t.latLngBounds = g, t.layerGroup = function(t, e) { return new ui(t, e) }, t.map = function(t, e) { return new A(t, e) }, t.marker = function(t, e) { return new mi(t, e) }, t.point = m, t.polygon = function(t, e) { return new xi(t, e) }, t.polyline = function(t, e) { return new yi(t, e) }, t.popup = function(t, e) { return new Bi(t, e) }, t.rectangle = function(t, e) { return new Yi(t, e) }, t.setOptions = c, t.stamp = h, t.svg = Ki, t.svgOverlay = function(t, e, i) { return new Oi(t, e, i) }, t.tileLayer = ji, t.tooltip = function(t, e) { return new Ii(t, e) }, t.transformation = ht, t.version = "1.9.4", t.videoOverlay = function(t, e, i) { return new ki(t, e, i) }, window.L);
2545    t.noConflict = function() { return window.L = Xi, this }, window.L = t
2546});
2547//# sourceMappingURL=leaflet.js.map

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.