Victoria Hall Booking for Events
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3617 lines
203 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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) {
  6. "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 = {})
  7. }(this, function (t) {
  8. "use strict";
  9. function l(t) {
  10. for (var e, i, n = 1, o = arguments.length; n < o; n++) for (e in i = arguments[n]) t[e] = i[e];
  11. return t
  12. }
  13. var R = Object.create || function (t) {
  14. return N.prototype = t, new N
  15. };
  16. function N() {
  17. }
  18. function a(t, e) {
  19. var i, n = Array.prototype.slice;
  20. return t.bind ? t.bind.apply(t, n.call(arguments, 1)) : (i = n.call(arguments, 2), function () {
  21. return t.apply(e, i.length ? i.concat(n.call(arguments)) : arguments)
  22. })
  23. }
  24. var D = 0;
  25. function h(t) {
  26. return "_leaflet_id" in t || (t._leaflet_id = ++D), t._leaflet_id
  27. }
  28. function j(t, e, i) {
  29. var n, o, s = function () {
  30. n = !1, o && (r.apply(i, o), o = !1)
  31. }, r = function () {
  32. n ? o = arguments : (t.apply(i, arguments), setTimeout(s, e), n = !0)
  33. };
  34. return r
  35. }
  36. function H(t, e, i) {
  37. var n = e[1], e = e[0], o = n - e;
  38. return t === n && i ? t : ((t - e) % o + o) % o + e
  39. }
  40. function u() {
  41. return !1
  42. }
  43. function i(t, e) {
  44. return !1 === e ? t : (e = Math.pow(10, void 0 === e ? 6 : e), Math.round(t * e) / e)
  45. }
  46. function W(t) {
  47. return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "")
  48. }
  49. function F(t) {
  50. return W(t).split(/\s+/)
  51. }
  52. function c(t, e) {
  53. for (var i in Object.prototype.hasOwnProperty.call(t, "options") || (t.options = t.options ? R(t.options) : {}), e) t.options[i] = e[i];
  54. return t.options
  55. }
  56. function U(t, e, i) {
  57. var n, o = [];
  58. for (n in t) o.push(encodeURIComponent(i ? n.toUpperCase() : n) + "=" + encodeURIComponent(t[n]));
  59. return (e && -1 !== e.indexOf("?") ? "&" : "?") + o.join("&")
  60. }
  61. var V = /\{ *([\w_ -]+) *\}/g;
  62. function q(t, i) {
  63. return t.replace(V, function (t, e) {
  64. e = i[e];
  65. if (void 0 === e) throw new Error("No value provided for variable " + t);
  66. return e = "function" == typeof e ? e(i) : e
  67. })
  68. }
  69. var d = Array.isArray || function (t) {
  70. return "[object Array]" === Object.prototype.toString.call(t)
  71. };
  72. function G(t, e) {
  73. for (var i = 0; i < t.length; i++) if (t[i] === e) return i;
  74. return -1
  75. }
  76. var K = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
  77. function Y(t) {
  78. return window["webkit" + t] || window["moz" + t] || window["ms" + t]
  79. }
  80. var X = 0;
  81. function J(t) {
  82. var e = +new Date, i = Math.max(0, 16 - (e - X));
  83. return X = e + i, window.setTimeout(t, i)
  84. }
  85. var $ = window.requestAnimationFrame || Y("RequestAnimationFrame") || J,
  86. Q = window.cancelAnimationFrame || Y("CancelAnimationFrame") || Y("CancelRequestAnimationFrame") || function (t) {
  87. window.clearTimeout(t)
  88. };
  89. function x(t, e, i) {
  90. if (!i || $ !== J) return $.call(window, a(t, e));
  91. t.call(e)
  92. }
  93. function r(t) {
  94. t && Q.call(window, t)
  95. }
  96. var tt = {
  97. __proto__: null,
  98. extend: l,
  99. create: R,
  100. bind: a,
  101. get lastId() {
  102. return D
  103. },
  104. stamp: h,
  105. throttle: j,
  106. wrapNum: H,
  107. falseFn: u,
  108. formatNum: i,
  109. trim: W,
  110. splitWords: F,
  111. setOptions: c,
  112. getParamString: U,
  113. template: q,
  114. isArray: d,
  115. indexOf: G,
  116. emptyImageUrl: K,
  117. requestFn: $,
  118. cancelFn: Q,
  119. requestAnimFrame: x,
  120. cancelAnimFrame: r
  121. };
  122. function et() {
  123. }
  124. et.extend = function (t) {
  125. function e() {
  126. c(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks()
  127. }
  128. var i, n = e.__super__ = this.prototype, o = R(n);
  129. for (i in (o.constructor = e).prototype = o, this) Object.prototype.hasOwnProperty.call(this, i) && "prototype" !== i && "__super__" !== i && (e[i] = this[i]);
  130. if (t.statics && l(e, t.statics), t.includes) {
  131. var s = t.includes;
  132. if ("undefined" != typeof L && L && L.Mixin) {
  133. s = d(s) ? s : [s];
  134. 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)
  135. }
  136. l.apply(null, [o].concat(t.includes))
  137. }
  138. 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 () {
  139. if (!this._initHooksCalled) {
  140. n.callInitHooks && n.callInitHooks.call(this), this._initHooksCalled = !0;
  141. for (var t = 0, e = o._initHooks.length; t < e; t++) o._initHooks[t].call(this)
  142. }
  143. }, e
  144. }, et.include = function (t) {
  145. var e = this.prototype.options;
  146. return l(this.prototype, t), t.options && (this.prototype.options = e, this.mergeOptions(t.options)), this
  147. }, et.mergeOptions = function (t) {
  148. return l(this.prototype.options, t), this
  149. }, et.addInitHook = function (t) {
  150. var e = Array.prototype.slice.call(arguments, 1), i = "function" == typeof t ? t : function () {
  151. this[t].apply(this, e)
  152. };
  153. return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(i), this
  154. };
  155. var e = {
  156. on: function (t, e, i) {
  157. if ("object" == typeof t) for (var n in t) this._on(n, t[n], e); else for (var o = 0, s = (t = F(t)).length; o < s; o++) this._on(t[o], e, i);
  158. return this
  159. }, off: function (t, e, i) {
  160. if (arguments.length) if ("object" == typeof t) for (var n in t) this._off(n, t[n], e); else {
  161. t = F(t);
  162. 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)
  163. } else delete this._events;
  164. return this
  165. }, _on: function (t, e, i, n) {
  166. "function" != typeof e ? console.warn("wrong listener type: " + typeof e) : !1 === this._listens(t, e, i) && (e = {
  167. fn: e,
  168. ctx: i = i === this ? void 0 : i
  169. }, n && (e.once = !0), this._events = this._events || {}, this._events[t] = this._events[t] || [], this._events[t].push(e))
  170. }, _off: function (t, e, i) {
  171. var n, o, s;
  172. if (this._events && (n = this._events[t])) if (1 === arguments.length) {
  173. if (this._firingCount) for (o = 0, s = n.length; o < s; o++) n[o].fn = u;
  174. delete this._events[t]
  175. } 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))
  176. }, fire: function (t, e, i) {
  177. if (this.listens(t, i)) {
  178. var n = l({}, e, {type: t, target: this, sourceTarget: e && e.sourceTarget || this});
  179. if (this._events) {
  180. var o = this._events[t];
  181. if (o) {
  182. this._firingCount = this._firingCount + 1 || 1;
  183. for (var s = 0, r = o.length; s < r; s++) {
  184. var a = o[s], h = a.fn;
  185. a.once && this.off(t, h, a.ctx), h.call(a.ctx || this, n)
  186. }
  187. this._firingCount--
  188. }
  189. }
  190. i && this._propagateEvent(n)
  191. }
  192. return this
  193. }, listens: function (t, e, i, n) {
  194. "string" != typeof t && console.warn('"string" type argument expected');
  195. var o = e, s = ("function" != typeof e && (n = !!e, i = o = void 0), this._events && this._events[t]);
  196. if (s && s.length && !1 !== this._listens(t, o, i)) return !0;
  197. if (n) for (var r in this._eventParents) if (this._eventParents[r].listens(t, e, i, n)) return !0;
  198. return !1
  199. }, _listens: function (t, e, i) {
  200. if (this._events) {
  201. var n = this._events[t] || [];
  202. if (!e) return !!n.length;
  203. i === this && (i = void 0);
  204. for (var o = 0, s = n.length; o < s; o++) if (n[o].fn === e && n[o].ctx === i) return o
  205. }
  206. return !1
  207. }, once: function (t, e, i) {
  208. if ("object" == typeof t) for (var n in t) this._on(n, t[n], e, !0); else for (var o = 0, s = (t = F(t)).length; o < s; o++) this._on(t[o], e, i, !0);
  209. return this
  210. }, addEventParent: function (t) {
  211. return this._eventParents = this._eventParents || {}, this._eventParents[h(t)] = t, this
  212. }, removeEventParent: function (t) {
  213. return this._eventParents && delete this._eventParents[h(t)], this
  214. }, _propagateEvent: function (t) {
  215. for (var e in this._eventParents) this._eventParents[e].fire(t.type, l({
  216. layer: t.target,
  217. propagatedFrom: t.target
  218. }, t), !0)
  219. }
  220. },
  221. 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));
  222. function p(t, e, i) {
  223. this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e
  224. }
  225. var nt = Math.trunc || function (t) {
  226. return 0 < t ? Math.floor(t) : Math.ceil(t)
  227. };
  228. function m(t, e, i) {
  229. 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)
  230. }
  231. function f(t, e) {
  232. if (t) for (var i = e ? [t, e] : t, n = 0, o = i.length; n < o; n++) this.extend(i[n])
  233. }
  234. function _(t, e) {
  235. return !t || t instanceof f ? t : new f(t, e)
  236. }
  237. function s(t, e) {
  238. if (t) for (var i = e ? [t, e] : t, n = 0, o = i.length; n < o; n++) this.extend(i[n])
  239. }
  240. function g(t, e) {
  241. return t instanceof s ? t : new s(t, e)
  242. }
  243. function v(t, e, i) {
  244. if (isNaN(t) || isNaN(e)) throw new Error("Invalid LatLng object: (" + t + ", " + e + ")");
  245. this.lat = +t, this.lng = +e, void 0 !== i && (this.alt = +i)
  246. }
  247. function w(t, e, i) {
  248. 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)
  249. }
  250. p.prototype = {
  251. clone: function () {
  252. return new p(this.x, this.y)
  253. }, add: function (t) {
  254. return this.clone()._add(m(t))
  255. }, _add: function (t) {
  256. return this.x += t.x, this.y += t.y, this
  257. }, subtract: function (t) {
  258. return this.clone()._subtract(m(t))
  259. }, _subtract: function (t) {
  260. return this.x -= t.x, this.y -= t.y, this
  261. }, divideBy: function (t) {
  262. return this.clone()._divideBy(t)
  263. }, _divideBy: function (t) {
  264. return this.x /= t, this.y /= t, this
  265. }, multiplyBy: function (t) {
  266. return this.clone()._multiplyBy(t)
  267. }, _multiplyBy: function (t) {
  268. return this.x *= t, this.y *= t, this
  269. }, scaleBy: function (t) {
  270. return new p(this.x * t.x, this.y * t.y)
  271. }, unscaleBy: function (t) {
  272. return new p(this.x / t.x, this.y / t.y)
  273. }, round: function () {
  274. return this.clone()._round()
  275. }, _round: function () {
  276. return this.x = Math.round(this.x), this.y = Math.round(this.y), this
  277. }, floor: function () {
  278. return this.clone()._floor()
  279. }, _floor: function () {
  280. return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this
  281. }, ceil: function () {
  282. return this.clone()._ceil()
  283. }, _ceil: function () {
  284. return this.x = Math.ceil(this.x), this.y = Math.ceil(this.y), this
  285. }, trunc: function () {
  286. return this.clone()._trunc()
  287. }, _trunc: function () {
  288. return this.x = nt(this.x), this.y = nt(this.y), this
  289. }, distanceTo: function (t) {
  290. var e = (t = m(t)).x - this.x, t = t.y - this.y;
  291. return Math.sqrt(e * e + t * t)
  292. }, equals: function (t) {
  293. return (t = m(t)).x === this.x && t.y === this.y
  294. }, contains: function (t) {
  295. return t = m(t), Math.abs(t.x) <= Math.abs(this.x) && Math.abs(t.y) <= Math.abs(this.y)
  296. }, toString: function () {
  297. return "Point(" + i(this.x) + ", " + i(this.y) + ")"
  298. }
  299. }, f.prototype = {
  300. extend: function (t) {
  301. var e, i;
  302. if (t) {
  303. if (t instanceof p || "number" == typeof t[0] || "x" in t) e = i = m(t); else if (e = (t = _(t)).min, i = t.max, !e || !i) return this;
  304. 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())
  305. }
  306. return this
  307. }, getCenter: function (t) {
  308. return m((this.min.x + this.max.x) / 2, (this.min.y + this.max.y) / 2, t)
  309. }, getBottomLeft: function () {
  310. return m(this.min.x, this.max.y)
  311. }, getTopRight: function () {
  312. return m(this.max.x, this.min.y)
  313. }, getTopLeft: function () {
  314. return this.min
  315. }, getBottomRight: function () {
  316. return this.max
  317. }, getSize: function () {
  318. return this.max.subtract(this.min)
  319. }, contains: function (t) {
  320. var e, i;
  321. 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
  322. }, intersects: function (t) {
  323. t = _(t);
  324. var e = this.min, i = this.max, n = t.min, t = t.max, o = t.x >= e.x && n.x <= i.x,
  325. t = t.y >= e.y && n.y <= i.y;
  326. return o && t
  327. }, overlaps: function (t) {
  328. t = _(t);
  329. var e = this.min, i = this.max, n = t.min, t = t.max, o = t.x > e.x && n.x < i.x,
  330. t = t.y > e.y && n.y < i.y;
  331. return o && t
  332. }, isValid: function () {
  333. return !(!this.min || !this.max)
  334. }, pad: function (t) {
  335. var e = this.min, i = this.max, n = Math.abs(e.x - i.x) * t, t = Math.abs(e.y - i.y) * t;
  336. return _(m(e.x - n, e.y - t), m(i.x + n, i.y + t))
  337. }, equals: function (t) {
  338. return !!t && (t = _(t), this.min.equals(t.getTopLeft()) && this.max.equals(t.getBottomRight()))
  339. }
  340. }, s.prototype = {
  341. extend: function (t) {
  342. var e, i, n = this._southWest, o = this._northEast;
  343. if (t instanceof v) i = e = t; else {
  344. if (!(t instanceof s)) return t ? this.extend(w(t) || g(t)) : this;
  345. if (e = t._southWest, i = t._northEast, !e || !i) return this
  346. }
  347. 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
  348. }, pad: function (t) {
  349. var e = this._southWest, i = this._northEast, n = Math.abs(e.lat - i.lat) * t,
  350. t = Math.abs(e.lng - i.lng) * t;
  351. return new s(new v(e.lat - n, e.lng - t), new v(i.lat + n, i.lng + t))
  352. }, getCenter: function () {
  353. return new v((this._southWest.lat + this._northEast.lat) / 2, (this._southWest.lng + this._northEast.lng) / 2)
  354. }, getSouthWest: function () {
  355. return this._southWest
  356. }, getNorthEast: function () {
  357. return this._northEast
  358. }, getNorthWest: function () {
  359. return new v(this.getNorth(), this.getWest())
  360. }, getSouthEast: function () {
  361. return new v(this.getSouth(), this.getEast())
  362. }, getWest: function () {
  363. return this._southWest.lng
  364. }, getSouth: function () {
  365. return this._southWest.lat
  366. }, getEast: function () {
  367. return this._northEast.lng
  368. }, getNorth: function () {
  369. return this._northEast.lat
  370. }, contains: function (t) {
  371. t = ("number" == typeof t[0] || t instanceof v || "lat" in t ? w : g)(t);
  372. var e, i, n = this._southWest, o = this._northEast;
  373. 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
  374. }, intersects: function (t) {
  375. t = g(t);
  376. var e = this._southWest, i = this._northEast, n = t.getSouthWest(), t = t.getNorthEast(),
  377. o = t.lat >= e.lat && n.lat <= i.lat, t = t.lng >= e.lng && n.lng <= i.lng;
  378. return o && t
  379. }, overlaps: function (t) {
  380. t = g(t);
  381. var e = this._southWest, i = this._northEast, n = t.getSouthWest(), t = t.getNorthEast(),
  382. o = t.lat > e.lat && n.lat < i.lat, t = t.lng > e.lng && n.lng < i.lng;
  383. return o && t
  384. }, toBBoxString: function () {
  385. return [this.getWest(), this.getSouth(), this.getEast(), this.getNorth()].join(",")
  386. }, equals: function (t, e) {
  387. return !!t && (t = g(t), this._southWest.equals(t.getSouthWest(), e) && this._northEast.equals(t.getNorthEast(), e))
  388. }, isValid: function () {
  389. return !(!this._southWest || !this._northEast)
  390. }
  391. };
  392. var ot = {
  393. latLngToPoint: function (t, e) {
  394. t = this.projection.project(t), e = this.scale(e);
  395. return this.transformation._transform(t, e)
  396. }, pointToLatLng: function (t, e) {
  397. e = this.scale(e), t = this.transformation.untransform(t, e);
  398. return this.projection.unproject(t)
  399. }, project: function (t) {
  400. return this.projection.project(t)
  401. }, unproject: function (t) {
  402. return this.projection.unproject(t)
  403. }, scale: function (t) {
  404. return 256 * Math.pow(2, t)
  405. }, zoom: function (t) {
  406. return Math.log(t / 256) / Math.LN2
  407. }, getProjectedBounds: function (t) {
  408. var e;
  409. 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)))
  410. }, infinite: !(v.prototype = {
  411. equals: function (t, e) {
  412. 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))
  413. }, toString: function (t) {
  414. return "LatLng(" + i(this.lat, t) + ", " + i(this.lng, t) + ")"
  415. }, distanceTo: function (t) {
  416. return st.distance(this, w(t))
  417. }, wrap: function () {
  418. return st.wrapLatLng(this)
  419. }, toBounds: function (t) {
  420. var t = 180 * t / 40075017, e = t / Math.cos(Math.PI / 180 * this.lat);
  421. return g([this.lat - t, this.lng - e], [this.lat + t, this.lng + e])
  422. }, clone: function () {
  423. return new v(this.lat, this.lng, this.alt)
  424. }
  425. }), wrapLatLng: function (t) {
  426. var e = this.wrapLng ? H(t.lng, this.wrapLng, !0) : t.lng;
  427. return new v(this.wrapLat ? H(t.lat, this.wrapLat, !0) : t.lat, e, t.alt)
  428. }, wrapLatLngBounds: function (t) {
  429. var e = t.getCenter(), i = this.wrapLatLng(e), n = e.lat - i.lat, e = e.lng - i.lng;
  430. 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)))
  431. }
  432. }, st = l({}, ot, {
  433. wrapLng: [-180, 180], R: 6371e3, distance: function (t, e) {
  434. var i = Math.PI / 180, n = t.lat * i, o = e.lat * i, s = Math.sin((e.lat - t.lat) * i / 2),
  435. e = Math.sin((e.lng - t.lng) * i / 2), t = s * s + Math.cos(n) * Math.cos(o) * e * e,
  436. i = 2 * Math.atan2(Math.sqrt(t), Math.sqrt(1 - t));
  437. return this.R * i
  438. }
  439. }), rt = 6378137, rt = {
  440. R: rt, MAX_LATITUDE: 85.0511287798, project: function (t) {
  441. var e = Math.PI / 180, i = this.MAX_LATITUDE, i = Math.max(Math.min(i, t.lat), -i), i = Math.sin(i * e);
  442. return new p(this.R * t.lng * e, this.R * Math.log((1 + i) / (1 - i)) / 2)
  443. }, unproject: function (t) {
  444. var e = 180 / Math.PI;
  445. return new v((2 * Math.atan(Math.exp(t.y / this.R)) - Math.PI / 2) * e, t.x * e / this.R)
  446. }, bounds: new f([-(rt = rt * Math.PI), -rt], [rt, rt])
  447. };
  448. function at(t, e, i, n) {
  449. 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)
  450. }
  451. function ht(t, e, i, n) {
  452. return new at(t, e, i, n)
  453. }
  454. at.prototype = {
  455. transform: function (t, e) {
  456. return this._transform(t.clone(), e)
  457. }, _transform: function (t, e) {
  458. return t.x = (e = e || 1) * (this._a * t.x + this._b), t.y = e * (this._c * t.y + this._d), t
  459. }, untransform: function (t, e) {
  460. return new p((t.x / (e = e || 1) - this._b) / this._a, (t.y / e - this._d) / this._c)
  461. }
  462. };
  463. var lt = l({}, st, {
  464. code: "EPSG:3857",
  465. projection: rt,
  466. transformation: ht(lt = .5 / (Math.PI * rt.R), .5, -lt, .5)
  467. }), ut = l({}, lt, {code: "EPSG:900913"});
  468. function ct(t) {
  469. return document.createElementNS("http://www.w3.org/2000/svg", t)
  470. }
  471. function dt(t, e) {
  472. for (var i, n, o, s, r = "", a = 0, h = t.length; a < h; a++) {
  473. for (i = 0, n = (o = t[a]).length; i < n; i++) r += (i ? "L" : "M") + (s = o[i]).x + " " + s.y;
  474. r += e ? b.svg ? "z" : "x" : ""
  475. }
  476. return r || "M0 0"
  477. }
  478. var _t = document.documentElement.style, pt = "ActiveXObject" in window, mt = pt && !document.addEventListener,
  479. n = "msLaunchUri" in navigator && !("documentMode" in document), ft = y("webkit"), gt = y("android"),
  480. vt = y("android 2") || y("android 3"), yt = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10),
  481. yt = gt && y("Google") && yt < 537 && !("AudioNode" in window), xt = !!window.opera, wt = !n && y("chrome"),
  482. bt = y("gecko") && !ft && !xt && !pt, Pt = !wt && y("safari"), Lt = y("phantom"), o = "OTransition" in _t,
  483. Tt = 0 === navigator.platform.indexOf("Win"), Mt = pt && "transition" in _t,
  484. zt = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix && !vt, _t = "MozPerspective" in _t,
  485. Ct = !window.L_DISABLE_3D && (Mt || zt || _t) && !o && !Lt,
  486. Zt = "undefined" != typeof orientation || y("mobile"), St = Zt && ft, Et = Zt && zt,
  487. kt = !window.PointerEvent && window.MSPointerEvent, Ot = !(!window.PointerEvent && !kt),
  488. At = "ontouchstart" in window || !!window.TouchEvent, Bt = !window.L_NO_TOUCH && (At || Ot), It = Zt && xt,
  489. Rt = Zt && bt, Nt = 1 < (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI),
  490. Dt = function () {
  491. var t = !1;
  492. try {
  493. var e = Object.defineProperty({}, "passive", {
  494. get: function () {
  495. t = !0
  496. }
  497. });
  498. window.addEventListener("testPassiveEventSupport", u, e), window.removeEventListener("testPassiveEventSupport", u, e)
  499. } catch (t) {
  500. }
  501. return t
  502. }(), jt = !!document.createElement("canvas").getContext,
  503. Ht = !(!document.createElementNS || !ct("svg").createSVGRect),
  504. Wt = !!Ht && ((Wt = document.createElement("div")).innerHTML = "<svg/>", "http://www.w3.org/2000/svg" === (Wt.firstChild && Wt.firstChild.namespaceURI));
  505. function y(t) {
  506. return 0 <= navigator.userAgent.toLowerCase().indexOf(t)
  507. }
  508. var b = {
  509. ie: pt,
  510. ielt9: mt,
  511. edge: n,
  512. webkit: ft,
  513. android: gt,
  514. android23: vt,
  515. androidStock: yt,
  516. opera: xt,
  517. chrome: wt,
  518. gecko: bt,
  519. safari: Pt,
  520. phantom: Lt,
  521. opera12: o,
  522. win: Tt,
  523. ie3d: Mt,
  524. webkit3d: zt,
  525. gecko3d: _t,
  526. any3d: Ct,
  527. mobile: Zt,
  528. mobileWebkit: St,
  529. mobileWebkit3d: Et,
  530. msPointer: kt,
  531. pointer: Ot,
  532. touch: Bt,
  533. touchNative: At,
  534. mobileOpera: It,
  535. mobileGecko: Rt,
  536. retina: Nt,
  537. passiveEvents: Dt,
  538. canvas: jt,
  539. svg: Ht,
  540. vml: !Ht && function () {
  541. try {
  542. var t = document.createElement("div"), e = (t.innerHTML = '<v:shape adj="1"/>', t.firstChild);
  543. return e.style.behavior = "url(#default#VML)", e && "object" == typeof e.adj
  544. } catch (t) {
  545. return !1
  546. }
  547. }(),
  548. inlineSvg: Wt,
  549. mac: 0 === navigator.platform.indexOf("Mac"),
  550. linux: 0 === navigator.platform.indexOf("Linux")
  551. }, Ft = b.msPointer ? "MSPointerDown" : "pointerdown", Ut = b.msPointer ? "MSPointerMove" : "pointermove",
  552. Vt = b.msPointer ? "MSPointerUp" : "pointerup", qt = b.msPointer ? "MSPointerCancel" : "pointercancel",
  553. Gt = {touchstart: Ft, touchmove: Ut, touchend: Vt, touchcancel: qt}, Kt = {
  554. touchstart: function (t, e) {
  555. e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && O(e);
  556. ee(t, e)
  557. }, touchmove: ee, touchend: ee, touchcancel: ee
  558. }, Yt = {}, Xt = !1;
  559. function Jt(t, e, i) {
  560. 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)
  561. }
  562. function $t(t) {
  563. Yt[t.pointerId] = t
  564. }
  565. function Qt(t) {
  566. Yt[t.pointerId] && (Yt[t.pointerId] = t)
  567. }
  568. function te(t) {
  569. delete Yt[t.pointerId]
  570. }
  571. function ee(t, e) {
  572. if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
  573. for (var i in e.touches = [], Yt) e.touches.push(Yt[i]);
  574. e.changedTouches = [e], t(e)
  575. }
  576. }
  577. var ie = 200;
  578. function ne(t, i) {
  579. t.addEventListener("dblclick", i);
  580. var n, o = 0;
  581. function e(t) {
  582. var e;
  583. 1 !== t.detail ? n = t.detail : "mouse" === t.pointerType || t.sourceCapabilities && !t.sourceCapabilities.firesTouchEvents || ((e = Ne(t)).some(function (t) {
  584. return t instanceof HTMLLabelElement && t.attributes.for
  585. }) && !e.some(function (t) {
  586. return t instanceof HTMLInputElement || t instanceof HTMLSelectElement
  587. }) || ((e = Date.now()) - o <= ie ? 2 === ++n && i(function (t) {
  588. var e, i, n = {};
  589. for (i in t) e = t[i], n[i] = e && e.bind ? e.bind(t) : e;
  590. return (t = n).type = "dblclick", n.detail = 2, n.isTrusted = !1, n._simulated = !0, n
  591. }(t)) : n = 1, o = e))
  592. }
  593. return t.addEventListener("click", e), {dblclick: i, simDblclick: e}
  594. }
  595. var oe, se, re, ae, he, le, ue = we(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]),
  596. ce = we(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]),
  597. de = "webkitTransition" === ce || "OTransition" === ce ? ce + "End" : "transitionend";
  598. function _e(t) {
  599. return "string" == typeof t ? document.getElementById(t) : t
  600. }
  601. function pe(t, e) {
  602. var i = t.style[e] || t.currentStyle && t.currentStyle[e];
  603. return "auto" === (i = i && "auto" !== i || !document.defaultView ? i : (t = document.defaultView.getComputedStyle(t, null)) ? t[e] : null) ? null : i
  604. }
  605. function P(t, e, i) {
  606. t = document.createElement(t);
  607. return t.className = e || "", i && i.appendChild(t), t
  608. }
  609. function T(t) {
  610. var e = t.parentNode;
  611. e && e.removeChild(t)
  612. }
  613. function me(t) {
  614. for (; t.firstChild;) t.removeChild(t.firstChild)
  615. }
  616. function fe(t) {
  617. var e = t.parentNode;
  618. e && e.lastChild !== t && e.appendChild(t)
  619. }
  620. function ge(t) {
  621. var e = t.parentNode;
  622. e && e.firstChild !== t && e.insertBefore(t, e.firstChild)
  623. }
  624. function ve(t, e) {
  625. return void 0 !== t.classList ? t.classList.contains(e) : 0 < (t = xe(t)).length && new RegExp("(^|\\s)" + e + "(\\s|$)").test(t)
  626. }
  627. function M(t, e) {
  628. var i;
  629. if (void 0 !== t.classList) for (var n = F(e), o = 0, s = n.length; o < s; o++) t.classList.add(n[o]); else ve(t, e) || ye(t, ((i = xe(t)) ? i + " " : "") + e)
  630. }
  631. function z(t, e) {
  632. void 0 !== t.classList ? t.classList.remove(e) : ye(t, W((" " + xe(t) + " ").replace(" " + e + " ", " ")))
  633. }
  634. function ye(t, e) {
  635. void 0 === t.className.baseVal ? t.className = e : t.className.baseVal = e
  636. }
  637. function xe(t) {
  638. return void 0 === (t = t.correspondingElement ? t.correspondingElement : t).className.baseVal ? t.className : t.className.baseVal
  639. }
  640. function C(t, e) {
  641. if ("opacity" in t.style) t.style.opacity = e; else if ("filter" in t.style) {
  642. var i = !1, n = "DXImageTransform.Microsoft.Alpha";
  643. try {
  644. i = t.filters.item(n)
  645. } catch (t) {
  646. if (1 === e) return
  647. }
  648. e = Math.round(100 * e), i ? (i.Enabled = 100 !== e, i.Opacity = e) : t.style.filter += " progid:" + n + "(opacity=" + e + ")"
  649. }
  650. }
  651. function we(t) {
  652. for (var e = document.documentElement.style, i = 0; i < t.length; i++) if (t[i] in e) return t[i];
  653. return !1
  654. }
  655. function be(t, e, i) {
  656. e = e || new p(0, 0);
  657. t.style[ue] = (b.ie3d ? "translate(" + e.x + "px," + e.y + "px)" : "translate3d(" + e.x + "px," + e.y + "px,0)") + (i ? " scale(" + i + ")" : "")
  658. }
  659. function Z(t, e) {
  660. t._leaflet_pos = e, b.any3d ? be(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px")
  661. }
  662. function Pe(t) {
  663. return t._leaflet_pos || new p(0, 0)
  664. }
  665. function Le() {
  666. S(window, "dragstart", O)
  667. }
  668. function Te() {
  669. k(window, "dragstart", O)
  670. }
  671. function Me(t) {
  672. for (; -1 === t.tabIndex;) t = t.parentNode;
  673. t.style && (ze(), le = (he = t).style.outlineStyle, t.style.outlineStyle = "none", S(window, "keydown", ze))
  674. }
  675. function ze() {
  676. he && (he.style.outlineStyle = le, le = he = void 0, k(window, "keydown", ze))
  677. }
  678. function Ce(t) {
  679. for (; !((t = t.parentNode).offsetWidth && t.offsetHeight || t === document.body);) ;
  680. return t
  681. }
  682. function Ze(t) {
  683. var e = t.getBoundingClientRect();
  684. return {x: e.width / t.offsetWidth || 1, y: e.height / t.offsetHeight || 1, boundingClientRect: e}
  685. }
  686. ae = "onselectstart" in document ? (re = function () {
  687. S(window, "selectstart", O)
  688. }, function () {
  689. k(window, "selectstart", O)
  690. }) : (se = we(["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]), re = function () {
  691. var t;
  692. se && (t = document.documentElement.style, oe = t[se], t[se] = "none")
  693. }, function () {
  694. se && (document.documentElement.style[se] = oe, oe = void 0)
  695. });
  696. pt = {
  697. __proto__: null,
  698. TRANSFORM: ue,
  699. TRANSITION: ce,
  700. TRANSITION_END: de,
  701. get: _e,
  702. getStyle: pe,
  703. create: P,
  704. remove: T,
  705. empty: me,
  706. toFront: fe,
  707. toBack: ge,
  708. hasClass: ve,
  709. addClass: M,
  710. removeClass: z,
  711. setClass: ye,
  712. getClass: xe,
  713. setOpacity: C,
  714. testProp: we,
  715. setTransform: be,
  716. setPosition: Z,
  717. getPosition: Pe,
  718. get disableTextSelection() {
  719. return re
  720. },
  721. get enableTextSelection() {
  722. return ae
  723. },
  724. disableImageDrag: Le,
  725. enableImageDrag: Te,
  726. preventOutline: Me,
  727. restoreOutline: ze,
  728. getSizedParentNode: Ce,
  729. getScale: Ze
  730. };
  731. function S(t, e, i, n) {
  732. if (e && "object" == typeof e) for (var o in e) ke(t, o, e[o], i); else for (var s = 0, r = (e = F(e)).length; s < r; s++) ke(t, e[s], i, n);
  733. return this
  734. }
  735. var E = "_leaflet_events";
  736. function k(t, e, i, n) {
  737. if (1 === arguments.length) Se(t), delete t[E]; else if (e && "object" == typeof e) for (var o in e) Oe(t, o, e[o], i); else if (e = F(e), 2 === arguments.length) Se(t, function (t) {
  738. return -1 !== G(e, t)
  739. }); else for (var s = 0, r = e.length; s < r; s++) Oe(t, e[s], i, n);
  740. return this
  741. }
  742. function Se(t, e) {
  743. for (var i in t[E]) {
  744. var n = i.split(/\d/)[0];
  745. e && !e(n) || Oe(t, n, null, null, i)
  746. }
  747. }
  748. var Ee = {mouseenter: "mouseover", mouseleave: "mouseout", wheel: !("onwheel" in window) && "mousewheel"};
  749. function ke(e, t, i, n) {
  750. var o, s, r = t + h(i) + (n ? "_" + h(n) : "");
  751. e[E] && e[E][r] || (s = o = function (t) {
  752. return i.call(n || e, t || window.event)
  753. }, !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) {
  754. t = t || window.event, We(e, t) && s(t)
  755. }, !1) : e.addEventListener(t, s, !1) : e.attachEvent("on" + t, o), e[E] = e[E] || {}, e[E][r] = o)
  756. }
  757. function Oe(t, e, i, n, o) {
  758. o = o || e + h(i) + (n ? "_" + h(n) : "");
  759. var s, r, i = t[E] && t[E][o];
  760. 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)
  761. }
  762. function Ae(t) {
  763. return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this
  764. }
  765. function Be(t) {
  766. return ke(t, "wheel", Ae), this
  767. }
  768. function Ie(t) {
  769. return S(t, "mousedown touchstart dblclick contextmenu", Ae), t._leaflet_disable_click = !0, this
  770. }
  771. function O(t) {
  772. return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this
  773. }
  774. function Re(t) {
  775. return O(t), Ae(t), this
  776. }
  777. function Ne(t) {
  778. if (t.composedPath) return t.composedPath();
  779. for (var e = [], i = t.target; i;) e.push(i), i = i.parentNode;
  780. return e
  781. }
  782. function De(t, e) {
  783. var i, n;
  784. 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)
  785. }
  786. var je = b.linux && b.chrome ? window.devicePixelRatio : b.mac ? 3 * window.devicePixelRatio : 0 < window.devicePixelRatio ? 2 * window.devicePixelRatio : 1;
  787. function He(t) {
  788. 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
  789. }
  790. function We(t, e) {
  791. var i = e.relatedTarget;
  792. if (!i) return !0;
  793. try {
  794. for (; i && i !== t;) i = i.parentNode
  795. } catch (t) {
  796. return !1
  797. }
  798. return i !== t
  799. }
  800. var mt = {
  801. __proto__: null,
  802. on: S,
  803. off: k,
  804. stopPropagation: Ae,
  805. disableScrollPropagation: Be,
  806. disableClickPropagation: Ie,
  807. preventDefault: O,
  808. stop: Re,
  809. getPropagationPath: Ne,
  810. getMousePosition: De,
  811. getWheelDelta: He,
  812. isExternalTarget: We,
  813. addListener: S,
  814. removeListener: k
  815. }, Fe = it.extend({
  816. run: function (t, e, i, n) {
  817. 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()
  818. }, stop: function () {
  819. this._inProgress && (this._step(!0), this._complete())
  820. }, _animate: function () {
  821. this._animId = x(this._animate, this), this._step()
  822. }, _step: function (t) {
  823. var e = +new Date - this._startTime, i = 1e3 * this._duration;
  824. e < i ? this._runFrame(this._easeOut(e / i), t) : (this._runFrame(1), this._complete())
  825. }, _runFrame: function (t, e) {
  826. t = this._startPos.add(this._offset.multiplyBy(t));
  827. e && t._round(), Z(this._el, t), this.fire("step")
  828. }, _complete: function () {
  829. r(this._animId), this._inProgress = !1, this.fire("end")
  830. }, _easeOut: function (t) {
  831. return 1 - Math.pow(1 - t, this._easeOutPower)
  832. }
  833. }), A = it.extend({
  834. options: {
  835. crs: lt,
  836. center: void 0,
  837. zoom: void 0,
  838. minZoom: void 0,
  839. maxZoom: void 0,
  840. layers: [],
  841. maxBounds: void 0,
  842. renderer: void 0,
  843. zoomAnimation: !0,
  844. zoomAnimationThreshold: 4,
  845. fadeAnimation: !0,
  846. markerZoomAnimation: !0,
  847. transform3DLimit: 8388608,
  848. zoomSnap: 1,
  849. zoomDelta: 1,
  850. trackResize: !0
  851. },
  852. initialize: function (t, e) {
  853. 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)
  854. },
  855. setView: function (t, e, i) {
  856. 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({
  857. animate: i.animate,
  858. duration: i.duration
  859. }, i.pan)), this._zoom !== e ? this._tryAnimatedZoom && this._tryAnimatedZoom(t, e, i.zoom) : this._tryAnimatedPan(t, i.pan))) return clearTimeout(this._sizeTimer), this;
  860. return this._resetView(t, e, i.pan && i.pan.noMoveStart), this
  861. },
  862. setZoom: function (t, e) {
  863. return this._loaded ? this.setView(this.getCenter(), t, {zoom: e}) : (this._zoom = t, this)
  864. },
  865. zoomIn: function (t, e) {
  866. return t = t || (b.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom + t, e)
  867. },
  868. zoomOut: function (t, e) {
  869. return t = t || (b.any3d ? this.options.zoomDelta : 1), this.setZoom(this._zoom - t, e)
  870. },
  871. setZoomAround: function (t, e, i) {
  872. var n = this.getZoomScale(e), o = this.getSize().divideBy(2),
  873. t = (t instanceof p ? t : this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1 - 1 / n),
  874. n = this.containerPointToLatLng(o.add(t));
  875. return this.setView(n, e, {zoom: i})
  876. },
  877. _getBoundsCenterZoom: function (t, e) {
  878. e = e || {}, t = t.getBounds ? t.getBounds() : g(t);
  879. var i = m(e.paddingTopLeft || e.padding || [0, 0]), n = m(e.paddingBottomRight || e.padding || [0, 0]),
  880. o = this.getBoundsZoom(t, !1, i.add(n));
  881. return (o = "number" == typeof e.maxZoom ? Math.min(e.maxZoom, o) : o) === 1 / 0 ? {
  882. center: t.getCenter(),
  883. zoom: o
  884. } : (e = n.subtract(i).divideBy(2), n = this.project(t.getSouthWest(), o), i = this.project(t.getNorthEast(), o), {
  885. center: this.unproject(n.add(i).divideBy(2).add(e), o),
  886. zoom: o
  887. })
  888. },
  889. fitBounds: function (t, e) {
  890. if ((t = g(t)).isValid()) return t = this._getBoundsCenterZoom(t, e), this.setView(t.center, t.zoom, e);
  891. throw new Error("Bounds are not valid.")
  892. },
  893. fitWorld: function (t) {
  894. return this.fitBounds([[-90, -180], [90, 180]], t)
  895. },
  896. panTo: function (t, e) {
  897. return this.setView(t, this._zoom, {pan: e})
  898. },
  899. panBy: function (t, e) {
  900. var i;
  901. 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({
  902. step: this._onPanTransitionStep,
  903. end: this._onPanTransitionEnd
  904. }, 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")
  905. },
  906. flyTo: function (n, o, t) {
  907. if (!1 === (t = t || {}).animate || !b.any3d) return this.setView(n, o, t);
  908. this._stop();
  909. var s = this.project(this.getCenter()), r = this.project(n), e = this.getSize(), a = this._zoom,
  910. h = (n = w(n), o = void 0 === o ? a : o, Math.max(e.x, e.y)), i = h * this.getZoomScale(a, o),
  911. l = r.distanceTo(s) || 1, u = 1.42, c = u * u;
  912. function d(t) {
  913. 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;
  914. return t < 1e-9 ? -18 : Math.log(t)
  915. }
  916. function _(t) {
  917. return (Math.exp(t) - Math.exp(-t)) / 2
  918. }
  919. function p(t) {
  920. return (Math.exp(t) + Math.exp(-t)) / 2
  921. }
  922. var m = d(0);
  923. function f(t) {
  924. return h * (p(m) * (_(t = m + u * t) / p(t)) - _(m)) / c
  925. }
  926. var g = Date.now(), v = (d(1) - m) / u, y = t.duration ? 1e3 * t.duration : 1e3 * v * .8;
  927. return this._moveStart(!0, t.noMoveStart), function t() {
  928. var e = (Date.now() - g) / y, i = (1 - Math.pow(1 - e, 1.5)) * v;
  929. 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)
  930. }.call(this), this
  931. },
  932. flyToBounds: function (t, e) {
  933. t = this._getBoundsCenterZoom(t, e);
  934. return this.flyTo(t.center, t.zoom, e)
  935. },
  936. setMaxBounds: function (t) {
  937. 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)
  938. },
  939. setMinZoom: function (t) {
  940. var e = this.options.minZoom;
  941. return this.options.minZoom = t, this._loaded && e !== t && (this.fire("zoomlevelschange"), this.getZoom() < this.options.minZoom) ? this.setZoom(t) : this
  942. },
  943. setMaxZoom: function (t) {
  944. var e = this.options.maxZoom;
  945. return this.options.maxZoom = t, this._loaded && e !== t && (this.fire("zoomlevelschange"), this.getZoom() > this.options.maxZoom) ? this.setZoom(t) : this
  946. },
  947. panInsideBounds: function (t, e) {
  948. this._enforcingBounds = !0;
  949. var i = this.getCenter(), t = this._limitCenter(i, this._zoom, g(t));
  950. return i.equals(t) || this.panTo(t, e), this._enforcingBounds = !1, this
  951. },
  952. panInside: function (t, e) {
  953. var i = m((e = e || {}).paddingTopLeft || e.padding || [0, 0]),
  954. n = m(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()),
  955. t = this.project(t), s = this.getPixelBounds(), i = _([s.min.add(i), s.max.subtract(n)]),
  956. s = i.getSize();
  957. 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
  958. },
  959. invalidateSize: function (t) {
  960. if (!this._loaded) return this;
  961. t = l({animate: !1, pan: !0}, !0 === t ? {animate: !0} : t);
  962. var e = this.getSize(), i = (this._sizeChanged = !0, this._lastCenter = null, this.getSize()),
  963. n = e.divideBy(2).round(), o = i.divideBy(2).round(), n = n.subtract(o);
  964. 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", {
  965. oldSize: e,
  966. newSize: i
  967. })) : this
  968. },
  969. stop: function () {
  970. return this.setZoom(this._limitZoom(this._zoom)), this.options.zoomSnap || this.fire("viewreset"), this._stop()
  971. },
  972. locate: function (t) {
  973. var e, i;
  974. return t = this._locateOptions = l({
  975. timeout: 1e4,
  976. watch: !1
  977. }, 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({
  978. code: 0,
  979. message: "Geolocation not supported."
  980. }), this
  981. },
  982. stopLocate: function () {
  983. return navigator.geolocation && navigator.geolocation.clearWatch && navigator.geolocation.clearWatch(this._locationWatchId), this._locateOptions && (this._locateOptions.setView = !1), this
  984. },
  985. _handleGeolocationError: function (t) {
  986. var e;
  987. 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", {
  988. code: e,
  989. message: "Geolocation error: " + t + "."
  990. }))
  991. },
  992. _handleGeolocationResponse: function (t) {
  993. if (this._container._leaflet_id) {
  994. var e, i, n = new v(t.coords.latitude, t.coords.longitude), o = n.toBounds(2 * t.coords.accuracy),
  995. s = this._locateOptions,
  996. r = (s.setView && (e = this.getBoundsZoom(o), this.setView(n, s.maxZoom ? Math.min(e, s.maxZoom) : e)), {
  997. latlng: n,
  998. bounds: o,
  999. timestamp: t.timestamp
  1000. });
  1001. for (i in t.coords) "number" == typeof t.coords[i] && (r[i] = t.coords[i]);
  1002. this.fire("locationfound", r)
  1003. }
  1004. },
  1005. addHandler: function (t, e) {
  1006. return e && (e = this[t] = new e(this), this._handlers.push(e), this.options[t] && e.enable()), this
  1007. },
  1008. remove: function () {
  1009. 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");
  1010. try {
  1011. delete this._container._leaflet_id, delete this._containerId
  1012. } catch (t) {
  1013. this._container._leaflet_id = void 0, this._containerId = void 0
  1014. }
  1015. 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();
  1016. for (t in this._panes) T(this._panes[t]);
  1017. return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer, this
  1018. },
  1019. createPane: function (t, e) {
  1020. e = P("div", "leaflet-pane" + (t ? " leaflet-" + t.replace("Pane", "") + "-pane" : ""), e || this._mapPane);
  1021. return t && (this._panes[t] = e), e
  1022. },
  1023. getCenter: function () {
  1024. return this._checkIfLoaded(), this._lastCenter && !this._moved() ? this._lastCenter.clone() : this.layerPointToLatLng(this._getCenterLayerPoint())
  1025. },
  1026. getZoom: function () {
  1027. return this._zoom
  1028. },
  1029. getBounds: function () {
  1030. var t = this.getPixelBounds();
  1031. return new s(this.unproject(t.getBottomLeft()), this.unproject(t.getTopRight()))
  1032. },
  1033. getMinZoom: function () {
  1034. return void 0 === this.options.minZoom ? this._layersMinZoom || 0 : this.options.minZoom
  1035. },
  1036. getMaxZoom: function () {
  1037. return void 0 === this.options.maxZoom ? void 0 === this._layersMaxZoom ? 1 / 0 : this._layersMaxZoom : this.options.maxZoom
  1038. },
  1039. getBoundsZoom: function (t, e, i) {
  1040. t = g(t), i = m(i || [0, 0]);
  1041. var n = this.getZoom() || 0, o = this.getMinZoom(), s = this.getMaxZoom(), r = t.getNorthWest(),
  1042. t = t.getSouthEast(), i = this.getSize().subtract(i),
  1043. t = _(this.project(t, n), this.project(r, n)).getSize(), r = b.any3d ? this.options.zoomSnap : 1,
  1044. a = i.x / t.x, i = i.y / t.y, t = e ? Math.max(a, i) : Math.min(a, i), n = this.getScaleZoom(t, n);
  1045. 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))
  1046. },
  1047. getSize: function () {
  1048. return this._size && !this._sizeChanged || (this._size = new p(this._container.clientWidth || 0, this._container.clientHeight || 0), this._sizeChanged = !1), this._size.clone()
  1049. },
  1050. getPixelBounds: function (t, e) {
  1051. t = this._getTopLeftPoint(t, e);
  1052. return new f(t, t.add(this.getSize()))
  1053. },
  1054. getPixelOrigin: function () {
  1055. return this._checkIfLoaded(), this._pixelOrigin
  1056. },
  1057. getPixelWorldBounds: function (t) {
  1058. return this.options.crs.getProjectedBounds(void 0 === t ? this.getZoom() : t)
  1059. },
  1060. getPane: function (t) {
  1061. return "string" == typeof t ? this._panes[t] : t
  1062. },
  1063. getPanes: function () {
  1064. return this._panes
  1065. },
  1066. getContainer: function () {
  1067. return this._container
  1068. },
  1069. getZoomScale: function (t, e) {
  1070. var i = this.options.crs;
  1071. return e = void 0 === e ? this._zoom : e, i.scale(t) / i.scale(e)
  1072. },
  1073. getScaleZoom: function (t, e) {
  1074. var i = this.options.crs, t = (e = void 0 === e ? this._zoom : e, i.zoom(t * i.scale(e)));
  1075. return isNaN(t) ? 1 / 0 : t
  1076. },
  1077. project: function (t, e) {
  1078. return e = void 0 === e ? this._zoom : e, this.options.crs.latLngToPoint(w(t), e)
  1079. },
  1080. unproject: function (t, e) {
  1081. return e = void 0 === e ? this._zoom : e, this.options.crs.pointToLatLng(m(t), e)
  1082. },
  1083. layerPointToLatLng: function (t) {
  1084. t = m(t).add(this.getPixelOrigin());
  1085. return this.unproject(t)
  1086. },
  1087. latLngToLayerPoint: function (t) {
  1088. return this.project(w(t))._round()._subtract(this.getPixelOrigin())
  1089. },
  1090. wrapLatLng: function (t) {
  1091. return this.options.crs.wrapLatLng(w(t))
  1092. },
  1093. wrapLatLngBounds: function (t) {
  1094. return this.options.crs.wrapLatLngBounds(g(t))
  1095. },
  1096. distance: function (t, e) {
  1097. return this.options.crs.distance(w(t), w(e))
  1098. },
  1099. containerPointToLayerPoint: function (t) {
  1100. return m(t).subtract(this._getMapPanePos())
  1101. },
  1102. layerPointToContainerPoint: function (t) {
  1103. return m(t).add(this._getMapPanePos())
  1104. },
  1105. containerPointToLatLng: function (t) {
  1106. t = this.containerPointToLayerPoint(m(t));
  1107. return this.layerPointToLatLng(t)
  1108. },
  1109. latLngToContainerPoint: function (t) {
  1110. return this.layerPointToContainerPoint(this.latLngToLayerPoint(w(t)))
  1111. },
  1112. mouseEventToContainerPoint: function (t) {
  1113. return De(t, this._container)
  1114. },
  1115. mouseEventToLayerPoint: function (t) {
  1116. return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))
  1117. },
  1118. mouseEventToLatLng: function (t) {
  1119. return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))
  1120. },
  1121. _initContainer: function (t) {
  1122. t = this._container = _e(t);
  1123. if (!t) throw new Error("Map container not found.");
  1124. if (t._leaflet_id) throw new Error("Map container is already initialized.");
  1125. S(t, "scroll", this._onScroll, this), this._containerId = h(t)
  1126. },
  1127. _initLayout: function () {
  1128. var t = this._container,
  1129. 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"));
  1130. "absolute" !== e && "relative" !== e && "fixed" !== e && "sticky" !== e && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos()
  1131. },
  1132. _initPanes: function () {
  1133. var t = this._panes = {};
  1134. 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"))
  1135. },
  1136. _resetView: function (t, e, i) {
  1137. Z(this._mapPane, new p(0, 0));
  1138. var n = !this._loaded,
  1139. o = (this._loaded = !0, e = this._limitZoom(e), this.fire("viewprereset"), this._zoom !== e);
  1140. this._moveStart(o, i)._move(t, e)._moveEnd(o), this.fire("viewreset"), n && this.fire("load")
  1141. },
  1142. _moveStart: function (t, e) {
  1143. return t && this.fire("zoomstart"), e || this.fire("movestart"), this
  1144. },
  1145. _move: function (t, e, i, n) {
  1146. void 0 === e && (e = this._zoom);
  1147. var o = this._zoom !== e;
  1148. 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
  1149. },
  1150. _moveEnd: function (t) {
  1151. return t && this.fire("zoomend"), this.fire("moveend")
  1152. },
  1153. _stop: function () {
  1154. return r(this._flyToFrame), this._panAnim && this._panAnim.stop(), this
  1155. },
  1156. _rawPanBy: function (t) {
  1157. Z(this._mapPane, this._getMapPanePos().subtract(t))
  1158. },
  1159. _getZoomSpan: function () {
  1160. return this.getMaxZoom() - this.getMinZoom()
  1161. },
  1162. _panInsideMaxBounds: function () {
  1163. this._enforcingBounds || this.panInsideBounds(this.options.maxBounds)
  1164. },
  1165. _checkIfLoaded: function () {
  1166. if (!this._loaded) throw new Error("Set map center and zoom first.")
  1167. },
  1168. _initEvents: function (t) {
  1169. this._targets = {};
  1170. var e = t ? k : S;
  1171. 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)
  1172. },
  1173. _onResize: function () {
  1174. r(this._resizeRequest), this._resizeRequest = x(function () {
  1175. this.invalidateSize({debounceMoveend: !0})
  1176. }, this)
  1177. },
  1178. _onScroll: function () {
  1179. this._container.scrollTop = 0, this._container.scrollLeft = 0
  1180. },
  1181. _onMoveEnd: function () {
  1182. var t = this._getMapPanePos();
  1183. Math.max(Math.abs(t.x), Math.abs(t.y)) >= this.options.transform3DLimit && this._resetView(this.getCenter(), this.getZoom())
  1184. },
  1185. _findEventTargets: function (t, e) {
  1186. for (var i, n = [], o = "mouseout" === e || "mouseover" === e, s = t.target || t.srcElement, r = !1; s;) {
  1187. if ((i = this._targets[h(s)]) && ("click" === e || "preclick" === e) && this._draggableMoved(i)) {
  1188. r = !0;
  1189. break
  1190. }
  1191. if (i && i.listens(e, !0)) {
  1192. if (o && !We(s, t)) break;
  1193. if (n.push(i), o) break
  1194. }
  1195. if (s === this._container) break;
  1196. s = s.parentNode
  1197. }
  1198. return n = n.length || r || o || !this.listens(e, !0) ? n : [this]
  1199. },
  1200. _isClickDisabled: function (t) {
  1201. for (; t && t !== this._container;) {
  1202. if (t._leaflet_disable_click) return !0;
  1203. t = t.parentNode
  1204. }
  1205. },
  1206. _handleDOMEvent: function (t) {
  1207. var e, i = t.target || t.srcElement;
  1208. !this._loaded || i._leaflet_disable_events || "click" === t.type && this._isClickDisabled(i) || ("mousedown" === (e = t.type) && Me(i), this._fireDOMEvent(t, e))
  1209. },
  1210. _mouseEvents: ["click", "dblclick", "mouseover", "mouseout", "contextmenu"],
  1211. _fireDOMEvent: function (t, e, i) {
  1212. "click" === t.type && ((a = l({}, t)).type = "preclick", this._fireDOMEvent(a, a.type, i));
  1213. var n = this._findEventTargets(t, e);
  1214. if (i) {
  1215. for (var o = [], s = 0; s < i.length; s++) i[s].listens(e, !0) && o.push(i[s]);
  1216. n = o.concat(n)
  1217. }
  1218. if (n.length) {
  1219. "contextmenu" === e && O(t);
  1220. var r, a = n[0], h = {originalEvent: t};
  1221. 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++) if (n[s].fire(e, h, !0), h.originalEvent._stopped || !1 === n[s].options.bubblingMouseEvents && -1 !== G(this._mouseEvents, e)) return
  1222. }
  1223. },
  1224. _draggableMoved: function (t) {
  1225. return (t = t.dragging && t.dragging.enabled() ? t : this).dragging && t.dragging.moved() || this.boxZoom && this.boxZoom.moved()
  1226. },
  1227. _clearHandlers: function () {
  1228. for (var t = 0, e = this._handlers.length; t < e; t++) this._handlers[t].disable()
  1229. },
  1230. whenReady: function (t, e) {
  1231. return this._loaded ? t.call(e || this, {target: this}) : this.on("load", t, e), this
  1232. },
  1233. _getMapPanePos: function () {
  1234. return Pe(this._mapPane) || new p(0, 0)
  1235. },
  1236. _moved: function () {
  1237. var t = this._getMapPanePos();
  1238. return t && !t.equals([0, 0])
  1239. },
  1240. _getTopLeftPoint: function (t, e) {
  1241. return (t && void 0 !== e ? this._getNewPixelOrigin(t, e) : this.getPixelOrigin()).subtract(this._getMapPanePos())
  1242. },
  1243. _getNewPixelOrigin: function (t, e) {
  1244. var i = this.getSize()._divideBy(2);
  1245. return this.project(t, e)._subtract(i)._add(this._getMapPanePos())._round()
  1246. },
  1247. _latLngToNewLayerPoint: function (t, e, i) {
  1248. i = this._getNewPixelOrigin(i, e);
  1249. return this.project(t, e)._subtract(i)
  1250. },
  1251. _latLngBoundsToNewLayerBounds: function (t, e, i) {
  1252. i = this._getNewPixelOrigin(i, e);
  1253. 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)])
  1254. },
  1255. _getCenterLayerPoint: function () {
  1256. return this.containerPointToLayerPoint(this.getSize()._divideBy(2))
  1257. },
  1258. _getCenterOffset: function (t) {
  1259. return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())
  1260. },
  1261. _limitCenter: function (t, e, i) {
  1262. var n, o;
  1263. 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)
  1264. },
  1265. _limitOffset: function (t, e) {
  1266. var i;
  1267. return e ? (i = new f((i = this.getPixelBounds()).min.add(t), i.max.add(t)), t.add(this._getBoundsOffset(i, e))) : t
  1268. },
  1269. _getBoundsOffset: function (t, e, i) {
  1270. e = _(this.project(e.getNorthEast(), i), this.project(e.getSouthWest(), i)), i = e.min.subtract(t.min), e = e.max.subtract(t.max);
  1271. return new p(this._rebound(i.x, -e.x), this._rebound(i.y, -e.y))
  1272. },
  1273. _rebound: function (t, e) {
  1274. return 0 < t + e ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e))
  1275. },
  1276. _limitZoom: function (t) {
  1277. var e = this.getMinZoom(), i = this.getMaxZoom(), n = b.any3d ? this.options.zoomSnap : 1;
  1278. return n && (t = Math.round(t / n) * n), Math.max(e, Math.min(i, t))
  1279. },
  1280. _onPanTransitionStep: function () {
  1281. this.fire("move")
  1282. },
  1283. _onPanTransitionEnd: function () {
  1284. z(this._mapPane, "leaflet-pan-anim"), this.fire("moveend")
  1285. },
  1286. _tryAnimatedPan: function (t, e) {
  1287. t = this._getCenterOffset(t)._trunc();
  1288. return !(!0 !== (e && e.animate) && !this.getSize().contains(t)) && (this.panBy(t, e), !0)
  1289. },
  1290. _createAnimProxy: function () {
  1291. var t = this._proxy = P("div", "leaflet-proxy leaflet-zoom-animated");
  1292. this._panes.mapPane.appendChild(t), this.on("zoomanim", function (t) {
  1293. var e = ue, i = this._proxy.style[e];
  1294. be(this._proxy, this.project(t.center, t.zoom), this.getZoomScale(t.zoom, 1)), i === this._proxy.style[e] && this._animatingZoom && this._onZoomTransitionEnd()
  1295. }, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this)
  1296. },
  1297. _destroyAnimProxy: function () {
  1298. T(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy
  1299. },
  1300. _animMoveEnd: function () {
  1301. var t = this.getCenter(), e = this.getZoom();
  1302. be(this._proxy, this.project(t, e), this.getZoomScale(e, 1))
  1303. },
  1304. _catchTransitionEnd: function (t) {
  1305. this._animatingZoom && 0 <= t.propertyName.indexOf("transform") && this._onZoomTransitionEnd()
  1306. },
  1307. _nothingToAnimate: function () {
  1308. return !this._container.getElementsByClassName("leaflet-zoom-animated").length
  1309. },
  1310. _tryAnimatedZoom: function (t, e, i) {
  1311. if (!this._animatingZoom) {
  1312. if (i = i || {}, !this._zoomAnimated || !1 === i.animate || this._nothingToAnimate() || Math.abs(e - this._zoom) > this.options.zoomAnimationThreshold) return !1;
  1313. var n = this.getZoomScale(e), n = this._getCenterOffset(t)._divideBy(1 - 1 / n);
  1314. if (!0 !== i.animate && !this.getSize().contains(n)) return !1;
  1315. x(function () {
  1316. this._moveStart(!0, i.noMoveStart || !1)._animateZoom(t, e, !0)
  1317. }, this)
  1318. }
  1319. return !0
  1320. },
  1321. _animateZoom: function (t, e, i, n) {
  1322. this._mapPane && (i && (this._animatingZoom = !0, this._animateToCenter = t, this._animateToZoom = e, M(this._mapPane, "leaflet-zoom-anim")), this.fire("zoomanim", {
  1323. center: t,
  1324. zoom: e,
  1325. noUpdate: n
  1326. }), this._tempFireZoomEvent || (this._tempFireZoomEvent = this._zoom !== this._animateToZoom), this._move(this._animateToCenter, this._animateToZoom, void 0, !0), setTimeout(a(this._onZoomTransitionEnd, this), 250))
  1327. },
  1328. _onZoomTransitionEnd: function () {
  1329. 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))
  1330. }
  1331. });
  1332. function Ue(t) {
  1333. return new B(t)
  1334. }
  1335. var B = et.extend({
  1336. options: {position: "topright"}, initialize: function (t) {
  1337. c(this, t)
  1338. }, getPosition: function () {
  1339. return this.options.position
  1340. }, setPosition: function (t) {
  1341. var e = this._map;
  1342. return e && e.removeControl(this), this.options.position = t, e && e.addControl(this), this
  1343. }, getContainer: function () {
  1344. return this._container
  1345. }, addTo: function (t) {
  1346. this.remove(), this._map = t;
  1347. var e = this._container = this.onAdd(t), i = this.getPosition(), t = t._controlCorners[i];
  1348. 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
  1349. }, remove: function () {
  1350. return this._map && (T(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null), this
  1351. }, _refocusOnMap: function (t) {
  1352. this._map && t && 0 < t.screenX && 0 < t.screenY && this._map.getContainer().focus()
  1353. }
  1354. }), Ve = (A.include({
  1355. addControl: function (t) {
  1356. return t.addTo(this), this
  1357. }, removeControl: function (t) {
  1358. return t.remove(), this
  1359. }, _initControlPos: function () {
  1360. var i = this._controlCorners = {}, n = "leaflet-",
  1361. o = this._controlContainer = P("div", n + "control-container", this._container);
  1362. function t(t, e) {
  1363. i[t + e] = P("div", n + t + " " + n + e, o)
  1364. }
  1365. t("top", "left"), t("top", "right"), t("bottom", "left"), t("bottom", "right")
  1366. }, _clearControlPos: function () {
  1367. for (var t in this._controlCorners) T(this._controlCorners[t]);
  1368. T(this._controlContainer), delete this._controlCorners, delete this._controlContainer
  1369. }
  1370. }), B.extend({
  1371. options: {
  1372. collapsed: !0,
  1373. position: "topright",
  1374. autoZIndex: !0,
  1375. hideSingleBase: !1,
  1376. sortLayers: !1,
  1377. sortFunction: function (t, e, i, n) {
  1378. return i < n ? -1 : n < i ? 1 : 0
  1379. }
  1380. }, initialize: function (t, e, i) {
  1381. 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);
  1382. for (n in e) this._addLayer(e[n], n, !0)
  1383. }, onAdd: function (t) {
  1384. this._initLayout(), this._update(), (this._map = t).on("zoomend", this._checkDisabledLayers, this);
  1385. for (var e = 0; e < this._layers.length; e++) this._layers[e].layer.on("add remove", this._onLayerChange, this);
  1386. return this._container
  1387. }, addTo: function (t) {
  1388. return B.prototype.addTo.call(this, t), this._expandIfNotCollapsed()
  1389. }, onRemove: function () {
  1390. this._map.off("zoomend", this._checkDisabledLayers, this);
  1391. for (var t = 0; t < this._layers.length; t++) this._layers[t].layer.off("add remove", this._onLayerChange, this)
  1392. }, addBaseLayer: function (t, e) {
  1393. return this._addLayer(t, e), this._map ? this._update() : this
  1394. }, addOverlay: function (t, e) {
  1395. return this._addLayer(t, e, !0), this._map ? this._update() : this
  1396. }, removeLayer: function (t) {
  1397. t.off("add remove", this._onLayerChange, this);
  1398. t = this._getLayer(h(t));
  1399. return t && this._layers.splice(this._layers.indexOf(t), 1), this._map ? this._update() : this
  1400. }, expand: function () {
  1401. M(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
  1402. var t = this._map.getSize().y - (this._container.offsetTop + 50);
  1403. 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
  1404. }, collapse: function () {
  1405. return z(this._container, "leaflet-control-layers-expanded"), this
  1406. }, _initLayout: function () {
  1407. var t = "leaflet-control-layers", e = this._container = P("div", t), i = this.options.collapsed,
  1408. n = (e.setAttribute("aria-haspopup", !0), Ie(e), Be(e), this._section = P("section", t + "-list")),
  1409. o = (i && (this._map.on("click", this.collapse, this), S(e, {
  1410. mouseenter: this._expandSafely,
  1411. mouseleave: this.collapse
  1412. }, this)), this._layersLink = P("a", t + "-toggle", e));
  1413. o.href = "#", o.title = "Layers", o.setAttribute("role", "button"), S(o, {
  1414. keydown: function (t) {
  1415. 13 === t.keyCode && this._expandSafely()
  1416. }, click: function (t) {
  1417. O(t), this._expandSafely()
  1418. }
  1419. }, 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)
  1420. }, _getLayer: function (t) {
  1421. for (var e = 0; e < this._layers.length; e++) if (this._layers[e] && h(this._layers[e].layer) === t) return this._layers[e]
  1422. }, _addLayer: function (t, e, i) {
  1423. this._map && t.on("add remove", this._onLayerChange, this), this._layers.push({
  1424. layer: t,
  1425. name: e,
  1426. overlay: i
  1427. }), this.options.sortLayers && this._layers.sort(a(function (t, e) {
  1428. return this.options.sortFunction(t.layer, e.layer, t.name, e.name)
  1429. }, this)), this.options.autoZIndex && t.setZIndex && (this._lastZIndex++, t.setZIndex(this._lastZIndex)), this._expandIfNotCollapsed()
  1430. }, _update: function () {
  1431. if (this._container) {
  1432. me(this._baseLayersList), me(this._overlaysList), this._layerControlInputs = [];
  1433. 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;
  1434. this.options.hideSingleBase && (this._baseLayersList.style.display = (t = t && 1 < n) ? "" : "none"), this._separator.style.display = e && t ? "" : "none"
  1435. }
  1436. return this
  1437. }, _onLayerChange: function (t) {
  1438. this._handlingClick || this._update();
  1439. var e = this._getLayer(h(t.target)),
  1440. t = e.overlay ? "add" === t.type ? "overlayadd" : "overlayremove" : "add" === t.type ? "baselayerchange" : null;
  1441. t && this._map.fire(t, e)
  1442. }, _createRadioElement: function (t, e) {
  1443. t = '<input type="radio" class="leaflet-control-layers-selector" name="' + t + '"' + (e ? ' checked="checked"' : "") + "/>", e = document.createElement("div");
  1444. return e.innerHTML = t, e.firstChild
  1445. }, _addItem: function (t) {
  1446. var e, i = document.createElement("label"), n = this._map.hasLayer(t.layer),
  1447. 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")),
  1448. o = (n.innerHTML = " " + t.name, document.createElement("span"));
  1449. return i.appendChild(o), o.appendChild(e), o.appendChild(n), (t.overlay ? this._overlaysList : this._baseLayersList).appendChild(i), this._checkDisabledLayers(), i
  1450. }, _onInputClick: function () {
  1451. if (!this._preventClick) {
  1452. var t, e, i = this._layerControlInputs, n = [], o = [];
  1453. this._handlingClick = !0;
  1454. 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);
  1455. for (s = 0; s < o.length; s++) this._map.hasLayer(o[s]) && this._map.removeLayer(o[s]);
  1456. for (s = 0; s < n.length; s++) this._map.hasLayer(n[s]) || this._map.addLayer(n[s]);
  1457. this._handlingClick = !1, this._refocusOnMap()
  1458. }
  1459. }, _checkDisabledLayers: function () {
  1460. 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
  1461. }, _expandIfNotCollapsed: function () {
  1462. return this._map && !this.options.collapsed && this.expand(), this
  1463. }, _expandSafely: function () {
  1464. var t = this._section, e = (this._preventClick = !0, S(t, "click", O), this.expand(), this);
  1465. setTimeout(function () {
  1466. k(t, "click", O), e._preventClick = !1
  1467. })
  1468. }
  1469. })), qe = B.extend({
  1470. options: {
  1471. position: "topleft",
  1472. zoomInText: '<span aria-hidden="true">+</span>',
  1473. zoomInTitle: "Zoom in",
  1474. zoomOutText: '<span aria-hidden="true">&#x2212;</span>',
  1475. zoomOutTitle: "Zoom out"
  1476. }, onAdd: function (t) {
  1477. var e = "leaflet-control-zoom", i = P("div", e + " leaflet-bar"), n = this.options;
  1478. 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
  1479. }, onRemove: function (t) {
  1480. t.off("zoomend zoomlevelschange", this._updateDisabled, this)
  1481. }, disable: function () {
  1482. return this._disabled = !0, this._updateDisabled(), this
  1483. }, enable: function () {
  1484. return this._disabled = !1, this._updateDisabled(), this
  1485. }, _zoomIn: function (t) {
  1486. !this._disabled && this._map._zoom < this._map.getMaxZoom() && this._map.zoomIn(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1))
  1487. }, _zoomOut: function (t) {
  1488. !this._disabled && this._map._zoom > this._map.getMinZoom() && this._map.zoomOut(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1))
  1489. }, _createButton: function (t, e, i, n, o) {
  1490. i = P("a", i, n);
  1491. 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
  1492. }, _updateDisabled: function () {
  1493. var t = this._map, e = "leaflet-disabled";
  1494. 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"))
  1495. }
  1496. }), Ge = (A.mergeOptions({zoomControl: !0}), A.addInitHook(function () {
  1497. this.options.zoomControl && (this.zoomControl = new qe, this.addControl(this.zoomControl))
  1498. }), B.extend({
  1499. options: {position: "bottomleft", maxWidth: 100, metric: !0, imperial: !0}, onAdd: function (t) {
  1500. var e = "leaflet-control-scale", i = P("div", e), n = this.options;
  1501. return this._addScales(n, e + "-line", i), t.on(n.updateWhenIdle ? "moveend" : "move", this._update, this), t.whenReady(this._update, this), i
  1502. }, onRemove: function (t) {
  1503. t.off(this.options.updateWhenIdle ? "moveend" : "move", this._update, this)
  1504. }, _addScales: function (t, e, i) {
  1505. t.metric && (this._mScale = P("div", e, i)), t.imperial && (this._iScale = P("div", e, i))
  1506. }, _update: function () {
  1507. var t = this._map, e = t.getSize().y / 2,
  1508. t = t.distance(t.containerPointToLatLng([0, e]), t.containerPointToLatLng([this.options.maxWidth, e]));
  1509. this._updateScales(t)
  1510. }, _updateScales: function (t) {
  1511. this.options.metric && t && this._updateMetric(t), this.options.imperial && t && this._updateImperial(t)
  1512. }, _updateMetric: function (t) {
  1513. var e = this._getRoundNum(t);
  1514. this._updateScale(this._mScale, e < 1e3 ? e + " m" : e / 1e3 + " km", e / t)
  1515. }, _updateImperial: function (t) {
  1516. var e, i, t = 3.2808399 * t;
  1517. 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))
  1518. }, _updateScale: function (t, e, i) {
  1519. t.style.width = Math.round(this.options.maxWidth * i) + "px", t.innerHTML = e
  1520. }, _getRoundNum: function (t) {
  1521. var e = Math.pow(10, (Math.floor(t) + "").length - 1), t = t / e;
  1522. return e * (t = 10 <= t ? 10 : 5 <= t ? 5 : 3 <= t ? 3 : 2 <= t ? 2 : 1)
  1523. }
  1524. })), Ke = B.extend({
  1525. options: {
  1526. position: "bottomright",
  1527. 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>"
  1528. }, initialize: function (t) {
  1529. c(this, t), this._attributions = {}
  1530. }, onAdd: function (t) {
  1531. 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());
  1532. return this._update(), t.on("layeradd", this._addAttribution, this), this._container
  1533. }, onRemove: function (t) {
  1534. t.off("layeradd", this._addAttribution, this)
  1535. }, _addAttribution: function (t) {
  1536. t.layer.getAttribution && (this.addAttribution(t.layer.getAttribution()), t.layer.once("remove", function () {
  1537. this.removeAttribution(t.layer.getAttribution())
  1538. }, this))
  1539. }, setPrefix: function (t) {
  1540. return this.options.prefix = t, this._update(), this
  1541. }, addAttribution: function (t) {
  1542. return t && (this._attributions[t] || (this._attributions[t] = 0), this._attributions[t]++, this._update()), this
  1543. }, removeAttribution: function (t) {
  1544. return t && this._attributions[t] && (this._attributions[t]--, this._update()), this
  1545. }, _update: function () {
  1546. if (this._map) {
  1547. var t, e = [];
  1548. for (t in this._attributions) this._attributions[t] && e.push(t);
  1549. var i = [];
  1550. this.options.prefix && i.push(this.options.prefix), e.length && i.push(e.join(", ")), this._container.innerHTML = i.join(' <span aria-hidden="true">|</span> ')
  1551. }
  1552. }
  1553. }), n = (A.mergeOptions({attributionControl: !0}), A.addInitHook(function () {
  1554. this.options.attributionControl && (new Ke).addTo(this)
  1555. }), B.Layers = Ve, B.Zoom = qe, B.Scale = Ge, B.Attribution = Ke, Ue.layers = function (t, e, i) {
  1556. return new Ve(t, e, i)
  1557. }, Ue.zoom = function (t) {
  1558. return new qe(t)
  1559. }, Ue.scale = function (t) {
  1560. return new Ge(t)
  1561. }, Ue.attribution = function (t) {
  1562. return new Ke(t)
  1563. }, et.extend({
  1564. initialize: function (t) {
  1565. this._map = t
  1566. }, enable: function () {
  1567. return this._enabled || (this._enabled = !0, this.addHooks()), this
  1568. }, disable: function () {
  1569. return this._enabled && (this._enabled = !1, this.removeHooks()), this
  1570. }, enabled: function () {
  1571. return !!this._enabled
  1572. }
  1573. })), ft = (n.addTo = function (t, e) {
  1574. return t.addHandler(e, this), this
  1575. }, {Events: e}), Ye = b.touch ? "touchstart mousedown" : "mousedown", Xe = it.extend({
  1576. options: {clickTolerance: 3}, initialize: function (t, e, i, n) {
  1577. c(this, n), this._element = t, this._dragStartTarget = e || t, this._preventOutline = i
  1578. }, enable: function () {
  1579. this._enabled || (S(this._dragStartTarget, Ye, this._onDown, this), this._enabled = !0)
  1580. }, disable: function () {
  1581. this._enabled && (Xe._dragging === this && this.finishDrag(!0), k(this._dragStartTarget, Ye, this._onDown, this), this._enabled = !1, this._moved = !1)
  1582. }, _onDown: function (t) {
  1583. var e, i;
  1584. 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)))))
  1585. }, _onMove: function (t) {
  1586. var e;
  1587. 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()))
  1588. }, _updatePosition: function () {
  1589. var t = {originalEvent: this._lastEvent};
  1590. this.fire("predrag", t), Z(this._element, this._newPos), this.fire("drag", t)
  1591. }, _onUp: function () {
  1592. this._enabled && this.finishDrag()
  1593. }, finishDrag: function (t) {
  1594. 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();
  1595. var e = this._moved && this._moving;
  1596. this._moving = !1, Xe._dragging = !1, e && this.fire("dragend", {
  1597. noInertia: t,
  1598. distance: this._newPos.distanceTo(this._startPos)
  1599. })
  1600. }
  1601. });
  1602. function Je(t, e, i) {
  1603. 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);
  1604. for (s = 0; s < 4; s++) {
  1605. 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));
  1606. t = n
  1607. }
  1608. return t
  1609. }
  1610. function $e(t, e) {
  1611. var i, n, o, s, r, a, h;
  1612. if (!t || 0 === t.length) throw new Error("latlngs not passed");
  1613. I(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
  1614. 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; _++) {
  1615. var p = w(t[_]);
  1616. d.push(e.project(w([p.lat - l.lat, p.lng - l.lng])))
  1617. }
  1618. 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;
  1619. u = 0 === r ? d[0] : [a / r, h / r], u = e.unproject(m(u));
  1620. return w([u.lat + l.lat, u.lng + l.lng])
  1621. }
  1622. function Qe(t) {
  1623. for (var e = 0, i = 0, n = 0, o = 0; o < t.length; o++) {
  1624. var s = w(t[o]);
  1625. e += s.lat, i += s.lng, n++
  1626. }
  1627. return w([e / n, i / n])
  1628. }
  1629. var ti, gt = {__proto__: null, clipPolygon: Je, polygonCenter: $e, centroid: Qe};
  1630. function ei(t, e) {
  1631. if (e && t.length) {
  1632. var i = t = function (t, e) {
  1633. for (var i = [t[0]], n = 1, o = 0, s = t.length; n < s; n++) (function (t, e) {
  1634. var i = e.x - t.x, e = e.y - t.y;
  1635. return i * i + e * e
  1636. })(t[n], t[o]) > e && (i.push(t[n]), o = n);
  1637. o < s - 1 && i.push(t[s - 1]);
  1638. return i
  1639. }(t, e = e * e), n = i.length, o = new (typeof Uint8Array != void 0 + "" ? Uint8Array : Array)(n);
  1640. o[0] = o[n - 1] = 1, function t(e, i, n, o, s) {
  1641. var r, a, h, l = 0;
  1642. for (a = o + 1; a <= s - 1; a++) h = ri(e[a], e[o], e[s], !0), l < h && (r = a, l = h);
  1643. n < l && (i[r] = 1, t(e, i, n, o, r), t(e, i, n, r, s))
  1644. }(i, o, e, 0, n - 1);
  1645. var s, r = [];
  1646. for (s = 0; s < n; s++) o[s] && r.push(i[s]);
  1647. return r
  1648. }
  1649. return t.slice()
  1650. }
  1651. function ii(t, e, i) {
  1652. return Math.sqrt(ri(t, e, i, !0))
  1653. }
  1654. function ni(t, e, i, n, o) {
  1655. var s, r, a, h = n ? ti : si(t, i), l = si(e, i);
  1656. for (ti = l; ;) {
  1657. if (!(h | l)) return [t, e];
  1658. if (h & l) return !1;
  1659. a = si(r = oi(t, e, s = h || l, i, o), i), s === h ? (t = r, h = a) : (e = r, l = a)
  1660. }
  1661. }
  1662. function oi(t, e, i, n, o) {
  1663. var s, r, a = e.x - t.x, e = e.y - t.y, h = n.min, n = n.max;
  1664. 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)
  1665. }
  1666. function si(t, e) {
  1667. var i = 0;
  1668. 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
  1669. }
  1670. function ri(t, e, i, n) {
  1671. var o = e.x, e = e.y, s = i.x - o, r = i.y - e, a = s * s + r * r;
  1672. 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)
  1673. }
  1674. function I(t) {
  1675. return !d(t[0]) || "object" != typeof t[0][0] && void 0 !== t[0][0]
  1676. }
  1677. function ai(t) {
  1678. return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), I(t)
  1679. }
  1680. function hi(t, e) {
  1681. var i, n, o, s, r, a;
  1682. if (!t || 0 === t.length) throw new Error("latlngs not passed");
  1683. I(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
  1684. 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++) {
  1685. var _ = w(t[d]);
  1686. c.push(e.project(w([_.lat - h.lat, _.lng - h.lng])))
  1687. }
  1688. for (i = d = 0; d < u - 1; d++) i += c[d].distanceTo(c[d + 1]) / 2;
  1689. if (0 === i) a = c[0]; else for (n = d = 0; d < u - 1; d++) if (o = c[d], s = c[d + 1], i < (n += r = o.distanceTo(s))) {
  1690. a = [s.x - (r = (n - i) / r) * (s.x - o.x), s.y - r * (s.y - o.y)];
  1691. break
  1692. }
  1693. l = e.unproject(m(a));
  1694. return w([l.lat + h.lat, l.lng + h.lng])
  1695. }
  1696. var vt = {
  1697. __proto__: null,
  1698. simplify: ei,
  1699. pointToSegmentDistance: ii,
  1700. closestPointOnSegment: function (t, e, i) {
  1701. return ri(t, e, i)
  1702. },
  1703. clipSegment: ni,
  1704. _getEdgeIntersection: oi,
  1705. _getBitCode: si,
  1706. _sqClosestPointOnSegment: ri,
  1707. isFlat: I,
  1708. _flat: ai,
  1709. polylineCenter: hi
  1710. }, yt = {
  1711. project: function (t) {
  1712. return new p(t.lng, t.lat)
  1713. }, unproject: function (t) {
  1714. return new v(t.y, t.x)
  1715. }, bounds: new f([-180, -90], [180, 90])
  1716. }, xt = {
  1717. R: 6378137,
  1718. R_MINOR: 6356752.314245179,
  1719. bounds: new f([-20037508.34279, -15496570.73972], [20037508.34279, 18764656.23138]),
  1720. project: function (t) {
  1721. var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i, o = Math.sqrt(1 - o * o),
  1722. s = o * Math.sin(n), s = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - s) / (1 + s), o / 2),
  1723. n = -i * Math.log(Math.max(s, 1e-10));
  1724. return new p(t.lng * e * i, n)
  1725. },
  1726. unproject: function (t) {
  1727. 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;
  1728. return new v(a * i, t.x * i / n)
  1729. }
  1730. }, wt = {__proto__: null, LonLat: yt, Mercator: xt, SphericalMercator: rt}, Pt = l({}, st, {
  1731. code: "EPSG:3395",
  1732. projection: xt,
  1733. transformation: ht(bt = .5 / (Math.PI * xt.R), .5, -bt, .5)
  1734. }), li = l({}, st, {code: "EPSG:4326", projection: yt, transformation: ht(1 / 180, 1, -1 / 180, .5)}),
  1735. Lt = l({}, ot, {
  1736. projection: yt, transformation: ht(1, 0, -1, 0), scale: function (t) {
  1737. return Math.pow(2, t)
  1738. }, zoom: function (t) {
  1739. return Math.log(t) / Math.LN2
  1740. }, distance: function (t, e) {
  1741. var i = e.lng - t.lng, e = e.lat - t.lat;
  1742. return Math.sqrt(i * i + e * e)
  1743. }, infinite: !0
  1744. }),
  1745. o = (ot.Earth = st, ot.EPSG3395 = Pt, ot.EPSG3857 = lt, ot.EPSG900913 = ut, ot.EPSG4326 = li, ot.Simple = Lt, it.extend({
  1746. options: {
  1747. pane: "overlayPane",
  1748. attribution: null,
  1749. bubblingMouseEvents: !0
  1750. }, addTo: function (t) {
  1751. return t.addLayer(this), this
  1752. }, remove: function () {
  1753. return this.removeFrom(this._map || this._mapToAdd)
  1754. }, removeFrom: function (t) {
  1755. return t && t.removeLayer(this), this
  1756. }, getPane: function (t) {
  1757. return this._map.getPane(t ? this.options[t] || t : this.options.pane)
  1758. }, addInteractiveTarget: function (t) {
  1759. return this._map._targets[h(t)] = this
  1760. }, removeInteractiveTarget: function (t) {
  1761. return delete this._map._targets[h(t)], this
  1762. }, getAttribution: function () {
  1763. return this.options.attribution
  1764. }, _layerAdd: function (t) {
  1765. var e, i = t.target;
  1766. i.hasLayer(this) && (this._map = i, this._zoomAnimated = i._zoomAnimated, this.getEvents && (e = this.getEvents(), i.on(e, this), this.once("remove", function () {
  1767. i.off(e, this)
  1768. }, this)), this.onAdd(i), this.fire("add"), i.fire("layeradd", {layer: this}))
  1769. }
  1770. })), ui = (A.include({
  1771. addLayer: function (t) {
  1772. var e;
  1773. 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;
  1774. throw new Error("The provided object is not a Layer.")
  1775. }, removeLayer: function (t) {
  1776. var e = h(t);
  1777. 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
  1778. }, hasLayer: function (t) {
  1779. return h(t) in this._layers
  1780. }, eachLayer: function (t, e) {
  1781. for (var i in this._layers) t.call(e, this._layers[i]);
  1782. return this
  1783. }, _addLayers: function (t) {
  1784. for (var e = 0, i = (t = t ? d(t) ? t : [t] : []).length; e < i; e++) this.addLayer(t[e])
  1785. }, _addZoomLimit: function (t) {
  1786. isNaN(t.options.maxZoom) && isNaN(t.options.minZoom) || (this._zoomBoundLayers[h(t)] = t, this._updateZoomLevels())
  1787. }, _removeZoomLimit: function (t) {
  1788. t = h(t);
  1789. this._zoomBoundLayers[t] && (delete this._zoomBoundLayers[t], this._updateZoomLevels())
  1790. }, _updateZoomLevels: function () {
  1791. var t, e = 1 / 0, i = -1 / 0, n = this._getZoomSpan();
  1792. for (t in this._zoomBoundLayers) var o = this._zoomBoundLayers[t].options, e = void 0 === o.minZoom ? e : Math.min(e, o.minZoom), i = void 0 === o.maxZoom ? i : Math.max(i, o.maxZoom);
  1793. 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)
  1794. }
  1795. }), o.extend({
  1796. initialize: function (t, e) {
  1797. var i, n;
  1798. if (c(this, e), this._layers = {}, t) for (i = 0, n = t.length; i < n; i++) this.addLayer(t[i])
  1799. }, addLayer: function (t) {
  1800. var e = this.getLayerId(t);
  1801. return this._layers[e] = t, this._map && this._map.addLayer(t), this
  1802. }, removeLayer: function (t) {
  1803. t = t in this._layers ? t : this.getLayerId(t);
  1804. return this._map && this._layers[t] && this._map.removeLayer(this._layers[t]), delete this._layers[t], this
  1805. }, hasLayer: function (t) {
  1806. return ("number" == typeof t ? t : this.getLayerId(t)) in this._layers
  1807. }, clearLayers: function () {
  1808. return this.eachLayer(this.removeLayer, this)
  1809. }, invoke: function (t) {
  1810. var e, i, n = Array.prototype.slice.call(arguments, 1);
  1811. for (e in this._layers) (i = this._layers[e])[t] && i[t].apply(i, n);
  1812. return this
  1813. }, onAdd: function (t) {
  1814. this.eachLayer(t.addLayer, t)
  1815. }, onRemove: function (t) {
  1816. this.eachLayer(t.removeLayer, t)
  1817. }, eachLayer: function (t, e) {
  1818. for (var i in this._layers) t.call(e, this._layers[i]);
  1819. return this
  1820. }, getLayer: function (t) {
  1821. return this._layers[t]
  1822. }, getLayers: function () {
  1823. var t = [];
  1824. return this.eachLayer(t.push, t), t
  1825. }, setZIndex: function (t) {
  1826. return this.invoke("setZIndex", t)
  1827. }, getLayerId: h
  1828. })), ci = ui.extend({
  1829. addLayer: function (t) {
  1830. return this.hasLayer(t) ? this : (t.addEventParent(this), ui.prototype.addLayer.call(this, t), this.fire("layeradd", {layer: t}))
  1831. }, removeLayer: function (t) {
  1832. 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
  1833. }, setStyle: function (t) {
  1834. return this.invoke("setStyle", t)
  1835. }, bringToFront: function () {
  1836. return this.invoke("bringToFront")
  1837. }, bringToBack: function () {
  1838. return this.invoke("bringToBack")
  1839. }, getBounds: function () {
  1840. var t, e = new s;
  1841. for (t in this._layers) {
  1842. var i = this._layers[t];
  1843. e.extend(i.getBounds ? i.getBounds() : i.getLatLng())
  1844. }
  1845. return e
  1846. }
  1847. }), di = et.extend({
  1848. options: {popupAnchor: [0, 0], tooltipAnchor: [0, 0], crossOrigin: !1}, initialize: function (t) {
  1849. c(this, t)
  1850. }, createIcon: function (t) {
  1851. return this._createIcon("icon", t)
  1852. }, createShadow: function (t) {
  1853. return this._createIcon("shadow", t)
  1854. }, _createIcon: function (t, e) {
  1855. var i = this._getIconUrl(t);
  1856. 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;
  1857. if ("icon" === t) throw new Error("iconUrl not set in Icon options (see the docs).");
  1858. return null
  1859. }, _setIconStyles: function (t, e) {
  1860. var i = this.options, n = i[e + "Size"], n = m(n = "number" == typeof n ? [n, n] : n),
  1861. o = m("shadow" === e && i.shadowAnchor || i.iconAnchor || n && n.divideBy(2, !0));
  1862. 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")
  1863. }, _createImg: function (t, e) {
  1864. return (e = e || document.createElement("img")).src = t, e
  1865. }, _getIconUrl: function (t) {
  1866. return b.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"]
  1867. }
  1868. });
  1869. var _i = di.extend({
  1870. options: {
  1871. iconUrl: "marker-icon.png",
  1872. iconRetinaUrl: "marker-icon-2x.png",
  1873. shadowUrl: "marker-shadow.png",
  1874. iconSize: [25, 41],
  1875. iconAnchor: [12, 41],
  1876. popupAnchor: [1, -34],
  1877. tooltipAnchor: [16, -28],
  1878. shadowSize: [41, 41]
  1879. }, _getIconUrl: function (t) {
  1880. return "string" != typeof _i.imagePath && (_i.imagePath = this._detectIconPath()), (this.options.imagePath || _i.imagePath) + di.prototype._getIconUrl.call(this, t)
  1881. }, _stripUrl: function (t) {
  1882. function e(t, e, i) {
  1883. return (e = e.exec(t)) && e[i]
  1884. }
  1885. return (t = e(t, /^url\((['"])?(.+)\1\)$/, 2)) && e(t, /^(.*)marker-icon\.png$/, 1)
  1886. }, _detectIconPath: function () {
  1887. var t = P("div", "leaflet-default-icon-path", document.body),
  1888. e = pe(t, "background-image") || pe(t, "backgroundImage");
  1889. 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) : ""
  1890. }
  1891. }), pi = n.extend({
  1892. initialize: function (t) {
  1893. this._marker = t
  1894. }, addHooks: function () {
  1895. var t = this._marker._icon;
  1896. this._draggable || (this._draggable = new Xe(t, t, !0)), this._draggable.on({
  1897. dragstart: this._onDragStart,
  1898. predrag: this._onPreDrag,
  1899. drag: this._onDrag,
  1900. dragend: this._onDragEnd
  1901. }, this).enable(), M(t, "leaflet-marker-draggable")
  1902. }, removeHooks: function () {
  1903. this._draggable.off({
  1904. dragstart: this._onDragStart,
  1905. predrag: this._onPreDrag,
  1906. drag: this._onDrag,
  1907. dragend: this._onDragEnd
  1908. }, this).disable(), this._marker._icon && z(this._marker._icon, "leaflet-marker-draggable")
  1909. }, moved: function () {
  1910. return this._draggable && this._draggable._moved
  1911. }, _adjustPan: function (t) {
  1912. var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed,
  1913. o = this._marker.options.autoPanPadding, s = Pe(e._icon), r = i.getPixelBounds(),
  1914. a = i.getPixelOrigin(), a = _(r.min._subtract(a).add(o), r.max._subtract(a).subtract(o));
  1915. 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)))
  1916. }, _onDragStart: function () {
  1917. this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup && this._marker.closePopup(), this._marker.fire("movestart").fire("dragstart")
  1918. }, _onPreDrag: function (t) {
  1919. this._marker.options.autoPan && (r(this._panRequest), this._panRequest = x(this._adjustPan.bind(this, t)))
  1920. }, _onDrag: function (t) {
  1921. var e = this._marker, i = e._shadow, n = Pe(e._icon), o = e._map.layerPointToLatLng(n);
  1922. i && Z(i, n), e._latlng = o, t.latlng = o, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t)
  1923. }, _onDragEnd: function (t) {
  1924. r(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t)
  1925. }
  1926. }), mi = o.extend({
  1927. options: {
  1928. icon: new _i,
  1929. interactive: !0,
  1930. keyboard: !0,
  1931. title: "",
  1932. alt: "Marker",
  1933. zIndexOffset: 0,
  1934. opacity: 1,
  1935. riseOnHover: !1,
  1936. riseOffset: 250,
  1937. pane: "markerPane",
  1938. shadowPane: "shadowPane",
  1939. bubblingMouseEvents: !1,
  1940. autoPanOnFocus: !0,
  1941. draggable: !1,
  1942. autoPan: !1,
  1943. autoPanPadding: [50, 50],
  1944. autoPanSpeed: 10
  1945. }, initialize: function (t, e) {
  1946. c(this, e), this._latlng = w(t)
  1947. }, onAdd: function (t) {
  1948. this._zoomAnimated = this._zoomAnimated && t.options.markerZoomAnimation, this._zoomAnimated && t.on("zoomanim", this._animateZoom, this), this._initIcon(), this.update()
  1949. }, onRemove: function (t) {
  1950. 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()
  1951. }, getEvents: function () {
  1952. return {zoom: this.update, viewreset: this.update}
  1953. }, getLatLng: function () {
  1954. return this._latlng
  1955. }, setLatLng: function (t) {
  1956. var e = this._latlng;
  1957. return this._latlng = w(t), this.update(), this.fire("move", {oldLatLng: e, latlng: this._latlng})
  1958. }, setZIndexOffset: function (t) {
  1959. return this.options.zIndexOffset = t, this.update()
  1960. }, getIcon: function () {
  1961. return this.options.icon
  1962. }, setIcon: function (t) {
  1963. return this.options.icon = t, this._map && (this._initIcon(), this.update()), this._popup && this.bindPopup(this._popup, this._popup.options), this
  1964. }, getElement: function () {
  1965. return this._icon
  1966. }, update: function () {
  1967. var t;
  1968. return this._icon && this._map && (t = this._map.latLngToLayerPoint(this._latlng).round(), this._setPos(t)), this
  1969. }, _initIcon: function () {
  1970. var t = this.options, e = "leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide"),
  1971. i = t.icon.createIcon(this._icon), n = !1,
  1972. 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({
  1973. mouseover: this._bringToFront,
  1974. mouseout: this._resetZIndex
  1975. }), this.options.autoPanOnFocus && S(i, "focus", this._panOnFocus, this), t.icon.createShadow(this._shadow)),
  1976. o = !1;
  1977. 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)
  1978. }, _removeIcon: function () {
  1979. this.options.riseOnHover && this.off({
  1980. mouseover: this._bringToFront,
  1981. mouseout: this._resetZIndex
  1982. }), this.options.autoPanOnFocus && k(this._icon, "focus", this._panOnFocus, this), T(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null
  1983. }, _removeShadow: function () {
  1984. this._shadow && T(this._shadow), this._shadow = null
  1985. }, _setPos: function (t) {
  1986. this._icon && Z(this._icon, t), this._shadow && Z(this._shadow, t), this._zIndex = t.y + this.options.zIndexOffset, this._resetZIndex()
  1987. }, _updateZIndex: function (t) {
  1988. this._icon && (this._icon.style.zIndex = this._zIndex + t)
  1989. }, _animateZoom: function (t) {
  1990. t = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center).round();
  1991. this._setPos(t)
  1992. }, _initInteraction: function () {
  1993. var t;
  1994. 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()))
  1995. }, setOpacity: function (t) {
  1996. return this.options.opacity = t, this._map && this._updateOpacity(), this
  1997. }, _updateOpacity: function () {
  1998. var t = this.options.opacity;
  1999. this._icon && C(this._icon, t), this._shadow && C(this._shadow, t)
  2000. }, _bringToFront: function () {
  2001. this._updateZIndex(this.options.riseOffset)
  2002. }, _resetZIndex: function () {
  2003. this._updateZIndex(0)
  2004. }, _panOnFocus: function () {
  2005. var t, e, i = this._map;
  2006. 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, {
  2007. paddingTopLeft: e,
  2008. paddingBottomRight: t.subtract(e)
  2009. }))
  2010. }, _getPopupAnchor: function () {
  2011. return this.options.icon.options.popupAnchor
  2012. }, _getTooltipAnchor: function () {
  2013. return this.options.icon.options.tooltipAnchor
  2014. }
  2015. });
  2016. var fi = o.extend({
  2017. options: {
  2018. stroke: !0,
  2019. color: "#3388ff",
  2020. weight: 3,
  2021. opacity: 1,
  2022. lineCap: "round",
  2023. lineJoin: "round",
  2024. dashArray: null,
  2025. dashOffset: null,
  2026. fill: !1,
  2027. fillColor: null,
  2028. fillOpacity: .2,
  2029. fillRule: "evenodd",
  2030. interactive: !0,
  2031. bubblingMouseEvents: !0
  2032. }, beforeAdd: function (t) {
  2033. this._renderer = t.getRenderer(this)
  2034. }, onAdd: function () {
  2035. this._renderer._initPath(this), this._reset(), this._renderer._addPath(this)
  2036. }, onRemove: function () {
  2037. this._renderer._removePath(this)
  2038. }, redraw: function () {
  2039. return this._map && this._renderer._updatePath(this), this
  2040. }, setStyle: function (t) {
  2041. return c(this, t), this._renderer && (this._renderer._updateStyle(this), this.options.stroke && t && Object.prototype.hasOwnProperty.call(t, "weight") && this._updateBounds()), this
  2042. }, bringToFront: function () {
  2043. return this._renderer && this._renderer._bringToFront(this), this
  2044. }, bringToBack: function () {
  2045. return this._renderer && this._renderer._bringToBack(this), this
  2046. }, getElement: function () {
  2047. return this._path
  2048. }, _reset: function () {
  2049. this._project(), this._update()
  2050. }, _clickTolerance: function () {
  2051. return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0)
  2052. }
  2053. }), gi = fi.extend({
  2054. options: {fill: !0, radius: 10}, initialize: function (t, e) {
  2055. c(this, e), this._latlng = w(t), this._radius = this.options.radius
  2056. }, setLatLng: function (t) {
  2057. var e = this._latlng;
  2058. return this._latlng = w(t), this.redraw(), this.fire("move", {oldLatLng: e, latlng: this._latlng})
  2059. }, getLatLng: function () {
  2060. return this._latlng
  2061. }, setRadius: function (t) {
  2062. return this.options.radius = this._radius = t, this.redraw()
  2063. }, getRadius: function () {
  2064. return this._radius
  2065. }, setStyle: function (t) {
  2066. var e = t && t.radius || this._radius;
  2067. return fi.prototype.setStyle.call(this, t), this.setRadius(e), this
  2068. }, _project: function () {
  2069. this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds()
  2070. }, _updateBounds: function () {
  2071. var t = this._radius, e = this._radiusY || t, i = this._clickTolerance(), t = [t + i, e + i];
  2072. this._pxBounds = new f(this._point.subtract(t), this._point.add(t))
  2073. }, _update: function () {
  2074. this._map && this._updatePath()
  2075. }, _updatePath: function () {
  2076. this._renderer._updateCircle(this)
  2077. }, _empty: function () {
  2078. return this._radius && !this._renderer._bounds.intersects(this._pxBounds)
  2079. }, _containsPoint: function (t) {
  2080. return t.distanceTo(this._point) <= this._radius + this._clickTolerance()
  2081. }
  2082. });
  2083. var vi = gi.extend({
  2084. initialize: function (t, e, i) {
  2085. 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");
  2086. this._mRadius = this.options.radius
  2087. }, setRadius: function (t) {
  2088. return this._mRadius = t, this.redraw()
  2089. }, getRadius: function () {
  2090. return this._mRadius
  2091. }, getBounds: function () {
  2092. var t = [this._radius, this._radiusY || this._radius];
  2093. return new s(this._map.layerPointToLatLng(this._point.subtract(t)), this._map.layerPointToLatLng(this._point.add(t)))
  2094. }, setStyle: fi.prototype.setStyle, _project: function () {
  2095. var t, e, i, n, o, s = this._latlng.lng, r = this._latlng.lat, a = this._map, h = a.options.crs;
  2096. 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()
  2097. }
  2098. });
  2099. var yi = fi.extend({
  2100. options: {smoothFactor: 1, noClip: !1}, initialize: function (t, e) {
  2101. c(this, e), this._setLatLngs(t)
  2102. }, getLatLngs: function () {
  2103. return this._latlngs
  2104. }, setLatLngs: function (t) {
  2105. return this._setLatLngs(t), this.redraw()
  2106. }, isEmpty: function () {
  2107. return !this._latlngs.length
  2108. }, closestLayerPoint: function (t) {
  2109. for (var e = 1 / 0, i = null, n = ri, o = 0, s = this._parts.length; o < s; o++) for (var r = this._parts[o], a = 1, h = r.length; a < h; a++) {
  2110. var l, u, c = n(t, l = r[a - 1], u = r[a], !0);
  2111. c < e && (e = c, i = n(t, l, u))
  2112. }
  2113. return i && (i.distance = Math.sqrt(e)), i
  2114. }, getCenter: function () {
  2115. if (this._map) return hi(this._defaultShape(), this._map.options.crs);
  2116. throw new Error("Must add layer to map before using getCenter()")
  2117. }, getBounds: function () {
  2118. return this._bounds
  2119. }, addLatLng: function (t, e) {
  2120. return e = e || this._defaultShape(), t = w(t), e.push(t), this._bounds.extend(t), this.redraw()
  2121. }, _setLatLngs: function (t) {
  2122. this._bounds = new s, this._latlngs = this._convertLatLngs(t)
  2123. }, _defaultShape: function () {
  2124. return I(this._latlngs) ? this._latlngs : this._latlngs[0]
  2125. }, _convertLatLngs: function (t) {
  2126. 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]);
  2127. return e
  2128. }, _project: function () {
  2129. var t = new f;
  2130. this._rings = [], this._projectLatlngs(this._latlngs, this._rings, t), this._bounds.isValid() && t.isValid() && (this._rawPxBounds = t, this._updateBounds())
  2131. }, _updateBounds: function () {
  2132. var t = this._clickTolerance(), t = new p(t, t);
  2133. this._rawPxBounds && (this._pxBounds = new f([this._rawPxBounds.min.subtract(t), this._rawPxBounds.max.add(t)]))
  2134. }, _projectLatlngs: function (t, e, i) {
  2135. var n, o, s = t[0] instanceof v, r = t.length;
  2136. if (s) {
  2137. for (o = [], n = 0; n < r; n++) o[n] = this._map.latLngToLayerPoint(t[n]), i.extend(o[n]);
  2138. e.push(o)
  2139. } else for (n = 0; n < r; n++) this._projectLatlngs(t[n], e, i)
  2140. }, _clipPoints: function () {
  2141. var t = this._renderer._bounds;
  2142. if (this._parts = [], this._pxBounds && this._pxBounds.intersects(t)) if (this.options.noClip) this._parts = this._rings; else for (var e, i, n, o, s = this._parts, r = 0, a = 0, h = this._rings.length; r < h; r++) 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++))
  2143. }, _simplifyPoints: function () {
  2144. for (var t = this._parts, e = this.options.smoothFactor, i = 0, n = t.length; i < n; i++) t[i] = ei(t[i], e)
  2145. }, _update: function () {
  2146. this._map && (this._clipPoints(), this._simplifyPoints(), this._updatePath())
  2147. }, _updatePath: function () {
  2148. this._renderer._updatePoly(this)
  2149. }, _containsPoint: function (t, e) {
  2150. var i, n, o, s, r, a, h = this._clickTolerance();
  2151. if (this._pxBounds && this._pxBounds.contains(t)) for (i = 0, s = this._parts.length; i < s; i++) for (n = 0, o = (r = (a = this._parts[i]).length) - 1; n < r; o = n++) if ((e || 0 !== n) && ii(t, a[o], a[n]) <= h) return !0;
  2152. return !1
  2153. }
  2154. });
  2155. yi._flat = ai;
  2156. var xi = yi.extend({
  2157. options: {fill: !0}, isEmpty: function () {
  2158. return !this._latlngs.length || !this._latlngs[0].length
  2159. }, getCenter: function () {
  2160. if (this._map) return $e(this._defaultShape(), this._map.options.crs);
  2161. throw new Error("Must add layer to map before using getCenter()")
  2162. }, _convertLatLngs: function (t) {
  2163. var t = yi.prototype._convertLatLngs.call(this, t), e = t.length;
  2164. return 2 <= e && t[0] instanceof v && t[0].equals(t[e - 1]) && t.pop(), t
  2165. }, _setLatLngs: function (t) {
  2166. yi.prototype._setLatLngs.call(this, t), I(this._latlngs) && (this._latlngs = [this._latlngs])
  2167. }, _defaultShape: function () {
  2168. return (I(this._latlngs[0]) ? this._latlngs : this._latlngs[0])[0]
  2169. }, _clipPoints: function () {
  2170. var t = this._renderer._bounds, e = this.options.weight, e = new p(e, e),
  2171. t = new f(t.min.subtract(e), t.max.add(e));
  2172. if (this._parts = [], this._pxBounds && this._pxBounds.intersects(t)) if (this.options.noClip) this._parts = this._rings; else for (var i, n = 0, o = this._rings.length; n < o; n++) (i = Je(this._rings[n], t, !0)).length && this._parts.push(i)
  2173. }, _updatePath: function () {
  2174. this._renderer._updatePoly(this, !0)
  2175. }, _containsPoint: function (t) {
  2176. var e, i, n, o, s, r, a, h, l = !1;
  2177. if (!this._pxBounds || !this._pxBounds.contains(t)) return !1;
  2178. for (o = 0, a = this._parts.length; o < a; o++) 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);
  2179. return l || yi.prototype._containsPoint.call(this, t, !0)
  2180. }
  2181. });
  2182. var wi = ci.extend({
  2183. initialize: function (t, e) {
  2184. c(this, e), this._layers = {}, t && this.addData(t)
  2185. }, addData: function (t) {
  2186. var e, i, n, o = d(t) ? t : t.features;
  2187. if (o) {
  2188. for (e = 0, i = o.length; e < i; e++) ((n = o[e]).geometries || n.geometry || n.features || n.coordinates) && this.addData(n);
  2189. return this
  2190. }
  2191. var s, r = this.options;
  2192. 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
  2193. }, resetStyle: function (t) {
  2194. return void 0 === t ? this.eachLayer(this.resetStyle, this) : (t.options = l({}, t.defaultOptions), this._setLayerStyle(t, this.options.style), this)
  2195. }, setStyle: function (e) {
  2196. return this.eachLayer(function (t) {
  2197. this._setLayerStyle(t, e)
  2198. }, this)
  2199. }, _setLayerStyle: function (t, e) {
  2200. t.setStyle && ("function" == typeof e && (e = e(t.feature)), t.setStyle(e))
  2201. }
  2202. });
  2203. function bi(t, e) {
  2204. var i, n, o, s, r = "Feature" === t.type ? t.geometry : t, a = r ? r.coordinates : null, h = [],
  2205. l = e && e.pointToLayer, u = e && e.coordsToLatLng || Li;
  2206. if (!a && !r) return null;
  2207. switch (r.type) {
  2208. case"Point":
  2209. return Pi(l, t, i = u(a), e);
  2210. case"MultiPoint":
  2211. for (o = 0, s = a.length; o < s; o++) i = u(a[o]), h.push(Pi(l, t, i, e));
  2212. return new ci(h);
  2213. case"LineString":
  2214. case"MultiLineString":
  2215. return n = Ti(a, "LineString" === r.type ? 0 : 1, u), new yi(n, e);
  2216. case"Polygon":
  2217. case"MultiPolygon":
  2218. return n = Ti(a, "Polygon" === r.type ? 1 : 2, u), new xi(n, e);
  2219. case"GeometryCollection":
  2220. for (o = 0, s = r.geometries.length; o < s; o++) {
  2221. var c = bi({geometry: r.geometries[o], type: "Feature", properties: t.properties}, e);
  2222. c && h.push(c)
  2223. }
  2224. return new ci(h);
  2225. case"FeatureCollection":
  2226. for (o = 0, s = r.features.length; o < s; o++) {
  2227. var d = bi(r.features[o], e);
  2228. d && h.push(d)
  2229. }
  2230. return new ci(h);
  2231. default:
  2232. throw new Error("Invalid GeoJSON object.")
  2233. }
  2234. }
  2235. function Pi(t, e, i, n) {
  2236. return t ? t(e, i) : new mi(i, n && n.markersInheritOptions && n)
  2237. }
  2238. function Li(t) {
  2239. return new v(t[1], t[0], t[2])
  2240. }
  2241. function Ti(t, e, i) {
  2242. 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);
  2243. return o
  2244. }
  2245. function Mi(t, e) {
  2246. 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)]
  2247. }
  2248. function zi(t, e, i, n) {
  2249. 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));
  2250. return !e && i && 0 < o.length && o.push(o[0].slice()), o
  2251. }
  2252. function Ci(t, e) {
  2253. return t.feature ? l({}, t.feature, {geometry: e}) : Zi(e)
  2254. }
  2255. function Zi(t) {
  2256. return "Feature" === t.type || "FeatureCollection" === t.type ? t : {
  2257. type: "Feature",
  2258. properties: {},
  2259. geometry: t
  2260. }
  2261. }
  2262. Tt = {
  2263. toGeoJSON: function (t) {
  2264. return Ci(this, {type: "Point", coordinates: Mi(this.getLatLng(), t)})
  2265. }
  2266. };
  2267. function Si(t, e) {
  2268. return new wi(t, e)
  2269. }
  2270. mi.include(Tt), vi.include(Tt), gi.include(Tt), yi.include({
  2271. toGeoJSON: function (t) {
  2272. var e = !I(this._latlngs);
  2273. return Ci(this, {type: (e ? "Multi" : "") + "LineString", coordinates: zi(this._latlngs, e ? 1 : 0, !1, t)})
  2274. }
  2275. }), xi.include({
  2276. toGeoJSON: function (t) {
  2277. var e = !I(this._latlngs), i = e && !I(this._latlngs[0]), t = zi(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
  2278. return Ci(this, {type: (i ? "Multi" : "") + "Polygon", coordinates: t = e ? t : [t]})
  2279. }
  2280. }), ui.include({
  2281. toMultiPoint: function (e) {
  2282. var i = [];
  2283. return this.eachLayer(function (t) {
  2284. i.push(t.toGeoJSON(e).geometry.coordinates)
  2285. }), Ci(this, {type: "MultiPoint", coordinates: i})
  2286. }, toGeoJSON: function (e) {
  2287. var i, n, t = this.feature && this.feature.geometry && this.feature.geometry.type;
  2288. return "MultiPoint" === t ? this.toMultiPoint(e) : (i = "GeometryCollection" === t, n = [], this.eachLayer(function (t) {
  2289. 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))
  2290. }), i ? Ci(this, {geometries: n, type: "GeometryCollection"}) : {type: "FeatureCollection", features: n})
  2291. }
  2292. });
  2293. var Mt = Si, Ei = o.extend({
  2294. options: {opacity: 1, alt: "", interactive: !1, crossOrigin: !1, errorOverlayUrl: "", zIndex: 1, className: ""},
  2295. initialize: function (t, e, i) {
  2296. this._url = t, this._bounds = g(e), c(this, i)
  2297. },
  2298. onAdd: function () {
  2299. 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()
  2300. },
  2301. onRemove: function () {
  2302. T(this._image), this.options.interactive && this.removeInteractiveTarget(this._image)
  2303. },
  2304. setOpacity: function (t) {
  2305. return this.options.opacity = t, this._image && this._updateOpacity(), this
  2306. },
  2307. setStyle: function (t) {
  2308. return t.opacity && this.setOpacity(t.opacity), this
  2309. },
  2310. bringToFront: function () {
  2311. return this._map && fe(this._image), this
  2312. },
  2313. bringToBack: function () {
  2314. return this._map && ge(this._image), this
  2315. },
  2316. setUrl: function (t) {
  2317. return this._url = t, this._image && (this._image.src = t), this
  2318. },
  2319. setBounds: function (t) {
  2320. return this._bounds = g(t), this._map && this._reset(), this
  2321. },
  2322. getEvents: function () {
  2323. var t = {zoom: this._reset, viewreset: this._reset};
  2324. return this._zoomAnimated && (t.zoomanim = this._animateZoom), t
  2325. },
  2326. setZIndex: function (t) {
  2327. return this.options.zIndex = t, this._updateZIndex(), this
  2328. },
  2329. getBounds: function () {
  2330. return this._bounds
  2331. },
  2332. getElement: function () {
  2333. return this._image
  2334. },
  2335. _initImage: function () {
  2336. var t = "IMG" === this._url.tagName, e = this._image = t ? this._url : P("img");
  2337. 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)
  2338. },
  2339. _animateZoom: function (t) {
  2340. var e = this._map.getZoomScale(t.zoom),
  2341. t = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min;
  2342. be(this._image, t, e)
  2343. },
  2344. _reset: function () {
  2345. var t = this._image,
  2346. e = new f(this._map.latLngToLayerPoint(this._bounds.getNorthWest()), this._map.latLngToLayerPoint(this._bounds.getSouthEast())),
  2347. i = e.getSize();
  2348. Z(t, e.min), t.style.width = i.x + "px", t.style.height = i.y + "px"
  2349. },
  2350. _updateOpacity: function () {
  2351. C(this._image, this.options.opacity)
  2352. },
  2353. _updateZIndex: function () {
  2354. this._image && void 0 !== this.options.zIndex && null !== this.options.zIndex && (this._image.style.zIndex = this.options.zIndex)
  2355. },
  2356. _overlayOnError: function () {
  2357. this.fire("error");
  2358. var t = this.options.errorOverlayUrl;
  2359. t && this._url !== t && (this._url = t, this._image.src = t)
  2360. },
  2361. getCenter: function () {
  2362. return this._bounds.getCenter()
  2363. }
  2364. }), ki = Ei.extend({
  2365. options: {autoplay: !0, loop: !0, keepAspectRatio: !0, muted: !1, playsInline: !0},
  2366. _initImage: function () {
  2367. var t = "VIDEO" === this._url.tagName, e = this._image = t ? this._url : P("video");
  2368. 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) {
  2369. for (var i = e.getElementsByTagName("source"), n = [], o = 0; o < i.length; o++) n.push(i[o].src);
  2370. this._url = 0 < i.length ? n : [e.src]
  2371. } else {
  2372. 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;
  2373. for (var s = 0; s < this._url.length; s++) {
  2374. var r = P("source");
  2375. r.src = this._url[s], e.appendChild(r)
  2376. }
  2377. }
  2378. }
  2379. });
  2380. var Oi = Ei.extend({
  2381. _initImage: function () {
  2382. var t = this._image = this._url;
  2383. 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
  2384. }
  2385. });
  2386. var Ai = o.extend({
  2387. options: {interactive: !1, offset: [0, 0], className: "", pane: void 0, content: ""},
  2388. initialize: function (t, e) {
  2389. 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)
  2390. },
  2391. openOn: function (t) {
  2392. return (t = arguments.length ? t : this._source._map).hasLayer(this) || t.addLayer(this), this
  2393. },
  2394. close: function () {
  2395. return this._map && this._map.removeLayer(this), this
  2396. },
  2397. toggle: function (t) {
  2398. return this._map ? this.close() : (arguments.length ? this._source = t : t = this._source, this._prepareOpen(), this.openOn(t._map)), this
  2399. },
  2400. onAdd: function (t) {
  2401. 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))
  2402. },
  2403. onRemove: function (t) {
  2404. 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))
  2405. },
  2406. getLatLng: function () {
  2407. return this._latlng
  2408. },
  2409. setLatLng: function (t) {
  2410. return this._latlng = w(t), this._map && (this._updatePosition(), this._adjustPan()), this
  2411. },
  2412. getContent: function () {
  2413. return this._content
  2414. },
  2415. setContent: function (t) {
  2416. return this._content = t, this.update(), this
  2417. },
  2418. getElement: function () {
  2419. return this._container
  2420. },
  2421. update: function () {
  2422. this._map && (this._container.style.visibility = "hidden", this._updateContent(), this._updateLayout(), this._updatePosition(), this._container.style.visibility = "", this._adjustPan())
  2423. },
  2424. getEvents: function () {
  2425. var t = {zoom: this._updatePosition, viewreset: this._updatePosition};
  2426. return this._zoomAnimated && (t.zoomanim = this._animateZoom), t
  2427. },
  2428. isOpen: function () {
  2429. return !!this._map && this._map.hasLayer(this)
  2430. },
  2431. bringToFront: function () {
  2432. return this._map && fe(this._container), this
  2433. },
  2434. bringToBack: function () {
  2435. return this._map && ge(this._container), this
  2436. },
  2437. _prepareOpen: function (t) {
  2438. if (!(i = this._source)._map) return !1;
  2439. if (i instanceof ci) {
  2440. var e, i = null, n = this._source._layers;
  2441. for (e in n) if (n[e]._map) {
  2442. i = n[e];
  2443. break
  2444. }
  2445. if (!i) return !1;
  2446. this._source = i
  2447. }
  2448. if (!t) if (i.getCenter) t = i.getCenter(); else if (i.getLatLng) t = i.getLatLng(); else {
  2449. if (!i.getBounds) throw new Error("Unable to get source layer LatLng.");
  2450. t = i.getBounds().getCenter()
  2451. }
  2452. return this.setLatLng(t), this._map && this.update(), !0
  2453. },
  2454. _updateContent: function () {
  2455. if (this._content) {
  2456. var t = this._contentNode,
  2457. e = "function" == typeof this._content ? this._content(this._source || this) : this._content;
  2458. if ("string" == typeof e) t.innerHTML = e; else {
  2459. for (; t.hasChildNodes();) t.removeChild(t.firstChild);
  2460. t.appendChild(e)
  2461. }
  2462. this.fire("contentupdate")
  2463. }
  2464. },
  2465. _updatePosition: function () {
  2466. var t, e, i;
  2467. 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")
  2468. },
  2469. _getAnchor: function () {
  2470. return [0, 0]
  2471. }
  2472. }), Bi = (A.include({
  2473. _initOverlay: function (t, e, i, n) {
  2474. var o = e;
  2475. return o instanceof t || (o = new t(n).setContent(e)), i && o.setLatLng(i), o
  2476. }
  2477. }), o.include({
  2478. _initOverlay: function (t, e, i, n) {
  2479. var o = i;
  2480. return o instanceof t ? (c(o, n), o._source = this) : (o = e && !n ? e : new t(n, this)).setContent(i), o
  2481. }
  2482. }), Ai.extend({
  2483. options: {
  2484. pane: "popupPane",
  2485. offset: [0, 7],
  2486. maxWidth: 300,
  2487. minWidth: 50,
  2488. maxHeight: null,
  2489. autoPan: !0,
  2490. autoPanPaddingTopLeft: null,
  2491. autoPanPaddingBottomRight: null,
  2492. autoPanPadding: [5, 5],
  2493. keepInView: !1,
  2494. closeButton: !0,
  2495. autoClose: !0,
  2496. closeOnEscapeKey: !0,
  2497. className: ""
  2498. }, openOn: function (t) {
  2499. 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)
  2500. }, onAdd: function (t) {
  2501. 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))
  2502. }, onRemove: function (t) {
  2503. 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))
  2504. }, getEvents: function () {
  2505. var t = Ai.prototype.getEvents.call(this);
  2506. 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
  2507. }, _initLayout: function () {
  2508. var t = "leaflet-popup",
  2509. e = this._container = P("div", t + " " + (this.options.className || "") + " leaflet-zoom-animated"),
  2510. i = this._wrapper = P("div", t + "-content-wrapper", e);
  2511. 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) {
  2512. O(t), this.close()
  2513. }, this))
  2514. }, _updateLayout: function () {
  2515. var t = this._contentNode, e = t.style, i = (e.width = "", e.whiteSpace = "nowrap", t.offsetWidth),
  2516. i = Math.min(i, this.options.maxWidth),
  2517. i = (i = Math.max(i, this.options.minWidth), e.width = i + 1 + "px", e.whiteSpace = "", e.height = "", t.offsetHeight),
  2518. n = this.options.maxHeight, o = "leaflet-popup-scrolled";
  2519. (n && n < i ? (e.height = n + "px", M) : z)(t, o), this._containerWidth = this._container.offsetWidth
  2520. }, _animateZoom: function (t) {
  2521. var t = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center), e = this._getAnchor();
  2522. Z(this._container, t.add(e))
  2523. }, _adjustPan: function () {
  2524. var t, e, i, n, o, s, r, a;
  2525. 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]))))
  2526. }, _getAnchor: function () {
  2527. return m(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0])
  2528. }
  2529. })), Ii = (A.mergeOptions({closePopupOnClick: !0}), A.include({
  2530. openPopup: function (t, e, i) {
  2531. return this._initOverlay(Bi, t, e, i).openOn(this), this
  2532. }, closePopup: function (t) {
  2533. return (t = arguments.length ? t : this._popup) && t.close(), this
  2534. }
  2535. }), o.include({
  2536. bindPopup: function (t, e) {
  2537. return this._popup = this._initOverlay(Bi, this._popup, t, e), this._popupHandlersAdded || (this.on({
  2538. click: this._openPopup,
  2539. keypress: this._onKeyPress,
  2540. remove: this.closePopup,
  2541. move: this._movePopup
  2542. }), this._popupHandlersAdded = !0), this
  2543. }, unbindPopup: function () {
  2544. return this._popup && (this.off({
  2545. click: this._openPopup,
  2546. keypress: this._onKeyPress,
  2547. remove: this.closePopup,
  2548. move: this._movePopup
  2549. }), this._popupHandlersAdded = !1, this._popup = null), this
  2550. }, openPopup: function (t) {
  2551. return this._popup && (this instanceof ci || (this._popup._source = this), this._popup._prepareOpen(t || this._latlng) && this._popup.openOn(this._map)), this
  2552. }, closePopup: function () {
  2553. return this._popup && this._popup.close(), this
  2554. }, togglePopup: function () {
  2555. return this._popup && this._popup.toggle(this), this
  2556. }, isPopupOpen: function () {
  2557. return !!this._popup && this._popup.isOpen()
  2558. }, setPopupContent: function (t) {
  2559. return this._popup && this._popup.setContent(t), this
  2560. }, getPopup: function () {
  2561. return this._popup
  2562. }, _openPopup: function (t) {
  2563. var e;
  2564. 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))
  2565. }, _movePopup: function (t) {
  2566. this._popup.setLatLng(t.latlng)
  2567. }, _onKeyPress: function (t) {
  2568. 13 === t.originalEvent.keyCode && this._openPopup(t)
  2569. }
  2570. }), Ai.extend({
  2571. options: {pane: "tooltipPane", offset: [0, 0], direction: "auto", permanent: !1, sticky: !1, opacity: .9},
  2572. onAdd: function (t) {
  2573. 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))
  2574. },
  2575. onRemove: function (t) {
  2576. Ai.prototype.onRemove.call(this, t), t.fire("tooltipclose", {tooltip: this}), this._source && (this.removeEventParent(this._source), this._source.fire("tooltipclose", {tooltip: this}, !0))
  2577. },
  2578. getEvents: function () {
  2579. var t = Ai.prototype.getEvents.call(this);
  2580. return this.options.permanent || (t.preclick = this.close), t
  2581. },
  2582. _initLayout: function () {
  2583. var t = "leaflet-tooltip " + (this.options.className || "") + " leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide");
  2584. this._contentNode = this._container = P("div", t), this._container.setAttribute("role", "tooltip"), this._container.setAttribute("id", "leaflet-tooltip-" + h(this))
  2585. },
  2586. _updateLayout: function () {
  2587. },
  2588. _adjustPan: function () {
  2589. },
  2590. _setPosition: function (t) {
  2591. var e, i = this._map, n = this._container, o = i.latLngToContainerPoint(i.getCenter()),
  2592. i = i.layerPointToContainerPoint(t), s = this.options.direction, r = n.offsetWidth, a = n.offsetHeight,
  2593. h = m(this.options.offset), l = this._getAnchor(),
  2594. 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);
  2595. 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)
  2596. },
  2597. _updatePosition: function () {
  2598. var t = this._map.latLngToLayerPoint(this._latlng);
  2599. this._setPosition(t)
  2600. },
  2601. setOpacity: function (t) {
  2602. this.options.opacity = t, this._container && C(this._container, t)
  2603. },
  2604. _animateZoom: function (t) {
  2605. t = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center);
  2606. this._setPosition(t)
  2607. },
  2608. _getAnchor: function () {
  2609. return m(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0])
  2610. }
  2611. })), Ri = (A.include({
  2612. openTooltip: function (t, e, i) {
  2613. return this._initOverlay(Ii, t, e, i).openOn(this), this
  2614. }, closeTooltip: function (t) {
  2615. return t.close(), this
  2616. }
  2617. }), o.include({
  2618. bindTooltip: function (t, e) {
  2619. 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
  2620. }, unbindTooltip: function () {
  2621. return this._tooltip && (this._initTooltipInteractions(!0), this.closeTooltip(), this._tooltip = null), this
  2622. }, _initTooltipInteractions: function (t) {
  2623. var e, i;
  2624. !t && this._tooltipHandlersAdded || (e = t ? "off" : "on", i = {
  2625. remove: this.closeTooltip,
  2626. move: this._moveTooltip
  2627. }, 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)
  2628. }, openTooltip: function (t) {
  2629. 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
  2630. }, closeTooltip: function () {
  2631. if (this._tooltip) return this._tooltip.close()
  2632. }, toggleTooltip: function () {
  2633. return this._tooltip && this._tooltip.toggle(this), this
  2634. }, isTooltipOpen: function () {
  2635. return this._tooltip.isOpen()
  2636. }, setTooltipContent: function (t) {
  2637. return this._tooltip && this._tooltip.setContent(t), this
  2638. }, getTooltip: function () {
  2639. return this._tooltip
  2640. }, _addFocusListeners: function () {
  2641. this.getElement ? this._addFocusListenersOnLayer(this) : this.eachLayer && this.eachLayer(this._addFocusListenersOnLayer, this)
  2642. }, _addFocusListenersOnLayer: function (t) {
  2643. var e = "function" == typeof t.getElement && t.getElement();
  2644. e && (S(e, "focus", function () {
  2645. this._tooltip._source = t, this.openTooltip()
  2646. }, this), S(e, "blur", this.closeTooltip, this))
  2647. }, _setAriaDescribedByOnLayer: function (t) {
  2648. t = "function" == typeof t.getElement && t.getElement();
  2649. t && t.setAttribute("aria-describedby", this._tooltip._container.id)
  2650. }, _openTooltip: function (t) {
  2651. var e;
  2652. this._tooltip && this._map && (this._map.dragging && this._map.dragging.moving() && !this._openOnceFlag ? (this._openOnceFlag = !0, (e = this)._map.once("moveend", function () {
  2653. e._openOnceFlag = !1, e._openTooltip(t)
  2654. })) : (this._tooltip._source = t.layer || t.target, this.openTooltip(this._tooltip.options.sticky ? t.latlng : void 0)))
  2655. }, _moveTooltip: function (t) {
  2656. var e = t.latlng;
  2657. 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)
  2658. }
  2659. }), di.extend({
  2660. options: {iconSize: [12, 12], html: !1, bgPos: null, className: "leaflet-div-icon"},
  2661. createIcon: function (t) {
  2662. var t = t && "DIV" === t.tagName ? t : document.createElement("div"), e = this.options;
  2663. 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
  2664. },
  2665. createShadow: function () {
  2666. return null
  2667. }
  2668. }));
  2669. di.Default = _i;
  2670. var Ni = o.extend({
  2671. options: {
  2672. tileSize: 256,
  2673. opacity: 1,
  2674. updateWhenIdle: b.mobile,
  2675. updateWhenZooming: !0,
  2676. updateInterval: 200,
  2677. zIndex: 1,
  2678. bounds: null,
  2679. minZoom: 0,
  2680. maxZoom: void 0,
  2681. maxNativeZoom: void 0,
  2682. minNativeZoom: void 0,
  2683. noWrap: !1,
  2684. pane: "tilePane",
  2685. className: "",
  2686. keepBuffer: 2
  2687. }, initialize: function (t) {
  2688. c(this, t)
  2689. }, onAdd: function () {
  2690. this._initContainer(), this._levels = {}, this._tiles = {}, this._resetView()
  2691. }, beforeAdd: function (t) {
  2692. t._addZoomLimit(this)
  2693. }, onRemove: function (t) {
  2694. this._removeAllTiles(), T(this._container), t._removeZoomLimit(this), this._container = null, this._tileZoom = void 0
  2695. }, bringToFront: function () {
  2696. return this._map && (fe(this._container), this._setAutoZIndex(Math.max)), this
  2697. }, bringToBack: function () {
  2698. return this._map && (ge(this._container), this._setAutoZIndex(Math.min)), this
  2699. }, getContainer: function () {
  2700. return this._container
  2701. }, setOpacity: function (t) {
  2702. return this.options.opacity = t, this._updateOpacity(), this
  2703. }, setZIndex: function (t) {
  2704. return this.options.zIndex = t, this._updateZIndex(), this
  2705. }, isLoading: function () {
  2706. return this._loading
  2707. }, redraw: function () {
  2708. var t;
  2709. return this._map && (this._removeAllTiles(), (t = this._clampZoom(this._map.getZoom())) !== this._tileZoom && (this._tileZoom = t, this._updateLevels()), this._update()), this
  2710. }, getEvents: function () {
  2711. var t = {
  2712. viewprereset: this._invalidateAll,
  2713. viewreset: this._resetView,
  2714. zoom: this._resetView,
  2715. moveend: this._onMoveEnd
  2716. };
  2717. 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
  2718. }, createTile: function () {
  2719. return document.createElement("div")
  2720. }, getTileSize: function () {
  2721. var t = this.options.tileSize;
  2722. return t instanceof p ? t : new p(t, t)
  2723. }, _updateZIndex: function () {
  2724. this._container && void 0 !== this.options.zIndex && null !== this.options.zIndex && (this._container.style.zIndex = this.options.zIndex)
  2725. }, _setAutoZIndex: function (t) {
  2726. 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));
  2727. isFinite(n) && (this.options.zIndex = n + t(-1, 1), this._updateZIndex())
  2728. }, _updateOpacity: function () {
  2729. if (this._map && !b.ielt9) {
  2730. C(this._container, this.options.opacity);
  2731. var t, e = +new Date, i = !1, n = !1;
  2732. for (t in this._tiles) {
  2733. var o, s = this._tiles[t];
  2734. 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))
  2735. }
  2736. n && !this._noPrune && this._pruneTiles(), i && (r(this._fadeFrame), this._fadeFrame = x(this._updateOpacity, this))
  2737. }
  2738. }, _onOpaqueTile: u, _initContainer: function () {
  2739. this._container || (this._container = P("div", "leaflet-layer " + (this.options.className || "")), this._updateZIndex(), this.options.opacity < 1 && this._updateOpacity(), this.getPane().appendChild(this._container))
  2740. }, _updateLevels: function () {
  2741. var t = this._tileZoom, e = this.options.maxZoom;
  2742. if (void 0 !== t) {
  2743. 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]);
  2744. var n = this._levels[t], o = this._map;
  2745. 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
  2746. }
  2747. }, _onUpdateLevel: u, _onRemoveLevel: u, _onCreateLevel: u, _pruneTiles: function () {
  2748. if (this._map) {
  2749. var t, e, i, n = this._map.getZoom();
  2750. if (n > this.options.maxZoom || n < this.options.minZoom) this._removeAllTiles(); else {
  2751. for (t in this._tiles) (i = this._tiles[t]).retain = i.current;
  2752. 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));
  2753. for (t in this._tiles) this._tiles[t].retain || this._removeTile(t)
  2754. }
  2755. }
  2756. }, _removeTilesAtZoom: function (t) {
  2757. for (var e in this._tiles) this._tiles[e].coords.z === t && this._removeTile(e)
  2758. }, _removeAllTiles: function () {
  2759. for (var t in this._tiles) this._removeTile(t)
  2760. }, _invalidateAll: function () {
  2761. for (var t in this._levels) T(this._levels[t].el), this._onRemoveLevel(Number(t)), delete this._levels[t];
  2762. this._removeAllTiles(), this._tileZoom = void 0
  2763. }, _retainParent: function (t, e, i, n) {
  2764. var t = Math.floor(t / 2), e = Math.floor(e / 2), i = i - 1, o = new p(+t, +e),
  2765. o = (o.z = i, this._tileCoordsToKey(o)), o = this._tiles[o];
  2766. return o && o.active ? o.retain = !0 : (o && o.loaded && (o.retain = !0), n < i && this._retainParent(t, e, i, n))
  2767. }, _retainChildren: function (t, e, i, n) {
  2768. for (var o = 2 * t; o < 2 * t + 2; o++) for (var s = 2 * e; s < 2 * e + 2; s++) {
  2769. var r = new p(o, s), r = (r.z = i + 1, this._tileCoordsToKey(r)), r = this._tiles[r];
  2770. r && r.active ? r.retain = !0 : (r && r.loaded && (r.retain = !0), i + 1 < n && this._retainChildren(o, s, i + 1, n))
  2771. }
  2772. }, _resetView: function (t) {
  2773. t = t && (t.pinch || t.flyTo);
  2774. this._setView(this._map.getCenter(), this._map.getZoom(), t, t)
  2775. }, _animateZoom: function (t) {
  2776. this._setView(t.center, t.zoom, !0, t.noUpdate)
  2777. }, _clampZoom: function (t) {
  2778. var e = this.options;
  2779. return void 0 !== e.minNativeZoom && t < e.minNativeZoom ? e.minNativeZoom : void 0 !== e.maxNativeZoom && e.maxNativeZoom < t ? e.maxNativeZoom : t
  2780. }, _setView: function (t, e, i, n) {
  2781. var o = Math.round(e),
  2782. o = void 0 !== this.options.maxZoom && o > this.options.maxZoom || void 0 !== this.options.minZoom && o < this.options.minZoom ? void 0 : this._clampZoom(o),
  2783. s = this.options.updateWhenZooming && o !== this._tileZoom;
  2784. 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)
  2785. }, _setZoomTransforms: function (t, e) {
  2786. for (var i in this._levels) this._setZoomTransform(this._levels[i], t, e)
  2787. }, _setZoomTransform: function (t, e, i) {
  2788. var n = this._map.getZoomScale(i, t.zoom),
  2789. e = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
  2790. b.any3d ? be(t.el, e, n) : Z(t.el, e)
  2791. }, _resetGrid: function () {
  2792. var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), n = this._tileZoom,
  2793. o = this._map.getPixelWorldBounds(this._tileZoom);
  2794. 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)]
  2795. }, _onMoveEnd: function () {
  2796. this._map && !this._map._animatingZoom && this._update()
  2797. }, _getTiledPixelBounds: function (t) {
  2798. var e = this._map, i = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(),
  2799. i = e.getZoomScale(i, this._tileZoom), t = e.project(t, this._tileZoom).floor(),
  2800. e = e.getSize().divideBy(2 * i);
  2801. return new f(t.subtract(e), t.add(e))
  2802. }, _update: function (t) {
  2803. var e = this._map;
  2804. if (e) {
  2805. var i = this._clampZoom(e.getZoom());
  2806. if (void 0 === t && (t = e.getCenter()), void 0 !== this._tileZoom) {
  2807. var n, e = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(e), s = o.getCenter(),
  2808. r = [], e = this.options.keepBuffer,
  2809. a = new f(o.getBottomLeft().subtract([e, -e]), o.getTopRight().add([e, -e]));
  2810. 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");
  2811. for (n in this._tiles) {
  2812. var h = this._tiles[n].coords;
  2813. h.z === this._tileZoom && a.contains(new p(h.x, h.y)) || (this._tiles[n].current = !1)
  2814. }
  2815. if (1 < Math.abs(i - this._tileZoom)) this._setView(t, i); else {
  2816. for (var l = o.min.y; l <= o.max.y; l++) for (var u = o.min.x; u <= o.max.x; u++) {
  2817. var c, d = new p(u, l);
  2818. d.z = this._tileZoom, this._isValidTile(d) && ((c = this._tiles[this._tileCoordsToKey(d)]) ? c.current = !0 : r.push(d))
  2819. }
  2820. if (r.sort(function (t, e) {
  2821. return t.distanceTo(s) - e.distanceTo(s)
  2822. }), 0 !== r.length) {
  2823. this._loading || (this._loading = !0, this.fire("loading"));
  2824. for (var _ = document.createDocumentFragment(), u = 0; u < r.length; u++) this._addTile(r[u], _);
  2825. this._level.el.appendChild(_)
  2826. }
  2827. }
  2828. }
  2829. }
  2830. }, _isValidTile: function (t) {
  2831. var e = this._map.options.crs;
  2832. if (!e.infinite) {
  2833. var i = this._globalTileRange;
  2834. 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
  2835. }
  2836. return !this.options.bounds || (e = this._tileCoordsToBounds(t), g(this.options.bounds).overlaps(e))
  2837. }, _keyToBounds: function (t) {
  2838. return this._tileCoordsToBounds(this._keyToTileCoords(t))
  2839. }, _tileCoordsToNwSe: function (t) {
  2840. var e = this._map, i = this.getTileSize(), n = t.scaleBy(i), i = n.add(i);
  2841. return [e.unproject(n, t.z), e.unproject(i, t.z)]
  2842. }, _tileCoordsToBounds: function (t) {
  2843. t = this._tileCoordsToNwSe(t), t = new s(t[0], t[1]);
  2844. return t = this.options.noWrap ? t : this._map.wrapLatLngBounds(t)
  2845. }, _tileCoordsToKey: function (t) {
  2846. return t.x + ":" + t.y + ":" + t.z
  2847. }, _keyToTileCoords: function (t) {
  2848. var t = t.split(":"), e = new p(+t[0], +t[1]);
  2849. return e.z = +t[2], e
  2850. }, _removeTile: function (t) {
  2851. var e = this._tiles[t];
  2852. e && (T(e.el), delete this._tiles[t], this.fire("tileunload", {
  2853. tile: e.el,
  2854. coords: this._keyToTileCoords(t)
  2855. }))
  2856. }, _initTile: function (t) {
  2857. M(t, "leaflet-tile");
  2858. var e = this.getTileSize();
  2859. 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)
  2860. }, _addTile: function (t, e) {
  2861. var i = this._getTilePos(t), n = this._tileCoordsToKey(t),
  2862. o = this.createTile(this._wrapCoords(t), a(this._tileReady, this, t));
  2863. this._initTile(o), this.createTile.length < 2 && x(a(this._tileReady, this, t, null, o)), Z(o, i), this._tiles[n] = {
  2864. el: o,
  2865. coords: t,
  2866. current: !0
  2867. }, e.appendChild(o), this.fire("tileloadstart", {tile: o, coords: t})
  2868. }, _tileReady: function (t, e, i) {
  2869. e && this.fire("tileerror", {error: e, tile: i, coords: t});
  2870. var n = this._tileCoordsToKey(t);
  2871. (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", {
  2872. tile: i.el,
  2873. coords: t
  2874. })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), b.ielt9 || !this._map._fadeAnimated ? x(this._pruneTiles, this) : setTimeout(a(this._pruneTiles, this), 250)))
  2875. }, _getTilePos: function (t) {
  2876. return t.scaleBy(this.getTileSize()).subtract(this._level.origin)
  2877. }, _wrapCoords: function (t) {
  2878. var e = new p(this._wrapX ? H(t.x, this._wrapX) : t.x, this._wrapY ? H(t.y, this._wrapY) : t.y);
  2879. return e.z = t.z, e
  2880. }, _pxBoundsToTileRange: function (t) {
  2881. var e = this.getTileSize();
  2882. return new f(t.min.unscaleBy(e).floor(), t.max.unscaleBy(e).ceil().subtract([1, 1]))
  2883. }, _noTilesToLoad: function () {
  2884. for (var t in this._tiles) if (!this._tiles[t].loaded) return !1;
  2885. return !0
  2886. }
  2887. });
  2888. var Di = Ni.extend({
  2889. options: {
  2890. minZoom: 0,
  2891. maxZoom: 18,
  2892. subdomains: "abc",
  2893. errorTileUrl: "",
  2894. zoomOffset: 0,
  2895. tms: !1,
  2896. zoomReverse: !1,
  2897. detectRetina: !1,
  2898. crossOrigin: !1,
  2899. referrerPolicy: !1
  2900. }, initialize: function (t, e) {
  2901. 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)
  2902. }, setUrl: function (t, e) {
  2903. return this._url === t && void 0 === e && (e = !0), this._url = t, e || this.redraw(), this
  2904. }, createTile: function (t, e) {
  2905. var i = document.createElement("img");
  2906. 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
  2907. }, getTileUrl: function (t) {
  2908. var e = {r: b.retina ? "@2x" : "", s: this._getSubdomain(t), x: t.x, y: t.y, z: this._getZoomForUrl()};
  2909. 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))
  2910. }, _tileOnLoad: function (t, e) {
  2911. b.ielt9 ? setTimeout(a(t, this, null, e), 0) : t(null, e)
  2912. }, _tileOnError: function (t, e, i) {
  2913. var n = this.options.errorTileUrl;
  2914. n && e.getAttribute("src") !== n && (e.src = n), t(i, e)
  2915. }, _onTileRemove: function (t) {
  2916. t.tile.onload = null
  2917. }, _getZoomForUrl: function () {
  2918. var t = this._tileZoom, e = this.options.maxZoom;
  2919. return (t = this.options.zoomReverse ? e - t : t) + this.options.zoomOffset
  2920. }, _getSubdomain: function (t) {
  2921. t = Math.abs(t.x + t.y) % this.options.subdomains.length;
  2922. return this.options.subdomains[t]
  2923. }, _abortLoading: function () {
  2924. var t, e, i;
  2925. 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", {
  2926. tile: i,
  2927. coords: e
  2928. })))
  2929. }, _removeTile: function (t) {
  2930. var e = this._tiles[t];
  2931. if (e) return e.el.setAttribute("src", K), Ni.prototype._removeTile.call(this, t)
  2932. }, _tileReady: function (t, e, i) {
  2933. if (this._map && (!i || i.getAttribute("src") !== K)) return Ni.prototype._tileReady.call(this, t, e, i)
  2934. }
  2935. });
  2936. function ji(t, e) {
  2937. return new Di(t, e)
  2938. }
  2939. var Hi = Di.extend({
  2940. defaultWmsParams: {
  2941. service: "WMS",
  2942. request: "GetMap",
  2943. layers: "",
  2944. styles: "",
  2945. format: "image/jpeg",
  2946. transparent: !1,
  2947. version: "1.1.1"
  2948. }, options: {crs: null, uppercase: !1}, initialize: function (t, e) {
  2949. this._url = t;
  2950. var i, n = l({}, this.defaultWmsParams);
  2951. for (i in e) i in this.options || (n[i] = e[i]);
  2952. var t = (e = c(this, e)).detectRetina && b.retina ? 2 : 1, o = this.getTileSize();
  2953. n.width = o.x * t, n.height = o.y * t, this.wmsParams = n
  2954. }, onAdd: function (t) {
  2955. this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
  2956. var e = 1.3 <= this._wmsVersion ? "crs" : "srs";
  2957. this.wmsParams[e] = this._crs.code, Di.prototype.onAdd.call(this, t)
  2958. }, getTileUrl: function (t) {
  2959. var e = this._tileCoordsToNwSe(t), i = this._crs, i = _(i.project(e[0]), i.project(e[1])), e = i.min,
  2960. i = i.max,
  2961. 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(","),
  2962. i = Di.prototype.getTileUrl.call(this, t);
  2963. return i + U(this.wmsParams, i, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + e
  2964. }, setParams: function (t, e) {
  2965. return l(this.wmsParams, t), e || this.redraw(), this
  2966. }
  2967. });
  2968. Di.WMS = Hi, ji.wms = function (t, e) {
  2969. return new Hi(t, e)
  2970. };
  2971. var Wi = o.extend({
  2972. options: {padding: .1}, initialize: function (t) {
  2973. c(this, t), h(this), this._layers = this._layers || {}
  2974. }, onAdd: function () {
  2975. this._container || (this._initContainer(), M(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this)
  2976. }, onRemove: function () {
  2977. this.off("update", this._updatePaths, this), this._destroyContainer()
  2978. }, getEvents: function () {
  2979. var t = {viewreset: this._reset, zoom: this._onZoom, moveend: this._update, zoomend: this._onZoomEnd};
  2980. return this._zoomAnimated && (t.zoomanim = this._onAnimZoom), t
  2981. }, _onAnimZoom: function (t) {
  2982. this._updateTransform(t.center, t.zoom)
  2983. }, _onZoom: function () {
  2984. this._updateTransform(this._map.getCenter(), this._map.getZoom())
  2985. }, _updateTransform: function (t, e) {
  2986. var i = this._map.getZoomScale(e, this._zoom),
  2987. n = this._map.getSize().multiplyBy(.5 + this.options.padding), o = this._map.project(this._center, e),
  2988. n = n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t, e));
  2989. b.any3d ? be(this._container, n, i) : Z(this._container, n)
  2990. }, _reset: function () {
  2991. for (var t in this._update(), this._updateTransform(this._center, this._zoom), this._layers) this._layers[t]._reset()
  2992. }, _onZoomEnd: function () {
  2993. for (var t in this._layers) this._layers[t]._project()
  2994. }, _updatePaths: function () {
  2995. for (var t in this._layers) this._layers[t]._update()
  2996. }, _update: function () {
  2997. var t = this.options.padding, e = this._map.getSize(),
  2998. i = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();
  2999. this._bounds = new f(i, i.add(e.multiplyBy(1 + 2 * t)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom()
  3000. }
  3001. }), Fi = Wi.extend({
  3002. options: {tolerance: 0}, getEvents: function () {
  3003. var t = Wi.prototype.getEvents.call(this);
  3004. return t.viewprereset = this._onViewPreReset, t
  3005. }, _onViewPreReset: function () {
  3006. this._postponeUpdatePaths = !0
  3007. }, onAdd: function () {
  3008. Wi.prototype.onAdd.call(this), this._draw()
  3009. }, _initContainer: function () {
  3010. var t = this._container = document.createElement("canvas");
  3011. 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")
  3012. }, _destroyContainer: function () {
  3013. r(this._redrawRequest), delete this._ctx, T(this._container), k(this._container), delete this._container
  3014. }, _updatePaths: function () {
  3015. if (!this._postponeUpdatePaths) {
  3016. for (var t in this._redrawBounds = null, this._layers) this._layers[t]._update();
  3017. this._redraw()
  3018. }
  3019. }, _update: function () {
  3020. var t, e, i, n;
  3021. 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"))
  3022. }, _reset: function () {
  3023. Wi.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths())
  3024. }, _initPath: function (t) {
  3025. this._updateDashArray(t);
  3026. t = (this._layers[h(t)] = t)._order = {layer: t, prev: this._drawLast, next: null};
  3027. this._drawLast && (this._drawLast.next = t), this._drawLast = t, this._drawFirst = this._drawFirst || this._drawLast
  3028. }, _addPath: function (t) {
  3029. this._requestRedraw(t)
  3030. }, _removePath: function (t) {
  3031. var e = t._order, i = e.next, e = e.prev;
  3032. 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)
  3033. }, _updatePath: function (t) {
  3034. this._extendRedrawBounds(t), t._project(), t._update(), this._requestRedraw(t)
  3035. }, _updateStyle: function (t) {
  3036. this._updateDashArray(t), this._requestRedraw(t)
  3037. }, _updateDashArray: function (t) {
  3038. if ("string" == typeof t.options.dashArray) {
  3039. for (var e, i = t.options.dashArray.split(/[, ]+/), n = [], o = 0; o < i.length; o++) {
  3040. if (e = Number(i[o]), isNaN(e)) return;
  3041. n.push(e)
  3042. }
  3043. t.options._dashArray = n
  3044. } else t.options._dashArray = t.options.dashArray
  3045. }, _requestRedraw: function (t) {
  3046. this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest || x(this._redraw, this))
  3047. }, _extendRedrawBounds: function (t) {
  3048. var e;
  3049. 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])))
  3050. }, _redraw: function () {
  3051. this._redrawRequest = null, this._redrawBounds && (this._redrawBounds.min._floor(), this._redrawBounds.max._ceil()), this._clear(), this._draw(), this._redrawBounds = null
  3052. }, _clear: function () {
  3053. var t, e = this._redrawBounds;
  3054. 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())
  3055. }, _draw: function () {
  3056. var t, e, i = this._redrawBounds;
  3057. 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;
  3058. for (var n = this._drawFirst; n; n = n.next) t = n.layer, (!i || t._pxBounds && t._pxBounds.intersects(i)) && t._updatePath();
  3059. this._drawing = !1, this._ctx.restore()
  3060. }, _updatePoly: function (t, e) {
  3061. if (this._drawing) {
  3062. var i, n, o, s, r = t._parts, a = r.length, h = this._ctx;
  3063. if (a) {
  3064. for (h.beginPath(), i = 0; i < a; i++) {
  3065. for (n = 0, o = r[i].length; n < o; n++) s = r[i][n], h[n ? "lineTo" : "moveTo"](s.x, s.y);
  3066. e && h.closePath()
  3067. }
  3068. this._fillStroke(h, t)
  3069. }
  3070. }
  3071. }, _updateCircle: function (t) {
  3072. var e, i, n, o;
  3073. 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))
  3074. }, _fillStroke: function (t, e) {
  3075. var i = e.options;
  3076. 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())
  3077. }, _onClick: function (t) {
  3078. 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));
  3079. this._fireEvent(!!i && [i], t)
  3080. }, _onMouseMove: function (t) {
  3081. var e;
  3082. !this._map || this._map.dragging.moving() || this._map._animatingZoom || (e = this._map.mouseEventToLayerPoint(t), this._handleMouseHover(t, e))
  3083. }, _handleMouseOut: function (t) {
  3084. var e = this._hoveredLayer;
  3085. e && (z(this._container, "leaflet-interactive"), this._fireEvent([e], t, "mouseout"), this._hoveredLayer = null, this._mouseHoverThrottled = !1)
  3086. }, _handleMouseHover: function (t, e) {
  3087. if (!this._mouseHoverThrottled) {
  3088. for (var i, n, o = this._drawFirst; o; o = o.next) (i = o.layer).options.interactive && i._containsPoint(e) && (n = i);
  3089. 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 () {
  3090. this._mouseHoverThrottled = !1
  3091. }, this), 32)
  3092. }
  3093. }, _fireEvent: function (t, e, i) {
  3094. this._map._fireDOMEvent(e, i || e.type, t)
  3095. }, _bringToFront: function (t) {
  3096. var e, i, n = t._order;
  3097. 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)))
  3098. }, _bringToBack: function (t) {
  3099. var e, i, n = t._order;
  3100. 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)))
  3101. }
  3102. });
  3103. function Ui(t) {
  3104. return b.canvas ? new Fi(t) : null
  3105. }
  3106. var Vi = function () {
  3107. try {
  3108. return document.namespaces.add("lvml", "urn:schemas-microsoft-com:vml"), function (t) {
  3109. return document.createElement("<lvml:" + t + ' class="lvml">')
  3110. }
  3111. } catch (t) {
  3112. }
  3113. return function (t) {
  3114. return document.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')
  3115. }
  3116. }(), zt = {
  3117. _initContainer: function () {
  3118. this._container = P("div", "leaflet-vml-container")
  3119. }, _update: function () {
  3120. this._map._animatingZoom || (Wi.prototype._update.call(this), this.fire("update"))
  3121. }, _initPath: function (t) {
  3122. var e = t._container = Vi("shape");
  3123. 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
  3124. }, _addPath: function (t) {
  3125. var e = t._container;
  3126. this._container.appendChild(e), t.options.interactive && t.addInteractiveTarget(e)
  3127. }, _removePath: function (t) {
  3128. var e = t._container;
  3129. T(e), t.removeInteractiveTarget(e), delete this._layers[h(t)]
  3130. }, _updateStyle: function (t) {
  3131. var e = t._stroke, i = t._fill, n = t.options, o = t._container;
  3132. 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)
  3133. }, _updateCircle: function (t) {
  3134. var e = t._point.round(), i = Math.round(t._radius), n = Math.round(t._radiusY || i);
  3135. this._setPath(t, t._empty() ? "M0 0" : "AL " + e.x + "," + e.y + " " + i + "," + n + " 0,23592600")
  3136. }, _setPath: function (t, e) {
  3137. t._path.v = e
  3138. }, _bringToFront: function (t) {
  3139. fe(t._container)
  3140. }, _bringToBack: function (t) {
  3141. ge(t._container)
  3142. }
  3143. }, qi = b.vml ? Vi : ct, Gi = Wi.extend({
  3144. _initContainer: function () {
  3145. this._container = qi("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = qi("g"), this._container.appendChild(this._rootGroup)
  3146. }, _destroyContainer: function () {
  3147. T(this._container), k(this._container), delete this._container, delete this._rootGroup, delete this._svgSize
  3148. }, _update: function () {
  3149. var t, e, i;
  3150. 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"))
  3151. }, _initPath: function (t) {
  3152. var e = t._path = qi("path");
  3153. t.options.className && M(e, t.options.className), t.options.interactive && M(e, "leaflet-interactive"), this._updateStyle(t), this._layers[h(t)] = t
  3154. }, _addPath: function (t) {
  3155. this._rootGroup || this._initContainer(), this._rootGroup.appendChild(t._path), t.addInteractiveTarget(t._path)
  3156. }, _removePath: function (t) {
  3157. T(t._path), t.removeInteractiveTarget(t._path), delete this._layers[h(t)]
  3158. }, _updatePath: function (t) {
  3159. t._project(), t._update()
  3160. }, _updateStyle: function (t) {
  3161. var e = t._path, t = t.options;
  3162. 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"))
  3163. }, _updatePoly: function (t, e) {
  3164. this._setPath(t, dt(t._parts, e))
  3165. }, _updateCircle: function (t) {
  3166. var e = t._point, i = Math.max(Math.round(t._radius), 1),
  3167. n = "a" + i + "," + (Math.max(Math.round(t._radiusY), 1) || i) + " 0 1,0 ",
  3168. e = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + n + 2 * i + ",0 " + n + 2 * -i + ",0 ";
  3169. this._setPath(t, e)
  3170. }, _setPath: function (t, e) {
  3171. t._path.setAttribute("d", e)
  3172. }, _bringToFront: function (t) {
  3173. fe(t._path)
  3174. }, _bringToBack: function (t) {
  3175. ge(t._path)
  3176. }
  3177. });
  3178. function Ki(t) {
  3179. return b.svg || b.vml ? new Gi(t) : null
  3180. }
  3181. b.vml && Gi.include(zt), A.include({
  3182. getRenderer: function (t) {
  3183. t = (t = t.options.renderer || this._getPaneRenderer(t.options.pane) || this.options.renderer || this._renderer) || (this._renderer = this._createRenderer());
  3184. return this.hasLayer(t) || this.addLayer(t), t
  3185. }, _getPaneRenderer: function (t) {
  3186. var e;
  3187. return "overlayPane" !== t && void 0 !== t && (void 0 === (e = this._paneRenderers[t]) && (e = this._createRenderer({pane: t}), this._paneRenderers[t] = e), e)
  3188. }, _createRenderer: function (t) {
  3189. return this.options.preferCanvas && Ui(t) || Ki(t)
  3190. }
  3191. });
  3192. var Yi = xi.extend({
  3193. initialize: function (t, e) {
  3194. xi.prototype.initialize.call(this, this._boundsToLatLngs(t), e)
  3195. }, setBounds: function (t) {
  3196. return this.setLatLngs(this._boundsToLatLngs(t))
  3197. }, _boundsToLatLngs: function (t) {
  3198. return [(t = g(t)).getSouthWest(), t.getNorthWest(), t.getNorthEast(), t.getSouthEast()]
  3199. }
  3200. });
  3201. 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});
  3202. var _t = n.extend({
  3203. initialize: function (t) {
  3204. this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this)
  3205. }, addHooks: function () {
  3206. S(this._container, "mousedown", this._onMouseDown, this)
  3207. }, removeHooks: function () {
  3208. k(this._container, "mousedown", this._onMouseDown, this)
  3209. }, moved: function () {
  3210. return this._moved
  3211. }, _destroy: function () {
  3212. T(this._pane), delete this._pane
  3213. }, _resetState: function () {
  3214. this._resetStateTimeout = 0, this._moved = !1
  3215. }, _clearDeferredResetState: function () {
  3216. 0 !== this._resetStateTimeout && (clearTimeout(this._resetStateTimeout), this._resetStateTimeout = 0)
  3217. }, _onMouseDown: function (t) {
  3218. if (!t.shiftKey || 1 !== t.which && 1 !== t.button) return !1;
  3219. this._clearDeferredResetState(), this._resetState(), re(), Le(), this._startPoint = this._map.mouseEventToContainerPoint(t), S(document, {
  3220. contextmenu: Re,
  3221. mousemove: this._onMouseMove,
  3222. mouseup: this._onMouseUp,
  3223. keydown: this._onKeyDown
  3224. }, this)
  3225. }, _onMouseMove: function (t) {
  3226. 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);
  3227. var t = new f(this._point, this._startPoint), e = t.getSize();
  3228. Z(this._box, t.min), this._box.style.width = e.x + "px", this._box.style.height = e.y + "px"
  3229. }, _finish: function () {
  3230. this._moved && (T(this._box), z(this._container, "leaflet-crosshair")), ae(), Te(), k(document, {
  3231. contextmenu: Re,
  3232. mousemove: this._onMouseMove,
  3233. mouseup: this._onMouseUp,
  3234. keydown: this._onKeyDown
  3235. }, this)
  3236. }, _onMouseUp: function (t) {
  3237. 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})))
  3238. }, _onKeyDown: function (t) {
  3239. 27 === t.keyCode && (this._finish(), this._clearDeferredResetState(), this._resetState())
  3240. }
  3241. }), Ct = (A.addInitHook("addHandler", "boxZoom", _t), A.mergeOptions({doubleClickZoom: !0}), n.extend({
  3242. addHooks: function () {
  3243. this._map.on("dblclick", this._onDoubleClick, this)
  3244. }, removeHooks: function () {
  3245. this._map.off("dblclick", this._onDoubleClick, this)
  3246. }, _onDoubleClick: function (t) {
  3247. var e = this._map, i = e.getZoom(), n = e.options.zoomDelta, i = t.originalEvent.shiftKey ? i - n : i + n;
  3248. "center" === e.options.doubleClickZoom ? e.setZoom(i) : e.setZoomAround(t.containerPoint, i)
  3249. }
  3250. })), Zt = (A.addInitHook("addHandler", "doubleClickZoom", Ct), A.mergeOptions({
  3251. dragging: !0,
  3252. inertia: !0,
  3253. inertiaDeceleration: 3400,
  3254. inertiaMaxSpeed: 1 / 0,
  3255. easeLinearity: .2,
  3256. worldCopyJump: !1,
  3257. maxBoundsViscosity: 0
  3258. }), n.extend({
  3259. addHooks: function () {
  3260. var t;
  3261. this._draggable || (t = this._map, this._draggable = new Xe(t._mapPane, t._container), this._draggable.on({
  3262. dragstart: this._onDragStart,
  3263. drag: this._onDrag,
  3264. dragend: this._onDragEnd
  3265. }, 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 = []
  3266. }, removeHooks: function () {
  3267. z(this._map._container, "leaflet-grab"), z(this._map._container, "leaflet-touch-drag"), this._draggable.disable()
  3268. }, moved: function () {
  3269. return this._draggable && this._draggable._moved
  3270. }, moving: function () {
  3271. return this._draggable && this._draggable._moving
  3272. }, _onDragStart: function () {
  3273. var t, e = this._map;
  3274. 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 = [])
  3275. }, _onDrag: function (t) {
  3276. var e, i;
  3277. 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)
  3278. }, _prunePositions: function (t) {
  3279. for (; 1 < this._positions.length && 50 < t - this._times[0];) this._positions.shift(), this._times.shift()
  3280. }, _onZoomEnd: function () {
  3281. var t = this._map.getSize().divideBy(2), e = this._map.latLngToLayerPoint([0, 0]);
  3282. this._initialWorldOffset = e.subtract(t).x, this._worldWidth = this._map.getPixelWorldBounds().getSize().x
  3283. }, _viscousLimit: function (t, e) {
  3284. return t - (t - e) * this._viscosity
  3285. }, _onPreDragLimit: function () {
  3286. var t, e;
  3287. 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))
  3288. }, _onPreDragWrap: function () {
  3289. var t = this._worldWidth, e = Math.round(t / 2), i = this._initialWorldOffset,
  3290. n = this._draggable._newPos.x, o = (n - e + i) % t + e - i, n = (n + e + i) % t - e - i,
  3291. t = Math.abs(o + i) < Math.abs(n + i) ? o : n;
  3292. this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = t
  3293. }, _onDragEnd: function (t) {
  3294. var e, i, n, o, s = this._map, r = s.options, a = !r.inertia || t.noInertia || this._times.length < 2;
  3295. 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 () {
  3296. s.panBy(o, {duration: n, easeLinearity: e, noMoveStart: !0, animate: !0})
  3297. })) : s.fire("moveend")
  3298. }
  3299. })), St = (A.addInitHook("addHandler", "dragging", Zt), A.mergeOptions({
  3300. keyboard: !0,
  3301. keyboardPanDelta: 80
  3302. }), n.extend({
  3303. keyCodes: {
  3304. left: [37],
  3305. right: [39],
  3306. down: [40],
  3307. up: [38],
  3308. zoomIn: [187, 107, 61, 171],
  3309. zoomOut: [189, 109, 54, 173]
  3310. }, initialize: function (t) {
  3311. this._map = t, this._setPanDelta(t.options.keyboardPanDelta), this._setZoomDelta(t.options.zoomDelta)
  3312. }, addHooks: function () {
  3313. var t = this._map._container;
  3314. t.tabIndex <= 0 && (t.tabIndex = "0"), S(t, {
  3315. focus: this._onFocus,
  3316. blur: this._onBlur,
  3317. mousedown: this._onMouseDown
  3318. }, this), this._map.on({focus: this._addHooks, blur: this._removeHooks}, this)
  3319. }, removeHooks: function () {
  3320. this._removeHooks(), k(this._map._container, {
  3321. focus: this._onFocus,
  3322. blur: this._onBlur,
  3323. mousedown: this._onMouseDown
  3324. }, this), this._map.off({focus: this._addHooks, blur: this._removeHooks}, this)
  3325. }, _onMouseDown: function () {
  3326. var t, e, i;
  3327. 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))
  3328. }, _onFocus: function () {
  3329. this._focused = !0, this._map.fire("focus")
  3330. }, _onBlur: function () {
  3331. this._focused = !1, this._map.fire("blur")
  3332. }, _setPanDelta: function (t) {
  3333. for (var e = this._panKeys = {}, i = this.keyCodes, n = 0, o = i.left.length; n < o; n++) e[i.left[n]] = [-1 * t, 0];
  3334. for (n = 0, o = i.right.length; n < o; n++) e[i.right[n]] = [t, 0];
  3335. for (n = 0, o = i.down.length; n < o; n++) e[i.down[n]] = [0, t];
  3336. for (n = 0, o = i.up.length; n < o; n++) e[i.up[n]] = [0, -1 * t]
  3337. }, _setZoomDelta: function (t) {
  3338. for (var e = this._zoomKeys = {}, i = this.keyCodes, n = 0, o = i.zoomIn.length; n < o; n++) e[i.zoomIn[n]] = t;
  3339. for (n = 0, o = i.zoomOut.length; n < o; n++) e[i.zoomOut[n]] = -t
  3340. }, _addHooks: function () {
  3341. S(document, "keydown", this._onKeyDown, this)
  3342. }, _removeHooks: function () {
  3343. k(document, "keydown", this._onKeyDown, this)
  3344. }, _onKeyDown: function (t) {
  3345. if (!(t.altKey || t.ctrlKey || t.metaKey)) {
  3346. var e, i, n = t.keyCode, o = this._map;
  3347. 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)); else if (n in this._zoomKeys) o.setZoom(o.getZoom() + (t.shiftKey ? 3 : 1) * this._zoomKeys[n]); else {
  3348. if (27 !== n || !o._popup || !o._popup.options.closeOnEscapeKey) return;
  3349. o.closePopup()
  3350. }
  3351. Re(t)
  3352. }
  3353. }
  3354. })), Et = (A.addInitHook("addHandler", "keyboard", St), A.mergeOptions({
  3355. scrollWheelZoom: !0,
  3356. wheelDebounceTime: 40,
  3357. wheelPxPerZoomLevel: 60
  3358. }), n.extend({
  3359. addHooks: function () {
  3360. S(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0
  3361. }, removeHooks: function () {
  3362. k(this._map._container, "wheel", this._onWheelScroll, this)
  3363. }, _onWheelScroll: function (t) {
  3364. var e = He(t), i = this._map.options.wheelDebounceTime,
  3365. e = (this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +new Date), Math.max(i - (+new Date - this._startTime), 0));
  3366. clearTimeout(this._timer), this._timer = setTimeout(a(this._performZoom, this), e), Re(t)
  3367. }, _performZoom: function () {
  3368. var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0,
  3369. n = (t._stop(), this._delta / (4 * this._map.options.wheelPxPerZoomLevel)),
  3370. n = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(n)))) / Math.LN2, i = i ? Math.ceil(n / i) * i : n,
  3371. n = t._limitZoom(e + (0 < this._delta ? i : -i)) - e;
  3372. this._delta = 0, this._startTime = null, n && ("center" === t.options.scrollWheelZoom ? t.setZoom(e + n) : t.setZoomAround(this._lastMousePos, e + n))
  3373. }
  3374. })), kt = (A.addInitHook("addHandler", "scrollWheelZoom", Et), A.mergeOptions({
  3375. tapHold: b.touchNative && b.safari && b.mobile,
  3376. tapTolerance: 15
  3377. }), n.extend({
  3378. addHooks: function () {
  3379. S(this._map._container, "touchstart", this._onDown, this)
  3380. }, removeHooks: function () {
  3381. k(this._map._container, "touchstart", this._onDown, this)
  3382. }, _onDown: function (t) {
  3383. var e;
  3384. 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 () {
  3385. this._cancel(), this._isTapValid() && (S(document, "touchend", O), S(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e))
  3386. }, this), 600), S(document, "touchend touchcancel contextmenu", this._cancel, this), S(document, "touchmove", this._onMove, this))
  3387. }, _cancelClickPrevent: function t() {
  3388. k(document, "touchend", O), k(document, "touchend touchcancel", t)
  3389. }, _cancel: function () {
  3390. clearTimeout(this._holdTimeout), k(document, "touchend touchcancel contextmenu", this._cancel, this), k(document, "touchmove", this._onMove, this)
  3391. }, _onMove: function (t) {
  3392. t = t.touches[0];
  3393. this._newPos = new p(t.clientX, t.clientY)
  3394. }, _isTapValid: function () {
  3395. return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance
  3396. }, _simulateEvent: function (t, e) {
  3397. t = new MouseEvent(t, {
  3398. bubbles: !0,
  3399. cancelable: !0,
  3400. view: window,
  3401. screenX: e.screenX,
  3402. screenY: e.screenY,
  3403. clientX: e.clientX,
  3404. clientY: e.clientY
  3405. });
  3406. t._simulated = !0, e.target.dispatchEvent(t)
  3407. }
  3408. })), Ot = (A.addInitHook("addHandler", "tapHold", kt), A.mergeOptions({
  3409. touchZoom: b.touch,
  3410. bounceAtZoomLimits: !0
  3411. }), n.extend({
  3412. addHooks: function () {
  3413. M(this._map._container, "leaflet-touch-zoom"), S(this._map._container, "touchstart", this._onTouchStart, this)
  3414. }, removeHooks: function () {
  3415. z(this._map._container, "leaflet-touch-zoom"), k(this._map._container, "touchstart", this._onTouchStart, this)
  3416. }, _onTouchStart: function (t) {
  3417. var e, i, n = this._map;
  3418. !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))
  3419. }, _onTouchMove: function (t) {
  3420. if (t.touches && 2 === t.touches.length && this._zooming) {
  3421. var e = this._map, i = e.mouseEventToContainerPoint(t.touches[0]),
  3422. n = e.mouseEventToContainerPoint(t.touches[1]), o = i.distanceTo(n) / this._startDist;
  3423. 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) {
  3424. if (this._center = this._startLatLng, 1 == o) return
  3425. } else {
  3426. i = i._add(n)._divideBy(2)._subtract(this._centerPoint);
  3427. if (1 == o && 0 === i.x && 0 === i.y) return;
  3428. this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(i), this._zoom)
  3429. }
  3430. this._moved || (e._moveStart(!0, !1), this._moved = !0), r(this._animRequest);
  3431. n = a(e._move, e, this._center, this._zoom, {pinch: !0, round: !1}, void 0);
  3432. this._animRequest = x(n, this, !0), O(t)
  3433. }
  3434. }, _onTouchEnd: function () {
  3435. 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
  3436. }
  3437. })),
  3438. 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.circle = function (t, e, i) {
  3439. return new vi(t, e, i)
  3440. }, t.circleMarker = function (t, e) {
  3441. return new gi(t, e)
  3442. }, t.control = Ue, t.divIcon = function (t) {
  3443. return new Ri(t)
  3444. }, t.extend = l, t.featureGroup = function (t, e) {
  3445. return new ci(t, e)
  3446. }, t.geoJSON = Si, t.geoJson = Mt, t.gridLayer = function (t) {
  3447. return new Ni(t)
  3448. }, t.icon = function (t) {
  3449. return new di(t)
  3450. }, t.imageOverlay = function (t, e, i) {
  3451. return new Ei(t, e, i)
  3452. }, t.latLng = w, t.latLngBounds = g, t.layerGroup = function (t, e) {
  3453. return new ui(t, e)
  3454. }, t.map = function (t, e) {
  3455. return new A(t, e)
  3456. }, t.marker = function (t, e) {
  3457. return new mi(t, e)
  3458. }, t.point = m, t.polygon = function (t, e) {
  3459. return new xi(t, e)
  3460. }, t.polyline = function (t, e) {
  3461. return new yi(t, e)
  3462. }, t.popup = function (t, e) {
  3463. return new Bi(t, e)
  3464. }, t.rectangle = function (t, e) {
  3465. return new Yi(t, e)
  3466. }, t.setOptions = c, t.stamp = h, t.svg = Ki, t.svgOverlay = function (t, e, i) {
  3467. return new Oi(t, e, i)
  3468. }, t.tileLayer = ji, t.tooltip = function (t, e) {
  3469. return new Ii(t, e)
  3470. }, t.transformation = ht, t.version = "1.9.4", t.videoOverlay = function (t, e, i) {
  3471. return new ki(t, e, i)
  3472. }, window.L);
  3473. t.noConflict = function () {
  3474. return window.L = Xi, this
  3475. }, window.L = t
  3476. });
  3477. //# sourceMappingURL=leaflet.js.map