@maptiler/sdk 5.0.0-rc.3 → 5.0.0-rc.5

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.
@@ -1,17 +1,17 @@
1
- var Jl = Object.defineProperty;
1
+ var Ql = Object.defineProperty;
2
2
  var Di = (r) => {
3
3
  throw TypeError(r);
4
4
  };
5
- var Ql = (r, t, e) => t in r ? Jl(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
6
- var y = (r, t, e) => Ql(r, typeof t != "symbol" ? t + "" : t, e), tn = (r, t, e) => t.has(r) || Di("Cannot " + e);
5
+ var eu = (r, t, e) => t in r ? Ql(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
6
+ var y = (r, t, e) => eu(r, typeof t != "symbol" ? t + "" : t, e), tn = (r, t, e) => t.has(r) || Di("Cannot " + e);
7
7
  var L = (r, t, e) => (tn(r, t, "read from private field"), e ? e.call(r) : t.get(r)), ee = (r, t, e) => t.has(r) ? Di("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), ne = (r, t, e, n) => (tn(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e), ie = (r, t, e) => (tn(r, t, "access private method"), e);
8
- import { MercatorCoordinate as Ar, LngLat as re, Marker as kr, LogoControl as eu, addProtocol as Ni, NavigationControl as mo, GeolocateControl as tu, LngLatBounds as oi, GeolocateEvent as ru, prewarm as nu, getWorkerUrl as iu, setWorkerUrl as au, Map as ou, setWorkerCount as su, AJAXError as lu, ScaleControl as uu, FullscreenControl as cu, Point as yo, Evented as go, Event as pu } from "maplibre-gl";
9
- import { AJAXError as _m, AttributionControl as Om, AttributionControl as Rm, BoxZoomHandler as Fm, BoxZoomHandler as zm, CanvasSource as $m, CanvasSource as Dm, CooperativeGesturesHandler as Nm, CooperativeGesturesHandler as jm, DoubleClickZoomHandler as Um, DragPanHandler as Bm, DragRotateHandler as Vm, EdgeInsets as Hm, Evented as qm, FullscreenControl as Gm, FullscreenControl as Zm, GeoJSONSource as Km, GeoJSONSource as Wm, GeolocateControl as Xm, GeolocateControl as Ym, Hash as Jm, ImageSource as Qm, ImageSource as e1, KeyboardHandler as t1, KeyboardHandler as r1, LngLat as n1, LngLatBounds as i1, LogoControl as a1, LogoControl as o1, Map as s1, MapMouseEvent as l1, MapMouseEvent as u1, MapTouchEvent as c1, MapTouchEvent as p1, MapWheelEvent as f1, MapWheelEvent as d1, Marker as h1, MercatorCoordinate as m1, NavigationControl as y1, NavigationControl as g1, Point as v1, Popup as b1, Popup as C1, RasterDEMTileSource as S1, RasterDEMTileSource as w1, RasterTileSource as L1, RasterTileSource as x1, ScaleControl as E1, ScaleControl as A1, ScrollZoomHandler as k1, ScrollZoomHandler as T1, Style as I1, Style as M1, TerrainControl as P1, TerrainControl as _1, TwoFingersTouchPitchHandler as O1, TwoFingersTouchPitchHandler as R1, TwoFingersTouchRotateHandler as F1, TwoFingersTouchZoomHandler as z1, TwoFingersTouchZoomRotateHandler as $1, VectorTileSource as D1, VectorTileSource as N1, VideoSource as j1, VideoSource as U1, addProtocol as B1, addSourceType as V1, clearPrewarmedResources as H1, config as q1, getVersion as G1, getMaxParallelImageRequests as Z1, getRTLTextPluginStatus as K1, getWorkerCount as W1, getWorkerUrl as X1, importScriptInWorkers as Y1, removeProtocol as J1, setMaxParallelImageRequests as Q1, setRTLTextPlugin as e0, setWorkerCount as t0, setWorkerUrl as r0 } from "maplibre-gl";
8
+ import { MercatorCoordinate as Ar, LngLat as re, Marker as kr, LogoControl as tu, addProtocol as Ni, NavigationControl as mo, GeolocateControl as ru, LngLatBounds as oi, GeolocateEvent as nu, prewarm as iu, getWorkerUrl as au, setWorkerUrl as ou, Map as su, setWorkerCount as lu, AJAXError as uu, ScaleControl as cu, FullscreenControl as pu, Event as yo, Point as go, Evented as vo } from "maplibre-gl";
9
+ import { AJAXError as _m, AttributionControl as Om, AttributionControl as Rm, BoxZoomHandler as Fm, BoxZoomHandler as zm, CanvasSource as $m, CanvasSource as Dm, CooperativeGesturesHandler as Nm, CooperativeGesturesHandler as Um, DoubleClickZoomHandler as jm, DragPanHandler as Bm, DragRotateHandler as Vm, EdgeInsets as Hm, Evented as qm, FullscreenControl as Gm, FullscreenControl as Zm, GeoJSONSource as Km, GeoJSONSource as Wm, GeolocateControl as Xm, GeolocateControl as Ym, Hash as Jm, ImageSource as Qm, ImageSource as e1, KeyboardHandler as t1, KeyboardHandler as r1, LngLat as n1, LngLatBounds as i1, LogoControl as a1, LogoControl as o1, Map as s1, MapMouseEvent as l1, MapMouseEvent as u1, MapTouchEvent as c1, MapTouchEvent as p1, MapWheelEvent as f1, MapWheelEvent as d1, Marker as h1, MercatorCoordinate as m1, NavigationControl as y1, NavigationControl as g1, Point as v1, Popup as b1, Popup as C1, RasterDEMTileSource as S1, RasterDEMTileSource as w1, RasterTileSource as L1, RasterTileSource as x1, ScaleControl as E1, ScaleControl as A1, ScrollZoomHandler as k1, ScrollZoomHandler as T1, Style as I1, Style as M1, TerrainControl as P1, TerrainControl as _1, TwoFingersTouchPitchHandler as O1, TwoFingersTouchPitchHandler as R1, TwoFingersTouchRotateHandler as F1, TwoFingersTouchZoomHandler as z1, TwoFingersTouchZoomRotateHandler as $1, VectorTileSource as D1, VectorTileSource as N1, VideoSource as U1, VideoSource as j1, addProtocol as B1, addSourceType as V1, clearPrewarmedResources as H1, config as q1, getVersion as G1, getMaxParallelImageRequests as Z1, getRTLTextPluginStatus as K1, getWorkerCount as W1, getWorkerUrl as X1, importScriptInWorkers as Y1, removeProtocol as J1, setMaxParallelImageRequests as Q1, setRTLTextPlugin as e0, setWorkerCount as t0, setWorkerUrl as r0 } from "maplibre-gl";
10
10
  import { v4 as Kt } from "uuid";
11
11
  import { Base64 as fu } from "js-base64";
12
12
  import du from "events";
13
13
  import * as tr from "@maptiler/client";
14
- import { Language as hu, getLanguageInfoFromCode as ji, config as De, MapStyle as it, mapStylePresetList as mr, expandMapStyle as mu, MapStyleVariant as vo, ReferenceMapStyle as bo, toLanguageInfo as Ui, getLanguageInfoFromFlag as yu, geolocation as Bi } from "@maptiler/client";
14
+ import { Language as hu, getLanguageInfoFromCode as Ui, config as De, MapStyle as it, mapStylePresetList as mr, expandMapStyle as mu, MapStyleVariant as bo, ReferenceMapStyle as Co, toLanguageInfo as ji, getLanguageInfoFromFlag as yu, geolocation as Bi } from "@maptiler/client";
15
15
  import { MapStyle as i0, MapStyleVariant as a0, ReferenceMapStyle as o0, ServiceError as s0, areSameLanguages as l0, bufferToPixelDataBrowser as u0, canParsePixelData as c0, circumferenceAtLatitude as p0, coordinates as f0, data as d0, elevation as h0, expandMapStyle as m0, geolocation as y0, getAutoLanguage as g0, getBufferToPixelDataParser as v0, getLanguageInfoFromCode as b0, getLanguageInfoFromFlag as C0, getLanguageInfoFromKey as S0, getTileCache as w0, isLanguageInfo as L0, mapStylePresetList as x0, math as E0, misc as A0, staticMaps as k0, styleToStyle as T0, toLanguageInfo as I0 } from "@maptiler/client";
16
16
  (function() {
17
17
  typeof window > "u" || (window.requestIdleCallback = window.requestIdleCallback || function(r) {
@@ -45,7 +45,7 @@ const ve = "maptiler", Oe = "m", gu = {
45
45
  s: "soft",
46
46
  m: "medium",
47
47
  l: "strong"
48
- }, Co = 2, nn = "center", vu = "xs", an = 1e3, bu = 4, kn = 150, Nr = {
48
+ }, So = 2, nn = "center", vu = "xs", an = 1e3, bu = 4, kn = 150, Nr = {
49
49
  // the dot: a 10px disc with a DOT_RING_PX ring
50
50
  xs: 10,
51
51
  s: 24,
@@ -69,7 +69,7 @@ const ve = "maptiler", Oe = "m", gu = {
69
69
  dataviz: { innerColor: "#1A94FF", outerColor: "#FFFFFF", contentColor: "#FFFFFF", outlineColor: "transparent" },
70
70
  "dataviz-dark": { innerColor: "#4DACFF", outerColor: "#292929", contentColor: "#292929", outlineColor: "transparent" },
71
71
  topo: { innerColor: "#1A79FF", outerColor: "#FFFFFF", contentColor: "#FFFFFF", outlineColor: "transparent" }
72
- }, So = ["maptiler"], wu = ["outerColor", "innerColor", "contentColor", "outlineColor"], Lu = {
72
+ }, wo = ["maptiler"], wu = ["outerColor", "innerColor", "contentColor", "outlineColor"], Lu = {
73
73
  scale: 1
74
74
  // scale in our class will be a 2D vector.
75
75
  }, xu = ["innerColor", "outerColor", "contentColor", "shadow", "opacity"], Eu = [
@@ -115,7 +115,7 @@ const ve = "maptiler", Oe = "m", gu = {
115
115
  pulseopacity: 1e3,
116
116
  ring: 3e3,
117
117
  bounce: 3e3
118
- }, Ou = 24, si = -0.06, wo = 575, Ru = '"Inter", "MapTiler Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif', Fu = 0.727, qi = 1, zu = 6, $u = 2, rr = 200, Du = 1e3, Nu = "http://www.w3.org/2000/svg", ju = "#ff00ff", lt = "marker-transform-wrapper", Lo = "maptiler-sdk-marker-font", xo = "marker-shape", Eo = "marker-default-content", Gi = "marker-minimized-dot", Ao = "maptiler-marker-collision-fade", Uu = "maptiler-marker-collision-hidden", nr = "maptiler-marker-collision-culled", Bu = "maptiler-marker-altitude-hidden", Vu = "maptiler-marker-altitude-occluded", Zi = "maptiler-marker-groundline";
118
+ }, Ou = 24, si = -0.06, Lo = 575, Ru = '"Inter", "MapTiler Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif', Fu = 0.727, qi = 1, zu = 6, $u = 2, rr = 200, Du = 1e3, Nu = "http://www.w3.org/2000/svg", Uu = "#ff00ff", lt = "marker-transform-wrapper", xo = "maptiler-sdk-marker-font", Eo = "marker-shape", Ao = "marker-default-content", Gi = "marker-minimized-dot", ko = "maptiler-marker-collision-fade", ju = "maptiler-marker-collision-hidden", nr = "maptiler-marker-collision-culled", Bu = "maptiler-marker-altitude-hidden", Vu = "maptiler-marker-altitude-occluded", Zi = "maptiler-marker-groundline";
119
119
  function ye(r, t, e) {
120
120
  return `M${String(r - e)} ${String(t)}A${String(e)} ${String(e)} 0 1 1 ${String(r + e)} ${String(t)}A${String(e)} ${String(e)} 0 1 1 ${String(r - e)} ${String(t)}Z`;
121
121
  }
@@ -258,7 +258,7 @@ const ft = {
258
258
  }
259
259
  }
260
260
  };
261
- function ko(r, t, e = "m") {
261
+ function To(r, t, e = "m") {
262
262
  return ft[r].sizes[t === "xs" ? e : t];
263
263
  }
264
264
  function St(r, t) {
@@ -298,7 +298,7 @@ function Ku(r) {
298
298
  }
299
299
  function li(r, t) {
300
300
  const e = Vi, n = Ku(r), i = n.split("-")[0], a = e[n] ?? e[i] ?? Vi.base;
301
- return t === void 0 || !So.includes(t) ? a : { innerColor: a.outerColor, outerColor: a.innerColor, contentColor: a.innerColor, outlineColor: a.outlineColor };
301
+ return t === void 0 || !wo.includes(t) ? a : { innerColor: a.outerColor, outerColor: a.innerColor, contentColor: a.innerColor, outlineColor: a.outlineColor };
302
302
  }
303
303
  let ir;
304
304
  function Wu() {
@@ -310,16 +310,16 @@ function Wu() {
310
310
  }
311
311
  return ir;
312
312
  }
313
- function To(r) {
314
- return `${String(wo)} ${String(r)}px ${Ru}`;
313
+ function Io(r) {
314
+ return `${String(Lo)} ${String(r)}px ${Ru}`;
315
315
  }
316
316
  function Xu(r, t) {
317
317
  const e = Wu();
318
- return e ? (e.font = To(t), "letterSpacing" in e && (e.letterSpacing = "0px"), e.measureText(r).width + (r.length - 1) * si * t) : null;
318
+ return e ? (e.font = Io(t), "letterSpacing" in e && (e.letterSpacing = "0px"), e.measureText(r).width + (r.length - 1) * si * t) : null;
319
319
  }
320
320
  async function Yu(r, t, e) {
321
321
  if (typeof document > "u" || !("fonts" in document)) return;
322
- const n = To(t);
322
+ const n = Io(t);
323
323
  if (!document.fonts.check(n, r)) {
324
324
  try {
325
325
  await document.fonts.load(n, r);
@@ -349,19 +349,19 @@ function Qu(r, t, e) {
349
349
  return o >= t.font ? t : { font: o, baseline: Math.round(t.baseline * o / t.font) };
350
350
  }
351
351
  function ui(r, t) {
352
- return { size: t, geometry: ko(r, t), metrics: Su[t], defaultIcon: ft[r].defaultIcon };
352
+ return { size: t, geometry: To(r, t), metrics: Su[t], defaultIcon: ft[r].defaultIcon };
353
353
  }
354
354
  function Tn(r) {
355
355
  return r.dataset.markerShape ?? ve;
356
356
  }
357
- function Io(r) {
357
+ function Mo(r) {
358
358
  return r.dataset.markerSize ?? Oe;
359
359
  }
360
- function Mo(r) {
360
+ function Po(r) {
361
361
  return r.dataset.size ?? "m";
362
362
  }
363
363
  function ec(r) {
364
- return ui(r.dataset.shape ?? ve, Mo(r));
364
+ return ui(r.dataset.shape ?? ve, Po(r));
365
365
  }
366
366
  function ce(r) {
367
367
  return document.createElementNS(Nu, r);
@@ -369,7 +369,7 @@ function ce(r) {
369
369
  function Mt(r) {
370
370
  return r.classList.contains(lt) ? r : r.querySelector(`.${lt}`) ?? r;
371
371
  }
372
- function Po(r, t) {
372
+ function _o(r, t) {
373
373
  const e = li("", t.shape ?? ve);
374
374
  r.style.setProperty("--marker-outer-color", t.outerColor ?? e.outerColor), r.style.setProperty("--marker-inner-color", t.innerColor ?? e.innerColor), r.style.setProperty("--marker-content-color", t.contentColor ?? e.contentColor), r.style.setProperty("--marker-outline-color", t.outlineColor ?? e.outlineColor), In(r, t.shadow, t.size ?? Oe);
375
375
  }
@@ -378,9 +378,9 @@ function In(r, t, e) {
378
378
  }
379
379
  function tc(r) {
380
380
  const t = r.shape ?? ve, e = r.size ?? Oe, n = document.createElement("div");
381
- n.className = lt, n.style.transformOrigin = ft[t].anchor === "center" ? "center" : "center bottom", n.dataset.markerShape = t, n.dataset.markerSize = e, Po(n, r);
381
+ n.className = lt, n.style.transformOrigin = ft[t].anchor === "center" ? "center" : "center bottom", n.dataset.markerShape = t, n.dataset.markerSize = e, _o(n, r);
382
382
  const [i, a] = r.scale ?? [1, 1];
383
- n.dataset.scaleX = String(i), n.dataset.scaleY = String(a), n.dataset.rotation = String(r.rotation ?? 0), Ir(n), r.opacity !== void 0 && (n.style.opacity = String(r.opacity)), r.name && n.classList.add(r.name), n.appendChild(e === "xs" ? pi(t) : fi(t, e, r)), r.debug && _o(n, !0);
383
+ n.dataset.scaleX = String(i), n.dataset.scaleY = String(a), n.dataset.rotation = String(r.rotation ?? 0), Ir(n), r.opacity !== void 0 && (n.style.opacity = String(r.opacity)), r.name && n.classList.add(r.name), n.appendChild(e === "xs" ? pi(t) : fi(t, e, r)), r.debug && Oo(n, !0);
384
384
  const o = yc(n);
385
385
  if (r.title && o.setAttribute("title", r.title), r.htmlAttributes)
386
386
  for (const [s, l] of Object.entries(r.htmlAttributes))
@@ -397,12 +397,12 @@ function ar(r, t, e) {
397
397
  if ("outlineColor" in t && n.style.setProperty("--marker-outline-color", t.outlineColor ?? a.outlineColor), "outline" in t) {
398
398
  const o = n.querySelector(".marker-outer");
399
399
  if (t.outline) {
400
- const s = t.outline === !0 ? Co : t.outline;
400
+ const s = t.outline === !0 ? So : t.outline;
401
401
  o == null || o.setAttribute("stroke-width", String(s));
402
402
  } else
403
403
  o == null || o.removeAttribute("stroke-width");
404
404
  }
405
- if ("shadow" in t && In(n, t.shadow, t.size ?? Io(n)), "opacity" in t && (n.style.opacity = t.opacity === void 0 ? "" : String(t.opacity)), "title" in t && (t.title ? r.setAttribute("title", t.title) : r.removeAttribute("title")), "content" in t && rc(n, t.content), "htmlAttributes" in t && t.htmlAttributes)
405
+ if ("shadow" in t && In(n, t.shadow, t.size ?? Mo(n)), "opacity" in t && (n.style.opacity = t.opacity === void 0 ? "" : String(t.opacity)), "title" in t && (t.title ? r.setAttribute("title", t.title) : r.removeAttribute("title")), "content" in t && rc(n, t.content), "htmlAttributes" in t && t.htmlAttributes)
406
406
  for (const [o, s] of Object.entries(t.htmlAttributes))
407
407
  r.setAttribute(o, String(s));
408
408
  if ("rotation" in t && (n.dataset.rotation = String(t.rotation ?? 0), Ir(n)), "scale" in t) {
@@ -413,20 +413,20 @@ function ar(r, t, e) {
413
413
  const o = t.size ?? Oe;
414
414
  nc(n, o), n.dataset.markerShadow || In(n, void 0, o);
415
415
  }
416
- "shape" in t && ac(n, t.shape ?? ve), "debug" in t && _o(n, !!t.debug), "priority" in t && (typeof t.priority == "number" ? r.style.zIndex = String(t.priority) : r.style.removeProperty("z-index"));
416
+ "shape" in t && ac(n, t.shape ?? ve), "debug" in t && Oo(n, !!t.debug), "priority" in t && (typeof t.priority == "number" ? r.style.zIndex = String(t.priority) : r.style.removeProperty("z-index"));
417
417
  }
418
418
  function ci(r) {
419
- return r.querySelector(`svg.${xo}`);
419
+ return r.querySelector(`svg.${Eo}`);
420
420
  }
421
421
  function rc(r, t) {
422
422
  const e = ci(r);
423
423
  if (!e) return;
424
424
  const n = e.querySelector(".marker-content"), i = ec(e);
425
425
  if (n instanceof SVGTextElement) {
426
- t ? jo(n, t, i) : (n.remove(), zo(e, i));
426
+ t ? jo(n, t, i) : (n.remove(), $o(e, i));
427
427
  return;
428
428
  }
429
- t && (n == null || n.remove(), No(e, !1), jr(e, t, i));
429
+ t && (n == null || n.remove(), Uo(e, !1), Ur(e, t, i));
430
430
  }
431
431
  function nc(r, t) {
432
432
  const e = ci(r), n = r.querySelector("svg.marker-dot");
@@ -440,9 +440,9 @@ function nc(r, t) {
440
440
  r.appendChild(fi(i, t));
441
441
  return;
442
442
  }
443
- Oo(e, i, t).style.display = "block";
443
+ Ro(e, i, t).style.display = "block";
444
444
  }
445
- function _o(r, t) {
445
+ function Oo(r, t) {
446
446
  const e = r.classList.contains(lt) ? r : r.querySelector(`.${lt}`);
447
447
  if (!e) return;
448
448
  const n = e.querySelector(".marker-debug");
@@ -464,37 +464,37 @@ function ic() {
464
464
  const i = ce("line");
465
465
  i.setAttribute("x1", "50%"), i.setAttribute("y1", "50%"), i.setAttribute("x2", "50%"), i.setAttribute("y2", "50%"), i.setAttribute("stroke-linecap", "round"), i.setAttribute("stroke-width", "5"), r.appendChild(i);
466
466
  for (const a of [t, e, n, i])
467
- a.setAttribute("stroke", ju), a.hasAttribute("stroke-width") || a.setAttribute("stroke-width", "1"), a.setAttribute("vector-effect", "non-scaling-stroke");
467
+ a.setAttribute("stroke", Uu), a.hasAttribute("stroke-width") || a.setAttribute("stroke-width", "1"), a.setAttribute("vector-effect", "non-scaling-stroke");
468
468
  return r;
469
469
  }
470
470
  function ac(r, t) {
471
471
  r.dataset.markerShape = t, r.style.transformOrigin = ft[t].anchor === "center" ? "center" : "center bottom";
472
472
  const e = r.querySelector("svg.marker-dot");
473
- e && Ro(e, t);
473
+ e && Fo(e, t);
474
474
  const n = ci(r);
475
475
  if (!n) return;
476
- const i = Io(r);
477
- Oo(n, t, i === "xs" ? Mo(n) : i);
476
+ const i = Mo(r);
477
+ Ro(n, t, i === "xs" ? Po(n) : i);
478
478
  }
479
- function Oo(r, t, e) {
479
+ function Ro(r, t, e) {
480
480
  var o, s;
481
481
  const n = fi(t, e), i = ui(t, e), a = (o = r.querySelector(".marker-outer")) == null ? void 0 : o.getAttribute("stroke-width");
482
- return a && ((s = n.querySelector(".marker-outer")) == null || s.setAttribute("stroke-width", a)), oc(r, n, i), zo(n, i), n.style.display = r.style.display, r.replaceWith(n), n;
482
+ return a && ((s = n.querySelector(".marker-outer")) == null || s.setAttribute("stroke-width", a)), oc(r, n, i), $o(n, i), n.style.display = r.style.display, r.replaceWith(n), n;
483
483
  }
484
484
  function oc(r, t, e) {
485
485
  const n = r.querySelector(".marker-content");
486
- if (!(!n || n.classList.contains(Eo))) {
486
+ if (!(!n || n.classList.contains(Ao))) {
487
487
  if (n instanceof SVGGElement && n.dataset.icon) {
488
488
  di(t, n.dataset.icon, e);
489
489
  return;
490
490
  }
491
491
  if (n instanceof SVGGElement) {
492
- n.setAttribute("transform", $o(e)), t.appendChild(n);
492
+ n.setAttribute("transform", Do(e)), t.appendChild(n);
493
493
  return;
494
494
  }
495
495
  if (n instanceof SVGImageElement) {
496
496
  const i = n.getAttribute("href");
497
- i && Do(t, i, e);
497
+ i && No(t, i, e);
498
498
  return;
499
499
  }
500
500
  if (n instanceof SVGForeignObjectElement) {
@@ -502,17 +502,17 @@ function oc(r, t, e) {
502
502
  (i instanceof HTMLElement || i instanceof SVGElement) && mi(t, i, e);
503
503
  return;
504
504
  }
505
- n instanceof SVGTextElement && n.textContent && jr(t, n.textContent, e);
505
+ n instanceof SVGTextElement && n.textContent && Ur(t, n.textContent, e);
506
506
  }
507
507
  }
508
508
  let Wi;
509
509
  function pi(r) {
510
510
  Wi ?? (Wi = sc());
511
511
  const t = Wi.cloneNode(!0);
512
- return Ro(t, r), t;
512
+ return Fo(t, r), t;
513
513
  }
514
- function Ro(r, t) {
515
- const e = t !== void 0 && So.includes(t), [n, i] = Array.from(r.children);
514
+ function Fo(r, t) {
515
+ const e = t !== void 0 && wo.includes(t), [n, i] = Array.from(r.children);
516
516
  n.style.fill = e ? "var(--marker-inner-color)" : "var(--marker-outer-color)", i.style.fill = e ? "var(--marker-outer-color)" : "var(--marker-inner-color)";
517
517
  }
518
518
  function sc() {
@@ -526,10 +526,10 @@ function sc() {
526
526
  return i.style.fill = "var(--marker-inner-color)", r.append(n, i), r;
527
527
  }
528
528
  function lc(r, t) {
529
- r.classList.add(Ao), r.classList.toggle(Uu, t);
529
+ r.classList.add(ko), r.classList.toggle(ju, t);
530
530
  }
531
531
  function uc(r) {
532
- r.classList.remove(Ao);
532
+ r.classList.remove(ko);
533
533
  }
534
534
  function Mn(r, t) {
535
535
  return t ? r.classList.contains(nr) ? !1 : (r.classList.add(nr), !0) : r.classList.contains(nr) ? (r.classList.remove(nr), !0) : !1;
@@ -559,8 +559,8 @@ function fi(r, t, e) {
559
559
  return e && (fc(a.firstElementChild, e), dc(a, e, ui(r, t))), a;
560
560
  }
561
561
  function pc(r, t) {
562
- const e = ko(r, t), n = Nr[t], i = ce("svg");
563
- i.classList.add(xo), i.setAttribute("viewBox", `0 0 ${String(n)} ${String(n)}`), i.setAttribute("width", String(n)), i.setAttribute("height", String(n)), i.style.display = "block", i.style.overflow = "visible", i.style.filter = "var(--marker-shadow)", i.dataset.shape = r, i.dataset.size = t;
562
+ const e = To(r, t), n = Nr[t], i = ce("svg");
563
+ i.classList.add(Eo), i.setAttribute("viewBox", `0 0 ${String(n)} ${String(n)}`), i.setAttribute("width", String(n)), i.setAttribute("height", String(n)), i.style.display = "block", i.style.overflow = "visible", i.style.filter = "var(--marker-shadow)", i.dataset.shape = r, i.dataset.size = t;
564
564
  const a = zt(e.outer);
565
565
  a.classList.add("marker-outer"), a.setAttribute("vector-effect", "non-scaling-stroke"), a.style.fill = "var(--marker-outer-color)", a.style.stroke = "var(--marker-outline-color)", i.appendChild(a);
566
566
  for (const o of e.inner) {
@@ -583,7 +583,7 @@ function ln(r, t) {
583
583
  }
584
584
  function fc(r, t) {
585
585
  if (!t.outline) return;
586
- const e = t.outline === !0 ? Co : t.outline;
586
+ const e = t.outline === !0 ? So : t.outline;
587
587
  r.setAttribute("stroke-width", String(e));
588
588
  }
589
589
  function dc(r, t, e) {
@@ -592,7 +592,7 @@ function dc(r, t, e) {
592
592
  return;
593
593
  }
594
594
  if ("url" in t && t.url) {
595
- Do(r, t.url, e);
595
+ No(r, t.url, e);
596
596
  return;
597
597
  }
598
598
  if ("template" in t && t.template) {
@@ -604,17 +604,17 @@ function dc(r, t, e) {
604
604
  return;
605
605
  }
606
606
  if (t.content) {
607
- jr(r, t.content, e);
607
+ Ur(r, t.content, e);
608
608
  return;
609
609
  }
610
- Fo(r, e);
610
+ zo(r, e);
611
611
  }
612
- function Fo(r, t) {
612
+ function zo(r, t) {
613
613
  var e;
614
- t.defaultIcon && ((e = di(r, t.defaultIcon, t)) == null || e.classList.add(Eo));
614
+ t.defaultIcon && ((e = di(r, t.defaultIcon, t)) == null || e.classList.add(Ao));
615
615
  }
616
- function zo(r, t) {
617
- r.querySelector(".marker-content") || Fo(r, t);
616
+ function $o(r, t) {
617
+ r.querySelector(".marker-content") || zo(r, t);
618
618
  }
619
619
  function di(r, t, e) {
620
620
  const n = Zu(t);
@@ -630,23 +630,23 @@ function hc(r, t, e, n) {
630
630
  return;
631
631
  }
632
632
  const a = i(e);
633
- typeof a == "string" ? jr(r, a, n) : a instanceof SVGElement ? mc(r, a, n) : mi(r, a, n);
633
+ typeof a == "string" ? Ur(r, a, n) : a instanceof SVGElement ? mc(r, a, n) : mi(r, a, n);
634
634
  }
635
635
  function mc(r, t, e) {
636
636
  const n = ce("g");
637
- n.classList.add("marker-content"), n.setAttribute("fill", "var(--marker-content-color)"), n.setAttribute("transform", $o(e)), n.appendChild(t), r.appendChild(n);
637
+ n.classList.add("marker-content"), n.setAttribute("fill", "var(--marker-content-color)"), n.setAttribute("transform", Do(e)), n.appendChild(t), r.appendChild(n);
638
638
  }
639
- function $o(r) {
639
+ function Do(r) {
640
640
  const { cx: t, cy: e } = r.geometry.content, { icon: n } = r.metrics, i = n / Ou;
641
641
  return `translate(${String(t - n / 2)}, ${String(e - n / 2)}) scale(${String(i)})`;
642
642
  }
643
- function Do(r, t, e) {
643
+ function No(r, t, e) {
644
644
  const { clip: n } = e.geometry;
645
- No(r, !0);
645
+ Uo(r, !0);
646
646
  const i = ce("image");
647
647
  i.classList.add("marker-content"), i.setAttribute("href", t), i.setAttribute("preserveAspectRatio", "xMidYMid slice"), hi(i, e), i.setAttribute("x", String(n.x)), i.setAttribute("y", String(n.y)), i.setAttribute("width", String(n.w)), i.setAttribute("height", String(n.h)), r.appendChild(i);
648
648
  }
649
- function No(r, t) {
649
+ function Uo(r, t) {
650
650
  for (const e of r.querySelectorAll(".marker-inner"))
651
651
  e.style.visibility = t ? "hidden" : "";
652
652
  }
@@ -657,9 +657,9 @@ function mi(r, t, e) {
657
657
  const { cx: n, cy: i } = e.geometry.content, { box: a } = e.metrics, o = ce("foreignObject");
658
658
  o.classList.add("marker-content"), o.setAttribute("x", String(n - a / 2)), o.setAttribute("y", String(i - a / 2)), o.setAttribute("width", String(a)), o.setAttribute("height", String(a)), hi(o, e), o.appendChild(t), r.appendChild(o);
659
659
  }
660
- function jr(r, t, e, n = "marker-content") {
660
+ function Ur(r, t, e, n = "marker-content") {
661
661
  const i = ce("text");
662
- return i.classList.add(n, Lo), hi(i, e), i.setAttribute("text-anchor", "middle"), i.setAttribute("font-weight", String(wo)), i.setAttribute("letter-spacing", `${String(si)}em`), i.style.fill = "var(--marker-content-color)", i.style.userSelect = "none", jo(i, t, e), r.appendChild(i), i;
662
+ return i.classList.add(n, xo), hi(i, e), i.setAttribute("text-anchor", "middle"), i.setAttribute("font-weight", String(Lo)), i.setAttribute("letter-spacing", `${String(si)}em`), i.style.fill = "var(--marker-content-color)", i.style.userSelect = "none", jo(i, t, e), r.appendChild(i), i;
663
663
  }
664
664
  function jo(r, t, e) {
665
665
  r.textContent = t, Qi(r, t, e), t.length > 1 && Yu(t, e.metrics.font, () => {
@@ -755,7 +755,7 @@ function ea(r, t) {
755
755
  }
756
756
  return [...i.values()].filter((a) => a.length > 1);
757
757
  }
758
- const Uo = Symbol("MapTiler:Marker:flushDOMUpdates"), xt = Symbol("MapTiler:Marker:pendingUpdates"), G = Symbol("MapTiler:Marker:markerElement"), gr = Symbol("MapTiler:Marker:detachFromDOM"), Mr = Symbol("MapTiler:Marker:refreshAdaptiveColor"), Bo = Symbol("MapTiler:Marker:collisionFootprint"), Vo = Symbol("MapTiler:Marker:emitCollisionDiff"), vr = Symbol("MapTiler:Marker:applyCollisionDisplayState"), Pt = Symbol("MapTiler:Marker:measuredElementSize"), Ho = Symbol("MapTiler:Marker:clearFocusState"), qo = Symbol("MapTiler:Marker:applyAltitudeFrame"), Go = Symbol("MapTiler:Marker:attachToMap"), ta = /* @__PURE__ */ new Set();
758
+ const Bo = Symbol("MapTiler:Marker:flushDOMUpdates"), xt = Symbol("MapTiler:Marker:pendingUpdates"), G = Symbol("MapTiler:Marker:markerElement"), gr = Symbol("MapTiler:Marker:detachFromDOM"), Mr = Symbol("MapTiler:Marker:refreshAdaptiveColor"), Vo = Symbol("MapTiler:Marker:collisionFootprint"), Ho = Symbol("MapTiler:Marker:emitCollisionDiff"), vr = Symbol("MapTiler:Marker:applyCollisionDisplayState"), Pt = Symbol("MapTiler:Marker:measuredElementSize"), qo = Symbol("MapTiler:Marker:clearFocusState"), Go = Symbol("MapTiler:Marker:applyAltitudeFrame"), Zo = Symbol("MapTiler:Marker:attachToMap"), ta = /* @__PURE__ */ new Set();
759
759
  function wc(r) {
760
760
  const t = r.getPriority();
761
761
  return typeof t == "number" ? t : 0;
@@ -805,7 +805,7 @@ class Lc {
805
805
  }), t.on("click", (i) => {
806
806
  const a = i.originalEvent.target;
807
807
  for (const o of n.values())
808
- a && o[G].contains(a) || o[Ho]();
808
+ a && o[G].contains(a) || o[qo]();
809
809
  }), n;
810
810
  }
811
811
  // queues an adaptive-colour re-resolution for every marker of a map,
@@ -824,7 +824,7 @@ class Lc {
824
824
  // registers a marker to be managed, called internally in Map.addMarker
825
825
  register(t, e) {
826
826
  if (this.markerMap.get(t) === e) return;
827
- t[Go](e), this.markerMap.set(t, e), this.getOrCreateIndex(e).set(t.id, t);
827
+ t[Zo](e), this.markerMap.set(t, e), this.getOrCreateIndex(e).set(t.id, t);
828
828
  const n = t.options.element;
829
829
  if (n && !t[Pt])
830
830
  if (n instanceof HTMLElement)
@@ -903,7 +903,7 @@ class Lc {
903
903
  const n = this.markerMap.get(e);
904
904
  n && this.collisionPending.add(n);
905
905
  }
906
- e[Uo]();
906
+ e[Bo]();
907
907
  }
908
908
  this.dirty.clear();
909
909
  const t = [...this.collisionPending];
@@ -1016,7 +1016,7 @@ class Lc {
1016
1016
  bottom: s.clientHeight + rr
1017
1017
  }, u = [], c = [];
1018
1018
  for (const h of n.values()) {
1019
- const m = h[Bo](), g = (m.mapAligned ? i : 0) + m.rotation, v = bc(t.project(h.getLngLat()), m, g), b = Pn(v);
1019
+ const m = h[Vo](), g = (m.mapAligned ? i : 0) + m.rotation, v = bc(t.project(h.getLngLat()), m, g), b = Pn(v);
1020
1020
  if (!yr(b, l)) {
1021
1021
  c.push(h);
1022
1022
  continue;
@@ -1099,7 +1099,7 @@ class Lc {
1099
1099
  const o = e.get(a.id) ?? ta, s = n.get(a.id) ?? ta;
1100
1100
  if (this.collisionSetsEqual(o, s)) continue;
1101
1101
  const l = [...s].filter((c) => !o.has(c)), u = [...o].filter((c) => !s.has(c));
1102
- l.length === 0 && u.length === 0 || a[Vo]({ kind: i, entered: l, exited: u, current: [...s] });
1102
+ l.length === 0 && u.length === 0 || a[Ho]({ kind: i, entered: l, exited: u, current: [...s] });
1103
1103
  }
1104
1104
  }
1105
1105
  //#endregion
@@ -1195,7 +1195,7 @@ class Lc {
1195
1195
  if (!o) return;
1196
1196
  const s = [];
1197
1197
  for (const l of e.participants) {
1198
- const u = l[qo](o, t);
1198
+ const u = l[Go](o, t);
1199
1199
  u !== null && s.push({ marker: l, depth: u });
1200
1200
  }
1201
1201
  s.sort((l, u) => u.depth - l.depth), s.forEach(({ marker: l }, u) => {
@@ -1270,7 +1270,7 @@ function Ic(r, t, e) {
1270
1270
  function X(r, t, e) {
1271
1271
  return r + (t - r) * e;
1272
1272
  }
1273
- function Zo(r) {
1273
+ function Ko(r) {
1274
1274
  if (r.length === 0)
1275
1275
  throw new Error("[lerpArrayValues]: Array empty, nothing to interpolate");
1276
1276
  if (r.every((t) => t === null))
@@ -1325,7 +1325,7 @@ function Oc(r, t = {}) {
1325
1325
  [v]: b
1326
1326
  }, {}), h = l ?? c.map((g, v) => v / c.length), m = s ?? h.map(() => e ?? "Linear");
1327
1327
  if (c.some((g) => g.length > 2) && console.warn("[parseGeoJSONFeatureToKeyframes]: Smoothing is not supported for 3D paths, only 2D smoothing will be applied, ignoring altitude"), n) {
1328
- const g = Rc(c, n.resolution, n.epsilon), v = Zo(aa([0, 1], g.length)), b = v.map(() => e ?? "Linear"), w = Object.entries(d).reduce((k, [x, E]) => {
1328
+ const g = Rc(c, n.resolution, n.epsilon), v = Ko(aa([0, 1], g.length)), b = v.map(() => e ?? "Linear"), w = Object.entries(d).reduce((k, [x, E]) => {
1329
1329
  if (!Array.isArray(E))
1330
1330
  return k;
1331
1331
  const $ = g.length, fe = aa(E, $);
@@ -1492,8 +1492,8 @@ const sa = {
1492
1492
  "iteration"
1493
1493
  ], Dc = {
1494
1494
  Linear: Nc,
1495
- QuadraticIn: jc,
1496
- QuadraticOut: Uc,
1495
+ QuadraticIn: Uc,
1496
+ QuadraticOut: jc,
1497
1497
  QuadraticInOut: Bc,
1498
1498
  CubicIn: Vc,
1499
1499
  CubicOut: Hc,
@@ -1507,17 +1507,17 @@ const sa = {
1507
1507
  ElasticIn: Jc,
1508
1508
  ElasticOut: Qc,
1509
1509
  ElasticInOut: ep,
1510
- BounceIn: Ko,
1510
+ BounceIn: Wo,
1511
1511
  BounceOut: yi,
1512
1512
  BounceInOut: tp
1513
1513
  };
1514
1514
  function Nc(r) {
1515
1515
  return r;
1516
1516
  }
1517
- function jc(r) {
1517
+ function Uc(r) {
1518
1518
  return r * r;
1519
1519
  }
1520
- function Uc(r) {
1520
+ function jc(r) {
1521
1521
  return r * (2 - r);
1522
1522
  }
1523
1523
  function Bc(r) {
@@ -1582,7 +1582,7 @@ function ep(r) {
1582
1582
  const a = i - 1;
1583
1583
  return t * 2 ** (-10 * a) * Math.sin((a - n) * (2 * Math.PI) / e) * 0.5 + 1;
1584
1584
  }
1585
- function Ko(r) {
1585
+ function Wo(r) {
1586
1586
  return 1 - yi(1 - r);
1587
1587
  }
1588
1588
  function yi(r) {
@@ -1599,7 +1599,7 @@ function yi(r) {
1599
1599
  return 7.5625 * t * t + 0.984375;
1600
1600
  }
1601
1601
  function tp(r) {
1602
- return r < 0.5 ? Ko(r * 2) * 0.5 : yi(r * 2 - 1) * 0.5 + 0.5;
1602
+ return r < 0.5 ? Wo(r * 2) * 0.5 : yi(r * 2 - 1) * 0.5 + 0.5;
1603
1603
  }
1604
1604
  class Wt {
1605
1605
  constructor({ keyframes: t, duration: e, iterations: n, manualMode: i, delay: a }) {
@@ -1654,7 +1654,7 @@ class Wt {
1654
1654
  for (const [f, d] of Object.entries(p))
1655
1655
  f in c || (c[f] = []), c[f].push(d);
1656
1656
  return c;
1657
- }, {}), u = Object.entries(l).reduce((c, [p, f]) => (c[p] = Zo(f), c), {});
1657
+ }, {}), u = Object.entries(l).reduce((c, [p, f]) => (c[p] = Ko(f), c), {});
1658
1658
  this.keyframes = s.map((c, p) => ({
1659
1659
  ...c,
1660
1660
  props: o.reduce((f, d) => (f[d] = u[d][p], f), {}),
@@ -2037,7 +2037,7 @@ function np() {
2037
2037
  }), pn;
2038
2038
  }
2039
2039
  var fn, ua;
2040
- function Wo() {
2040
+ function Xo() {
2041
2041
  if (ua) return fn;
2042
2042
  ua = 1;
2043
2043
  const r = np(), t = {};
@@ -2343,7 +2343,7 @@ var dn, ca;
2343
2343
  function ip() {
2344
2344
  if (ca) return dn;
2345
2345
  ca = 1;
2346
- const r = Wo();
2346
+ const r = Xo();
2347
2347
  function t() {
2348
2348
  const a = {}, o = Object.keys(r);
2349
2349
  for (let s = o.length, l = 0; l < s; l++)
@@ -2391,7 +2391,7 @@ var hn, pa;
2391
2391
  function ap() {
2392
2392
  if (pa) return hn;
2393
2393
  pa = 1;
2394
- const r = Wo(), t = ip(), e = {}, n = Object.keys(r);
2394
+ const r = Xo(), t = ip(), e = {}, n = Object.keys(r);
2395
2395
  function i(o) {
2396
2396
  const s = function(...l) {
2397
2397
  const u = l[0];
@@ -2448,7 +2448,7 @@ function up(r, t, e) {
2448
2448
  throw new Error(`Cannot get uniform location for ${e}`);
2449
2449
  return n;
2450
2450
  }
2451
- function Xo({
2451
+ function Yo({
2452
2452
  gl: r,
2453
2453
  vertexShaderSource: t,
2454
2454
  fragmentShaderSource: e,
@@ -2714,7 +2714,7 @@ class ma extends kr {
2714
2714
  y(this, "groundLineEnabled", !1);
2715
2715
  y(this, "groundLineOptions", {});
2716
2716
  y(this, "groundLineEl", null);
2717
- this[G] = a, this.classList.add(Lo), this.baseOffset = i.offset ?? [0, 0], e.element && Po(e.element, e), (o = e.animations) != null && o.enter && (a.style.opacity = "0"), this.managesOffset = !e.offset && !e.element, this.props = {
2717
+ this[G] = a, this.classList.add(xo), this.baseOffset = i.offset ?? [0, 0], e.element && _o(e.element, e), (o = e.animations) != null && o.enter && (a.style.opacity = "0"), this.managesOffset = !e.offset && !e.element, this.props = {
2718
2718
  shape: e.shape,
2719
2719
  size: e.size,
2720
2720
  scale: Array.from(e.scale ?? [1, 1]),
@@ -2775,7 +2775,7 @@ class ma extends kr {
2775
2775
  * Called only by `MarkerManager` during registration.
2776
2776
  * @param map - Target map instance.
2777
2777
  */
2778
- [(co = G, uo = xt, lo = Pt, Go)](e) {
2778
+ [(co = G, uo = xt, lo = Pt, Zo)](e) {
2779
2779
  this.suppressLifecycleAnimations = !0, super.addTo(e), this.suppressLifecycleAnimations = !1;
2780
2780
  const n = this.animations.enter, i = this.animations.idle;
2781
2781
  return n ? this.playEnterAnimation(n, () => {
@@ -2799,7 +2799,7 @@ class ma extends kr {
2799
2799
  * Applies all pending property updates to the marker element and clears
2800
2800
  * the batch. Called by {@link MarkerManager} on the next animation frame.
2801
2801
  */
2802
- [Uo]() {
2802
+ [Bo]() {
2803
2803
  const e = this[xt];
2804
2804
  this[xt] = {};
2805
2805
  const n = [...this.minimizedApplied ? this.minimizedKeys : [], ...this.appliedUIStateKeys], i = n.length > 0 ? rn(e, n) : e;
@@ -2832,7 +2832,7 @@ class ma extends kr {
2832
2832
  //#endregion
2833
2833
  //#region Collision
2834
2834
  /** Resolves the marker's screen footprint for collision detection. Always full-size, even minimized. */
2835
- [Bo]() {
2835
+ [Vo]() {
2836
2836
  const [e, n] = this.props.scale ?? [1, 1], i = {
2837
2837
  rotation: this.props.rotation ?? 0,
2838
2838
  mapAligned: this.getRotationAlignment() === "map"
@@ -2864,7 +2864,7 @@ class ma extends kr {
2864
2864
  return [e.x, e.y];
2865
2865
  }
2866
2866
  /** Fires the collision transition event (`markeroverlap`/`markerproximity`). */
2867
- [Vo](e) {
2867
+ [Ho](e) {
2868
2868
  this.fire(e.kind === "overlap" ? "markeroverlap" : "markerproximity", e);
2869
2869
  }
2870
2870
  /**
@@ -3198,7 +3198,7 @@ class ma extends kr {
3198
3198
  });
3199
3199
  }
3200
3200
  /** Blurs the marker's focusable element. Called by {@link MarkerManager} on map `click`. */
3201
- [Ho]() {
3201
+ [qo]() {
3202
3202
  Mt(this[G]).blur();
3203
3203
  }
3204
3204
  setUIStateActive(e, n) {
@@ -3448,7 +3448,7 @@ class ma extends kr {
3448
3448
  /**
3449
3449
  * Per-frame altitude hook, called by {@link MarkerManager} for every altitude-active marker. Returns the elevated point's camera depth (used to rank z-index among altitude-active markers), or `null` when off-screen/behind the camera.
3450
3450
  */
3451
- [qo](e, n) {
3451
+ [Go](e, n) {
3452
3452
  if (!this.altitudeEngaged) return null;
3453
3453
  const i = kc(this.getLngLat(), this.altitudeMeters, e, n, this.altitudeReference);
3454
3454
  return i ? (this.setAltitudeHidden(!1), this.setAltitudeOccluded(i.belowGround), this.altitudeDelta = {
@@ -3565,10 +3565,10 @@ const R = {
3565
3565
  };
3566
3566
  function ya() {
3567
3567
  if (typeof navigator > "u") {
3568
- const t = Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0], e = ji(t);
3568
+ const t = Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0], e = Ui(t);
3569
3569
  return e || R.ENGLISH;
3570
3570
  }
3571
- return Array.from(new Set(navigator.languages.map((t) => t.split("-")[0]))).map((t) => ji(t)).filter((t) => t)[0] ?? R.LOCAL;
3571
+ return Array.from(new Set(navigator.languages.map((t) => t.split("-")[0]))).map((t) => Ui(t)).filter((t) => t)[0] ?? R.LOCAL;
3572
3572
  }
3573
3573
  const ke = {
3574
3574
  maptilerURL: "https://www.maptiler.com/",
@@ -3577,7 +3577,7 @@ const ke = {
3577
3577
  terrainSourceId: "maptiler-terrain"
3578
3578
  };
3579
3579
  Object.freeze(ke);
3580
- const Ur = Kt();
3580
+ const jr = Kt();
3581
3581
  class wp extends du {
3582
3582
  constructor() {
3583
3583
  super(...arguments);
@@ -3712,7 +3712,7 @@ class wp extends du {
3712
3712
  }
3713
3713
  }
3714
3714
  const O = new wp();
3715
- class ga extends eu {
3715
+ class ga extends tu {
3716
3716
  constructor(e = {}) {
3717
3717
  super(e);
3718
3718
  y(this, "logoURL", "");
@@ -3735,7 +3735,7 @@ function Ap(r, t) {
3735
3735
  }
3736
3736
  return r.href;
3737
3737
  }
3738
- function Yo(r) {
3738
+ function Jo(r) {
3739
3739
  const t = new URL(r instanceof URL ? r.href : r);
3740
3740
  return t.searchParams.delete("key"), t.searchParams.delete("mtsid"), t.toString();
3741
3741
  }
@@ -3750,7 +3750,7 @@ async function kp() {
3750
3750
  r.delete(n);
3751
3751
  }
3752
3752
  async function Tp(r, t) {
3753
- const e = new URL(r), n = Yo(e), i = Pr ? await gi() : null;
3753
+ const e = new URL(r), n = Jo(e), i = Pr ? await gi() : null;
3754
3754
  if (i && await i.match(n))
3755
3755
  return;
3756
3756
  const a = new URL(e), o = await fetch(a.toString(), { signal: t });
@@ -3778,7 +3778,7 @@ function Ip() {
3778
3778
  ), Ni(Fn, async (r, t) => {
3779
3779
  if (!r.url) throw new Error("");
3780
3780
  r.url = r.url.replace(`${Fn}://`, "https://");
3781
- const e = new URL(r.url), n = Yo(e), i = new URL(e);
3781
+ const e = new URL(r.url), n = Jo(e), i = new URL(e);
3782
3782
  i.searchParams.delete("last-modified");
3783
3783
  const a = i.toString(), o = async (p) => ({
3784
3784
  data: await p.arrayBuffer(),
@@ -3807,7 +3807,7 @@ function ba(r, t) {
3807
3807
  url: r
3808
3808
  };
3809
3809
  }
3810
- return e.host === O.apiHost && (e.searchParams.has("key") || e.searchParams.append("key", O.apiKey), O.session && e.searchParams.append("mtsid", Ur)), {
3810
+ return e.host === O.apiHost && (e.searchParams.has("key") || e.searchParams.append("key", O.apiKey), O.session && e.searchParams.append("mtsid", jr)), {
3811
3811
  url: Ap(e, t)
3812
3812
  };
3813
3813
  }
@@ -3823,7 +3823,7 @@ function Ca(r) {
3823
3823
  return ba(t, e);
3824
3824
  };
3825
3825
  }
3826
- function Jo() {
3826
+ function Qo() {
3827
3827
  return Math.random().toString(36).substring(2);
3828
3828
  }
3829
3829
  function Br(r) {
@@ -3919,7 +3919,7 @@ function Np(r) {
3919
3919
  };
3920
3920
  return n([e]), t;
3921
3921
  }
3922
- function jp(r, t) {
3922
+ function Up(r, t) {
3923
3923
  const e = [];
3924
3924
  for (const a of r) {
3925
3925
  if (a.type !== "symbol")
@@ -3945,7 +3945,7 @@ function jp(r, t) {
3945
3945
  a === null ? i.unlocalized += 1 : (a in i.localized || (i.localized[a] = 0), i.localized[a] += 1);
3946
3946
  return i;
3947
3947
  }
3948
- var Qo = {
3948
+ var es = {
3949
3949
  $version: 8,
3950
3950
  $root: {
3951
3951
  version: {
@@ -6608,7 +6608,7 @@ var Qo = {
6608
6608
  }
6609
6609
  }
6610
6610
  };
6611
- const Up = Qo;
6611
+ const jp = es;
6612
6612
  var C = class {
6613
6613
  constructor(r, t, e, n, i = "error") {
6614
6614
  this.message = (r ? `${r}: ` : "") + e, n && (this.identifier = n), this.severity = i, t != null && t.__line__ && (this.line = t.__line__);
@@ -6622,9 +6622,9 @@ function J(r, t) {
6622
6622
  N: t
6623
6623
  };
6624
6624
  }
6625
- function j(r) {
6625
+ function U(r) {
6626
6626
  if (r.kind === "array") {
6627
- const t = j(r.itemType);
6627
+ const t = U(r.itemType);
6628
6628
  return typeof r.N == "number" ? `array<${t}, ${r.N}>` : r.itemType.kind === "value" ? "array" : `array<${t}>`;
6629
6629
  } else return r.kind;
6630
6630
  }
@@ -6654,7 +6654,7 @@ function Dt(r, t) {
6654
6654
  for (const e of Vp) if (!Dt(e, t)) return null;
6655
6655
  }
6656
6656
  }
6657
- return `Expected ${j(r)} but found ${j(t)} instead.`;
6657
+ return `Expected ${U(r)} but found ${U(t)} instead.`;
6658
6658
  }
6659
6659
  function vi(r, t) {
6660
6660
  return t.some((e) => e.kind === r.kind);
@@ -6665,15 +6665,15 @@ function Ve(r, t) {
6665
6665
  function Ae(r, t) {
6666
6666
  return r.kind === "array" && t.kind === "array" ? r.itemType.kind === t.itemType.kind && typeof r.N == "number" : r.kind === t.kind;
6667
6667
  }
6668
- const es = 0.96422, ts = 1, rs = 0.82521, ns = 4 / 29, at = 6 / 29, is = 3 * at * at, Hp = at * at * at, qp = Math.PI / 180, Gp = 180 / Math.PI;
6669
- function as(r) {
6668
+ const ts = 0.96422, rs = 1, ns = 0.82521, is = 4 / 29, at = 6 / 29, as = 3 * at * at, Hp = at * at * at, qp = Math.PI / 180, Gp = 180 / Math.PI;
6669
+ function os(r) {
6670
6670
  return r = r % 360, r < 0 && (r += 360), r;
6671
6671
  }
6672
- function os([r, t, e, n]) {
6672
+ function ss([r, t, e, n]) {
6673
6673
  r = gn(r), t = gn(t), e = gn(e);
6674
6674
  let i, a;
6675
- const o = vn((0.2225045 * r + 0.7168786 * t + 0.0606169 * e) / ts);
6676
- r === t && t === e ? i = a = o : (i = vn((0.4360747 * r + 0.3850649 * t + 0.1430804 * e) / es), a = vn((0.0139322 * r + 0.0971045 * t + 0.7141733 * e) / rs));
6675
+ const o = vn((0.2225045 * r + 0.7168786 * t + 0.0606169 * e) / rs);
6676
+ r === t && t === e ? i = a = o : (i = vn((0.4360747 * r + 0.3850649 * t + 0.1430804 * e) / ts), a = vn((0.0139322 * r + 0.0971045 * t + 0.7141733 * e) / ns));
6677
6677
  const s = 116 * o - 16;
6678
6678
  return [
6679
6679
  s < 0 ? 0 : s,
@@ -6686,11 +6686,11 @@ function gn(r) {
6686
6686
  return r <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
6687
6687
  }
6688
6688
  function vn(r) {
6689
- return r > Hp ? Math.pow(r, 1 / 3) : r / is + ns;
6689
+ return r > Hp ? Math.pow(r, 1 / 3) : r / as + is;
6690
6690
  }
6691
- function ss([r, t, e, n]) {
6691
+ function ls([r, t, e, n]) {
6692
6692
  let i = (r + 16) / 116, a = isNaN(t) ? i : i + t / 500, o = isNaN(e) ? i : i - e / 200;
6693
- return i = ts * Cn(i), a = es * Cn(a), o = rs * Cn(o), [
6693
+ return i = rs * Cn(i), a = ts * Cn(a), o = ns * Cn(o), [
6694
6694
  bn(3.1338561 * a - 1.6168667 * i - 0.4906146 * o),
6695
6695
  bn(-0.9787684 * a + 1.9161415 * i + 0.033454 * o),
6696
6696
  bn(0.0719453 * a - 0.2289914 * i + 1.4052427 * o),
@@ -6701,19 +6701,19 @@ function bn(r) {
6701
6701
  return r = r <= 304e-5 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - 0.055, r < 0 ? 0 : r > 1 ? 1 : r;
6702
6702
  }
6703
6703
  function Cn(r) {
6704
- return r > at ? r * r * r : is * (r - ns);
6704
+ return r > at ? r * r * r : as * (r - is);
6705
6705
  }
6706
6706
  function Zp(r) {
6707
- const [t, e, n, i] = os(r), a = Math.sqrt(e * e + n * n);
6707
+ const [t, e, n, i] = ss(r), a = Math.sqrt(e * e + n * n);
6708
6708
  return [
6709
- Math.round(a * 1e4) ? as(Math.atan2(n, e) * Gp) : NaN,
6709
+ Math.round(a * 1e4) ? os(Math.atan2(n, e) * Gp) : NaN,
6710
6710
  a,
6711
6711
  t,
6712
6712
  i
6713
6713
  ];
6714
6714
  }
6715
6715
  function Kp([r, t, e, n]) {
6716
- return r = isNaN(r) ? 0 : r * qp, ss([
6716
+ return r = isNaN(r) ? 0 : r * qp, ls([
6717
6717
  e,
6718
6718
  Math.cos(r) * t,
6719
6719
  Math.sin(r) * t,
@@ -6721,7 +6721,7 @@ function Kp([r, t, e, n]) {
6721
6721
  ]);
6722
6722
  }
6723
6723
  function Wp([r, t, e, n]) {
6724
- r = as(r), t /= 100, e /= 100;
6724
+ r = os(r), t /= 100, e /= 100;
6725
6725
  function i(a) {
6726
6726
  const o = (a + r / 30) % 12, s = t * Math.min(e, 1 - e);
6727
6727
  return e - s * Math.max(-1, Math.min(o - 3, 9 - o, 1));
@@ -7634,7 +7634,7 @@ var Z, Q = (Z = class {
7634
7634
  * @returns Gien color, with reversed alpha blending, in LAB color space.
7635
7635
  */
7636
7636
  get lab() {
7637
- return this.overwriteGetter("lab", os(this.rgb));
7637
+ return this.overwriteGetter("lab", ss(this.rgb));
7638
7638
  }
7639
7639
  /**
7640
7640
  * Lazy getter pattern. When getter is called for the first time lazy value
@@ -7700,7 +7700,7 @@ var Z, Q = (Z = class {
7700
7700
  return new Z(m, g, v, b, !1);
7701
7701
  }
7702
7702
  case "lab": {
7703
- const [a, o, s, l] = ss(Nt(t.lab, e.lab, n));
7703
+ const [a, o, s, l] = ls(Nt(t.lab, e.lab, n));
7704
7704
  return new Z(a, o, s, l, !1);
7705
7705
  }
7706
7706
  }
@@ -7889,7 +7889,7 @@ var mt = class Cr {
7889
7889
  }
7890
7890
  return new Cr(s);
7891
7891
  }
7892
- }, yt = class ls {
7892
+ }, yt = class us {
7893
7893
  constructor(t) {
7894
7894
  this.name = t.name, this.available = t.available;
7895
7895
  }
@@ -7897,7 +7897,7 @@ var mt = class Cr {
7897
7897
  return this.name;
7898
7898
  }
7899
7899
  static fromString(t) {
7900
- return t ? new ls({
7900
+ return t ? new us({
7901
7901
  name: t,
7902
7902
  available: !1
7903
7903
  }) : null;
@@ -7936,7 +7936,7 @@ var mt = class Cr {
7936
7936
  return new Intl.Collator(this.locale ? this.locale : []).resolvedOptions().locale;
7937
7937
  }
7938
7938
  };
7939
- function us(r, t, e, n) {
7939
+ function cs(r, t, e, n) {
7940
7940
  return typeof r == "number" && r >= 0 && r <= 255 && typeof t == "number" && t >= 0 && t <= 255 && typeof e == "number" && e >= 0 && e <= 255 ? typeof n > "u" || typeof n == "number" && n >= 0 && n <= 1 ? null : `Invalid rgba value [${[
7941
7941
  r,
7942
7942
  t,
@@ -7996,7 +7996,7 @@ function Rt(r) {
7996
7996
  const t = typeof r;
7997
7997
  return r === null ? "" : t === "string" || t === "number" || t === "boolean" ? String(r) : r instanceof Q || r instanceof gt || r instanceof Yt || r instanceof dt || r instanceof ht || r instanceof Re || r instanceof mt || r instanceof yt ? r.toString() : JSON.stringify(r);
7998
7998
  }
7999
- var jt = class cs {
7999
+ var Ut = class ps {
8000
8000
  constructor(t, e) {
8001
8001
  this.type = t, this.value = e;
8002
8002
  }
@@ -8006,7 +8006,7 @@ var jt = class cs {
8006
8006
  const n = t[1];
8007
8007
  let i = q(n);
8008
8008
  const a = e.expectedType;
8009
- return i.kind === "array" && i.N === 0 && a && a.kind === "array" && (typeof a.N != "number" || a.N === 0) && (i = a), new cs(i, n);
8009
+ return i.kind === "array" && i.N === 0 && a && a.kind === "array" && (typeof a.N != "number" || a.N === 0) && (i = a), new ps(i, n);
8010
8010
  }
8011
8011
  evaluate() {
8012
8012
  return this.value;
@@ -8023,7 +8023,7 @@ const tf = [
8023
8023
  "LineString",
8024
8024
  "Polygon"
8025
8025
  ];
8026
- var ps = class {
8026
+ var fs = class {
8027
8027
  constructor() {
8028
8028
  this.globals = null, this.feature = null, this.featureState = null, this.formattedSection = null, this._parseColorCache = /* @__PURE__ */ new Map(), this.availableImages = null, this.canonical = null;
8029
8029
  }
@@ -8047,7 +8047,7 @@ var ps = class {
8047
8047
  return t || (t = Q.parse(r), this._parseColorCache.set(r, t)), t;
8048
8048
  }
8049
8049
  };
8050
- function fs(r, t, e) {
8050
+ function ds(r, t, e) {
8051
8051
  const n = r.length - 1;
8052
8052
  let i = 0, a = n, o = 0, s, l;
8053
8053
  for (; i <= a; )
@@ -8058,7 +8058,7 @@ function fs(r, t, e) {
8058
8058
  else throw new N("Input is not a number.", e);
8059
8059
  return 0;
8060
8060
  }
8061
- var ds = class hs {
8061
+ var hs = class ms {
8062
8062
  constructor(t, e, n, i) {
8063
8063
  this.type = t, this.input = e, this.key = i, this.labels = [], this.outputs = [];
8064
8064
  for (const [a, o] of n)
@@ -8080,7 +8080,7 @@ var ds = class hs {
8080
8080
  if (!p) return null;
8081
8081
  a = a || p.type, i.push([s, p]);
8082
8082
  }
8083
- return new hs(a, n, i, e.key);
8083
+ return new ms(a, n, i, e.key);
8084
8084
  }
8085
8085
  evaluate(t) {
8086
8086
  const e = this.labels, n = this.outputs;
@@ -8088,7 +8088,7 @@ var ds = class hs {
8088
8088
  const i = this.input.evaluate(t);
8089
8089
  if (i <= e[0]) return n[0].evaluate(t);
8090
8090
  const a = e.length;
8091
- return i >= e[a - 1] ? n[a - 1].evaluate(t) : n[fs(e, i, this.key)].evaluate(t);
8091
+ return i >= e[a - 1] ? n[a - 1].evaluate(t) : n[ds(e, i, this.key)].evaluate(t);
8092
8092
  }
8093
8093
  eachChild(t) {
8094
8094
  t(this.input);
@@ -8170,7 +8170,7 @@ var qe = class $n {
8170
8170
  if (!h) return null;
8171
8171
  l = l || h.type, s.push([c, h]);
8172
8172
  }
8173
- return !Ae(l, S) && !Ae(l, Hr) && !Ae(l, Ce) && !Ae(l, Zr) && !Ae(l, Kr) && !Ae(l, $t) && !Ae(l, Wr) && !Ae(l, J(S)) ? e.error(`Type ${j(l)} is not interpolatable.`) : new $n(l, n, i, a, s, e.key);
8173
+ return !Ae(l, S) && !Ae(l, Hr) && !Ae(l, Ce) && !Ae(l, Zr) && !Ae(l, Kr) && !Ae(l, $t) && !Ae(l, Wr) && !Ae(l, J(S)) ? e.error(`Type ${U(l)} is not interpolatable.`) : new $n(l, n, i, a, s, e.key);
8174
8174
  }
8175
8175
  evaluate(t) {
8176
8176
  const e = this.labels, n = this.outputs;
@@ -8179,7 +8179,7 @@ var qe = class $n {
8179
8179
  if (i <= e[0]) return n[0].evaluate(t);
8180
8180
  const a = e.length;
8181
8181
  if (i >= e[a - 1]) return n[a - 1].evaluate(t);
8182
- const o = fs(e, i, this.key), s = e[o], l = e[o + 1], u = $n.interpolationFactor(this.interpolation, i, s, l), c = n[o].evaluate(t), p = n[o + 1].evaluate(t);
8182
+ const o = ds(e, i, this.key), s = e[o], l = e[o + 1], u = $n.interpolationFactor(this.interpolation, i, s, l), c = n[o].evaluate(t), p = n[o + 1].evaluate(t);
8183
8183
  switch (this.operator) {
8184
8184
  case "interpolate":
8185
8185
  switch (this.type.kind) {
@@ -8228,7 +8228,7 @@ function Sn(r, t, e, n) {
8228
8228
  const i = n - e, a = r - e;
8229
8229
  return i === 0 ? 0 : t === 1 ? a / i : (Math.pow(t, a) - 1) / (Math.pow(t, i) - 1);
8230
8230
  }
8231
- var nf = class ms {
8231
+ var nf = class ys {
8232
8232
  constructor(t) {
8233
8233
  this.type = Gr, this.sections = t;
8234
8234
  }
@@ -8272,7 +8272,7 @@ var nf = class ms {
8272
8272
  });
8273
8273
  }
8274
8274
  }
8275
- return new ms(i);
8275
+ return new ys(i);
8276
8276
  }
8277
8277
  evaluate(t) {
8278
8278
  const e = (n) => {
@@ -8311,7 +8311,7 @@ const sr = {
8311
8311
  boolean: P,
8312
8312
  object: Be
8313
8313
  };
8314
- var Le = class ys {
8314
+ var Le = class gs {
8315
8315
  constructor(t, e, n) {
8316
8316
  this.type = t, this.args = e, this.key = n;
8317
8317
  }
@@ -8342,13 +8342,13 @@ var Le = class ys {
8342
8342
  if (!s) return null;
8343
8343
  o.push(s);
8344
8344
  }
8345
- return new ys(i, o, e.key);
8345
+ return new gs(i, o, e.key);
8346
8346
  }
8347
8347
  evaluate(t) {
8348
8348
  for (let e = 0; e < this.args.length; e++) {
8349
8349
  const n = this.args[e].evaluate(t);
8350
8350
  if (Dt(this.type, q(n))) {
8351
- if (e === this.args.length - 1) throw new N(`Expected value to be of type ${j(this.type)}, but found ${j(q(n))} instead.`, this.key);
8351
+ if (e === this.args.length - 1) throw new N(`Expected value to be of type ${U(this.type)}, but found ${U(q(n))} instead.`, this.key);
8352
8352
  } else return n;
8353
8353
  }
8354
8354
  throw new Error();
@@ -8366,7 +8366,7 @@ const La = {
8366
8366
  "to-number": S,
8367
8367
  "to-string": T
8368
8368
  };
8369
- var rt = class gs {
8369
+ var rt = class vs {
8370
8370
  constructor(t, e, n) {
8371
8371
  this.type = t, this.args = e, this.key = n;
8372
8372
  }
@@ -8381,7 +8381,7 @@ var rt = class gs {
8381
8381
  if (!s) return null;
8382
8382
  a.push(s);
8383
8383
  }
8384
- return new gs(i, a, e.key);
8384
+ return new vs(i, a, e.key);
8385
8385
  }
8386
8386
  evaluate(t) {
8387
8387
  switch (this.type.kind) {
@@ -8394,7 +8394,7 @@ var rt = class gs {
8394
8394
  if (typeof e == "string") {
8395
8395
  const a = t.parseColor(e);
8396
8396
  if (a) return a;
8397
- } else if (Array.isArray(e) && (e.length < 3 || e.length > 4 ? n = `Invalid rgba value ${JSON.stringify(e)}: expected an array containing either three or four numeric values.` : n = us(e[0], e[1], e[2], e[3]), !n))
8397
+ } else if (Array.isArray(e) && (e.length < 3 || e.length > 4 ? n = `Invalid rgba value ${JSON.stringify(e)}: expected an array containing either three or four numeric values.` : n = cs(e[0], e[1], e[2], e[3]), !n))
8398
8398
  return new Q(e[0] / 255, e[1] / 255, e[2] / 255, e[3]);
8399
8399
  }
8400
8400
  throw new N(n || `Could not parse color from value '${typeof e == "string" ? e : JSON.stringify(e)}'`, this.key);
@@ -8464,7 +8464,7 @@ var rt = class gs {
8464
8464
  outputDefined() {
8465
8465
  return this.args.every((t) => t.outputDefined());
8466
8466
  }
8467
- }, vs = class bs {
8467
+ }, bs = class Cs {
8468
8468
  constructor(t, e) {
8469
8469
  this.type = e.type, this.bindings = [].concat(t), this.result = e;
8470
8470
  }
@@ -8487,19 +8487,19 @@ var rt = class gs {
8487
8487
  n.push([o, s]);
8488
8488
  }
8489
8489
  const i = e.parse(t[t.length - 1], t.length - 1, e.expectedType, n);
8490
- return i ? new bs(n, i) : null;
8490
+ return i ? new Cs(n, i) : null;
8491
8491
  }
8492
8492
  outputDefined() {
8493
8493
  return this.result.outputDefined();
8494
8494
  }
8495
- }, Cs = class Ss {
8495
+ }, Ss = class ws {
8496
8496
  constructor(t, e) {
8497
8497
  this.type = e.type, this.name = t, this.boundExpression = e;
8498
8498
  }
8499
8499
  static parse(t, e) {
8500
8500
  if (t.length !== 2 || typeof t[1] != "string") return e.error("'var' expression requires exactly one string literal argument.");
8501
8501
  const n = t[1];
8502
- return e.scope.has(n) ? new Ss(n, e.scope.get(n)) : e.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`, 1);
8502
+ return e.scope.has(n) ? new ws(n, e.scope.get(n)) : e.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`, 1);
8503
8503
  }
8504
8504
  evaluate(t) {
8505
8505
  return this.boundExpression.evaluate(t);
@@ -8509,7 +8509,7 @@ var rt = class gs {
8509
8509
  outputDefined() {
8510
8510
  return !1;
8511
8511
  }
8512
- }, sf = class ws {
8512
+ }, sf = class Ls {
8513
8513
  constructor(t, e, n, i) {
8514
8514
  this.type = t, this.index = e, this.input = n, this.key = i;
8515
8515
  }
@@ -8518,7 +8518,7 @@ var rt = class gs {
8518
8518
  const n = e.parse(t[1], 1, S), i = e.parse(t[2], 2, J(e.expectedType || M));
8519
8519
  if (!n || !i) return null;
8520
8520
  const a = i.type;
8521
- return new ws(a.itemType, n, i, e.key);
8521
+ return new Ls(a.itemType, n, i, e.key);
8522
8522
  }
8523
8523
  evaluate(t) {
8524
8524
  const e = this.index.evaluate(t), n = this.input.evaluate(t);
@@ -8533,7 +8533,7 @@ var rt = class gs {
8533
8533
  outputDefined() {
8534
8534
  return !1;
8535
8535
  }
8536
- }, lf = class Ls {
8536
+ }, lf = class xs {
8537
8537
  constructor(t, e, n) {
8538
8538
  this.needle = t, this.haystack = e, this.key = n, this.type = P;
8539
8539
  }
@@ -8546,7 +8546,7 @@ var rt = class gs {
8546
8546
  S,
8547
8547
  Vr,
8548
8548
  M
8549
- ]) ? new Ls(n, i, e.key) : e.error(`Expected first argument to be of type boolean, string, number or null, but found ${j(n.type)} instead`);
8549
+ ]) ? new xs(n, i, e.key) : e.error(`Expected first argument to be of type boolean, string, number or null, but found ${U(n.type)} instead`);
8550
8550
  }
8551
8551
  evaluate(t) {
8552
8552
  const e = this.needle.evaluate(t), n = this.haystack.evaluate(t);
@@ -8556,8 +8556,8 @@ var rt = class gs {
8556
8556
  "string",
8557
8557
  "number",
8558
8558
  "null"
8559
- ])) throw new N(`Expected first argument to be of type boolean, string, number or null, but found ${j(q(e))} instead.`, this.key);
8560
- if (!Ve(n, ["string", "array"])) throw new N(`Expected second argument to be of type array or string, but found ${j(q(n))} instead.`, this.key);
8559
+ ])) throw new N(`Expected first argument to be of type boolean, string, number or null, but found ${U(q(e))} instead.`, this.key);
8560
+ if (!Ve(n, ["string", "array"])) throw new N(`Expected second argument to be of type array or string, but found ${U(q(n))} instead.`, this.key);
8561
8561
  return n.indexOf(e) >= 0;
8562
8562
  }
8563
8563
  eachChild(t) {
@@ -8580,7 +8580,7 @@ var rt = class gs {
8580
8580
  S,
8581
8581
  Vr,
8582
8582
  M
8583
- ])) return e.error(`Expected first argument to be of type boolean, string, number or null, but found ${j(n.type)} instead`);
8583
+ ])) return e.error(`Expected first argument to be of type boolean, string, number or null, but found ${U(n.type)} instead`);
8584
8584
  if (t.length === 4) {
8585
8585
  const a = e.parse(t[3], 3, S);
8586
8586
  return a ? new Dn(n, i, e.key, a) : null;
@@ -8593,14 +8593,14 @@ var rt = class gs {
8593
8593
  "string",
8594
8594
  "number",
8595
8595
  "null"
8596
- ])) throw new N(`Expected first argument to be of type boolean, string, number or null, but found ${j(q(e))} instead.`, this.key);
8596
+ ])) throw new N(`Expected first argument to be of type boolean, string, number or null, but found ${U(q(e))} instead.`, this.key);
8597
8597
  let i;
8598
8598
  if (this.fromIndex && (i = this.fromIndex.evaluate(t)), Ve(n, ["string"])) {
8599
8599
  const a = n.indexOf(e, i);
8600
8600
  return a === -1 ? -1 : [...n.slice(0, a)].length;
8601
8601
  } else {
8602
8602
  if (Ve(n, ["array"])) return n.indexOf(e, i);
8603
- throw new N(`Expected second argument to be of type array or string, but found ${j(q(n))} instead.`, this.key);
8603
+ throw new N(`Expected second argument to be of type array or string, but found ${U(q(n))} instead.`, this.key);
8604
8604
  }
8605
8605
  }
8606
8606
  eachChild(t) {
@@ -8609,7 +8609,7 @@ var rt = class gs {
8609
8609
  outputDefined() {
8610
8610
  return !1;
8611
8611
  }
8612
- }, cf = class xs {
8612
+ }, cf = class Es {
8613
8613
  constructor(t, e, n, i, a, o) {
8614
8614
  this.inputType = t, this.type = e, this.input = n, this.cases = i, this.outputs = a, this.otherwise = o;
8615
8615
  }
@@ -8641,7 +8641,7 @@ var rt = class gs {
8641
8641
  const s = e.parse(t[1], 1, M);
8642
8642
  if (!s) return null;
8643
8643
  const l = e.parse(t[t.length - 1], t.length - 1, i);
8644
- return !l || s.type.kind !== "value" && e.concat(1).checkSubtype(n, s.type) ? null : new xs(n, i, s, a, o, l);
8644
+ return !l || s.type.kind !== "value" && e.concat(1).checkSubtype(n, s.type) ? null : new Es(n, i, s, a, o, l);
8645
8645
  }
8646
8646
  evaluate(t) {
8647
8647
  const e = this.input.evaluate(t);
@@ -8653,7 +8653,7 @@ var rt = class gs {
8653
8653
  outputDefined() {
8654
8654
  return this.outputs.every((t) => t.outputDefined()) && this.otherwise.outputDefined();
8655
8655
  }
8656
- }, pf = class Es {
8656
+ }, pf = class As {
8657
8657
  constructor(t, e, n) {
8658
8658
  this.type = t, this.branches = e, this.otherwise = n;
8659
8659
  }
@@ -8673,7 +8673,7 @@ var rt = class gs {
8673
8673
  const a = e.parse(t[t.length - 1], t.length - 1, n);
8674
8674
  if (!a) return null;
8675
8675
  if (!n) throw new Error("Can't infer output type");
8676
- return new Es(n, i, a);
8676
+ return new As(n, i, a);
8677
8677
  }
8678
8678
  evaluate(t) {
8679
8679
  for (const [e, n] of this.branches) if (e.evaluate(t)) return n.evaluate(t);
@@ -8699,7 +8699,7 @@ var rt = class gs {
8699
8699
  J(M),
8700
8700
  T,
8701
8701
  M
8702
- ])) return e.error(`Expected first argument to be of type array or string, but found ${j(n.type)} instead`);
8702
+ ])) return e.error(`Expected first argument to be of type array or string, but found ${U(n.type)} instead`);
8703
8703
  if (t.length === 4) {
8704
8704
  const a = e.parse(t[3], 3, S);
8705
8705
  return a ? new Nn(n.type, n, i, e.key, a) : null;
@@ -8710,7 +8710,7 @@ var rt = class gs {
8710
8710
  let i;
8711
8711
  if (this.endIndex && (i = this.endIndex.evaluate(t)), Ve(e, ["string"])) return [...e].slice(n, i).join("");
8712
8712
  if (Ve(e, ["array"])) return e.slice(n, i);
8713
- throw new N(`Expected first argument to be of type array or string, but found ${j(q(e))} instead.`, this.key);
8713
+ throw new N(`Expected first argument to be of type array or string, but found ${U(q(e))} instead.`, this.key);
8714
8714
  }
8715
8715
  eachChild(t) {
8716
8716
  t(this.input), t(this.beginIndex), this.endIndex && t(this.endIndex);
@@ -8718,7 +8718,7 @@ var rt = class gs {
8718
8718
  outputDefined() {
8719
8719
  return !1;
8720
8720
  }
8721
- }, As = class jn {
8721
+ }, ks = class Un {
8722
8722
  constructor(t, e) {
8723
8723
  this.type = t, this.args = e;
8724
8724
  }
@@ -8734,7 +8734,7 @@ var rt = class gs {
8734
8734
  n = n || s.type, a.push(s);
8735
8735
  }
8736
8736
  if (!n) throw new Error("No output type");
8737
- return i && a.some((o) => Dt(i, o.type)) ? new jn(M, a) : new jn(n, a);
8737
+ return i && a.some((o) => Dt(i, o.type)) ? new Un(M, a) : new Un(n, a);
8738
8738
  }
8739
8739
  evaluate(t) {
8740
8740
  let e = null, n = 0, i;
@@ -8770,11 +8770,11 @@ function gf(r, t, e) {
8770
8770
  function vf(r, t, e) {
8771
8771
  return t >= e;
8772
8772
  }
8773
- function ks(r, t, e, n) {
8773
+ function Ts(r, t, e, n) {
8774
8774
  return n.compare(t, e) === 0;
8775
8775
  }
8776
8776
  function bf(r, t, e, n) {
8777
- return !ks(r, t, e, n);
8777
+ return !Ts(r, t, e, n);
8778
8778
  }
8779
8779
  function Cf(r, t, e, n) {
8780
8780
  return n.compare(t, e) < 0;
@@ -8790,7 +8790,7 @@ function Lf(r, t, e, n) {
8790
8790
  }
8791
8791
  function vt(r, t, e) {
8792
8792
  const n = r !== "==" && r !== "!=";
8793
- return class Ts {
8793
+ return class Is {
8794
8794
  constructor(a, o, s, l) {
8795
8795
  this.lhs = a, this.rhs = o, this.key = s, this.collator = l, this.type = P, this.hasUntypedArgument = a.type.kind === "value" || o.type.kind === "value";
8796
8796
  }
@@ -8799,18 +8799,18 @@ function vt(r, t, e) {
8799
8799
  const s = a[0];
8800
8800
  let l = o.parse(a[1], 1, M);
8801
8801
  if (!l) return null;
8802
- if (!xa(s, l.type)) return o.concat(1).error(`"${s}" comparisons are not supported for type '${j(l.type)}'.`);
8802
+ if (!xa(s, l.type)) return o.concat(1).error(`"${s}" comparisons are not supported for type '${U(l.type)}'.`);
8803
8803
  let u = o.parse(a[2], 2, M);
8804
8804
  if (!u) return null;
8805
- if (!xa(s, u.type)) return o.concat(2).error(`"${s}" comparisons are not supported for type '${j(u.type)}'.`);
8806
- if (l.type.kind !== u.type.kind && l.type.kind !== "value" && u.type.kind !== "value") return o.error(`Cannot compare types '${j(l.type)}' and '${j(u.type)}'.`);
8805
+ if (!xa(s, u.type)) return o.concat(2).error(`"${s}" comparisons are not supported for type '${U(u.type)}'.`);
8806
+ if (l.type.kind !== u.type.kind && l.type.kind !== "value" && u.type.kind !== "value") return o.error(`Cannot compare types '${U(l.type)}' and '${U(u.type)}'.`);
8807
8807
  n && (l.type.kind === "value" && u.type.kind !== "value" ? l = new Le(u.type, [l], o.key) : l.type.kind !== "value" && u.type.kind === "value" && (u = new Le(l.type, [u], o.key)));
8808
8808
  let c = null;
8809
8809
  if (a.length === 4) {
8810
8810
  if (l.type.kind !== "string" && u.type.kind !== "string" && l.type.kind !== "value" && u.type.kind !== "value") return o.error("Cannot use collator to compare non-string types.");
8811
8811
  if (c = o.parse(a[3], 3, qr), !c) return null;
8812
8812
  }
8813
- return new Ts(l, u, o.key, c);
8813
+ return new Is(l, u, o.key, c);
8814
8814
  }
8815
8815
  evaluate(a) {
8816
8816
  const o = this.lhs.evaluate(a), s = this.rhs.evaluate(a);
@@ -8832,8 +8832,8 @@ function vt(r, t, e) {
8832
8832
  }
8833
8833
  };
8834
8834
  }
8835
- const xf = vt("==", df, ks), Ef = vt("!=", hf, bf), Af = vt("<", mf, Cf), kf = vt(">", yf, Sf), Tf = vt("<=", gf, wf), If = vt(">=", vf, Lf);
8836
- var Is = class Ms {
8835
+ const xf = vt("==", df, Ts), Ef = vt("!=", hf, bf), Af = vt("<", mf, Cf), kf = vt(">", yf, Sf), Tf = vt("<=", gf, wf), If = vt(">=", vf, Lf);
8836
+ var Ms = class Ps {
8837
8837
  constructor(t, e, n) {
8838
8838
  this.type = qr, this.locale = n, this.caseSensitive = t, this.diacriticSensitive = e;
8839
8839
  }
@@ -8846,7 +8846,7 @@ var Is = class Ms {
8846
8846
  const a = e.parse(n["diacritic-sensitive"] === void 0 ? !1 : n["diacritic-sensitive"], 1, P);
8847
8847
  if (!a) return null;
8848
8848
  let o = null;
8849
- return n.locale && (o = e.parse(n.locale, 1, T), !o) ? null : new Ms(i, a, o);
8849
+ return n.locale && (o = e.parse(n.locale, 1, T), !o) ? null : new Ps(i, a, o);
8850
8850
  }
8851
8851
  evaluate(t) {
8852
8852
  return new bi(this.caseSensitive.evaluate(t), this.diacriticSensitive.evaluate(t), this.locale ? this.locale.evaluate(t) : null);
@@ -8857,7 +8857,7 @@ var Is = class Ms {
8857
8857
  outputDefined() {
8858
8858
  return !1;
8859
8859
  }
8860
- }, Mf = class Ps {
8860
+ }, Mf = class _s {
8861
8861
  constructor(t, e, n, i, a, o) {
8862
8862
  this.type = T, this.number = t, this.locale = e, this.currency = n, this.unit = i, this.minFractionDigits = a, this.maxFractionDigits = o;
8863
8863
  }
@@ -8881,7 +8881,7 @@ var Is = class Ms {
8881
8881
  if (i["min-fraction-digits"] && (l = e.parse(i["min-fraction-digits"], 1, S), !l))
8882
8882
  return null;
8883
8883
  let u = null;
8884
- return i["max-fraction-digits"] && (u = e.parse(i["max-fraction-digits"], 1, S), !u) ? null : new Ps(n, a, o, s, l, u);
8884
+ return i["max-fraction-digits"] && (u = e.parse(i["max-fraction-digits"], 1, S), !u) ? null : new _s(n, a, o, s, l, u);
8885
8885
  }
8886
8886
  evaluate(t) {
8887
8887
  return new Intl.NumberFormat(this.locale ? this.locale.evaluate(t) : [], {
@@ -8898,14 +8898,14 @@ var Is = class Ms {
8898
8898
  outputDefined() {
8899
8899
  return !1;
8900
8900
  }
8901
- }, Pf = class _s {
8901
+ }, Pf = class Os {
8902
8902
  constructor(t) {
8903
8903
  this.type = Xt, this.input = t;
8904
8904
  }
8905
8905
  static parse(t, e) {
8906
8906
  if (t.length !== 2) return e.error("Expected two arguments.");
8907
8907
  const n = e.parse(t[1], 1, T);
8908
- return n ? new _s(n) : e.error("No image name provided.");
8908
+ return n ? new Os(n) : e.error("No image name provided.");
8909
8909
  }
8910
8910
  evaluate(t) {
8911
8911
  const e = this.input.evaluate(t), n = yt.fromString(e);
@@ -8917,20 +8917,20 @@ var Is = class Ms {
8917
8917
  outputDefined() {
8918
8918
  return !1;
8919
8919
  }
8920
- }, _f = class Os {
8920
+ }, _f = class Rs {
8921
8921
  constructor(t, e) {
8922
8922
  this.input = t, this.key = e, this.type = S;
8923
8923
  }
8924
8924
  static parse(t, e) {
8925
8925
  if (t.length !== 2) return e.error(`Expected 1 argument, but found ${t.length - 1} instead.`);
8926
8926
  const n = e.parse(t[1], 1);
8927
- return n ? n.type.kind !== "array" && n.type.kind !== "string" && n.type.kind !== "value" ? e.error(`Expected argument of type string or array, but found ${j(n.type)} instead.`) : new Os(n, e.key) : null;
8927
+ return n ? n.type.kind !== "array" && n.type.kind !== "string" && n.type.kind !== "value" ? e.error(`Expected argument of type string or array, but found ${U(n.type)} instead.`) : new Rs(n, e.key) : null;
8928
8928
  }
8929
8929
  evaluate(t) {
8930
8930
  const e = this.input.evaluate(t);
8931
8931
  if (typeof e == "string") return [...e].length;
8932
8932
  if (Array.isArray(e)) return e.length;
8933
- throw new N(`Expected value to be of type string or array, but found ${j(q(e))} instead.`, this.key);
8933
+ throw new N(`Expected value to be of type string or array, but found ${U(q(e))} instead.`, this.key);
8934
8934
  }
8935
8935
  eachChild(t) {
8936
8936
  t(this.input);
@@ -8963,7 +8963,7 @@ function $f(r) {
8963
8963
  function Jt(r, t) {
8964
8964
  r[0] = Math.min(r[0], t[0]), r[1] = Math.min(r[1], t[1]), r[2] = Math.max(r[2], t[0]), r[3] = Math.max(r[3], t[1]);
8965
8965
  }
8966
- function Ut(r, t) {
8966
+ function jt(r, t) {
8967
8967
  return !(r[0] <= t[0] || r[2] >= t[2] || r[1] <= t[1] || r[3] >= t[3]);
8968
8968
  }
8969
8969
  function Df(r, t, e) {
@@ -8977,7 +8977,7 @@ function Xr(r, t, e, n) {
8977
8977
  const i = [t[0] - r[0], t[1] - r[1]];
8978
8978
  return Vf([n[0] - e[0], n[1] - e[1]], i) === 0 ? !1 : !!(Ea(r, t, e, n) && Ea(e, n, r, t));
8979
8979
  }
8980
- function jf(r, t, e) {
8980
+ function Uf(r, t, e) {
8981
8981
  for (const n of e) for (let i = 0; i < n.length - 1; ++i) if (Xr(r, t, n[i], n[i + 1])) return !0;
8982
8982
  return !1;
8983
8983
  }
@@ -8989,17 +8989,17 @@ function bt(r, t, e = !1) {
8989
8989
  }
8990
8990
  return n;
8991
8991
  }
8992
- function Uf(r, t) {
8992
+ function jf(r, t) {
8993
8993
  for (const e of t) if (bt(r, e)) return !0;
8994
8994
  return !1;
8995
8995
  }
8996
- function Rs(r, t) {
8996
+ function Fs(r, t) {
8997
8997
  for (const e of r) if (!bt(e, t)) return !1;
8998
- for (let e = 0; e < r.length - 1; ++e) if (jf(r[e], r[e + 1], t)) return !1;
8998
+ for (let e = 0; e < r.length - 1; ++e) if (Uf(r[e], r[e + 1], t)) return !1;
8999
8999
  return !0;
9000
9000
  }
9001
9001
  function Bf(r, t) {
9002
- for (const e of t) if (Rs(r, e)) return !0;
9002
+ for (const e of t) if (Fs(r, e)) return !0;
9003
9003
  return !1;
9004
9004
  }
9005
9005
  function Vf(r, t) {
@@ -9021,7 +9021,7 @@ function Si(r, t, e) {
9021
9021
  }
9022
9022
  return n;
9023
9023
  }
9024
- function Fs(r, t, e) {
9024
+ function zs(r, t, e) {
9025
9025
  const n = [];
9026
9026
  for (let i = 0; i < r.length; i++) {
9027
9027
  const a = Si(r[i], t, e);
@@ -9029,7 +9029,7 @@ function Fs(r, t, e) {
9029
9029
  }
9030
9030
  return n;
9031
9031
  }
9032
- function zs(r, t, e, n) {
9032
+ function $s(r, t, e, n) {
9033
9033
  if (r[0] < e[0] || r[0] > e[2]) {
9034
9034
  const i = n * 0.5;
9035
9035
  let a = r[0] - e[0] > i ? -n : e[0] - r[0] > i ? n : 0;
@@ -9044,7 +9044,7 @@ function Aa(r, t, e, n) {
9044
9044
  const i = Math.pow(2, n.z) * Se, a = [n.x * Se, n.y * Se], o = [];
9045
9045
  for (const s of r) for (const l of s) {
9046
9046
  const u = [l.x + a[0], l.y + a[1]];
9047
- zs(u, t, e, i), o.push(u);
9047
+ $s(u, t, e, i), o.push(u);
9048
9048
  }
9049
9049
  return o;
9050
9050
  }
@@ -9060,7 +9060,7 @@ function ka(r, t, e, n) {
9060
9060
  }
9061
9061
  if (t[2] - t[0] <= i / 2) {
9062
9062
  Hf(t);
9063
- for (const s of o) for (const l of s) zs(l, t, e, i);
9063
+ for (const s of o) for (const l of s) $s(l, t, e, i);
9064
9064
  }
9065
9065
  return o;
9066
9066
  }
@@ -9078,13 +9078,13 @@ function qf(r, t) {
9078
9078
  ], i = r.canonicalID();
9079
9079
  if (t.type === "Polygon") {
9080
9080
  const a = Si(t.coordinates, n, i), o = Aa(r.geometry(), e, n, i);
9081
- if (!Ut(e, n)) return !1;
9081
+ if (!jt(e, n)) return !1;
9082
9082
  for (const s of o) if (!bt(s, a)) return !1;
9083
9083
  }
9084
9084
  if (t.type === "MultiPolygon") {
9085
- const a = Fs(t.coordinates, n, i), o = Aa(r.geometry(), e, n, i);
9086
- if (!Ut(e, n)) return !1;
9087
- for (const s of o) if (!Uf(s, a)) return !1;
9085
+ const a = zs(t.coordinates, n, i), o = Aa(r.geometry(), e, n, i);
9086
+ if (!jt(e, n)) return !1;
9087
+ for (const s of o) if (!jf(s, a)) return !1;
9088
9088
  }
9089
9089
  return !0;
9090
9090
  }
@@ -9102,12 +9102,12 @@ function Gf(r, t) {
9102
9102
  ], i = r.canonicalID();
9103
9103
  if (t.type === "Polygon") {
9104
9104
  const a = Si(t.coordinates, n, i), o = ka(r.geometry(), e, n, i);
9105
- if (!Ut(e, n)) return !1;
9106
- for (const s of o) if (!Rs(s, a)) return !1;
9105
+ if (!jt(e, n)) return !1;
9106
+ for (const s of o) if (!Fs(s, a)) return !1;
9107
9107
  }
9108
9108
  if (t.type === "MultiPolygon") {
9109
- const a = Fs(t.coordinates, n, i), o = ka(r.geometry(), e, n, i);
9110
- if (!Ut(e, n)) return !1;
9109
+ const a = zs(t.coordinates, n, i), o = ka(r.geometry(), e, n, i);
9110
+ if (!jt(e, n)) return !1;
9111
9111
  for (const s of o) if (!Bf(s, a)) return !1;
9112
9112
  }
9113
9113
  return !0;
@@ -9149,7 +9149,7 @@ var wi = class Sr {
9149
9149
  outputDefined() {
9150
9150
  return !0;
9151
9151
  }
9152
- }, $s = class {
9152
+ }, Ds = class {
9153
9153
  constructor(r = [], t = (e, n) => e < n ? -1 : e > n ? 1 : 0) {
9154
9154
  if (this.data = r, this.length = this.data.length, this.compare = t, this.length > 0) for (let e = (this.length >> 1) - 1; e >= 0; e--) this._down(e);
9155
9155
  }
@@ -9236,8 +9236,8 @@ var Li = class {
9236
9236
  return r;
9237
9237
  }
9238
9238
  };
9239
- const Un = 100, Bn = 50;
9240
- function Ds(r, t) {
9239
+ const jn = 100, Bn = 50;
9240
+ function Ns(r, t) {
9241
9241
  return t[0] - r[0];
9242
9242
  }
9243
9243
  function _r(r) {
@@ -9292,12 +9292,12 @@ function xi(r, t, e) {
9292
9292
  let n = 0, i = 0;
9293
9293
  return r[2] < t[0] && (n = t[0] - r[2]), r[0] > t[2] && (n = r[0] - t[2]), r[1] > t[3] && (i = r[1] - t[3]), r[3] < t[1] && (i = t[1] - r[3]), e.distance([0, 0], [n, i]);
9294
9294
  }
9295
- function Ue(r, t, e) {
9295
+ function je(r, t, e) {
9296
9296
  const n = e.pointOnLine(t, r);
9297
9297
  return e.distance(r, n.point);
9298
9298
  }
9299
9299
  function Ei(r, t, e, n, i) {
9300
- const a = Math.min(Ue(r, [e, n], i), Ue(t, [e, n], i)), o = Math.min(Ue(e, [r, t], i), Ue(n, [r, t], i));
9300
+ const a = Math.min(je(r, [e, n], i), je(t, [e, n], i)), o = Math.min(je(e, [r, t], i), je(n, [r, t], i));
9301
9301
  return Math.min(a, o);
9302
9302
  }
9303
9303
  function Wf(r, t, e, n, i) {
@@ -9325,7 +9325,7 @@ function Yf(r, t, e) {
9325
9325
  let n = 1 / 0;
9326
9326
  for (const i of t) {
9327
9327
  const a = i[0], o = i[i.length - 1];
9328
- if (a !== o && (n = Math.min(n, Ue(r, [o, a], e)), n === 0))
9328
+ if (a !== o && (n = Math.min(n, je(r, [o, a], e)), n === 0))
9329
9329
  return n;
9330
9330
  const s = e.pointOnLine(i, r);
9331
9331
  if (n = Math.min(n, e.distance(r, s.point)), n === 0) return n;
@@ -9353,7 +9353,7 @@ function Ma(r, t) {
9353
9353
  function Qf(r, t, e, n = 1 / 0) {
9354
9354
  const i = qn(r), a = qn(t);
9355
9355
  if (n !== 1 / 0 && xi(i, a, e) >= n) return n;
9356
- if (Ut(i, a)) {
9356
+ if (jt(i, a)) {
9357
9357
  if (Ma(r, t)) return 0;
9358
9358
  } else if (Ma(t, r)) return 0;
9359
9359
  let o = 1 / 0;
@@ -9388,15 +9388,15 @@ function lr(r, t, e, n, i, a, o) {
9388
9388
  function Or(r, t, e, n, i = 1 / 0) {
9389
9389
  let a = Math.min(n.distance(r[0], e[0][0]), i);
9390
9390
  if (a === 0) return a;
9391
- const o = new $s([[
9391
+ const o = new Ds([[
9392
9392
  0,
9393
9393
  [0, r.length - 1],
9394
9394
  [0, 0]
9395
- ]], Ds), s = qn(e);
9395
+ ]], Ns), s = qn(e);
9396
9396
  for (; o.length > 0; ) {
9397
9397
  const l = o.pop();
9398
9398
  if (l[0] >= a) continue;
9399
- const u = l[1], c = t ? Bn : Un;
9399
+ const u = l[1], c = t ? Bn : jn;
9400
9400
  if (_r(u) <= c) {
9401
9401
  if (!Ee(u, r.length)) return NaN;
9402
9402
  if (t) {
@@ -9417,15 +9417,15 @@ function Or(r, t, e, n, i = 1 / 0) {
9417
9417
  function Rr(r, t, e, n, i, a = 1 / 0) {
9418
9418
  let o = Math.min(a, i.distance(r[0], e[0]));
9419
9419
  if (o === 0) return o;
9420
- const s = new $s([[
9420
+ const s = new Ds([[
9421
9421
  0,
9422
9422
  [0, r.length - 1],
9423
9423
  [0, e.length - 1]
9424
- ]], Ds);
9424
+ ]], Ns);
9425
9425
  for (; s.length > 0; ) {
9426
9426
  const l = s.pop();
9427
9427
  if (l[0] >= o) continue;
9428
- const u = l[1], c = l[2], p = t ? Bn : Un, f = n ? Bn : Un;
9428
+ const u = l[1], c = l[2], p = t ? Bn : jn, f = n ? Bn : jn;
9429
9429
  if (_r(u) <= p && _r(c) <= f) {
9430
9430
  if (!Ee(u, r.length) && Ee(c, e.length)) return NaN;
9431
9431
  let d;
@@ -9434,11 +9434,11 @@ function Rr(r, t, e, n, i, a = 1 / 0) {
9434
9434
  else if (t && !n) {
9435
9435
  const h = r.slice(u[0], u[1] + 1);
9436
9436
  for (let m = c[0]; m <= c[1]; ++m)
9437
- if (d = Ue(e[m], h, i), o = Math.min(o, d), o === 0) return o;
9437
+ if (d = je(e[m], h, i), o = Math.min(o, d), o === 0) return o;
9438
9438
  } else if (!t && n) {
9439
9439
  const h = e.slice(c[0], c[1] + 1);
9440
9440
  for (let m = u[0]; m <= u[1]; ++m)
9441
- if (d = Ue(r[m], h, i), o = Math.min(o, d), o === 0) return o;
9441
+ if (d = je(r[m], h, i), o = Math.min(o, d), o === 0) return o;
9442
9442
  } else
9443
9443
  d = Xf(r, u, e, c, i), o = Math.min(o, d);
9444
9444
  } else {
@@ -9547,7 +9547,7 @@ var Ai = class wr {
9547
9547
  outputDefined() {
9548
9548
  return !0;
9549
9549
  }
9550
- }, nd = class Ns {
9550
+ }, nd = class Us {
9551
9551
  constructor(t) {
9552
9552
  let e = null;
9553
9553
  for (const n of t) if (!e) e = n.type;
@@ -9569,8 +9569,8 @@ var Ai = class wr {
9569
9569
  if (!u) return null;
9570
9570
  s.push(u);
9571
9571
  }
9572
- return new Ns(s);
9573
- } else return new jt(i, n);
9572
+ return new Us(s);
9573
+ } else return new Ut(i, n);
9574
9574
  }
9575
9575
  evaluate(t) {
9576
9576
  return this.arr.map((e) => e.evaluate(t));
@@ -9612,8 +9612,8 @@ const Ti = {
9612
9612
  at: sf,
9613
9613
  boolean: Le,
9614
9614
  case: pf,
9615
- coalesce: As,
9616
- collator: Is,
9615
+ coalesce: ks,
9616
+ collator: Ms,
9617
9617
  format: nf,
9618
9618
  image: Pf,
9619
9619
  in: lf,
@@ -9622,21 +9622,21 @@ const Ti = {
9622
9622
  "interpolate-hcl": qe,
9623
9623
  "interpolate-lab": qe,
9624
9624
  length: _f,
9625
- let: vs,
9626
- literal: jt,
9625
+ let: bs,
9626
+ literal: Ut,
9627
9627
  match: cf,
9628
9628
  number: Le,
9629
9629
  "number-format": Mf,
9630
9630
  object: Le,
9631
9631
  semiliteral: nd,
9632
9632
  slice: ff,
9633
- step: ds,
9633
+ step: hs,
9634
9634
  string: Le,
9635
9635
  "to-boolean": rt,
9636
9636
  "to-color": rt,
9637
9637
  "to-number": rt,
9638
9638
  "to-string": rt,
9639
- var: Cs,
9639
+ var: Ss,
9640
9640
  within: wi,
9641
9641
  distance: Ai,
9642
9642
  "global-state": ki
@@ -9645,13 +9645,13 @@ var be = class extends Error {
9645
9645
  constructor(r, t) {
9646
9646
  super(t), this.message = t, this.key = r;
9647
9647
  }
9648
- }, id = class Us {
9648
+ }, id = class Bs {
9649
9649
  constructor(t, e = []) {
9650
9650
  this.parent = t, this.bindings = {};
9651
9651
  for (const [n, i] of e) this.bindings[n] = i;
9652
9652
  }
9653
9653
  concat(t) {
9654
- return new Us(this, t);
9654
+ return new Bs(this, t);
9655
9655
  }
9656
9656
  get(t) {
9657
9657
  if (this.bindings[t]) return this.bindings[t];
@@ -9661,7 +9661,7 @@ var be = class extends Error {
9661
9661
  has(t) {
9662
9662
  return this.bindings[t] ? !0 : this.parent ? this.parent.has(t) : !1;
9663
9663
  }
9664
- }, Bs = class Vs {
9664
+ }, Vs = class Hs {
9665
9665
  constructor(t, e, n = [], i, a = new id(), o = []) {
9666
9666
  this.registry = t, this.path = n, this.key = n.map((s) => `[${s}]`).join(""), this.scope = a, this.errors = o, this.expectedType = i, this._isConstant = e;
9667
9667
  }
@@ -9712,10 +9712,10 @@ var be = class extends Error {
9712
9712
  ].includes(u.kind) || l.kind === "variableAnchorOffsetCollection" && ["value", "array"].includes(u.kind)) s = i(s, l, e.typeAnnotation || "coerce");
9713
9713
  else if (this.checkSubtype(l, u)) return null;
9714
9714
  }
9715
- if (!(s instanceof jt) && s.type.kind !== "resolvedImage" && this._isConstant(s)) {
9716
- const l = new ps();
9715
+ if (!(s instanceof Ut) && s.type.kind !== "resolvedImage" && this._isConstant(s)) {
9716
+ const l = new fs();
9717
9717
  try {
9718
- s = new jt(s.type, s.evaluate(l));
9718
+ s = new Ut(s.type, s.evaluate(l));
9719
9719
  } catch (u) {
9720
9720
  return this.error(u.message), null;
9721
9721
  }
@@ -9735,7 +9735,7 @@ var be = class extends Error {
9735
9735
  */
9736
9736
  concat(t, e, n) {
9737
9737
  const i = typeof t == "number" ? this.path.concat(t) : this.path, a = n ? this.scope.concat(n) : this.scope;
9738
- return new Vs(this.registry, this._isConstant, i, e || null, a, this.errors);
9738
+ return new Hs(this.registry, this._isConstant, i, e || null, a, this.errors);
9739
9739
  }
9740
9740
  /**
9741
9741
  * Push a parsing (or type checking) error into the `this.errors`
@@ -9778,7 +9778,7 @@ var be = class extends Error {
9778
9778
  const a = Array.isArray(i) ? i[0] : i.type, o = Array.isArray(i) ? [[i[1], i[2]]] : i.overloads, s = o.filter(([u]) => !Array.isArray(u) || u.length === t.length - 1);
9779
9779
  let l = null;
9780
9780
  for (const [u, c] of s) {
9781
- l = new Bs(e.registry, Fr, e.path, null, e.scope);
9781
+ l = new Vs(e.registry, Fr, e.path, null, e.scope);
9782
9782
  const p = [];
9783
9783
  let f = !1;
9784
9784
  for (let d = 1; d < t.length; d++) {
@@ -9807,7 +9807,7 @@ var be = class extends Error {
9807
9807
  for (let p = 1; p < t.length; p++) {
9808
9808
  const f = e.parse(t[p], 1 + c.length);
9809
9809
  if (!f) return null;
9810
- c.push(j(f.type));
9810
+ c.push(U(f.type));
9811
9811
  }
9812
9812
  e.error(`Expected arguments of type ${u}, but found (${c.join(", ")}) instead.`);
9813
9813
  }
@@ -9820,7 +9820,7 @@ var be = class extends Error {
9820
9820
  };
9821
9821
  function _a(r, [t, e, n, i], a) {
9822
9822
  t = t.evaluate(r), e = e.evaluate(r), n = n.evaluate(r);
9823
- const o = i ? i.evaluate(r) : 1, s = us(t, e, n, o);
9823
+ const o = i ? i.evaluate(r) : 1, s = cs(t, e, n, o);
9824
9824
  if (s) throw new N(s, a);
9825
9825
  return new Q(t / 255, e / 255, n / 255, o, !1);
9826
9826
  }
@@ -9853,7 +9853,7 @@ Ct.register(Ti, {
9853
9853
  typeof: [
9854
9854
  T,
9855
9855
  [M],
9856
- (r, [t]) => j(q(t.evaluate(r)))
9856
+ (r, [t]) => U(q(t.evaluate(r)))
9857
9857
  ],
9858
9858
  "to-rgba": [
9859
9859
  J(S, 4),
@@ -10246,19 +10246,19 @@ Ct.register(Ti, {
10246
10246
  ]
10247
10247
  });
10248
10248
  function od(r) {
10249
- return Array.isArray(r) ? `(${r.map(j).join(", ")})` : `(${j(r.type)}...)`;
10249
+ return Array.isArray(r) ? `(${r.map(U).join(", ")})` : `(${U(r.type)}...)`;
10250
10250
  }
10251
10251
  function Fr(r) {
10252
- if (r instanceof Cs) return Fr(r.boundExpression);
10252
+ if (r instanceof Ss) return Fr(r.boundExpression);
10253
10253
  if (r instanceof Ct && r.name === "error") return !1;
10254
- if (r instanceof Is) return !1;
10254
+ if (r instanceof Ms) return !1;
10255
10255
  if (r instanceof wi) return !1;
10256
10256
  if (r instanceof Ai) return !1;
10257
10257
  if (r instanceof ki) return !1;
10258
10258
  const t = r instanceof rt || r instanceof Le;
10259
10259
  let e = !0;
10260
10260
  return r.eachChild((n) => {
10261
- t ? e = e && Fr(n) : e = e && n instanceof jt;
10261
+ t ? e = e && Fr(n) : e = e && n instanceof Ut;
10262
10262
  }), e ? Yr(r) && Jr(r, [
10263
10263
  "zoom",
10264
10264
  "heatmap-density",
@@ -10300,10 +10300,10 @@ function Jr(r, t) {
10300
10300
  function zr(r) {
10301
10301
  return r["property-type"] === "data-driven" || r["property-type"] === "cross-faded-data-driven";
10302
10302
  }
10303
- function Hs(r) {
10303
+ function qs(r) {
10304
10304
  return !!r.expression && r.expression.parameters.indexOf("zoom") > -1;
10305
10305
  }
10306
- function qs(r) {
10306
+ function Gs(r) {
10307
10307
  return !!r.expression && r.expression.interpolated;
10308
10308
  }
10309
10309
  const Ii = /^(.*)-transition$/;
@@ -10331,7 +10331,7 @@ function tt(r) {
10331
10331
  }
10332
10332
  var sd = class {
10333
10333
  constructor(r, t, e, n) {
10334
- this.expression = r, this._warningHistory = {}, this._evaluator = new ps(), this._defaultValue = e ? fd(e) : null, this._enumValues = e && e.type === "enum" ? e.values : null, this._globalState = n, this._rootKey = t;
10334
+ this.expression = r, this._warningHistory = {}, this._evaluator = new fs(), this._defaultValue = e ? fd(e) : null, this._enumValues = e && e.type === "enum" ? e.values : null, this._globalState = n, this._rootKey = t;
10335
10335
  }
10336
10336
  evaluateWithoutErrorHandling(r, t, e, n, i, a) {
10337
10337
  return this._globalState && (r = ct(r, this._globalState)), this._evaluator.globals = r, this._evaluator.feature = t, this._evaluator.featureState = e, this._evaluator.canonical = n, this._evaluator.availableImages = i || null, this._evaluator.formattedSection = a, this.expression.evaluate(this._evaluator);
@@ -10355,12 +10355,12 @@ function ld(r, t, e, n) {
10355
10355
  function ud(r) {
10356
10356
  if (!r) throw new Error('rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".');
10357
10357
  }
10358
- function Gs(r) {
10358
+ function Zs(r) {
10359
10359
  return Array.isArray(r) && r.length > 0 && typeof r[0] == "string" && r[0] in Ti;
10360
10360
  }
10361
- function Zs(r, t, e, n) {
10361
+ function Ks(r, t, e, n) {
10362
10362
  ud(t);
10363
- const i = new Bs(Ti, Fr, [], e ? pd(e) : void 0), a = i.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
10363
+ const i = new Vs(Ti, Fr, [], e ? pd(e) : void 0), a = i.parse(r, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
10364
10364
  return a ? Gn(new sd(a, t, e, n)) : tt(i.errors);
10365
10365
  }
10366
10366
  var Ra = class {
@@ -10388,27 +10388,27 @@ var Ra = class {
10388
10388
  }
10389
10389
  };
10390
10390
  function cd(r, t, e, n) {
10391
- const i = Zs(r, t, e, n);
10391
+ const i = Ks(r, t, e, n);
10392
10392
  if (i.result === "error") return i;
10393
10393
  const a = i.value.expression, o = Yr(a);
10394
10394
  if (!o && !zr(e)) return tt([new be("", "data expressions not supported")]);
10395
10395
  const s = Jr(a, ["zoom"]);
10396
- if (!s && !Hs(e)) return tt([new be("", "zoom expressions not supported")]);
10396
+ if (!s && !qs(e)) return tt([new be("", "zoom expressions not supported")]);
10397
10397
  const l = Lr(a);
10398
10398
  if (!l && !s) return tt([new be("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
10399
10399
  if (l instanceof be) return tt([l]);
10400
- if (l instanceof qe && !qs(e)) return tt([new be("", '"interpolate" expressions cannot be used with this property')]);
10400
+ if (l instanceof qe && !Gs(e)) return tt([new be("", '"interpolate" expressions cannot be used with this property')]);
10401
10401
  if (!l) return Gn(o ? new Ra("constant", i.value, n) : new Ra("source", i.value, n));
10402
10402
  const u = l instanceof qe ? l.interpolation : void 0;
10403
10403
  return Gn(o ? new Fa("camera", i.value, l.labels, u, n) : new Fa("composite", i.value, l.labels, u, n));
10404
10404
  }
10405
10405
  function Lr(r) {
10406
10406
  let t = null;
10407
- if (r instanceof vs) t = Lr(r.result);
10408
- else if (r instanceof As) {
10407
+ if (r instanceof bs) t = Lr(r.result);
10408
+ else if (r instanceof ks) {
10409
10409
  for (const e of r.args)
10410
10410
  if (t = Lr(e), t) break;
10411
- } else (r instanceof ds || r instanceof qe) && r.input instanceof Ct && r.input.name === "zoom" && (t = r);
10411
+ } else (r instanceof hs || r instanceof qe) && r.input instanceof Ct && r.input.name === "zoom" && (t = r);
10412
10412
  return t instanceof be || r.eachChild((e) => {
10413
10413
  const n = Lr(e);
10414
10414
  n instanceof be ? t = n : !t && n ? t = new be("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : t && n && t !== n && (t = new be("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
@@ -10470,13 +10470,13 @@ function ct(r, t) {
10470
10470
  function dd(r) {
10471
10471
  let t = !1;
10472
10472
  for (const e of r) {
10473
- const n = Ks(e);
10473
+ const n = Ws(e);
10474
10474
  if (n === "expression") return "expression";
10475
10475
  n === "legacy" && (t = !0);
10476
10476
  }
10477
10477
  return t ? "legacy" : "neutral";
10478
10478
  }
10479
- function Ks(r) {
10479
+ function Ws(r) {
10480
10480
  if (typeof r == "boolean") return "neutral";
10481
10481
  if (!Array.isArray(r) || r.length === 0) return "legacy";
10482
10482
  switch (r[0]) {
@@ -10503,8 +10503,8 @@ function Ks(r) {
10503
10503
  return "expression";
10504
10504
  }
10505
10505
  }
10506
- function Ws(r) {
10507
- return Ks(r) !== "legacy";
10506
+ function Xs(r) {
10507
+ return Ws(r) !== "legacy";
10508
10508
  }
10509
10509
  function za(r) {
10510
10510
  return r === "$type" ? ["geometry-type"] : r === "$id" ? ["id"] : ["get", r];
@@ -10549,12 +10549,12 @@ function md(r) {
10549
10549
  }
10550
10550
  function xn(r, t, e) {
10551
10551
  const n = e[r];
10552
- return Array.isArray(n) ? Ws(n) ? Xs(n, t.concat(r)) : {
10552
+ return Array.isArray(n) ? Xs(n) ? Ys(n, t.concat(r)) : {
10553
10553
  path: t.concat(r),
10554
10554
  legacyFilter: n
10555
10555
  } : null;
10556
10556
  }
10557
- function Xs(r, t = []) {
10557
+ function Ys(r, t = []) {
10558
10558
  if (!Array.isArray(r) || r.length < 1) return null;
10559
10559
  switch (r[0]) {
10560
10560
  case "all":
@@ -10578,7 +10578,7 @@ function Xs(r, t = []) {
10578
10578
  }
10579
10579
  return null;
10580
10580
  }
10581
- function Ys(r) {
10581
+ function Js(r) {
10582
10582
  const t = r.key, e = r.value;
10583
10583
  return e ? [new C(t, e, "constants have been deprecated as of v8")] : [];
10584
10584
  }
@@ -10654,7 +10654,7 @@ function Qr(r) {
10654
10654
  let i = _(e);
10655
10655
  return i === "number" && e !== e && (i = "NaN"), i !== "number" ? [new C(t, e, `number expected, ${i} found`)] : "minimum" in n && e < n.minimum ? [new C(t, e, `${e} is less than the minimum value ${n.minimum}`)] : "maximum" in n && e > n.maximum ? [new C(t, e, `${e} is greater than the maximum value ${n.maximum}`)] : [];
10656
10656
  }
10657
- function Js(r) {
10657
+ function Qs(r) {
10658
10658
  const t = r.valueSpec, e = H(r.value.type);
10659
10659
  let n, i = {}, a, o;
10660
10660
  const s = e !== "categorical" && r.value.property === void 0, l = !s, u = _(r.value.stops) === "array" && _(r.value.stops[0]) === "array" && _(r.value.stops[0][0]) === "object", c = pe({
@@ -10669,7 +10669,7 @@ function Js(r) {
10669
10669
  default: h
10670
10670
  }
10671
10671
  });
10672
- return e === "identity" && s && c.push(new C(r.key, r.value, 'missing required property "property"')), e !== "identity" && !r.value.stops && c.push(new C(r.key, r.value, 'missing required property "stops"')), e === "exponential" && r.valueSpec.expression && !qs(r.valueSpec) && c.push(new C(r.key, r.value, "exponential functions not supported")), r.styleSpec.$version >= 8 && (l && !zr(r.valueSpec) ? c.push(new C(r.key, r.value, "property functions not supported")) : s && !Hs(r.valueSpec) && c.push(new C(r.key, r.value, "zoom functions not supported"))), (e === "categorical" || u) && r.value.property === void 0 && c.push(new C(r.key, r.value, '"property" property is required')), c;
10672
+ return e === "identity" && s && c.push(new C(r.key, r.value, 'missing required property "property"')), e !== "identity" && !r.value.stops && c.push(new C(r.key, r.value, 'missing required property "stops"')), e === "exponential" && r.valueSpec.expression && !Gs(r.valueSpec) && c.push(new C(r.key, r.value, "exponential functions not supported")), r.styleSpec.$version >= 8 && (l && !zr(r.valueSpec) ? c.push(new C(r.key, r.value, "property functions not supported")) : s && !qs(r.valueSpec) && c.push(new C(r.key, r.value, "zoom functions not supported"))), (e === "categorical" || u) && r.value.property === void 0 && c.push(new C(r.key, r.value, '"property" property is required')), c;
10673
10673
  function p(m) {
10674
10674
  if (e === "identity") return [new C(m.key, m.value, 'identity function may not have a "stops" property')];
10675
10675
  let g = [];
@@ -10713,7 +10713,7 @@ function Js(r) {
10713
10713
  style: m.style,
10714
10714
  styleSpec: m.styleSpec
10715
10715
  }, v));
10716
- return Gs(Ze(v[1])) ? g.concat([new C(`${b}[1]`, v[1], "expressions are not allowed in function stops.")]) : g.concat(m.validateSpec({
10716
+ return Zs(Ze(v[1])) ? g.concat([new C(`${b}[1]`, v[1], "expressions are not allowed in function stops.")]) : g.concat(m.validateSpec({
10717
10717
  key: `${b}[1]`,
10718
10718
  value: v[1],
10719
10719
  valueSpec: t,
@@ -10745,7 +10745,7 @@ function Js(r) {
10745
10745
  }
10746
10746
  }
10747
10747
  function pt(r) {
10748
- const t = (r.expressionContext === "property" ? cd : Zs)(Ze(r.value), r.key, r.valueSpec);
10748
+ const t = (r.expressionContext === "property" ? cd : Ks)(Ze(r.value), r.key, r.valueSpec);
10749
10749
  if (t.result === "error") return t.value.map((n) => new C(`${r.key}${n.key}`, r.value, n.message));
10750
10750
  const e = t.value.expression || t.value._styleExpression.expression;
10751
10751
  if (r.expressionContext === "property" && r.propertyKey === "text-font" && !e.outputDefined()) return [new C(r.key, r.value, `Invalid data expression for "${r.propertyKey}". Output values must be contained as literals within the expression.`)];
@@ -10775,19 +10775,19 @@ function gd(r, t) {
10775
10775
  return e;
10776
10776
  }
10777
10777
  function vd(r, t) {
10778
- const e = Xs(t);
10778
+ const e = Ys(t);
10779
10779
  if (!e) return [];
10780
10780
  const n = `${r.key}${e.path.map((i) => `[${i}]`).join("")}`;
10781
10781
  return [new C(n, gd(r.value, e.path), md(e.legacyFilter), null, "warning")];
10782
10782
  }
10783
10783
  function Oi(r) {
10784
10784
  const t = Ze(r.value);
10785
- return Ws(t) ? [...vd(r, t), ...pt($r({}, r, {
10785
+ return Xs(t) ? [...vd(r, t), ...pt($r({}, r, {
10786
10786
  expressionContext: "filter",
10787
10787
  valueSpec: { value: "boolean" }
10788
- }))] : Qs(r);
10788
+ }))] : el(r);
10789
10789
  }
10790
- function Qs(r) {
10790
+ function el(r) {
10791
10791
  const t = r.value, e = r.key;
10792
10792
  if (_(t) !== "array") return [new C(e, t, `array expected, ${_(t)} found`)];
10793
10793
  const n = r.styleSpec;
@@ -10823,7 +10823,7 @@ function Qs(r) {
10823
10823
  case "any":
10824
10824
  case "all":
10825
10825
  case "none":
10826
- for (let o = 1; o < t.length; o++) a = a.concat(Qs({
10826
+ for (let o = 1; o < t.length; o++) a = a.concat(el({
10827
10827
  key: `${e}[${o}]`,
10828
10828
  value: t[o],
10829
10829
  style: r.style,
@@ -10836,7 +10836,7 @@ function Qs(r) {
10836
10836
  }
10837
10837
  return a;
10838
10838
  }
10839
- function el(r, t) {
10839
+ function tl(r, t) {
10840
10840
  const e = r.key, n = r.validateSpec, i = r.style, a = r.styleSpec, o = r.value, s = r.objectKey, l = a[`${t}_${r.layerType}`];
10841
10841
  if (!l) return [];
10842
10842
  const u = s.match(Ii);
@@ -10864,13 +10864,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10864
10864
  propertyKey: s
10865
10865
  }));
10866
10866
  }
10867
- function tl(r) {
10868
- return el(r, "paint");
10869
- }
10870
10867
  function rl(r) {
10871
- return el(r, "layout");
10868
+ return tl(r, "paint");
10872
10869
  }
10873
10870
  function nl(r) {
10871
+ return tl(r, "layout");
10872
+ }
10873
+ function il(r) {
10874
10874
  var l, u;
10875
10875
  let t = [];
10876
10876
  const e = r.value, n = r.key, i = r.style, a = r.styleSpec;
@@ -10938,7 +10938,7 @@ function nl(r) {
10938
10938
  styleSpec: c.styleSpec,
10939
10939
  validateSpec: c.validateSpec,
10940
10940
  objectElementValidators: { "*"(p) {
10941
- return rl($r({ layerType: o }, p));
10941
+ return nl($r({ layerType: o }, p));
10942
10942
  } }
10943
10943
  });
10944
10944
  },
@@ -10951,7 +10951,7 @@ function nl(r) {
10951
10951
  styleSpec: c.styleSpec,
10952
10952
  validateSpec: c.validateSpec,
10953
10953
  objectElementValidators: { "*"(p) {
10954
- return tl($r({ layerType: o }, p));
10954
+ return rl($r({ layerType: o }, p));
10955
10955
  } }
10956
10956
  });
10957
10957
  }
@@ -10986,7 +10986,7 @@ function bd(r) {
10986
10986
  return o;
10987
10987
  }
10988
10988
  const $a = { promoteId: Cd };
10989
- function il(r) {
10989
+ function al(r) {
10990
10990
  const t = r.value, e = r.key, n = r.styleSpec, i = r.style, a = r.validateSpec;
10991
10991
  if (!t.type) return [new C(e, t, '"type" is required')];
10992
10992
  const o = H(t.type);
@@ -11086,7 +11086,7 @@ function Cd({ key: r, value: t }) {
11086
11086
  return e;
11087
11087
  }
11088
11088
  }
11089
- function al(r) {
11089
+ function ol(r) {
11090
11090
  const t = r.value, e = r.styleSpec, n = e.light, i = r.style;
11091
11091
  let a = [];
11092
11092
  const o = _(t);
@@ -11113,7 +11113,7 @@ function al(r) {
11113
11113
  }
11114
11114
  return a;
11115
11115
  }
11116
- function ol(r) {
11116
+ function sl(r) {
11117
11117
  const t = r.value, e = r.styleSpec, n = e.sky, i = r.style, a = _(t);
11118
11118
  if (t === void 0) return [];
11119
11119
  if (a !== "object") return [new C("sky", t, `object expected, ${a} found`)];
@@ -11136,7 +11136,7 @@ function ol(r) {
11136
11136
  }
11137
11137
  return o;
11138
11138
  }
11139
- function sl(r) {
11139
+ function ll(r) {
11140
11140
  const t = r.value, e = r.styleSpec, n = e.terrain, i = r.style;
11141
11141
  let a = [];
11142
11142
  const o = _(t);
@@ -11234,7 +11234,7 @@ function Ad(r) {
11234
11234
  }));
11235
11235
  return a;
11236
11236
  }
11237
- function ll(r) {
11237
+ function ul(r) {
11238
11238
  let t = [];
11239
11239
  const e = r.value, n = r.key;
11240
11240
  if (Array.isArray(e)) {
@@ -11296,7 +11296,7 @@ function Md(r) {
11296
11296
  function Kn(r) {
11297
11297
  return !!r && r.constructor === Object;
11298
11298
  }
11299
- function ul(r) {
11299
+ function cl(r) {
11300
11300
  return Kn(r.value) ? [] : [new C(r.key, r.value, `object expected, ${_(r.value)} found`)];
11301
11301
  }
11302
11302
  const Da = 1114111, Pd = /^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;
@@ -11309,8 +11309,8 @@ function _d(r, t) {
11309
11309
  const l = parseInt(a, 16), u = o === void 0 ? l : parseInt(o, 16);
11310
11310
  return l > Da || u > Da ? [new C(r, t, "unicode range is out of bounds, the maximum code point is U+10FFFF")] : l > u ? [new C(r, t, `unicode range start must not be greater than its end, but ${e} is`)] : [];
11311
11311
  }
11312
- function cl(r) {
11313
- const t = r.key ?? "font-faces", e = r.value, n = r.validateSpec, i = r.styleSpec ?? Qo, a = r.style;
11312
+ function pl(r) {
11313
+ const t = r.key ?? "font-faces", e = r.value, n = r.validateSpec, i = r.styleSpec ?? es, a = r.style;
11314
11314
  if (!Kn(e)) return [new C(t, e, `object expected, ${_(e)} found`)];
11315
11315
  const o = [];
11316
11316
  for (const s in e) {
@@ -11356,16 +11356,16 @@ const Na = {
11356
11356
  boolean: yd,
11357
11357
  number: Qr,
11358
11358
  color: Zn,
11359
- constants: Ys,
11359
+ constants: Js,
11360
11360
  enum: Vt,
11361
11361
  filter: Oi,
11362
- function: Js,
11363
- layer: nl,
11362
+ function: Qs,
11363
+ layer: il,
11364
11364
  object: pe,
11365
- source: il,
11366
- light: al,
11367
- sky: ol,
11368
- terrain: sl,
11365
+ source: al,
11366
+ light: ol,
11367
+ sky: sl,
11368
+ terrain: ll,
11369
11369
  projection: kd,
11370
11370
  projectionDefinition: Td,
11371
11371
  string: $e,
@@ -11375,19 +11375,19 @@ const Na = {
11375
11375
  numberArray: xd,
11376
11376
  colorArray: Ed,
11377
11377
  variableAnchorOffsetCollection: Ad,
11378
- sprite: ll,
11379
- state: ul,
11380
- fontFaces: cl
11378
+ sprite: ul,
11379
+ state: cl,
11380
+ fontFaces: pl
11381
11381
  };
11382
11382
  function Dr(r) {
11383
11383
  const t = r.value, e = r.valueSpec, n = r.styleSpec;
11384
- return r.validateSpec = Dr, e.expression && Mi(H(t)) ? Js(r) : e.expression && Gs(Ze(t)) ? pt(r) : e.type && Na[e.type] ? Na[e.type](r) : pe($r({}, r, { valueSpec: e.type ? n[e.type] : e }));
11384
+ return r.validateSpec = Dr, e.expression && Mi(H(t)) ? Qs(r) : e.expression && Zs(Ze(t)) ? pt(r) : e.type && Na[e.type] ? Na[e.type](r) : pe($r({}, r, { valueSpec: e.type ? n[e.type] : e }));
11385
11385
  }
11386
- function pl(r) {
11386
+ function fl(r) {
11387
11387
  const t = r.value, e = r.key, n = $e(r);
11388
11388
  return n.length || (t.indexOf("{fontstack}") === -1 && n.push(new C(e, t, '"glyphs" url must include a "{fontstack}" token')), t.indexOf("{range}") === -1 && n.push(new C(e, t, '"glyphs" url must include a "{range}" token'))), n;
11389
11389
  }
11390
- function se(r, t = Up) {
11390
+ function se(r, t = jp) {
11391
11391
  let e = [];
11392
11392
  return e = e.concat(Dr({
11393
11393
  key: "",
@@ -11397,42 +11397,42 @@ function se(r, t = Up) {
11397
11397
  style: r,
11398
11398
  validateSpec: Dr,
11399
11399
  objectElementValidators: {
11400
- glyphs: pl,
11400
+ glyphs: fl,
11401
11401
  "*"() {
11402
11402
  return [];
11403
11403
  }
11404
11404
  }
11405
- })), r.constants && (e = e.concat(Ys({
11405
+ })), r.constants && (e = e.concat(Js({
11406
11406
  key: "constants",
11407
11407
  value: r.constants
11408
- }))), fl(e);
11409
- }
11410
- se.source = me(he(il));
11411
- se.sprite = me(he(ll));
11412
- se.glyphs = me(he(pl));
11413
- se.fontFaces = me(he(cl));
11414
- se.light = me(he(al));
11415
- se.sky = me(he(ol));
11416
- se.terrain = me(he(sl));
11417
- se.state = me(he(ul));
11418
- se.layer = me(he(nl));
11408
+ }))), dl(e);
11409
+ }
11410
+ se.source = me(he(al));
11411
+ se.sprite = me(he(ul));
11412
+ se.glyphs = me(he(fl));
11413
+ se.fontFaces = me(he(pl));
11414
+ se.light = me(he(ol));
11415
+ se.sky = me(he(sl));
11416
+ se.terrain = me(he(ll));
11417
+ se.state = me(he(cl));
11418
+ se.layer = me(he(il));
11419
11419
  se.filter = me(he(Oi));
11420
- se.paintProperty = me(he(tl));
11421
- se.layoutProperty = me(he(rl));
11420
+ se.paintProperty = me(he(rl));
11421
+ se.layoutProperty = me(he(nl));
11422
11422
  function he(r) {
11423
11423
  return function(t) {
11424
11424
  return r(Object.assign({}, t, { validateSpec: Dr }));
11425
11425
  };
11426
11426
  }
11427
- function fl(r) {
11427
+ function dl(r) {
11428
11428
  return [].concat(r).sort((t, e) => t.line - e.line);
11429
11429
  }
11430
11430
  function me(r) {
11431
11431
  return function(...t) {
11432
- return fl(r.apply(this, t));
11432
+ return dl(r.apply(this, t));
11433
11433
  };
11434
11434
  }
11435
- function ja(r) {
11435
+ function Ua(r) {
11436
11436
  if (!r)
11437
11437
  return {
11438
11438
  style: it[mr[0].referenceStyleID].getDefaultVariant().getExpandedStyleURL(),
@@ -11461,11 +11461,11 @@ function ja(r) {
11461
11461
  isFallback: !1
11462
11462
  };
11463
11463
  }
11464
- return r instanceof vo ? {
11464
+ return r instanceof bo ? {
11465
11465
  style: r.getExpandedStyleURL(),
11466
11466
  requiresUrlMonitoring: !1,
11467
11467
  isFallback: !1
11468
- } : r instanceof bo ? {
11468
+ } : r instanceof Co ? {
11469
11469
  style: r.getDefaultVariant().getExpandedStyleURL(),
11470
11470
  requiresUrlMonitoring: !1,
11471
11471
  isFallback: !1
@@ -11507,8 +11507,8 @@ function Rd(r) {
11507
11507
  function Fd(r) {
11508
11508
  if (!r)
11509
11509
  return it[mr[0].referenceStyleID].getDefaultVariant().getId();
11510
- if (r instanceof vo) return r.getId();
11511
- if (r instanceof bo) return r.getDefaultVariant().getId();
11510
+ if (r instanceof bo) return r.getId();
11511
+ if (r instanceof Co) return r.getDefaultVariant().getId();
11512
11512
  if (typeof r == "string") {
11513
11513
  const e = /\/maps\/([^/]+)\/style\.json/.exec(r);
11514
11514
  return e ? e[1] : r.startsWith("http") || r.toLowerCase().includes(".json") || r.trim().startsWith("{") ? void 0 : r.replace("maptiler://", "");
@@ -11537,13 +11537,13 @@ class zd {
11537
11537
  Ht(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
11538
11538
  }
11539
11539
  _toggleTerrain() {
11540
- dl(this._map), this._updateTerrainIcon();
11540
+ hl(this._map), this._updateTerrainIcon();
11541
11541
  }
11542
11542
  _updateTerrainIcon() {
11543
11543
  this._terrainButton.classList.remove("maplibregl-ctrl-terrain"), this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"), this._map.hasTerrain() ? (this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"), this._terrainButton.title = this._map._getUIString("TerrainControl.Disable")) : (this._terrainButton.classList.add("maplibregl-ctrl-terrain"), this._terrainButton.title = this._map._getUIString("TerrainControl.Enable"));
11544
11544
  }
11545
11545
  }
11546
- function dl(r) {
11546
+ function hl(r) {
11547
11547
  r.hasTerrain() ? r.disableTerrain() : r.enableTerrain();
11548
11548
  }
11549
11549
  class $d extends mo {
@@ -11572,7 +11572,7 @@ class $d extends mo {
11572
11572
  return i.clickFunction = n, i;
11573
11573
  }
11574
11574
  }
11575
- class Dd extends tu {
11575
+ class Dd extends ru {
11576
11576
  constructor() {
11577
11577
  super(...arguments);
11578
11578
  y(this, "lastUpdatedCenter", new re(0, 0));
@@ -11615,7 +11615,7 @@ class Dd extends tu {
11615
11615
  pitchAlignment: "map"
11616
11616
  }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("move", this._onZoom)), this._geolocateButton.addEventListener("click", this.trigger.bind(this)), this._setup = !0, this.options.trackUserLocation && this._map.on("moveend", (n) => {
11617
11617
  const i = n.originalEvent && n.originalEvent.type === "resize", a = this.lastUpdatedCenter.distanceTo(this._map.getCenter());
11618
- !n.geolocateSource && this._watchState === "ACTIVE_LOCK" && !i && a > 1 && (this._watchState = "BACKGROUND", this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"), this.fire(new ru("trackuserlocationend")));
11618
+ !n.geolocateSource && this._watchState === "ACTIVE_LOCK" && !i && a > 1 && (this._watchState = "BACKGROUND", this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"), this.fire(new nu("trackuserlocationend")));
11619
11619
  });
11620
11620
  }
11621
11621
  });
@@ -11685,7 +11685,7 @@ class Nd {
11685
11685
  }
11686
11686
  }
11687
11687
  Te = new WeakMap(), ae = new WeakMap(), Ie = new WeakMap(), Me = new WeakMap(), ot = new WeakMap();
11688
- class jd {
11688
+ class Ud {
11689
11689
  constructor() {
11690
11690
  y(this, "map");
11691
11691
  y(this, "container");
@@ -11698,20 +11698,20 @@ class jd {
11698
11698
  Ht(this.container), this.map.off("projectiontransition", this.updateProjectionIcon), this.map = void 0;
11699
11699
  }
11700
11700
  toggleProjection() {
11701
- hl(this.map), this.updateProjectionIcon();
11701
+ ml(this.map), this.updateProjectionIcon();
11702
11702
  }
11703
11703
  updateProjectionIcon() {
11704
11704
  this.projectionButton.classList.remove("maplibregl-ctrl-projection-globe"), this.projectionButton.classList.remove("maplibregl-ctrl-projection-mercator"), this.map.isGlobeProjection() ? (this.projectionButton.classList.add("maplibregl-ctrl-projection-mercator"), this.projectionButton.title = "Enable Mercator projection") : (this.projectionButton.classList.add("maplibregl-ctrl-projection-globe"), this.projectionButton.title = "Enable Globe projection");
11705
11705
  }
11706
11706
  }
11707
- function hl(r) {
11707
+ function ml(r) {
11708
11708
  r.getProjection() === void 0 && r.setProjection({ type: "mercator" }), r.isGlobeProjection() ? r.setProjection("mercator", { persist: !0 }) : r.setProjection("globe", { persist: !0 });
11709
11709
  }
11710
11710
  const Lt = {
11711
11711
  "zoom-in": (r) => r.zoomIn(),
11712
11712
  "zoom-out": (r) => r.zoomOut(),
11713
- "toggle-projection": hl,
11714
- "toggle-terrain": dl,
11713
+ "toggle-projection": ml,
11714
+ "toggle-terrain": hl,
11715
11715
  "reset-view": (r) => {
11716
11716
  r.getPitch() === 0 ? r.easeTo({ pitch: Math.min(r.getMaxPitch(), 80) }) : r.resetNorthPitch();
11717
11717
  },
@@ -11763,7 +11763,7 @@ class Wn extends Nd {
11763
11763
  }
11764
11764
  }
11765
11765
  Gt = new WeakMap(), st = new WeakMap(), y(Wn, "controlCallbacks", Lt);
11766
- var oe, ge, Pe, _e, le, Zt, K, ml, de, yl;
11766
+ var oe, ge, Pe, _e, le, Zt, K, yl, de, gl;
11767
11767
  class En {
11768
11768
  constructor(t, e) {
11769
11769
  ee(this, K);
@@ -11829,10 +11829,10 @@ class En {
11829
11829
  ne(this, ge, t), ne(this, Pe, xe("div", "maplibregl-ctrl maplibregl-ctrl-group"));
11830
11830
  for (const [e, n] of Object.entries(L(this, oe).containerStyle))
11831
11831
  L(this, Pe).style.setProperty(e, n);
11832
- return L(this, oe).container = L(this, Pe), L(this, oe).zoom = t.getZoom() + L(this, oe).zoomAdjust, this.map = new bl(L(this, oe)), this.map.once("style.load", () => {
11832
+ return L(this, oe).container = L(this, Pe), L(this, oe).zoom = t.getZoom() + L(this, oe).zoomAdjust, this.map = new Cl({ ...L(this, oe), space: !1, halo: !1 }), this.map.once("style.load", () => {
11833
11833
  this.map.resize();
11834
11834
  }), this.map.once("load", () => {
11835
- ie(this, K, ml).call(this, L(this, oe).parentRect), ne(this, Zt, ie(this, K, yl).call(this));
11835
+ ie(this, K, yl).call(this, L(this, oe).parentRect), ne(this, Zt, ie(this, K, gl).call(this));
11836
11836
  }), L(this, Pe);
11837
11837
  }
11838
11838
  onRemove() {
@@ -11840,7 +11840,7 @@ class En {
11840
11840
  (t = L(this, Zt)) == null || t.call(this), Ht(L(this, Pe));
11841
11841
  }
11842
11842
  }
11843
- oe = new WeakMap(), ge = new WeakMap(), Pe = new WeakMap(), _e = new WeakMap(), le = new WeakMap(), Zt = new WeakMap(), K = new WeakSet(), ml = function(t) {
11843
+ oe = new WeakMap(), ge = new WeakMap(), Pe = new WeakMap(), _e = new WeakMap(), le = new WeakMap(), Zt = new WeakMap(), K = new WeakSet(), yl = function(t) {
11844
11844
  t === void 0 || t.linePaint === void 0 && t.fillPaint === void 0 || (ne(this, _e, {
11845
11845
  type: "Feature",
11846
11846
  properties: {
@@ -11883,7 +11883,7 @@ oe = new WeakMap(), ge = new WeakMap(), Pe = new WeakMap(), _e = new WeakMap(),
11883
11883
  L(this, _e).geometry.coordinates = [[l.toArray(), u.toArray(), s.toArray(), o.toArray(), l.toArray()]];
11884
11884
  const c = this.map.getSource("parentRect");
11885
11885
  c !== void 0 && c.setData(L(this, _e));
11886
- }, yl = function() {
11886
+ }, gl = function() {
11887
11887
  const { pitchAdjust: t } = L(this, oe), e = () => {
11888
11888
  o("parent");
11889
11889
  }, n = () => {
@@ -11906,7 +11906,7 @@ oe = new WeakMap(), ge = new WeakMap(), Pe = new WeakMap(), _e = new WeakMap(),
11906
11906
  a();
11907
11907
  };
11908
11908
  };
11909
- const Ua = 256;
11909
+ const ja = 256;
11910
11910
  function It(r, t) {
11911
11911
  const e = Math.pow(2, t);
11912
11912
  return (r + 180) / 360 * e;
@@ -11915,7 +11915,7 @@ function Xn(r, t) {
11915
11915
  const e = r * Math.PI / 180, n = Math.pow(2, t);
11916
11916
  return (1 - Math.log(Math.tan(e) + 1 / Math.cos(e)) / Math.PI) / 2 * n;
11917
11917
  }
11918
- function Ud(r, t, e) {
11918
+ function jd(r, t, e) {
11919
11919
  const n = oi.convert(r), i = n.getSouthWest(), a = n.getNorthEast(), o = [];
11920
11920
  for (let s = Math.floor(t); s <= Math.ceil(e); s++) {
11921
11921
  const l = Math.pow(2, s), u = Math.floor(Math.min(It(i.lng, s), It(a.lng, s))), c = Math.floor(Math.max(It(i.lng, s), It(a.lng, s))), p = Math.floor(Xn(i.lat, s)), f = Math.floor(Xn(a.lat, s)), d = Math.min(p, f), h = Math.max(p, f);
@@ -11928,7 +11928,7 @@ function Ud(r, t, e) {
11928
11928
  return o;
11929
11929
  }
11930
11930
  function Bd(r, t, e) {
11931
- const n = Math.floor(r.zoom), i = Math.pow(2, n), a = It(r.lng, n), o = Xn(r.lat, n), s = t / Ua, l = e / Ua, u = (r.pitch ?? 0) / 90 * l, c = Math.floor(a - s / 2) - 1, p = Math.ceil(a + s / 2) + 1, f = Math.floor(o - l / 2 - u) - 1, d = Math.ceil(o + l / 2) + 1, h = [];
11931
+ const n = Math.floor(r.zoom), i = Math.pow(2, n), a = It(r.lng, n), o = Xn(r.lat, n), s = t / ja, l = e / ja, u = (r.pitch ?? 0) / 90 * l, c = Math.floor(a - s / 2) - 1, p = Math.ceil(a + s / 2) + 1, f = Math.floor(o - l / 2 - u) - 1, d = Math.ceil(o + l / 2) + 1, h = [];
11932
11932
  for (let m = c; m <= p; m++)
11933
11933
  for (let g = f; g <= d; g++) {
11934
11934
  const v = (m % i + i) % i;
@@ -11956,7 +11956,7 @@ function Hd(r) {
11956
11956
  const [e, n, i] = t.map(Number);
11957
11957
  return isNaN(e) || isNaN(n) || isNaN(i) ? null : { z: e, x: n, y: i };
11958
11958
  }
11959
- function gl(r) {
11959
+ function vl(r) {
11960
11960
  return [r.z, r.x, r.y].join("/");
11961
11961
  }
11962
11962
  function qd(r, t) {
@@ -11965,7 +11965,7 @@ function qd(r, t) {
11965
11965
  function Ba(r) {
11966
11966
  const t = /* @__PURE__ */ new Set();
11967
11967
  return r.filter((e) => {
11968
- const n = gl(e);
11968
+ const n = vl(e);
11969
11969
  return t.has(n) ? !1 : (t.add(n), !0);
11970
11970
  });
11971
11971
  }
@@ -11983,7 +11983,7 @@ function Zd(r) {
11983
11983
  return e;
11984
11984
  }
11985
11985
  function Kd(r, t) {
11986
- const e = gl(t), n = [];
11986
+ const e = vl(t), n = [];
11987
11987
  for (const i of Object.values(r)) {
11988
11988
  const a = qd(i.tiles[0], t);
11989
11989
  n.push({ url: a, tileID: e });
@@ -12022,7 +12022,7 @@ class Wd {
12022
12022
  * });
12023
12023
  */
12024
12024
  async preloadForBounds({ bounds: t, minZoom: e, maxZoom: n, onProgress: i, onError: a }) {
12025
- const o = Ba(Ud(t, e, n));
12025
+ const o = Ba(jd(t, e, n));
12026
12026
  await this.fetchTiles(o, { onProgress: i, onError: a });
12027
12027
  }
12028
12028
  /**
@@ -12154,7 +12154,7 @@ class Xd {
12154
12154
  }
12155
12155
  preparePayload() {
12156
12156
  const t = new URL(`${O.apiURL}metrics`);
12157
- return t.searchParams.append("sdk", Hl()), t.searchParams.append("key", O.apiKey), t.searchParams.append("mtsid", Ur), t.searchParams.append("session", O.session ? "1" : "0"), t.searchParams.append("caching", O.caching ? "1" : "0"), t.searchParams.append("lang-updated", this.map.isLanguageUpdated() ? "1" : "0"), t.searchParams.append("terrain", this.map.getTerrain() ? "1" : "0"), t.searchParams.append("globe", this.map.isGlobeProjection() ? "1" : "0"), t.searchParams.append("viewerType", this.viewerType), this.registeredModules.size > 0 && t.searchParams.append("modules", Array.from(this.registeredModules).join("|")), t.href;
12157
+ return t.searchParams.append("sdk", ql()), t.searchParams.append("key", O.apiKey), t.searchParams.append("mtsid", jr), t.searchParams.append("session", O.session ? "1" : "0"), t.searchParams.append("caching", O.caching ? "1" : "0"), t.searchParams.append("lang-updated", this.map.isLanguageUpdated() ? "1" : "0"), t.searchParams.append("terrain", this.map.getTerrain() ? "1" : "0"), t.searchParams.append("globe", this.map.isGlobeProjection() ? "1" : "0"), t.searchParams.append("viewerType", this.viewerType), t.searchParams.append("buildFormat", "es"), this.registeredModules.size > 0 && t.searchParams.append("modules", Array.from(this.registeredModules).join("|")), t.href;
12158
12158
  }
12159
12159
  }
12160
12160
  var qt = typeof Float32Array < "u" ? Float32Array : Array;
@@ -12220,7 +12220,7 @@ function qa(r, t, e) {
12220
12220
  return t;
12221
12221
  };
12222
12222
  })();
12223
- const Ri = 1, U = Ri / 2, B = Ri / 2, V = Ri / 2, ih = [-U, -B, V, U, -B, V, U, B, V, -U, B, V], ah = [-U, -B, -V, -U, B, -V, U, B, -V, U, -B, -V], oh = [-U, B, -V, -U, B, V, U, B, V, U, B, -V], sh = [-U, -B, -V, U, -B, -V, U, -B, V, -U, -B, V], lh = [U, -B, -V, U, B, -V, U, B, V, U, -B, V], uh = [-U, -B, -V, -U, -B, V, -U, B, V, -U, B, -V], ch = [...ih, ...ah, ...oh, ...sh, ...lh, ...uh], ph = [
12223
+ const Ri = 1, j = Ri / 2, B = Ri / 2, V = Ri / 2, ih = [-j, -B, V, j, -B, V, j, B, V, -j, B, V], ah = [-j, -B, -V, -j, B, -V, j, B, -V, j, -B, -V], oh = [-j, B, -V, -j, B, V, j, B, V, j, B, -V], sh = [-j, -B, -V, j, -B, -V, j, -B, V, -j, -B, V], lh = [j, -B, -V, j, B, -V, j, B, V, j, -B, V], uh = [-j, -B, -V, -j, -B, V, -j, B, V, -j, B, -V], ch = [...ih, ...ah, ...oh, ...sh, ...lh, ...uh], ph = [
12224
12224
  // Front
12225
12225
  0,
12226
12226
  1,
@@ -12330,7 +12330,7 @@ const Fe = {
12330
12330
  preset: "milkyway-colored"
12331
12331
  }
12332
12332
  };
12333
- var je = /* @__PURE__ */ ((r) => (r.POSITIVE_X = "pX", r.NEGATIVE_X = "nX", r.POSITIVE_Y = "pY", r.NEGATIVE_Y = "nY", r.POSITIVE_Z = "pZ", r.NEGATIVE_Z = "nZ", r))(je || {});
12333
+ var Ue = /* @__PURE__ */ ((r) => (r.POSITIVE_X = "pX", r.NEGATIVE_X = "nX", r.POSITIVE_Y = "pY", r.NEGATIVE_Y = "nY", r.POSITIVE_Z = "pZ", r.NEGATIVE_Z = "nZ", r))(Ue || {});
12334
12334
  const nt = /* @__PURE__ */ new Map();
12335
12335
  function hh(r) {
12336
12336
  const t = nt.get(r);
@@ -12387,17 +12387,17 @@ function mh({ gl: r, faces: t, onReady: e, forceRefresh: n }) {
12387
12387
  });
12388
12388
  }
12389
12389
  function yh(r, t) {
12390
- if (t === je.POSITIVE_X)
12390
+ if (t === Ue.POSITIVE_X)
12391
12391
  return r.TEXTURE_CUBE_MAP_POSITIVE_X;
12392
- if (t === je.NEGATIVE_X)
12392
+ if (t === Ue.NEGATIVE_X)
12393
12393
  return r.TEXTURE_CUBE_MAP_NEGATIVE_X;
12394
- if (t === je.POSITIVE_Y)
12394
+ if (t === Ue.POSITIVE_Y)
12395
12395
  return r.TEXTURE_CUBE_MAP_POSITIVE_Y;
12396
- if (t === je.NEGATIVE_Y)
12396
+ if (t === Ue.NEGATIVE_Y)
12397
12397
  return r.TEXTURE_CUBE_MAP_NEGATIVE_Y;
12398
- if (t === je.POSITIVE_Z)
12398
+ if (t === Ue.POSITIVE_Z)
12399
12399
  return r.TEXTURE_CUBE_MAP_POSITIVE_Z;
12400
- if (t === je.NEGATIVE_Z)
12400
+ if (t === Ue.NEGATIVE_Z)
12401
12401
  return r.TEXTURE_CUBE_MAP_NEGATIVE_Z;
12402
12402
  throw new Error(`[CubemapLayer][loadCubemapTexture]: Invalid key ${t}`);
12403
12403
  }
@@ -12567,7 +12567,7 @@ class ur {
12567
12567
  updateCubemap({ facesNeedUpdate: t } = { facesNeedUpdate: !0 }) {
12568
12568
  this.useCubemapTexture = this.faces !== null;
12569
12569
  const e = vh.filter((n) => n === "cubeSampler" || n === "fadeOpacity" ? this.useCubemapTexture : !0);
12570
- this.cubemap = Xo({
12570
+ this.cubemap = Yo({
12571
12571
  gl: this.gl,
12572
12572
  vertexShaderSource: fh,
12573
12573
  // Because we only want to use the read the texture in gl if we're supposed to
@@ -13011,7 +13011,7 @@ class fr {
13011
13011
  * @returns void
13012
13012
  */
13013
13013
  onAdd(t, e) {
13014
- this.map = t, this.plane = Xo({
13014
+ this.map = t, this.plane = Yo({
13015
13015
  gl: e,
13016
13016
  vertexShaderSource: Sh,
13017
13017
  fragmentShaderSource: wh,
@@ -13184,7 +13184,7 @@ function Qa(r) {
13184
13184
  function kh() {
13185
13185
  const r = "color: #3A1888; background: white; padding: 5px 0; font-weight: bold;", t = "color: #FBC935; background: white; padding: 5px; font-weight: bold;", e = "color: #F1175D; background: white; padding: 5px 0; font-weight: bold;";
13186
13186
  console.info(
13187
- `%c❖%c❖%c❖ %cMapTiler SDK JS v${Hl()} %c❖%c❖%c❖`,
13187
+ `%c❖%c❖%c❖ %cMapTiler SDK JS v${ql()} %c❖%c❖%c❖`,
13188
13188
  t + "padding-right: 0;",
13189
13189
  r,
13190
13190
  e,
@@ -13195,13 +13195,13 @@ function kh() {
13195
13195
  );
13196
13196
  }
13197
13197
  function Th() {
13198
- return "https://cdn.maptiler.com/maptiler-sdk-js/v5.0.0-rc.3/maplibre-gl-worker.mjs";
13198
+ return "https://cdn.maptiler.com/maptiler-sdk-js/v5.0.0-rc.5/maplibre-gl-worker.mjs";
13199
13199
  }
13200
- function vl() {
13201
- iu() || au(Ih(Th()));
13200
+ function bl() {
13201
+ au() || ou(Ih(Th()));
13202
13202
  }
13203
13203
  function Em() {
13204
- vl(), nu();
13204
+ bl(), iu();
13205
13205
  }
13206
13206
  function Ih(r) {
13207
13207
  const t = new Blob([`import ${JSON.stringify(r)};`], { type: "text/javascript" });
@@ -13211,10 +13211,10 @@ const Mh = "0.1.0", Ph = {
13211
13211
  POINT: "POINT",
13212
13212
  COUNTRY: "COUNTRY"
13213
13213
  }, _h = 11;
13214
- let bl = class Cl extends ou {
13214
+ let Cl = class Sl extends su {
13215
13215
  constructor(e) {
13216
- e.logSDKVersion !== !1 && kh(), vl(), Op(e.container), e.apiKey && (O.apiKey = e.apiKey);
13217
- const { style: n, requiresUrlMonitoring: i, isFallback: a } = ja(e.style);
13216
+ e.logSDKVersion !== !1 && kh(), bl(), Op(e.container), e.apiKey && (O.apiKey = e.apiKey);
13217
+ const { style: n, requiresUrlMonitoring: i, isFallback: a } = Ua(e.style);
13218
13218
  a && console.warn(
13219
13219
  "Invalid style. A style must be a valid URL to a style.json, a JSON string representing a valid StyleSpecification or a valid StyleSpecification object. Fallback to default MapTiler style."
13220
13220
  ), O.apiKey || console.warn("MapTiler Cloud API key is not set. Visit https://maptiler.com and try Cloud for free!");
@@ -13233,7 +13233,7 @@ let bl = class Cl extends ou {
13233
13233
  transformRequest: Ca(e.transformRequest),
13234
13234
  attributionControl: e.forceNoAttributionControl === !0 ? !1 : s
13235
13235
  };
13236
- delete l.style, e.useExperimentalTilePreloading && (su(O.experimental_defaultWorkerCount), console.info(`Using ${O.experimental_defaultWorkerCount} workers for experimental tile preloading.`));
13236
+ delete l.style, e.useExperimentalTilePreloading && (lu(O.experimental_defaultWorkerCount), console.info(`Using ${O.experimental_defaultWorkerCount} workers for experimental tile preloading.`));
13237
13237
  super(l);
13238
13238
  y(this, "telemetry");
13239
13239
  y(this, "space");
@@ -13275,7 +13275,7 @@ let bl = class Cl extends ou {
13275
13275
  }
13276
13276
  }
13277
13277
  }), this.on("error", (h) => {
13278
- if (h.error instanceof lu) {
13278
+ if (h.error instanceof uu) {
13279
13279
  const g = h.error.url, v = new URL(g);
13280
13280
  v.search = "";
13281
13281
  const b = v.href;
@@ -13289,7 +13289,7 @@ let bl = class Cl extends ou {
13289
13289
  }), O.caching && !Pr && console.warn("The cache API is only available in secure contexts. More info at https://developer.mozilla.org/en-US/docs/Web/API/Cache"), O.caching && Pr && Ip(), typeof e.language > "u")
13290
13290
  this.primaryLanguage = O.primaryLanguage;
13291
13291
  else {
13292
- const h = Ui(e.language, R);
13292
+ const h = ji(e.language, R);
13293
13293
  this.primaryLanguage = h ?? O.primaryLanguage;
13294
13294
  }
13295
13295
  this.forceLanguageUpdate = !(this.primaryLanguage === R.STYLE || this.primaryLanguage === R.STYLE_LOCK), this.languageAlwaysBeenStyle = this.primaryLanguage === R.STYLE, this.terrainExaggeration = e.terrainExaggeration ?? this.terrainExaggeration, this.curentProjection = e.projection, this.on("style.load", (h) => {
@@ -13382,7 +13382,7 @@ let bl = class Cl extends ou {
13382
13382
  this.addControl(new ga({ logoURL: m }), e.logoPosition);
13383
13383
  } else e.maptilerLogo && this.addControl(new ga(), e.logoPosition);
13384
13384
  if (e.scaleControl) {
13385
- const m = e.scaleControl === !0 || e.scaleControl === void 0 ? "bottom-right" : e.scaleControl, g = new uu({ unit: O.unit });
13385
+ const m = e.scaleControl === !0 || e.scaleControl === void 0 ? "bottom-right" : e.scaleControl, g = new cu({ unit: O.unit });
13386
13386
  this.addControl(g, m), O.on("unit", (v) => {
13387
13387
  g.setUnit(v);
13388
13388
  });
@@ -13417,11 +13417,11 @@ let bl = class Cl extends ou {
13417
13417
  }
13418
13418
  if (e.projectionControl) {
13419
13419
  const m = e.projectionControl === !0 || e.projectionControl === void 0 ? "top-right" : e.projectionControl;
13420
- this.addControl(new jd(), m);
13420
+ this.addControl(new Ud(), m);
13421
13421
  }
13422
13422
  if (e.fullscreenControl) {
13423
13423
  const m = e.fullscreenControl === !0 || e.fullscreenControl === void 0 ? "top-right" : e.fullscreenControl;
13424
- this.addControl(new cu({}), m);
13424
+ this.addControl(new pu({}), m);
13425
13425
  }
13426
13426
  this.isReady = !0, this.fire("ready", { target: this });
13427
13427
  });
@@ -13446,13 +13446,13 @@ let bl = class Cl extends ou {
13446
13446
  maxZoom: We,
13447
13447
  boxZoom: Y,
13448
13448
  locale: Xe,
13449
- fadeDuration: ql,
13450
- crossSourceCollisions: Gl,
13451
- clickTolerance: Zl,
13452
- bounds: Kl,
13453
- fitBoundsOptions: Wl,
13454
- pixelRatio: Xl,
13455
- validateStyle: Yl
13449
+ fadeDuration: Gl,
13450
+ crossSourceCollisions: Zl,
13451
+ clickTolerance: Kl,
13452
+ bounds: Wl,
13453
+ fitBoundsOptions: Xl,
13454
+ pixelRatio: Yl,
13455
+ validateStyle: Jl
13456
13456
  } = e;
13457
13457
  this.minimap = new En(h, {
13458
13458
  zoom: m,
@@ -13470,13 +13470,13 @@ let bl = class Cl extends ou {
13470
13470
  maxZoom: We,
13471
13471
  boxZoom: Y,
13472
13472
  locale: Xe,
13473
- fadeDuration: ql,
13474
- crossSourceCollisions: Gl,
13475
- clickTolerance: Zl,
13476
- bounds: Kl,
13477
- fitBoundsOptions: Wl,
13478
- pixelRatio: Xl,
13479
- validateStyle: Yl
13473
+ fadeDuration: Gl,
13474
+ crossSourceCollisions: Zl,
13475
+ clickTolerance: Kl,
13476
+ bounds: Wl,
13477
+ fitBoundsOptions: Xl,
13478
+ pixelRatio: Yl,
13479
+ validateStyle: Jl
13480
13480
  }), this.addControl(this.minimap, h.position ?? "bottom-left");
13481
13481
  } else h === !0 ? (this.minimap = new En({}, e), this.addControl(this.minimap, "bottom-left")) : h !== void 0 && h !== !1 && (this.minimap = new En({}, e), this.addControl(this.minimap, h));
13482
13482
  });
@@ -13664,15 +13664,15 @@ let bl = class Cl extends ou {
13664
13664
  if (this.halo && this.getLayer(this.halo.id) || e.halo === !1) return;
13665
13665
  const a = i;
13666
13666
  if (e.halo && e.halo !== !0) {
13667
- this.halo = new fr(e.halo), this.removeLayer(this.halo.id), this.addLayer(this.halo, n);
13667
+ this.halo = new fr(e.halo), this.getLayer(this.halo.id) && this.removeLayer(this.halo.id), this.addLayer(this.halo, n);
13668
13668
  return;
13669
13669
  }
13670
13670
  if (a) {
13671
- this.halo = new fr(a), this.removeLayer(this.halo.id), this.addLayer(this.halo, n);
13671
+ this.halo = new fr(a), this.getLayer(this.halo.id) && this.removeLayer(this.halo.id), this.addLayer(this.halo, n);
13672
13672
  return;
13673
13673
  }
13674
13674
  if (this.options.halo === !0) {
13675
- this.halo = new fr(!0), this.removeLayer(this.halo.id), this.addLayer(this.halo, n);
13675
+ this.halo = new fr(!0), this.getLayer(this.halo.id) && this.removeLayer(this.halo.id), this.addLayer(this.halo, n);
13676
13676
  return;
13677
13677
  }
13678
13678
  }
@@ -13703,7 +13703,7 @@ let bl = class Cl extends ou {
13703
13703
  bearing: this.getBearing(),
13704
13704
  pitch: this.getPitch()
13705
13705
  };
13706
- this.remove(), Object.assign(this, new Cl({ ...this.options })), this.once("load", () => {
13706
+ this.remove(), Object.assign(this, new Sl({ ...this.options })), this.once("load", () => {
13707
13707
  this.jumpTo(e);
13708
13708
  });
13709
13709
  }
@@ -13785,7 +13785,7 @@ let bl = class Cl extends ou {
13785
13785
  this.originalLabelStyle.clear(), (c = this.minimap) == null || c.setStyle(e), this.forceLanguageUpdate = !0, this.once("idle", () => {
13786
13786
  this.forceLanguageUpdate = !1;
13787
13787
  });
13788
- const i = ja(e);
13788
+ const i = Ua(e);
13789
13789
  if (i.requiresUrlMonitoring && this.monitorStyleUrl(i.style), i.isFallback) {
13790
13790
  if (this.getStyle())
13791
13791
  return console.warn(
@@ -14054,7 +14054,7 @@ let bl = class Cl extends ou {
14054
14054
  * Define the primary language of the map. Note that not all the languages shorthands provided are available.
14055
14055
  */
14056
14056
  setPrimaryLanguage(e) {
14057
- const n = this.getStyleLanguage(), i = Ui(e, R);
14057
+ const n = this.getStyleLanguage(), i = ji(e, R);
14058
14058
  if (!i) {
14059
14059
  console.warn(`The language "${i}" is not supported.`);
14060
14060
  return;
@@ -14100,7 +14100,7 @@ let bl = class Cl extends ou {
14100
14100
  ]) : a.flag === R.AUTO.flag ? (o = ya().flag, s = ["coalesce", ["get", o], ["get", R.LOCAL.flag]]) : a === R.LOCAL ? (o = R.LOCAL.flag, s = ["get", o]) : (o = a.flag, s = ["coalesce", ["get", o], ["get", R.LOCAL.flag]]);
14101
14101
  const { layers: l } = this.getStyle(), u = this.originalLabelStyle.size === 0;
14102
14102
  if (u) {
14103
- const c = jp(l, this);
14103
+ const c = Up(l, this);
14104
14104
  this.isStyleLocalized = Object.keys(c.localized).length > 0;
14105
14105
  }
14106
14106
  for (const c of l) {
@@ -14273,7 +14273,7 @@ let bl = class Cl extends ou {
14273
14273
  * @returns
14274
14274
  */
14275
14275
  getMaptilerSessionId() {
14276
- return Ur;
14276
+ return jr;
14277
14277
  }
14278
14278
  /**
14279
14279
  * Updates the requestManager's transform request with a new function.
@@ -14566,7 +14566,7 @@ function dr(r) {
14566
14566
  if (r = { ...r }, O.session ? r.session !== !1 : r.session === !0) {
14567
14567
  const t = r.adjustSearchParams;
14568
14568
  r.adjustSearchParams = (e) => {
14569
- typeof t == "function" && t(e), e.append("mtsid", Ur);
14569
+ typeof t == "function" && t(e), e.append("mtsid", jr);
14570
14570
  };
14571
14571
  }
14572
14572
  return delete r.session, r;
@@ -14577,18 +14577,12 @@ const Am = {
14577
14577
  byId: (r, t = {}) => tr.geocoding.byId(r, dr(t)),
14578
14578
  batch: (r, t = {}) => tr.geocoding.batch(r, dr(t))
14579
14579
  };
14580
- class ue {
14580
+ class ue extends yo {
14581
14581
  constructor(t, e, n, i = {}) {
14582
- y(this, "type");
14583
- y(this, "target");
14584
- y(this, "originalEvent");
14585
- y(this, "imageX");
14586
- y(this, "imageY");
14587
- y(this, "isOutOfBounds");
14588
- this.type = t, this.target = e, this.originalEvent = n ?? null, Object.assign(this, i);
14582
+ super(t, i), this.target = e, this.originalEvent = n ?? i.originalEvent ?? null;
14589
14583
  }
14590
14584
  }
14591
- const Sl = [
14585
+ const wl = [
14592
14586
  // pass nothing other than target (map / viewer) and type
14593
14587
  "idle",
14594
14588
  "render",
@@ -14599,10 +14593,10 @@ const Sl = [
14599
14593
  // keeping them for reference
14600
14594
  // "content",
14601
14595
  // "visibility",
14602
- ], wl = [
14596
+ ], Ll = [
14603
14597
  "error"
14604
14598
  // ErrorEvent
14605
- ], Ll = ["resize"], xl = ["webglcontextlost", "webglcontextrestored"], El = [
14599
+ ], xl = ["resize"], El = ["webglcontextlost", "webglcontextrestored"], Al = [
14606
14600
  "moveend",
14607
14601
  "movestart",
14608
14602
  "move",
@@ -14618,7 +14612,7 @@ const Sl = [
14618
14612
  "boxzoomcancel",
14619
14613
  "boxzoomend",
14620
14614
  "boxzoomstart"
14621
- ], Al = ["click", "dblclick", "mousedown", "mouseup", "mousemove", "mouseout", "mouseover", "contextmenu", "touchstart", "touchend", "touchmove", "touchcancel"], kl = ["cooperativegestureprevented"], Tl = [
14615
+ ], kl = ["click", "dblclick", "mousedown", "mouseup", "mousemove", "mouseout", "mouseover", "contextmenu", "touchstart", "touchend", "touchmove", "touchcancel"], Tl = ["cooperativegestureprevented"], Il = [
14622
14616
  "data",
14623
14617
  "dataloading",
14624
14618
  "sourcedata",
@@ -14629,21 +14623,21 @@ const Sl = [
14629
14623
  // keeping it for reference
14630
14624
  // "metadata",
14631
14625
  ], Oh = [
14632
- ...Sl,
14633
14626
  ...wl,
14634
14627
  ...Ll,
14635
14628
  ...xl,
14636
14629
  ...El,
14637
14630
  ...Al,
14638
- ...Tl,
14639
- ...kl
14631
+ ...kl,
14632
+ ...Il,
14633
+ ...Tl
14640
14634
  ], Rh = ["lngLat", "_defaultPrevented"];
14641
14635
  function Fh({ map: r, viewer: t, lngLatToPx: e }) {
14642
14636
  Oh.forEach((n) => {
14643
14637
  try {
14644
14638
  r.on(n, (i) => {
14645
14639
  const a = n;
14646
- if (Al.includes(a)) {
14640
+ if (kl.includes(a)) {
14647
14641
  const d = i, h = d.lngLat && e(d.lngLat), m = t.getImageMetadata(), v = {
14648
14642
  isOutOfBounds: m ? h[0] < 0 || h[0] > m.width || h[1] < 0 || h[1] > m.height : !0,
14649
14643
  imageX: h[0],
@@ -14654,43 +14648,43 @@ function Fh({ map: r, viewer: t, lngLatToPx: e }) {
14654
14648
  return;
14655
14649
  }
14656
14650
  const o = n;
14657
- if (El.includes(o)) {
14651
+ if (Al.includes(o)) {
14658
14652
  const d = i;
14659
14653
  t.fire(new ue(n, t, d.originalEvent, d));
14660
14654
  return;
14661
14655
  }
14662
14656
  const s = n;
14663
- if (wl.includes(s)) {
14657
+ if (Ll.includes(s)) {
14664
14658
  const d = i;
14665
14659
  t.fire(new ue(n, t, null, d));
14666
14660
  return;
14667
14661
  }
14668
14662
  const l = n;
14669
- if (Ll.includes(l)) {
14663
+ if (xl.includes(l)) {
14670
14664
  const d = i;
14671
14665
  t.fire(new ue(n, t, null, d));
14672
14666
  return;
14673
14667
  }
14674
14668
  const u = n;
14675
- if (xl.includes(u)) {
14669
+ if (El.includes(u)) {
14676
14670
  const d = i;
14677
14671
  t.fire(new ue(n, t, d.originalEvent, d));
14678
14672
  return;
14679
14673
  }
14680
14674
  const c = n;
14681
- if (Tl.includes(c)) {
14675
+ if (Il.includes(c)) {
14682
14676
  const d = i;
14683
14677
  t.fire(new ue(n, t, null, d));
14684
14678
  return;
14685
14679
  }
14686
14680
  const p = n;
14687
- if (kl.includes(p)) {
14681
+ if (Tl.includes(p)) {
14688
14682
  const d = i;
14689
14683
  t.fire(new ue(n, t, null, d));
14690
14684
  return;
14691
14685
  }
14692
14686
  const f = n;
14693
- if (Sl.includes(f)) {
14687
+ if (wl.includes(f)) {
14694
14688
  t.fire(new ue(n, t));
14695
14689
  return;
14696
14690
  }
@@ -14719,7 +14713,7 @@ function Dh(r) {
14719
14713
  function Nh(r) {
14720
14714
  return Math.log(r) / Math.LN2;
14721
14715
  }
14722
- function Il(r, t, e) {
14716
+ function Ml(r, t, e) {
14723
14717
  return Math.min(e, Math.max(t, r));
14724
14718
  }
14725
14719
  function Jn(r) {
@@ -14732,12 +14726,12 @@ function to(r, t, e) {
14732
14726
  const n = e - t, i = ((r - t) % n + n) % n + t;
14733
14727
  return i === t ? e : i;
14734
14728
  }
14735
- function jh(r, t) {
14736
- const e = Il(t.lat, -eo, eo);
14737
- return new yo(Qn(t.lng) * r, Jn(e) * r);
14729
+ function Uh(r, t) {
14730
+ const e = Ml(t.lat, -eo, eo);
14731
+ return new go(Qn(t.lng) * r, Jn(e) * r);
14738
14732
  }
14739
- const Uh = function(r, t) {
14740
- t = Il(t, this.minZoom, this.maxZoom);
14733
+ const jh = function(r, t) {
14734
+ t = Ml(t, this.minZoom, this.maxZoom);
14741
14735
  const e = {
14742
14736
  center: new re(r.lng, r.lat),
14743
14737
  zoom: t
@@ -14752,7 +14746,7 @@ const Uh = function(r, t) {
14752
14746
  let o = 0, s = a, l = 0, u = a, c = 0, p = 0;
14753
14747
  const { x: f, y: d } = this.size, h = 0.5;
14754
14748
  i && (o = Jn(i[1]) * a, s = Jn(i[0]) * a, s - o < h * d && (c = h * d / (s - o))), n && (l = to(Qn(n[0]) * a, 0, a), u = to(Qn(n[1]) * a, 0, a), u < l && (u += a), u - l < h * f && (p = h * f / (u - l)));
14755
- const { x: m, y: g } = jh(a, r);
14749
+ const { x: m, y: g } = Uh(a, r);
14756
14750
  let v, b;
14757
14751
  const w = Math.min(p || 0, c || 0);
14758
14752
  if (w)
@@ -14770,7 +14764,7 @@ const Uh = function(r, t) {
14770
14764
  Y - Xe < l && (v = l + Xe), Y + Xe > u && (v = u - Xe);
14771
14765
  }
14772
14766
  if (v !== void 0 || b !== void 0) {
14773
- const Y = new yo(v ?? m, b ?? g);
14767
+ const Y = new go(v ?? m, b ?? g);
14774
14768
  e.center = $h(a, Y).wrap();
14775
14769
  }
14776
14770
  return e;
@@ -14819,7 +14813,7 @@ class Hh {
14819
14813
  this.container.remove();
14820
14814
  }
14821
14815
  }
14822
- const Ml = Symbol("MapTiler:ImageViewer:Internal:lngLatToPxInternal"), Pl = Symbol("MapTiler:ImageViewer:Internal:pxToLngLatInternal"), qh = {
14816
+ const Pl = Symbol("MapTiler:ImageViewer:Internal:lngLatToPxInternal"), _l = Symbol("MapTiler:ImageViewer:Internal:pxToLngLatInternal"), qh = {
14823
14817
  style: {
14824
14818
  version: 8,
14825
14819
  sources: {},
@@ -14838,14 +14832,14 @@ const Ml = Symbol("MapTiler:ImageViewer:Internal:lngLatToPxInternal"), Pl = Symb
14838
14832
  terrain: !1,
14839
14833
  space: !1,
14840
14834
  halo: !1,
14841
- transformConstrain: Uh
14835
+ transformConstrain: jh
14842
14836
  }, Gh = {
14843
14837
  debug: !1,
14844
14838
  fitToBoundsControl: !0,
14845
14839
  navigationControl: !0
14846
14840
  };
14847
14841
  var po, fo, ho;
14848
- class Zh extends (ho = go, fo = Ml, po = Pl, ho) {
14842
+ class Zh extends (ho = vo, fo = Pl, po = _l, ho) {
14849
14843
  //#region constructor
14850
14844
  /**
14851
14845
  * The constructor for the ImageViewer.
@@ -14936,7 +14930,7 @@ class Zh extends (ho = go, fo = Ml, po = Pl, ho) {
14936
14930
  ...this.options,
14937
14931
  ...qh
14938
14932
  };
14939
- delete n.center, this.sdk = new bl(n), this.sdk.telemetry.registerViewerType("ImageViewer");
14933
+ delete n.center, this.sdk = new Cl(n), this.sdk.telemetry.registerViewerType("ImageViewer");
14940
14934
  const { imageUUID: i, debug: a } = e;
14941
14935
  this.imageUUID = i, this.debug = a ?? !1, this.debug && (this.sdk.showTileBoundaries = this.debug, this.sdk.showPadding = this.debug, this.sdk.showCollisionBoxes = this.debug, this.sdk.repaint = this.debug), this.init();
14942
14936
  }
@@ -15009,9 +15003,9 @@ class Zh extends (ho = go, fo = Ml, po = Pl, ho) {
15009
15003
  var f, d;
15010
15004
  const u = this.getCenter(), c = ((f = this.imageMetadata) == null ? void 0 : f.width) ?? 0, p = ((d = this.imageMetadata) == null ? void 0 : d.height) ?? 0;
15011
15005
  this.shouldFitImageToViewport && this.fitImageToViewport(), (u[0] !== c / 2 || u[1] !== p / 2) && this.setCenter(u);
15012
- }), this.fire("imageviewerready", new ue("imageviewerready", this));
15006
+ }), this.fire(new ue("imageviewerready", this));
15013
15007
  } catch (a) {
15014
- this.fire("imagevieweriniterror", { error: a });
15008
+ this.fire("imagevieweriniterror", { error: a instanceof Error ? a : new Error(String(a)) });
15015
15009
  }
15016
15010
  }
15017
15011
  //#region fitImageToViewport
@@ -15050,7 +15044,7 @@ class Zh extends (ho = go, fo = Ml, po = Pl, ho) {
15050
15044
  */
15051
15045
  addImageSource() {
15052
15046
  if (!this.imageMetadata)
15053
- throw this.fire("error", new ue("error", this, null, { error: new Error("[ImageViewer]: Image metadata not found") })), new Error("[ImageViewer]: Image metadata not found");
15047
+ throw this.fire(new ue("error", this, null, { error: new Error("[ImageViewer]: Image metadata not found") })), new Error("[ImageViewer]: Image metadata not found");
15054
15048
  const e = Wh(this.imageUUID), n = (s) => Math.pow(2, Math.ceil(Math.log(s) / Math.LN2));
15055
15049
  this.imageSize = [this.imageMetadata.width, this.imageMetadata.height], this.paddedSizeMax = Math.max(n(this.imageSize[0]), n(this.imageSize[1]));
15056
15050
  const i = this.pxToLngLat([0, 0]), a = this.pxToLngLat(this.imageSize), o = [i.lng, a.lat, a.lng, i.lat];
@@ -15213,7 +15207,7 @@ class Zh extends (ho = go, fo = Ml, po = Pl, ho) {
15213
15207
  lngLatToPx(e) {
15214
15208
  if (!this.paddedSizeMax) {
15215
15209
  const i = "[ImageViewer]: Unable to convert LngLat to px, padded size max not set";
15216
- throw this.fire("error", new ue("error", this, null, { error: new Error(i) })), new Error(i);
15210
+ throw this.fire(new ue("error", this, null, { error: new Error(i) })), new Error(i);
15217
15211
  }
15218
15212
  const n = Ar.fromLngLat(e);
15219
15213
  return [n.x * this.paddedSizeMax, n.y * this.paddedSizeMax];
@@ -15229,7 +15223,7 @@ class Zh extends (ho = go, fo = Ml, po = Pl, ho) {
15229
15223
  pxToLngLat(e) {
15230
15224
  if (!this.paddedSizeMax) {
15231
15225
  const i = "[ImageViewer]: Unable to convert px to LngLat, padded size max not set";
15232
- throw this.fire("error", new ue("error", this, null, { error: new Error(i) })), new Error(i);
15226
+ throw this.fire(new ue("error", this, null, { error: new Error(i) })), new Error(i);
15233
15227
  }
15234
15228
  return new Ar(e[0] / this.paddedSizeMax, e[1] / this.paddedSizeMax).toLngLat();
15235
15229
  }
@@ -15396,7 +15390,7 @@ class Zh extends (ho = go, fo = Ml, po = Pl, ho) {
15396
15390
  * @returns {ImageViewer} The ImageViewer instance.
15397
15391
  */
15398
15392
  remove() {
15399
- this.fire("beforeremove", new ue("beforeremove", this)), this.sdk.remove(), this._listeners && Object.entries(this._listeners).forEach(([e, n]) => {
15393
+ this.fire(new ue("beforeremove", this)), this.sdk.remove(), this._listeners && Object.entries(this._listeners).forEach(([e, n]) => {
15400
15394
  n == null || n.forEach((i) => {
15401
15395
  this.off(e, i);
15402
15396
  });
@@ -15418,15 +15412,15 @@ class Zh extends (ho = go, fo = Ml, po = Pl, ho) {
15418
15412
  }
15419
15413
  }
15420
15414
  function Kh(r) {
15421
- return `${_l()}/${r}/image.json?key=${O.apiKey}`;
15415
+ return `${Ol()}/${r}/image.json?key=${O.apiKey}`;
15422
15416
  }
15423
15417
  function Wh(r) {
15424
- return `${_l()}/${r}/{z}/{x}/{y}?key=${O.apiKey}`;
15418
+ return `${Ol()}/${r}/{z}/{x}/{y}?key=${O.apiKey}`;
15425
15419
  }
15426
- function _l() {
15420
+ function Ol() {
15427
15421
  return `${O.apiURL}images`;
15428
15422
  }
15429
- class km extends go {
15423
+ class km extends vo {
15430
15424
  constructor({ ...e }) {
15431
15425
  super();
15432
15426
  y(this, "viewer");
@@ -15443,7 +15437,7 @@ class km extends go {
15443
15437
  addTo(e) {
15444
15438
  if (!(e instanceof Zh))
15445
15439
  throw new Error("[ImageViewerMarker]: an ImageViewerMarker must be added to an instance of ImageViewer");
15446
- this.viewer = e, Qh(this.marker, this, this.viewer[Ml]);
15440
+ this.viewer = e, Qh(this.marker, this, this.viewer[Pl]);
15447
15441
  const n = this.viewer.getSDKInternal();
15448
15442
  return this.setPosition(this.position), Vh(this.marker), this.marker.addTo(n), this;
15449
15443
  }
@@ -15600,7 +15594,7 @@ class km extends go {
15600
15594
  setPosition(e) {
15601
15595
  if (this.position[0] = e[0], this.position[1] = e[1], !this.viewer)
15602
15596
  return this;
15603
- const n = this.viewer[Pl](e);
15597
+ const n = this.viewer[_l](e);
15604
15598
  return this.marker.setLngLat(n), this;
15605
15599
  }
15606
15600
  /**
@@ -15689,7 +15683,7 @@ class km extends go {
15689
15683
  }
15690
15684
  }
15691
15685
  const Xh = ["dragstart", "drag", "dragend"], Yh = ["lngLat", "_defaultPrevented", "target"];
15692
- class Jh extends pu {
15686
+ class Jh extends yo {
15693
15687
  constructor(t, e, n) {
15694
15688
  super(t, n), this.target = e;
15695
15689
  }
@@ -15720,7 +15714,7 @@ function Fi(r) {
15720
15714
  }
15721
15715
  throw new Error("No XML parser found");
15722
15716
  }
15723
- function Ol(r, t) {
15717
+ function Rl(r, t) {
15724
15718
  if (!r.hasChildNodes())
15725
15719
  return !1;
15726
15720
  for (const e of Array.from(r.childNodes)) {
@@ -15737,7 +15731,7 @@ function ro(r) {
15737
15731
  }
15738
15732
  function em(r) {
15739
15733
  const t = typeof r == "string" ? Fi(r) : r;
15740
- if (!Ol(t, "gpx"))
15734
+ if (!Rl(t, "gpx"))
15741
15735
  throw new Error("The XML document is not valid GPX");
15742
15736
  const e = W(t, "trk"), n = W(t, "rte"), i = W(t, "wpt"), a = {
15743
15737
  type: "FeatureCollection",
@@ -15757,7 +15751,7 @@ function em(r) {
15757
15751
  }
15758
15752
  function tm(r, t) {
15759
15753
  let e = r;
15760
- if (typeof e == "string" && (e = Fi(e)), !Ol(e, "kml"))
15754
+ if (typeof e == "string" && (e = Fi(e)), !Rl(e, "kml"))
15761
15755
  throw new Error("The XML document is not valid KML");
15762
15756
  const n = {
15763
15757
  type: "FeatureCollection",
@@ -15784,7 +15778,7 @@ function no(r) {
15784
15778
  return n.startsWith("#") && (n = n.substring(1)), (n.length === 6 || n.length === 3) && (t = n), n.length === 8 && (e = Number.parseInt(n.substring(0, 2), 16) / 255, t = `#${n.substring(6, 8)}${n.substring(4, 6)}${n.substring(2, 4)}`), [t ?? "#000000", e ?? 1];
15785
15779
  }
15786
15780
  function rm(r) {
15787
- return zl(r.split(" "));
15781
+ return $l(r.split(" "));
15788
15782
  }
15789
15783
  function nm(r) {
15790
15784
  let t = W(r, "coord");
@@ -15815,7 +15809,7 @@ function Er(r) {
15815
15809
  if (e = n[a], t[i] === "Point")
15816
15810
  s.push({
15817
15811
  type: "Point",
15818
- coordinates: $l(z(I(e, "coordinates")) ?? "")
15812
+ coordinates: Dl(z(I(e, "coordinates")) ?? "")
15819
15813
  });
15820
15814
  else if (t[i] === "LineString")
15821
15815
  s.push({
@@ -15889,13 +15883,13 @@ function im(r, t, e, n) {
15889
15883
  };
15890
15884
  return Ge(r, "id") && (v.id = Ge(r, "id") ?? void 0), [v];
15891
15885
  }
15892
- function Rl(r, t) {
15886
+ function Fl(r, t) {
15893
15887
  const e = W(r, t), n = [], i = [];
15894
15888
  let a = [];
15895
15889
  const o = e.length;
15896
15890
  if (!(o < 2)) {
15897
15891
  for (let s = 0; s < o; s++) {
15898
- const l = Dl(e[s]);
15892
+ const l = Nl(e[s]);
15899
15893
  n.push(l.coordinates), l.time && i.push(l.time), (l.heartRate || a.length) && (a.length === 0 && (a = new Array(s).fill(null)), a.push(l.heartRate));
15900
15894
  }
15901
15895
  return {
@@ -15909,7 +15903,7 @@ function am(r) {
15909
15903
  const t = W(r, "trkseg"), e = [], n = [], i = [];
15910
15904
  let a;
15911
15905
  for (let s = 0; s < t.length; s++)
15912
- if (a = Rl(t[s], "trkpt"), a !== void 0 && (a.line && e.push(a.line), a.times && a.times.length && n.push(a.times), i.length || a.heartRates && a.heartRates.length)) {
15906
+ if (a = Fl(t[s], "trkpt"), a !== void 0 && (a.line && e.push(a.line), a.times && a.times.length && n.push(a.times), i.length || a.heartRates && a.heartRates.length)) {
15913
15907
  if (!i.length)
15914
15908
  for (let l = 0; l < s; l++)
15915
15909
  i.push(new Array(e[l].length).fill(null));
@@ -15918,7 +15912,7 @@ function am(r) {
15918
15912
  if (e.length === 0) return;
15919
15913
  const o = {
15920
15914
  ...zi(r),
15921
- ...Fl(I(r, "extensions"))
15915
+ ...zl(I(r, "extensions"))
15922
15916
  };
15923
15917
  return n.length !== 0 && (o.coordTimes = e.length === 1 ? n[0] : n), i.length !== 0 && (o.heartRates = e.length === 1 ? i[0] : i), e.length === 1 ? {
15924
15918
  type: "Feature",
@@ -15937,12 +15931,12 @@ function am(r) {
15937
15931
  };
15938
15932
  }
15939
15933
  function om(r) {
15940
- const t = Rl(r, "rtept");
15934
+ const t = Fl(r, "rtept");
15941
15935
  return t === void 0 ? void 0 : {
15942
15936
  type: "Feature",
15943
15937
  properties: {
15944
15938
  ...zi(r),
15945
- ...Fl(I(r, "extensions"))
15939
+ ...zl(I(r, "extensions"))
15946
15940
  },
15947
15941
  geometry: {
15948
15942
  type: "LineString",
@@ -15956,11 +15950,11 @@ function sm(r) {
15956
15950
  properties: { ...zi(r), ...ei(r, ["sym"]) },
15957
15951
  geometry: {
15958
15952
  type: "Point",
15959
- coordinates: Dl(r).coordinates
15953
+ coordinates: Nl(r).coordinates
15960
15954
  }
15961
15955
  };
15962
15956
  }
15963
- function Fl(r) {
15957
+ function zl(r) {
15964
15958
  const t = {};
15965
15959
  if (r) {
15966
15960
  const e = I(r, "line");
@@ -16008,7 +16002,7 @@ function I(r, t) {
16008
16002
  function lm(r) {
16009
16003
  return r.normalize && r.normalize(), r;
16010
16004
  }
16011
- function zl(r) {
16005
+ function $l(r) {
16012
16006
  return r.map(Number.parseFloat).map((t) => Number.isNaN(t) ? null : t);
16013
16007
  }
16014
16008
  function z(r) {
@@ -16021,15 +16015,15 @@ function ei(r, t) {
16021
16015
  n = I(r, t[i]), n && (e[t[i]] = z(n) ?? "");
16022
16016
  return e;
16023
16017
  }
16024
- function $l(r) {
16025
- return zl(r.replace(/\s*/g, "").split(","));
16018
+ function Dl(r) {
16019
+ return $l(r.replace(/\s*/g, "").split(","));
16026
16020
  }
16027
16021
  function oo(r) {
16028
16022
  const t = r.replace(/^\s*|\s*$/g, "").split(/\s+/), e = [];
16029
- for (const n of t) e.push($l(n));
16023
+ for (const n of t) e.push(Dl(n));
16030
16024
  return e;
16031
16025
  }
16032
- function Dl(r) {
16026
+ function Nl(r) {
16033
16027
  const t = [ao(r, "lon"), ao(r, "lat")], e = I(r, "ele"), n = I(r, "gpxtpx:hr") || I(r, "hr"), i = I(r, "time");
16034
16028
  let a;
16035
16029
  return e && (a = Number.parseFloat(z(e) ?? "0"), Number.isNaN(a) || t.push(a)), {
@@ -16102,10 +16096,10 @@ function en() {
16102
16096
  return ti[~~(Math.random() * ti.length)][~~(Math.random() * 4)];
16103
16097
  }
16104
16098
  function Qt() {
16105
- return `maptiler_source_${Jo()}`;
16099
+ return `maptiler_source_${Qo()}`;
16106
16100
  }
16107
16101
  function er() {
16108
- return `maptiler_layer_${Jo()}`;
16102
+ return `maptiler_layer_${Qo()}`;
16109
16103
  }
16110
16104
  function ri(r, t) {
16111
16105
  if (t <= r[0].zoom)
@@ -16125,7 +16119,7 @@ function ze(r) {
16125
16119
  function F(r) {
16126
16120
  return ["interpolate", ["linear"], ["zoom"], ...r.flatMap((t) => [t.zoom, t.value])];
16127
16121
  }
16128
- function Nl(r, t) {
16122
+ function Ul(r, t) {
16129
16123
  if (typeof t == "number" && typeof r == "number")
16130
16124
  return 2 * t + r;
16131
16125
  if (typeof t == "number" && Array.isArray(r))
@@ -16174,7 +16168,7 @@ function ii(r, t, e = !0) {
16174
16168
  ["interpolate", ["linear"], ["get", t], ...r.flatMap((n) => [n.value, n.pointRadius])]
16175
16169
  ] : ["interpolate", ["linear"], ["get", t], ...r.flatMap((n) => [n.value, n.pointRadius])];
16176
16170
  }
16177
- function Ul(r, t, e = !0) {
16171
+ function Bl(r, t, e = !0) {
16178
16172
  return e ? [
16179
16173
  "interpolate",
16180
16174
  ["linear"],
@@ -16202,7 +16196,7 @@ function ai(r, t) {
16202
16196
  })
16203
16197
  ];
16204
16198
  }
16205
- function Bl(r, t = 10) {
16199
+ function Vl(r, t = 10) {
16206
16200
  return [
16207
16201
  "interpolate",
16208
16202
  ["linear"],
@@ -16398,7 +16392,7 @@ class A extends Array {
16398
16392
  return this[0].color.length === 4 && this[0].color[3] === 0;
16399
16393
  }
16400
16394
  }
16401
- const Vl = {
16395
+ const Hl = {
16402
16396
  /**
16403
16397
  * A fully transparent [0, 0, 0, 0] colorramp to hide data.
16404
16398
  * Defined in interval [0, 1], without unit.
@@ -17208,7 +17202,7 @@ function hm(r, t) {
17208
17202
  paint: {
17209
17203
  "line-opacity": typeof d == "number" ? d : F(d),
17210
17204
  "line-color": typeof f == "string" ? f : ze(f),
17211
- "line-width": Nl(a, p),
17205
+ "line-width": Ul(a, p),
17212
17206
  "line-blur": typeof h == "number" ? h : F(h)
17213
17207
  }
17214
17208
  },
@@ -17329,7 +17323,7 @@ function mm(r, t) {
17329
17323
  function ym(r, t) {
17330
17324
  if (t.layerId && r.getLayer(t.layerId))
17331
17325
  throw new Error(`A layer already exists with the layer id: ${t.layerId}`);
17332
- const e = t.minPointRadius ?? 10, n = t.maxPointRadius ?? 50, i = t.cluster ?? !1, a = 20, o = Array.isArray(t.pointColor) ? t.pointColor : Vl.TURBO.scale(10, t.cluster ? 1e4 : 1e3).resample("ease-out-square"), s = o.getBounds(), l = t.sourceId ?? Qt(), u = t.layerId ?? er(), c = t.showLabel ?? i, p = t.alignOnViewport ?? !0, f = t.outline ?? !1, d = t.outlineOpacity ?? 1, h = t.outlineWidth ?? 1, m = t.outlineColor ?? "#FFFFFF";
17326
+ const e = t.minPointRadius ?? 10, n = t.maxPointRadius ?? 50, i = t.cluster ?? !1, a = 20, o = Array.isArray(t.pointColor) ? t.pointColor : Hl.TURBO.scale(10, t.cluster ? 1e4 : 1e3).resample("ease-out-square"), s = o.getBounds(), l = t.sourceId ?? Qt(), u = t.layerId ?? er(), c = t.showLabel ?? i, p = t.alignOnViewport ?? !0, f = t.outline ?? !1, d = t.outlineOpacity ?? 1, h = t.outlineWidth ?? 1, m = t.outlineColor ?? "#FFFFFF";
17333
17327
  let g;
17334
17328
  const v = t.zoomCompensation ?? !0, b = t.minzoom ?? 0, w = t.maxzoom ?? 23;
17335
17329
  typeof t.pointOpacity == "number" ? g = t.pointOpacity : Array.isArray(t.pointOpacity) ? g = F(t.pointOpacity) : t.cluster ? g = ai(o, "point_count") : t.property ? g = ai(o, t.property) : g = F([
@@ -17502,7 +17496,7 @@ function gm(r, t) {
17502
17496
  { zoom: a - 0.25, value: 1 },
17503
17497
  { zoom: a, value: 0 }
17504
17498
  ];
17505
- let l = Array.isArray(t.colorRamp) ? t.colorRamp : Vl.TURBO.transparentStart();
17499
+ let l = Array.isArray(t.colorRamp) ? t.colorRamp : Hl.TURBO.transparentStart();
17506
17500
  const u = l.getBounds();
17507
17501
  (u.min !== 0 || u.max !== 1) && (l = l.scale(0, 1)), l.hasTransparentStart() || (l = l.transparentStart());
17508
17502
  const c = t.intensity ?? [
@@ -17520,7 +17514,7 @@ function gm(r, t) {
17520
17514
  { zoom: 16, value: 50 }
17521
17515
  ], m = t.radius ?? (o ? h : 10);
17522
17516
  let g = 1;
17523
- typeof m == "number" ? g = m : Array.isArray(m) && "zoom" in m[0] ? g = F(m) : p && Array.isArray(m) && "propertyValue" in m[0] ? g = Ul(m, p, o) : !p && Array.isArray(m) && "propertyValue" in m[0] ? (g = F(h), console.warn("The option `.radius` can only be property-driven if the option `.property` is provided.")) : g = F(h);
17517
+ typeof m == "number" ? g = m : Array.isArray(m) && "zoom" in m[0] ? g = F(m) : p && Array.isArray(m) && "propertyValue" in m[0] ? g = Bl(m, p, o) : !p && Array.isArray(m) && "propertyValue" in m[0] ? (g = F(h), console.warn("The option `.radius` can only be property-driven if the option `.property` is provided.")) : g = F(h);
17524
17518
  const v = {
17525
17519
  heatmapLayerId: n,
17526
17520
  heatmapSourceId: e
@@ -17542,7 +17536,7 @@ function gm(r, t) {
17542
17536
  paint: {
17543
17537
  "heatmap-weight": d,
17544
17538
  "heatmap-intensity": typeof c == "number" ? c : F(c),
17545
- "heatmap-color": Bl(l),
17539
+ "heatmap-color": Vl(l),
17546
17540
  "heatmap-radius": g,
17547
17541
  "heatmap-opacity": typeof s == "number" ? s : F(s)
17548
17542
  }
@@ -17558,17 +17552,17 @@ const Tm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17558
17552
  addPolyline: dm,
17559
17553
  colorDrivenByProperty: ni,
17560
17554
  colorPalettes: ti,
17561
- computeRampedOutlineWidth: Nl,
17555
+ computeRampedOutlineWidth: Ul,
17562
17556
  dashArrayMaker: $i,
17563
17557
  generateRandomLayerName: er,
17564
17558
  generateRandomSourceName: Qt,
17565
17559
  getRandomColor: en,
17566
- heatmapIntensityFromColorRamp: Bl,
17560
+ heatmapIntensityFromColorRamp: Vl,
17567
17561
  lerpZoomNumberValues: ri,
17568
17562
  opacityDrivenByProperty: ai,
17569
17563
  paintColorOptionsToPaintSpec: ze,
17570
17564
  radiusDrivenByProperty: ii,
17571
- radiusDrivenByPropertyHeatmap: Ul,
17565
+ radiusDrivenByPropertyHeatmap: Bl,
17572
17566
  rampedOptionsToLayerPaintSpec: F,
17573
17567
  rampedPropertyValueWeight: jl,
17574
17568
  takeScreenshot: cm
@@ -17812,8 +17806,8 @@ class Im {
17812
17806
  render() {
17813
17807
  }
17814
17808
  }
17815
- function Hl() {
17816
- return "5.0.0-rc.3";
17809
+ function ql() {
17810
+ return "5.0.0-rc.5";
17817
17811
  }
17818
17812
  export {
17819
17813
  _m as AJAXError,
@@ -17827,15 +17821,15 @@ export {
17827
17821
  Dm as CanvasSourceMLGL,
17828
17822
  un as CollisionBehaviour,
17829
17823
  A as ColorRamp,
17830
- Vl as ColorRampCollection,
17824
+ Hl as ColorRampCollection,
17831
17825
  Nm as CooperativeGesturesHandler,
17832
- jm as CooperativeGesturesHandlerMLGL,
17833
- je as CubemapFaceNames,
17826
+ Um as CooperativeGesturesHandlerMLGL,
17827
+ Ue as CubemapFaceNames,
17834
17828
  dh as CubemapImagesPresets,
17835
17829
  ur as CubemapLayer,
17836
17830
  xe as DOMcreate,
17837
17831
  Ht as DOMremove,
17838
- Um as DoubleClickZoomHandler,
17832
+ jm as DoubleClickZoomHandler,
17839
17833
  Bm as DragPanHandler,
17840
17834
  Vm as DragRotateHandler,
17841
17835
  Hm as EdgeInsets,
@@ -17861,7 +17855,7 @@ export {
17861
17855
  i1 as LngLatBounds,
17862
17856
  a1 as LogoControl,
17863
17857
  o1 as LogoControlMLGL,
17864
- bl as Map,
17858
+ Cl as Map,
17865
17859
  s1 as MapMLGL,
17866
17860
  l1 as MapMouseEvent,
17867
17861
  u1 as MapMouseEventMLGL,
@@ -17877,7 +17871,7 @@ export {
17877
17871
  Dd as MaptilerGeolocateControl,
17878
17872
  ga as MaptilerLogoControl,
17879
17873
  $d as MaptilerNavigationControl,
17880
- jd as MaptilerProjectionControl,
17874
+ Ud as MaptilerProjectionControl,
17881
17875
  zd as MaptilerTerrainControl,
17882
17876
  ma as Marker,
17883
17877
  h1 as MarkerMLGL,
@@ -17910,8 +17904,8 @@ export {
17910
17904
  $1 as TwoFingersTouchZoomRotateHandler,
17911
17905
  D1 as VectorTileSource,
17912
17906
  N1 as VectorTileSourceMLGL,
17913
- j1 as VideoSource,
17914
- U1 as VideoSourceMLGL,
17907
+ U1 as VideoSource,
17908
+ j1 as VideoSourceMLGL,
17915
17909
  B1 as addProtocol,
17916
17910
  V1 as addSourceType,
17917
17911
  l0 as areSameLanguages,
@@ -17941,19 +17935,19 @@ export {
17941
17935
  Z1 as getMaxParallelImageRequests,
17942
17936
  K1 as getRTLTextPluginStatus,
17943
17937
  w0 as getTileCache,
17944
- Hl as getVersion,
17938
+ ql as getVersion,
17945
17939
  _p as getWebGLSupportError,
17946
17940
  W1 as getWorkerCount,
17947
17941
  X1 as getWorkerUrl,
17948
17942
  em as gpx,
17949
17943
  um as gpxOrKml,
17950
- Ol as hasChildNodeWithName,
17944
+ Rl as hasChildNodeWithName,
17951
17945
  Tm as helpers,
17952
17946
  Y1 as importScriptInWorkers,
17953
17947
  L0 as isLanguageInfo,
17954
17948
  tm as kml,
17955
17949
  X as lerp,
17956
- Zo as lerpArrayValues,
17950
+ Ko as lerpArrayValues,
17957
17951
  x0 as mapStylePresetList,
17958
17952
  E0 as math,
17959
17953
  A0 as misc,
@@ -17971,8 +17965,8 @@ export {
17971
17965
  aa as stretchNumericalArray,
17972
17966
  T0 as styleToStyle,
17973
17967
  I0 as toLanguageInfo,
17974
- hl as toggleProjection,
17975
- dl as toggleTerrain,
17968
+ ml as toggleProjection,
17969
+ hl as toggleTerrain,
17976
17970
  ro as xml2str
17977
17971
  };
17978
17972
  //# sourceMappingURL=maptiler-sdk.mjs.map