@astrato-io/visualizations 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +129 -4
  3. package/VISUALIZATION_DEFINITIONS.md +3 -1
  4. package/chunks/{Button-CPG4WX8X.js → Button-CQdoKSXX.js} +3 -3
  5. package/chunks/{CircularProgress-PSLW8HmD.js → CircularProgress-DpT1lwWw.js} +18 -18
  6. package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
  7. package/chunks/{LinearProgress-KQ2EQlGL.js → LinearProgress-B7S0Q26A.js} +8 -8
  8. package/chunks/{MenuOption-B-6K7kks.js → MenuOption-DpKFJxmo.js} +133 -133
  9. package/chunks/{Title-BmvwZYkh.js → Title-m5damhc0.js} +10 -10
  10. package/chunks/{_createAggregator-CFmH6gUN.js → _createAggregator-BA8_iU9q.js} +7 -7
  11. package/chunks/{app-filter-bar.compiler-BY5-T16I.js → app-filter-bar.compiler--T4Qz3Wu.js} +3 -3
  12. package/chunks/{bar-layout-BNou0dZF.js → bar-layout-OFhxn2Go.js} +2 -2
  13. package/chunks/{bar.compiler-BkhO7sDd.js → bar.compiler-hWZBYYvV.js} +62 -62
  14. package/chunks/{builder-CNjuqD2z.js → builder-7w_bgV_h.js} +31 -31
  15. package/chunks/{coloring-BOiP0rmn.js → coloring-Cd6p0GQJ.js} +88 -83
  16. package/chunks/{createSimplePaletteValueFilter-BkgQ7MFE.js → createSimplePaletteValueFilter-CiJT8s1s.js} +55 -55
  17. package/chunks/defaults-CMFqXvaJ.js +3 -0
  18. package/chunks/{definitions-AS9GcavE.js → definitions-DTauTjIX.js} +412 -406
  19. package/chunks/{escobar-cQ1eQ64G.js → escobar-CMvphKSK.js} +4787 -4717
  20. package/chunks/{extend-preset-BlCbcXKR.js → extend-preset-BpXttHFk.js} +371 -372
  21. package/chunks/{filter.compiler-CI7dDNM1.js → filter.compiler-DOGFweJz.js} +4 -4
  22. package/chunks/{filtering-Dwi7hDPZ.js → filtering-NOnDcGbo.js} +183 -183
  23. package/chunks/handlers-CyYFSfhM.js +15393 -0
  24. package/chunks/{icon-picker-styles-CBlxEu3s.js → icon-picker-styles-DuSERhBU.js} +2 -2
  25. package/chunks/{isEqual-BdHo6wqq.js → isEqual-4f8yUUtC.js} +1 -1
  26. package/chunks/{isFocusVisible-C1nlVUwL.js → isFocusVisible-Czm70MGc.js} +1 -1
  27. package/chunks/line.compiler-B-4H55_T.js +203 -0
  28. package/chunks/{logger-Bc-DqDM_.js → logger-Cioob-QV.js} +71 -70
  29. package/chunks/{map.compiler-CRO6XpdI.js → map.compiler-Cv5V6EhF.js} +13 -13
  30. package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
  31. package/chunks/{measure-format-default-B6ghxih7.js → measure-format-default-B_kuGSzi.js} +7 -3
  32. package/chunks/{metadata-CtkvZEhS.js → metadata-dGSe5UWy.js} +5 -5
  33. package/chunks/{number.compiler-kV4lobCZ.js → number.compiler-D7nMcEMv.js} +8 -8
  34. package/chunks/{operations-COl9wgqi.js → operations-CgfehCad.js} +11462 -11223
  35. package/chunks/{range-CMJ5yc5Z.js → range-Dmwp9kVB.js} +2 -2
  36. package/chunks/{react-dom-BjsCbYHq.js → react-dom-CfuL-m78.js} +24 -24
  37. package/chunks/{render-wrappers-DFHi3Wkr.js → render-wrappers--g-zPFBW.js} +1 -1
  38. package/chunks/{requirements-C5YLmHKe.js → requirements-DHayNJ2C.js} +83 -83
  39. package/chunks/{shared-DyqxOie0.js → shared-DoEN9nNM.js} +282 -277
  40. package/chunks/standalone-B3hRGgYi.js +773 -0
  41. package/chunks/{standalone-BYK2U0Vd.js → standalone-BPNXgFft.js} +380 -380
  42. package/chunks/standalone-BPTT8XEu.js +424 -0
  43. package/chunks/standalone-BgAeHROc.js +2 -0
  44. package/chunks/{standalone-I5kRIsp8.js → standalone-BkQxag7M.js} +81 -81
  45. package/chunks/{standalone-DYVYccmY.js → standalone-Bxa3x6dg.js} +913 -913
  46. package/chunks/standalone-C0If-V6O.js +773 -0
  47. package/chunks/standalone-C1TOyflX.js +287 -0
  48. package/chunks/{standalone-DaNxWIKn.js → standalone-CE5PwJN0.js} +21 -21
  49. package/chunks/{standalone-K2OvRAQM.js → standalone-CG7IFN6n.js} +121 -121
  50. package/chunks/{standalone-Db_HNuWx.js → standalone-CKlgGu80.js} +44 -44
  51. package/chunks/standalone-CNf-oA2U.js +355 -0
  52. package/chunks/{standalone-9jrQ3zJT.js → standalone-CXPdWFlw.js} +10 -10
  53. package/chunks/{standalone-c4CPN6ug.js → standalone-Cf0_5tbu.js} +5783 -5785
  54. package/chunks/{standalone-Bp4G3MDx.js → standalone-DMi4-Vp3.js} +118 -118
  55. package/chunks/{standalone-BrjtMIdd.js → standalone-DTEX67C8.js} +108 -108
  56. package/chunks/{standalone-iOnJhCvA.js → standalone-DU46-kYv.js} +181 -181
  57. package/chunks/standalone-Dbn3jSH6.js +690 -0
  58. package/chunks/{standalone-CS5VGoja.js → standalone-DdcAL_k_.js} +833 -837
  59. package/chunks/standalone-DwCIA0UG.js +1057 -0
  60. package/chunks/standalone-Dz13tl3P.js +357 -0
  61. package/chunks/{standalone-CIjNYyya.js → standalone-H9GFzFk_.js} +937 -938
  62. package/chunks/{standalone-ChfEHb28.js → standalone-MduR0qre.js} +1279 -1279
  63. package/chunks/standalone-ejTz66P3.js +2 -0
  64. package/chunks/{standalone-D9k5SCd8.js → standalone-keB-0wK3.js} +189 -189
  65. package/chunks/{standalone-Bsfz5vnJ.js → standalone-nnkuQd0K.js} +35 -35
  66. package/chunks/standalone-vGGR6Vcn.js +6 -0
  67. package/chunks/{table.compiler-CMH_dtYs.js → table.compiler-mS4UvhLT.js} +12 -12
  68. package/chunks/theme-MYp6Rj1J.js +232 -0
  69. package/chunks/{useFieldName-BfxBzhhH.js → useFieldName-AdSak4Ch.js} +1 -1
  70. package/chunks/{utils-BdJrEeIQ.js → utils-CUKgR7it.js} +3265 -3133
  71. package/chunks/{view-Q-_XIrWE.js → view-BeYwpcVD.js} +478 -478
  72. package/chunks/{visualization-filters-BwS0xUqs.js → visualization-filters-B9qik5_K.js} +2706 -2384
  73. package/chunks/{with-html-element-D_ooGNWI.js → with-html-element-1GSeLT59.js} +3888 -3870
  74. package/definitions.js +2 -2
  75. package/docs/operations/astrato-app-filter-bar.md +1 -1
  76. package/docs/operations/bar.md +115 -32
  77. package/docs/operations/combo.md +50 -17
  78. package/docs/operations/date-picker.md +4 -4
  79. package/docs/operations/distribution-gauge.md +18 -16
  80. package/docs/operations/dot.md +107 -24
  81. package/docs/operations/filter.md +10 -8
  82. package/docs/operations/gauge.md +20 -18
  83. package/docs/operations/heatMap.md +73 -21
  84. package/docs/operations/histogram.md +45 -12
  85. package/docs/operations/iframe.md +1 -1
  86. package/docs/operations/image.md +1 -1
  87. package/docs/operations/index.md +11 -11
  88. package/docs/operations/line.md +57 -24
  89. package/docs/operations/map.md +16 -16
  90. package/docs/operations/number.md +10 -9
  91. package/docs/operations/pie.md +23 -21
  92. package/docs/operations/radar.md +13 -11
  93. package/docs/operations/sankey.md +19 -17
  94. package/docs/operations/scatter.md +111 -28
  95. package/docs/operations/shape.md +5 -5
  96. package/docs/operations/simpleTextObject.md +4 -4
  97. package/docs/operations/slider.md +1 -1
  98. package/docs/operations/table.md +27 -25
  99. package/docs/operations/tree.md +5 -3
  100. package/docs/operations/treemap.md +70 -18
  101. package/docs/operations/waterfall.md +40 -7
  102. package/docs/operations/word-cloud.md +69 -17
  103. package/getters.js +2 -2
  104. package/index.js +474 -525
  105. package/metadata.js +2 -2
  106. package/operations.js +24 -17
  107. package/package.json +71 -72
  108. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1 -1
  109. package/src/definitions/model/definitions/schema-registry.d.ts +13 -12
  110. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -2
  111. package/src/definitions/model/definitions/schemas/common.schema.d.ts +5 -4
  112. package/src/definitions/model/definitions/schemas/line.schema.d.ts +3 -2
  113. package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
  115. package/src/index.d.ts +1 -1
  116. package/src/operations/index.d.ts +11 -1
  117. package/src/types.d.ts +166 -1
  118. package/chunks/FieldTypeIcon-5k2bkqd0.js +0 -22
  119. package/chunks/category-axis-D1OVyMrr.js +0 -20
  120. package/chunks/color-rules-DYJL4fIW.js +0 -15
  121. package/chunks/color-settings-DJFoFTip.js +0 -5
  122. package/chunks/defaults-B5_8S-J-.js +0 -3
  123. package/chunks/handlers-C63NVo7i.js +0 -15433
  124. package/chunks/line.compiler-DCv3h42f.js +0 -198
  125. package/chunks/standalone-06i1wmIX.js +0 -6
  126. package/chunks/standalone-B6zUvxNQ.js +0 -357
  127. package/chunks/standalone-Be5APcVv.js +0 -762
  128. package/chunks/standalone-BuXpKMnc.js +0 -2
  129. package/chunks/standalone-CUGt2FUF.js +0 -2
  130. package/chunks/standalone-CnF2OYLQ.js +0 -355
  131. package/chunks/standalone-CznEEiq3.js +0 -422
  132. package/chunks/standalone-DcuE8KBa.js +0 -287
  133. package/chunks/standalone-pCrzBiTy.js +0 -773
  134. package/chunks/standalone-qrZaimgC.js +0 -689
  135. package/chunks/standalone-yqDJ8h3K.js +0 -1012
@@ -1,26 +1,25 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { $o as n, Ao as r, Do as i, Ec as a, Fc as o, Ft as s, Gc as c, Gi as l, Gs as u, Hc as d, Hi as f, Ic as p, It as m, Mt as h, Na as g, Nt as _, Pi as v, Pt as y, Qo as b, Us as ee, Vr as te, Wi as ne, Xo as x, Xt as S, Yi as C, Yo as w, Zo as T, _o as re, as as E, da as ie, es as D, fa as ae, is as O, jt as k, ko as A, lc as j, n as M, ns as N, qc as P, qi as oe, qo as se, rl as ce, ro as le, rs as ue, ss as de, ts as fe, ua as pe, vo as me, yl as he, yo as ge } from "./visualization-filters-BwS0xUqs.js";
3
- import { Br as _e, D as ve, G as ye, Mt as be, N as xe, Nt as Se, O as Ce, P as we, Qt as Te, Ut as Ee, Wt as De, c as Oe, f as ke, ii as Ae, ir as je, k as Me, li as Ne, o as Pe } from "./utils-BdJrEeIQ.js";
4
- import "./handlers-C63NVo7i.js";
5
- import { r as Fe } from "./color-settings-DJFoFTip.js";
6
- import { n as Ie, t as Le } from "./isEqual-BdHo6wqq.js";
7
- import { l as Re, s as ze } from "./logger-Bc-DqDM_.js";
8
- import { $ as Be, G as Ve, J as He, K as Ue, Q as We, Sn as Ge, X as Ke, en as qe, i as Je } from "./escobar-cQ1eQ64G.js";
9
- import { _ as Ye, d as Xe } from "./MenuOption-B-6K7kks.js";
10
- import { y as Ze } from "./with-html-element-D_ooGNWI.js";
11
- import { i as Qe, n as $e, r as F } from "./coloring-BOiP0rmn.js";
2
+ import { $c as n, $i as r, As as i, Bt as a, Cs as o, Do as s, Ds as c, Es as l, Ho as u, Ht as d, Ic as f, Ms as p, Oo as m, Os as h, Qo as g, Sa as _, Ss as v, Ts as y, Ua as b, Ui as ee, Uo as te, Ut as ne, Vt as re, Wo as x, Wt as S, Yr as ie, Zi as ae, bs as C, cl as w, ea as T, es as E, gc as oe, hl as D, ia as O, in as k, jl as A, ks as j, ll as M, na as N, o as se, ql as ce, ts as le, vc as ue, vs as de, ws as P, xa as fe, xl as pe, xs as F, ya as me, yl as he, zt as ge } from "./visualization-filters-B9qik5_K.js";
3
+ import { D as _e, G as ve, Kt as ye, Mt as be, N as xe, Nt as Se, O as Ce, P as we, Ur as Te, c as Ee, f as De, fi as Oe, k as ke, o as Ae, qt as je, si as Me, sr as Ne, tn as Pe } from "./utils-CUKgR7it.js";
4
+ import "./handlers-CyYFSfhM.js";
5
+ import { n as Fe, t as Ie } from "./isEqual-4f8yUUtC.js";
6
+ import { l as Le, s as Re } from "./logger-Cioob-QV.js";
7
+ import { Cn as ze, G as Be, H as Ve, U as He, X as Ue, Y as We, i as Ge, q as Ke, tn as qe } from "./escobar-CMvphKSK.js";
8
+ import { _ as Je, d as Ye } from "./MenuOption-DpKFJxmo.js";
9
+ import { y as Xe } from "./with-html-element-1GSeLT59.js";
10
+ import { i as Ze, n as Qe, r as I } from "./coloring-Cd6p0GQJ.js";
12
11
  import "./event-bus-CrLB-Y8z.js";
13
- import { a as et, i as tt, n as nt, r as rt, t as it } from "./builder-CNjuqD2z.js";
14
- import { n as at, t as ot } from "./linear-Bq_r9l5S.js";
15
- import { debounce as st, filter as ct, from as lt, interval as ut, map as dt, mergeMap as ft, mergeWith as pt } from "rxjs";
16
- var mt = (e, t, n) => t?.mediaItemId ? e.daedalus.mediaApi.getUrl(t?.mediaItemId) : t?.imageUrl ? t?.imageUrl : t?.imageVariable && n?.[t?.imageVariable]?.value ? `${n?.[t?.imageVariable]?.value}` : "", I = /* @__PURE__ */ e(Ne()), ht = ze();
17
- E.OpenStreetMap, N.LatLng, N.GeoPoint, N.GeoHash, fe.Fixed, fe.ByMeasure, n.FixedPixels, n.FixedDistance, n.ByMeasurePixels, n.ByMeasureDistance, T.Count, T.Sum, T.Min, T.Max, T.Avg, O.Greater, O.GreaterEquals, O.Less, O.LessEquals, D.Auto, D.Custom, b.Auto, b.Custom, b.Absolute, ge.Auto, ge.Manual, re.Locale, me.Metric;
18
- var R = {
12
+ import { a as $e, i as et, n as tt, r as nt, t as rt } from "./builder-7w_bgV_h.js";
13
+ import { n as it, t as at } from "./linear-Bq_r9l5S.js";
14
+ import { debounce as ot, filter as st, from as ct, interval as lt, map as ut, mergeMap as dt, mergeWith as ft } from "rxjs";
15
+ var pt = (e, t, n) => t?.mediaItemId ? e.daedalus.mediaApi.getUrl(t?.mediaItemId) : t?.imageUrl ? t?.imageUrl : t?.imageVariable && n?.[t?.imageVariable]?.value ? `${n?.[t?.imageVariable]?.value}` : "", R = /* @__PURE__ */ e(Oe()), mt = Re();
16
+ i.OpenStreetMap, c.LatLng, c.GeoPoint, c.GeoHash, l.Fixed, l.ByMeasure, P.FixedPixels, P.FixedDistance, P.ByMeasurePixels, P.ByMeasureDistance, v.Count, v.Sum, v.Min, v.Max, v.Avg, j.Greater, j.GreaterEquals, j.Less, j.LessEquals, y.Auto, y.Custom, o.Auto, o.Custom, o.Absolute, x.Auto, x.Manual, u.Locale, te.Metric;
17
+ var z = {
19
18
  openStreetMapUrl: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
20
19
  hereMapUrl: "https://maps.hereapi.com/v3/base/mc/{z}/{x}/{y}/png",
21
20
  maxZoom: 18,
22
21
  defaultPointSize: 18,
23
- defaultColor: g.secondaryPink,
22
+ defaultColor: b.secondaryPink,
24
23
  minLineSize: 1,
25
24
  maxLineSize: 10,
26
25
  minPointSize: 5,
@@ -40,9 +39,9 @@ var R = {
40
39
  zoom: 4,
41
40
  heatRadius: 30,
42
41
  heatBlur: 30,
43
- language: re.Locale,
44
- unit: me.Metric,
45
- zoomMode: ge.Auto,
42
+ language: u.Locale,
43
+ unit: te.Metric,
44
+ zoomMode: x.Auto,
46
45
  attribution: "<a href=\"https://leafletjs.com\">Leaflet</a>",
47
46
  defaultOverlayPane: "overlayPane",
48
47
  legendsPaneZIndex: 400,
@@ -67,7 +66,7 @@ var R = {
67
66
  },
68
67
  measureFormatter: {
69
68
  type: "excel-format",
70
- format: { formatType: se.AbbreviationAuto }
69
+ format: { formatType: de.AbbreviationAuto }
71
70
  },
72
71
  geoSimplifyTolerance: 2500,
73
72
  geoIntersect: !1,
@@ -75,17 +74,17 @@ var R = {
75
74
  showConditionallyMinZoom: 1,
76
75
  showConditionallyMaxZoom: 14
77
76
  };
78
- ue.Circle;
79
- var gt = { [R.dummyPointId]: {
80
- id: R.dummyPointId,
77
+ h.Circle;
78
+ var ht = { [z.dummyPointId]: {
79
+ id: z.dummyPointId,
81
80
  dimension: {
82
81
  dataItem: {
83
82
  view: "dummy",
84
83
  name: "name",
85
84
  uniqueSignature: "dummy-dim-1",
86
- type: he.Dimension,
85
+ type: ce.Dimension,
87
86
  internalKey: "dim1",
88
- dataType: ht.FieldType.STRING
87
+ dataType: mt.FieldType.STRING
89
88
  },
90
89
  label: "City Name"
91
90
  },
@@ -94,9 +93,9 @@ var gt = { [R.dummyPointId]: {
94
93
  view: "dummy",
95
94
  name: "name",
96
95
  uniqueSignature: "dummy-mes-1",
97
- type: he.Measure,
96
+ type: ce.Measure,
98
97
  internalKey: "mes1",
99
- dataType: ht.FieldType.STRING,
98
+ dataType: mt.FieldType.STRING,
100
99
  aggregation: {
101
100
  funcName: "ANY_VALUE",
102
101
  label: "Any value/dimension",
@@ -119,9 +118,9 @@ var gt = { [R.dummyPointId]: {
119
118
  view: "dummy",
120
119
  name: "name",
121
120
  uniqueSignature: "dummy-mes-2",
122
- type: he.Measure,
121
+ type: ce.Measure,
123
122
  internalKey: "mes2",
124
- dataType: ht.FieldType.STRING,
123
+ dataType: mt.FieldType.STRING,
125
124
  aggregation: {
126
125
  funcName: "SUM",
127
126
  label: "Sum",
@@ -144,9 +143,9 @@ var gt = { [R.dummyPointId]: {
144
143
  view: "dummy",
145
144
  name: "name",
146
145
  uniqueSignature: "dummy-mes-3",
147
- type: he.Measure,
146
+ type: ce.Measure,
148
147
  internalKey: "mes3",
149
- dataType: ht.FieldType.STRING,
148
+ dataType: mt.FieldType.STRING,
150
149
  aggregation: {
151
150
  funcName: "SUM",
152
151
  label: "Sum",
@@ -164,64 +163,64 @@ var gt = { [R.dummyPointId]: {
164
163
  postFilters: [],
165
164
  parameters: {}
166
165
  }
167
- } }, _t = /* @__PURE__ */ e(Le()), vt = (e, t, n) => {
166
+ } }, gt = /* @__PURE__ */ e(Ie()), _t = (e, t, n) => {
168
167
  let { layers: r = [] } = e;
169
168
  return {
170
169
  ...n,
171
170
  layers: [...r].filter((e) => !e.hidden).map((e) => ({
172
- ...k(e.type),
171
+ ...ge(e.type),
173
172
  ...e
174
173
  })).reverse()
175
174
  };
176
- }, yt = (e, t, n, r, i) => {
175
+ }, vt = (e, t, n, r, i) => {
177
176
  let { settings: a } = e;
178
177
  return {
179
178
  ...n,
180
179
  settings: a,
181
180
  visualizationProperties: i
182
181
  };
183
- }, bt = (e, t, n, r) => ({
182
+ }, yt = (e, t, n, r) => ({
184
183
  ...n,
185
184
  size: r
186
- }), xt = (e, t, n) => n.layers.length === 1 && n.layers[0].type === w.Map ? St(n) : n, St = (e) => ({
185
+ }), bt = (e, t, n) => n.layers.length === 1 && n.layers[0].type === C.Map ? xt(n) : n, xt = (e) => ({
187
186
  ...e,
188
- layers: [e.layers[0], z(R.dummyPointId)],
187
+ layers: [e.layers[0], B(z.dummyPointId)],
189
188
  settings: {
190
189
  latitude: 34.264,
191
190
  longitude: -118.284,
192
191
  zoom: 9,
193
- zoomMode: ge.Manual,
194
- unit: me.Metric,
195
- language: re.Locale
192
+ zoomMode: x.Manual,
193
+ unit: te.Metric,
194
+ language: u.Locale
196
195
  }
197
- }), z = (e) => {
198
- let t = gt[e].dimension, r = gt[e].geoMeasure, o = gt[e].sizeMeasure, s = gt[e].colorMeasure;
196
+ }), B = (e) => {
197
+ let t = ht[e].dimension, r = ht[e].geoMeasure, i = ht[e].sizeMeasure, a = ht[e].colorMeasure;
199
198
  return {
200
199
  id: e,
201
200
  name: "Dummy Point layer",
202
- type: w.Point,
201
+ type: C.Point,
203
202
  hidden: !1,
204
- locationType: N.GeoPoint,
203
+ locationType: c.GeoPoint,
205
204
  dimensions: [t],
206
205
  measures: [
207
206
  r,
208
- o,
209
- s
207
+ i,
208
+ a
210
209
  ],
211
210
  sortingMeasures: [],
212
211
  dataRoles: {
213
- geo: d(r.dataItem),
214
- size: d(o.dataItem)
212
+ geo: D(r.dataItem),
213
+ size: D(i.dataItem)
215
214
  },
216
215
  grouping: {
217
216
  enabled: !1,
218
- aggregation: T.Count,
217
+ aggregation: v.Count,
219
218
  ranges: []
220
219
  },
221
220
  coloring: {
222
- type: a.Gradient,
221
+ type: n.Gradient,
223
222
  color: "#4268cbc4",
224
- fieldId: s.dataItem.internalKey,
223
+ fieldId: a.dataItem.internalKey,
225
224
  measureAggregation: "SUM",
226
225
  palette: "gradient-theme-default",
227
226
  rules: [],
@@ -244,32 +243,32 @@ var gt = { [R.dummyPointId]: {
244
243
  persistentColors: !0
245
244
  },
246
245
  dataSettings: {
247
- sizeType: n.ByMeasurePixels,
248
- sizeRange: b.Auto,
246
+ sizeType: P.ByMeasurePixels,
247
+ sizeRange: o.Auto,
249
248
  size: 6,
250
249
  minSize: 0,
251
250
  maxSize: 1e3
252
251
  },
253
- shape: ue.Circle,
252
+ shape: h.Circle,
254
253
  staticFilters: {
255
254
  filters: [],
256
255
  ignoreGlobalFilters: !1,
257
256
  ignoredFilters: [],
258
- ignoreFiltersType: i.All,
257
+ ignoreFiltersType: g.All,
259
258
  showGlobalFiltersEffect: !1
260
259
  },
261
260
  querySettings: { sortingOrder: [] }
262
261
  };
263
- }, B = (e, t, n) => ({
262
+ }, V = (e, t, n) => ({
264
263
  ...n,
265
264
  legendsData: {}
266
- }), Ct = class e {
265
+ }), St = class e {
267
266
  stages = [
267
+ _t,
268
268
  vt,
269
269
  yt,
270
- bt,
271
- B,
272
- xt
270
+ V,
271
+ bt
273
272
  ];
274
273
  compile(e, t, n, r, i) {
275
274
  try {
@@ -291,22 +290,22 @@ var gt = { [R.dummyPointId]: {
291
290
  runCompilerStages(t, n, r, i) {
292
291
  return this.stages.reduce((e, a) => a(t, n, e, r, i), e.getEmptyState());
293
292
  }
294
- }, wt = () => ({ layers: [] }), Tt = (e) => e.layers, Et = { visualizationProperties: {} }, V = () => Et, H = (e) => e.visualizationProperties?.isEditMode ?? !0, Dt = (e) => e.visualizationProperties?.isPrintMode ?? !1, Ot = (e) => ({
293
+ }, Ct = () => ({ layers: [] }), wt = (e) => e.layers, Tt = { visualizationProperties: {} }, H = () => Tt, U = (e) => e.visualizationProperties?.isEditMode ?? !0, Et = (e) => e.visualizationProperties?.isPrintMode ?? !1, Dt = (e) => ({
295
294
  settings: {
296
- language: R.language,
297
- unit: R.unit,
298
- latitude: R.lat,
299
- longitude: R.lng,
300
- zoom: R.zoom,
301
- zoomMode: R.zoomMode,
302
- minZoom: C.settings.minZoom,
303
- maxZoom: C.settings.maxZoom
295
+ language: z.language,
296
+ unit: z.unit,
297
+ latitude: z.lat,
298
+ longitude: z.lng,
299
+ zoom: z.zoom,
300
+ zoomMode: z.zoomMode,
301
+ minZoom: O.settings.minZoom,
302
+ maxZoom: O.settings.maxZoom
304
303
  },
305
304
  setSettings: (t) => e((e) => ({
306
305
  ...e,
307
306
  settings: t
308
307
  }))
309
- }), U = (e) => e.settings, kt = /* @__PURE__ */ t(((e, t) => {
308
+ }), Ot = (e) => e.settings, kt = /* @__PURE__ */ t(((e, t) => {
310
309
  (function(n, r) {
311
310
  typeof e == "object" && t !== void 0 ? r(e) : typeof define == "function" && define.amd ? define(["exports"], r) : (n = typeof globalThis < "u" ? globalThis : n || self, r(n.leaflet = {}));
312
311
  })(e, (function(e) {
@@ -393,17 +392,17 @@ var gt = { [R.dummyPointId]: {
393
392
  var t = +/* @__PURE__ */ new Date(), n = Math.max(0, 16 - (t - ee));
394
393
  return ee = t + n, window.setTimeout(e, n);
395
394
  }
396
- var ne = window.requestAnimationFrame || b("RequestAnimationFrame") || te, x = window.cancelAnimationFrame || b("CancelAnimationFrame") || b("CancelRequestAnimationFrame") || function(e) {
395
+ var ne = window.requestAnimationFrame || b("RequestAnimationFrame") || te, re = window.cancelAnimationFrame || b("CancelAnimationFrame") || b("CancelRequestAnimationFrame") || function(e) {
397
396
  window.clearTimeout(e);
398
397
  };
399
- function S(e, t, n) {
398
+ function x(e, t, n) {
400
399
  if (n && ne === te) e.call(t);
401
400
  else return ne.call(window, i(e, t));
402
401
  }
403
- function C(e) {
404
- e && x.call(window, e);
402
+ function S(e) {
403
+ e && re.call(window, e);
405
404
  }
406
- var w = {
405
+ var ie = {
407
406
  __proto__: null,
408
407
  extend: n,
409
408
  create: r,
@@ -425,40 +424,40 @@ var gt = { [R.dummyPointId]: {
425
424
  indexOf: v,
426
425
  emptyImageUrl: y,
427
426
  requestFn: ne,
428
- cancelFn: x,
429
- requestAnimFrame: S,
430
- cancelAnimFrame: C
427
+ cancelFn: re,
428
+ requestAnimFrame: x,
429
+ cancelAnimFrame: S
431
430
  };
432
- function T() {}
433
- T.extend = function(e) {
431
+ function ae() {}
432
+ ae.extend = function(e) {
434
433
  var t = function() {
435
434
  p(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
436
435
  }, i = t.__super__ = this.prototype, a = r(i);
437
436
  for (var o in a.constructor = t, t.prototype = a, this) Object.prototype.hasOwnProperty.call(this, o) && o !== "prototype" && o !== "__super__" && (t[o] = this[o]);
438
- return e.statics && n(t, e.statics), e.includes && (re(e.includes), n.apply(null, [a].concat(e.includes))), n(a, e), delete a.statics, delete a.includes, a.options && (a.options = i.options ? r(i.options) : {}, n(a.options, e.options)), a._initHooks = [], a.callInitHooks = function() {
437
+ return e.statics && n(t, e.statics), e.includes && (C(e.includes), n.apply(null, [a].concat(e.includes))), n(a, e), delete a.statics, delete a.includes, a.options && (a.options = i.options ? r(i.options) : {}, n(a.options, e.options)), a._initHooks = [], a.callInitHooks = function() {
439
438
  if (!this._initHooksCalled) {
440
439
  i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
441
440
  for (var e = 0, t = a._initHooks.length; e < t; e++) a._initHooks[e].call(this);
442
441
  }
443
442
  }, t;
444
- }, T.include = function(e) {
443
+ }, ae.include = function(e) {
445
444
  var t = this.prototype.options;
446
445
  return n(this.prototype, e), e.options && (this.prototype.options = t, this.mergeOptions(e.options)), this;
447
- }, T.mergeOptions = function(e) {
446
+ }, ae.mergeOptions = function(e) {
448
447
  return n(this.prototype.options, e), this;
449
- }, T.addInitHook = function(e) {
448
+ }, ae.addInitHook = function(e) {
450
449
  var t = Array.prototype.slice.call(arguments, 1), n = typeof e == "function" ? e : function() {
451
450
  this[e].apply(this, t);
452
451
  };
453
452
  return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(n), this;
454
453
  };
455
- function re(e) {
454
+ function C(e) {
456
455
  if (!(typeof L > "u" || !L || !L.Mixin)) {
457
456
  e = _(e) ? e : [e];
458
457
  for (var t = 0; t < e.length; t++) e[t] === 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.", (/* @__PURE__ */ Error()).stack);
459
458
  }
460
459
  }
461
- var E = {
460
+ var w = {
462
461
  on: function(e, t, n) {
463
462
  if (typeof e == "object") for (var r in e) this._on(r, e[r], t);
464
463
  else {
@@ -569,26 +568,26 @@ var gt = { [R.dummyPointId]: {
569
568
  }, e), !0);
570
569
  }
571
570
  };
572
- E.addEventListener = E.on, E.removeEventListener = E.clearAllEventListeners = E.off, E.addOneTimeEventListener = E.once, E.fireEvent = E.fire, E.hasEventListeners = E.listens;
573
- var ie = T.extend(E);
574
- function D(e, t, n) {
571
+ w.addEventListener = w.on, w.removeEventListener = w.clearAllEventListeners = w.off, w.addOneTimeEventListener = w.once, w.fireEvent = w.fire, w.hasEventListeners = w.listens;
572
+ var T = ae.extend(w);
573
+ function E(e, t, n) {
575
574
  this.x = n ? Math.round(e) : e, this.y = n ? Math.round(t) : t;
576
575
  }
577
- var ae = Math.trunc || function(e) {
576
+ var oe = Math.trunc || function(e) {
578
577
  return e > 0 ? Math.floor(e) : Math.ceil(e);
579
578
  };
580
- D.prototype = {
579
+ E.prototype = {
581
580
  clone: function() {
582
- return new D(this.x, this.y);
581
+ return new E(this.x, this.y);
583
582
  },
584
583
  add: function(e) {
585
- return this.clone()._add(O(e));
584
+ return this.clone()._add(D(e));
586
585
  },
587
586
  _add: function(e) {
588
587
  return this.x += e.x, this.y += e.y, this;
589
588
  },
590
589
  subtract: function(e) {
591
- return this.clone()._subtract(O(e));
590
+ return this.clone()._subtract(D(e));
592
591
  },
593
592
  _subtract: function(e) {
594
593
  return this.x -= e.x, this.y -= e.y, this;
@@ -606,10 +605,10 @@ var gt = { [R.dummyPointId]: {
606
605
  return this.x *= e, this.y *= e, this;
607
606
  },
608
607
  scaleBy: function(e) {
609
- return new D(this.x * e.x, this.y * e.y);
608
+ return new E(this.x * e.x, this.y * e.y);
610
609
  },
611
610
  unscaleBy: function(e) {
612
- return new D(this.x / e.x, this.y / e.y);
611
+ return new E(this.x / e.x, this.y / e.y);
613
612
  },
614
613
  round: function() {
615
614
  return this.clone()._round();
@@ -633,45 +632,45 @@ var gt = { [R.dummyPointId]: {
633
632
  return this.clone()._trunc();
634
633
  },
635
634
  _trunc: function() {
636
- return this.x = ae(this.x), this.y = ae(this.y), this;
635
+ return this.x = oe(this.x), this.y = oe(this.y), this;
637
636
  },
638
637
  distanceTo: function(e) {
639
- e = O(e);
638
+ e = D(e);
640
639
  var t = e.x - this.x, n = e.y - this.y;
641
640
  return Math.sqrt(t * t + n * n);
642
641
  },
643
642
  equals: function(e) {
644
- return e = O(e), e.x === this.x && e.y === this.y;
643
+ return e = D(e), e.x === this.x && e.y === this.y;
645
644
  },
646
645
  contains: function(e) {
647
- return e = O(e), Math.abs(e.x) <= Math.abs(this.x) && Math.abs(e.y) <= Math.abs(this.y);
646
+ return e = D(e), Math.abs(e.x) <= Math.abs(this.x) && Math.abs(e.y) <= Math.abs(this.y);
648
647
  },
649
648
  toString: function() {
650
649
  return "Point(" + u(this.x) + ", " + u(this.y) + ")";
651
650
  }
652
651
  };
653
- function O(e, t, n) {
654
- return e instanceof D ? e : _(e) ? new D(e[0], e[1]) : e == null ? e : typeof e == "object" && "x" in e && "y" in e ? new D(e.x, e.y) : new D(e, t, n);
652
+ function D(e, t, n) {
653
+ return e instanceof E ? e : _(e) ? new E(e[0], e[1]) : e == null ? e : typeof e == "object" && "x" in e && "y" in e ? new E(e.x, e.y) : new E(e, t, n);
655
654
  }
656
- function k(e, t) {
655
+ function O(e, t) {
657
656
  if (e) for (var n = t ? [e, t] : e, r = 0, i = n.length; r < i; r++) this.extend(n[r]);
658
657
  }
659
- k.prototype = {
658
+ O.prototype = {
660
659
  extend: function(e) {
661
660
  var t, n;
662
661
  if (!e) return this;
663
- if (e instanceof D || typeof e[0] == "number" || "x" in e) t = n = O(e);
664
- else if (e = A(e), t = e.min, n = e.max, !t || !n) return this;
662
+ if (e instanceof E || typeof e[0] == "number" || "x" in e) t = n = D(e);
663
+ else if (e = k(e), t = e.min, n = e.max, !t || !n) return this;
665
664
  return !this.min && !this.max ? (this.min = t.clone(), this.max = n.clone()) : (this.min.x = Math.min(t.x, this.min.x), this.max.x = Math.max(n.x, this.max.x), this.min.y = Math.min(t.y, this.min.y), this.max.y = Math.max(n.y, this.max.y)), this;
666
665
  },
667
666
  getCenter: function(e) {
668
- return O((this.min.x + this.max.x) / 2, (this.min.y + this.max.y) / 2, e);
667
+ return D((this.min.x + this.max.x) / 2, (this.min.y + this.max.y) / 2, e);
669
668
  },
670
669
  getBottomLeft: function() {
671
- return O(this.min.x, this.max.y);
670
+ return D(this.min.x, this.max.y);
672
671
  },
673
672
  getTopRight: function() {
674
- return O(this.max.x, this.min.y);
673
+ return D(this.max.x, this.min.y);
675
674
  },
676
675
  getTopLeft: function() {
677
676
  return this.min;
@@ -684,15 +683,15 @@ var gt = { [R.dummyPointId]: {
684
683
  },
685
684
  contains: function(e) {
686
685
  var t, n;
687
- return e = typeof e[0] == "number" || e instanceof D ? O(e) : A(e), e instanceof k ? (t = e.min, n = e.max) : t = n = e, t.x >= this.min.x && n.x <= this.max.x && t.y >= this.min.y && n.y <= this.max.y;
686
+ return e = typeof e[0] == "number" || e instanceof E ? D(e) : k(e), e instanceof O ? (t = e.min, n = e.max) : t = n = e, t.x >= this.min.x && n.x <= this.max.x && t.y >= this.min.y && n.y <= this.max.y;
688
687
  },
689
688
  intersects: function(e) {
690
- e = A(e);
689
+ e = k(e);
691
690
  var t = this.min, n = this.max, r = e.min, i = e.max, a = i.x >= t.x && r.x <= n.x, o = i.y >= t.y && r.y <= n.y;
692
691
  return a && o;
693
692
  },
694
693
  overlaps: function(e) {
695
- e = A(e);
694
+ e = k(e);
696
695
  var t = this.min, n = this.max, r = e.min, i = e.max, a = i.x > t.x && r.x < n.x, o = i.y > t.y && r.y < n.y;
697
696
  return a && o;
698
697
  },
@@ -701,33 +700,33 @@ var gt = { [R.dummyPointId]: {
701
700
  },
702
701
  pad: function(e) {
703
702
  var t = this.min, n = this.max, r = Math.abs(t.x - n.x) * e, i = Math.abs(t.y - n.y) * e;
704
- return A(O(t.x - r, t.y - i), O(n.x + r, n.y + i));
703
+ return k(D(t.x - r, t.y - i), D(n.x + r, n.y + i));
705
704
  },
706
705
  equals: function(e) {
707
- return e ? (e = A(e), this.min.equals(e.getTopLeft()) && this.max.equals(e.getBottomRight())) : !1;
706
+ return e ? (e = k(e), this.min.equals(e.getTopLeft()) && this.max.equals(e.getBottomRight())) : !1;
708
707
  }
709
708
  };
710
- function A(e, t) {
711
- return !e || e instanceof k ? e : new k(e, t);
709
+ function k(e, t) {
710
+ return !e || e instanceof O ? e : new O(e, t);
712
711
  }
713
- function j(e, t) {
712
+ function A(e, t) {
714
713
  if (e) for (var n = t ? [e, t] : e, r = 0, i = n.length; r < i; r++) this.extend(n[r]);
715
714
  }
716
- j.prototype = {
715
+ A.prototype = {
717
716
  extend: function(e) {
718
717
  var t = this._southWest, n = this._northEast, r, i;
719
- if (e instanceof N) r = e, i = e;
720
- else if (e instanceof j) {
718
+ if (e instanceof M) r = e, i = e;
719
+ else if (e instanceof A) {
721
720
  if (r = e._southWest, i = e._northEast, !r || !i) return this;
722
- } else return e ? this.extend(P(e) || M(e)) : this;
723
- return !t && !n ? (this._southWest = new N(r.lat, r.lng), this._northEast = new N(i.lat, i.lng)) : (t.lat = Math.min(r.lat, t.lat), t.lng = Math.min(r.lng, t.lng), n.lat = Math.max(i.lat, n.lat), n.lng = Math.max(i.lng, n.lng)), this;
721
+ } else return e ? this.extend(N(e) || j(e)) : this;
722
+ return !t && !n ? (this._southWest = new M(r.lat, r.lng), this._northEast = new M(i.lat, i.lng)) : (t.lat = Math.min(r.lat, t.lat), t.lng = Math.min(r.lng, t.lng), n.lat = Math.max(i.lat, n.lat), n.lng = Math.max(i.lng, n.lng)), this;
724
723
  },
725
724
  pad: function(e) {
726
725
  var t = this._southWest, n = this._northEast, r = Math.abs(t.lat - n.lat) * e, i = Math.abs(t.lng - n.lng) * e;
727
- return new j(new N(t.lat - r, t.lng - i), new N(n.lat + r, n.lng + i));
726
+ return new A(new M(t.lat - r, t.lng - i), new M(n.lat + r, n.lng + i));
728
727
  },
729
728
  getCenter: function() {
730
- return new N((this._southWest.lat + this._northEast.lat) / 2, (this._southWest.lng + this._northEast.lng) / 2);
729
+ return new M((this._southWest.lat + this._northEast.lat) / 2, (this._southWest.lng + this._northEast.lng) / 2);
731
730
  },
732
731
  getSouthWest: function() {
733
732
  return this._southWest;
@@ -736,10 +735,10 @@ var gt = { [R.dummyPointId]: {
736
735
  return this._northEast;
737
736
  },
738
737
  getNorthWest: function() {
739
- return new N(this.getNorth(), this.getWest());
738
+ return new M(this.getNorth(), this.getWest());
740
739
  },
741
740
  getSouthEast: function() {
742
- return new N(this.getSouth(), this.getEast());
741
+ return new M(this.getSouth(), this.getEast());
743
742
  },
744
743
  getWest: function() {
745
744
  return this._southWest.lng;
@@ -754,17 +753,17 @@ var gt = { [R.dummyPointId]: {
754
753
  return this._northEast.lat;
755
754
  },
756
755
  contains: function(e) {
757
- e = typeof e[0] == "number" || e instanceof N || "lat" in e ? P(e) : M(e);
756
+ e = typeof e[0] == "number" || e instanceof M || "lat" in e ? N(e) : j(e);
758
757
  var t = this._southWest, n = this._northEast, r, i;
759
- return e instanceof j ? (r = e.getSouthWest(), i = e.getNorthEast()) : r = i = e, r.lat >= t.lat && i.lat <= n.lat && r.lng >= t.lng && i.lng <= n.lng;
758
+ return e instanceof A ? (r = e.getSouthWest(), i = e.getNorthEast()) : r = i = e, r.lat >= t.lat && i.lat <= n.lat && r.lng >= t.lng && i.lng <= n.lng;
760
759
  },
761
760
  intersects: function(e) {
762
- e = M(e);
761
+ e = j(e);
763
762
  var t = this._southWest, n = this._northEast, r = e.getSouthWest(), i = e.getNorthEast(), a = i.lat >= t.lat && r.lat <= n.lat, o = i.lng >= t.lng && r.lng <= n.lng;
764
763
  return a && o;
765
764
  },
766
765
  overlaps: function(e) {
767
- e = M(e);
766
+ e = j(e);
768
767
  var t = this._southWest, n = this._northEast, r = e.getSouthWest(), i = e.getNorthEast(), a = i.lat > t.lat && r.lat < n.lat, o = i.lng > t.lng && r.lng < n.lng;
769
768
  return a && o;
770
769
  },
@@ -777,44 +776,44 @@ var gt = { [R.dummyPointId]: {
777
776
  ].join(",");
778
777
  },
779
778
  equals: function(e, t) {
780
- return e ? (e = M(e), this._southWest.equals(e.getSouthWest(), t) && this._northEast.equals(e.getNorthEast(), t)) : !1;
779
+ return e ? (e = j(e), this._southWest.equals(e.getSouthWest(), t) && this._northEast.equals(e.getNorthEast(), t)) : !1;
781
780
  },
782
781
  isValid: function() {
783
782
  return !!(this._southWest && this._northEast);
784
783
  }
785
784
  };
786
- function M(e, t) {
787
- return e instanceof j ? e : new j(e, t);
785
+ function j(e, t) {
786
+ return e instanceof A ? e : new A(e, t);
788
787
  }
789
- function N(e, t, n) {
788
+ function M(e, t, n) {
790
789
  if (isNaN(e) || isNaN(t)) throw Error("Invalid LatLng object: (" + e + ", " + t + ")");
791
790
  this.lat = +e, this.lng = +t, n !== void 0 && (this.alt = +n);
792
791
  }
793
- N.prototype = {
792
+ M.prototype = {
794
793
  equals: function(e, t) {
795
- return e ? (e = P(e), Math.max(Math.abs(this.lat - e.lat), Math.abs(this.lng - e.lng)) <= (t === void 0 ? 1e-9 : t)) : !1;
794
+ return e ? (e = N(e), Math.max(Math.abs(this.lat - e.lat), Math.abs(this.lng - e.lng)) <= (t === void 0 ? 1e-9 : t)) : !1;
796
795
  },
797
796
  toString: function(e) {
798
797
  return "LatLng(" + u(this.lat, e) + ", " + u(this.lng, e) + ")";
799
798
  },
800
799
  distanceTo: function(e) {
801
- return se.distance(this, P(e));
800
+ return ce.distance(this, N(e));
802
801
  },
803
802
  wrap: function() {
804
- return se.wrapLatLng(this);
803
+ return ce.wrapLatLng(this);
805
804
  },
806
805
  toBounds: function(e) {
807
806
  var t = 180 * e / 40075017, n = t / Math.cos(Math.PI / 180 * this.lat);
808
- return M([this.lat - t, this.lng - n], [this.lat + t, this.lng + n]);
807
+ return j([this.lat - t, this.lng - n], [this.lat + t, this.lng + n]);
809
808
  },
810
809
  clone: function() {
811
- return new N(this.lat, this.lng, this.alt);
810
+ return new M(this.lat, this.lng, this.alt);
812
811
  }
813
812
  };
814
- function P(e, t, n) {
815
- return e instanceof N ? e : _(e) && typeof e[0] != "object" ? e.length === 3 ? new N(e[0], e[1], e[2]) : e.length === 2 ? new N(e[0], e[1]) : null : e == null ? e : typeof e == "object" && "lat" in e ? new N(e.lat, "lng" in e ? e.lng : e.lon, e.alt) : t === void 0 ? null : new N(e, t, n);
813
+ function N(e, t, n) {
814
+ return e instanceof M ? e : _(e) && typeof e[0] != "object" ? e.length === 3 ? new M(e[0], e[1], e[2]) : e.length === 2 ? new M(e[0], e[1]) : null : e == null ? e : typeof e == "object" && "lat" in e ? new M(e.lat, "lng" in e ? e.lng : e.lon, e.alt) : t === void 0 ? null : new M(e, t, n);
816
815
  }
817
- var oe = {
816
+ var se = {
818
817
  latLngToPoint: function(e, t) {
819
818
  var n = this.projection.project(e), r = this.scale(t);
820
819
  return this.transformation._transform(n, r);
@@ -838,50 +837,50 @@ var gt = { [R.dummyPointId]: {
838
837
  getProjectedBounds: function(e) {
839
838
  if (this.infinite) return null;
840
839
  var t = this.projection.bounds, n = this.scale(e);
841
- return new k(this.transformation.transform(t.min, n), this.transformation.transform(t.max, n));
840
+ return new O(this.transformation.transform(t.min, n), this.transformation.transform(t.max, n));
842
841
  },
843
842
  infinite: !1,
844
843
  wrapLatLng: function(e) {
845
844
  var t = this.wrapLng ? c(e.lng, this.wrapLng, !0) : e.lng, n = this.wrapLat ? c(e.lat, this.wrapLat, !0) : e.lat, r = e.alt;
846
- return new N(n, t, r);
845
+ return new M(n, t, r);
847
846
  },
848
847
  wrapLatLngBounds: function(e) {
849
848
  var t = e.getCenter(), n = this.wrapLatLng(t), r = t.lat - n.lat, i = t.lng - n.lng;
850
849
  if (r === 0 && i === 0) return e;
851
850
  var a = e.getSouthWest(), o = e.getNorthEast();
852
- return new j(new N(a.lat - r, a.lng - i), new N(o.lat - r, o.lng - i));
851
+ return new A(new M(a.lat - r, a.lng - i), new M(o.lat - r, o.lng - i));
853
852
  }
854
- }, se = n({}, oe, {
853
+ }, ce = n({}, se, {
855
854
  wrapLng: [-180, 180],
856
855
  R: 6371e3,
857
856
  distance: function(e, t) {
858
857
  var n = Math.PI / 180, r = e.lat * n, i = t.lat * n, a = Math.sin((t.lat - e.lat) * n / 2), o = Math.sin((t.lng - e.lng) * n / 2), s = a * a + Math.cos(r) * Math.cos(i) * o * o, c = 2 * Math.atan2(Math.sqrt(s), Math.sqrt(1 - s));
859
858
  return this.R * c;
860
859
  }
861
- }), ce = 6378137, le = {
862
- R: ce,
860
+ }), le = 6378137, ue = {
861
+ R: le,
863
862
  MAX_LATITUDE: 85.0511287798,
864
863
  project: function(e) {
865
864
  var t = Math.PI / 180, n = this.MAX_LATITUDE, r = Math.max(Math.min(n, e.lat), -n), i = Math.sin(r * t);
866
- return new D(this.R * e.lng * t, this.R * Math.log((1 + i) / (1 - i)) / 2);
865
+ return new E(this.R * e.lng * t, this.R * Math.log((1 + i) / (1 - i)) / 2);
867
866
  },
868
867
  unproject: function(e) {
869
868
  var t = 180 / Math.PI;
870
- return new N((2 * Math.atan(Math.exp(e.y / this.R)) - Math.PI / 2) * t, e.x * t / this.R);
869
+ return new M((2 * Math.atan(Math.exp(e.y / this.R)) - Math.PI / 2) * t, e.x * t / this.R);
871
870
  },
872
871
  bounds: (function() {
873
- var e = ce * Math.PI;
874
- return new k([-e, -e], [e, e]);
872
+ var e = le * Math.PI;
873
+ return new O([-e, -e], [e, e]);
875
874
  })()
876
875
  };
877
- function ue(e, t, n, r) {
876
+ function de(e, t, n, r) {
878
877
  if (_(e)) {
879
878
  this._a = e[0], this._b = e[1], this._c = e[2], this._d = e[3];
880
879
  return;
881
880
  }
882
881
  this._a = e, this._b = t, this._c = n, this._d = r;
883
882
  }
884
- ue.prototype = {
883
+ de.prototype = {
885
884
  transform: function(e, t) {
886
885
  return this._transform(e.clone(), t);
887
886
  },
@@ -889,32 +888,32 @@ var gt = { [R.dummyPointId]: {
889
888
  return t ||= 1, e.x = t * (this._a * e.x + this._b), e.y = t * (this._c * e.y + this._d), e;
890
889
  },
891
890
  untransform: function(e, t) {
892
- return t ||= 1, new D((e.x / t - this._b) / this._a, (e.y / t - this._d) / this._c);
891
+ return t ||= 1, new E((e.x / t - this._b) / this._a, (e.y / t - this._d) / this._c);
893
892
  }
894
893
  };
895
- function de(e, t, n, r) {
896
- return new ue(e, t, n, r);
894
+ function P(e, t, n, r) {
895
+ return new de(e, t, n, r);
897
896
  }
898
- var fe = n({}, se, {
897
+ var fe = n({}, ce, {
899
898
  code: "EPSG:3857",
900
- projection: le,
899
+ projection: ue,
901
900
  transformation: function() {
902
- var e = .5 / (Math.PI * le.R);
903
- return de(e, .5, -e, .5);
901
+ var e = .5 / (Math.PI * ue.R);
902
+ return P(e, .5, -e, .5);
904
903
  }()
905
904
  }), pe = n({}, fe, { code: "EPSG:900913" });
906
- function me(e) {
905
+ function F(e) {
907
906
  return document.createElementNS("http://www.w3.org/2000/svg", e);
908
907
  }
909
- function he(e, t) {
908
+ function me(e, t) {
910
909
  var n = "", r, i, a, o, s, c;
911
910
  for (r = 0, a = e.length; r < a; r++) {
912
911
  for (s = e[r], i = 0, o = s.length; i < o; i++) c = s[i], n += (i ? "L" : "M") + c.x + " " + c.y;
913
- n += t ? F.svg ? "z" : "x" : "";
912
+ n += t ? I.svg ? "z" : "x" : "";
914
913
  }
915
914
  return n || "M0 0";
916
915
  }
917
- var ge = document.documentElement.style, _e = "ActiveXObject" in window, ve = _e && !document.addEventListener, ye = "msLaunchUri" in navigator && !("documentMode" in document), be = $e("webkit"), xe = $e("android"), Se = $e("android 2") || $e("android 3"), Ce = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), we = xe && $e("Google") && Ce < 537 && !("AudioNode" in window), Te = !!window.opera, Ee = !ye && $e("chrome"), De = $e("gecko") && !be && !Te && !_e, Oe = !Ee && $e("safari"), ke = $e("phantom"), Ae = "OTransition" in ge, je = navigator.platform.indexOf("Win") === 0, Me = _e && "transition" in ge, Ne = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Se, Pe = "MozPerspective" in ge, Fe = !window.L_DISABLE_3D && (Me || Ne || Pe) && !Ae && !ke, Ie = typeof orientation < "u" || $e("mobile"), Le = Ie && be, Re = Ie && Ne, ze = !window.PointerEvent && window.MSPointerEvent, Be = !!(window.PointerEvent || ze), Ve = "ontouchstart" in window || !!window.TouchEvent, He = !window.L_NO_TOUCH && (Ve || Be), Ue = Ie && Te, We = Ie && De, Ge = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, Ke = function() {
916
+ var he = document.documentElement.style, ge = "ActiveXObject" in window, _e = ge && !document.addEventListener, ve = "msLaunchUri" in navigator && !("documentMode" in document), ye = Qe("webkit"), be = Qe("android"), xe = Qe("android 2") || Qe("android 3"), Se = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), Ce = be && Qe("Google") && Se < 537 && !("AudioNode" in window), we = !!window.opera, Te = !ve && Qe("chrome"), Ee = Qe("gecko") && !ye && !we && !ge, De = !Te && Qe("safari"), Oe = Qe("phantom"), ke = "OTransition" in he, Ae = navigator.platform.indexOf("Win") === 0, je = ge && "transition" in he, Me = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !xe, Ne = "MozPerspective" in he, Pe = !window.L_DISABLE_3D && (je || Me || Ne) && !ke && !Oe, Fe = typeof orientation < "u" || Qe("mobile"), Ie = Fe && ye, Le = Fe && Me, Re = !window.PointerEvent && window.MSPointerEvent, ze = !!(window.PointerEvent || Re), Be = "ontouchstart" in window || !!window.TouchEvent, Ve = !window.L_NO_TOUCH && (Be || ze), He = Fe && we, Ue = Fe && Ee, We = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, Ge = function() {
918
917
  var e = !1;
919
918
  try {
920
919
  var t = Object.defineProperty({}, "passive", { get: function() {
@@ -923,12 +922,12 @@ var gt = { [R.dummyPointId]: {
923
922
  window.addEventListener("testPassiveEventSupport", l, t), window.removeEventListener("testPassiveEventSupport", l, t);
924
923
  } catch {}
925
924
  return e;
926
- }(), qe = function() {
925
+ }(), Ke = function() {
927
926
  return !!document.createElement("canvas").getContext;
928
- }(), Je = !!(document.createElementNS && me("svg").createSVGRect), Ye = !!Je && (function() {
927
+ }(), qe = !!(document.createElementNS && F("svg").createSVGRect), Je = !!qe && (function() {
929
928
  var e = document.createElement("div");
930
929
  return e.innerHTML = "<svg/>", (e.firstChild && e.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
931
- })(), Xe = !Je && function() {
930
+ })(), Ye = !qe && function() {
932
931
  try {
933
932
  var e = document.createElement("div");
934
933
  e.innerHTML = "<v:shape adj=\"1\"/>";
@@ -937,95 +936,95 @@ var gt = { [R.dummyPointId]: {
937
936
  } catch {
938
937
  return !1;
939
938
  }
940
- }(), Ze = navigator.platform.indexOf("Mac") === 0, Qe = navigator.platform.indexOf("Linux") === 0;
941
- function $e(e) {
939
+ }(), Xe = navigator.platform.indexOf("Mac") === 0, Ze = navigator.platform.indexOf("Linux") === 0;
940
+ function Qe(e) {
942
941
  return navigator.userAgent.toLowerCase().indexOf(e) >= 0;
943
942
  }
944
- var F = {
945
- ie: _e,
946
- ielt9: ve,
947
- edge: ye,
948
- webkit: be,
949
- android: xe,
950
- android23: Se,
951
- androidStock: we,
952
- opera: Te,
953
- chrome: Ee,
954
- gecko: De,
955
- safari: Oe,
956
- phantom: ke,
957
- opera12: Ae,
958
- win: je,
959
- ie3d: Me,
960
- webkit3d: Ne,
961
- gecko3d: Pe,
962
- any3d: Fe,
963
- mobile: Ie,
964
- mobileWebkit: Le,
965
- mobileWebkit3d: Re,
966
- msPointer: ze,
967
- pointer: Be,
968
- touch: He,
969
- touchNative: Ve,
970
- mobileOpera: Ue,
971
- mobileGecko: We,
972
- retina: Ge,
973
- passiveEvents: Ke,
974
- canvas: qe,
975
- svg: Je,
976
- vml: Xe,
977
- inlineSvg: Ye,
978
- mac: Ze,
979
- linux: Qe
980
- }, et = F.msPointer ? "MSPointerDown" : "pointerdown", tt = F.msPointer ? "MSPointerMove" : "pointermove", nt = F.msPointer ? "MSPointerUp" : "pointerup", rt = F.msPointer ? "MSPointerCancel" : "pointercancel", it = {
981
- touchstart: et,
982
- touchmove: tt,
983
- touchend: nt,
984
- touchcancel: rt
985
- }, at = {
986
- touchstart: I,
987
- touchmove: mt,
988
- touchend: mt,
989
- touchcancel: mt
990
- }, ot = {}, st = !1;
991
- function ct(e, t, n) {
992
- return t === "touchstart" && pt(), at[t] ? (n = at[t].bind(this, n), e.addEventListener(it[t], n, !1), n) : (console.warn("wrong event specified:", t), l);
943
+ var I = {
944
+ ie: ge,
945
+ ielt9: _e,
946
+ edge: ve,
947
+ webkit: ye,
948
+ android: be,
949
+ android23: xe,
950
+ androidStock: Ce,
951
+ opera: we,
952
+ chrome: Te,
953
+ gecko: Ee,
954
+ safari: De,
955
+ phantom: Oe,
956
+ opera12: ke,
957
+ win: Ae,
958
+ ie3d: je,
959
+ webkit3d: Me,
960
+ gecko3d: Ne,
961
+ any3d: Pe,
962
+ mobile: Fe,
963
+ mobileWebkit: Ie,
964
+ mobileWebkit3d: Le,
965
+ msPointer: Re,
966
+ pointer: ze,
967
+ touch: Ve,
968
+ touchNative: Be,
969
+ mobileOpera: He,
970
+ mobileGecko: Ue,
971
+ retina: We,
972
+ passiveEvents: Ge,
973
+ canvas: Ke,
974
+ svg: qe,
975
+ vml: Ye,
976
+ inlineSvg: Je,
977
+ mac: Xe,
978
+ linux: Ze
979
+ }, $e = I.msPointer ? "MSPointerDown" : "pointerdown", et = I.msPointer ? "MSPointerMove" : "pointermove", tt = I.msPointer ? "MSPointerUp" : "pointerup", nt = I.msPointer ? "MSPointerCancel" : "pointercancel", rt = {
980
+ touchstart: $e,
981
+ touchmove: et,
982
+ touchend: tt,
983
+ touchcancel: nt
984
+ }, it = {
985
+ touchstart: R,
986
+ touchmove: pt,
987
+ touchend: pt,
988
+ touchcancel: pt
989
+ }, at = {}, ot = !1;
990
+ function st(e, t, n) {
991
+ return t === "touchstart" && ft(), it[t] ? (n = it[t].bind(this, n), e.addEventListener(rt[t], n, !1), n) : (console.warn("wrong event specified:", t), l);
993
992
  }
994
- function lt(e, t, n) {
995
- if (!it[t]) {
993
+ function ct(e, t, n) {
994
+ if (!rt[t]) {
996
995
  console.warn("wrong event specified:", t);
997
996
  return;
998
997
  }
999
- e.removeEventListener(it[t], n, !1);
998
+ e.removeEventListener(rt[t], n, !1);
999
+ }
1000
+ function lt(e) {
1001
+ at[e.pointerId] = e;
1000
1002
  }
1001
1003
  function ut(e) {
1002
- ot[e.pointerId] = e;
1004
+ at[e.pointerId] && (at[e.pointerId] = e);
1003
1005
  }
1004
1006
  function dt(e) {
1005
- ot[e.pointerId] && (ot[e.pointerId] = e);
1007
+ delete at[e.pointerId];
1006
1008
  }
1007
- function ft(e) {
1008
- delete ot[e.pointerId];
1009
+ function ft() {
1010
+ ot ||= (document.addEventListener($e, lt, !0), document.addEventListener(et, ut, !0), document.addEventListener(tt, dt, !0), document.addEventListener(nt, dt, !0), !0);
1009
1011
  }
1010
- function pt() {
1011
- st ||= (document.addEventListener(et, ut, !0), document.addEventListener(tt, dt, !0), document.addEventListener(nt, ft, !0), document.addEventListener(rt, ft, !0), !0);
1012
- }
1013
- function mt(e, t) {
1012
+ function pt(e, t) {
1014
1013
  if (t.pointerType !== (t.MSPOINTER_TYPE_MOUSE || "mouse")) {
1015
- for (var n in t.touches = [], ot) t.touches.push(ot[n]);
1014
+ for (var n in t.touches = [], at) t.touches.push(at[n]);
1016
1015
  t.changedTouches = [t], e(t);
1017
1016
  }
1018
1017
  }
1019
- function I(e, t) {
1020
- t.MSPOINTER_TYPE_TOUCH && t.pointerType === t.MSPOINTER_TYPE_TOUCH && Y(t), mt(e, t);
1018
+ function R(e, t) {
1019
+ t.MSPOINTER_TYPE_TOUCH && t.pointerType === t.MSPOINTER_TYPE_TOUCH && Y(t), pt(e, t);
1021
1020
  }
1022
- function ht(e) {
1021
+ function mt(e) {
1023
1022
  var t = {}, n, r;
1024
1023
  for (r in e) n = e[r], t[r] = n && n.bind ? n.bind(e) : n;
1025
1024
  return e = t, t.type = "dblclick", t.detail = 2, t.isTrusted = !1, t._simulated = !0, t;
1026
1025
  }
1027
- var R = 200;
1028
- function gt(e, t) {
1026
+ var z = 200;
1027
+ function ht(e, t) {
1029
1028
  e.addEventListener("dblclick", t);
1030
1029
  var n = 0, r;
1031
1030
  function i(e) {
@@ -1041,7 +1040,7 @@ var gt = { [R.dummyPointId]: {
1041
1040
  return e instanceof HTMLInputElement || e instanceof HTMLSelectElement;
1042
1041
  }))) {
1043
1042
  var a = Date.now();
1044
- a - n <= R ? (r++, r === 2 && t(ht(e))) : r = 1, n = a;
1043
+ a - n <= z ? (r++, r === 2 && t(mt(e))) : r = 1, n = a;
1045
1044
  }
1046
1045
  }
1047
1046
  }
@@ -1050,26 +1049,26 @@ var gt = { [R.dummyPointId]: {
1050
1049
  simDblclick: i
1051
1050
  };
1052
1051
  }
1053
- function _t(e, t) {
1052
+ function gt(e, t) {
1054
1053
  e.removeEventListener("dblclick", t.dblclick), e.removeEventListener("click", t.simDblclick);
1055
1054
  }
1056
- var vt = W([
1055
+ var _t = W([
1057
1056
  "transform",
1058
1057
  "webkitTransform",
1059
1058
  "OTransform",
1060
1059
  "MozTransform",
1061
1060
  "msTransform"
1062
- ]), yt = W([
1061
+ ]), vt = W([
1063
1062
  "webkitTransition",
1064
1063
  "transition",
1065
1064
  "OTransition",
1066
1065
  "MozTransition",
1067
1066
  "msTransition"
1068
- ]), bt = yt === "webkitTransition" || yt === "OTransition" ? yt + "End" : "transitionend";
1069
- function xt(e) {
1067
+ ]), yt = vt === "webkitTransition" || vt === "OTransition" ? vt + "End" : "transitionend";
1068
+ function bt(e) {
1070
1069
  return typeof e == "string" ? document.getElementById(e) : e;
1071
1070
  }
1072
- function St(e, t) {
1071
+ function xt(e, t) {
1073
1072
  var n = e.style[t] || e.currentStyle && e.currentStyle[t];
1074
1073
  if ((!n || n === "auto") && document.defaultView) {
1075
1074
  var r = document.defaultView.getComputedStyle(e, null);
@@ -1077,47 +1076,47 @@ var gt = { [R.dummyPointId]: {
1077
1076
  }
1078
1077
  return n === "auto" ? null : n;
1079
1078
  }
1080
- function z(e, t, n) {
1079
+ function B(e, t, n) {
1081
1080
  var r = document.createElement(e);
1082
1081
  return r.className = t || "", n && n.appendChild(r), r;
1083
1082
  }
1084
- function B(e) {
1083
+ function V(e) {
1085
1084
  var t = e.parentNode;
1086
1085
  t && t.removeChild(e);
1087
1086
  }
1088
- function Ct(e) {
1087
+ function St(e) {
1089
1088
  for (; e.firstChild;) e.removeChild(e.firstChild);
1090
1089
  }
1091
- function wt(e) {
1090
+ function Ct(e) {
1092
1091
  var t = e.parentNode;
1093
1092
  t && t.lastChild !== e && t.appendChild(e);
1094
1093
  }
1095
- function Tt(e) {
1094
+ function wt(e) {
1096
1095
  var t = e.parentNode;
1097
1096
  t && t.firstChild !== e && t.insertBefore(e, t.firstChild);
1098
1097
  }
1099
- function Et(e, t) {
1098
+ function Tt(e, t) {
1100
1099
  if (e.classList !== void 0) return e.classList.contains(t);
1101
- var n = Ot(e);
1100
+ var n = Dt(e);
1102
1101
  return n.length > 0 && RegExp("(^|\\s)" + t + "(\\s|$)").test(n);
1103
1102
  }
1104
- function V(e, t) {
1103
+ function H(e, t) {
1105
1104
  if (e.classList !== void 0) for (var n = f(t), r = 0, i = n.length; r < i; r++) e.classList.add(n[r]);
1106
- else if (!Et(e, t)) {
1107
- var a = Ot(e);
1108
- Dt(e, (a ? a + " " : "") + t);
1105
+ else if (!Tt(e, t)) {
1106
+ var a = Dt(e);
1107
+ Et(e, (a ? a + " " : "") + t);
1109
1108
  }
1110
1109
  }
1111
- function H(e, t) {
1112
- e.classList === void 0 ? Dt(e, d((" " + Ot(e) + " ").replace(" " + t + " ", " "))) : e.classList.remove(t);
1110
+ function U(e, t) {
1111
+ e.classList === void 0 ? Et(e, d((" " + Dt(e) + " ").replace(" " + t + " ", " "))) : e.classList.remove(t);
1113
1112
  }
1114
- function Dt(e, t) {
1113
+ function Et(e, t) {
1115
1114
  e.className.baseVal === void 0 ? e.className = t : e.className.baseVal = t;
1116
1115
  }
1117
- function Ot(e) {
1116
+ function Dt(e) {
1118
1117
  return e.correspondingElement && (e = e.correspondingElement), e.className.baseVal === void 0 ? e.className : e.className.baseVal;
1119
1118
  }
1120
- function U(e, t) {
1119
+ function Ot(e, t) {
1121
1120
  "opacity" in e.style ? e.style.opacity = t : "filter" in e.style && kt(e, t);
1122
1121
  }
1123
1122
  function kt(e, t) {
@@ -1134,14 +1133,14 @@ var gt = { [R.dummyPointId]: {
1134
1133
  return !1;
1135
1134
  }
1136
1135
  function At(e, t, n) {
1137
- var r = t || new D(0, 0);
1138
- e.style[vt] = (F.ie3d ? "translate(" + r.x + "px," + r.y + "px)" : "translate3d(" + r.x + "px," + r.y + "px,0)") + (n ? " scale(" + n + ")" : "");
1136
+ var r = t || new E(0, 0);
1137
+ e.style[_t] = (I.ie3d ? "translate(" + r.x + "px," + r.y + "px)" : "translate3d(" + r.x + "px," + r.y + "px,0)") + (n ? " scale(" + n + ")" : "");
1139
1138
  }
1140
1139
  function G(e, t) {
1141
- e._leaflet_pos = t, F.any3d ? At(e, t) : (e.style.left = t.x + "px", e.style.top = t.y + "px");
1140
+ e._leaflet_pos = t, I.any3d ? At(e, t) : (e.style.left = t.x + "px", e.style.top = t.y + "px");
1142
1141
  }
1143
1142
  function jt(e) {
1144
- return e._leaflet_pos || new D(0, 0);
1143
+ return e._leaflet_pos || new E(0, 0);
1145
1144
  }
1146
1145
  var Mt, Nt, Pt;
1147
1146
  if ("onselectstart" in document) Mt = function() {
@@ -1196,22 +1195,22 @@ var gt = { [R.dummyPointId]: {
1196
1195
  }
1197
1196
  var Wt = {
1198
1197
  __proto__: null,
1199
- TRANSFORM: vt,
1200
- TRANSITION: yt,
1201
- TRANSITION_END: bt,
1202
- get: xt,
1203
- getStyle: St,
1204
- create: z,
1205
- remove: B,
1206
- empty: Ct,
1207
- toFront: wt,
1208
- toBack: Tt,
1209
- hasClass: Et,
1210
- addClass: V,
1211
- removeClass: H,
1212
- setClass: Dt,
1213
- getClass: Ot,
1214
- setOpacity: U,
1198
+ TRANSFORM: _t,
1199
+ TRANSITION: vt,
1200
+ TRANSITION_END: yt,
1201
+ get: bt,
1202
+ getStyle: xt,
1203
+ create: B,
1204
+ remove: V,
1205
+ empty: St,
1206
+ toFront: Ct,
1207
+ toBack: wt,
1208
+ hasClass: Tt,
1209
+ addClass: H,
1210
+ removeClass: U,
1211
+ setClass: Et,
1212
+ getClass: Dt,
1213
+ setOpacity: Ot,
1215
1214
  testProp: W,
1216
1215
  setTransform: At,
1217
1216
  setPosition: G,
@@ -1264,7 +1263,7 @@ var gt = { [R.dummyPointId]: {
1264
1263
  var a = function(t) {
1265
1264
  return n.call(r || e, t || window.event);
1266
1265
  }, s = a;
1267
- !F.touchNative && F.pointer && t.indexOf("touch") === 0 ? a = ct(e, t, a) : F.touch && t === "dblclick" ? a = gt(e, a) : "addEventListener" in e ? t === "touchstart" || t === "touchmove" || t === "wheel" || t === "mousewheel" ? e.addEventListener(qt[t] || t, a, F.passiveEvents ? { passive: !1 } : !1) : t === "mouseenter" || t === "mouseleave" ? (a = function(t) {
1266
+ !I.touchNative && I.pointer && t.indexOf("touch") === 0 ? a = st(e, t, a) : I.touch && t === "dblclick" ? a = ht(e, a) : "addEventListener" in e ? t === "touchstart" || t === "touchmove" || t === "wheel" || t === "mousewheel" ? e.addEventListener(qt[t] || t, a, I.passiveEvents ? { passive: !1 } : !1) : t === "mouseenter" || t === "mouseleave" ? (a = function(t) {
1268
1267
  t ||= window.event, rn(e, t) && s(t);
1269
1268
  }, e.addEventListener(qt[t], a, !1)) : e.addEventListener(t, s, !1) : e.attachEvent("on" + t, a), e[Gt] = e[Gt] || {}, e[Gt][i] = a;
1270
1269
  }
@@ -1272,7 +1271,7 @@ var gt = { [R.dummyPointId]: {
1272
1271
  i ||= t + o(n) + (r ? "_" + o(r) : "");
1273
1272
  var a = e[Gt] && e[Gt][i];
1274
1273
  if (!a) return this;
1275
- !F.touchNative && F.pointer && t.indexOf("touch") === 0 ? lt(e, t, a) : F.touch && t === "dblclick" ? _t(e, a) : "removeEventListener" in e ? e.removeEventListener(qt[t] || t, a, !1) : e.detachEvent("on" + t, a), e[Gt][i] = null;
1274
+ !I.touchNative && I.pointer && t.indexOf("touch") === 0 ? ct(e, t, a) : I.touch && t === "dblclick" ? gt(e, a) : "removeEventListener" in e ? e.removeEventListener(qt[t] || t, a, !1) : e.detachEvent("on" + t, a), e[Gt][i] = null;
1276
1275
  }
1277
1276
  function J(e) {
1278
1277
  return e.stopPropagation ? e.stopPropagation() : e.originalEvent ? e.originalEvent._stopped = !0 : e.cancelBubble = !0, this;
@@ -1295,13 +1294,13 @@ var gt = { [R.dummyPointId]: {
1295
1294
  return t;
1296
1295
  }
1297
1296
  function en(e, t) {
1298
- if (!t) return new D(e.clientX, e.clientY);
1297
+ if (!t) return new E(e.clientX, e.clientY);
1299
1298
  var n = Ut(t), r = n.boundingClientRect;
1300
- return new D((e.clientX - r.left) / n.x - t.clientLeft, (e.clientY - r.top) / n.y - t.clientTop);
1299
+ return new E((e.clientX - r.left) / n.x - t.clientLeft, (e.clientY - r.top) / n.y - t.clientTop);
1301
1300
  }
1302
- var tn = F.linux && F.chrome ? window.devicePixelRatio : F.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
1301
+ var tn = I.linux && I.chrome ? window.devicePixelRatio : I.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
1303
1302
  function nn(e) {
1304
- return F.edge ? e.wheelDeltaY / 2 : e.deltaY && e.deltaMode === 0 ? -e.deltaY / tn : e.deltaY && e.deltaMode === 1 ? -e.deltaY * 20 : e.deltaY && e.deltaMode === 2 ? -e.deltaY * 60 : e.deltaX || e.deltaZ ? 0 : e.wheelDelta ? (e.wheelDeltaY || e.wheelDelta) / 2 : e.detail && Math.abs(e.detail) < 32765 ? -e.detail * 20 : e.detail ? e.detail / -32765 * 60 : 0;
1303
+ return I.edge ? e.wheelDeltaY / 2 : e.deltaY && e.deltaMode === 0 ? -e.deltaY / tn : e.deltaY && e.deltaMode === 1 ? -e.deltaY * 20 : e.deltaY && e.deltaMode === 2 ? -e.deltaY * 60 : e.deltaX || e.deltaZ ? 0 : e.wheelDelta ? (e.wheelDeltaY || e.wheelDelta) / 2 : e.detail && Math.abs(e.detail) < 32765 ? -e.detail * 20 : e.detail ? e.detail / -32765 * 60 : 0;
1305
1304
  }
1306
1305
  function rn(e, t) {
1307
1306
  var n = t.relatedTarget;
@@ -1328,7 +1327,7 @@ var gt = { [R.dummyPointId]: {
1328
1327
  isExternalTarget: rn,
1329
1328
  addListener: K,
1330
1329
  removeListener: q
1331
- }, on = ie.extend({
1330
+ }, on = T.extend({
1332
1331
  run: function(e, t, n, r) {
1333
1332
  this.stop(), this._el = e, this._inProgress = !0, this._duration = n || .25, this._easeOutPower = 1 / Math.max(r || .5, .2), this._startPos = jt(e), this._offset = t.subtract(this._startPos), this._startTime = +/* @__PURE__ */ new Date(), this.fire("start"), this._animate();
1334
1333
  },
@@ -1336,7 +1335,7 @@ var gt = { [R.dummyPointId]: {
1336
1335
  this._inProgress && (this._step(!0), this._complete());
1337
1336
  },
1338
1337
  _animate: function() {
1339
- this._animId = S(this._animate, this), this._step();
1338
+ this._animId = x(this._animate, this), this._step();
1340
1339
  },
1341
1340
  _step: function(e) {
1342
1341
  var t = +/* @__PURE__ */ new Date() - this._startTime, n = this._duration * 1e3;
@@ -1347,12 +1346,12 @@ var gt = { [R.dummyPointId]: {
1347
1346
  t && n._round(), G(this._el, n), this.fire("step");
1348
1347
  },
1349
1348
  _complete: function() {
1350
- C(this._animId), this._inProgress = !1, this.fire("end");
1349
+ S(this._animId), this._inProgress = !1, this.fire("end");
1351
1350
  },
1352
1351
  _easeOut: function(e) {
1353
1352
  return 1 - (1 - e) ** this._easeOutPower;
1354
1353
  }
1355
- }), X = ie.extend({
1354
+ }), X = T.extend({
1356
1355
  options: {
1357
1356
  crs: fe,
1358
1357
  center: void 0,
@@ -1372,10 +1371,10 @@ var gt = { [R.dummyPointId]: {
1372
1371
  trackResize: !0
1373
1372
  },
1374
1373
  initialize: function(e, t) {
1375
- t = p(this, t), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(e), this._initLayout(), this._onResize = i(this._onResize, this), this._initEvents(), t.maxBounds && this.setMaxBounds(t.maxBounds), t.zoom !== void 0 && (this._zoom = this._limitZoom(t.zoom)), t.center && t.zoom !== void 0 && this.setView(P(t.center), t.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = yt && F.any3d && !F.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), K(this._proxy, bt, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
1374
+ t = p(this, t), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(e), this._initLayout(), this._onResize = i(this._onResize, this), this._initEvents(), t.maxBounds && this.setMaxBounds(t.maxBounds), t.zoom !== void 0 && (this._zoom = this._limitZoom(t.zoom)), t.center && t.zoom !== void 0 && this.setView(N(t.center), t.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = vt && I.any3d && !I.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), K(this._proxy, yt, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
1376
1375
  },
1377
1376
  setView: function(e, t, r) {
1378
- return t = t === void 0 ? this._zoom : this._limitZoom(t), e = this._limitCenter(P(e), t, this.options.maxBounds), r ||= {}, this._stop(), this._loaded && !r.reset && r !== !0 && (r.animate !== void 0 && (r.zoom = n({ animate: r.animate }, r.zoom), r.pan = n({
1377
+ return t = t === void 0 ? this._zoom : this._limitZoom(t), e = this._limitCenter(N(e), t, this.options.maxBounds), r ||= {}, this._stop(), this._loaded && !r.reset && r !== !0 && (r.animate !== void 0 && (r.zoom = n({ animate: r.animate }, r.zoom), r.pan = n({
1379
1378
  animate: r.animate,
1380
1379
  duration: r.duration
1381
1380
  }, r.pan)), this._zoom === t ? this._tryAnimatedPan(e, r.pan) : this._tryAnimatedZoom && this._tryAnimatedZoom(e, t, r.zoom)) ? (clearTimeout(this._sizeTimer), this) : (this._resetView(e, t, r.pan && r.pan.noMoveStart), this);
@@ -1384,18 +1383,18 @@ var gt = { [R.dummyPointId]: {
1384
1383
  return this._loaded ? this.setView(this.getCenter(), e, { zoom: t }) : (this._zoom = e, this);
1385
1384
  },
1386
1385
  zoomIn: function(e, t) {
1387
- return e ||= F.any3d ? this.options.zoomDelta : 1, this.setZoom(this._zoom + e, t);
1386
+ return e ||= I.any3d ? this.options.zoomDelta : 1, this.setZoom(this._zoom + e, t);
1388
1387
  },
1389
1388
  zoomOut: function(e, t) {
1390
- return e ||= F.any3d ? this.options.zoomDelta : 1, this.setZoom(this._zoom - e, t);
1389
+ return e ||= I.any3d ? this.options.zoomDelta : 1, this.setZoom(this._zoom - e, t);
1391
1390
  },
1392
1391
  setZoomAround: function(e, t, n) {
1393
- var r = this.getZoomScale(t), i = this.getSize().divideBy(2), a = (e instanceof D ? e : this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1 - 1 / r), o = this.containerPointToLatLng(i.add(a));
1392
+ var r = this.getZoomScale(t), i = this.getSize().divideBy(2), a = (e instanceof E ? e : this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1 - 1 / r), o = this.containerPointToLatLng(i.add(a));
1394
1393
  return this.setView(o, t, { zoom: n });
1395
1394
  },
1396
1395
  _getBoundsCenterZoom: function(e, t) {
1397
- t ||= {}, e = e.getBounds ? e.getBounds() : M(e);
1398
- var n = O(t.paddingTopLeft || t.padding || [0, 0]), r = O(t.paddingBottomRight || t.padding || [0, 0]), i = this.getBoundsZoom(e, !1, n.add(r));
1396
+ t ||= {}, e = e.getBounds ? e.getBounds() : j(e);
1397
+ var n = D(t.paddingTopLeft || t.padding || [0, 0]), r = D(t.paddingBottomRight || t.padding || [0, 0]), i = this.getBoundsZoom(e, !1, n.add(r));
1399
1398
  if (i = typeof t.maxZoom == "number" ? Math.min(t.maxZoom, i) : i, i === Infinity) return {
1400
1399
  center: e.getCenter(),
1401
1400
  zoom: i
@@ -1407,7 +1406,7 @@ var gt = { [R.dummyPointId]: {
1407
1406
  };
1408
1407
  },
1409
1408
  fitBounds: function(e, t) {
1410
- if (e = M(e), !e.isValid()) throw Error("Bounds are not valid.");
1409
+ if (e = j(e), !e.isValid()) throw Error("Bounds are not valid.");
1411
1410
  var n = this._getBoundsCenterZoom(e, t);
1412
1411
  return this.setView(n.center, n.zoom, t);
1413
1412
  },
@@ -1418,23 +1417,23 @@ var gt = { [R.dummyPointId]: {
1418
1417
  return this.setView(e, this._zoom, { pan: t });
1419
1418
  },
1420
1419
  panBy: function(e, t) {
1421
- if (e = O(e).round(), t ||= {}, !e.x && !e.y) return this.fire("moveend");
1420
+ if (e = D(e).round(), t ||= {}, !e.x && !e.y) return this.fire("moveend");
1422
1421
  if (t.animate !== !0 && !this.getSize().contains(e)) return this._resetView(this.unproject(this.project(this.getCenter()).add(e)), this.getZoom()), this;
1423
1422
  if (this._panAnim || (this._panAnim = new on(), this._panAnim.on({
1424
1423
  step: this._onPanTransitionStep,
1425
1424
  end: this._onPanTransitionEnd
1426
1425
  }, this)), t.noMoveStart || this.fire("movestart"), t.animate !== !1) {
1427
- V(this._mapPane, "leaflet-pan-anim");
1426
+ H(this._mapPane, "leaflet-pan-anim");
1428
1427
  var n = this._getMapPanePos().subtract(e).round();
1429
1428
  this._panAnim.run(this._mapPane, n, t.duration || .25, t.easeLinearity);
1430
1429
  } else this._rawPanBy(e), this.fire("move").fire("moveend");
1431
1430
  return this;
1432
1431
  },
1433
1432
  flyTo: function(e, t, n) {
1434
- if (n ||= {}, n.animate === !1 || !F.any3d) return this.setView(e, t, n);
1433
+ if (n ||= {}, n.animate === !1 || !I.any3d) return this.setView(e, t, n);
1435
1434
  this._stop();
1436
1435
  var r = this.project(this.getCenter()), i = this.project(e), a = this.getSize(), o = this._zoom;
1437
- e = P(e), t = t === void 0 ? o : t;
1436
+ e = N(e), t = t === void 0 ? o : t;
1438
1437
  var s = Math.max(a.x, a.y), c = s * this.getZoomScale(o, t), l = i.distanceTo(r) || 1, u = 1.42, d = u * u;
1439
1438
  function f(e) {
1440
1439
  var t = e ? -1 : 1, n = e ? c : s, r = (c * c - s * s + t * d * d * l * l) / (2 * n * d * l), i = Math.sqrt(r * r + 1) - r;
@@ -1462,7 +1461,7 @@ var gt = { [R.dummyPointId]: {
1462
1461
  var b = Date.now(), ee = (f(1) - g) / u, te = n.duration ? 1e3 * n.duration : 1e3 * ee * .8;
1463
1462
  function ne() {
1464
1463
  var n = (Date.now() - b) / te, a = y(n) * ee;
1465
- n <= 1 ? (this._flyToFrame = S(ne, this), this._move(this.unproject(r.add(i.subtract(r).multiplyBy(v(a) / l)), o), this.getScaleZoom(s / _(a), o), { flyTo: !0 })) : this._move(e, t)._moveEnd(!0);
1464
+ n <= 1 ? (this._flyToFrame = x(ne, this), this._move(this.unproject(r.add(i.subtract(r).multiplyBy(v(a) / l)), o), this.getScaleZoom(s / _(a), o), { flyTo: !0 })) : this._move(e, t)._moveEnd(!0);
1466
1465
  }
1467
1466
  return this._moveStart(!0, n.noMoveStart), ne.call(this), this;
1468
1467
  },
@@ -1471,7 +1470,7 @@ var gt = { [R.dummyPointId]: {
1471
1470
  return this.flyTo(n.center, n.zoom, t);
1472
1471
  },
1473
1472
  setMaxBounds: function(e) {
1474
- return e = M(e), this.listens("moveend", this._panInsideMaxBounds) && this.off("moveend", this._panInsideMaxBounds), e.isValid() ? (this.options.maxBounds = e, this._loaded && this._panInsideMaxBounds(), this.on("moveend", this._panInsideMaxBounds)) : (this.options.maxBounds = null, this);
1473
+ return e = j(e), this.listens("moveend", this._panInsideMaxBounds) && this.off("moveend", this._panInsideMaxBounds), e.isValid() ? (this.options.maxBounds = e, this._loaded && this._panInsideMaxBounds(), this.on("moveend", this._panInsideMaxBounds)) : (this.options.maxBounds = null, this);
1475
1474
  },
1476
1475
  setMinZoom: function(e) {
1477
1476
  var t = this.options.minZoom;
@@ -1483,12 +1482,12 @@ var gt = { [R.dummyPointId]: {
1483
1482
  },
1484
1483
  panInsideBounds: function(e, t) {
1485
1484
  this._enforcingBounds = !0;
1486
- var n = this.getCenter(), r = this._limitCenter(n, this._zoom, M(e));
1485
+ var n = this.getCenter(), r = this._limitCenter(n, this._zoom, j(e));
1487
1486
  return n.equals(r) || this.panTo(r, t), this._enforcingBounds = !1, this;
1488
1487
  },
1489
1488
  panInside: function(e, t) {
1490
1489
  t ||= {};
1491
- var n = O(t.paddingTopLeft || t.padding || [0, 0]), r = O(t.paddingBottomRight || t.padding || [0, 0]), i = this.project(this.getCenter()), a = this.project(e), o = this.getPixelBounds(), s = A([o.min.add(n), o.max.subtract(r)]), c = s.getSize();
1490
+ var n = D(t.paddingTopLeft || t.padding || [0, 0]), r = D(t.paddingBottomRight || t.padding || [0, 0]), i = this.project(this.getCenter()), a = this.project(e), o = this.getPixelBounds(), s = k([o.min.add(n), o.max.subtract(r)]), c = s.getSize();
1492
1491
  if (!s.contains(a)) {
1493
1492
  this._enforcingBounds = !0;
1494
1493
  var l = a.subtract(s.getCenter()), u = s.extend(a).getSize().subtract(c);
@@ -1538,7 +1537,7 @@ var gt = { [R.dummyPointId]: {
1538
1537
  },
1539
1538
  _handleGeolocationResponse: function(e) {
1540
1539
  if (this._container._leaflet_id) {
1541
- var t = e.coords.latitude, n = e.coords.longitude, r = new N(t, n), i = r.toBounds(e.coords.accuracy * 2), a = this._locateOptions;
1540
+ var t = e.coords.latitude, n = e.coords.longitude, r = new M(t, n), i = r.toBounds(e.coords.accuracy * 2), a = this._locateOptions;
1542
1541
  if (a.setView) {
1543
1542
  var o = this.getBoundsZoom(i);
1544
1543
  this.setView(r, a.maxZoom ? Math.min(o, a.maxZoom) : o);
@@ -1564,12 +1563,12 @@ var gt = { [R.dummyPointId]: {
1564
1563
  } catch {
1565
1564
  this._container._leaflet_id = void 0, this._containerId = void 0;
1566
1565
  }
1567
- for (var e in this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), B(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest &&= (C(this._resizeRequest), null), this._clearHandlers(), this._loaded && this.fire("unload"), this._layers) this._layers[e].remove();
1568
- for (e in this._panes) B(this._panes[e]);
1566
+ for (var e in this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), V(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest &&= (S(this._resizeRequest), null), this._clearHandlers(), this._loaded && this.fire("unload"), this._layers) this._layers[e].remove();
1567
+ for (e in this._panes) V(this._panes[e]);
1569
1568
  return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer, this;
1570
1569
  },
1571
1570
  createPane: function(e, t) {
1572
- var n = z("div", "leaflet-pane" + (e ? " leaflet-" + e.replace("Pane", "") + "-pane" : ""), t || this._mapPane);
1571
+ var n = B("div", "leaflet-pane" + (e ? " leaflet-" + e.replace("Pane", "") + "-pane" : ""), t || this._mapPane);
1573
1572
  return e && (this._panes[e] = n), n;
1574
1573
  },
1575
1574
  getCenter: function() {
@@ -1580,7 +1579,7 @@ var gt = { [R.dummyPointId]: {
1580
1579
  },
1581
1580
  getBounds: function() {
1582
1581
  var e = this.getPixelBounds();
1583
- return new j(this.unproject(e.getBottomLeft()), this.unproject(e.getTopRight()));
1582
+ return new A(this.unproject(e.getBottomLeft()), this.unproject(e.getTopRight()));
1584
1583
  },
1585
1584
  getMinZoom: function() {
1586
1585
  return this.options.minZoom === void 0 ? this._layersMinZoom || 0 : this.options.minZoom;
@@ -1589,16 +1588,16 @@ var gt = { [R.dummyPointId]: {
1589
1588
  return this.options.maxZoom === void 0 ? this._layersMaxZoom === void 0 ? Infinity : this._layersMaxZoom : this.options.maxZoom;
1590
1589
  },
1591
1590
  getBoundsZoom: function(e, t, n) {
1592
- e = M(e), n = O(n || [0, 0]);
1593
- var r = this.getZoom() || 0, i = this.getMinZoom(), a = this.getMaxZoom(), o = e.getNorthWest(), s = e.getSouthEast(), c = this.getSize().subtract(n), l = A(this.project(s, r), this.project(o, r)).getSize(), u = F.any3d ? this.options.zoomSnap : 1, d = c.x / l.x, f = c.y / l.y, p = t ? Math.max(d, f) : Math.min(d, f);
1591
+ e = j(e), n = D(n || [0, 0]);
1592
+ var r = this.getZoom() || 0, i = this.getMinZoom(), a = this.getMaxZoom(), o = e.getNorthWest(), s = e.getSouthEast(), c = this.getSize().subtract(n), l = k(this.project(s, r), this.project(o, r)).getSize(), u = I.any3d ? this.options.zoomSnap : 1, d = c.x / l.x, f = c.y / l.y, p = t ? Math.max(d, f) : Math.min(d, f);
1594
1593
  return r = this.getScaleZoom(p, r), u && (r = Math.round(r / (u / 100)) * (u / 100), r = t ? Math.ceil(r / u) * u : Math.floor(r / u) * u), Math.max(i, Math.min(a, r));
1595
1594
  },
1596
1595
  getSize: function() {
1597
- return (!this._size || this._sizeChanged) && (this._size = new D(this._container.clientWidth || 0, this._container.clientHeight || 0), this._sizeChanged = !1), this._size.clone();
1596
+ return (!this._size || this._sizeChanged) && (this._size = new E(this._container.clientWidth || 0, this._container.clientHeight || 0), this._sizeChanged = !1), this._size.clone();
1598
1597
  },
1599
1598
  getPixelBounds: function(e, t) {
1600
1599
  var n = this._getTopLeftPoint(e, t);
1601
- return new k(n, n.add(this.getSize()));
1600
+ return new O(n, n.add(this.getSize()));
1602
1601
  },
1603
1602
  getPixelOrigin: function() {
1604
1603
  return this._checkIfLoaded(), this._pixelOrigin;
@@ -1626,39 +1625,39 @@ var gt = { [R.dummyPointId]: {
1626
1625
  return isNaN(r) ? Infinity : r;
1627
1626
  },
1628
1627
  project: function(e, t) {
1629
- return t = t === void 0 ? this._zoom : t, this.options.crs.latLngToPoint(P(e), t);
1628
+ return t = t === void 0 ? this._zoom : t, this.options.crs.latLngToPoint(N(e), t);
1630
1629
  },
1631
1630
  unproject: function(e, t) {
1632
- return t = t === void 0 ? this._zoom : t, this.options.crs.pointToLatLng(O(e), t);
1631
+ return t = t === void 0 ? this._zoom : t, this.options.crs.pointToLatLng(D(e), t);
1633
1632
  },
1634
1633
  layerPointToLatLng: function(e) {
1635
- var t = O(e).add(this.getPixelOrigin());
1634
+ var t = D(e).add(this.getPixelOrigin());
1636
1635
  return this.unproject(t);
1637
1636
  },
1638
1637
  latLngToLayerPoint: function(e) {
1639
- return this.project(P(e))._round()._subtract(this.getPixelOrigin());
1638
+ return this.project(N(e))._round()._subtract(this.getPixelOrigin());
1640
1639
  },
1641
1640
  wrapLatLng: function(e) {
1642
- return this.options.crs.wrapLatLng(P(e));
1641
+ return this.options.crs.wrapLatLng(N(e));
1643
1642
  },
1644
1643
  wrapLatLngBounds: function(e) {
1645
- return this.options.crs.wrapLatLngBounds(M(e));
1644
+ return this.options.crs.wrapLatLngBounds(j(e));
1646
1645
  },
1647
1646
  distance: function(e, t) {
1648
- return this.options.crs.distance(P(e), P(t));
1647
+ return this.options.crs.distance(N(e), N(t));
1649
1648
  },
1650
1649
  containerPointToLayerPoint: function(e) {
1651
- return O(e).subtract(this._getMapPanePos());
1650
+ return D(e).subtract(this._getMapPanePos());
1652
1651
  },
1653
1652
  layerPointToContainerPoint: function(e) {
1654
- return O(e).add(this._getMapPanePos());
1653
+ return D(e).add(this._getMapPanePos());
1655
1654
  },
1656
1655
  containerPointToLatLng: function(e) {
1657
- var t = this.containerPointToLayerPoint(O(e));
1656
+ var t = this.containerPointToLayerPoint(D(e));
1658
1657
  return this.layerPointToLatLng(t);
1659
1658
  },
1660
1659
  latLngToContainerPoint: function(e) {
1661
- return this.layerPointToContainerPoint(this.latLngToLayerPoint(P(e)));
1660
+ return this.layerPointToContainerPoint(this.latLngToLayerPoint(N(e)));
1662
1661
  },
1663
1662
  mouseEventToContainerPoint: function(e) {
1664
1663
  return en(e, this._container);
@@ -1670,23 +1669,23 @@ var gt = { [R.dummyPointId]: {
1670
1669
  return this.layerPointToLatLng(this.mouseEventToLayerPoint(e));
1671
1670
  },
1672
1671
  _initContainer: function(e) {
1673
- var t = this._container = xt(e);
1672
+ var t = this._container = bt(e);
1674
1673
  if (!t) throw Error("Map container not found.");
1675
1674
  if (t._leaflet_id) throw Error("Map container is already initialized.");
1676
1675
  K(t, "scroll", this._onScroll, this), this._containerId = o(t);
1677
1676
  },
1678
1677
  _initLayout: function() {
1679
1678
  var e = this._container;
1680
- this._fadeAnimated = this.options.fadeAnimation && F.any3d, V(e, "leaflet-container" + (F.touch ? " leaflet-touch" : "") + (F.retina ? " leaflet-retina" : "") + (F.ielt9 ? " leaflet-oldie" : "") + (F.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
1681
- var t = St(e, "position");
1679
+ this._fadeAnimated = this.options.fadeAnimation && I.any3d, H(e, "leaflet-container" + (I.touch ? " leaflet-touch" : "") + (I.retina ? " leaflet-retina" : "") + (I.ielt9 ? " leaflet-oldie" : "") + (I.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
1680
+ var t = xt(e, "position");
1682
1681
  t !== "absolute" && t !== "relative" && t !== "fixed" && t !== "sticky" && (e.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
1683
1682
  },
1684
1683
  _initPanes: function() {
1685
1684
  var e = this._panes = {};
1686
- this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), G(this._mapPane, new D(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (V(e.markerPane, "leaflet-zoom-hide"), V(e.shadowPane, "leaflet-zoom-hide"));
1685
+ this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), G(this._mapPane, new E(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (H(e.markerPane, "leaflet-zoom-hide"), H(e.shadowPane, "leaflet-zoom-hide"));
1687
1686
  },
1688
1687
  _resetView: function(e, t, n) {
1689
- G(this._mapPane, new D(0, 0));
1688
+ G(this._mapPane, new E(0, 0));
1690
1689
  var r = !this._loaded;
1691
1690
  this._loaded = !0, t = this._limitZoom(t), this.fire("viewprereset");
1692
1691
  var i = this._zoom !== t;
@@ -1704,7 +1703,7 @@ var gt = { [R.dummyPointId]: {
1704
1703
  return e && this.fire("zoomend"), this.fire("moveend");
1705
1704
  },
1706
1705
  _stop: function() {
1707
- return C(this._flyToFrame), this._panAnim && this._panAnim.stop(), this;
1706
+ return S(this._flyToFrame), this._panAnim && this._panAnim.stop(), this;
1708
1707
  },
1709
1708
  _rawPanBy: function(e) {
1710
1709
  G(this._mapPane, this._getMapPanePos().subtract(e));
@@ -1721,10 +1720,10 @@ var gt = { [R.dummyPointId]: {
1721
1720
  _initEvents: function(e) {
1722
1721
  this._targets = {}, this._targets[o(this._container)] = this;
1723
1722
  var t = e ? q : K;
1724
- t(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && t(window, "resize", this._onResize, this), F.any3d && this.options.transform3DLimit && (e ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
1723
+ t(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && t(window, "resize", this._onResize, this), I.any3d && this.options.transform3DLimit && (e ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
1725
1724
  },
1726
1725
  _onResize: function() {
1727
- C(this._resizeRequest), this._resizeRequest = S(function() {
1726
+ S(this._resizeRequest), this._resizeRequest = x(function() {
1728
1727
  this.invalidateSize({ debounceMoveend: !0 });
1729
1728
  }, this);
1730
1729
  },
@@ -1796,7 +1795,7 @@ var gt = { [R.dummyPointId]: {
1796
1795
  return this._loaded ? e.call(t || this, { target: this }) : this.on("load", e, t), this;
1797
1796
  },
1798
1797
  _getMapPanePos: function() {
1799
- return jt(this._mapPane) || new D(0, 0);
1798
+ return jt(this._mapPane) || new E(0, 0);
1800
1799
  },
1801
1800
  _moved: function() {
1802
1801
  var e = this._getMapPanePos();
@@ -1815,7 +1814,7 @@ var gt = { [R.dummyPointId]: {
1815
1814
  },
1816
1815
  _latLngBoundsToNewLayerBounds: function(e, t, n) {
1817
1816
  var r = this._getNewPixelOrigin(n, t);
1818
- return A([
1817
+ return k([
1819
1818
  this.project(e.getSouthWest(), t)._subtract(r),
1820
1819
  this.project(e.getNorthWest(), t)._subtract(r),
1821
1820
  this.project(e.getSouthEast(), t)._subtract(r),
@@ -1830,44 +1829,44 @@ var gt = { [R.dummyPointId]: {
1830
1829
  },
1831
1830
  _limitCenter: function(e, t, n) {
1832
1831
  if (!n) return e;
1833
- var r = this.project(e, t), i = this.getSize().divideBy(2), a = new k(r.subtract(i), r.add(i)), o = this._getBoundsOffset(a, n, t);
1832
+ var r = this.project(e, t), i = this.getSize().divideBy(2), a = new O(r.subtract(i), r.add(i)), o = this._getBoundsOffset(a, n, t);
1834
1833
  return Math.abs(o.x) <= 1 && Math.abs(o.y) <= 1 ? e : this.unproject(r.add(o), t);
1835
1834
  },
1836
1835
  _limitOffset: function(e, t) {
1837
1836
  if (!t) return e;
1838
- var n = this.getPixelBounds(), r = new k(n.min.add(e), n.max.add(e));
1837
+ var n = this.getPixelBounds(), r = new O(n.min.add(e), n.max.add(e));
1839
1838
  return e.add(this._getBoundsOffset(r, t));
1840
1839
  },
1841
1840
  _getBoundsOffset: function(e, t, n) {
1842
- var r = A(this.project(t.getNorthEast(), n), this.project(t.getSouthWest(), n)), i = r.min.subtract(e.min), a = r.max.subtract(e.max);
1843
- return new D(this._rebound(i.x, -a.x), this._rebound(i.y, -a.y));
1841
+ var r = k(this.project(t.getNorthEast(), n), this.project(t.getSouthWest(), n)), i = r.min.subtract(e.min), a = r.max.subtract(e.max);
1842
+ return new E(this._rebound(i.x, -a.x), this._rebound(i.y, -a.y));
1844
1843
  },
1845
1844
  _rebound: function(e, t) {
1846
1845
  return e + t > 0 ? Math.round(e - t) / 2 : Math.max(0, Math.ceil(e)) - Math.max(0, Math.floor(t));
1847
1846
  },
1848
1847
  _limitZoom: function(e) {
1849
- var t = this.getMinZoom(), n = this.getMaxZoom(), r = F.any3d ? this.options.zoomSnap : 1;
1848
+ var t = this.getMinZoom(), n = this.getMaxZoom(), r = I.any3d ? this.options.zoomSnap : 1;
1850
1849
  return r && (e = Math.round(e / r) * r), Math.max(t, Math.min(n, e));
1851
1850
  },
1852
1851
  _onPanTransitionStep: function() {
1853
1852
  this.fire("move");
1854
1853
  },
1855
1854
  _onPanTransitionEnd: function() {
1856
- H(this._mapPane, "leaflet-pan-anim"), this.fire("moveend");
1855
+ U(this._mapPane, "leaflet-pan-anim"), this.fire("moveend");
1857
1856
  },
1858
1857
  _tryAnimatedPan: function(e, t) {
1859
1858
  var n = this._getCenterOffset(e)._trunc();
1860
1859
  return (t && t.animate) !== !0 && !this.getSize().contains(n) ? !1 : (this.panBy(n, t), !0);
1861
1860
  },
1862
1861
  _createAnimProxy: function() {
1863
- var e = this._proxy = z("div", "leaflet-proxy leaflet-zoom-animated");
1862
+ var e = this._proxy = B("div", "leaflet-proxy leaflet-zoom-animated");
1864
1863
  this._panes.mapPane.appendChild(e), this.on("zoomanim", function(e) {
1865
- var t = vt, n = this._proxy.style[t];
1864
+ var t = _t, n = this._proxy.style[t];
1866
1865
  At(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[t] && this._animatingZoom && this._onZoomTransitionEnd();
1867
1866
  }, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
1868
1867
  },
1869
1868
  _destroyAnimProxy: function() {
1870
- B(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy;
1869
+ V(this._proxy), this.off("load moveend", this._animMoveEnd, this), delete this._proxy;
1871
1870
  },
1872
1871
  _animMoveEnd: function() {
1873
1872
  var e = this.getCenter(), t = this.getZoom();
@@ -1883,25 +1882,25 @@ var gt = { [R.dummyPointId]: {
1883
1882
  if (this._animatingZoom) return !0;
1884
1883
  if (n ||= {}, !this._zoomAnimated || n.animate === !1 || this._nothingToAnimate() || Math.abs(t - this._zoom) > this.options.zoomAnimationThreshold) return !1;
1885
1884
  var r = this.getZoomScale(t), i = this._getCenterOffset(e)._divideBy(1 - 1 / r);
1886
- return n.animate !== !0 && !this.getSize().contains(i) ? !1 : (S(function() {
1885
+ return n.animate !== !0 && !this.getSize().contains(i) ? !1 : (x(function() {
1887
1886
  this._moveStart(!0, n.noMoveStart || !1)._animateZoom(e, t, !0);
1888
1887
  }, this), !0);
1889
1888
  },
1890
1889
  _animateZoom: function(e, t, n, r) {
1891
- this._mapPane && (n && (this._animatingZoom = !0, this._animateToCenter = e, this._animateToZoom = t, V(this._mapPane, "leaflet-zoom-anim")), this.fire("zoomanim", {
1890
+ this._mapPane && (n && (this._animatingZoom = !0, this._animateToCenter = e, this._animateToZoom = t, H(this._mapPane, "leaflet-zoom-anim")), this.fire("zoomanim", {
1892
1891
  center: e,
1893
1892
  zoom: t,
1894
1893
  noUpdate: r
1895
1894
  }), this._tempFireZoomEvent ||= this._zoom !== this._animateToZoom, this._move(this._animateToCenter, this._animateToZoom, void 0, !0), setTimeout(i(this._onZoomTransitionEnd, this), 250));
1896
1895
  },
1897
1896
  _onZoomTransitionEnd: function() {
1898
- this._animatingZoom && (this._mapPane && H(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));
1897
+ this._animatingZoom && (this._mapPane && U(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));
1899
1898
  }
1900
1899
  });
1901
1900
  function sn(e, t) {
1902
1901
  return new X(e, t);
1903
1902
  }
1904
- var Z = T.extend({
1903
+ var Z = ae.extend({
1905
1904
  options: { position: "topright" },
1906
1905
  initialize: function(e) {
1907
1906
  p(this, e);
@@ -1919,10 +1918,10 @@ var gt = { [R.dummyPointId]: {
1919
1918
  addTo: function(e) {
1920
1919
  this.remove(), this._map = e;
1921
1920
  var t = this._container = this.onAdd(e), n = this.getPosition(), r = e._controlCorners[n];
1922
- return V(t, "leaflet-control"), n.indexOf("bottom") === -1 ? r.appendChild(t) : r.insertBefore(t, r.firstChild), this._map.on("unload", this.remove, this), this;
1921
+ return H(t, "leaflet-control"), n.indexOf("bottom") === -1 ? r.appendChild(t) : r.insertBefore(t, r.firstChild), this._map.on("unload", this.remove, this), this;
1923
1922
  },
1924
1923
  remove: function() {
1925
- return this._map ? (B(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this;
1924
+ return this._map ? (V(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this;
1926
1925
  },
1927
1926
  _refocusOnMap: function(e) {
1928
1927
  this._map && e && e.screenX > 0 && e.screenY > 0 && this._map.getContainer().focus();
@@ -1938,16 +1937,16 @@ var gt = { [R.dummyPointId]: {
1938
1937
  return e.remove(), this;
1939
1938
  },
1940
1939
  _initControlPos: function() {
1941
- var e = this._controlCorners = {}, t = "leaflet-", n = this._controlContainer = z("div", t + "control-container", this._container);
1940
+ var e = this._controlCorners = {}, t = "leaflet-", n = this._controlContainer = B("div", t + "control-container", this._container);
1942
1941
  function r(r, i) {
1943
1942
  var a = t + r + " " + t + i;
1944
- e[r + i] = z("div", a, n);
1943
+ e[r + i] = B("div", a, n);
1945
1944
  }
1946
1945
  r("top", "left"), r("top", "right"), r("bottom", "left"), r("bottom", "right");
1947
1946
  },
1948
1947
  _clearControlPos: function() {
1949
- for (var e in this._controlCorners) B(this._controlCorners[e]);
1950
- B(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
1948
+ for (var e in this._controlCorners) V(this._controlCorners[e]);
1949
+ V(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
1951
1950
  }
1952
1951
  });
1953
1952
  var ln = Z.extend({
@@ -1989,22 +1988,22 @@ var gt = { [R.dummyPointId]: {
1989
1988
  return t && this._layers.splice(this._layers.indexOf(t), 1), this._map ? this._update() : this;
1990
1989
  },
1991
1990
  expand: function() {
1992
- V(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
1991
+ H(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null;
1993
1992
  var e = this._map.getSize().y - (this._container.offsetTop + 50);
1994
- return e < this._section.clientHeight ? (V(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = e + "px") : H(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
1993
+ return e < this._section.clientHeight ? (H(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = e + "px") : U(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this;
1995
1994
  },
1996
1995
  collapse: function() {
1997
- return H(this._container, "leaflet-control-layers-expanded"), this;
1996
+ return U(this._container, "leaflet-control-layers-expanded"), this;
1998
1997
  },
1999
1998
  _initLayout: function() {
2000
- var e = "leaflet-control-layers", t = this._container = z("div", e), n = this.options.collapsed;
1999
+ var e = "leaflet-control-layers", t = this._container = B("div", e), n = this.options.collapsed;
2001
2000
  t.setAttribute("aria-haspopup", !0), Zt(t), Xt(t);
2002
- var r = this._section = z("section", e + "-list");
2001
+ var r = this._section = B("section", e + "-list");
2003
2002
  n && (this._map.on("click", this.collapse, this), K(t, {
2004
2003
  mouseenter: this._expandSafely,
2005
2004
  mouseleave: this.collapse
2006
2005
  }, this));
2007
- var i = this._layersLink = z("a", e + "-toggle", t);
2006
+ var i = this._layersLink = B("a", e + "-toggle", t);
2008
2007
  i.href = "#", i.title = "Layers", i.setAttribute("role", "button"), K(i, {
2009
2008
  keydown: function(e) {
2010
2009
  e.keyCode === 13 && this._expandSafely();
@@ -2012,7 +2011,7 @@ var gt = { [R.dummyPointId]: {
2012
2011
  click: function(e) {
2013
2012
  Y(e), this._expandSafely();
2014
2013
  }
2015
- }, this), n || this.expand(), this._baseLayersList = z("div", e + "-base", r), this._separator = z("div", e + "-separator", r), this._overlaysList = z("div", e + "-overlays", r), t.appendChild(r);
2014
+ }, this), n || this.expand(), this._baseLayersList = B("div", e + "-base", r), this._separator = B("div", e + "-separator", r), this._overlaysList = B("div", e + "-overlays", r), t.appendChild(r);
2016
2015
  },
2017
2016
  _getLayer: function(e) {
2018
2017
  for (var t = 0; t < this._layers.length; t++) if (this._layers[t] && o(this._layers[t].layer) === e) return this._layers[t];
@@ -2028,7 +2027,7 @@ var gt = { [R.dummyPointId]: {
2028
2027
  },
2029
2028
  _update: function() {
2030
2029
  if (!this._container) return this;
2031
- Ct(this._baseLayersList), Ct(this._overlaysList), this._layerControlInputs = [];
2030
+ St(this._baseLayersList), St(this._overlaysList), this._layerControlInputs = [];
2032
2031
  var e, t, n, r, i = 0;
2033
2032
  for (n = 0; n < this._layers.length; n++) r = this._layers[n], this._addItem(r), t ||= r.overlay, e ||= !r.overlay, i += +!r.overlay;
2034
2033
  return this.options.hideSingleBase && (e &&= i > 1, this._baseLayersList.style.display = e ? "" : "none"), this._separator.style.display = t && e ? "" : "none", this;
@@ -2085,7 +2084,7 @@ var gt = { [R.dummyPointId]: {
2085
2084
  zoomOutTitle: "Zoom out"
2086
2085
  },
2087
2086
  onAdd: function(e) {
2088
- var t = "leaflet-control-zoom", n = z("div", t + " leaflet-bar"), r = this.options;
2087
+ var t = "leaflet-control-zoom", n = B("div", t + " leaflet-bar"), r = this.options;
2089
2088
  return this._zoomInButton = this._createButton(r.zoomInText, r.zoomInTitle, t + "-in", n, this._zoomIn), this._zoomOutButton = this._createButton(r.zoomOutText, r.zoomOutTitle, t + "-out", n, this._zoomOut), this._updateDisabled(), e.on("zoomend zoomlevelschange", this._updateDisabled, this), n;
2090
2089
  },
2091
2090
  onRemove: function(e) {
@@ -2104,12 +2103,12 @@ var gt = { [R.dummyPointId]: {
2104
2103
  !this._disabled && this._map._zoom > this._map.getMinZoom() && this._map.zoomOut(this._map.options.zoomDelta * (e.shiftKey ? 3 : 1));
2105
2104
  },
2106
2105
  _createButton: function(e, t, n, r, i) {
2107
- var a = z("a", n, r);
2106
+ var a = B("a", n, r);
2108
2107
  return a.innerHTML = e, a.href = "#", a.title = t, a.setAttribute("role", "button"), a.setAttribute("aria-label", t), Zt(a), K(a, "click", Qt), K(a, "click", i, this), K(a, "click", this._refocusOnMap, this), a;
2109
2108
  },
2110
2109
  _updateDisabled: function() {
2111
2110
  var e = this._map, t = "leaflet-disabled";
2112
- H(this._zoomInButton, t), H(this._zoomOutButton, t), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || e._zoom === e.getMinZoom()) && (V(this._zoomOutButton, t), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || e._zoom === e.getMaxZoom()) && (V(this._zoomInButton, t), this._zoomInButton.setAttribute("aria-disabled", "true"));
2111
+ U(this._zoomInButton, t), U(this._zoomOutButton, t), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || e._zoom === e.getMinZoom()) && (H(this._zoomOutButton, t), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || e._zoom === e.getMaxZoom()) && (H(this._zoomInButton, t), this._zoomInButton.setAttribute("aria-disabled", "true"));
2113
2112
  }
2114
2113
  });
2115
2114
  X.mergeOptions({ zoomControl: !0 }), X.addInitHook(function() {
@@ -2125,14 +2124,14 @@ var gt = { [R.dummyPointId]: {
2125
2124
  imperial: !0
2126
2125
  },
2127
2126
  onAdd: function(e) {
2128
- var t = "leaflet-control-scale", n = z("div", t), r = this.options;
2127
+ var t = "leaflet-control-scale", n = B("div", t), r = this.options;
2129
2128
  return this._addScales(r, t + "-line", n), e.on(r.updateWhenIdle ? "moveend" : "move", this._update, this), e.whenReady(this._update, this), n;
2130
2129
  },
2131
2130
  onRemove: function(e) {
2132
2131
  e.off(this.options.updateWhenIdle ? "moveend" : "move", this._update, this);
2133
2132
  },
2134
2133
  _addScales: function(e, t, n) {
2135
- e.metric && (this._mScale = z("div", t, n)), e.imperial && (this._iScale = z("div", t, n));
2134
+ e.metric && (this._mScale = B("div", t, n)), e.imperial && (this._iScale = B("div", t, n));
2136
2135
  },
2137
2136
  _update: function() {
2138
2137
  var e = this._map, t = e.getSize().y / 2, n = e.distance(e.containerPointToLatLng([0, t]), e.containerPointToLatLng([this.options.maxWidth, t]));
@@ -2161,13 +2160,13 @@ var gt = { [R.dummyPointId]: {
2161
2160
  }, hn = Z.extend({
2162
2161
  options: {
2163
2162
  position: "bottomright",
2164
- prefix: "<a href=\"https://leafletjs.com\" title=\"A JavaScript library for interactive maps\">" + (F.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>"
2163
+ prefix: "<a href=\"https://leafletjs.com\" title=\"A JavaScript library for interactive maps\">" + (I.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>"
2165
2164
  },
2166
2165
  initialize: function(e) {
2167
2166
  p(this, e), this._attributions = {};
2168
2167
  },
2169
2168
  onAdd: function(e) {
2170
- for (var t in e.attributionControl = this, this._container = z("div", "leaflet-control-attribution"), Zt(this._container), e._layers) e._layers[t].getAttribution && this.addAttribution(e._layers[t].getAttribution());
2169
+ for (var t in e.attributionControl = this, this._container = B("div", "leaflet-control-attribution"), Zt(this._container), e._layers) e._layers[t].getAttribution && this.addAttribution(e._layers[t].getAttribution());
2171
2170
  return this._update(), e.on("layeradd", this._addAttribution, this), this._container;
2172
2171
  },
2173
2172
  onRemove: function(e) {
@@ -2201,7 +2200,7 @@ var gt = { [R.dummyPointId]: {
2201
2200
  }), Z.Layers = ln, Z.Zoom = dn, Z.Scale = pn, Z.Attribution = hn, cn.layers = un, cn.zoom = fn, cn.scale = mn, cn.attribution = function(e) {
2202
2201
  return new hn(e);
2203
2202
  };
2204
- var gn = T.extend({
2203
+ var gn = ae.extend({
2205
2204
  initialize: function(e) {
2206
2205
  this._map = e;
2207
2206
  },
@@ -2218,7 +2217,7 @@ var gt = { [R.dummyPointId]: {
2218
2217
  gn.addTo = function(e, t) {
2219
2218
  return e.addHandler(t, this), this;
2220
2219
  };
2221
- var _n = { Events: E }, vn = F.touch ? "touchstart mousedown" : "mousedown", yn = ie.extend({
2220
+ var _n = { Events: w }, vn = I.touch ? "touchstart mousedown" : "mousedown", yn = T.extend({
2222
2221
  options: { clickTolerance: 3 },
2223
2222
  initialize: function(e, t, n, r) {
2224
2223
  p(this, r), this._element = e, this._dragStartTarget = t || e, this._preventOutline = n;
@@ -2230,7 +2229,7 @@ var gt = { [R.dummyPointId]: {
2230
2229
  this._enabled && (yn._dragging === this && this.finishDrag(!0), q(this._dragStartTarget, vn, this._onDown, this), this._enabled = !1, this._moved = !1);
2231
2230
  },
2232
2231
  _onDown: function(e) {
2233
- if (this._enabled && (this._moved = !1, !Et(this._element, "leaflet-zoom-anim"))) {
2232
+ if (this._enabled && (this._moved = !1, !Tt(this._element, "leaflet-zoom-anim"))) {
2234
2233
  if (e.touches && e.touches.length !== 1) {
2235
2234
  yn._dragging === this && this.finishDrag();
2236
2235
  return;
@@ -2238,7 +2237,7 @@ var gt = { [R.dummyPointId]: {
2238
2237
  if (!(yn._dragging || e.shiftKey || e.which !== 1 && e.button !== 1 && !e.touches) && (yn._dragging = this, this._preventOutline && Bt(this._element), It(), Mt(), !this._moving)) {
2239
2238
  this.fire("down");
2240
2239
  var t = e.touches ? e.touches[0] : e, n = Ht(this._element);
2241
- this._startPoint = new D(t.clientX, t.clientY), this._startPos = jt(this._element), this._parentScale = Ut(n);
2240
+ this._startPoint = new E(t.clientX, t.clientY), this._startPos = jt(this._element), this._parentScale = Ut(n);
2242
2241
  var r = e.type === "mousedown";
2243
2242
  K(document, r ? "mousemove" : "touchmove", this._onMove, this), K(document, r ? "mouseup" : "touchend touchcancel", this._onUp, this);
2244
2243
  }
@@ -2250,8 +2249,8 @@ var gt = { [R.dummyPointId]: {
2250
2249
  this._moved = !0;
2251
2250
  return;
2252
2251
  }
2253
- var t = e.touches && e.touches.length === 1 ? e.touches[0] : e, n = new D(t.clientX, t.clientY)._subtract(this._startPoint);
2254
- !n.x && !n.y || Math.abs(n.x) + Math.abs(n.y) < this.options.clickTolerance || (n.x /= this._parentScale.x, n.y /= this._parentScale.y, Y(e), this._moved || (this.fire("dragstart"), this._moved = !0, V(document.body, "leaflet-dragging"), this._lastTarget = e.target || e.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), V(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(n), this._moving = !0, this._lastEvent = e, this._updatePosition());
2252
+ var t = e.touches && e.touches.length === 1 ? e.touches[0] : e, n = new E(t.clientX, t.clientY)._subtract(this._startPoint);
2253
+ !n.x && !n.y || Math.abs(n.x) + Math.abs(n.y) < this.options.clickTolerance || (n.x /= this._parentScale.x, n.y /= this._parentScale.y, Y(e), this._moved || (this.fire("dragstart"), this._moved = !0, H(document.body, "leaflet-dragging"), this._lastTarget = e.target || e.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), H(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(n), this._moving = !0, this._lastEvent = e, this._updatePosition());
2255
2254
  }
2256
2255
  },
2257
2256
  _updatePosition: function() {
@@ -2262,7 +2261,7 @@ var gt = { [R.dummyPointId]: {
2262
2261
  this._enabled && this.finishDrag();
2263
2262
  },
2264
2263
  finishDrag: function(e) {
2265
- H(document.body, "leaflet-dragging"), this._lastTarget &&= (H(this._lastTarget, "leaflet-drag-target"), null), q(document, "mousemove touchmove", this._onMove, this), q(document, "mouseup touchend touchcancel", this._onUp, this), Lt(), Nt();
2264
+ U(document.body, "leaflet-dragging"), this._lastTarget &&= (U(this._lastTarget, "leaflet-drag-target"), null), q(document, "mousemove touchmove", this._onMove, this), q(document, "mouseup touchend touchcancel", this._onUp, this), Lt(), Nt();
2266
2265
  var t = this._moved && this._moving;
2267
2266
  this._moving = !1, yn._dragging = !1, t && this.fire("dragend", {
2268
2267
  noInertia: e,
@@ -2288,24 +2287,24 @@ var gt = { [R.dummyPointId]: {
2288
2287
  var n, r, i, a, o, s, c, l, u;
2289
2288
  if (!e || e.length === 0) throw Error("latlngs not passed");
2290
2289
  In(e) || (console.warn("latlngs are not flat! Only the first ring will be used"), e = e[0]);
2291
- var d = P([0, 0]), f = M(e);
2290
+ var d = N([0, 0]), f = j(e);
2292
2291
  f.getNorthWest().distanceTo(f.getSouthWest()) * f.getNorthEast().distanceTo(f.getNorthWest()) < 1700 && (d = Sn(e));
2293
2292
  var p = e.length, m = [];
2294
2293
  for (n = 0; n < p; n++) {
2295
- var h = P(e[n]);
2296
- m.push(t.project(P([h.lat - d.lat, h.lng - d.lng])));
2294
+ var h = N(e[n]);
2295
+ m.push(t.project(N([h.lat - d.lat, h.lng - d.lng])));
2297
2296
  }
2298
2297
  for (s = c = l = 0, n = 0, r = p - 1; n < p; r = n++) i = m[n], a = m[r], o = i.y * a.x - a.y * i.x, c += (i.x + a.x) * o, l += (i.y + a.y) * o, s += o * 3;
2299
2298
  u = s === 0 ? m[0] : [c / s, l / s];
2300
- var g = t.unproject(O(u));
2301
- return P([g.lat + d.lat, g.lng + d.lng]);
2299
+ var g = t.unproject(D(u));
2300
+ return N([g.lat + d.lat, g.lng + d.lng]);
2302
2301
  }
2303
2302
  function Sn(e) {
2304
2303
  for (var t = 0, n = 0, r = 0, i = 0; i < e.length; i++) {
2305
- var a = P(e[i]);
2304
+ var a = N(e[i]);
2306
2305
  t += a.lat, n += a.lng, r++;
2307
2306
  }
2308
- return P([t / r, n / r]);
2307
+ return N([t / r, n / r]);
2309
2308
  }
2310
2309
  var Cn = {
2311
2310
  __proto__: null,
@@ -2351,7 +2350,7 @@ var gt = { [R.dummyPointId]: {
2351
2350
  }
2352
2351
  function Mn(e, t, n, r, i) {
2353
2352
  var a = t.x - e.x, o = t.y - e.y, s = r.min, c = r.max, l, u;
2354
- return n & 8 ? (l = e.x + a * (c.y - e.y) / o, u = c.y) : n & 4 ? (l = e.x + a * (s.y - e.y) / o, u = s.y) : n & 2 ? (l = c.x, u = e.y + o * (c.x - e.x) / a) : n & 1 && (l = s.x, u = e.y + o * (s.x - e.x) / a), new D(l, u, i);
2353
+ return n & 8 ? (l = e.x + a * (c.y - e.y) / o, u = c.y) : n & 4 ? (l = e.x + a * (s.y - e.y) / o, u = s.y) : n & 2 ? (l = c.x, u = e.y + o * (c.x - e.x) / a) : n & 1 && (l = s.x, u = e.y + o * (s.x - e.x) / a), new E(l, u, i);
2355
2354
  }
2356
2355
  function Nn(e, t) {
2357
2356
  var n = 0;
@@ -2363,7 +2362,7 @@ var gt = { [R.dummyPointId]: {
2363
2362
  }
2364
2363
  function Fn(e, t, n, r) {
2365
2364
  var i = t.x, a = t.y, o = n.x - i, s = n.y - a, c = o * o + s * s, l;
2366
- return c > 0 && (l = ((e.x - i) * o + (e.y - a) * s) / c, l > 1 ? (i = n.x, a = n.y) : l > 0 && (i += o * l, a += s * l)), o = e.x - i, s = e.y - a, r ? o * o + s * s : new D(i, a);
2365
+ return c > 0 && (l = ((e.x - i) * o + (e.y - a) * s) / c, l > 1 ? (i = n.x, a = n.y) : l > 0 && (i += o * l, a += s * l)), o = e.x - i, s = e.y - a, r ? o * o + s * s : new E(i, a);
2367
2366
  }
2368
2367
  function In(e) {
2369
2368
  return !_(e[0]) || typeof e[0][0] != "object" && e[0][0] !== void 0;
@@ -2375,12 +2374,12 @@ var gt = { [R.dummyPointId]: {
2375
2374
  var n, r, i, a, o, s, c, l;
2376
2375
  if (!e || e.length === 0) throw Error("latlngs not passed");
2377
2376
  In(e) || (console.warn("latlngs are not flat! Only the first ring will be used"), e = e[0]);
2378
- var u = P([0, 0]), d = M(e);
2377
+ var u = N([0, 0]), d = j(e);
2379
2378
  d.getNorthWest().distanceTo(d.getSouthWest()) * d.getNorthEast().distanceTo(d.getNorthWest()) < 1700 && (u = Sn(e));
2380
2379
  var f = e.length, p = [];
2381
2380
  for (n = 0; n < f; n++) {
2382
- var m = P(e[n]);
2383
- p.push(t.project(P([m.lat - u.lat, m.lng - u.lng])));
2381
+ var m = N(e[n]);
2382
+ p.push(t.project(N([m.lat - u.lat, m.lng - u.lng])));
2384
2383
  }
2385
2384
  for (n = 0, r = 0; n < f - 1; n++) r += p[n].distanceTo(p[n + 1]) / 2;
2386
2385
  if (r === 0) l = p[0];
@@ -2388,8 +2387,8 @@ var gt = { [R.dummyPointId]: {
2388
2387
  c = (a - r) / i, l = [s.x - c * (s.x - o.x), s.y - c * (s.y - o.y)];
2389
2388
  break;
2390
2389
  }
2391
- var h = t.unproject(O(l));
2392
- return P([h.lat + u.lat, h.lng + u.lng]);
2390
+ var h = t.unproject(D(l));
2391
+ return N([h.lat + u.lat, h.lng + u.lng]);
2393
2392
  }
2394
2393
  var zn = {
2395
2394
  __proto__: null,
@@ -2405,43 +2404,43 @@ var gt = { [R.dummyPointId]: {
2405
2404
  polylineCenter: Rn
2406
2405
  }, Bn = {
2407
2406
  project: function(e) {
2408
- return new D(e.lng, e.lat);
2407
+ return new E(e.lng, e.lat);
2409
2408
  },
2410
2409
  unproject: function(e) {
2411
- return new N(e.y, e.x);
2410
+ return new M(e.y, e.x);
2412
2411
  },
2413
- bounds: new k([-180, -90], [180, 90])
2412
+ bounds: new O([-180, -90], [180, 90])
2414
2413
  }, Vn = {
2415
2414
  R: 6378137,
2416
2415
  R_MINOR: 6356752.314245179,
2417
- bounds: new k([-20037508.34279, -15496570.73972], [20037508.34279, 18764656.23138]),
2416
+ bounds: new O([-20037508.34279, -15496570.73972], [20037508.34279, 18764656.23138]),
2418
2417
  project: function(e) {
2419
2418
  var t = Math.PI / 180, n = this.R, r = e.lat * t, i = this.R_MINOR / n, a = Math.sqrt(1 - i * i), o = a * Math.sin(r), s = Math.tan(Math.PI / 4 - r / 2) / ((1 - o) / (1 + o)) ** (a / 2);
2420
- return r = -n * Math.log(Math.max(s, 1e-10)), new D(e.lng * t * n, r);
2419
+ return r = -n * Math.log(Math.max(s, 1e-10)), new E(e.lng * t * n, r);
2421
2420
  },
2422
2421
  unproject: function(e) {
2423
2422
  for (var t = 180 / Math.PI, n = this.R, r = this.R_MINOR / n, i = Math.sqrt(1 - r * r), a = Math.exp(-e.y / n), o = Math.PI / 2 - 2 * Math.atan(a), s = 0, c = .1, l; s < 15 && Math.abs(c) > 1e-7; s++) l = i * Math.sin(o), l = ((1 - l) / (1 + l)) ** (i / 2), c = Math.PI / 2 - 2 * Math.atan(a * l) - o, o += c;
2424
- return new N(o * t, e.x * t / n);
2423
+ return new M(o * t, e.x * t / n);
2425
2424
  }
2426
2425
  }, Hn = {
2427
2426
  __proto__: null,
2428
2427
  LonLat: Bn,
2429
2428
  Mercator: Vn,
2430
- SphericalMercator: le
2431
- }, Un = n({}, se, {
2429
+ SphericalMercator: ue
2430
+ }, Un = n({}, ce, {
2432
2431
  code: "EPSG:3395",
2433
2432
  projection: Vn,
2434
2433
  transformation: function() {
2435
2434
  var e = .5 / (Math.PI * Vn.R);
2436
- return de(e, .5, -e, .5);
2435
+ return P(e, .5, -e, .5);
2437
2436
  }()
2438
- }), Wn = n({}, se, {
2437
+ }), Wn = n({}, ce, {
2439
2438
  code: "EPSG:4326",
2440
2439
  projection: Bn,
2441
- transformation: de(1 / 180, 1, -1 / 180, .5)
2442
- }), Gn = n({}, oe, {
2440
+ transformation: P(1 / 180, 1, -1 / 180, .5)
2441
+ }), Gn = n({}, se, {
2443
2442
  projection: Bn,
2444
- transformation: de(1, 0, -1, 0),
2443
+ transformation: P(1, 0, -1, 0),
2445
2444
  scale: function(e) {
2446
2445
  return 2 ** e;
2447
2446
  },
@@ -2454,8 +2453,8 @@ var gt = { [R.dummyPointId]: {
2454
2453
  },
2455
2454
  infinite: !0
2456
2455
  });
2457
- oe.Earth = se, oe.EPSG3395 = Un, oe.EPSG3857 = fe, oe.EPSG900913 = pe, oe.EPSG4326 = Wn, oe.Simple = Gn;
2458
- var Kn = ie.extend({
2456
+ se.Earth = ce, se.EPSG3395 = Un, se.EPSG3857 = fe, se.EPSG900913 = pe, se.EPSG4326 = Wn, se.Simple = Gn;
2457
+ var Kn = T.extend({
2459
2458
  options: {
2460
2459
  pane: "overlayPane",
2461
2460
  attribution: null,
@@ -2599,7 +2598,7 @@ var gt = { [R.dummyPointId]: {
2599
2598
  return this.invoke("bringToBack");
2600
2599
  },
2601
2600
  getBounds: function() {
2602
- var e = new j();
2601
+ var e = new A();
2603
2602
  for (var t in this._layers) {
2604
2603
  var n = this._layers[t];
2605
2604
  e.extend(n.getBounds ? n.getBounds() : n.getLatLng());
@@ -2608,7 +2607,7 @@ var gt = { [R.dummyPointId]: {
2608
2607
  }
2609
2608
  }), Xn = function(e, t) {
2610
2609
  return new Yn(e, t);
2611
- }, Zn = T.extend({
2610
+ }, Zn = ae.extend({
2612
2611
  options: {
2613
2612
  popupAnchor: [0, 0],
2614
2613
  tooltipAnchor: [0, 0],
@@ -2635,14 +2634,14 @@ var gt = { [R.dummyPointId]: {
2635
2634
  _setIconStyles: function(e, t) {
2636
2635
  var n = this.options, r = n[t + "Size"];
2637
2636
  typeof r == "number" && (r = [r, r]);
2638
- var i = O(r), a = O(t === "shadow" && n.shadowAnchor || n.iconAnchor || i && i.divideBy(2, !0));
2637
+ var i = D(r), a = D(t === "shadow" && n.shadowAnchor || n.iconAnchor || i && i.divideBy(2, !0));
2639
2638
  e.className = "leaflet-marker-" + t + " " + (n.className || ""), a && (e.style.marginLeft = -a.x + "px", e.style.marginTop = -a.y + "px"), i && (e.style.width = i.x + "px", e.style.height = i.y + "px");
2640
2639
  },
2641
2640
  _createImg: function(e, t) {
2642
2641
  return t ||= document.createElement("img"), t.src = e, t;
2643
2642
  },
2644
2643
  _getIconUrl: function(e) {
2645
- return F.retina && this.options[e + "RetinaUrl"] || this.options[e + "Url"];
2644
+ return I.retina && this.options[e + "RetinaUrl"] || this.options[e + "Url"];
2646
2645
  }
2647
2646
  });
2648
2647
  function Qn(e) {
@@ -2670,7 +2669,7 @@ var gt = { [R.dummyPointId]: {
2670
2669
  return e = t(e, /^url\((['"])?(.+)\1\)$/, 2), e && t(e, /^(.*)marker-icon\.png$/, 1);
2671
2670
  },
2672
2671
  _detectIconPath: function() {
2673
- var e = z("div", "leaflet-default-icon-path", document.body), t = St(e, "background-image") || St(e, "backgroundImage");
2672
+ var e = B("div", "leaflet-default-icon-path", document.body), t = xt(e, "background-image") || xt(e, "backgroundImage");
2674
2673
  if (document.body.removeChild(e), t = this._stripUrl(t), t) return t;
2675
2674
  var n = document.querySelector("link[href$=\"leaflet.css\"]");
2676
2675
  return n ? n.href.substring(0, n.href.length - 11 - 1) : "";
@@ -2686,7 +2685,7 @@ var gt = { [R.dummyPointId]: {
2686
2685
  predrag: this._onPreDrag,
2687
2686
  drag: this._onDrag,
2688
2687
  dragend: this._onDragEnd
2689
- }, this).enable(), V(e, "leaflet-marker-draggable");
2688
+ }, this).enable(), H(e, "leaflet-marker-draggable");
2690
2689
  },
2691
2690
  removeHooks: function() {
2692
2691
  this._draggable.off({
@@ -2694,30 +2693,30 @@ var gt = { [R.dummyPointId]: {
2694
2693
  predrag: this._onPreDrag,
2695
2694
  drag: this._onDrag,
2696
2695
  dragend: this._onDragEnd
2697
- }, this).disable(), this._marker._icon && H(this._marker._icon, "leaflet-marker-draggable");
2696
+ }, this).disable(), this._marker._icon && U(this._marker._icon, "leaflet-marker-draggable");
2698
2697
  },
2699
2698
  moved: function() {
2700
2699
  return this._draggable && this._draggable._moved;
2701
2700
  },
2702
2701
  _adjustPan: function(e) {
2703
- var t = this._marker, n = t._map, r = this._marker.options.autoPanSpeed, i = this._marker.options.autoPanPadding, a = jt(t._icon), o = n.getPixelBounds(), s = n.getPixelOrigin(), c = A(o.min._subtract(s).add(i), o.max._subtract(s).subtract(i));
2702
+ var t = this._marker, n = t._map, r = this._marker.options.autoPanSpeed, i = this._marker.options.autoPanPadding, a = jt(t._icon), o = n.getPixelBounds(), s = n.getPixelOrigin(), c = k(o.min._subtract(s).add(i), o.max._subtract(s).subtract(i));
2704
2703
  if (!c.contains(a)) {
2705
- var l = O((Math.max(c.max.x, a.x) - c.max.x) / (o.max.x - c.max.x) - (Math.min(c.min.x, a.x) - c.min.x) / (o.min.x - c.min.x), (Math.max(c.max.y, a.y) - c.max.y) / (o.max.y - c.max.y) - (Math.min(c.min.y, a.y) - c.min.y) / (o.min.y - c.min.y)).multiplyBy(r);
2706
- n.panBy(l, { animate: !1 }), this._draggable._newPos._add(l), this._draggable._startPos._add(l), G(t._icon, this._draggable._newPos), this._onDrag(e), this._panRequest = S(this._adjustPan.bind(this, e));
2704
+ var l = D((Math.max(c.max.x, a.x) - c.max.x) / (o.max.x - c.max.x) - (Math.min(c.min.x, a.x) - c.min.x) / (o.min.x - c.min.x), (Math.max(c.max.y, a.y) - c.max.y) / (o.max.y - c.max.y) - (Math.min(c.min.y, a.y) - c.min.y) / (o.min.y - c.min.y)).multiplyBy(r);
2705
+ n.panBy(l, { animate: !1 }), this._draggable._newPos._add(l), this._draggable._startPos._add(l), G(t._icon, this._draggable._newPos), this._onDrag(e), this._panRequest = x(this._adjustPan.bind(this, e));
2707
2706
  }
2708
2707
  },
2709
2708
  _onDragStart: function() {
2710
2709
  this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup && this._marker.closePopup(), this._marker.fire("movestart").fire("dragstart");
2711
2710
  },
2712
2711
  _onPreDrag: function(e) {
2713
- this._marker.options.autoPan && (C(this._panRequest), this._panRequest = S(this._adjustPan.bind(this, e)));
2712
+ this._marker.options.autoPan && (S(this._panRequest), this._panRequest = x(this._adjustPan.bind(this, e)));
2714
2713
  },
2715
2714
  _onDrag: function(e) {
2716
2715
  var t = this._marker, n = t._shadow, r = jt(t._icon), i = t._map.layerPointToLatLng(r);
2717
2716
  n && G(n, r), t._latlng = i, e.latlng = i, e.oldLatLng = this._oldLatLng, t.fire("move", e).fire("drag", e);
2718
2717
  },
2719
2718
  _onDragEnd: function(e) {
2720
- C(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", e);
2719
+ S(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", e);
2721
2720
  }
2722
2721
  }), tr = Kn.extend({
2723
2722
  options: {
@@ -2740,7 +2739,7 @@ var gt = { [R.dummyPointId]: {
2740
2739
  autoPanSpeed: 10
2741
2740
  },
2742
2741
  initialize: function(e, t) {
2743
- p(this, t), this._latlng = P(e);
2742
+ p(this, t), this._latlng = N(e);
2744
2743
  },
2745
2744
  onAdd: function(e) {
2746
2745
  this._zoomAnimated = this._zoomAnimated && e.options.markerZoomAnimation, this._zoomAnimated && e.on("zoomanim", this._animateZoom, this), this._initIcon(), this.update();
@@ -2759,7 +2758,7 @@ var gt = { [R.dummyPointId]: {
2759
2758
  },
2760
2759
  setLatLng: function(e) {
2761
2760
  var t = this._latlng;
2762
- return this._latlng = P(e), this.update(), this.fire("move", {
2761
+ return this._latlng = N(e), this.update(), this.fire("move", {
2763
2762
  oldLatLng: t,
2764
2763
  latlng: this._latlng
2765
2764
  });
@@ -2785,21 +2784,21 @@ var gt = { [R.dummyPointId]: {
2785
2784
  },
2786
2785
  _initIcon: function() {
2787
2786
  var e = this.options, t = "leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide"), n = e.icon.createIcon(this._icon), r = !1;
2788
- n !== this._icon && (this._icon && this._removeIcon(), r = !0, e.title && (n.title = e.title), n.tagName === "IMG" && (n.alt = e.alt || "")), V(n, t), e.keyboard && (n.tabIndex = "0", n.setAttribute("role", "button")), this._icon = n, e.riseOnHover && this.on({
2787
+ n !== this._icon && (this._icon && this._removeIcon(), r = !0, e.title && (n.title = e.title), n.tagName === "IMG" && (n.alt = e.alt || "")), H(n, t), e.keyboard && (n.tabIndex = "0", n.setAttribute("role", "button")), this._icon = n, e.riseOnHover && this.on({
2789
2788
  mouseover: this._bringToFront,
2790
2789
  mouseout: this._resetZIndex
2791
2790
  }), this.options.autoPanOnFocus && K(n, "focus", this._panOnFocus, this);
2792
2791
  var i = e.icon.createShadow(this._shadow), a = !1;
2793
- i !== this._shadow && (this._removeShadow(), a = !0), i && (V(i, t), i.alt = ""), this._shadow = i, e.opacity < 1 && this._updateOpacity(), r && this.getPane().appendChild(this._icon), this._initInteraction(), i && a && this.getPane(e.shadowPane).appendChild(this._shadow);
2792
+ i !== this._shadow && (this._removeShadow(), a = !0), i && (H(i, t), i.alt = ""), this._shadow = i, e.opacity < 1 && this._updateOpacity(), r && this.getPane().appendChild(this._icon), this._initInteraction(), i && a && this.getPane(e.shadowPane).appendChild(this._shadow);
2794
2793
  },
2795
2794
  _removeIcon: function() {
2796
2795
  this.options.riseOnHover && this.off({
2797
2796
  mouseover: this._bringToFront,
2798
2797
  mouseout: this._resetZIndex
2799
- }), this.options.autoPanOnFocus && q(this._icon, "focus", this._panOnFocus, this), B(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null;
2798
+ }), this.options.autoPanOnFocus && q(this._icon, "focus", this._panOnFocus, this), V(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null;
2800
2799
  },
2801
2800
  _removeShadow: function() {
2802
- this._shadow && B(this._shadow), this._shadow = null;
2801
+ this._shadow && V(this._shadow), this._shadow = null;
2803
2802
  },
2804
2803
  _setPos: function(e) {
2805
2804
  this._icon && G(this._icon, e), this._shadow && G(this._shadow, e), this._zIndex = e.y + this.options.zIndexOffset, this._resetZIndex();
@@ -2812,7 +2811,7 @@ var gt = { [R.dummyPointId]: {
2812
2811
  this._setPos(t);
2813
2812
  },
2814
2813
  _initInteraction: function() {
2815
- if (this.options.interactive && (V(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), er)) {
2814
+ if (this.options.interactive && (H(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), er)) {
2816
2815
  var e = this.options.draggable;
2817
2816
  this.dragging && (e = this.dragging.enabled(), this.dragging.disable()), this.dragging = new er(this), e && this.dragging.enable();
2818
2817
  }
@@ -2822,7 +2821,7 @@ var gt = { [R.dummyPointId]: {
2822
2821
  },
2823
2822
  _updateOpacity: function() {
2824
2823
  var e = this.options.opacity;
2825
- this._icon && U(this._icon, e), this._shadow && U(this._shadow, e);
2824
+ this._icon && Ot(this._icon, e), this._shadow && Ot(this._shadow, e);
2826
2825
  },
2827
2826
  _bringToFront: function() {
2828
2827
  this._updateZIndex(this.options.riseOffset);
@@ -2833,7 +2832,7 @@ var gt = { [R.dummyPointId]: {
2833
2832
  _panOnFocus: function() {
2834
2833
  var e = this._map;
2835
2834
  if (e) {
2836
- var t = this.options.icon.options, n = t.iconSize ? O(t.iconSize) : O(0, 0), r = t.iconAnchor ? O(t.iconAnchor) : O(0, 0);
2835
+ var t = this.options.icon.options, n = t.iconSize ? D(t.iconSize) : D(0, 0), r = t.iconAnchor ? D(t.iconAnchor) : D(0, 0);
2837
2836
  e.panInside(this._latlng, {
2838
2837
  paddingTopLeft: r,
2839
2838
  paddingBottomRight: n.subtract(r)
@@ -2903,11 +2902,11 @@ var gt = { [R.dummyPointId]: {
2903
2902
  radius: 10
2904
2903
  },
2905
2904
  initialize: function(e, t) {
2906
- p(this, t), this._latlng = P(e), this._radius = this.options.radius;
2905
+ p(this, t), this._latlng = N(e), this._radius = this.options.radius;
2907
2906
  },
2908
2907
  setLatLng: function(e) {
2909
2908
  var t = this._latlng;
2910
- return this._latlng = P(e), this.redraw(), this.fire("move", {
2909
+ return this._latlng = N(e), this.redraw(), this.fire("move", {
2911
2910
  oldLatLng: t,
2912
2911
  latlng: this._latlng
2913
2912
  });
@@ -2930,7 +2929,7 @@ var gt = { [R.dummyPointId]: {
2930
2929
  },
2931
2930
  _updateBounds: function() {
2932
2931
  var e = this._radius, t = this._radiusY || e, n = this._clickTolerance(), r = [e + n, t + n];
2933
- this._pxBounds = new k(this._point.subtract(r), this._point.add(r));
2932
+ this._pxBounds = new O(this._point.subtract(r), this._point.add(r));
2934
2933
  },
2935
2934
  _update: function() {
2936
2935
  this._map && this._updatePath();
@@ -2950,7 +2949,7 @@ var gt = { [R.dummyPointId]: {
2950
2949
  }
2951
2950
  var or = ir.extend({
2952
2951
  initialize: function(e, t, r) {
2953
- if (typeof t == "number" && (t = n({}, r, { radius: t })), p(this, t), this._latlng = P(e), isNaN(this.options.radius)) throw Error("Circle radius cannot be NaN");
2952
+ if (typeof t == "number" && (t = n({}, r, { radius: t })), p(this, t), this._latlng = N(e), isNaN(this.options.radius)) throw Error("Circle radius cannot be NaN");
2954
2953
  this._mRadius = this.options.radius;
2955
2954
  },
2956
2955
  setRadius: function(e) {
@@ -2961,13 +2960,13 @@ var gt = { [R.dummyPointId]: {
2961
2960
  },
2962
2961
  getBounds: function() {
2963
2962
  var e = [this._radius, this._radiusY || this._radius];
2964
- return new j(this._map.layerPointToLatLng(this._point.subtract(e)), this._map.layerPointToLatLng(this._point.add(e)));
2963
+ return new A(this._map.layerPointToLatLng(this._point.subtract(e)), this._map.layerPointToLatLng(this._point.add(e)));
2965
2964
  },
2966
2965
  setStyle: rr.prototype.setStyle,
2967
2966
  _project: function() {
2968
2967
  var e = this._latlng.lng, t = this._latlng.lat, n = this._map, r = n.options.crs;
2969
- if (r.distance === se.distance) {
2970
- var i = Math.PI / 180, a = this._mRadius / se.R / i, o = n.project([t + a, e]), s = n.project([t - a, e]), c = o.add(s).divideBy(2), l = n.unproject(c).lat, u = Math.acos((Math.cos(a * i) - Math.sin(t * i) * Math.sin(l * i)) / (Math.cos(t * i) * Math.cos(l * i))) / i;
2968
+ if (r.distance === ce.distance) {
2969
+ var i = Math.PI / 180, a = this._mRadius / ce.R / i, o = n.project([t + a, e]), s = n.project([t - a, e]), c = o.add(s).divideBy(2), l = n.unproject(c).lat, u = Math.acos((Math.cos(a * i) - Math.sin(t * i) * Math.sin(l * i)) / (Math.cos(t * i) * Math.cos(l * i))) / i;
2971
2970
  (isNaN(u) || u === 0) && (u = a / Math.cos(Math.PI / 180 * t)), this._point = c.subtract(n.getPixelOrigin()), this._radius = isNaN(u) ? 0 : c.x - n.project([l, e - u]).x, this._radiusY = c.y - o.y;
2972
2971
  } else {
2973
2972
  var d = r.unproject(r.project(this._latlng).subtract([this._mRadius, 0]));
@@ -3012,28 +3011,28 @@ var gt = { [R.dummyPointId]: {
3012
3011
  return this._bounds;
3013
3012
  },
3014
3013
  addLatLng: function(e, t) {
3015
- return t ||= this._defaultShape(), e = P(e), t.push(e), this._bounds.extend(e), this.redraw();
3014
+ return t ||= this._defaultShape(), e = N(e), t.push(e), this._bounds.extend(e), this.redraw();
3016
3015
  },
3017
3016
  _setLatLngs: function(e) {
3018
- this._bounds = new j(), this._latlngs = this._convertLatLngs(e);
3017
+ this._bounds = new A(), this._latlngs = this._convertLatLngs(e);
3019
3018
  },
3020
3019
  _defaultShape: function() {
3021
3020
  return In(this._latlngs) ? this._latlngs : this._latlngs[0];
3022
3021
  },
3023
3022
  _convertLatLngs: function(e) {
3024
- for (var t = [], n = In(e), r = 0, i = e.length; r < i; r++) n ? (t[r] = P(e[r]), this._bounds.extend(t[r])) : t[r] = this._convertLatLngs(e[r]);
3023
+ for (var t = [], n = In(e), r = 0, i = e.length; r < i; r++) n ? (t[r] = N(e[r]), this._bounds.extend(t[r])) : t[r] = this._convertLatLngs(e[r]);
3025
3024
  return t;
3026
3025
  },
3027
3026
  _project: function() {
3028
- var e = new k();
3027
+ var e = new O();
3029
3028
  this._rings = [], this._projectLatlngs(this._latlngs, this._rings, e), this._bounds.isValid() && e.isValid() && (this._rawPxBounds = e, this._updateBounds());
3030
3029
  },
3031
3030
  _updateBounds: function() {
3032
- var e = this._clickTolerance(), t = new D(e, e);
3033
- this._rawPxBounds && (this._pxBounds = new k([this._rawPxBounds.min.subtract(t), this._rawPxBounds.max.add(t)]));
3031
+ var e = this._clickTolerance(), t = new E(e, e);
3032
+ this._rawPxBounds && (this._pxBounds = new O([this._rawPxBounds.min.subtract(t), this._rawPxBounds.max.add(t)]));
3034
3033
  },
3035
3034
  _projectLatlngs: function(e, t, n) {
3036
- var r = e[0] instanceof N, i = e.length, a, o;
3035
+ var r = e[0] instanceof M, i = e.length, a, o;
3037
3036
  if (r) {
3038
3037
  for (o = [], a = 0; a < i; a++) o[a] = this._map.latLngToLayerPoint(e[a]), n.extend(o[a]);
3039
3038
  t.push(o);
@@ -3081,7 +3080,7 @@ var gt = { [R.dummyPointId]: {
3081
3080
  },
3082
3081
  _convertLatLngs: function(e) {
3083
3082
  var t = cr.prototype._convertLatLngs.call(this, e), n = t.length;
3084
- return n >= 2 && t[0] instanceof N && t[0].equals(t[n - 1]) && t.pop(), t;
3083
+ return n >= 2 && t[0] instanceof M && t[0].equals(t[n - 1]) && t.pop(), t;
3085
3084
  },
3086
3085
  _setLatLngs: function(e) {
3087
3086
  cr.prototype._setLatLngs.call(this, e), In(this._latlngs) && (this._latlngs = [this._latlngs]);
@@ -3090,8 +3089,8 @@ var gt = { [R.dummyPointId]: {
3090
3089
  return In(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
3091
3090
  },
3092
3091
  _clipPoints: function() {
3093
- var e = this._renderer._bounds, t = this.options.weight, n = new D(t, t);
3094
- if (e = new k(e.min.subtract(n), e.max.add(n)), this._parts = [], !(!this._pxBounds || !this._pxBounds.intersects(e))) {
3092
+ var e = this._renderer._bounds, t = this.options.weight, n = new E(t, t);
3093
+ if (e = new O(e.min.subtract(n), e.max.add(n)), this._parts = [], !(!this._pxBounds || !this._pxBounds.intersects(e))) {
3095
3094
  if (this.options.noClip) {
3096
3095
  this._parts = this._rings;
3097
3096
  return;
@@ -3174,14 +3173,14 @@ var gt = { [R.dummyPointId]: {
3174
3173
  return e ? e(t, n) : new tr(n, r && r.markersInheritOptions && r);
3175
3174
  }
3176
3175
  function hr(e) {
3177
- return new N(e[1], e[0], e[2]);
3176
+ return new M(e[1], e[0], e[2]);
3178
3177
  }
3179
3178
  function gr(e, t, n) {
3180
3179
  for (var r = [], i = 0, a = e.length, o; i < a; i++) o = t ? gr(e[i], t - 1, n) : (n || hr)(e[i]), r.push(o);
3181
3180
  return r;
3182
3181
  }
3183
3182
  function _r(e, t) {
3184
- return e = P(e), e.alt === void 0 ? [u(e.lng, t), u(e.lat, t)] : [
3183
+ return e = N(e), e.alt === void 0 ? [u(e.lng, t), u(e.lat, t)] : [
3185
3184
  u(e.lng, t),
3186
3185
  u(e.lat, t),
3187
3186
  u(e.alt, t)
@@ -3265,13 +3264,13 @@ var gt = { [R.dummyPointId]: {
3265
3264
  className: ""
3266
3265
  },
3267
3266
  initialize: function(e, t, n) {
3268
- this._url = e, this._bounds = M(t), p(this, n);
3267
+ this._url = e, this._bounds = j(t), p(this, n);
3269
3268
  },
3270
3269
  onAdd: function() {
3271
- this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (V(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
3270
+ this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (H(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
3272
3271
  },
3273
3272
  onRemove: function() {
3274
- B(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
3273
+ V(this._image), this.options.interactive && this.removeInteractiveTarget(this._image);
3275
3274
  },
3276
3275
  setOpacity: function(e) {
3277
3276
  return this.options.opacity = e, this._image && this._updateOpacity(), this;
@@ -3280,16 +3279,16 @@ var gt = { [R.dummyPointId]: {
3280
3279
  return e.opacity && this.setOpacity(e.opacity), this;
3281
3280
  },
3282
3281
  bringToFront: function() {
3283
- return this._map && wt(this._image), this;
3282
+ return this._map && Ct(this._image), this;
3284
3283
  },
3285
3284
  bringToBack: function() {
3286
- return this._map && Tt(this._image), this;
3285
+ return this._map && wt(this._image), this;
3287
3286
  },
3288
3287
  setUrl: function(e) {
3289
3288
  return this._url = e, this._image && (this._image.src = e), this;
3290
3289
  },
3291
3290
  setBounds: function(e) {
3292
- return this._bounds = M(e), this._map && this._reset(), this;
3291
+ return this._bounds = j(e), this._map && this._reset(), this;
3293
3292
  },
3294
3293
  getEvents: function() {
3295
3294
  var e = {
@@ -3308,8 +3307,8 @@ var gt = { [R.dummyPointId]: {
3308
3307
  return this._image;
3309
3308
  },
3310
3309
  _initImage: function() {
3311
- var e = this._url.tagName === "IMG", t = this._image = e ? this._url : z("img");
3312
- if (V(t, "leaflet-image-layer"), this._zoomAnimated && V(t, "leaflet-zoom-animated"), this.options.className && V(t, this.options.className), t.onselectstart = l, t.onmousemove = l, t.onload = i(this.fire, this, "load"), t.onerror = i(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (t.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), e) {
3310
+ var e = this._url.tagName === "IMG", t = this._image = e ? this._url : B("img");
3311
+ if (H(t, "leaflet-image-layer"), this._zoomAnimated && H(t, "leaflet-zoom-animated"), this.options.className && H(t, this.options.className), t.onselectstart = l, t.onmousemove = l, t.onload = i(this.fire, this, "load"), t.onerror = i(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (t.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), e) {
3313
3312
  this._url = t.src;
3314
3313
  return;
3315
3314
  }
@@ -3320,11 +3319,11 @@ var gt = { [R.dummyPointId]: {
3320
3319
  At(this._image, n, t);
3321
3320
  },
3322
3321
  _reset: function() {
3323
- var e = this._image, t = new k(this._map.latLngToLayerPoint(this._bounds.getNorthWest()), this._map.latLngToLayerPoint(this._bounds.getSouthEast())), n = t.getSize();
3322
+ var e = this._image, t = new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()), this._map.latLngToLayerPoint(this._bounds.getSouthEast())), n = t.getSize();
3324
3323
  G(e, t.min), e.style.width = n.x + "px", e.style.height = n.y + "px";
3325
3324
  },
3326
3325
  _updateOpacity: function() {
3327
- U(this._image, this.options.opacity);
3326
+ Ot(this._image, this.options.opacity);
3328
3327
  },
3329
3328
  _updateZIndex: function() {
3330
3329
  this._image && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._image.style.zIndex = this.options.zIndex);
@@ -3348,15 +3347,15 @@ var gt = { [R.dummyPointId]: {
3348
3347
  playsInline: !0
3349
3348
  },
3350
3349
  _initImage: function() {
3351
- var e = this._url.tagName === "VIDEO", t = this._image = e ? this._url : z("video");
3352
- if (V(t, "leaflet-image-layer"), this._zoomAnimated && V(t, "leaflet-zoom-animated"), this.options.className && V(t, this.options.className), t.onselectstart = l, t.onmousemove = l, t.onloadeddata = i(this.fire, this, "load"), e) {
3350
+ var e = this._url.tagName === "VIDEO", t = this._image = e ? this._url : B("video");
3351
+ if (H(t, "leaflet-image-layer"), this._zoomAnimated && H(t, "leaflet-zoom-animated"), this.options.className && H(t, this.options.className), t.onselectstart = l, t.onmousemove = l, t.onloadeddata = i(this.fire, this, "load"), e) {
3353
3352
  for (var n = t.getElementsByTagName("source"), r = [], a = 0; a < n.length; a++) r.push(n[a].src);
3354
3353
  this._url = n.length > 0 ? r : [t.src];
3355
3354
  return;
3356
3355
  }
3357
3356
  _(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(t.style, "objectFit") && (t.style.objectFit = "fill"), t.autoplay = !!this.options.autoplay, t.loop = !!this.options.loop, t.muted = !!this.options.muted, t.playsInline = !!this.options.playsInline;
3358
3357
  for (var o = 0; o < this._url.length; o++) {
3359
- var s = z("source");
3358
+ var s = B("source");
3360
3359
  s.src = this._url[o], t.appendChild(s);
3361
3360
  }
3362
3361
  }
@@ -3366,7 +3365,7 @@ var gt = { [R.dummyPointId]: {
3366
3365
  }
3367
3366
  var Or = wr.extend({ _initImage: function() {
3368
3367
  var e = this._image = this._url;
3369
- V(e, "leaflet-image-layer"), this._zoomAnimated && V(e, "leaflet-zoom-animated"), this.options.className && V(e, this.options.className), e.onselectstart = l, e.onmousemove = l;
3368
+ H(e, "leaflet-image-layer"), this._zoomAnimated && H(e, "leaflet-zoom-animated"), this.options.className && H(e, this.options.className), e.onselectstart = l, e.onmousemove = l;
3370
3369
  } });
3371
3370
  function kr(e, t, n) {
3372
3371
  return new Or(e, t, n);
@@ -3380,7 +3379,7 @@ var gt = { [R.dummyPointId]: {
3380
3379
  content: ""
3381
3380
  },
3382
3381
  initialize: function(e, t) {
3383
- e && (e instanceof N || _(e)) ? (this._latlng = P(e), p(this, t)) : (p(this, e), this._source = t), this.options.content && (this._content = this.options.content);
3382
+ e && (e instanceof M || _(e)) ? (this._latlng = N(e), p(this, t)) : (p(this, e), this._source = t), this.options.content && (this._content = this.options.content);
3384
3383
  },
3385
3384
  openOn: function(e) {
3386
3385
  return e = arguments.length ? e : this._source._map, e.hasLayer(this) || e.addLayer(this), this;
@@ -3392,16 +3391,16 @@ var gt = { [R.dummyPointId]: {
3392
3391
  return this._map ? this.close() : (arguments.length ? this._source = e : e = this._source, this._prepareOpen(), this.openOn(e._map)), this;
3393
3392
  },
3394
3393
  onAdd: function(e) {
3395
- this._zoomAnimated = e._zoomAnimated, this._container || this._initLayout(), e._fadeAnimated && U(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), e._fadeAnimated && U(this._container, 1), this.bringToFront(), this.options.interactive && (V(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
3394
+ this._zoomAnimated = e._zoomAnimated, this._container || this._initLayout(), e._fadeAnimated && Ot(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), e._fadeAnimated && Ot(this._container, 1), this.bringToFront(), this.options.interactive && (H(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
3396
3395
  },
3397
3396
  onRemove: function(e) {
3398
- e._fadeAnimated ? (U(this._container, 0), this._removeTimeout = setTimeout(i(B, void 0, this._container), 200)) : B(this._container), this.options.interactive && (H(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
3397
+ e._fadeAnimated ? (Ot(this._container, 0), this._removeTimeout = setTimeout(i(V, void 0, this._container), 200)) : V(this._container), this.options.interactive && (U(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
3399
3398
  },
3400
3399
  getLatLng: function() {
3401
3400
  return this._latlng;
3402
3401
  },
3403
3402
  setLatLng: function(e) {
3404
- return this._latlng = P(e), this._map && (this._updatePosition(), this._adjustPan()), this;
3403
+ return this._latlng = N(e), this._map && (this._updatePosition(), this._adjustPan()), this;
3405
3404
  },
3406
3405
  getContent: function() {
3407
3406
  return this._content;
@@ -3426,10 +3425,10 @@ var gt = { [R.dummyPointId]: {
3426
3425
  return !!this._map && this._map.hasLayer(this);
3427
3426
  },
3428
3427
  bringToFront: function() {
3429
- return this._map && wt(this._container), this;
3428
+ return this._map && Ct(this._container), this;
3430
3429
  },
3431
3430
  bringToBack: function() {
3432
- return this._map && Tt(this._container), this;
3431
+ return this._map && wt(this._container), this;
3433
3432
  },
3434
3433
  _prepareOpen: function(e) {
3435
3434
  var t = this._source;
@@ -3463,7 +3462,7 @@ var gt = { [R.dummyPointId]: {
3463
3462
  },
3464
3463
  _updatePosition: function() {
3465
3464
  if (this._map) {
3466
- var e = this._map.latLngToLayerPoint(this._latlng), t = O(this.options.offset), n = this._getAnchor();
3465
+ var e = this._map.latLngToLayerPoint(this._latlng), t = D(this.options.offset), n = this._getAnchor();
3467
3466
  this._zoomAnimated ? G(this._container, e.add(n)) : t = t.add(e).add(n);
3468
3467
  var r = this._containerBottom = -t.y, i = this._containerLeft = -Math.round(this._containerWidth / 2) + t.x;
3469
3468
  this._container.style.bottom = r + "px", this._container.style.left = i + "px";
@@ -3511,9 +3510,9 @@ var gt = { [R.dummyPointId]: {
3511
3510
  return (this.options.closeOnClick === void 0 ? this._map.options.closePopupOnClick : this.options.closeOnClick) && (e.preclick = this.close), this.options.keepInView && (e.moveend = this._adjustPan), e;
3512
3511
  },
3513
3512
  _initLayout: function() {
3514
- var e = "leaflet-popup", t = this._container = z("div", e + " " + (this.options.className || "") + " leaflet-zoom-animated"), n = this._wrapper = z("div", e + "-content-wrapper", t);
3515
- if (this._contentNode = z("div", e + "-content", n), Zt(t), Xt(this._contentNode), K(t, "contextmenu", J), this._tipContainer = z("div", e + "-tip-container", t), this._tip = z("div", e + "-tip", this._tipContainer), this.options.closeButton) {
3516
- var r = this._closeButton = z("a", e + "-close-button", t);
3513
+ var e = "leaflet-popup", t = this._container = B("div", e + " " + (this.options.className || "") + " leaflet-zoom-animated"), n = this._wrapper = B("div", e + "-content-wrapper", t);
3514
+ if (this._contentNode = B("div", e + "-content", n), Zt(t), Xt(this._contentNode), K(t, "contextmenu", J), this._tipContainer = B("div", e + "-tip-container", t), this._tip = B("div", e + "-tip", this._tipContainer), this.options.closeButton) {
3515
+ var r = this._closeButton = B("a", e + "-close-button", t);
3517
3516
  r.setAttribute("role", "button"), r.setAttribute("aria-label", "Close popup"), r.href = "#close", r.innerHTML = "<span aria-hidden=\"true\">&#215;</span>", K(r, "click", function(e) {
3518
3517
  Y(e), this.close();
3519
3518
  }, this);
@@ -3525,7 +3524,7 @@ var gt = { [R.dummyPointId]: {
3525
3524
  var n = e.offsetWidth;
3526
3525
  n = Math.min(n, this.options.maxWidth), n = Math.max(n, this.options.minWidth), t.width = n + 1 + "px", t.whiteSpace = "", t.height = "";
3527
3526
  var r = e.offsetHeight, i = this.options.maxHeight, a = "leaflet-popup-scrolled";
3528
- i && r > i ? (t.height = i + "px", V(e, a)) : H(e, a), this._containerWidth = this._container.offsetWidth;
3527
+ i && r > i ? (t.height = i + "px", H(e, a)) : U(e, a), this._containerWidth = this._container.offsetWidth;
3529
3528
  },
3530
3529
  _animateZoom: function(e) {
3531
3530
  var t = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center), n = this._getAnchor();
@@ -3537,14 +3536,14 @@ var gt = { [R.dummyPointId]: {
3537
3536
  this._autopanning = !1;
3538
3537
  return;
3539
3538
  }
3540
- var e = this._map, t = parseInt(St(this._container, "marginBottom"), 10) || 0, n = this._container.offsetHeight + t, r = this._containerWidth, i = new D(this._containerLeft, -n - this._containerBottom);
3539
+ var e = this._map, t = parseInt(xt(this._container, "marginBottom"), 10) || 0, n = this._container.offsetHeight + t, r = this._containerWidth, i = new E(this._containerLeft, -n - this._containerBottom);
3541
3540
  i._add(jt(this._container));
3542
- var a = e.layerPointToContainerPoint(i), o = O(this.options.autoPanPadding), s = O(this.options.autoPanPaddingTopLeft || o), c = O(this.options.autoPanPaddingBottomRight || o), l = e.getSize(), u = 0, d = 0;
3541
+ var a = e.layerPointToContainerPoint(i), o = D(this.options.autoPanPadding), s = D(this.options.autoPanPaddingTopLeft || o), c = D(this.options.autoPanPaddingBottomRight || o), l = e.getSize(), u = 0, d = 0;
3543
3542
  a.x + r + c.x > l.x && (u = a.x + r - l.x + c.x), a.x - u - s.x < 0 && (u = a.x - s.x), a.y + n + c.y > l.y && (d = a.y + n - l.y + c.y), a.y - d - s.y < 0 && (d = a.y - s.y), (u || d) && (this.options.keepInView && (this._autopanning = !0), e.fire("autopanstart").panBy([u, d]));
3544
3543
  }
3545
3544
  },
3546
3545
  _getAnchor: function() {
3547
- return O(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
3546
+ return D(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
3548
3547
  }
3549
3548
  }), Mr = function(e, t) {
3550
3549
  return new jr(e, t);
@@ -3630,27 +3629,27 @@ var gt = { [R.dummyPointId]: {
3630
3629
  },
3631
3630
  _initLayout: function() {
3632
3631
  var e = "leaflet-tooltip " + (this.options.className || "") + " leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide");
3633
- this._contentNode = this._container = z("div", e), this._container.setAttribute("role", "tooltip"), this._container.setAttribute("id", "leaflet-tooltip-" + o(this));
3632
+ this._contentNode = this._container = B("div", e), this._container.setAttribute("role", "tooltip"), this._container.setAttribute("id", "leaflet-tooltip-" + o(this));
3634
3633
  },
3635
3634
  _updateLayout: function() {},
3636
3635
  _adjustPan: function() {},
3637
3636
  _setPosition: function(e) {
3638
- var t, n, r = this._map, i = this._container, a = r.latLngToContainerPoint(r.getCenter()), o = r.layerPointToContainerPoint(e), s = this.options.direction, c = i.offsetWidth, l = i.offsetHeight, u = O(this.options.offset), d = this._getAnchor();
3639
- s === "top" ? (t = c / 2, n = l) : s === "bottom" ? (t = c / 2, n = 0) : s === "center" ? (t = c / 2, n = l / 2) : s === "right" ? (t = 0, n = l / 2) : s === "left" ? (t = c, n = l / 2) : o.x < a.x ? (s = "right", t = 0, n = l / 2) : (s = "left", t = c + (u.x + d.x) * 2, n = l / 2), e = e.subtract(O(t, n, !0)).add(u).add(d), H(i, "leaflet-tooltip-right"), H(i, "leaflet-tooltip-left"), H(i, "leaflet-tooltip-top"), H(i, "leaflet-tooltip-bottom"), V(i, "leaflet-tooltip-" + s), G(i, e);
3637
+ var t, n, r = this._map, i = this._container, a = r.latLngToContainerPoint(r.getCenter()), o = r.layerPointToContainerPoint(e), s = this.options.direction, c = i.offsetWidth, l = i.offsetHeight, u = D(this.options.offset), d = this._getAnchor();
3638
+ s === "top" ? (t = c / 2, n = l) : s === "bottom" ? (t = c / 2, n = 0) : s === "center" ? (t = c / 2, n = l / 2) : s === "right" ? (t = 0, n = l / 2) : s === "left" ? (t = c, n = l / 2) : o.x < a.x ? (s = "right", t = 0, n = l / 2) : (s = "left", t = c + (u.x + d.x) * 2, n = l / 2), e = e.subtract(D(t, n, !0)).add(u).add(d), U(i, "leaflet-tooltip-right"), U(i, "leaflet-tooltip-left"), U(i, "leaflet-tooltip-top"), U(i, "leaflet-tooltip-bottom"), H(i, "leaflet-tooltip-" + s), G(i, e);
3640
3639
  },
3641
3640
  _updatePosition: function() {
3642
3641
  var e = this._map.latLngToLayerPoint(this._latlng);
3643
3642
  this._setPosition(e);
3644
3643
  },
3645
3644
  setOpacity: function(e) {
3646
- this.options.opacity = e, this._container && U(this._container, e);
3645
+ this.options.opacity = e, this._container && Ot(this._container, e);
3647
3646
  },
3648
3647
  _animateZoom: function(e) {
3649
3648
  var t = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center);
3650
3649
  this._setPosition(t);
3651
3650
  },
3652
3651
  _getAnchor: function() {
3653
- return O(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
3652
+ return D(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
3654
3653
  }
3655
3654
  }), Pr = function(e, t) {
3656
3655
  return new Nr(e, t);
@@ -3736,8 +3735,8 @@ var gt = { [R.dummyPointId]: {
3736
3735
  },
3737
3736
  createIcon: function(e) {
3738
3737
  var t = e && e.tagName === "DIV" ? e : document.createElement("div"), n = this.options;
3739
- if (n.html instanceof Element ? (Ct(t), t.appendChild(n.html)) : t.innerHTML = n.html === !1 ? "" : n.html, n.bgPos) {
3740
- var r = O(n.bgPos);
3738
+ if (n.html instanceof Element ? (St(t), t.appendChild(n.html)) : t.innerHTML = n.html === !1 ? "" : n.html, n.bgPos) {
3739
+ var r = D(n.bgPos);
3741
3740
  t.style.backgroundPosition = -r.x + "px " + -r.y + "px";
3742
3741
  }
3743
3742
  return this._setIconStyles(t, "icon"), t;
@@ -3754,7 +3753,7 @@ var gt = { [R.dummyPointId]: {
3754
3753
  options: {
3755
3754
  tileSize: 256,
3756
3755
  opacity: 1,
3757
- updateWhenIdle: F.mobile,
3756
+ updateWhenIdle: I.mobile,
3758
3757
  updateWhenZooming: !0,
3759
3758
  updateInterval: 200,
3760
3759
  zIndex: 1,
@@ -3778,13 +3777,13 @@ var gt = { [R.dummyPointId]: {
3778
3777
  e._addZoomLimit(this);
3779
3778
  },
3780
3779
  onRemove: function(e) {
3781
- this._removeAllTiles(), B(this._container), e._removeZoomLimit(this), this._container = null, this._tileZoom = void 0;
3780
+ this._removeAllTiles(), V(this._container), e._removeZoomLimit(this), this._container = null, this._tileZoom = void 0;
3782
3781
  },
3783
3782
  bringToFront: function() {
3784
- return this._map && (wt(this._container), this._setAutoZIndex(Math.max)), this;
3783
+ return this._map && (Ct(this._container), this._setAutoZIndex(Math.max)), this;
3785
3784
  },
3786
3785
  bringToBack: function() {
3787
- return this._map && (Tt(this._container), this._setAutoZIndex(Math.min)), this;
3786
+ return this._map && (wt(this._container), this._setAutoZIndex(Math.min)), this;
3788
3787
  },
3789
3788
  getContainer: function() {
3790
3789
  return this._container;
@@ -3820,7 +3819,7 @@ var gt = { [R.dummyPointId]: {
3820
3819
  },
3821
3820
  getTileSize: function() {
3822
3821
  var e = this.options.tileSize;
3823
- return e instanceof D ? e : new D(e, e);
3822
+ return e instanceof E ? e : new E(e, e);
3824
3823
  },
3825
3824
  _updateZIndex: function() {
3826
3825
  this._container && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._container.style.zIndex = this.options.zIndex);
@@ -3830,29 +3829,29 @@ var gt = { [R.dummyPointId]: {
3830
3829
  isFinite(n) && (this.options.zIndex = n + e(-1, 1), this._updateZIndex());
3831
3830
  },
3832
3831
  _updateOpacity: function() {
3833
- if (this._map && !F.ielt9) {
3834
- U(this._container, this.options.opacity);
3832
+ if (this._map && !I.ielt9) {
3833
+ Ot(this._container, this.options.opacity);
3835
3834
  var e = +/* @__PURE__ */ new Date(), t = !1, n = !1;
3836
3835
  for (var r in this._tiles) {
3837
3836
  var i = this._tiles[r];
3838
3837
  if (!(!i.current || !i.loaded)) {
3839
3838
  var a = Math.min(1, (e - i.loaded) / 200);
3840
- U(i.el, a), a < 1 ? t = !0 : (i.active ? n = !0 : this._onOpaqueTile(i), i.active = !0);
3839
+ Ot(i.el, a), a < 1 ? t = !0 : (i.active ? n = !0 : this._onOpaqueTile(i), i.active = !0);
3841
3840
  }
3842
3841
  }
3843
- n && !this._noPrune && this._pruneTiles(), t && (C(this._fadeFrame), this._fadeFrame = S(this._updateOpacity, this));
3842
+ n && !this._noPrune && this._pruneTiles(), t && (S(this._fadeFrame), this._fadeFrame = x(this._updateOpacity, this));
3844
3843
  }
3845
3844
  },
3846
3845
  _onOpaqueTile: l,
3847
3846
  _initContainer: function() {
3848
- this._container || (this._container = z("div", "leaflet-layer " + (this.options.className || "")), this._updateZIndex(), this.options.opacity < 1 && this._updateOpacity(), this.getPane().appendChild(this._container));
3847
+ this._container || (this._container = B("div", "leaflet-layer " + (this.options.className || "")), this._updateZIndex(), this.options.opacity < 1 && this._updateOpacity(), this.getPane().appendChild(this._container));
3849
3848
  },
3850
3849
  _updateLevels: function() {
3851
3850
  var e = this._tileZoom, t = this.options.maxZoom;
3852
3851
  if (e !== void 0) {
3853
- for (var n in this._levels) n = Number(n), this._levels[n].el.children.length || n === e ? (this._levels[n].el.style.zIndex = t - Math.abs(e - n), this._onUpdateLevel(n)) : (B(this._levels[n].el), this._removeTilesAtZoom(n), this._onRemoveLevel(n), delete this._levels[n]);
3852
+ for (var n in this._levels) n = Number(n), this._levels[n].el.children.length || n === e ? (this._levels[n].el.style.zIndex = t - Math.abs(e - n), this._onUpdateLevel(n)) : (V(this._levels[n].el), this._removeTilesAtZoom(n), this._onRemoveLevel(n), delete this._levels[n]);
3854
3853
  var r = this._levels[e], i = this._map;
3855
- return r || (r = this._levels[e] = {}, r.el = z("div", "leaflet-tile-container leaflet-zoom-animated", this._container), r.el.style.zIndex = t, r.origin = i.project(i.unproject(i.getPixelOrigin()), e).round(), r.zoom = e, this._setZoomTransform(r, i.getCenter(), i.getZoom()), r.el.offsetWidth, this._onCreateLevel(r)), this._level = r, r;
3854
+ return r || (r = this._levels[e] = {}, r.el = B("div", "leaflet-tile-container leaflet-zoom-animated", this._container), r.el.style.zIndex = t, r.origin = i.project(i.unproject(i.getPixelOrigin()), e).round(), r.zoom = e, this._setZoomTransform(r, i.getCenter(), i.getZoom()), r.el.offsetWidth, this._onCreateLevel(r)), this._level = r, r;
3856
3855
  }
3857
3856
  },
3858
3857
  _onUpdateLevel: l,
@@ -3880,18 +3879,18 @@ var gt = { [R.dummyPointId]: {
3880
3879
  for (var e in this._tiles) this._removeTile(e);
3881
3880
  },
3882
3881
  _invalidateAll: function() {
3883
- for (var e in this._levels) B(this._levels[e].el), this._onRemoveLevel(Number(e)), delete this._levels[e];
3882
+ for (var e in this._levels) V(this._levels[e].el), this._onRemoveLevel(Number(e)), delete this._levels[e];
3884
3883
  this._removeAllTiles(), this._tileZoom = void 0;
3885
3884
  },
3886
3885
  _retainParent: function(e, t, n, r) {
3887
- var i = Math.floor(e / 2), a = Math.floor(t / 2), o = n - 1, s = new D(+i, +a);
3886
+ var i = Math.floor(e / 2), a = Math.floor(t / 2), o = n - 1, s = new E(+i, +a);
3888
3887
  s.z = +o;
3889
3888
  var c = this._tileCoordsToKey(s), l = this._tiles[c];
3890
3889
  return l && l.active ? (l.retain = !0, !0) : (l && l.loaded && (l.retain = !0), o > r && this._retainParent(i, a, o, r));
3891
3890
  },
3892
3891
  _retainChildren: function(e, t, n, r) {
3893
3892
  for (var i = 2 * e; i < 2 * e + 2; i++) for (var a = 2 * t; a < 2 * t + 2; a++) {
3894
- var o = new D(i, a);
3893
+ var o = new E(i, a);
3895
3894
  o.z = n + 1;
3896
3895
  var s = this._tileCoordsToKey(o), c = this._tiles[s];
3897
3896
  if (c && c.active) {
@@ -3923,7 +3922,7 @@ var gt = { [R.dummyPointId]: {
3923
3922
  },
3924
3923
  _setZoomTransform: function(e, t, n) {
3925
3924
  var r = this._map.getZoomScale(n, e.zoom), i = e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t, n)).round();
3926
- F.any3d ? At(e.el, i, r) : G(e.el, i);
3925
+ I.any3d ? At(e.el, i, r) : G(e.el, i);
3927
3926
  },
3928
3927
  _resetGrid: function() {
3929
3928
  var e = this._map, t = e.options.crs, n = this._tileSize = this.getTileSize(), r = this._tileZoom, i = this._map.getPixelWorldBounds(this._tileZoom);
@@ -3934,25 +3933,25 @@ var gt = { [R.dummyPointId]: {
3934
3933
  },
3935
3934
  _getTiledPixelBounds: function(e) {
3936
3935
  var t = this._map, n = t._animatingZoom ? Math.max(t._animateToZoom, t.getZoom()) : t.getZoom(), r = t.getZoomScale(n, this._tileZoom), i = t.project(e, this._tileZoom).floor(), a = t.getSize().divideBy(r * 2);
3937
- return new k(i.subtract(a), i.add(a));
3936
+ return new O(i.subtract(a), i.add(a));
3938
3937
  },
3939
3938
  _update: function(e) {
3940
3939
  var t = this._map;
3941
3940
  if (t) {
3942
3941
  var n = this._clampZoom(t.getZoom());
3943
3942
  if (e === void 0 && (e = t.getCenter()), this._tileZoom !== void 0) {
3944
- var r = this._getTiledPixelBounds(e), i = this._pxBoundsToTileRange(r), a = i.getCenter(), o = [], s = this.options.keepBuffer, c = new k(i.getBottomLeft().subtract([s, -s]), i.getTopRight().add([s, -s]));
3943
+ var r = this._getTiledPixelBounds(e), i = this._pxBoundsToTileRange(r), a = i.getCenter(), o = [], s = this.options.keepBuffer, c = new O(i.getBottomLeft().subtract([s, -s]), i.getTopRight().add([s, -s]));
3945
3944
  if (!(isFinite(i.min.x) && isFinite(i.min.y) && isFinite(i.max.x) && isFinite(i.max.y))) throw Error("Attempted to load an infinite number of tiles");
3946
3945
  for (var l in this._tiles) {
3947
3946
  var u = this._tiles[l].coords;
3948
- (u.z !== this._tileZoom || !c.contains(new D(u.x, u.y))) && (this._tiles[l].current = !1);
3947
+ (u.z !== this._tileZoom || !c.contains(new E(u.x, u.y))) && (this._tiles[l].current = !1);
3949
3948
  }
3950
3949
  if (Math.abs(n - this._tileZoom) > 1) {
3951
3950
  this._setView(e, n);
3952
3951
  return;
3953
3952
  }
3954
3953
  for (var d = i.min.y; d <= i.max.y; d++) for (var f = i.min.x; f <= i.max.x; f++) {
3955
- var p = new D(f, d);
3954
+ var p = new E(f, d);
3956
3955
  if (p.z = this._tileZoom, this._isValidTile(p)) {
3957
3956
  var m = this._tiles[this._tileCoordsToKey(p)];
3958
3957
  m ? m.current = !0 : o.push(p);
@@ -3977,7 +3976,7 @@ var gt = { [R.dummyPointId]: {
3977
3976
  }
3978
3977
  if (!this.options.bounds) return !0;
3979
3978
  var r = this._tileCoordsToBounds(e);
3980
- return M(this.options.bounds).overlaps(r);
3979
+ return j(this.options.bounds).overlaps(r);
3981
3980
  },
3982
3981
  _keyToBounds: function(e) {
3983
3982
  return this._tileCoordsToBounds(this._keyToTileCoords(e));
@@ -3987,31 +3986,31 @@ var gt = { [R.dummyPointId]: {
3987
3986
  return [t.unproject(r, e.z), t.unproject(i, e.z)];
3988
3987
  },
3989
3988
  _tileCoordsToBounds: function(e) {
3990
- var t = this._tileCoordsToNwSe(e), n = new j(t[0], t[1]);
3989
+ var t = this._tileCoordsToNwSe(e), n = new A(t[0], t[1]);
3991
3990
  return this.options.noWrap || (n = this._map.wrapLatLngBounds(n)), n;
3992
3991
  },
3993
3992
  _tileCoordsToKey: function(e) {
3994
3993
  return e.x + ":" + e.y + ":" + e.z;
3995
3994
  },
3996
3995
  _keyToTileCoords: function(e) {
3997
- var t = e.split(":"), n = new D(+t[0], +t[1]);
3996
+ var t = e.split(":"), n = new E(+t[0], +t[1]);
3998
3997
  return n.z = +t[2], n;
3999
3998
  },
4000
3999
  _removeTile: function(e) {
4001
4000
  var t = this._tiles[e];
4002
- t && (B(t.el), delete this._tiles[e], this.fire("tileunload", {
4001
+ t && (V(t.el), delete this._tiles[e], this.fire("tileunload", {
4003
4002
  tile: t.el,
4004
4003
  coords: this._keyToTileCoords(e)
4005
4004
  }));
4006
4005
  },
4007
4006
  _initTile: function(e) {
4008
- V(e, "leaflet-tile");
4007
+ H(e, "leaflet-tile");
4009
4008
  var t = this.getTileSize();
4010
- e.style.width = t.x + "px", e.style.height = t.y + "px", e.onselectstart = l, e.onmousemove = l, F.ielt9 && this.options.opacity < 1 && U(e, this.options.opacity);
4009
+ e.style.width = t.x + "px", e.style.height = t.y + "px", e.onselectstart = l, e.onmousemove = l, I.ielt9 && this.options.opacity < 1 && Ot(e, this.options.opacity);
4011
4010
  },
4012
4011
  _addTile: function(e, t) {
4013
4012
  var n = this._getTilePos(e), r = this._tileCoordsToKey(e), a = this.createTile(this._wrapCoords(e), i(this._tileReady, this, e));
4014
- this._initTile(a), this.createTile.length < 2 && S(i(this._tileReady, this, e, null, a)), G(a, n), this._tiles[r] = {
4013
+ this._initTile(a), this.createTile.length < 2 && x(i(this._tileReady, this, e, null, a)), G(a, n), this._tiles[r] = {
4015
4014
  el: a,
4016
4015
  coords: e,
4017
4016
  current: !0
@@ -4027,21 +4026,21 @@ var gt = { [R.dummyPointId]: {
4027
4026
  coords: e
4028
4027
  });
4029
4028
  var r = this._tileCoordsToKey(e);
4030
- n = this._tiles[r], n && (n.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (U(n.el, 0), C(this._fadeFrame), this._fadeFrame = S(this._updateOpacity, this)) : (n.active = !0, this._pruneTiles()), t || (V(n.el, "leaflet-tile-loaded"), this.fire("tileload", {
4029
+ n = this._tiles[r], n && (n.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (Ot(n.el, 0), S(this._fadeFrame), this._fadeFrame = x(this._updateOpacity, this)) : (n.active = !0, this._pruneTiles()), t || (H(n.el, "leaflet-tile-loaded"), this.fire("tileload", {
4031
4030
  tile: n.el,
4032
4031
  coords: e
4033
- })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), F.ielt9 || !this._map._fadeAnimated ? S(this._pruneTiles, this) : setTimeout(i(this._pruneTiles, this), 250)));
4032
+ })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), I.ielt9 || !this._map._fadeAnimated ? x(this._pruneTiles, this) : setTimeout(i(this._pruneTiles, this), 250)));
4034
4033
  },
4035
4034
  _getTilePos: function(e) {
4036
4035
  return e.scaleBy(this.getTileSize()).subtract(this._level.origin);
4037
4036
  },
4038
4037
  _wrapCoords: function(e) {
4039
- var t = new D(this._wrapX ? c(e.x, this._wrapX) : e.x, this._wrapY ? c(e.y, this._wrapY) : e.y);
4038
+ var t = new E(this._wrapX ? c(e.x, this._wrapX) : e.x, this._wrapY ? c(e.y, this._wrapY) : e.y);
4040
4039
  return t.z = e.z, t;
4041
4040
  },
4042
4041
  _pxBoundsToTileRange: function(e) {
4043
4042
  var t = this.getTileSize();
4044
- return new k(e.min.unscaleBy(t).floor(), e.max.unscaleBy(t).ceil().subtract([1, 1]));
4043
+ return new O(e.min.unscaleBy(t).floor(), e.max.unscaleBy(t).ceil().subtract([1, 1]));
4045
4044
  },
4046
4045
  _noTilesToLoad: function() {
4047
4046
  for (var e in this._tiles) if (!this._tiles[e].loaded) return !1;
@@ -4065,7 +4064,7 @@ var gt = { [R.dummyPointId]: {
4065
4064
  referrerPolicy: !1
4066
4065
  },
4067
4066
  initialize: function(e, t) {
4068
- this._url = e, t = p(this, t), t.detectRetina && F.retina && t.maxZoom > 0 ? (t.tileSize = Math.floor(t.tileSize / 2), t.zoomReverse ? (t.zoomOffset--, t.minZoom = Math.min(t.maxZoom, t.minZoom + 1)) : (t.zoomOffset++, t.maxZoom = Math.max(t.minZoom, t.maxZoom - 1)), t.minZoom = Math.max(0, t.minZoom)) : t.zoomReverse ? t.minZoom = Math.min(t.maxZoom, t.minZoom) : t.maxZoom = Math.max(t.minZoom, t.maxZoom), typeof t.subdomains == "string" && (t.subdomains = t.subdomains.split("")), this.on("tileunload", this._onTileRemove);
4067
+ this._url = e, t = p(this, t), t.detectRetina && I.retina && t.maxZoom > 0 ? (t.tileSize = Math.floor(t.tileSize / 2), t.zoomReverse ? (t.zoomOffset--, t.minZoom = Math.min(t.maxZoom, t.minZoom + 1)) : (t.zoomOffset++, t.maxZoom = Math.max(t.minZoom, t.maxZoom - 1)), t.minZoom = Math.max(0, t.minZoom)) : t.zoomReverse ? t.minZoom = Math.min(t.maxZoom, t.minZoom) : t.maxZoom = Math.max(t.minZoom, t.maxZoom), typeof t.subdomains == "string" && (t.subdomains = t.subdomains.split("")), this.on("tileunload", this._onTileRemove);
4069
4068
  },
4070
4069
  setUrl: function(e, t) {
4071
4070
  return this._url === e && t === void 0 && (t = !0), this._url = e, t || this.redraw(), this;
@@ -4076,7 +4075,7 @@ var gt = { [R.dummyPointId]: {
4076
4075
  },
4077
4076
  getTileUrl: function(e) {
4078
4077
  var t = {
4079
- r: F.retina ? "@2x" : "",
4078
+ r: I.retina ? "@2x" : "",
4080
4079
  s: this._getSubdomain(e),
4081
4080
  x: e.x,
4082
4081
  y: e.y,
@@ -4089,7 +4088,7 @@ var gt = { [R.dummyPointId]: {
4089
4088
  return g(this._url, n(t, this.options));
4090
4089
  },
4091
4090
  _tileOnLoad: function(e, t) {
4092
- F.ielt9 ? setTimeout(i(e, this, null, t), 0) : e(null, t);
4091
+ I.ielt9 ? setTimeout(i(e, this, null, t), 0) : e(null, t);
4093
4092
  },
4094
4093
  _tileOnError: function(e, t, n) {
4095
4094
  var r = this.options.errorTileUrl;
@@ -4111,7 +4110,7 @@ var gt = { [R.dummyPointId]: {
4111
4110
  for (e in this._tiles) if (this._tiles[e].coords.z !== this._tileZoom && (t = this._tiles[e].el, t.onload = l, t.onerror = l, !t.complete)) {
4112
4111
  t.src = y;
4113
4112
  var n = this._tiles[e].coords;
4114
- B(t), delete this._tiles[e], this.fire("tileabort", {
4113
+ V(t), delete this._tiles[e], this.fire("tileabort", {
4115
4114
  tile: t,
4116
4115
  coords: n
4117
4116
  });
@@ -4147,7 +4146,7 @@ var gt = { [R.dummyPointId]: {
4147
4146
  var r = n({}, this.defaultWmsParams);
4148
4147
  for (var i in t) i in this.options || (r[i] = t[i]);
4149
4148
  t = p(this, t);
4150
- var a = t.detectRetina && F.retina ? 2 : 1, o = this.getTileSize();
4149
+ var a = t.detectRetina && I.retina ? 2 : 1, o = this.getTileSize();
4151
4150
  r.width = o.x * a, r.height = o.y * a, this.wmsParams = r;
4152
4151
  },
4153
4152
  onAdd: function(e) {
@@ -4156,7 +4155,7 @@ var gt = { [R.dummyPointId]: {
4156
4155
  this.wmsParams[t] = this._crs.code, Q.prototype.onAdd.call(this, e);
4157
4156
  },
4158
4157
  getTileUrl: function(e) {
4159
- var t = this._tileCoordsToNwSe(e), n = this._crs, r = A(n.project(t[0]), n.project(t[1])), i = r.min, a = r.max, o = (this._wmsVersion >= 1.3 && this._crs === Wn ? [
4158
+ var t = this._tileCoordsToNwSe(e), n = this._crs, r = k(n.project(t[0]), n.project(t[1])), i = r.min, a = r.max, o = (this._wmsVersion >= 1.3 && this._crs === Wn ? [
4160
4159
  i.y,
4161
4160
  i.x,
4162
4161
  a.y,
@@ -4183,7 +4182,7 @@ var gt = { [R.dummyPointId]: {
4183
4182
  p(this, e), o(this), this._layers = this._layers || {};
4184
4183
  },
4185
4184
  onAdd: function() {
4186
- this._container || (this._initContainer(), V(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
4185
+ this._container || (this._initContainer(), H(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
4187
4186
  },
4188
4187
  onRemove: function() {
4189
4188
  this.off("update", this._updatePaths, this), this._destroyContainer();
@@ -4205,7 +4204,7 @@ var gt = { [R.dummyPointId]: {
4205
4204
  },
4206
4205
  _updateTransform: function(e, t) {
4207
4206
  var n = this._map.getZoomScale(t, this._zoom), r = this._map.getSize().multiplyBy(.5 + this.options.padding), i = this._map.project(this._center, t), a = r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e, t));
4208
- F.any3d ? At(this._container, a, n) : G(this._container, a);
4207
+ I.any3d ? At(this._container, a, n) : G(this._container, a);
4209
4208
  },
4210
4209
  _reset: function() {
4211
4210
  for (var e in this._update(), this._updateTransform(this._center, this._zoom), this._layers) this._layers[e]._reset();
@@ -4218,7 +4217,7 @@ var gt = { [R.dummyPointId]: {
4218
4217
  },
4219
4218
  _update: function() {
4220
4219
  var e = this.options.padding, t = this._map.getSize(), n = this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();
4221
- this._bounds = new k(n, n.add(t.multiplyBy(1 + e * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
4220
+ this._bounds = new O(n, n.add(t.multiplyBy(1 + e * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
4222
4221
  }
4223
4222
  }), Hr = $.extend({
4224
4223
  options: { tolerance: 0 },
@@ -4237,7 +4236,7 @@ var gt = { [R.dummyPointId]: {
4237
4236
  K(e, "mousemove", this._onMouseMove, this), K(e, "click dblclick mousedown mouseup contextmenu", this._onClick, this), K(e, "mouseout", this._handleMouseOut, this), e._leaflet_disable_events = !0, this._ctx = e.getContext("2d");
4238
4237
  },
4239
4238
  _destroyContainer: function() {
4240
- C(this._redrawRequest), delete this._ctx, B(this._container), q(this._container), delete this._container;
4239
+ S(this._redrawRequest), delete this._ctx, V(this._container), q(this._container), delete this._container;
4241
4240
  },
4242
4241
  _updatePaths: function() {
4243
4242
  if (!this._postponeUpdatePaths) {
@@ -4249,8 +4248,8 @@ var gt = { [R.dummyPointId]: {
4249
4248
  _update: function() {
4250
4249
  if (!(this._map._animatingZoom && this._bounds)) {
4251
4250
  $.prototype._update.call(this);
4252
- var e = this._bounds, t = this._container, n = e.getSize(), r = F.retina ? 2 : 1;
4253
- G(t, e.min), t.width = r * n.x, t.height = r * n.y, t.style.width = n.x + "px", t.style.height = n.y + "px", F.retina && this._ctx.scale(2, 2), this._ctx.translate(-e.min.x, -e.min.y), this.fire("update");
4251
+ var e = this._bounds, t = this._container, n = e.getSize(), r = I.retina ? 2 : 1;
4252
+ G(t, e.min), t.width = r * n.x, t.height = r * n.y, t.style.width = n.x + "px", t.style.height = n.y + "px", I.retina && this._ctx.scale(2, 2), this._ctx.translate(-e.min.x, -e.min.y), this.fire("update");
4254
4253
  }
4255
4254
  },
4256
4255
  _reset: function() {
@@ -4289,12 +4288,12 @@ var gt = { [R.dummyPointId]: {
4289
4288
  } else e.options._dashArray = e.options.dashArray;
4290
4289
  },
4291
4290
  _requestRedraw: function(e) {
4292
- this._map && (this._extendRedrawBounds(e), this._redrawRequest = this._redrawRequest || S(this._redraw, this));
4291
+ this._map && (this._extendRedrawBounds(e), this._redrawRequest = this._redrawRequest || x(this._redraw, this));
4293
4292
  },
4294
4293
  _extendRedrawBounds: function(e) {
4295
4294
  if (e._pxBounds) {
4296
4295
  var t = (e.options.weight || 0) + 1;
4297
- this._redrawBounds = this._redrawBounds || new k(), this._redrawBounds.extend(e._pxBounds.min.subtract([t, t])), this._redrawBounds.extend(e._pxBounds.max.add([t, t]));
4296
+ this._redrawBounds = this._redrawBounds || new O(), this._redrawBounds.extend(e._pxBounds.min.subtract([t, t])), this._redrawBounds.extend(e._pxBounds.max.add([t, t]));
4298
4297
  }
4299
4298
  },
4300
4299
  _redraw: function() {
@@ -4351,12 +4350,12 @@ var gt = { [R.dummyPointId]: {
4351
4350
  },
4352
4351
  _handleMouseOut: function(e) {
4353
4352
  var t = this._hoveredLayer;
4354
- t && (H(this._container, "leaflet-interactive"), this._fireEvent([t], e, "mouseout"), this._hoveredLayer = null, this._mouseHoverThrottled = !1);
4353
+ t && (U(this._container, "leaflet-interactive"), this._fireEvent([t], e, "mouseout"), this._hoveredLayer = null, this._mouseHoverThrottled = !1);
4355
4354
  },
4356
4355
  _handleMouseHover: function(e, t) {
4357
4356
  if (!this._mouseHoverThrottled) {
4358
4357
  for (var n, r, a = this._drawFirst; a; a = a.next) n = a.layer, n.options.interactive && n._containsPoint(t) && (r = n);
4359
- r !== this._hoveredLayer && (this._handleMouseOut(e), r && (V(this._container, "leaflet-interactive"), this._fireEvent([r], e, "mouseover"), this._hoveredLayer = r)), this._fireEvent(this._hoveredLayer ? [this._hoveredLayer] : !1, e), this._mouseHoverThrottled = !0, setTimeout(i(function() {
4358
+ r !== this._hoveredLayer && (this._handleMouseOut(e), r && (H(this._container, "leaflet-interactive"), this._fireEvent([r], e, "mouseover"), this._hoveredLayer = r)), this._fireEvent(this._hoveredLayer ? [this._hoveredLayer] : !1, e), this._mouseHoverThrottled = !0, setTimeout(i(function() {
4360
4359
  this._mouseHoverThrottled = !1;
4361
4360
  }, this), 32);
4362
4361
  }
@@ -4384,7 +4383,7 @@ var gt = { [R.dummyPointId]: {
4384
4383
  }
4385
4384
  });
4386
4385
  function Ur(e) {
4387
- return F.canvas ? new Hr(e) : null;
4386
+ return I.canvas ? new Hr(e) : null;
4388
4387
  }
4389
4388
  var Wr = (function() {
4390
4389
  try {
@@ -4397,14 +4396,14 @@ var gt = { [R.dummyPointId]: {
4397
4396
  };
4398
4397
  })(), Gr = {
4399
4398
  _initContainer: function() {
4400
- this._container = z("div", "leaflet-vml-container");
4399
+ this._container = B("div", "leaflet-vml-container");
4401
4400
  },
4402
4401
  _update: function() {
4403
4402
  this._map._animatingZoom || ($.prototype._update.call(this), this.fire("update"));
4404
4403
  },
4405
4404
  _initPath: function(e) {
4406
4405
  var t = e._container = Wr("shape");
4407
- V(t, "leaflet-vml-shape " + (this.options.className || "")), t.coordsize = "1 1", e._path = Wr("path"), t.appendChild(e._path), this._updateStyle(e), this._layers[o(e)] = e;
4406
+ H(t, "leaflet-vml-shape " + (this.options.className || "")), t.coordsize = "1 1", e._path = Wr("path"), t.appendChild(e._path), this._updateStyle(e), this._layers[o(e)] = e;
4408
4407
  },
4409
4408
  _addPath: function(e) {
4410
4409
  var t = e._container;
@@ -4412,7 +4411,7 @@ var gt = { [R.dummyPointId]: {
4412
4411
  },
4413
4412
  _removePath: function(e) {
4414
4413
  var t = e._container;
4415
- B(t), e.removeInteractiveTarget(t), delete this._layers[o(e)];
4414
+ V(t), e.removeInteractiveTarget(t), delete this._layers[o(e)];
4416
4415
  },
4417
4416
  _updateStyle: function(e) {
4418
4417
  var t = e._stroke, n = e._fill, r = e.options, i = e._container;
@@ -4426,17 +4425,17 @@ var gt = { [R.dummyPointId]: {
4426
4425
  e._path.v = t;
4427
4426
  },
4428
4427
  _bringToFront: function(e) {
4429
- wt(e._container);
4428
+ Ct(e._container);
4430
4429
  },
4431
4430
  _bringToBack: function(e) {
4432
- Tt(e._container);
4431
+ wt(e._container);
4433
4432
  }
4434
- }, Kr = F.vml ? Wr : me, qr = $.extend({
4433
+ }, Kr = I.vml ? Wr : F, qr = $.extend({
4435
4434
  _initContainer: function() {
4436
4435
  this._container = Kr("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Kr("g"), this._container.appendChild(this._rootGroup);
4437
4436
  },
4438
4437
  _destroyContainer: function() {
4439
- B(this._container), q(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
4438
+ V(this._container), q(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
4440
4439
  },
4441
4440
  _update: function() {
4442
4441
  if (!(this._map._animatingZoom && this._bounds)) {
@@ -4452,13 +4451,13 @@ var gt = { [R.dummyPointId]: {
4452
4451
  },
4453
4452
  _initPath: function(e) {
4454
4453
  var t = e._path = Kr("path");
4455
- e.options.className && V(t, e.options.className), e.options.interactive && V(t, "leaflet-interactive"), this._updateStyle(e), this._layers[o(e)] = e;
4454
+ e.options.className && H(t, e.options.className), e.options.interactive && H(t, "leaflet-interactive"), this._updateStyle(e), this._layers[o(e)] = e;
4456
4455
  },
4457
4456
  _addPath: function(e) {
4458
4457
  this._rootGroup || this._initContainer(), this._rootGroup.appendChild(e._path), e.addInteractiveTarget(e._path);
4459
4458
  },
4460
4459
  _removePath: function(e) {
4461
- B(e._path), e.removeInteractiveTarget(e._path), delete this._layers[o(e)];
4460
+ V(e._path), e.removeInteractiveTarget(e._path), delete this._layers[o(e)];
4462
4461
  },
4463
4462
  _updatePath: function(e) {
4464
4463
  e._project(), e._update();
@@ -4468,7 +4467,7 @@ var gt = { [R.dummyPointId]: {
4468
4467
  t && (n.stroke ? (t.setAttribute("stroke", n.color), t.setAttribute("stroke-opacity", n.opacity), t.setAttribute("stroke-width", n.weight), t.setAttribute("stroke-linecap", n.lineCap), t.setAttribute("stroke-linejoin", n.lineJoin), n.dashArray ? t.setAttribute("stroke-dasharray", n.dashArray) : t.removeAttribute("stroke-dasharray"), n.dashOffset ? t.setAttribute("stroke-dashoffset", n.dashOffset) : t.removeAttribute("stroke-dashoffset")) : t.setAttribute("stroke", "none"), n.fill ? (t.setAttribute("fill", n.fillColor || n.color), t.setAttribute("fill-opacity", n.fillOpacity), t.setAttribute("fill-rule", n.fillRule || "evenodd")) : t.setAttribute("fill", "none"));
4469
4468
  },
4470
4469
  _updatePoly: function(e, t) {
4471
- this._setPath(e, he(e._parts, t));
4470
+ this._setPath(e, me(e._parts, t));
4472
4471
  },
4473
4472
  _updateCircle: function(e) {
4474
4473
  var t = e._point, n = Math.max(Math.round(e._radius), 1), r = Math.max(Math.round(e._radiusY), 1) || n, i = "a" + n + "," + r + " 0 1,0 ", a = e._empty() ? "M0 0" : "M" + (t.x - n) + "," + t.y + i + n * 2 + ",0 " + i + -n * 2 + ",0 ";
@@ -4478,15 +4477,15 @@ var gt = { [R.dummyPointId]: {
4478
4477
  e._path.setAttribute("d", t);
4479
4478
  },
4480
4479
  _bringToFront: function(e) {
4481
- wt(e._path);
4480
+ Ct(e._path);
4482
4481
  },
4483
4482
  _bringToBack: function(e) {
4484
- Tt(e._path);
4483
+ wt(e._path);
4485
4484
  }
4486
4485
  });
4487
- F.vml && qr.include(Gr);
4486
+ I.vml && qr.include(Gr);
4488
4487
  function Jr(e) {
4489
- return F.svg || F.vml ? new qr(e) : null;
4488
+ return I.svg || I.vml ? new qr(e) : null;
4490
4489
  }
4491
4490
  X.include({
4492
4491
  getRenderer: function(e) {
@@ -4510,7 +4509,7 @@ var gt = { [R.dummyPointId]: {
4510
4509
  return this.setLatLngs(this._boundsToLatLngs(e));
4511
4510
  },
4512
4511
  _boundsToLatLngs: function(e) {
4513
- return e = M(e), [
4512
+ return e = j(e), [
4514
4513
  e.getSouthWest(),
4515
4514
  e.getNorthWest(),
4516
4515
  e.getNorthEast(),
@@ -4521,7 +4520,7 @@ var gt = { [R.dummyPointId]: {
4521
4520
  function Xr(e, t) {
4522
4521
  return new Yr(e, t);
4523
4522
  }
4524
- qr.create = Kr, qr.pointsToPath = he, fr.geometryToLayer = pr, fr.coordsToLatLng = hr, fr.coordsToLatLngs = gr, fr.latLngToCoords = _r, fr.latLngsToCoords = vr, fr.getFeature = yr, fr.asFeature = br, X.mergeOptions({ boxZoom: !0 });
4523
+ qr.create = Kr, qr.pointsToPath = me, fr.geometryToLayer = pr, fr.coordsToLatLng = hr, fr.coordsToLatLngs = gr, fr.latLngToCoords = _r, fr.latLngsToCoords = vr, fr.getFeature = yr, fr.asFeature = br, X.mergeOptions({ boxZoom: !0 });
4525
4524
  var Zr = gn.extend({
4526
4525
  initialize: function(e) {
4527
4526
  this._map = e, this._container = e._container, this._pane = e._panes.overlayPane, this._resetStateTimeout = 0, e.on("unload", this._destroy, this);
@@ -4536,7 +4535,7 @@ var gt = { [R.dummyPointId]: {
4536
4535
  return this._moved;
4537
4536
  },
4538
4537
  _destroy: function() {
4539
- B(this._pane), delete this._pane;
4538
+ V(this._pane), delete this._pane;
4540
4539
  },
4541
4540
  _resetState: function() {
4542
4541
  this._resetStateTimeout = 0, this._moved = !1;
@@ -4554,12 +4553,12 @@ var gt = { [R.dummyPointId]: {
4554
4553
  }, this);
4555
4554
  },
4556
4555
  _onMouseMove: function(e) {
4557
- this._moved || (this._moved = !0, this._box = z("div", "leaflet-zoom-box", this._container), V(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(e);
4558
- var t = new k(this._point, this._startPoint), n = t.getSize();
4556
+ this._moved || (this._moved = !0, this._box = B("div", "leaflet-zoom-box", this._container), H(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(e);
4557
+ var t = new O(this._point, this._startPoint), n = t.getSize();
4559
4558
  G(this._box, t.min), this._box.style.width = n.x + "px", this._box.style.height = n.y + "px";
4560
4559
  },
4561
4560
  _finish: function() {
4562
- this._moved && (B(this._box), H(this._container, "leaflet-crosshair")), Nt(), Lt(), q(document, {
4561
+ this._moved && (V(this._box), U(this._container, "leaflet-crosshair")), Nt(), Lt(), q(document, {
4563
4562
  contextmenu: Qt,
4564
4563
  mousemove: this._onMouseMove,
4565
4564
  mouseup: this._onMouseUp,
@@ -4569,7 +4568,7 @@ var gt = { [R.dummyPointId]: {
4569
4568
  _onMouseUp: function(e) {
4570
4569
  if (!(e.which !== 1 && e.button !== 1) && (this._finish(), this._moved)) {
4571
4570
  this._clearDeferredResetState(), this._resetStateTimeout = setTimeout(i(this._resetState, this), 0);
4572
- var t = new j(this._map.containerPointToLatLng(this._startPoint), this._map.containerPointToLatLng(this._point));
4571
+ var t = new A(this._map.containerPointToLatLng(this._startPoint), this._map.containerPointToLatLng(this._point));
4573
4572
  this._map.fitBounds(t).fire("boxzoomend", { boxZoomBounds: t });
4574
4573
  }
4575
4574
  },
@@ -4609,10 +4608,10 @@ var gt = { [R.dummyPointId]: {
4609
4608
  dragend: this._onDragEnd
4610
4609
  }, this), this._draggable.on("predrag", this._onPreDragLimit, this), e.options.worldCopyJump && (this._draggable.on("predrag", this._onPreDragWrap, this), e.on("zoomend", this._onZoomEnd, this), e.whenReady(this._onZoomEnd, this));
4611
4610
  }
4612
- V(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = [];
4611
+ H(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = [];
4613
4612
  },
4614
4613
  removeHooks: function() {
4615
- H(this._map._container, "leaflet-grab"), H(this._map._container, "leaflet-touch-drag"), this._draggable.disable();
4614
+ U(this._map._container, "leaflet-grab"), U(this._map._container, "leaflet-touch-drag"), this._draggable.disable();
4616
4615
  },
4617
4616
  moved: function() {
4618
4617
  return this._draggable && this._draggable._moved;
@@ -4623,8 +4622,8 @@ var gt = { [R.dummyPointId]: {
4623
4622
  _onDragStart: function() {
4624
4623
  var e = this._map;
4625
4624
  if (e._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
4626
- var t = M(this._map.options.maxBounds);
4627
- this._offsetLimit = A(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));
4625
+ var t = j(this._map.options.maxBounds);
4626
+ this._offsetLimit = k(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));
4628
4627
  } else this._offsetLimit = null;
4629
4628
  e.fire("movestart").fire("dragstart"), e.options.inertia && (this._positions = [], this._times = []);
4630
4629
  },
@@ -4661,7 +4660,7 @@ var gt = { [R.dummyPointId]: {
4661
4660
  else {
4662
4661
  this._prunePositions(+/* @__PURE__ */ new Date());
4663
4662
  var i = this._lastPos.subtract(this._positions[0]), a = (this._lastTime - this._times[0]) / 1e3, o = n.easeLinearity, s = i.multiplyBy(o / a), c = s.distanceTo([0, 0]), l = Math.min(n.inertiaMaxSpeed, c), u = s.multiplyBy(l / c), d = l / (n.inertiaDeceleration * o), f = u.multiplyBy(-d / 2).round();
4664
- !f.x && !f.y ? t.fire("moveend") : (f = t._limitOffset(f, t.options.maxBounds), S(function() {
4663
+ !f.x && !f.y ? t.fire("moveend") : (f = t._limitOffset(f, t.options.maxBounds), x(function() {
4665
4664
  t.panBy(f, {
4666
4665
  duration: d,
4667
4666
  easeLinearity: o,
@@ -4753,7 +4752,7 @@ var gt = { [R.dummyPointId]: {
4753
4752
  if (!(e.altKey || e.ctrlKey || e.metaKey)) {
4754
4753
  var t = e.keyCode, n = this._map, r;
4755
4754
  if (t in this._panKeys) {
4756
- if (!n._panAnim || !n._panAnim._inProgress) if (r = this._panKeys[t], e.shiftKey && (r = O(r).multiplyBy(3)), n.options.maxBounds && (r = n._limitOffset(O(r), n.options.maxBounds)), n.options.worldCopyJump) {
4755
+ if (!n._panAnim || !n._panAnim._inProgress) if (r = this._panKeys[t], e.shiftKey && (r = D(r).multiplyBy(3)), n.options.maxBounds && (r = n._limitOffset(D(r), n.options.maxBounds)), n.options.worldCopyJump) {
4757
4756
  var i = n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(r)));
4758
4757
  n.panTo(i);
4759
4758
  } else n.panBy(r);
@@ -4792,7 +4791,7 @@ var gt = { [R.dummyPointId]: {
4792
4791
  X.addInitHook("addHandler", "scrollWheelZoom", ti);
4793
4792
  var ni = 600;
4794
4793
  X.mergeOptions({
4795
- tapHold: F.touchNative && F.safari && F.mobile,
4794
+ tapHold: I.touchNative && I.safari && I.mobile,
4796
4795
  tapTolerance: 15
4797
4796
  });
4798
4797
  var ri = gn.extend({
@@ -4805,7 +4804,7 @@ var gt = { [R.dummyPointId]: {
4805
4804
  _onDown: function(e) {
4806
4805
  if (clearTimeout(this._holdTimeout), e.touches.length === 1) {
4807
4806
  var t = e.touches[0];
4808
- this._startPos = this._newPos = new D(t.clientX, t.clientY), this._holdTimeout = setTimeout(i(function() {
4807
+ this._startPos = this._newPos = new E(t.clientX, t.clientY), this._holdTimeout = setTimeout(i(function() {
4809
4808
  this._cancel(), this._isTapValid() && (K(document, "touchend", Y), K(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", t));
4810
4809
  }, this), ni), K(document, "touchend touchcancel contextmenu", this._cancel, this), K(document, "touchmove", this._onMove, this);
4811
4810
  }
@@ -4818,7 +4817,7 @@ var gt = { [R.dummyPointId]: {
4818
4817
  },
4819
4818
  _onMove: function(e) {
4820
4819
  var t = e.touches[0];
4821
- this._newPos = new D(t.clientX, t.clientY);
4820
+ this._newPos = new E(t.clientX, t.clientY);
4822
4821
  },
4823
4822
  _isTapValid: function() {
4824
4823
  return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance;
@@ -4837,15 +4836,15 @@ var gt = { [R.dummyPointId]: {
4837
4836
  }
4838
4837
  });
4839
4838
  X.addInitHook("addHandler", "tapHold", ri), X.mergeOptions({
4840
- touchZoom: F.touch,
4839
+ touchZoom: I.touch,
4841
4840
  bounceAtZoomLimits: !0
4842
4841
  });
4843
4842
  var ii = gn.extend({
4844
4843
  addHooks: function() {
4845
- V(this._map._container, "leaflet-touch-zoom"), K(this._map._container, "touchstart", this._onTouchStart, this);
4844
+ H(this._map._container, "leaflet-touch-zoom"), K(this._map._container, "touchstart", this._onTouchStart, this);
4846
4845
  },
4847
4846
  removeHooks: function() {
4848
- H(this._map._container, "leaflet-touch-zoom"), q(this._map._container, "touchstart", this._onTouchStart, this);
4847
+ U(this._map._container, "leaflet-touch-zoom"), q(this._map._container, "touchstart", this._onTouchStart, this);
4849
4848
  },
4850
4849
  _onTouchStart: function(e) {
4851
4850
  var t = this._map;
@@ -4864,12 +4863,12 @@ var gt = { [R.dummyPointId]: {
4864
4863
  if (a === 1 && o.x === 0 && o.y === 0) return;
4865
4864
  this._center = t.unproject(t.project(this._pinchStartLatLng, this._zoom).subtract(o), this._zoom);
4866
4865
  }
4867
- this._moved ||= (t._moveStart(!0, !1), !0), C(this._animRequest);
4866
+ this._moved ||= (t._moveStart(!0, !1), !0), S(this._animRequest);
4868
4867
  var s = i(t._move, t, this._center, this._zoom, {
4869
4868
  pinch: !0,
4870
4869
  round: !1
4871
4870
  }, void 0);
4872
- this._animRequest = S(s, this, !0), Y(e);
4871
+ this._animRequest = x(s, this, !0), Y(e);
4873
4872
  }
4874
4873
  },
4875
4874
  _onTouchEnd: function() {
@@ -4877,25 +4876,25 @@ var gt = { [R.dummyPointId]: {
4877
4876
  this._zooming = !1;
4878
4877
  return;
4879
4878
  }
4880
- this._zooming = !1, C(this._animRequest), q(document, "touchmove", this._onTouchMove, this), q(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));
4879
+ this._zooming = !1, S(this._animRequest), q(document, "touchmove", this._onTouchMove, this), q(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));
4881
4880
  }
4882
4881
  });
4883
- X.addInitHook("addHandler", "touchZoom", ii), X.BoxZoom = Zr, X.DoubleClickZoom = Qr, X.Drag = $r, X.Keyboard = ei, X.ScrollWheelZoom = ti, X.TapHold = ri, X.TouchZoom = ii, e.Bounds = k, e.Browser = F, e.CRS = oe, e.Canvas = Hr, e.Circle = or, e.CircleMarker = ir, e.Class = T, e.Control = Z, e.DivIcon = Fr, e.DivOverlay = Ar, e.DomEvent = an, e.DomUtil = Wt, e.Draggable = yn, e.Evented = ie, e.FeatureGroup = Yn, e.GeoJSON = fr, e.GridLayer = Lr, e.Handler = gn, e.Icon = Zn, e.ImageOverlay = wr, e.LatLng = N, e.LatLngBounds = j, e.Layer = Kn, e.LayerGroup = qn, e.LineUtil = zn, e.Map = X, e.Marker = tr, e.Mixin = _n, e.Path = rr, e.Point = D, e.PolyUtil = Cn, e.Polygon = ur, e.Polyline = cr, e.Popup = jr, e.PosAnimation = on, e.Projection = Hn, e.Rectangle = Yr, e.Renderer = $, e.SVG = qr, e.SVGOverlay = Or, e.TileLayer = Q, e.Tooltip = Nr, e.Transformation = ue, e.Util = w, e.VideoOverlay = Er, e.bind = i, e.bounds = A, e.canvas = Ur, e.circle = sr, e.circleMarker = ar, e.control = cn, e.divIcon = Ir, e.extend = n, e.featureGroup = Xn, e.geoJSON = Sr, e.geoJson = Cr, e.gridLayer = Rr, e.icon = Qn, e.imageOverlay = Tr, e.latLng = P, e.latLngBounds = M, e.layerGroup = Jn, e.map = sn, e.marker = nr, e.point = O, e.polygon = dr, e.polyline = lr, e.popup = Mr, e.rectangle = Xr, e.setOptions = p, e.stamp = o, e.svg = Jr, e.svgOverlay = kr, e.tileLayer = zr, e.tooltip = Pr, e.transformation = de, e.version = t, e.videoOverlay = Dr;
4882
+ X.addInitHook("addHandler", "touchZoom", ii), X.BoxZoom = Zr, X.DoubleClickZoom = Qr, X.Drag = $r, X.Keyboard = ei, X.ScrollWheelZoom = ti, X.TapHold = ri, X.TouchZoom = ii, e.Bounds = O, e.Browser = I, e.CRS = se, e.Canvas = Hr, e.Circle = or, e.CircleMarker = ir, e.Class = ae, e.Control = Z, e.DivIcon = Fr, e.DivOverlay = Ar, e.DomEvent = an, e.DomUtil = Wt, e.Draggable = yn, e.Evented = T, e.FeatureGroup = Yn, e.GeoJSON = fr, e.GridLayer = Lr, e.Handler = gn, e.Icon = Zn, e.ImageOverlay = wr, e.LatLng = M, e.LatLngBounds = A, e.Layer = Kn, e.LayerGroup = qn, e.LineUtil = zn, e.Map = X, e.Marker = tr, e.Mixin = _n, e.Path = rr, e.Point = E, e.PolyUtil = Cn, e.Polygon = ur, e.Polyline = cr, e.Popup = jr, e.PosAnimation = on, e.Projection = Hn, e.Rectangle = Yr, e.Renderer = $, e.SVG = qr, e.SVGOverlay = Or, e.TileLayer = Q, e.Tooltip = Nr, e.Transformation = de, e.Util = ie, e.VideoOverlay = Er, e.bind = i, e.bounds = k, e.canvas = Ur, e.circle = sr, e.circleMarker = ar, e.control = cn, e.divIcon = Ir, e.extend = n, e.featureGroup = Xn, e.geoJSON = Sr, e.geoJson = Cr, e.gridLayer = Rr, e.icon = Qn, e.imageOverlay = Tr, e.latLng = N, e.latLngBounds = j, e.layerGroup = Jn, e.map = sn, e.marker = nr, e.point = D, e.polygon = dr, e.polyline = lr, e.popup = Mr, e.rectangle = Xr, e.setOptions = p, e.stamp = o, e.svg = Jr, e.svgOverlay = kr, e.tileLayer = zr, e.tooltip = Pr, e.transformation = P, e.version = t, e.videoOverlay = Dr;
4884
4883
  var ai = window.L;
4885
4884
  e.noConflict = function() {
4886
4885
  return window.L = ai, this;
4887
4886
  }, window.L = e;
4888
4887
  }));
4889
- })), W = /* @__PURE__ */ e(kt()), At = (e, t, n = R.viewStateMarginOfError) => {
4888
+ })), W = /* @__PURE__ */ e(kt()), At = (e, t, n = z.viewStateMarginOfError) => {
4890
4889
  let r = Math.abs(e.latitude - t.latitude), i = Math.abs(e.longitude - t.longitude), a = Math.abs(e.zoom - t.zoom);
4891
4890
  return r <= n && i <= n && a <= n;
4892
4891
  }, G = (e) => [
4893
- w.Image,
4894
- w.Point,
4895
- w.PointConnection,
4896
- w.HeatMap,
4897
- w.Shape
4898
- ].includes(e), jt = (e, t = R.maxZoomEvent) => {
4892
+ C.Image,
4893
+ C.Point,
4894
+ C.PointConnection,
4895
+ C.HeatMap,
4896
+ C.Shape
4897
+ ].includes(e), jt = (e, t = z.maxZoomEvent) => {
4899
4898
  let n = e.getBounds(), r = [];
4900
4899
  e.eachLayer((e) => {
4901
4900
  "getBounds" in e && typeof e.getBounds == "function" && r.push(e.getBounds());
@@ -4932,7 +4931,7 @@ var gt = { [R.dummyPointId]: {
4932
4931
  };
4933
4932
  }, Ft = (e) => e.getZoom(), It = (e, t = "click") => {
4934
4933
  let n = W.DomEvent.on(e, t, (e) => {
4935
- if (!(e instanceof MouseEvent) || !(e.target instanceof HTMLElement) || "_stopped" in e && e._stopped || !R.allowedPassThroughTags.includes(e.target.tagName.toLowerCase())) return;
4934
+ if (!(e instanceof MouseEvent) || !(e.target instanceof HTMLElement) || "_stopped" in e && e._stopped || !z.allowedPassThroughTags.includes(e.target.tagName.toLowerCase())) return;
4936
4935
  let t = new MouseEvent(e.type, e), n = {
4937
4936
  target: e.target,
4938
4937
  display: e.target.style.display
@@ -4943,10 +4942,10 @@ var gt = { [R.dummyPointId]: {
4943
4942
  }, Lt = (e, t) => {
4944
4943
  let n = new W.LatLng(e[1], e[0]), r = new W.LatLng(t[1], t[0]);
4945
4944
  return n.distanceTo(r);
4946
- }, Rt = (e, t) => t.includes(e.properties?.name) ? R.selectedOpacity : R.notSelectedOpacity, zt = (e, t, n) => {
4945
+ }, Rt = (e, t) => t.includes(e.properties?.name) ? z.selectedOpacity : z.notSelectedOpacity, zt = (e, t, n) => {
4947
4946
  let r = e.properties?.secondName;
4948
- return t.includes(e.properties?.name) || r !== void 0 && n.includes(r) ? R.selectedOpacity : R.notSelectedOpacity;
4949
- }, Bt = (e, t) => t.some((t) => e.find((e) => e.feature?.properties?.name === t)) ? R.selectedOpacity : R.notSelectedOpacity, Vt = (e) => {
4947
+ return t.includes(e.properties?.name) || r !== void 0 && n.includes(r) ? z.selectedOpacity : z.notSelectedOpacity;
4948
+ }, Bt = (e, t) => t.some((t) => e.find((e) => e.feature?.properties?.name === t)) ? z.selectedOpacity : z.notSelectedOpacity, Vt = (e) => {
4950
4949
  if (Array.isArray(e) && e.length > 1) {
4951
4950
  let t = e.at(0), n = e.at(-1);
4952
4951
  if (!t || !n) return e;
@@ -4987,7 +4986,7 @@ var gt = { [R.dummyPointId]: {
4987
4986
  ...e.legendsData,
4988
4987
  [t]: n
4989
4988
  } }))
4990
- }), qt = (e) => e.legendsData, Jt = !1, Yt = () => Ce()(ve((e, t, n) => ({
4989
+ }), qt = (e) => e.legendsData, Jt = !1, Yt = () => Ce()(_e((e, t, n) => ({
4991
4990
  replaceState: (t, r) => {
4992
4991
  if (r) e(t);
4993
4992
  else {
@@ -4998,9 +4997,9 @@ var gt = { [R.dummyPointId]: {
4998
4997
  });
4999
4998
  }
5000
4999
  },
5001
- ...wt(e, t, n),
5002
- ...V(e, t, n),
5003
- ...Ot(e, t, n),
5000
+ ...Ct(e, t, n),
5001
+ ...H(e, t, n),
5002
+ ...Dt(e, t, n),
5004
5003
  ...Ut(e, t, n),
5005
5004
  ...Gt(e, t, n),
5006
5005
  ...Kt(e, t, n)
@@ -5008,25 +5007,25 @@ var gt = { [R.dummyPointId]: {
5008
5007
  enabled: Jt,
5009
5008
  name: "Map chart",
5010
5009
  trace: !0
5011
- })), J = _e(), Xt = (0, I.createContext)(null), Zt = ({ store: e, children: t }) => {
5012
- let n = (0, I.useRef)(e);
5010
+ })), J = Te(), Xt = (0, R.createContext)(null), Zt = ({ store: e, children: t }) => {
5011
+ let n = (0, R.useRef)(e);
5013
5012
  return n.current ||= Yt(), /* @__PURE__ */ (0, J.jsx)(Xt.Provider, {
5014
5013
  value: n.current,
5015
5014
  children: t
5016
5015
  });
5017
5016
  }, Y = (e) => {
5018
- let t = (0, I.useContext)(Xt);
5017
+ let t = (0, R.useContext)(Xt);
5019
5018
  if (t === null) throw Error("Could not find \"store\", probably a missing <StoreProvider>.");
5020
- return Me(t, e);
5021
- }, Qt = new Ct(), $t = ({ vSpec: e, vTheme: t = ae, children: n, elementSize: r, vizProperties: i }) => {
5022
- let a = we(), o = (0, I.useRef)(null), s = (0, I.useRef)({
5019
+ return ke(t, e);
5020
+ }, Qt = new St(), $t = ({ vSpec: e, vTheme: t = _, children: n, elementSize: r, vizProperties: i }) => {
5021
+ let a = we(), o = (0, R.useRef)(null), s = (0, R.useRef)({
5023
5022
  width: 0,
5024
5023
  height: 0
5025
5024
  }), c = Y((e) => e.replaceState);
5026
- return (0, I.useEffect)(() => {
5025
+ return (0, R.useEffect)(() => {
5027
5026
  if (!e || !r) return;
5028
5027
  let { forceRecompilation: n } = e;
5029
- if (!n && (0, _t.default)(o.current, e) && (0, _t.default)(r, s.current)) return;
5028
+ if (!n && (0, gt.default)(o.current, e) && (0, gt.default)(r, s.current)) return;
5030
5029
  o.current = e, s.current = r;
5031
5030
  let l = Qt.compile(e, t, r, i, a);
5032
5031
  l && c({ ...l }, !!n), delete e.forceRecompilation;
@@ -5863,7 +5862,7 @@ var gt = { [R.dummyPointId]: {
5863
5862
  } }), e.MarkerClusterGroup = t, e.MarkerCluster = n, Object.defineProperty(e, "__esModule", { value: !0 });
5864
5863
  });
5865
5864
  })))();
5866
- var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on = class e {
5865
+ var rn = (0, R.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on = class e {
5867
5866
  static encode(t, n, r) {
5868
5867
  if (r === void 0) {
5869
5868
  for (let r = 1; r <= 12; r++) {
@@ -5952,7 +5951,7 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
5952
5951
  };
5953
5952
  }
5954
5953
  }, X = (e, t) => {
5955
- let n = P(t), r = e.measures.find((e) => e.dataItem.uniqueSignature === n);
5954
+ let n = pe(t), r = e.measures.find((e) => e.dataItem.uniqueSignature === n);
5956
5955
  if (r && r.formatter) return r.formatter;
5957
5956
  }, sn = (e, t) => {
5958
5957
  let n = {
@@ -5973,7 +5972,7 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
5973
5972
  return (e - i) / s * c + o;
5974
5973
  }, cn = (e) => e.type === "Point", ln = (e, t) => {
5975
5974
  let { useCustomRanges: n, relativeRanges: r } = e.heatSettings;
5976
- return e.measureSettings?.type === fe.ByMeasure && n && !r ? un(e.heatSettings, t) : n && r ? dn(e.heatSettings) : R.heatGradient;
5975
+ return e.measureSettings?.type === l.ByMeasure && n && !r ? un(e.heatSettings, t) : n && r ? dn(e.heatSettings) : z.heatGradient;
5977
5976
  }, un = (e, t) => e.useCustomRanges && e.colorRanges?.length > 0 ? e.colorRanges.reduce((e, { value: n, color: r }) => {
5978
5977
  let i = Z({
5979
5978
  value: n,
@@ -5987,14 +5986,14 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
5987
5986
  ...e,
5988
5987
  [i]: r
5989
5988
  };
5990
- }, {}) : R.heatGradient, dn = (e) => e.useCustomRanges && e.colorRanges.length > 0 ? e.colorRanges.reduce((e, { value: t, color: n }) => ({
5989
+ }, {}) : z.heatGradient, dn = (e) => e.useCustomRanges && e.colorRanges.length > 0 ? e.colorRanges.reduce((e, { value: t, color: n }) => ({
5991
5990
  ...e,
5992
5991
  [t / 100]: n
5993
- }), {}) : R.heatGradient, fn = ({ item: e, layer: t, range: n }) => {
5992
+ }), {}) : z.heatGradient, fn = ({ item: e, layer: t, range: n }) => {
5994
5993
  let r = t.measureSettings?.type;
5995
5994
  switch (r) {
5996
- case fe.Fixed: return t.measureSettings?.value;
5997
- case fe.ByMeasure: {
5995
+ case l.Fixed: return t.measureSettings?.value;
5996
+ case l.ByMeasure: {
5998
5997
  let r = pn({
5999
5998
  item: e,
6000
5999
  layer: t
@@ -6013,93 +6012,93 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6013
6012
  default: throw Error(`astratoDataToMeasureValue not supported type: ${r}}`);
6014
6013
  }
6015
6014
  }, pn = ({ item: e, layer: t }) => {
6016
- let n = t.dataRoles[x.Measure];
6015
+ let n = t.dataRoles[F.Measure];
6017
6016
  return Number(n === void 0 ? void 0 : e[n]);
6018
6017
  }, mn = (e, t) => {
6019
- if (t.measureSettings.range === D.Custom) return {
6020
- min: t.measureSettings.minValue ?? f.measureSettings.minValue,
6021
- max: t.measureSettings.maxValue ?? f.measureSettings.maxValue
6018
+ if (t.measureSettings.range === y.Custom) return {
6019
+ min: t.measureSettings.minValue ?? ae.measureSettings.minValue,
6020
+ max: t.measureSettings.maxValue ?? ae.measureSettings.maxValue
6022
6021
  };
6023
- let n = t.dataRoles[x.Measure];
6022
+ let n = t.dataRoles[F.Measure];
6024
6023
  return n === void 0 ? {
6025
6024
  min: Infinity,
6026
6025
  max: -Infinity
6027
6026
  } : sn(e, n);
6028
6027
  }, hn = (e) => {
6029
- let t = e.dataRoles[x.Size], n = e.dataSettings?.sizeType;
6030
- if (t && _(n)) {
6028
+ let t = e.dataRoles[F.Size], n = e.dataSettings?.sizeType;
6029
+ if (t && re(n)) {
6031
6030
  let n = X(e, t);
6032
6031
  if (n) return n;
6033
6032
  }
6034
- return R.measureFormatter;
6035
- }, gn = (e, t, n) => e !== void 0 && t !== void 0 ? le(t) ? Ee(t.format, t)(e, void 0, n) : De(t, e) : null, _n = (e, t) => {
6033
+ return z.measureFormatter;
6034
+ }, gn = (e, t, n) => e !== void 0 && t !== void 0 ? m(t) ? ye(t.format, t)(e, void 0, n) : je(t, e) : null, _n = (e, t) => {
6036
6035
  switch (t.operator) {
6037
- case O.Greater: return e > t.value;
6038
- case O.GreaterEquals: return e >= t.value;
6039
- case O.Less: return e < t.value;
6040
- case O.LessEquals: return e <= t.value;
6036
+ case j.Greater: return e > t.value;
6037
+ case j.GreaterEquals: return e >= t.value;
6038
+ case j.Less: return e < t.value;
6039
+ case j.LessEquals: return e <= t.value;
6041
6040
  default: return !1;
6042
6041
  }
6043
- }, vn = (e, t) => t.ranges.find((t) => _n(e, t)) ?? h(), yn = (e, t) => {
6044
- switch (e?.length > 0 && e[0] === void 0 ? T.Count : t.aggregation) {
6045
- case T.Count: return e.length;
6046
- case T.Min: return Math.min(...e.map((e) => Number(e)));
6047
- case T.Max: return Math.max(...e.map((e) => Number(e)));
6048
- case T.Sum: return e.reduce((e, t) => e + Number(t), 0);
6049
- case T.Avg: return e.reduce((e, t) => e + Number(t), 0) / e.length;
6042
+ }, vn = (e, t) => t.ranges.find((t) => _n(e, t)) ?? a(), yn = (e, t) => {
6043
+ switch (e?.length > 0 && e[0] === void 0 ? v.Count : t.aggregation) {
6044
+ case v.Count: return e.length;
6045
+ case v.Min: return Math.min(...e.map((e) => Number(e)));
6046
+ case v.Max: return Math.max(...e.map((e) => Number(e)));
6047
+ case v.Sum: return e.reduce((e, t) => e + Number(t), 0);
6048
+ case v.Avg: return e.reduce((e, t) => e + Number(t), 0) / e.length;
6050
6049
  }
6051
- }, bn = ({ item: e, layer: t, range: r }) => {
6052
- let i = t.dataSettings?.sizeType;
6053
- switch (i) {
6054
- case n.FixedPixels: return t.dataSettings?.size;
6055
- case n.FixedDistance: return t.dataSettings?.size ? t.dataSettings?.size * 1e3 : 0;
6056
- case n.ByMeasureDistance:
6057
- case n.ByMeasurePixels: {
6058
- let n = t.dataRoles[x.Size], a = Number(n === void 0 ? void 0 : e[n]), o = t.dataSettings.sizeRange;
6050
+ }, bn = ({ item: e, layer: t, range: n }) => {
6051
+ let r = t.dataSettings?.sizeType;
6052
+ switch (r) {
6053
+ case P.FixedPixels: return t.dataSettings?.size;
6054
+ case P.FixedDistance: return t.dataSettings?.size ? t.dataSettings?.size * 1e3 : 0;
6055
+ case P.ByMeasureDistance:
6056
+ case P.ByMeasurePixels: {
6057
+ let i = t.dataRoles[F.Size], a = Number(i === void 0 ? void 0 : e[i]), s = t.dataSettings.sizeRange;
6059
6058
  if (isNaN(a)) throw Error("Error while parsing size measure, only number type is supported");
6060
- let s = Sn(i, t.type), c = a;
6061
- if (o !== b.Absolute) {
6062
- if (!r) throw Error("Input range is required for relative measure-based sizes");
6063
- c = Z({
6059
+ let c = Sn(r, t.type), l = a;
6060
+ if (s !== o.Absolute) {
6061
+ if (!n) throw Error("Input range is required for relative measure-based sizes");
6062
+ l = Z({
6064
6063
  value: a,
6065
- inputRange: r,
6066
- outputRange: s
6064
+ inputRange: n,
6065
+ outputRange: c
6067
6066
  });
6068
6067
  }
6069
- return y(i) ? c * 1e3 : c;
6068
+ return d(r) ? l * 1e3 : l;
6070
6069
  }
6071
6070
  default: throw Error(`astratoDataToSizeValue not supported type: ${t.locationType}}`);
6072
6071
  }
6073
6072
  }, xn = (e, t) => {
6074
- if (t.dataSettings.sizeRange !== b.Auto) return {
6073
+ if (t.dataSettings.sizeRange !== o.Auto) return {
6075
6074
  min: t.dataSettings?.minSize ?? 0,
6076
6075
  max: t.dataSettings?.maxSize ?? 1e3
6077
6076
  };
6078
- let n = t.dataRoles[x.Size];
6077
+ let n = t.dataRoles[F.Size];
6079
6078
  return n === void 0 ? {
6080
6079
  min: Infinity,
6081
6080
  max: -Infinity
6082
6081
  } : sn(e, n);
6083
- }, Sn = (e, t = w.Point) => {
6084
- if (y(e)) return {
6085
- min: R.minPointSizeKm,
6086
- max: R.maxPointSizeKm
6082
+ }, Sn = (e, t = C.Point) => {
6083
+ if (d(e)) return {
6084
+ min: z.minPointSizeKm,
6085
+ max: z.maxPointSizeKm
6087
6086
  };
6088
6087
  switch (t) {
6089
- case w.PointConnection: return {
6090
- min: R.minLineSize,
6091
- max: R.maxLineSize
6088
+ case C.PointConnection: return {
6089
+ min: z.minLineSize,
6090
+ max: z.maxLineSize
6092
6091
  };
6093
6092
  default: return {
6094
- min: R.minPointSize,
6095
- max: R.maxPointSize
6093
+ min: z.minPointSize,
6094
+ max: z.maxPointSize
6096
6095
  };
6097
6096
  }
6098
6097
  }, Cn = (e, t, n) => {
6099
6098
  let r = zn(e, t), i = Vn(t), a = Bn(r, t);
6100
6099
  return {
6101
6100
  type: "FeatureCollection",
6102
- features: e.items?.map((e) => t.type === w.PointConnection ? Tn({
6101
+ features: e.items?.map((e) => t.type === C.PointConnection ? Tn({
6103
6102
  item: e,
6104
6103
  layer: t,
6105
6104
  range: r,
@@ -6130,24 +6129,24 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6130
6129
  properties: An(e)
6131
6130
  } : null;
6132
6131
  }, En = (e) => Array.isArray(e) ? e.every((e) => e !== null) : e !== null, Dn = ({ item: e, layer: t }) => {
6133
- let n = t.dataRoles[x.Geo], r = t.dataRoles[x.SecondGeo];
6132
+ let n = t.dataRoles[F.Geo], r = t.dataRoles[F.SecondGeo];
6134
6133
  switch (t.locationType) {
6135
- case N.GeoJson:
6136
- case N.GeoHash:
6137
- case N.GeoPoint: return n === void 0 ? void 0 : e[n];
6138
- case N.LatLng: return [r === void 0 ? void 0 : e[r], n === void 0 ? void 0 : e[n]];
6134
+ case c.GeoJson:
6135
+ case c.GeoHash:
6136
+ case c.GeoPoint: return n === void 0 ? void 0 : e[n];
6137
+ case c.LatLng: return [r === void 0 ? void 0 : e[r], n === void 0 ? void 0 : e[n]];
6139
6138
  }
6140
6139
  }, On = ({ item: e, layer: t }) => {
6141
6140
  if (!("secondLocationType" in t)) throw Error("secondLocationType is missing in layer");
6142
- let n = t.dataRoles[x.ThirdGeo], r = t.dataRoles[x.FourthGeo];
6141
+ let n = t.dataRoles[F.ThirdGeo], r = t.dataRoles[F.FourthGeo];
6143
6142
  switch (t.secondLocationType) {
6144
- case N.GeoJson:
6145
- case N.GeoHash:
6146
- case N.GeoPoint: return n === void 0 ? void 0 : e[n];
6147
- case N.LatLng: return [r === void 0 ? void 0 : e[r], n === void 0 ? void 0 : e[n]];
6143
+ case c.GeoJson:
6144
+ case c.GeoHash:
6145
+ case c.GeoPoint: return n === void 0 ? void 0 : e[n];
6146
+ case c.LatLng: return [r === void 0 ? void 0 : e[r], n === void 0 ? void 0 : e[n]];
6148
6147
  }
6149
6148
  }, kn = ({ item: e, layer: t }) => {
6150
- let n = e[d(t.dimensions?.[0].dataItem)];
6149
+ let n = e[D(t.dimensions?.[0].dataItem)];
6151
6150
  if (n === void 0) throw Error("Dimension value is undefined");
6152
6151
  return n;
6153
6152
  }, An = (e) => {
@@ -6155,16 +6154,16 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6155
6154
  if (n === null) throw TypeError("Cannot read a null coloring result");
6156
6155
  let { colorValue: r, colorFieldId: i } = n, a = {};
6157
6156
  switch (e.layer.type) {
6158
- case w.Point:
6157
+ case C.Point:
6159
6158
  a = jn(e);
6160
6159
  break;
6161
- case w.HeatMap:
6160
+ case C.HeatMap:
6162
6161
  a = Mn(e);
6163
6162
  break;
6164
- case w.PointConnection:
6163
+ case C.PointConnection:
6165
6164
  a = Pn(e);
6166
6165
  break;
6167
- case w.Shape:
6166
+ case C.Shape:
6168
6167
  a = Nn(e);
6169
6168
  break;
6170
6169
  }
@@ -6178,10 +6177,10 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6178
6177
  let { layer: t, item: n, measureFormatter: r } = e, i = bn(e), a = t.dataSettings?.sizeType, o = {
6179
6178
  propValue: i,
6180
6179
  formatterDatum: n
6181
- }, s = t.dataRoles[x.Size];
6182
- s !== void 0 && n[s] !== void 0 && _(a) && (o.value = Number(n[s]));
6183
- let c = (t.dataRoles[x.SupportingMeasures] ?? []).filter((e) => (t.tooltipSupportingMeasuresDataItemIds ?? [])?.includes(e)).map((e) => {
6184
- let r = (t.supportingMeasures ?? []).find((t) => d(t.dataItem) === e);
6180
+ }, s = t.dataRoles[F.Size];
6181
+ s !== void 0 && n[s] !== void 0 && re(a) && (o.value = Number(n[s]));
6182
+ let c = (t.dataRoles[F.SupportingMeasures] ?? []).filter((e) => (t.tooltipSupportingMeasuresDataItemIds ?? [])?.includes(e)).map((e) => {
6183
+ let r = (t.supportingMeasures ?? []).find((t) => D(t.dataItem) === e);
6185
6184
  if (!r) return;
6186
6185
  let i = r.label ?? "";
6187
6186
  return r.customLabel?.enabled && r.customLabel.value && (i = r.customLabel.value), {
@@ -6193,7 +6192,7 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6193
6192
  return c.length > 0 && (o.supportingMeasureValues = c), o.valueFormatter = r, o;
6194
6193
  }, Mn = (e) => {
6195
6194
  let t = fn(e), n = t;
6196
- return e.layer.measureSettings.type === fe.ByMeasure && (n = pn(e)), {
6195
+ return e.layer.measureSettings.type === l.ByMeasure && (n = pn(e)), {
6197
6196
  value: n,
6198
6197
  propValue: t,
6199
6198
  gradient: e.gradient
@@ -6203,7 +6202,7 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6203
6202
  strokeColor: e.layer.strokeColor,
6204
6203
  strokeWidth: e.layer.strokeWidth
6205
6204
  }), Pn = (e) => {
6206
- let t = jn(e), n = d(e.layer.dimensions?.[1].dataItem), r = e.item[n];
6205
+ let t = jn(e), n = D(e.layer.dimensions?.[1].dataItem), r = e.item[n];
6207
6206
  if (r === void 0) throw Error("Second dimension value is undefined");
6208
6207
  return {
6209
6208
  ...t,
@@ -6211,16 +6210,16 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6211
6210
  };
6212
6211
  }, Fn = (e, t) => {
6213
6212
  switch (t) {
6214
- case N.GeoPoint:
6213
+ case c.GeoPoint:
6215
6214
  if (typeof e != "string") throw Error("Geo point data can only be type string", { cause: e });
6216
6215
  return {
6217
6216
  type: "Point",
6218
6217
  coordinates: JSON.parse(e)
6219
6218
  };
6220
- case N.GeoJson:
6219
+ case c.GeoJson:
6221
6220
  if (typeof e != "object" || !e) throw Error("Geo Json data can only be type object", { cause: e });
6222
6221
  return e;
6223
- case N.GeoHash: {
6222
+ case c.GeoHash: {
6224
6223
  if (typeof e != "string") throw Error("Geo hash data can only be type string", { cause: e });
6225
6224
  let { lat: t, lon: n } = on.decode(e);
6226
6225
  return {
@@ -6228,7 +6227,7 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6228
6227
  coordinates: [n, t]
6229
6228
  };
6230
6229
  }
6231
- case N.LatLng:
6230
+ case c.LatLng:
6232
6231
  if (!Array.isArray(e)) throw Error("Geo location data can only be numbers[]");
6233
6232
  return {
6234
6233
  type: "Point",
@@ -6242,11 +6241,11 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6242
6241
  type: "LineString",
6243
6242
  coordinates: [[...e.coordinates], [...t.coordinates]]
6244
6243
  };
6245
- }, Ln = ({ item: e, colorGetter: t }) => t(e), Rn = ({ item: e, layer: t }, n) => n && t?.coloring?.type === a.Gradient ? `${e[n]}` : "", zn = (e, t) => {
6244
+ }, Ln = ({ item: e, colorGetter: t }) => t(e), Rn = ({ item: e, layer: t }, r) => r && t?.coloring?.type === n.Gradient ? `${e[r]}` : "", zn = (e, t) => {
6246
6245
  switch (t.type) {
6247
- case w.Point:
6248
- case w.PointConnection: return xn(e, t);
6249
- case w.HeatMap: return mn(e, t);
6246
+ case C.Point:
6247
+ case C.PointConnection: return xn(e, t);
6248
+ case C.HeatMap: return mn(e, t);
6250
6249
  default: return {
6251
6250
  min: 0,
6252
6251
  max: 0
@@ -6254,27 +6253,27 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6254
6253
  }
6255
6254
  }, Bn = (e, t) => {
6256
6255
  switch (t.type) {
6257
- case w.HeatMap: return ln(t, e);
6256
+ case C.HeatMap: return ln(t, e);
6258
6257
  default: return {};
6259
6258
  }
6260
6259
  }, Vn = (e) => {
6261
6260
  switch (e.type) {
6262
- case w.Point: return hn(e);
6263
- default: return R.measureFormatter;
6261
+ case C.Point: return hn(e);
6262
+ default: return z.measureFormatter;
6264
6263
  }
6265
- }, Hn = ({ data: e, layer: t, isDataValid: n, colorGetter: r }, i) => (0, I.useMemo)(() => {
6264
+ }, Hn = ({ data: e, layer: t, isDataValid: n, colorGetter: r }, i) => (0, R.useMemo)(() => {
6266
6265
  if (n) {
6267
6266
  if (e === null) throw TypeError("Cannot convert missing layer data");
6268
6267
  return Cn(e, t, r);
6269
6268
  }
6270
6269
  return null;
6271
- }, i), Un = te("use-force-reload", "#9c4ce7"), Wn = (e) => {
6272
- let t = Te(), n = (0, I.useRef)(null), [r, i] = (0, I.useState)(null), a = () => {
6270
+ }, i), Un = ie("use-force-reload", "#9c4ce7"), Wn = (e) => {
6271
+ let t = Pe(), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(null), a = () => {
6273
6272
  n.current = r;
6274
6273
  }, o = n.current !== r;
6275
- return (0, I.useEffect)(() => {
6274
+ return (0, R.useEffect)(() => {
6276
6275
  Un.debug("subscribe to refresh data stream");
6277
- let e = t.daedalus.getEvents({ filterFn: (e) => e.type === ht.DaedalusEventType.REFRESH_DATA && (!e.objectId || e.objectId === t.objectId) }).pipe(pt(t.getEvents({ type: Re.MANUAL_DATA_UPDATED }), t.daedalus.getEvents({ type: "grouped-dimension-level-changed" }))).subscribe(i);
6276
+ let e = t.daedalus.getEvents({ filterFn: (e) => e.type === mt.DaedalusEventType.REFRESH_DATA && (!e.objectId || e.objectId === t.objectId) }).pipe(ft(t.getEvents({ type: Le.MANUAL_DATA_UPDATED }), t.daedalus.getEvents({ type: "grouped-dimension-level-changed" }))).subscribe(i);
6278
6277
  return () => {
6279
6278
  Un.debug("unsubscribe from refresh data stream"), e.unsubscribe();
6280
6279
  };
@@ -6284,22 +6283,22 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6284
6283
  resetForceState: a
6285
6284
  };
6286
6285
  }, Gn = ({ mapVSpec: e, layer: t }) => {
6287
- let n = Te(), [r, i] = (0, I.useState)([]), { forceState: a } = Wn([]), o = t && ce(t) ? c(t.dimensions, t.measures) : "", s = et({
6286
+ let n = Pe(), [r, i] = (0, R.useState)([]), { forceState: a } = Wn([]), o = t && A(t) ? he(t.dimensions, t.measures) : "", s = $e({
6288
6287
  vSpec: e,
6289
6288
  source: t
6290
6289
  }, [o, a]);
6291
- return (0, I.useEffect)(() => {
6292
- i(Ae(s, n.engine));
6290
+ return (0, R.useEffect)(() => {
6291
+ i(Me(s, n.engine));
6293
6292
  }, [s]), r;
6294
6293
  }, Kn = (e, t) => () => {
6295
- let n = m(e);
6296
- return ((s(e) && e.limiting?.geoIntersect) ?? R.geoIntersect ? !!t : !0) && n === null;
6294
+ let n = S(e);
6295
+ return ((ne(e) && e.limiting?.geoIntersect) ?? z.geoIntersect ? !!t : !0) && n === null;
6297
6296
  }, qn = (e, t) => {
6298
6297
  if (e.items.length === 0) return !0;
6299
- let n = e.items[0], r = [...t.measures.map((e) => d(e.dataItem)), ...t.dimensions.map((e) => d(e.dataItem))], i = Object.keys(n);
6298
+ let n = e.items[0], r = [...t.measures.map((e) => D(e.dataItem)), ...t.dimensions.map((e) => D(e.dataItem))], i = Object.keys(n);
6300
6299
  return r.every((e) => i.includes(e));
6301
- }, Jn = (e) => e === R.dummyPointId, Yn = (e) => {
6302
- let t = gt[e].dimension, n = gt[e].geoMeasure, r = gt[e].sizeMeasure, i = gt[e].colorMeasure, a = d(t.dataItem), o = d(n.dataItem), s = d(r.dataItem), c = d(i.dataItem);
6300
+ }, Jn = (e) => e === z.dummyPointId, Yn = (e) => {
6301
+ let t = ht[e].dimension, n = ht[e].geoMeasure, r = ht[e].sizeMeasure, i = ht[e].colorMeasure, a = D(t.dataItem), o = D(n.dataItem), s = D(r.dataItem), c = D(i.dataItem);
6303
6302
  return {
6304
6303
  fields: [
6305
6304
  {
@@ -6569,11 +6568,11 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6569
6568
  };
6570
6569
  }, Xn = class {
6571
6570
  payload;
6572
- action = Ze.LayerDataChanged;
6571
+ action = Xe.LayerDataChanged;
6573
6572
  constructor(e) {
6574
6573
  this.payload = e;
6575
6574
  }
6576
- }, Zn = {}, Qn = (e, t) => Fe(e) ? t[e.dataItemId] : e, $n = (e, t) => ({
6575
+ }, Zn = {}, Qn = (e, t) => s(e) ? t[e.dataItemId] : e, $n = (e, t) => ({
6577
6576
  ...e,
6578
6577
  value: Qn(e.value, t),
6579
6578
  secondValue: Qn(e.secondValue, t)
@@ -6583,28 +6582,28 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6583
6582
  secondValue: Qn(e.secondValue, t)
6584
6583
  }), tr = (e, t, n) => {
6585
6584
  if (t?.overwrites?.length && n && e[n] !== void 0) {
6586
- let r = t?.overwrites.find((t) => Qe(er(t, e), e[n]));
6585
+ let r = t?.overwrites.find((t) => Ze(er(t, e), e[n]));
6587
6586
  if (r) return r.color;
6588
6587
  }
6589
6588
  if (t?.rules?.length) {
6590
- let n = t?.rules.find((t) => F($n(t, e), Number(e[t.dataItemId])));
6589
+ let n = t?.rules.find((t) => I($n(t, e), Number(e[t.dataItemId])));
6591
6590
  if (n) return n.color;
6592
6591
  }
6593
6592
  return null;
6594
- }, nr = (e, t, n, r) => {
6595
- if (t?.type === a.Single || n === "") return () => t?.color;
6596
- if (t?.type === a.Categorical) return rr(e, t, n, r);
6597
- if (t?.type === a.Gradient) return ir(e, t, n, r);
6593
+ }, nr = (e, t, r, i) => {
6594
+ if (t?.type === n.Single || r === "") return () => t?.color;
6595
+ if (t?.type === n.Categorical) return rr(e, t, r, i);
6596
+ if (t?.type === n.Gradient) return ir(e, t, r, i);
6598
6597
  }, rr = (e, t, n, r) => {
6599
6598
  let i = ar(t, r);
6600
6599
  if (t.persistentColors) return (e) => {
6601
- let t = $e(String(e), Zn);
6600
+ let t = Qe(String(e), Zn);
6602
6601
  return i[t % i.length];
6603
6602
  };
6604
- let a = e.items.map((e) => `${e[String(n)]}`).sort((e, t) => e.localeCompare(t)), o = at().domain(a).range(i);
6603
+ let a = e.items.map((e) => `${e[String(n)]}`).sort((e, t) => e.localeCompare(t)), o = it().domain(a).range(i);
6605
6604
  return (e) => o(String(e));
6606
6605
  }, ir = (e, t, n, r) => {
6607
- let i = t.gradientAuto ?? v.gradientAuto, a = i ? void 0 : t.gradientMin, o = i ? void 0 : t.gradientMax, s = typeof a == "number", c = typeof o == "number", l = typeof a == "number" ? a : 0x56bc75e2d63100000, u = typeof o == "number" ? o : 0;
6606
+ let i = t.gradientAuto ?? ee.gradientAuto, a = i ? void 0 : t.gradientMin, o = i ? void 0 : t.gradientMax, s = typeof a == "number", c = typeof o == "number", l = typeof a == "number" ? a : 0x56bc75e2d63100000, u = typeof o == "number" ? o : 0;
6608
6607
  if (!s || !c) {
6609
6608
  let t = e.items;
6610
6609
  for (let e = 0; e < t.length; e++) {
@@ -6612,90 +6611,90 @@ var rn = (0, I.createContext)(null), an = "0123456789bcdefghjkmnpqrstuvwxyz", on
6612
6611
  r > u && (u = r), r < l && (l = r);
6613
6612
  }
6614
6613
  }
6615
- let d = ar(t, r).slice().reverse(), f = (u - l) / (d.length - 1), p = d.map((e, t) => l + t * f), m = ot().domain(p).range(d);
6614
+ let d = ar(t, r).slice().reverse(), f = (u - l) / (d.length - 1), p = d.map((e, t) => l + t * f), m = at().domain(p).range(d);
6616
6615
  return (e) => e == null ? void 0 : m(Number(e));
6617
6616
  }, ar = (e, t) => {
6618
- let n = e.type === a.Gradient, r = e.type === a.PerEachMeasure, i = e.customPalette ?? v.customPalette;
6619
- n && (i = e.customGradient ?? v.customGradient);
6620
- let o = n ? t.colors.defaultGradient ?? ie.id : t.colors.defaultCategorical ?? pe.id, s = e.palette ?? o, c = M(e.type, t).concat(i ? [i] : []).find((e) => e.id === s)?.colors, l = n ? ie.colors : pe.colors;
6621
- return c ?? (r ? qe : l);
6617
+ let r = e.type === n.Gradient, i = e.type === n.PerEachMeasure, a = e.customPalette ?? ee.customPalette;
6618
+ r && (a = e.customGradient ?? ee.customGradient);
6619
+ let o = r ? t.colors.defaultGradient ?? fe.id : t.colors.defaultCategorical ?? me.id, s = e.palette ?? o, c = se(e.type, t).concat(a ? [a] : []).find((e) => e.id === s)?.colors, l = r ? fe.colors : me.colors;
6620
+ return c ?? (i ? qe : l);
6622
6621
  }, or = (e, t) => {
6623
- let { dimensions: n = [], measures: r = [] } = e;
6622
+ let { dimensions: r = [], measures: i = [] } = e;
6624
6623
  switch (t?.type) {
6625
- case a.Categorical: {
6626
- if (!t?.fieldId) return d(n[0].dataItem);
6627
- let e = n.find((e) => t.fieldId === e.dataItem.internalKey);
6628
- return e ? d(e.dataItem) : t?.fieldId;
6624
+ case n.Categorical: {
6625
+ if (!t?.fieldId) return D(r[0].dataItem);
6626
+ let e = r.find((e) => t.fieldId === e.dataItem.internalKey);
6627
+ return e ? D(e.dataItem) : t?.fieldId;
6629
6628
  }
6630
- case a.Gradient: {
6631
- let e = r.find((e) => t.fieldId === e.dataItem.internalKey ? t.measureAggregation || e.aggregation?.funcName ? t.measureAggregation === e.aggregation?.funcName : !0 : !1);
6632
- return e ? d(e.dataItem) : t?.fieldId;
6629
+ case n.Gradient: {
6630
+ let e = i.find((e) => t.fieldId === e.dataItem.internalKey ? t.measureAggregation || e.aggregation?.funcName ? t.measureAggregation === e.aggregation?.funcName : !0 : !1);
6631
+ return e ? D(e.dataItem) : t?.fieldId;
6633
6632
  }
6634
6633
  default: return null;
6635
6634
  }
6636
6635
  }, sr = (e) => {
6637
6636
  let { dimensions: t = [] } = e;
6638
- return d(t[0].dataItem);
6639
- }, cr = (0, I.createContext)(null), lr = () => (0, I.useContext)(cr), ur = ({ vSpec: e, availableFields: t, data: n, layer: r, isDataValid: i }, s) => {
6640
- let c = lr() || ae;
6641
- return (0, I.useMemo)(() => {
6642
- let s = r.coloring;
6643
- if (i) {
6644
- if (n === null) throw TypeError("Cannot color missing layer data");
6645
- let i = or(r, s), l = sr(r), d = nr(n, s, i, c), f = e.referencedData[String(i)], p = t.find((e) => e.key === f), m = null;
6646
- if (p && o(p)) {
6647
- let t = p.dimension?.fieldKey;
6648
- m = u(e.referencedData, t);
6637
+ return D(t[0].dataItem);
6638
+ }, cr = (0, R.createContext)(null), lr = () => (0, R.useContext)(cr), ur = ({ vSpec: e, availableFields: t, data: r, layer: i, isDataValid: a }, o) => {
6639
+ let s = lr() || _;
6640
+ return (0, R.useMemo)(() => {
6641
+ let o = i.coloring;
6642
+ if (a) {
6643
+ if (r === null) throw TypeError("Cannot color missing layer data");
6644
+ let a = or(i, o), c = sr(i), l = nr(r, o, a, s), u = e.referencedData[String(a)], d = t.find((e) => e.key === u), f = null;
6645
+ if (d && w(d)) {
6646
+ let t = d.dimension?.fieldKey;
6647
+ f = ue(e.referencedData, t);
6649
6648
  }
6650
6649
  return (e) => {
6651
- let t = tr(e, s, l), n = s?.type === a.Categorical && i && m ? m : i, r = t;
6650
+ let t = tr(e, o, c), r = o?.type === n.Categorical && a && f ? f : a, i = t;
6652
6651
  if (t === null) {
6653
- if (!d) throw TypeError("Cannot apply an undefined color scale");
6654
- r = d(e[String(n)]);
6652
+ if (!l) throw TypeError("Cannot apply an undefined color scale");
6653
+ i = l(e[String(r)]);
6655
6654
  }
6656
6655
  return {
6657
- colorValue: r,
6658
- colorFieldId: i
6656
+ colorValue: i,
6657
+ colorFieldId: a
6659
6658
  };
6660
6659
  };
6661
6660
  }
6662
6661
  return () => null;
6663
- }, s);
6664
- }, dr = [w.Shape];
6662
+ }, o);
6663
+ }, dr = [C.Shape];
6665
6664
  function fr(e) {
6666
6665
  return "legendSettings" in e && e?.legendSettings !== void 0;
6667
6666
  }
6668
6667
  var pr = (e) => {
6669
6668
  if (!fr(e) || !e.legendSettings?.enabled) return !1;
6670
6669
  let t = e?.coloring;
6671
- return t?.type !== a.Gradient || !dr.includes(e.type) ? !1 : !!t.fieldId;
6670
+ return t?.type !== n.Gradient || !dr.includes(e.type) ? !1 : !!t.fieldId;
6672
6671
  }, mr = (e) => {
6673
6672
  if (!e) return !1;
6674
6673
  switch (e.type) {
6675
- case a.Gradient: return typeof e.minValue == "number" && typeof e.maxValue == "number" && e.minValue <= e.maxValue && Array.isArray(e.colors);
6674
+ case n.Gradient: return typeof e.minValue == "number" && typeof e.maxValue == "number" && e.minValue <= e.maxValue && Array.isArray(e.colors);
6676
6675
  default: return !1;
6677
6676
  }
6678
- }, hr = (e, t, n) => {
6679
- let r = e?.coloring;
6680
- if (!r) return null;
6681
- let i = or(e, r);
6677
+ }, hr = (e, t, r) => {
6678
+ let i = e?.coloring;
6682
6679
  if (!i) return null;
6683
- switch (r.type) {
6684
- case a.Gradient: return gr(r, t, i, n);
6685
- default: throw Error(`Unsupported legend type: ${r.type}`);
6680
+ let a = or(e, i);
6681
+ if (!a) return null;
6682
+ switch (i.type) {
6683
+ case n.Gradient: return gr(i, t, a, r);
6684
+ default: throw Error(`Unsupported legend type: ${i.type}`);
6686
6685
  }
6687
- }, gr = (e, t, n, r) => {
6688
- let i = Infinity, o = -Infinity, s = e.gradientAuto ?? v.gradientAuto, c = s ? void 0 : e.gradientMin, l = s ? void 0 : e.gradientMax;
6689
- typeof c == "number" && typeof l == "number" ? (i = c, o = l) : {min: i, max: o} = sn(t, n);
6690
- let u = ar(e, r).slice().reverse();
6686
+ }, gr = (e, t, r, i) => {
6687
+ let a = Infinity, o = -Infinity, s = e.gradientAuto ?? ee.gradientAuto, c = s ? void 0 : e.gradientMin, l = s ? void 0 : e.gradientMax;
6688
+ typeof c == "number" && typeof l == "number" ? (a = c, o = l) : {min: a, max: o} = sn(t, r);
6689
+ let u = ar(e, i).slice().reverse();
6691
6690
  return {
6692
- type: a.Gradient,
6693
- minValue: i,
6691
+ type: n.Gradient,
6692
+ minValue: a,
6694
6693
  maxValue: o,
6695
6694
  colors: u
6696
6695
  };
6697
6696
  }, _r = (e) => e === "left" || e === "right", vr = ({ data: e, layer: t, isDataValid: n }, r = []) => {
6698
- let i = lr() || ae, a = Y((e) => e.setLegendData), o = (0, I.useMemo)(() => {
6697
+ let i = lr() || _, a = Y((e) => e.setLegendData), o = (0, R.useMemo)(() => {
6699
6698
  if (n && pr(t)) {
6700
6699
  if (e === null) throw TypeError("Cannot create a legend for missing layer data");
6701
6700
  return hr(t, e, i);
@@ -6706,37 +6705,37 @@ var pr = (e) => {
6706
6705
  n,
6707
6706
  ...r
6708
6707
  ]);
6709
- (0, I.useEffect)(() => {
6708
+ (0, R.useEffect)(() => {
6710
6709
  o && mr(o) && a(t.id, o);
6711
6710
  }, [o]);
6712
- }, yr = () => (0, I.useContext)(rn), br = (e, t) => {
6713
- let n = (0, I.useRef)([]), r = yr(), i = (0, I.useRef)(void 0), [a, o] = (0, I.useState)(null), c = Y(Wt), l = (s(e) && e.limiting?.geoIntersect) ?? !1;
6714
- return (0, I.useEffect)(() => {
6715
- if (r && (n.current = [], o(null), l)) {
6711
+ }, yr = () => (0, R.useContext)(rn), br = (e, t) => {
6712
+ let n = (0, R.useRef)([]), r = yr(), i = (0, R.useRef)(void 0), [a, o] = (0, R.useState)(null), s = Y(Wt), c = (ne(e) && e.limiting?.geoIntersect) ?? !1;
6713
+ return (0, R.useEffect)(() => {
6714
+ if (r && (n.current = [], o(null), c)) {
6716
6715
  let e = Pt(r).bounds;
6717
6716
  e && (n.current = [e], o(e));
6718
6717
  }
6719
- }, [r, l]), (0, I.useEffect)(() => {
6718
+ }, [r, c]), (0, R.useEffect)(() => {
6720
6719
  let e = n.current.at(-1);
6721
- return l && e && c?.bounds && !(0, _t.default)(c.bounds, e) && (clearTimeout(i.current), n.current.push(c.bounds), i.current = setTimeout(() => {
6720
+ return c && e && s?.bounds && !(0, gt.default)(s.bounds, e) && (clearTimeout(i.current), n.current.push(s.bounds), i.current = setTimeout(() => {
6722
6721
  n.current = Vt(n.current), o(n.current.at(0) ?? null);
6723
6722
  }, 1e3)), () => clearTimeout(i.current);
6724
- }, [c, ...t]), a;
6725
- }, xr = (0, I.createContext)(null), Sr = () => (0, I.useContext)(xr), Cr = ({ layer: e }) => {
6723
+ }, [s, ...t]), a;
6724
+ }, xr = (0, R.createContext)(null), Sr = () => (0, R.useContext)(xr), Cr = ({ layer: e }) => {
6726
6725
  let t = Sr();
6727
6726
  if (t === null) throw TypeError("MapVSpecContext is required");
6728
- let n = xe(), { forceFetch: r, forceState: i, resetForceState: a } = Wn([]), o = Jn(e.id), s = tt([]), c = [e, o], l = br(e, c), u = [
6727
+ let n = xe(), { forceFetch: r, forceState: i, resetForceState: a } = Wn([]), o = Jn(e.id), s = et([]), c = [e, o], l = br(e, c), u = [
6729
6728
  e,
6730
6729
  o,
6731
6730
  l
6732
- ], d = (0, I.useCallback)(Kn(e, l), u), f = (0, I.useCallback)(() => !o && d(), u), p = et({
6731
+ ], d = (0, R.useCallback)(Kn(e, l), u), f = (0, R.useCallback)(() => !o && d(), u), p = $e({
6733
6732
  vSpec: t,
6734
6733
  source: e
6735
- }, c), m = nt({
6734
+ }, c), m = tt({
6736
6735
  vSpec: p,
6737
6736
  isVSpecValid: f,
6738
- getQueryLimit: () => R.limitQuery,
6739
- customQueryBuilders: [(0, I.useCallback)((t) => l ? S(t, e.measures, l) : t, [u])]
6737
+ getQueryLimit: () => z.limitQuery,
6738
+ customQueryBuilders: [(0, R.useCallback)((t) => l ? k(t, e.measures, l) : t, [u])]
6740
6739
  }, [
6741
6740
  p,
6742
6741
  s,
@@ -6744,7 +6743,7 @@ var pr = (e) => {
6744
6743
  ]), h = Gn({
6745
6744
  mapVSpec: t,
6746
6745
  layer: e
6747
- }), [g] = it({
6746
+ }), [g] = rt({
6748
6747
  query: m,
6749
6748
  vSpec: p,
6750
6749
  availableFields: h,
@@ -6754,10 +6753,10 @@ var pr = (e) => {
6754
6753
  h,
6755
6754
  i
6756
6755
  ]);
6757
- (0, I.useEffect)(() => {
6756
+ (0, R.useEffect)(() => {
6758
6757
  r && a(), n.next(new Xn(e.id));
6759
6758
  }, [g]);
6760
- let _ = [g, e], v = (0, I.useMemo)(() => g !== null && f() && qn(g, e), _), y = o ? Yn(R.dummyPointId) : g, b = ur({
6759
+ let _ = [g, e], v = (0, R.useMemo)(() => g !== null && f() && qn(g, e), _), y = o ? Yn(z.dummyPointId) : g, b = ur({
6761
6760
  vSpec: t,
6762
6761
  availableFields: h,
6763
6762
  data: y,
@@ -6775,8 +6774,8 @@ var pr = (e) => {
6775
6774
  isDataValid: v || o
6776
6775
  }, _);
6777
6776
  }, wr = (e, t) => {
6778
- let n = yr(), r = (0, I.useRef)(void 0);
6779
- return (0, I.useEffect)(() => {
6777
+ let n = yr(), r = (0, R.useRef)(void 0);
6778
+ return (0, R.useEffect)(() => {
6780
6779
  if (!n) return;
6781
6780
  let t = e();
6782
6781
  return n.addLayer(t), r.current = t, () => {
@@ -6791,8 +6790,8 @@ var pr = (e) => {
6791
6790
  }
6792
6791
  return r;
6793
6792
  }, r), Er = (e) => e?.showConditionally?.enabled ?? !1, Dr = (e, t) => !e.showConditionally || t <= e.showConditionally.maxZoom && t >= e.showConditionally.minZoom, Or = (e) => {
6794
- let t = Y(Tt), [n, r] = (0, I.useState)([]), i = (0, I.useMemo)(() => t.some(Er), [t]);
6795
- return (0, I.useEffect)(() => {
6793
+ let t = Y(wt), [n, r] = (0, R.useState)([]), i = (0, R.useMemo)(() => t.some(Er), [t]);
6794
+ return (0, R.useEffect)(() => {
6796
6795
  if (!e) return;
6797
6796
  if (!i) {
6798
6797
  r(t);
@@ -6802,8 +6801,8 @@ var pr = (e) => {
6802
6801
  let n = Ft(e), i = t.filter((e) => !Er(e) || Dr(e, n));
6803
6802
  r(i.map((e) => ({ ...e })));
6804
6803
  };
6805
- return n(), e.on(R.zoomChangeEvent, n), () => {
6806
- e.off(R.zoomChangeEvent, n);
6804
+ return n(), e.on(z.zoomChangeEvent, n), () => {
6805
+ e.off(z.zoomChangeEvent, n);
6807
6806
  };
6808
6807
  }, [
6809
6808
  e,
@@ -6816,28 +6815,28 @@ var pr = (e) => {
6816
6815
  let n = Gn({
6817
6816
  mapVSpec: t,
6818
6817
  layer: e
6819
- }), r = (0, I.useMemo)(() => n.filter(p), [n]), [i, a] = (0, I.useState)(e.dimensions.map(() => ({ state: {
6818
+ }), r = (0, R.useMemo)(() => n.filter(M), [n]), [i, a] = (0, R.useState)(e.dimensions.map(() => ({ state: {
6820
6819
  pending: null,
6821
6820
  applied: null
6822
- } }))), o = Oe((0, I.useMemo)(() => e.dimensions.map((e) => ({
6821
+ } }))), o = Ee((0, R.useMemo)(() => e.dimensions.map((e) => ({
6823
6822
  dataItem: e.dataItem,
6824
6823
  datePart: e.datePart ?? void 0,
6825
- operator: ht.FilterOperator.InList
6824
+ operator: mt.FilterOperator.InList
6826
6825
  })), [e.dimensions]), {
6827
6826
  disabled: !1,
6828
6827
  ignore: !1,
6829
6828
  ignoreApplied: !0,
6830
6829
  ignorePending: !1,
6831
- state: ht.SelectionState.PENDING
6830
+ state: mt.SelectionState.PENDING
6832
6831
  }, r);
6833
- return (0, I.useEffect)(() => {
6832
+ return (0, R.useEffect)(() => {
6834
6833
  o.some((e, t) => {
6835
6834
  let n = i[t];
6836
- return e.fieldKey !== null && (!(0, _t.default)(n.state, e.state) || e.fieldKey !== n.fieldKey);
6835
+ return e.fieldKey !== null && (!(0, gt.default)(n.state, e.state) || e.fieldKey !== n.fieldKey);
6837
6836
  }) && a(o);
6838
6837
  }, [o]), i;
6839
- }, Ar = new Ye(Ge.fontLight), jr = new Ye(Ge.fontDark), Mr = (e) => {
6840
- let t = e?.isColored && e.colorType !== A.Backdrop, n = e?.isColored && e.colorType === A.Backdrop;
6838
+ }, Ar = new Je(ze.fontLight), jr = new Je(ze.fontDark), Mr = (e) => {
6839
+ let t = e?.isColored && e.colorType !== E.Backdrop, n = e?.isColored && e.colorType === E.Backdrop;
6841
6840
  return {
6842
6841
  color: t ? e.textColor ?? void 0 : void 0,
6843
6842
  fontSize: typeof e?.fontSize == "number" ? e.fontSize : void 0,
@@ -6848,11 +6847,11 @@ var pr = (e) => {
6848
6847
  };
6849
6848
  }, Nr = (e, t) => {
6850
6849
  if (!e?.isColored) return {};
6851
- if (e.colorType !== A.Backdrop) return { color: e.textColor ?? t };
6850
+ if (e.colorType !== E.Backdrop) return { color: e.textColor ?? t };
6852
6851
  let n = e.backdropColor ?? t;
6853
6852
  return {
6854
6853
  backgroundColor: n,
6855
- color: new Ye(n).betterContrast(Ar, jr).rgb()
6854
+ color: new Je(n).betterContrast(Ar, jr).rgb()
6856
6855
  };
6857
6856
  }, Pr = "...", Fr = (e, t) => !t || e.length <= t ? e : t <= 3 ? Pr.slice(0, t) : `${e.slice(0, t - 3)}${Pr}`, Ir = (e, t) => e.flatMap((e) => {
6858
6857
  if (!cn(e.geometry) || !e.properties.name) return [];
@@ -6860,12 +6859,12 @@ var pr = (e) => {
6860
6859
  return [{
6861
6860
  latLng: (0, W.latLng)(r, n),
6862
6861
  text: Fr(i, a),
6863
- ...Nr(t, e.properties.color ?? R.defaultColor),
6864
- clearance: (e.properties.propValue ?? R.defaultPointSize) / 2
6862
+ ...Nr(t, e.properties.color ?? z.defaultColor),
6863
+ clearance: (e.properties.propValue ?? z.defaultPointSize) / 2
6865
6864
  }];
6866
6865
  }), Lr = (e, t, n) => e.getLayers().flatMap((e) => !(e instanceof W.CircleMarker) || !e.feature || !t.hasLayer(e) ? [] : Ir([e.feature], n.labeling)), Rr = ({ geoJsonData: e, isLabelingEnabled: t, layer: n, pointsRef: r, labelsLayerRef: i }) => {
6867
- let a = yr(), o = (0, I.useRef)(null);
6868
- (0, I.useEffect)(() => {
6866
+ let a = yr(), o = (0, R.useRef)(null);
6867
+ (0, R.useEffect)(() => {
6869
6868
  if (!t) return;
6870
6869
  if (a === null) throw TypeError("MapContext is required for point labels");
6871
6870
  let e = () => {
@@ -6894,23 +6893,23 @@ var pr = (e) => {
6894
6893
  1: "ResetPendingSelections",
6895
6894
  2: "EmptySelections",
6896
6895
  3: "ResetEmptySelections"
6897
- }, zr = new Ye(Ge.fontLight), Br = new Ye(Ge.fontDark), Vr = (e, t) => new Ye(e).betterContrast(new Ye(t.fonts.general.color), zr, Br).rgb(), $ = (e) => String(e ?? "").replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#39;"), Hr = (e, t, n) => ({
6896
+ }, zr = new Je(ze.fontLight), Br = new Je(ze.fontDark), Vr = (e, t) => new Je(e).betterContrast(new Je(t.fonts.general.color), zr, Br).rgb(), $ = (e) => String(e ?? "").replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#39;"), Hr = (e, t, n) => ({
6898
6897
  [Q.PendingSelections]: {
6899
6898
  color: "black",
6900
6899
  weight: 1
6901
6900
  },
6902
- [Q.EmptySelections]: { fillOpacity: R.emptySelectionsOpacity },
6901
+ [Q.EmptySelections]: { fillOpacity: z.emptySelectionsOpacity },
6903
6902
  [Q.ResetPendingSelections]: { ...t },
6904
- [Q.ResetEmptySelections]: { fillOpacity: n ?? R.selectedOpacity }
6903
+ [Q.ResetEmptySelections]: { fillOpacity: n ?? z.selectedOpacity }
6905
6904
  })[e], Ur = (e, t) => ({
6906
6905
  [Q.PendingSelections]: {
6907
6906
  stroke: !0,
6908
6907
  color: "black",
6909
6908
  weight: 1
6910
6909
  },
6911
- [Q.EmptySelections]: { fillOpacity: R.emptySelectionsOpacity },
6910
+ [Q.EmptySelections]: { fillOpacity: z.emptySelectionsOpacity },
6912
6911
  [Q.ResetPendingSelections]: { stroke: !1 },
6913
- [Q.ResetEmptySelections]: { fillOpacity: t ?? R.selectedOpacity }
6912
+ [Q.ResetEmptySelections]: { fillOpacity: t ?? z.selectedOpacity }
6914
6913
  })[e], Wr = (e) => e.map(([e, t]) => `${e}: ${t}`).join(";"), Gr = (e, t, n, r, i, a) => {
6915
6914
  let o = $(gn(t, a.valueFormatter)), s = e / 2, c = `
6916
6915
  <div style="${Wr([
@@ -6945,9 +6944,9 @@ var pr = (e) => {
6945
6944
  case "dark": return "filter-dark";
6946
6945
  default: return "";
6947
6946
  }
6948
- }, Jr = ({ layer: e }) => (wr(() => (0, W.tileLayer)(R.openStreetMapUrl, {
6947
+ }, Jr = ({ layer: e }) => (wr(() => (0, W.tileLayer)(z.openStreetMapUrl, {
6949
6948
  className: qr(e.layerStyle ?? "default"),
6950
- opacity: (e.opacity ?? C.opacity) / 100,
6949
+ opacity: (e.opacity ?? O.opacity) / 100,
6951
6950
  attribution: "&copy; <a target=\"_blank\" rel=\"noreferrer\" href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors"
6952
6951
  }), [
6953
6952
  e.opacity,
@@ -6963,7 +6962,7 @@ var Yr = 1e3, Xr = (e) => {
6963
6962
  }
6964
6963
  return Math.abs(t) / 2;
6965
6964
  }, Zr = ({ minAreaRatio: e, minimumCellArea: t = Yr }) => ({ candidates: n, canvasSize: r }) => {
6966
- let i = Be.from(n, ({ point: e }) => e.x, ({ point: e }) => e.y).voronoi([
6965
+ let i = Ue.from(n, ({ point: e }) => e.x, ({ point: e }) => e.y).voronoi([
6967
6966
  0,
6968
6967
  0,
6969
6968
  r.x,
@@ -6974,7 +6973,7 @@ var Yr = 1e3, Xr = (e) => {
6974
6973
  return !!n && Xr(n) >= a;
6975
6974
  });
6976
6975
  }, Qr = ({ offset: e = 4 } = {}) => ({ candidates: t, canvasSize: n, measureText: r, style: i }) => {
6977
- let a = Be.from(t, ({ point: e }) => e.x, ({ point: e }) => e.y).voronoi([
6976
+ let a = Ue.from(t, ({ point: e }) => e.x, ({ point: e }) => e.y).voronoi([
6978
6977
  0,
6979
6978
  0,
6980
6979
  n.x,
@@ -6983,8 +6982,8 @@ var Yr = 1e3, Xr = (e) => {
6983
6982
  return t.forEach((t, n) => {
6984
6983
  let s = a.cellPolygon(n);
6985
6984
  if (!s) return;
6986
- let c = He(s), l = [c[0] - t.point.x, c[1] - t.point.y], u = Math.hypot(...l), d = u === 0 ? [1, 0] : [l[0] / u, l[1] / u], f = r(t.label.text), p = i.background.enabled ? i.background.padding : 0, m = f.width + p * 2, h = i.fontSize * 1.2 + p * 2, g = t.label.clearance ?? 0, _ = [t.point.x + d[0] * (g + e + m / 2 * Math.abs(d[0]) + h / 2 * Math.abs(d[1])), t.point.y + d[1] * (g + e + m / 2 * Math.abs(d[0]) + h / 2 * Math.abs(d[1]))];
6987
- if (!Ue(s, _)) return;
6985
+ let c = Be(s), l = [c[0] - t.point.x, c[1] - t.point.y], u = Math.hypot(...l), d = u === 0 ? [1, 0] : [l[0] / u, l[1] / u], f = r(t.label.text), p = i.background.enabled ? i.background.padding : 0, m = f.width + p * 2, h = i.fontSize * 1.2 + p * 2, g = t.label.clearance ?? 0, _ = [t.point.x + d[0] * (g + e + m / 2 * Math.abs(d[0]) + h / 2 * Math.abs(d[1])), t.point.y + d[1] * (g + e + m / 2 * Math.abs(d[0]) + h / 2 * Math.abs(d[1]))];
6986
+ if (!He(s, _)) return;
6988
6987
  let [v, y] = _;
6989
6988
  o.push({
6990
6989
  label: t.label,
@@ -7107,29 +7106,29 @@ var Yr = 1e3, Xr = (e) => {
7107
7106
  return this.options.densityStrategy;
7108
7107
  }
7109
7108
  }, oi = {
7110
- [r.Low]: .025,
7111
- [r.Medium]: .005,
7112
- [r.High]: .00125
7109
+ [le.Low]: .025,
7110
+ [le.Medium]: .005,
7111
+ [le.High]: .00125
7113
7112
  }, si = {
7114
- [r.Low]: .025,
7115
- [r.Medium]: .005,
7116
- [r.High]: 5e-4
7117
- }, ci = (e) => oi[e ?? r.Medium], li = (e) => si[e ?? r.Medium], ui = (e, t) => {
7113
+ [le.Low]: .025,
7114
+ [le.Medium]: .005,
7115
+ [le.High]: 5e-4
7116
+ }, ci = (e) => oi[e ?? le.Medium], li = (e) => si[e ?? le.Medium], ui = (e, t) => {
7118
7117
  let n;
7119
7118
  return (...r) => {
7120
7119
  window.clearTimeout(n), n = window.setTimeout(() => e(...r), t);
7121
7120
  };
7122
7121
  }, di = ({ id: e, clientX: t, clientY: n, vBackendAPI: r, ...i }) => {
7123
- rt({
7122
+ nt({
7124
7123
  id: e,
7125
7124
  ...t !== void 0 && n !== void 0 ? r.daedalus.convertCoordinatesToContainerPosition(t, n) : {},
7126
7125
  ...i
7127
7126
  }, { vBackendAPI: r });
7128
7127
  }, fi = ({ layer: e, measureRole: t }, n) => {
7129
- let r = Te(), i = Sr();
7130
- return (0, I.useMemo)(() => {
7128
+ let r = Pe(), i = Sr();
7129
+ return (0, R.useMemo)(() => {
7131
7130
  if (i === null) throw TypeError("MapVSpecContext is required");
7132
- let n = ee(i.referencedData, e.dimensions[0].dataItem.internalKey), a = e.name, o = t && e.dataRoles[t] ? e.measures.find((n) => d(n.dataItem) === e.dataRoles[t]) : void 0, s = o ? ee(i.referencedData, o.dataItem.internalKey) : "", c = ui(di, 500);
7131
+ let n = oe(i.referencedData, e.dimensions[0].dataItem.internalKey), a = e.name, o = t && e.dataRoles[t] ? e.measures.find((n) => D(n.dataItem) === e.dataRoles[t]) : void 0, s = o ? oe(i.referencedData, o.dataItem.internalKey) : "", c = ui(di, 500);
7133
7132
  return ({ debounce: e = !1, ...t }) => {
7134
7133
  let i = {
7135
7134
  ...t,
@@ -7141,22 +7140,22 @@ var Yr = 1e3, Xr = (e) => {
7141
7140
  e ? c(i) : di(i);
7142
7141
  };
7143
7142
  }, n);
7144
- }, pi = ne.color ?? R.defaultColor, mi = ({ layer: e, geoJsonData: t }) => {
7143
+ }, pi = r.color ?? z.defaultColor, mi = ({ layer: e, geoJsonData: t }) => {
7145
7144
  let n = Jn(e.id), [{ state: r, onClick: i }] = kr(e), a = fi({
7146
7145
  layer: e,
7147
- measureRole: x.Size
7148
- }, [e]), o = r.pending !== null, s = e.labeling?.enabled ?? C.labeling.enabled, c = (e.opacity ?? C.opacity) / 100, l = lr() || ae, u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useMemo)(() => new Map(e.grouping.ranges.map((e) => {
7146
+ measureRole: F.Size
7147
+ }, [e]), o = r.pending !== null, s = e.labeling?.enabled ?? O.labeling.enabled, c = (e.opacity ?? O.opacity) / 100, l = lr() || _, u = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useMemo)(() => new Map(e.grouping.ranges.map((e) => {
7149
7148
  let t = e.color ?? pi;
7150
7149
  return [t, Vr(t, l)];
7151
- })), [e.grouping.ranges, l]), p = (t, n) => (y(e.dataSettings.sizeType) ? W.circle : W.circleMarker)(n, {
7152
- radius: (t.properties.propValue ?? R.defaultPointSize) / 2,
7150
+ })), [e.grouping.ranges, l]), m = (t, n) => (d(e.dataSettings.sizeType) ? W.circle : W.circleMarker)(n, {
7151
+ radius: (t.properties.propValue ?? z.defaultPointSize) / 2,
7153
7152
  fill: !0,
7154
7153
  fillOpacity: o ? Rt(t, r.pending ?? []) : c,
7155
7154
  stroke: !1,
7156
- fillColor: t.properties.color ?? R.defaultColor,
7155
+ fillColor: t.properties.color ?? z.defaultColor,
7157
7156
  opacity: 1,
7158
- pane: e?.id ?? R.defaultOverlayPane
7159
- }), m = (t, r) => {
7157
+ pane: e?.id ?? z.defaultOverlayPane
7158
+ }), h = (t, r) => {
7160
7159
  let s = t.properties?.name;
7161
7160
  s && e.showTooltipOnHover && r.bindTooltip(Kr(t.properties)), r.on("click", (r) => {
7162
7161
  s !== "" && !n && (a({
@@ -7185,37 +7184,37 @@ var Yr = 1e3, Xr = (e) => {
7185
7184
  debounce: !0
7186
7185
  }), r.setStyle(Ur(o ? Q.ResetPendingSelections : Q.ResetEmptySelections, c));
7187
7186
  });
7188
- }, h = (t) => (!n && e.enableSelectionOnClick && t.on("clusterclick", function(e) {
7187
+ }, g = (t) => (!n && e.enableSelectionOnClick && t.on("clusterclick", function(e) {
7189
7188
  e.layer.getAllChildMarkers().map((e) => e.feature?.properties.name).forEach((e) => {
7190
7189
  e && i?.(e);
7191
7190
  });
7192
- }), t), g = (t) => {
7191
+ }), t), v = (t) => {
7193
7192
  let n = t.getAllChildMarkers(), i = n.map((e) => e.feature.properties.value), a = n[0]?.feature.properties;
7194
7193
  if (!a) throw TypeError("Cannot create a cluster icon without feature properties");
7195
- let s = o ? Bt(n, r.pending ?? []) : c, u = yn(i, e.grouping), d = vn(u, e.grouping), p = d.color ?? pi, m = f.get(p) ?? Vr(p, l);
7196
- return Gr(d.size, u, p, m, s, a);
7194
+ let s = o ? Bt(n, r.pending ?? []) : c, u = yn(i, e.grouping), d = vn(u, e.grouping), f = d.color ?? pi, m = p.get(f) ?? Vr(f, l);
7195
+ return Gr(d.size, u, f, m, s, a);
7197
7196
  };
7198
7197
  return Tr(() => {
7199
7198
  let n = (0, W.geoJson)(t, {
7200
- pointToLayer: p,
7201
- onEachFeature: m
7199
+ pointToLayer: m,
7200
+ onEachFeature: h
7202
7201
  });
7203
- if (u.current = n, d.current = null, s) {
7202
+ if (u.current = n, f.current = null, s) {
7204
7203
  let t = new ai([], {
7205
- pane: e?.id ?? R.defaultOverlayPane,
7204
+ pane: e?.id ?? z.defaultOverlayPane,
7206
7205
  labelStyle: Mr(e.labeling),
7207
7206
  densityStrategy: Zr({ minAreaRatio: ci(e.labeling?.density) }),
7208
7207
  positioningStrategy: Qr()
7209
7208
  });
7210
- d.current = t, n.addLayer(t);
7209
+ f.current = t, n.addLayer(t);
7211
7210
  }
7212
7211
  return n;
7213
- }, () => h((0, W.markerClusterGroup)({
7212
+ }, () => g((0, W.markerClusterGroup)({
7214
7213
  showCoverageOnHover: !1,
7215
7214
  spiderfyOnMaxZoom: !0,
7216
7215
  zoomToBoundsOnClick: !1,
7217
- clusterPane: e?.id ?? R.defaultOverlayPane,
7218
- iconCreateFunction: g
7216
+ clusterPane: e?.id ?? z.defaultOverlayPane,
7217
+ iconCreateFunction: v
7219
7218
  })), e.grouping.enabled, [
7220
7219
  t,
7221
7220
  r.pending,
@@ -7225,13 +7224,13 @@ var Yr = 1e3, Xr = (e) => {
7225
7224
  e.id,
7226
7225
  e.labeling,
7227
7226
  s,
7228
- f
7227
+ p
7229
7228
  ]), Rr({
7230
7229
  geoJsonData: t,
7231
7230
  isLabelingEnabled: s,
7232
7231
  layer: e,
7233
7232
  pointsRef: u,
7234
- labelsLayerRef: d
7233
+ labelsLayerRef: f
7235
7234
  }), /* @__PURE__ */ (0, J.jsx)(J.Fragment, {});
7236
7235
  }, hi = (e) => e.map((e) => {
7237
7236
  if (cn(e.geometry)) {
@@ -7244,24 +7243,24 @@ var Yr = 1e3, Xr = (e) => {
7244
7243
  }
7245
7244
  throw Error("Conversion only from geometry points is supported");
7246
7245
  }), gi = ({ layer: e, geoJsonData: t }) => {
7247
- let { heatSettings: n } = e, r = (0, I.useMemo)(() => hi(t.features), [t]);
7246
+ let { heatSettings: n } = e, r = (0, R.useMemo)(() => hi(t.features), [t]);
7248
7247
  return wr(() => nn(r, {
7249
- radius: n?.radius ?? R.heatRadius,
7250
- maxZoom: n?.maxZoom ?? R.zoom,
7251
- blur: n?.blur ?? R.heatBlur,
7252
- gradient: t.features[0]?.properties?.gradient ?? R.heatGradient,
7253
- pane: e.id ?? R.defaultOverlayPane,
7254
- changeHeatWhenZooming: e.heatSettings.changeHeatWhenZooming ?? R.changeHeatWhenZooming,
7255
- baseZoom: R.heatBaseZoom
7248
+ radius: n?.radius ?? z.heatRadius,
7249
+ maxZoom: n?.maxZoom ?? z.zoom,
7250
+ blur: n?.blur ?? z.heatBlur,
7251
+ gradient: t.features[0]?.properties?.gradient ?? z.heatGradient,
7252
+ pane: e.id ?? z.defaultOverlayPane,
7253
+ changeHeatWhenZooming: e.heatSettings.changeHeatWhenZooming ?? z.changeHeatWhenZooming,
7254
+ baseZoom: z.heatBaseZoom
7256
7255
  }), [t]), /* @__PURE__ */ (0, J.jsx)(J.Fragment, {});
7257
7256
  }, _i = (e) => e * Math.PI / 180, vi = (e) => e * 180 / Math.PI, yi = (e) => {
7258
7257
  let { topLeftLatitude: t, topLeftLongitude: n, bottomRightLatitude: r, bottomRightLongitude: i } = e;
7259
7258
  return (0, W.latLngBounds)((0, W.latLng)(r, n), (0, W.latLng)(t, i));
7260
7259
  }, bi = ({ layer: e }) => {
7261
- let t = Te(), { variablesDict: n } = Pe(), r = (0, I.useMemo)(() => mt(t, e.image, n), [e, n]);
7260
+ let t = Pe(), { variablesDict: n } = Ae(), r = (0, R.useMemo)(() => pt(t, e.image, n), [e, n]);
7262
7261
  return wr(() => (0, W.imageOverlay)(r, yi(e.position), {
7263
- opacity: (e.opacity ?? C.opacity) / 100,
7264
- pane: e?.id ?? R.defaultOverlayPane
7262
+ opacity: (e.opacity ?? O.opacity) / 100,
7263
+ pane: e?.id ?? z.defaultOverlayPane
7265
7264
  }), [e, r]), /* @__PURE__ */ (0, J.jsx)(J.Fragment, {});
7266
7265
  };
7267
7266
  (/* @__PURE__ */ t(((e, t) => {
@@ -7783,21 +7782,21 @@ var Di = 16, Oi = 1e-12, ki = ([e, t]) => {
7783
7782
  };
7784
7783
  })
7785
7784
  }), Fi = ({ layer: e, geoJsonData: t }) => {
7786
- let [{ state: n, onClick: r }, { state: i, onClick: a }] = kr(e), o = (0, I.useMemo)(() => e.useGeodesicLines ? Pi(t, e) : Ht(t, e), [t, e.useGeodesicLines]), s = n.pending !== null || i.pending !== null, c = (e.opacity ?? C.opacity) / 100, l = (t) => t ? {
7785
+ let [{ state: n, onClick: r }, { state: i, onClick: a }] = kr(e), o = (0, R.useMemo)(() => e.useGeodesicLines ? Pi(t, e) : Ht(t, e), [t, e.useGeodesicLines]), s = n.pending !== null || i.pending !== null, c = (e.opacity ?? O.opacity) / 100, l = (t) => t ? {
7787
7786
  lineCap: "round",
7788
- dashArray: e.lineStyle === de.Dashed ? R.dashArray : void 0,
7789
- weight: Math.round(t.properties.propValue ?? R.connectionLineWeight),
7790
- color: t.properties.color ?? R.defaultColor,
7787
+ dashArray: e.lineStyle === p.Dashed ? z.dashArray : void 0,
7788
+ weight: Math.round(t.properties.propValue ?? z.connectionLineWeight),
7789
+ color: t.properties.color ?? z.defaultColor,
7791
7790
  opacity: s ? zt(t, n.pending ?? [], i.pending ?? []) : c
7792
7791
  } : {}, u = (t, o) => {
7793
7792
  e.arrowSettings?.show && o.arrowheads({
7794
- yawn: R.connectionArrayYawn,
7793
+ yawn: z.connectionArrayYawn,
7795
7794
  stroke: !1,
7796
7795
  fill: !0,
7797
7796
  frequency: "endonly",
7798
7797
  dashArray: void 0,
7799
- size: `${e.arrowSettings.size ?? R.connectionArraySize}px`,
7800
- offsets: { end: `${t.properties.arrowPosition ?? R.connectionOffset}m` },
7798
+ size: `${e.arrowSettings.size ?? z.connectionArraySize}px`,
7799
+ offsets: { end: `${t.properties.arrowPosition ?? z.connectionOffset}m` },
7801
7800
  fillOpacity: s ? zt(t, n.pending ?? [], i.pending ?? []) : c
7802
7801
  }), o.on("click", () => {
7803
7802
  r?.(t.properties.name), t.properties.secondName !== void 0 && a?.(t.properties.secondName);
@@ -7806,7 +7805,7 @@ var Di = 16, Oi = 1e-12, ki = ([e, t]) => {
7806
7805
  return wr(() => (0, W.geoJson)(o, {
7807
7806
  onEachFeature: u,
7808
7807
  style: l,
7809
- pane: e?.id ?? R.defaultOverlayPane
7808
+ pane: e?.id ?? z.defaultOverlayPane
7810
7809
  }), [
7811
7810
  o,
7812
7811
  n.pending,
@@ -7823,7 +7822,7 @@ var Ii = (e) => e.map(([e, t]) => {
7823
7822
  return e.forEach((e, i) => {
7824
7823
  let a = Ii(e), o = Math.abs(Ke(a));
7825
7824
  if (o === 0) return;
7826
- let [s, c] = He(a), l = i === 0 ? o : -o;
7825
+ let [s, c] = Be(a), l = i === 0 ? o : -o;
7827
7826
  t += l, n += s * l, r += c * l;
7828
7827
  }), t <= 0 ? null : {
7829
7828
  area: t,
@@ -7842,15 +7841,15 @@ var Ii = (e) => e.map(([e, t]) => {
7842
7841
  return n ? [{
7843
7842
  latLng: n,
7844
7843
  text: Fr(String(e.properties.name), typeof t?.maxLength == "number" ? t.maxLength : void 0),
7845
- ...Nr(t, e.properties.color ?? R.defaultColor)
7844
+ ...Nr(t, e.properties.color ?? z.defaultColor)
7846
7845
  }] : [];
7847
7846
  }), Bi = (e) => ({
7848
- stroke: e.properties.strokeEnabled ?? C.strokeEnabled,
7849
- weight: e.properties.strokeWidth ?? C.strokeWidth,
7847
+ stroke: e.properties.strokeEnabled ?? O.strokeEnabled,
7848
+ weight: e.properties.strokeWidth ?? O.strokeWidth,
7850
7849
  opacity: 1,
7851
- color: e.properties.strokeColor ?? C.strokeColor
7850
+ color: e.properties.strokeColor ?? O.strokeColor
7852
7851
  }), Vi = ({ layer: e, geoJsonData: t }) => {
7853
- let [{ state: n, onClick: r }] = kr(e), i = fi({ layer: e }, [e]), a = n.pending !== null, o = e.labeling?.enabled ?? C.labeling.enabled, s = (e.opacity ?? C.opacity) / 100, c = (e) => e ? {
7852
+ let [{ state: n, onClick: r }] = kr(e), i = fi({ layer: e }, [e]), a = n.pending !== null, o = e.labeling?.enabled ?? O.labeling.enabled, s = (e.opacity ?? O.opacity) / 100, c = (e) => e ? {
7854
7853
  fillColor: e.properties.color ?? void 0,
7855
7854
  fillOpacity: a ? Rt(e, n.pending ?? []) : s,
7856
7855
  ...Bi(e)
@@ -7890,12 +7889,12 @@ var Ii = (e) => e.map(([e, t]) => {
7890
7889
  let n = (0, W.geoJson)(t, {
7891
7890
  onEachFeature: l,
7892
7891
  style: c,
7893
- pane: e?.id ?? R.defaultOverlayPane
7892
+ pane: e?.id ?? z.defaultOverlayPane
7894
7893
  });
7895
7894
  if (o) {
7896
7895
  let r = zi(t.features, e.labeling);
7897
7896
  n.addLayer(new ai(r, {
7898
- pane: e?.id ?? R.defaultOverlayPane,
7897
+ pane: e?.id ?? z.defaultOverlayPane,
7899
7898
  labelStyle: Mr(e.labeling),
7900
7899
  densityStrategy: Zr({
7901
7900
  minAreaRatio: li(e.labeling?.density),
@@ -7914,15 +7913,15 @@ var Ii = (e) => e.map(([e, t]) => {
7914
7913
  }, Hi = ({ layer: e }) => {
7915
7914
  let t = Ui(e);
7916
7915
  return wr(() => (0, W.tileLayer)(t, {
7917
- opacity: (e.opacity ?? C.opacity) / 100,
7916
+ opacity: (e.opacity ?? O.opacity) / 100,
7918
7917
  attribution: `&copy; <a target="_blank" rel="noreferrer" href="https://www.here.com">${(/* @__PURE__ */ new Date()).getFullYear()} HERE Technologies</a>`
7919
7918
  }), [e.opacity, t]), /* @__PURE__ */ (0, J.jsx)(J.Fragment, {});
7920
7919
  }, Ui = (e) => {
7921
- let t = `${R.hereMapUrl}?apiKey=${e.apiKey}`;
7920
+ let t = `${z.hereMapUrl}?apiKey=${e.apiKey}`;
7922
7921
  return e.mapLanguage && (t += `&lang=${e.mapLanguage.toLowerCase()}`), e.politicalView && (t += `&pview=${e.politicalView.toUpperCase()}`), t;
7923
7922
  }, Wi = ({ layer: e }) => (wr(() => (0, W.tileLayer)("https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png", {
7924
7923
  className: qr(e.layerStyle ?? "default"),
7925
- opacity: (e.opacity ?? C.opacity) / 100,
7924
+ opacity: (e.opacity ?? O.opacity) / 100,
7926
7925
  attribution: "&copy; <a target=\"_blank\" rel=\"noreferrer\" href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors | Humanitarian style &copy; HOT"
7927
7926
  }), [
7928
7927
  e.opacity,
@@ -7930,73 +7929,73 @@ var Ii = (e) => e.map(([e, t]) => {
7930
7929
  e.layerStyle
7931
7930
  ]), /* @__PURE__ */ (0, J.jsx)(J.Fragment, {})), Gi = ({ layer: e }) => (wr(() => (0, W.tileLayer)("https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png", {
7932
7931
  className: qr(e.layerStyle ?? "default"),
7933
- opacity: (e.opacity ?? C.opacity) / 100,
7932
+ opacity: (e.opacity ?? O.opacity) / 100,
7934
7933
  attribution: "&copy; <a target=\"_blank\" rel=\"noreferrer\" href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors\n | &copy; <a target=\"_blank\" rel=\"noreferrer\" href=\"https://www.cyclosm.org/\">CyclOSM</a>\n "
7935
7934
  }), [
7936
7935
  e.opacity,
7937
7936
  e.mapType,
7938
7937
  e.layerStyle
7939
7938
  ]), /* @__PURE__ */ (0, J.jsx)(J.Fragment, {})), Ki = ({ layer: e }) => {
7940
- if (!(0, I.useMemo)(() => m(e) === null, [e])) return null;
7939
+ if (!(0, R.useMemo)(() => S(e) === null, [e])) return null;
7941
7940
  switch (e.mapType) {
7942
- case E.OpenStreetMap: return /* @__PURE__ */ (0, J.jsx)(qi, { layer: e });
7943
- case E.HereMap: return /* @__PURE__ */ (0, J.jsx)(Hi, { layer: e });
7941
+ case i.OpenStreetMap: return /* @__PURE__ */ (0, J.jsx)(qi, { layer: e });
7942
+ case i.HereMap: return /* @__PURE__ */ (0, J.jsx)(Hi, { layer: e });
7944
7943
  }
7945
7944
  }, qi = ({ layer: e }) => {
7946
- switch (e.layerType ?? oe.layerType) {
7945
+ switch (e.layerType ?? N.layerType) {
7947
7946
  case "default": return /* @__PURE__ */ (0, J.jsx)(Jr, { layer: e });
7948
7947
  case "humanitarian": return /* @__PURE__ */ (0, J.jsx)(Wi, { layer: e });
7949
7948
  case "cycle": return /* @__PURE__ */ (0, J.jsx)(Gi, { layer: e });
7950
7949
  }
7951
7950
  }, Ji = ({ layer: e }) => {
7952
7951
  switch (e.type) {
7953
- case w.Map: return /* @__PURE__ */ (0, J.jsx)(Ki, { layer: e });
7954
- case w.Image: return /* @__PURE__ */ (0, J.jsx)(bi, { layer: e });
7955
- case w.Point:
7956
- case w.PointConnection:
7957
- case w.Shape:
7958
- case w.HeatMap: return /* @__PURE__ */ (0, J.jsx)(Yi, { layer: e });
7952
+ case C.Map: return /* @__PURE__ */ (0, J.jsx)(Ki, { layer: e });
7953
+ case C.Image: return /* @__PURE__ */ (0, J.jsx)(bi, { layer: e });
7954
+ case C.Point:
7955
+ case C.PointConnection:
7956
+ case C.Shape:
7957
+ case C.HeatMap: return /* @__PURE__ */ (0, J.jsx)(Yi, { layer: e });
7959
7958
  }
7960
7959
  }, Yi = ({ layer: e }) => {
7961
7960
  let t = Cr({ layer: e });
7962
7961
  if (!t) return null;
7963
7962
  switch (e.type) {
7964
- case w.Point: return /* @__PURE__ */ (0, J.jsx)(mi, {
7963
+ case C.Point: return /* @__PURE__ */ (0, J.jsx)(mi, {
7965
7964
  layer: e,
7966
7965
  geoJsonData: t
7967
7966
  });
7968
- case w.HeatMap: return /* @__PURE__ */ (0, J.jsx)(gi, {
7967
+ case C.HeatMap: return /* @__PURE__ */ (0, J.jsx)(gi, {
7969
7968
  layer: e,
7970
7969
  geoJsonData: t
7971
7970
  });
7972
- case w.Shape: return /* @__PURE__ */ (0, J.jsx)(Vi, {
7971
+ case C.Shape: return /* @__PURE__ */ (0, J.jsx)(Vi, {
7973
7972
  layer: e,
7974
7973
  geoJsonData: t
7975
7974
  });
7976
- case w.PointConnection: return /* @__PURE__ */ (0, J.jsx)(Fi, {
7975
+ case C.PointConnection: return /* @__PURE__ */ (0, J.jsx)(Fi, {
7977
7976
  layer: e,
7978
7977
  geoJsonData: t
7979
7978
  });
7980
7979
  }
7981
- }, Xi = ye({ container: {
7980
+ }, Xi = ve({ container: {
7982
7981
  position: "absolute",
7983
7982
  right: 0,
7984
7983
  top: 0,
7985
7984
  padding: 8,
7986
- zIndex: R.settingsPaneZIndex
7985
+ zIndex: z.settingsPaneZIndex
7987
7986
  } }), Zi = () => {
7988
- let e = Te(), t = Xi(), n = yr(), r = Y(H), i = Y(Dt), a = Y(K);
7987
+ let e = Pe(), t = Xi(), n = yr(), r = Y(U), i = Y(Et), a = Y(K);
7989
7988
  return i ? null : /* @__PURE__ */ (0, J.jsxs)("div", {
7990
7989
  className: t.container,
7991
- children: [a && r && /* @__PURE__ */ (0, J.jsx)(Xe, {
7990
+ children: [a && r && /* @__PURE__ */ (0, J.jsx)(Ye, {
7992
7991
  title: "Set as a default view",
7993
7992
  onClick: () => {
7994
- e.emitEvent(Ze.SetDefaultView);
7993
+ e.emitEvent(Xe.SetDefaultView);
7995
7994
  },
7996
7995
  style: { display: "flex" },
7997
7996
  children: /* @__PURE__ */ (0, J.jsx)("div", {
7998
7997
  style: {
7999
- background: g.white,
7998
+ background: b.white,
8000
7999
  padding: "4px 8px",
8001
8000
  borderRadius: "6px",
8002
8001
  boxShadow: "0px 0.5px 1px rgba(0, 0, 0, 0.2)",
@@ -8004,7 +8003,7 @@ var Ii = (e) => e.map(([e, t]) => {
8004
8003
  },
8005
8004
  children: "Set default view"
8006
8005
  })
8007
- }), !r && /* @__PURE__ */ (0, J.jsx)(Xe, {
8006
+ }), !r && /* @__PURE__ */ (0, J.jsx)(Ye, {
8008
8007
  title: "Reset to default view",
8009
8008
  onClick: async () => {
8010
8009
  if (!r) {
@@ -8021,31 +8020,31 @@ var Ii = (e) => e.map(([e, t]) => {
8021
8020
  }
8022
8021
  },
8023
8022
  style: { display: "flex" },
8024
- children: /* @__PURE__ */ (0, J.jsx)(je, {
8023
+ children: /* @__PURE__ */ (0, J.jsx)(Ne, {
8025
8024
  size: 24,
8026
- fill: g.mainDarkNavy
8025
+ fill: b.mainDarkNavy
8027
8026
  })
8028
8027
  })]
8029
8028
  });
8030
8029
  }, Qi = class {
8031
8030
  payload;
8032
- action = Ze.SaveSettings;
8031
+ action = Xe.SaveSettings;
8033
8032
  constructor(e) {
8034
8033
  this.payload = e;
8035
8034
  }
8036
- }, $i = te("use-map-events", "#4CB9E7"), ea = (e, t) => {
8037
- let n = xe(), r = Te();
8038
- (0, I.useEffect)(() => {
8035
+ }, $i = ie("use-map-events", "#4CB9E7"), ea = (e, t) => {
8036
+ let n = xe(), r = Pe();
8037
+ (0, R.useEffect)(() => {
8039
8038
  $i.debug("subscribe to eventBus map component action stream");
8040
- let t = lt(e).pipe(ft((e) => n.pipe(ct((t) => t.action === e.action), pt(r.getEvents({ type: e.action })), st(() => ut(e.debounceTime ?? R.eventBusDebounceTime)), dt((t) => ({
8039
+ let t = ct(e).pipe(dt((e) => n.pipe(st((t) => t.action === e.action), ft(r.getEvents({ type: e.action })), ot(() => lt(e.debounceTime ?? z.eventBusDebounceTime)), ut((t) => ({
8041
8040
  eventHandler: e,
8042
8041
  event: t
8043
8042
  }))))).subscribe(({ eventHandler: e, event: t }) => e.handler(t));
8044
8043
  return () => ($i.debug("unsubscribe from eventBus"), t.unsubscribe());
8045
8044
  }, t);
8046
- }, ta = (e) => typeof e == "object" && !!e && ("action" in e && e.action === Ze.SetMapView || "type" in e && e.type === Ze.SetMapView), na = () => {
8047
- let e = Te(), t = xe(), n = yr(), r = Y(U), i = (0, I.useRef)(null), a = Y(q), o = Y((e) => e.setState), s = Y((e) => e.clearState), c = (0, I.useRef)(!0), l = r?.minZoom ?? C.settings.minZoom, u = r?.maxZoom ?? C.settings.maxZoom, d = [n, r];
8048
- (0, I.useEffect)(() => {
8045
+ }, ta = (e) => typeof e == "object" && !!e && ("action" in e && e.action === Xe.SetMapView || "type" in e && e.type === Xe.SetMapView), na = () => {
8046
+ let e = Pe(), t = xe(), n = yr(), r = Y(Ot), i = (0, R.useRef)(null), a = Y(q), o = Y((e) => e.setState), s = Y((e) => e.clearState), c = (0, R.useRef)(!0), l = r?.minZoom ?? O.settings.minZoom, u = r?.maxZoom ?? O.settings.maxZoom, d = [n, r];
8047
+ (0, R.useEffect)(() => {
8049
8048
  if (!n) return;
8050
8049
  let r = () => {
8051
8050
  let r = Pt(n);
@@ -8060,58 +8059,58 @@ var Ii = (e) => e.map(([e, t]) => {
8060
8059
  zoom: r.zoom
8061
8060
  } };
8062
8061
  t?.next({
8063
- action: Ie.SaveLocalVSpec,
8062
+ action: Fe.SaveLocalVSpec,
8064
8063
  payload: { vSpecChange: e }
8065
8064
  });
8066
8065
  }
8067
8066
  };
8068
- return n.on(R.viewStateChangeEvent, r), () => {
8069
- n.off(R.viewStateChangeEvent, r);
8067
+ return n.on(z.viewStateChangeEvent, r), () => {
8068
+ n.off(z.viewStateChangeEvent, r);
8070
8069
  };
8071
- }, [n, t]), (0, I.useEffect)(() => {
8072
- if (r && !(0, _t.default)(i.current, r)) {
8070
+ }, [n, t]), (0, R.useEffect)(() => {
8071
+ if (r && !(0, gt.default)(i.current, r)) {
8073
8072
  if (n === null) throw TypeError("MapContext is required to set the view");
8074
8073
  Nt(n, r);
8075
8074
  }
8076
- }, d), (0, I.useEffect)(() => {
8075
+ }, d), (0, R.useEffect)(() => {
8077
8076
  n?.setMinZoom(l), n?.setMaxZoom(u);
8078
- }, [l, u]), (0, I.useEffect)(() => {
8077
+ }, [l, u]), (0, R.useEffect)(() => {
8079
8078
  n && a.width !== 0 && a.height !== 0 && (s(), n.invalidateSize());
8080
8079
  }, [
8081
8080
  n,
8082
8081
  a.width,
8083
8082
  a.height
8084
8083
  ]);
8085
- let f = (0, I.useCallback)(() => {
8086
- if (r.zoomMode === ge.Auto) {
8084
+ let f = (0, R.useCallback)(() => {
8085
+ if (r.zoomMode === x.Auto) {
8087
8086
  if (n === null) throw TypeError("MapContext is required to fit the view");
8088
8087
  jt(n) && (c.current = !0);
8089
8088
  }
8090
- }, d), p = (0, I.useCallback)((e) => {
8089
+ }, d), p = (0, R.useCallback)((e) => {
8091
8090
  if (n === null) throw TypeError("MapContext is required to set the view");
8092
8091
  if (!ta(e)) throw TypeError("Expected a SetMapView event");
8093
8092
  Nt(n, e.payload);
8094
- }, d), m = (0, I.useCallback)(() => {
8093
+ }, d), m = (0, R.useCallback)(() => {
8095
8094
  if (n === null) throw TypeError("MapContext is required to save the default view");
8096
8095
  return t.next(new Qi(Pt(n)));
8097
8096
  }, d);
8098
8097
  return ea([
8099
8098
  {
8100
- action: Ze.SetMapView,
8099
+ action: Xe.SetMapView,
8101
8100
  handler: p
8102
8101
  },
8103
8102
  {
8104
- action: Ze.LayerDataChanged,
8103
+ action: Xe.LayerDataChanged,
8105
8104
  handler: f
8106
8105
  },
8107
8106
  {
8108
- action: Ze.SetDefaultView,
8107
+ action: Xe.SetDefaultView,
8109
8108
  handler: m
8110
8109
  }
8111
8110
  ], d), /* @__PURE__ */ (0, J.jsx)(J.Fragment, {});
8112
8111
  }, ra = ({ layers: e }) => {
8113
- let t = yr(), n = (0, I.useMemo)(() => e.filter((e) => G(e.type)).map((e) => e.id), [e]), r = n.join("<->"), i = ke(), a = (0, I.useRef)(!1);
8114
- return (0, I.useEffect)(() => {
8112
+ let t = yr(), n = (0, R.useMemo)(() => e.filter((e) => G(e.type)).map((e) => e.id), [e]), r = n.join("<->"), i = De(), a = (0, R.useRef)(!1);
8113
+ return (0, R.useEffect)(() => {
8115
8114
  if (t === null) throw TypeError("MapContext is required for layer panes");
8116
8115
  let e = [], r = [];
8117
8116
  a.current = !1;
@@ -8140,8 +8139,8 @@ var Ii = (e) => e.map(([e, t]) => {
8140
8139
  staticSize: 150,
8141
8140
  bottomOffset: 20
8142
8141
  }, aa = (e) => {
8143
- let t = e?.customOffset ? e.offset ?? l.offset : l.offset, n = e?.customOffset ? e.offset ?? l.offset : ia.bottomOffset, r = e?.customMaxSize ? `min(${ia.dynamicSize}, ${e.maxSize ?? l.maxSize}px)` : ia.dynamicSize;
8144
- switch (e?.position ?? l.position) {
8142
+ let t = e?.customOffset ? e.offset ?? T.offset : T.offset, n = e?.customOffset ? e.offset ?? T.offset : ia.bottomOffset, r = e?.customMaxSize ? `min(${ia.dynamicSize}, ${e.maxSize ?? T.maxSize}px)` : ia.dynamicSize;
8143
+ switch (e?.position ?? T.position) {
8145
8144
  case "top": return {
8146
8145
  top: t,
8147
8146
  left: "50%",
@@ -8165,7 +8164,7 @@ var Ii = (e) => e.map(([e, t]) => {
8165
8164
  };
8166
8165
  case "bottom-left": return {
8167
8166
  bottom: n,
8168
- left: l.offset,
8167
+ left: T.offset,
8169
8168
  width: r,
8170
8169
  height: ia.staticSize
8171
8170
  };
@@ -8178,7 +8177,7 @@ var Ii = (e) => e.map(([e, t]) => {
8178
8177
  };
8179
8178
  case "bottom-right": return {
8180
8179
  bottom: n,
8181
- right: l.offset,
8180
+ right: T.offset,
8182
8181
  width: r,
8183
8182
  height: ia.staticSize
8184
8183
  };
@@ -8201,12 +8200,12 @@ var Ii = (e) => e.map(([e, t]) => {
8201
8200
  data: [{}]
8202
8201
  }],
8203
8202
  settings: ca(e, t)
8204
- }), ca = ({ legend: { data: e, settings: t = l } = {}, containerHeight: n, containerWidth: r, layer: i }, a) => {
8205
- let o = e?.minValue ?? 0, s = e?.maxValue ?? 100, c = t?.position ?? l.position, u = _r(c), d = t.itemLabel?.fontSize ?? l.itemLabel.fontSize, f = t.itemLabel?.fill ?? "", p = a.fonts.general.fontFamily;
8203
+ }), ca = ({ legend: { data: e, settings: t = T } = {}, containerHeight: n, containerWidth: r, layer: i }, a) => {
8204
+ let o = e?.minValue ?? 0, s = e?.maxValue ?? 100, c = t?.position ?? T.position, l = _r(c), u = t.itemLabel?.fontSize ?? T.itemLabel.fontSize, d = t.itemLabel?.fill ?? "", f = a.fonts.general.fontFamily;
8206
8205
  return {
8207
8206
  scales: {
8208
8207
  seq: {
8209
- invert: u,
8208
+ invert: l,
8210
8209
  min: o,
8211
8210
  max: s,
8212
8211
  formatter: Vn(i)
@@ -8225,26 +8224,26 @@ var Ii = (e) => e.map(([e, t]) => {
8225
8224
  fill: "seqColor",
8226
8225
  length: 1,
8227
8226
  major: "seq",
8228
- maxLengthPx: u ? n : r,
8227
+ maxLengthPx: l ? n : r,
8229
8228
  justify: 0,
8230
8229
  title: {
8231
8230
  show: t.title?.showTitle,
8232
8231
  text: t.title?.titleText,
8233
- fontFamily: p,
8234
- fontSize: d,
8235
- fill: f
8232
+ fontFamily: f,
8233
+ fontSize: u,
8234
+ fill: d
8236
8235
  },
8237
8236
  tick: {
8238
- fontFamily: p,
8239
- fontSize: d,
8240
- fill: f
8237
+ fontFamily: f,
8238
+ fontSize: u,
8239
+ fill: d
8241
8240
  }
8242
8241
  }
8243
8242
  }]
8244
8243
  };
8245
8244
  }, la = ({ containerHeight: e, containerWidth: t, ...n }) => {
8246
- let r = lr() || ae;
8247
- return t === void 0 || e === void 0 ? null : /* @__PURE__ */ (0, J.jsx)(Je, {
8245
+ let r = lr() || _;
8246
+ return t === void 0 || e === void 0 ? null : /* @__PURE__ */ (0, J.jsx)(Ge, {
8248
8247
  config: { disable: {
8249
8248
  brushing: !0,
8250
8249
  animations: !0
@@ -8261,23 +8260,23 @@ var Ii = (e) => e.map(([e, t]) => {
8261
8260
  });
8262
8261
  }, ua = (e) => {
8263
8262
  switch (e) {
8264
- case a.Gradient: return la;
8263
+ case n.Gradient: return la;
8265
8264
  default: throw Error(`Unsupported legend type: ${e}`);
8266
8265
  }
8267
8266
  }, da = ({ legend: e, ...t }) => e?.data ? /* @__PURE__ */ (0, J.jsx)(ua(e.data.type), {
8268
8267
  legend: e,
8269
8268
  ...t
8270
- }) : null, fa = ye({ container: {
8269
+ }) : null, fa = ve({ container: {
8271
8270
  position: "absolute",
8272
8271
  padding: 0,
8273
8272
  minWidth: 10,
8274
8273
  minHeight: 10,
8275
- zIndex: R.legendsPaneZIndex
8274
+ zIndex: z.legendsPaneZIndex
8276
8275
  } }), pa = ({ layer: e, legend: t }) => {
8277
8276
  let n = fa(), { width: r, height: i, ref: a } = Se({
8278
8277
  refreshMode: "throttle",
8279
8278
  refreshRate: 50
8280
- }), o = (0, I.useMemo)(() => aa(t.settings ?? l), [t.settings]);
8279
+ }), o = (0, R.useMemo)(() => aa(t.settings ?? T), [t.settings]);
8281
8280
  return /* @__PURE__ */ (0, J.jsx)("div", {
8282
8281
  className: n.container,
8283
8282
  ref: a,
@@ -8290,7 +8289,7 @@ var Ii = (e) => e.map(([e, t]) => {
8290
8289
  })
8291
8290
  });
8292
8291
  }, ma = ({ layers: e }) => {
8293
- let t = Y(qt), { layer: n, legend: r } = (0, I.useMemo)(() => {
8292
+ let t = Y(qt), { layer: n, legend: r } = (0, R.useMemo)(() => {
8294
8293
  let n = e.findLast(pr);
8295
8294
  return !n || !t[n.id] || !fr(n) ? {
8296
8295
  layer: null,
@@ -8315,31 +8314,31 @@ var Ii = (e) => e.map(([e, t]) => {
8315
8314
  };
8316
8315
  tn();
8317
8316
  var ga = () => {
8318
- let e = (0, I.useRef)(null), [t, n] = (0, I.useState)(null), r = Or(t), i = Y(H), a = Y(Dt);
8319
- return (0, I.useEffect)(() => {
8317
+ let e = (0, R.useRef)(null), [t, n] = (0, R.useState)(null), r = Or(t), i = Y(U), a = Y(Et);
8318
+ return (0, R.useEffect)(() => {
8320
8319
  let t = e.current;
8321
8320
  if (!t) return;
8322
8321
  let r = (0, W.map)(t, {
8323
- maxZoom: C.settings.maxZoom,
8322
+ maxZoom: O.settings.maxZoom,
8324
8323
  preferCanvas: !0,
8325
8324
  attributionControl: !0,
8326
8325
  keyboard: !1,
8327
8326
  doubleClickZoom: !1,
8328
- zoomSnap: C.zoomSnap,
8329
- zoomDelta: C.zoomDelta,
8327
+ zoomSnap: O.zoomSnap,
8328
+ zoomDelta: O.zoomDelta,
8330
8329
  zoomControl: !1
8331
8330
  });
8332
- return t.__leafletMap = r, r.attributionControl.addAttribution(R.attribution), r.attributionControl.setPrefix(!1), n(r), () => {
8331
+ return t.__leafletMap = r, r.attributionControl.addAttribution(z.attribution), r.attributionControl.setPrefix(!1), n(r), () => {
8333
8332
  delete t.__leafletMap, r.remove();
8334
8333
  };
8335
- }, []), (0, I.useEffect)(() => {
8334
+ }, []), (0, R.useEffect)(() => {
8336
8335
  if (!t) return;
8337
8336
  let e = () => {
8338
8337
  let e = t.getContainer();
8339
8338
  e.ownerDocument.activeElement === e && e.blur(), t.keyboard.disable();
8340
8339
  };
8341
8340
  return i ? e() : t.keyboard.enable(), e;
8342
- }, [t, i]), (0, I.useEffect)(() => {
8341
+ }, [t, i]), (0, R.useEffect)(() => {
8343
8342
  if (!t || a) return;
8344
8343
  let e = new W.Control.Zoom();
8345
8344
  return t.addControl(e), () => {
@@ -8360,9 +8359,9 @@ var ga = () => {
8360
8359
  ]
8361
8360
  })
8362
8361
  });
8363
- }, _a = be((0, I.memo)((e) => {
8362
+ }, _a = be((0, R.memo)((e) => {
8364
8363
  let { vSpec: t } = e;
8365
- if (t !== null && !j(t)) throw TypeError("Map requires a map vSpec");
8364
+ if (t !== null && !f(t)) throw TypeError("Map requires a map vSpec");
8366
8365
  return /* @__PURE__ */ (0, J.jsx)(Zt, { children: /* @__PURE__ */ (0, J.jsx)($t, {
8367
8366
  ...e,
8368
8367
  vSpec: t,
@@ -8374,5 +8373,5 @@ var ga = () => {
8374
8373
  })
8375
8374
  })
8376
8375
  }) });
8377
- }), R.sizeDebounceTime);
8376
+ }), z.sizeDebounceTime);
8378
8377
  export { _a as Map };