@maptiler/geocoding-control 2.0.1 → 2.1.0-rc1

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 (110) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +1037 -626
  2. package/icons/10pin.svg +4 -1
  3. package/icons/9pin.svg +4 -1
  4. package/icons/alcohol.svg +1 -1
  5. package/icons/alpine_hut.svg +1 -1
  6. package/icons/apartment.svg +4 -1
  7. package/icons/area.svg +1 -5
  8. package/icons/artwork.svg +4 -1
  9. package/icons/beauty.svg +14 -1
  10. package/icons/bicycle_repair_station.svg +18 -1
  11. package/icons/biergarten.svg +4 -1
  12. package/icons/books.svg +14 -1
  13. package/icons/bowl.svg +4 -1
  14. package/icons/bowling_alley.svg +4 -1
  15. package/icons/bus_station.svg +1 -1
  16. package/icons/camping.svg +1 -1
  17. package/icons/car_repair.svg +14 -1
  18. package/icons/car_wash.svg +19 -1
  19. package/icons/cave_entrance.svg +15 -1
  20. package/icons/chalet.svg +1 -1
  21. package/icons/chemist.svg +14 -1
  22. package/icons/church.svg +4 -1
  23. package/icons/community_centre.svg +20 -1
  24. package/icons/firestation.svg +4 -1
  25. package/icons/guest_house.svg +29 -8
  26. package/icons/hotel.svg +1 -1
  27. package/icons/housenumber.svg +19 -14
  28. package/icons/hut.svg +1 -4
  29. package/icons/medical_supply.svg +20 -1
  30. package/icons/memorial.svg +14 -1
  31. package/icons/motel.svg +19 -1
  32. package/icons/post.svg +1 -1
  33. package/icons/post_office.svg +1 -1
  34. package/icons/postal_code.svg +1 -23
  35. package/icons/public_bookcase.svg +14 -1
  36. package/icons/public_building.svg +4 -1
  37. package/icons/shintoist.svg +1 -1
  38. package/icons/street.svg +11 -14
  39. package/icons/vehicle_inspection.svg +18 -1
  40. package/icons/wilderness_hut.svg +1 -1
  41. package/leaflet-controller.js +32 -31
  42. package/leaflet-controller.js.map +1 -1
  43. package/leaflet-controller.umd.js +1 -1
  44. package/leaflet-controller.umd.js.map +1 -1
  45. package/leaflet.d.ts +32 -1
  46. package/leaflet.js +1578 -1402
  47. package/leaflet.js.map +1 -1
  48. package/leaflet.umd.js +3 -3
  49. package/leaflet.umd.js.map +1 -1
  50. package/maplibregl-controller.js +5 -5
  51. package/maplibregl-controller.js.map +1 -1
  52. package/maplibregl-controller.umd.js +1 -1
  53. package/maplibregl-controller.umd.js.map +1 -1
  54. package/maplibregl.d.ts +527 -626
  55. package/maplibregl.js +1709 -1538
  56. package/maplibregl.js.map +1 -1
  57. package/maplibregl.umd.js +3 -3
  58. package/maplibregl.umd.js.map +1 -1
  59. package/maptilersdk.d.ts +527 -626
  60. package/maptilersdk.js +1705 -1534
  61. package/maptilersdk.js.map +1 -1
  62. package/maptilersdk.umd.js +3 -3
  63. package/maptilersdk.umd.js.map +1 -1
  64. package/openlayers-controller.js +5 -4
  65. package/openlayers-controller.js.map +1 -1
  66. package/openlayers-controller.umd.js +1 -1
  67. package/openlayers-controller.umd.js.map +1 -1
  68. package/openlayers.d.ts +32 -1
  69. package/openlayers.js +2009 -1833
  70. package/openlayers.js.map +1 -1
  71. package/openlayers.umd.js +3 -3
  72. package/openlayers.umd.js.map +1 -1
  73. package/package.json +23 -23
  74. package/react.d.ts +27 -1
  75. package/react.js +1284 -1128
  76. package/react.js.map +1 -1
  77. package/react.umd.js +1 -1
  78. package/react.umd.js.map +1 -1
  79. package/style.css +1 -1
  80. package/svelte/FeatureItem.svelte +59 -12
  81. package/svelte/FeatureItem.svelte.d.ts +2 -2
  82. package/svelte/GeocodingControl.svelte +140 -71
  83. package/svelte/GeocodingControl.svelte.d.ts +10 -3
  84. package/svelte/MapLibreBasedGeocodingControl.d.ts +1037 -626
  85. package/svelte/MapLibreBasedGeocodingControl.js +36 -6
  86. package/svelte/leaflet-controller.js +3 -3
  87. package/svelte/leaflet.d.ts +32 -1
  88. package/svelte/leaflet.js +35 -2
  89. package/svelte/maplibregl-controller.js +3 -3
  90. package/svelte/maplibregl.d.ts +527 -626
  91. package/svelte/maptilersdk.d.ts +527 -626
  92. package/svelte/openlayers-controller.js +4 -4
  93. package/svelte/openlayers.d.ts +32 -1
  94. package/svelte/openlayers.js +36 -3
  95. package/svelte/react.d.ts +27 -1
  96. package/svelte/react.js +16 -4
  97. package/svelte/types.d.ts +23 -1
  98. package/svelte/vanilla.d.ts +32 -1
  99. package/svelte/vanilla.js +35 -2
  100. package/types.d.ts +23 -1
  101. package/vanilla.d.ts +32 -1
  102. package/vanilla.js +1153 -978
  103. package/vanilla.js.map +1 -1
  104. package/vanilla.umd.js +1 -1
  105. package/vanilla.umd.js.map +1 -1
  106. package/icons/aerodrome.12.svg +0 -1
  107. package/icons/bus_stop.12.svg +0 -1
  108. package/icons/elevator.12.svg +0 -1
  109. /package/icons/{helipad.16.svg → helipad.svg} +0 -0
  110. /package/icons/{traffic_light.13.svg → traffic_light.svg} +0 -0
package/icons/street.svg CHANGED
@@ -1,15 +1,12 @@
1
- <svg width="22.000002" height="12.000003" viewBox="0 0 5.8208338 3.1750009"
2
- xmlns="http://www.w3.org/2000/svg">
3
- <g stroke="#000" stroke-linecap="round" stroke-linejoin="round">
4
- <path
5
- d="M.66145834.13229167.13229167.66145834V2.5135417l.52916667.5291667H5.1593751l.5291666-.5291667V.66145834L5.1593751.13229167Z"
6
- fill="none" stroke-width=".264584" paint-order="stroke markers fill" />
7
- <g aria-label="Main"
8
- style="line-height:2.5ex;-inkscape-font-specification:&quot;Noto Sans, Normal&quot;"
9
- font-size="1.85208" font-family="Noto Sans" letter-spacing="0" word-spacing="0"
10
- stroke-width=".079375">
11
- <path
12
- d="m1.4880197 2.2607315-.4352388-1.1594021h-.0074084q.0055563.0574145.0092604.1555747.0037042.0963082.0037042.2018767v.8019507H.90461447V.93834635h.24632663l.4074576 1.08346675h.0074083L1.9806729.93834635h.2444746V2.2607315h-.1648351v-.8130632q0-.0963081.0037041-.1907642.0055563-.0944561.0092604-.1537226h-.0074083l-.440795 1.15755ZM2.9381975 1.2513479q.1815039 0 .2685516.0796394.0870478.0796394.0870478.253735v.6760092h-.1185331l-.0314854-.1407581h-.0074083q-.0648228.0814915-.1370539.1203852-.0703791.0388937-.1963205.0388937-.1352018 0-.2241017-.0703791-.0888998-.0722311-.0888998-.2241017 0-.1481664.116681-.2278058.1166811-.0814915.3593035-.0888998l.1685393-.0055563v-.0592665q0-.1240894-.0537103-.1722435-.0537103-.0481541-.1518706-.0481541-.0777873 0-.1481664.0240771-.070379.0222249-.1314976.0518582l-.0500062-.1222373q.0648228-.0351895.1537226-.0592665.0888999-.0259291.185208-.0259291Zm.0481541.5296948q-.185208.0074084-.2574391.0592666-.070379.0518582-.070379.1463143 0 .0833436.0500061.1222373.0518583.0388937.1314977.0388937.1259414 0 .209285-.068527.0833436-.070379.0833436-.2148413v-.0888998ZM3.6845873.89574851q.0370416 0 .0648228.02592912.0296333.02407704.0296333.07778736 0 .05185821-.0296333.07778731-.0277812.0259292-.0648228.0259292-.0407458 0-.068527-.0259292-.0277812-.0259291-.0277812-.07778731 0-.05371032.0277812-.07778736.0277812-.02592912.068527-.02592912Zm.0796394.37226809v.9927149h-.162983v-.9927149ZM4.556916 1.2494958q.1777997 0 .2685516.0870477.0907519.0851957.0907519.277812v.646376h-.161131V1.625468q0-.2389183-.2222495-.2389183-.1648352 0-.2278059.092604-.0629707.092604-.0629707.2666995v.5148783h-.162983v-.9927149h.1314976l.0240771.1352018h.0092604q.0481541-.0777873.1333497-.1148289.0851957-.0388937.1796518-.0388937Z" />
13
- </g>
14
- </g>
1
+ <svg width="16" height="13" viewBox="0 0 16 13" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_1_3955)">
3
+ <path d="M0 13.0015L3.93975 -0.0078125H4.57535L4.51265 0.23333C4.47343 0.388694 4.13176 1.72471 3.65008 3.60822C3.2095 5.33099 2.65178 7.51179 2.10122 9.66615L1.24947 12.9951L0 13.0015Z" fill="black"/>
4
+ <path d="M13.0968 6.5406C12.1855 2.98288 11.4402 0.0516161 11.4402 0.0297385C11.4402 0.00165689 11.5216 -0.0078125 11.7471 -0.0078125H12.0571L16 13.0043L14.7504 13.0075L13.0968 6.5406Z" fill="black"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8 2.21798C6.60779 2.21798 5.47792 3.35872 5.47792 4.76494C5.47792 6.17116 8 10.7838 8 10.7838C8 10.7838 10.5221 6.17285 10.5221 4.76669C10.5221 2.64402 8.84069 2.1831 8 2.21798ZM8 6.14657C8.79488 6.14657 9.43925 5.5022 9.43925 4.70732C9.43925 3.91244 8.79488 3.26807 8 3.26807C7.20512 3.26807 6.56074 3.91244 6.56074 4.70732C6.56074 5.5022 7.20512 6.14657 8 6.14657Z" fill="black"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_1_3955">
9
+ <rect width="16" height="13.0155" fill="white" transform="translate(0 -0.0078125)"/>
10
+ </clipPath>
11
+ </defs>
15
12
  </svg>
@@ -1 +1,18 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path d="M2.5 0a.499.499 0 1 0 0 1h4a.499.499 0 1 0 0-1h-4ZM11 0 9.545 3.637 9 2H8l1 3h1l2-5h-1ZM2.5 2a.499.499 0 1 0 0 1h4a.499.499 0 1 0 0-1h-4Zm0 2a.499.499 0 1 0 0 1h4a.499.499 0 1 0 0-1h-4ZM4 6 3 9c-.473 0-1 .384-1 1v3h1s0 1 1 1 1-1 1-1h4s0 1 1 1 1-1 1-1h1v-3c0-.52-.455-1-1-1l-1-3H4Zm1 1h4l.625 2h-5.25L5 7Zm-1 3.25a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Zm6 0a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Z"/></svg>
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ width="14"
4
+ height="14"
5
+ version="1.1"
6
+ id="svg1"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:svg="http://www.w3.org/2000/svg">
9
+ <defs
10
+ id="defs1" />
11
+ <path
12
+ d="M 11.717393,10.169401 10.794749,9.3123695 9.9762734,7.6754194 A 0.78127178,0.78127178 0 0 0 9.3066124,7.3033852 H 4.6933884 A 0.78127178,0.78127178 0 0 0 4.0237268,7.6754194 L 3.2052516,9.3123695 2.2826068,10.169401 a 0.37203418,0.37203418 0 0 0 -0.1190509,0.273276 v 3.185289 A 0.37203418,0.37203418 0 0 0 2.5355901,14 H 4.0237268 C 4.1725405,14 4.395761,13.851186 4.395761,13.702373 v -0.446442 h 5.2084784 v 0.372035 C 9.6042394,13.77678 9.7530534,14 9.9018674,14 H 11.46441 a 0.37203418,0.37203418 0 0 0 0.372034,-0.372034 v -3.185965 a 0.37203418,0.37203418 0 0 0 -0.119051,-0.2726 z M 4.7677952,8.0474535 H 9.2322054 L 9.9762734,9.53559 H 4.0237268 Z m 0.3720342,3.4227135 c 0,0.148814 -0.2232206,0.297628 -0.3720342,0.297628 H 3.2052516 c -0.1488136,0 -0.2976273,-0.223221 -0.2976273,-0.372035 v -0.818474 c 0.074407,-0.223221 0.2232205,-0.372035 0.446441,-0.297628 l 1.4881367,0.297628 c 0.1488137,0 0.2976274,0.22322 0.2976274,0.372034 z m 5.9525466,-0.07441 c 0,0.148814 -0.148814,0.372034 -0.297627,0.372034 H 9.2322054 c -0.148814,0 -0.3720344,-0.148813 -0.3720344,-0.297627 v -0.520848 c 0,-0.148814 0.1488137,-0.372034 0.2976274,-0.372034 l 1.4881376,-0.297627 c 0.22322,-0.07441 0.372034,0.07441 0.44644,0.297627 z"
13
+ id="path1-4"
14
+ style="stroke-width:0.676426" />
15
+ <path
16
+ d="m 2.5,0 c -0.6666664,0 -0.6666664,1 0,1 h 4 C 7.1666664,1 7.1666664,0 6.5,0 Z M 11,0 9.545,3.637 9,2 H 8 l 1,3 h 1 L 12,0 Z M 2.5,2 c -0.6666664,0 -0.6666664,1 0,1 h 4 c 0.6666664,0 0.6666664,-1 0,-1 z m 0,2 c -0.6666664,0 -0.6666664,1 0,1 h 4 c 0.6666664,0 0.6666664,-1 0,-1 z"
17
+ id="path1" />
18
+ </svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path d="M8 0v2l-1-.5L0 5v2l1.5-.65V14H3V5.7L7 4l1 .426V9H4.5c.025 1.652-.034 3.39 0 5h5c.018-2.953.006-5.95 0-8.938L11 5.7V14h1.5V6.35L14 7V5L9.5 2.75c-.002-.919 0-1.834 0-2.75H8ZM7 11s1 0 1 1v1H6v-1c0-1 1-1 1-1Z"/></svg>
1
+ <svg fill="none" height="13" viewBox="0 0 13 13" width="13" xmlns="http://www.w3.org/2000/svg"><g fill="#000"><path d="m12.9322 5.77624-2.93248-2.74625-3.31792-2.760499c-.09451-.099003-.25238-.103859-.35296-.010857l-.011.010857-6.2502689 5.482269c-.0944175.09946-.0892565.25562.0115222.3488.0454687.04204.1052097.06581.1675107.06666l1.753526.02467h10.74897c.1381.00046.2504-.10966.2509-.24595.0002-.06298-.0242-.12375-.0678-.1697z"/><path d="m9.00458 1.18863c0-.549605.44554-.995149.99515-.995149.54957 0 .99517.445543.99517.995149v2.81137l-1.99032-.7613z"/><path clip-rule="evenodd" d="m1.1535 8.19189c0-.55228.44772-1 1-1h9c.5523 0 1 .44772 1 1 0 .55229-.4477 1-1 1h-2.15347c0-.55228-.44771-1-1-1h-1c-.55228 0-1 .44772-1 1h-3.84653c-.55228 0-1-.44771-1-1zm4.84653 2.00001h-3.84653c-.55228 0-1 .4477-1 1s.44772 1 1 1h3.84653zm3 2h2.15347c.5523 0 1-.4477 1-1s-.4477-1-1-1h-2.15347z" fill-rule="evenodd"/></g></svg>
@@ -41,8 +41,8 @@ function Yt(r, t, e) {
41
41
  var x = 0, m = 0;
42
42
  if (u = a ? f.geometries[v] : f, u !== null) {
43
43
  c = u.coordinates;
44
- var E = u.type;
45
- switch (p = 0, E) {
44
+ var b = u.type;
45
+ switch (p = 0, b) {
46
46
  case null:
47
47
  break;
48
48
  case "Point":
@@ -67,9 +67,9 @@ function Yt(r, t, e) {
67
67
  m
68
68
  ) === !1)
69
69
  return !1;
70
- s++, E === "MultiPoint" && x++;
70
+ s++, b === "MultiPoint" && x++;
71
71
  }
72
- E === "LineString" && x++;
72
+ b === "LineString" && x++;
73
73
  break;
74
74
  case "Polygon":
75
75
  case "MultiLineString":
@@ -85,9 +85,9 @@ function Yt(r, t, e) {
85
85
  return !1;
86
86
  s++;
87
87
  }
88
- E === "MultiLineString" && x++, E === "Polygon" && m++;
88
+ b === "MultiLineString" && x++, b === "Polygon" && m++;
89
89
  }
90
- E === "Polygon" && x++;
90
+ b === "Polygon" && x++;
91
91
  break;
92
92
  case "MultiPolygon":
93
93
  for (n = 0; n < c.length; n++) {
@@ -405,7 +405,7 @@ function ot(r, t, e, n) {
405
405
  var o = n(r, e.key);
406
406
  return o < 0 ? (i.left = e.left, i.right = e, e.left = null) : o >= 0 && (i.right = e.right, i.left = e, e.right = null), i;
407
407
  }
408
- function bt(r, t, e) {
408
+ function Et(r, t, e) {
409
409
  var n = null, i = null;
410
410
  if (t) {
411
411
  t = B(r, t, e);
@@ -591,10 +591,10 @@ var wt = (
591
591
  return e.push(n);
592
592
  }, t), e.join("");
593
593
  }, r.prototype.update = function(t, e, n) {
594
- var i = this._comparator, o = bt(t, this._root, i), u = o.left, l = o.right;
594
+ var i = this._comparator, o = Et(t, this._root, i), u = o.left, l = o.right;
595
595
  i(t, e) < 0 ? l = ot(e, n, l, i) : u = ot(e, n, u, i), this._root = pe(u, l, i);
596
596
  }, r.prototype.split = function(t) {
597
- return bt(t, this._root, this._comparator);
597
+ return Et(t, this._root, this._comparator);
598
598
  }, r.prototype[Symbol.iterator] = function() {
599
599
  var t, e, n;
600
600
  return he(this, function(i) {
@@ -691,24 +691,24 @@ function ve(r, t) {
691
691
  function K(r) {
692
692
  return new Float64Array(r);
693
693
  }
694
- const me = (3 + 16 * O) * O, we = (2 + 12 * O) * O, Ee = (9 + 64 * O) * O * O, q = K(4), _t = K(8), St = K(12), Pt = K(16), P = K(4);
695
- function be(r, t, e, n, i, o, u) {
696
- let l, c, f, p, s, a, h, g, d, w, y, v, x, m, E, b, M, _;
694
+ const me = (3 + 16 * O) * O, we = (2 + 12 * O) * O, be = (9 + 64 * O) * O * O, q = K(4), _t = K(8), St = K(12), Pt = K(16), P = K(4);
695
+ function Ee(r, t, e, n, i, o, u) {
696
+ let l, c, f, p, s, a, h, g, d, w, y, v, x, m, b, E, M, _;
697
697
  const C = r - i, R = e - i, I = t - o, $ = n - o;
698
- m = C * $, a = S * C, h = a - (a - C), g = C - h, a = S * $, d = a - (a - $), w = $ - d, E = g * w - (m - h * d - g * d - h * w), b = I * R, a = S * I, h = a - (a - I), g = I - h, a = S * R, d = a - (a - R), w = R - d, M = g * w - (b - h * d - g * d - h * w), y = E - M, s = E - y, q[0] = E - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - b, s = x - y, q[1] = x - (y + s) + (s - b), _ = v + y, s = _ - v, q[2] = v - (_ - s) + (y - s), q[3] = _;
698
+ m = C * $, a = S * C, h = a - (a - C), g = C - h, a = S * $, d = a - (a - $), w = $ - d, b = g * w - (m - h * d - g * d - h * w), E = I * R, a = S * I, h = a - (a - I), g = I - h, a = S * R, d = a - (a - R), w = R - d, M = g * w - (E - h * d - g * d - h * w), y = b - M, s = b - y, q[0] = b - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - E, s = x - y, q[1] = x - (y + s) + (s - E), _ = v + y, s = _ - v, q[2] = v - (_ - s) + (y - s), q[3] = _;
699
699
  let A = ve(4, q), D = we * u;
700
- if (A >= D || -A >= D || (s = r - C, l = r - (C + s) + (s - i), s = e - R, f = e - (R + s) + (s - i), s = t - I, c = t - (I + s) + (s - o), s = n - $, p = n - ($ + s) + (s - o), l === 0 && c === 0 && f === 0 && p === 0) || (D = Ee * u + xe * Math.abs(A), A += C * p + $ * l - (I * f + R * c), A >= D || -A >= D)) return A;
701
- m = l * $, a = S * l, h = a - (a - l), g = l - h, a = S * $, d = a - (a - $), w = $ - d, E = g * w - (m - h * d - g * d - h * w), b = c * R, a = S * c, h = a - (a - c), g = c - h, a = S * R, d = a - (a - R), w = R - d, M = g * w - (b - h * d - g * d - h * w), y = E - M, s = E - y, P[0] = E - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - b, s = x - y, P[1] = x - (y + s) + (s - b), _ = v + y, s = _ - v, P[2] = v - (_ - s) + (y - s), P[3] = _;
700
+ if (A >= D || -A >= D || (s = r - C, l = r - (C + s) + (s - i), s = e - R, f = e - (R + s) + (s - i), s = t - I, c = t - (I + s) + (s - o), s = n - $, p = n - ($ + s) + (s - o), l === 0 && c === 0 && f === 0 && p === 0) || (D = be * u + xe * Math.abs(A), A += C * p + $ * l - (I * f + R * c), A >= D || -A >= D)) return A;
701
+ m = l * $, a = S * l, h = a - (a - l), g = l - h, a = S * $, d = a - (a - $), w = $ - d, b = g * w - (m - h * d - g * d - h * w), E = c * R, a = S * c, h = a - (a - c), g = c - h, a = S * R, d = a - (a - R), w = R - d, M = g * w - (E - h * d - g * d - h * w), y = b - M, s = b - y, P[0] = b - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - E, s = x - y, P[1] = x - (y + s) + (s - E), _ = v + y, s = _ - v, P[2] = v - (_ - s) + (y - s), P[3] = _;
702
702
  const ee = st(4, q, 4, P, _t);
703
- m = C * p, a = S * C, h = a - (a - C), g = C - h, a = S * p, d = a - (a - p), w = p - d, E = g * w - (m - h * d - g * d - h * w), b = I * f, a = S * I, h = a - (a - I), g = I - h, a = S * f, d = a - (a - f), w = f - d, M = g * w - (b - h * d - g * d - h * w), y = E - M, s = E - y, P[0] = E - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - b, s = x - y, P[1] = x - (y + s) + (s - b), _ = v + y, s = _ - v, P[2] = v - (_ - s) + (y - s), P[3] = _;
703
+ m = C * p, a = S * C, h = a - (a - C), g = C - h, a = S * p, d = a - (a - p), w = p - d, b = g * w - (m - h * d - g * d - h * w), E = I * f, a = S * I, h = a - (a - I), g = I - h, a = S * f, d = a - (a - f), w = f - d, M = g * w - (E - h * d - g * d - h * w), y = b - M, s = b - y, P[0] = b - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - E, s = x - y, P[1] = x - (y + s) + (s - E), _ = v + y, s = _ - v, P[2] = v - (_ - s) + (y - s), P[3] = _;
704
704
  const ne = st(ee, _t, 4, P, St);
705
- m = l * p, a = S * l, h = a - (a - l), g = l - h, a = S * p, d = a - (a - p), w = p - d, E = g * w - (m - h * d - g * d - h * w), b = c * f, a = S * c, h = a - (a - c), g = c - h, a = S * f, d = a - (a - f), w = f - d, M = g * w - (b - h * d - g * d - h * w), y = E - M, s = E - y, P[0] = E - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - b, s = x - y, P[1] = x - (y + s) + (s - b), _ = v + y, s = _ - v, P[2] = v - (_ - s) + (y - s), P[3] = _;
705
+ m = l * p, a = S * l, h = a - (a - l), g = l - h, a = S * p, d = a - (a - p), w = p - d, b = g * w - (m - h * d - g * d - h * w), E = c * f, a = S * c, h = a - (a - c), g = c - h, a = S * f, d = a - (a - f), w = f - d, M = g * w - (E - h * d - g * d - h * w), y = b - M, s = b - y, P[0] = b - (y + s) + (s - M), v = m + y, s = v - m, x = m - (v - s) + (y - s), y = x - E, s = x - y, P[1] = x - (y + s) + (s - E), _ = v + y, s = _ - v, P[2] = v - (_ - s) + (y - s), P[3] = _;
706
706
  const re = st(ne, St, 4, P, Pt);
707
707
  return Pt[re - 1];
708
708
  }
709
709
  function _e(r, t, e, n, i, o) {
710
710
  const u = (t - o) * (e - i), l = (r - i) * (n - o), c = u - l, f = Math.abs(u + l);
711
- return Math.abs(c) >= me * f ? c : -be(r, t, e, n, i, o, f);
711
+ return Math.abs(c) >= me * f ? c : -Ee(r, t, e, n, i, o, f);
712
712
  }
713
713
  const j = (r, t) => r.ll.x <= t.x && t.x <= r.ur.x && r.ll.y <= t.y && t.y <= r.ur.y, pt = (r, t) => {
714
714
  if (t.ur.x < r.ll.x || r.ur.x < t.ll.x || t.ur.y < r.ll.y || r.ur.y < t.ll.y) return null;
@@ -1598,9 +1598,9 @@ function Ye(r) {
1598
1598
  function H(r, t, e) {
1599
1599
  r.classList.toggle(t, !!e);
1600
1600
  }
1601
- let Et;
1601
+ let bt;
1602
1602
  function X(r) {
1603
- Et = r;
1603
+ bt = r;
1604
1604
  }
1605
1605
  const U = [], Gt = [];
1606
1606
  let Y = [];
@@ -1617,7 +1617,7 @@ let Q = 0;
1617
1617
  function te() {
1618
1618
  if (Q !== 0)
1619
1619
  return;
1620
- const r = Et;
1620
+ const r = bt;
1621
1621
  do {
1622
1622
  try {
1623
1623
  for (; Q < U.length; ) {
@@ -1668,7 +1668,7 @@ function He(r, t) {
1668
1668
  r.$$.dirty[0] === -1 && (U.push(r), je(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
1669
1669
  }
1670
1670
  function tn(r, t, e, n, i, o, u = null, l = [-1]) {
1671
- const c = Et;
1671
+ const c = bt;
1672
1672
  X(r);
1673
1673
  const f = r.$$ = {
1674
1674
  fragment: null,
@@ -1941,18 +1941,19 @@ function an(r, t = !0, e = !0, n = {}, i = {}, o = Tt) {
1941
1941
  }
1942
1942
  for (const y of l)
1943
1943
  y.remove();
1944
- if (l.length = 0, w(), g) {
1944
+ l.length = 0, w();
1945
+ t: if (g) {
1945
1946
  let y = !1;
1946
1947
  if (g.geometry.type === "GeometryCollection") {
1947
1948
  const v = g.geometry.geometries.filter(
1948
1949
  (x) => x.type === "Polygon" || x.type === "MultiPolygon"
1949
1950
  );
1950
- t: if (v.length > 0) {
1951
+ e: if (v.length > 0) {
1951
1952
  const x = Jt(
1952
1953
  Z(v.map((m) => V(m)))
1953
1954
  );
1954
1955
  if (!x)
1955
- break t;
1956
+ break e;
1956
1957
  Ft(
1957
1958
  {
1958
1959
  ...g,
@@ -1975,16 +1976,16 @@ function an(r, t = !0, e = !0, n = {}, i = {}, o = Tt) {
1975
1976
  Ft(g, (v) => {
1976
1977
  if (!v)
1977
1978
  return;
1978
- const x = [...v.features], m = gt(ut(g)), E = m[2] - m[0];
1979
- m[0] - E / 4 < -180 && x.push(...qt(v, -360).features), m[2] + E / 4 > 180 && x.push(...qt(v, 360).features), w(Z(x));
1979
+ const x = [...v.features], m = gt(ut(g)), b = m[2] - m[0];
1980
+ m[0] - b / 4 < -180 && x.push(...qt(v, -360).features), m[2] + b / 4 > 180 && x.push(...qt(v, 360).features), w(Z(x));
1980
1981
  });
1981
1982
  else if (g.geometry.type === "LineString" || g.geometry.type === "MultiLineString") {
1982
1983
  w(g);
1983
- return;
1984
+ break t;
1984
1985
  }
1985
1986
  }
1986
1987
  if (!d && g.geometry.type !== "Point")
1987
- return;
1988
+ break t;
1988
1989
  if (t instanceof Function) {
1989
1990
  const v = t(r, g);
1990
1991
  v && l.push(v.addTo(r));
@@ -2015,8 +2016,8 @@ function an(r, t = !0, e = !0, n = {}, i = {}, o = Tt) {
2015
2016
  }
2016
2017
  );
2017
2018
  const m = x.getElement();
2018
- m && (m.addEventListener("click", (E) => {
2019
- E.stopPropagation(), u == null || u({ type: "markerClick", id: y.id });
2019
+ m && (m.addEventListener("click", (b) => {
2020
+ b.stopPropagation(), u == null || u({ type: "markerClick", id: y.id });
2020
2021
  }), m.addEventListener("mouseenter", () => {
2021
2022
  u == null || u({ type: "markerMouseEnter", id: y.id });
2022
2023
  }), m.addEventListener("mouseleave", () => {