@mapsindoors/map-template 1.78.1 → 1.78.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/{_commonjsHelpers-ba3f0406-49455bb9.mjs → _commonjsHelpers-ba3f0406-0c5d3430.mjs} +2 -2
  2. package/dist/{combo-box-item.entry-f8417678.mjs → combo-box-item.entry-97218dea.mjs} +2 -2
  3. package/dist/{icon-b8d01d6f-0d6695f4.mjs → icon-b8d01d6f-e66aa4a2.mjs} +2 -2
  4. package/dist/mapsindoors-react.es.js +2 -2
  5. package/dist/mapsindoors-react.umd.js +3 -3
  6. package/dist/mapsindoors-webcomponent.es.js +436 -434
  7. package/dist/mapsindoors-webcomponent.umd.js +3 -3
  8. package/dist/{mi-card_2.entry-1db52e79.mjs → mi-card_2.entry-3e69e419.mjs} +2 -2
  9. package/dist/{mi-chip.entry-7f636620.mjs → mi-chip.entry-18df3a39.mjs} +2 -2
  10. package/dist/{mi-column.entry-fda19d1c.mjs → mi-column.entry-6f0de60b.mjs} +2 -2
  11. package/dist/{mi-combo-box.entry-46f04c49.mjs → mi-combo-box.entry-ccc49749.mjs} +4 -4
  12. package/dist/{mi-data-table.entry-f145eedc.mjs → mi-data-table.entry-97c4367c.mjs} +3 -3
  13. package/dist/{mi-distance_2.entry-2c6ea564.mjs → mi-distance_2.entry-530f4a6f.mjs} +3 -3
  14. package/dist/{mi-dropdown-item.entry-4fd9a2df.mjs → mi-dropdown-item.entry-90fb2766.mjs} +2 -2
  15. package/dist/{mi-dropdown.entry-57a3e868.mjs → mi-dropdown.entry-a913ac3e.mjs} +4 -4
  16. package/dist/{mi-floor-selector.entry-89b5d295.mjs → mi-floor-selector.entry-180a9a88.mjs} +2 -2
  17. package/dist/{mi-keyboard.entry-637902aa.mjs → mi-keyboard.entry-b09dafab.mjs} +3 -3
  18. package/dist/{mi-list-item-category.entry-b847b4e4.mjs → mi-list-item-category.entry-e1d0c0ed.mjs} +4 -4
  19. package/dist/{mi-list-item-location.entry-d6fbbe6a.mjs → mi-list-item-location.entry-06d790ec.mjs} +4 -4
  20. package/dist/{mi-list.entry-3ca7456b.mjs → mi-list.entry-83decefa.mjs} +2 -2
  21. package/dist/{mi-location-booking.entry-3e9fa9f0.mjs → mi-location-booking.entry-4a4e06a7.mjs} +3 -3
  22. package/dist/{mi-location-info.entry-91d2f50c.mjs → mi-location-info.entry-ef3d52e1.mjs} +2 -2
  23. package/dist/{mi-map-googlemaps.entry-faebf1d1.mjs → mi-map-googlemaps.entry-2aafadb8.mjs} +3 -3
  24. package/dist/{mi-map-mapbox.entry-1c8fb9b9.mjs → mi-map-mapbox.entry-85f412cf.mjs} +3 -3
  25. package/dist/{mi-metric-card.entry-49dfa985.mjs → mi-metric-card.entry-f5101d3e.mjs} +3 -3
  26. package/dist/{mi-my-position.entry-24f489aa.mjs → mi-my-position.entry-07a1d319.mjs} +3 -3
  27. package/dist/{mi-notification.entry-92b34dc3.mjs → mi-notification.entry-fe98dcd9.mjs} +2 -2
  28. package/dist/{mi-route-instructions-heading.entry-b46e7949.mjs → mi-route-instructions-heading.entry-6a37f7b0.mjs} +4 -4
  29. package/dist/{mi-route-instructions-maneuver-legacy.entry-d4f6bdea.mjs → mi-route-instructions-maneuver-legacy.entry-c9be105b.mjs} +3 -3
  30. package/dist/{mi-route-instructions-maneuver.entry-9856cfea.mjs → mi-route-instructions-maneuver.entry-94a0bba0.mjs} +3 -3
  31. package/dist/{mi-route-instructions-step-legacy.entry-3dce8bdf.mjs → mi-route-instructions-step-legacy.entry-9674d8f0.mjs} +4 -4
  32. package/dist/{mi-route-instructions-step.entry-b9fefd07.mjs → mi-route-instructions-step.entry-d04abbc4.mjs} +4 -4
  33. package/dist/{mi-route-instructions.entry-3abf8dd1.mjs → mi-route-instructions.entry-54bb3309.mjs} +5 -5
  34. package/dist/{mi-scroll-buttons.entry-5cf6604e.mjs → mi-scroll-buttons.entry-53abbcc4.mjs} +2 -2
  35. package/dist/{mi-search.entry-f8501d38.mjs → mi-search.entry-1a77b5cf.mjs} +3 -3
  36. package/dist/{mi-share-sms.entry-554ffdd7.mjs → mi-share-sms.entry-af47222a.mjs} +2 -2
  37. package/dist/{mi-step-switcher.entry-dca7902b.mjs → mi-step-switcher.entry-b9080f0f.mjs} +2 -2
  38. package/dist/{mi-tab-panel.entry-ebe10875.mjs → mi-tab-panel.entry-e54c11d2.mjs} +2 -2
  39. package/dist/{mi-tab.entry-dd74993a.mjs → mi-tab.entry-f0891654.mjs} +2 -2
  40. package/dist/{mi-tabs.entry-2af40aed.mjs → mi-tabs.entry-e43ceea4.mjs} +2 -2
  41. package/dist/{mi-time.entry-67348302.mjs → mi-time.entry-3aaf6986.mjs} +2 -2
  42. package/dist/{mi-variables-9a6c8d4d-a945e09d.mjs → mi-variables-9a6c8d4d-95b9ec03.mjs} +2 -2
  43. package/dist/{reactcomponent-2ffc4106.mjs → reactcomponent-8ea6ca8b.mjs} +437 -435
  44. package/dist/{route-travel-mode.enum-7f4ce9c7-e14aab9e.mjs → route-travel-mode.enum-7f4ce9c7-776c9fcc.mjs} +2 -2
  45. package/dist/{sort-order.enum-64ce8998-06723043.mjs → sort-order.enum-64ce8998-4121f10f.mjs} +3 -3
  46. package/dist/{unit-system.enum-eaefb53e-76f2e982.mjs → unit-system.enum-eaefb53e-bcf86b0b.mjs} +2 -2
  47. package/dist/{utils-ae714467-a759b696.mjs → utils-ae714467-86abb268.mjs} +2 -2
  48. package/package.json +1 -1
@@ -4,12 +4,12 @@ import fd, { createPortal as r0 } from "react-dom";
4
4
  (function() {
5
5
  try {
6
6
  var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, r = new t.Error().stack;
7
- r && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[r] = "0a2616ca-10e6-4d8a-9586-49d0e26779f4", t._sentryDebugIdIdentifier = "sentry-dbid-0a2616ca-10e6-4d8a-9586-49d0e26779f4");
7
+ r && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[r] = "b72ea433-2448-473b-b281-e22f64c17faa", t._sentryDebugIdIdentifier = "sentry-dbid-b72ea433-2448-473b-b281-e22f64c17faa");
8
8
  } catch {
9
9
  }
10
10
  })();
11
11
  var h5 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
12
- h5.SENTRY_RELEASE = { id: "map-template@1.78.0" };
12
+ h5.SENTRY_RELEASE = { id: "map-template@1.78.1" };
13
13
  var X3 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14
14
  function i0(t) {
15
15
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -667,7 +667,7 @@ Check the top-level render call using <` + et + ">.");
667
667
  }()), Gp;
668
668
  }
669
669
  process.env.NODE_ENV === "production" ? jx.exports = d5() : jx.exports = f5();
670
- var Le = jx.exports;
670
+ var Re = jx.exports;
671
671
  const K3 = Object.prototype.toString;
672
672
  function o0(t) {
673
673
  switch (K3.call(t)) {
@@ -17277,7 +17277,7 @@ const nW = (t, r, ...s) => {
17277
17277
  if (y)
17278
17278
  return y[u];
17279
17279
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
17280
- return Yq(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-f8417678.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-1db52e79.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-7f636620.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-fda19d1c.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-46f04c49.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-f145eedc.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-2c6ea564.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-4fd9a2df.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-57a3e868.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-89b5d295.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-637902aa.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-b847b4e4.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-d6fbbe6a.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-3ca7456b.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-3e9fa9f0.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-91d2f50c.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-faebf1d1.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-1c8fb9b9.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-49dfa985.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-24f489aa.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-92b34dc3.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-b46e7949.mjs"), "./mi-route-instructions-maneuver-legacy.entry.js": () => import("./mi-route-instructions-maneuver-legacy.entry-d4f6bdea.mjs"), "./mi-route-instructions-maneuver.entry.js": () => import("./mi-route-instructions-maneuver.entry-9856cfea.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-3dce8bdf.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-b9fefd07.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-3abf8dd1.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-5cf6604e.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-f8501d38.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-554ffdd7.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-dca7902b.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-ebe10875.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-dd74993a.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-2af40aed.mjs"), "./mi-time.entry.js": () => import("./mi-time.entry-67348302.mjs") }), `./${g}.entry.js`).then((S) => (QI.set(g, S), S[u]), Bu);
17280
+ return Yq(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-97218dea.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-3e69e419.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-18df3a39.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-6f0de60b.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-ccc49749.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-97c4367c.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-530f4a6f.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-90fb2766.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-a913ac3e.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-180a9a88.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-b09dafab.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-e1d0c0ed.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-06d790ec.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-83decefa.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-4a4e06a7.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-ef3d52e1.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-2aafadb8.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-85f412cf.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-f5101d3e.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-07a1d319.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-fe98dcd9.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-6a37f7b0.mjs"), "./mi-route-instructions-maneuver-legacy.entry.js": () => import("./mi-route-instructions-maneuver-legacy.entry-c9be105b.mjs"), "./mi-route-instructions-maneuver.entry.js": () => import("./mi-route-instructions-maneuver.entry-94a0bba0.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-9674d8f0.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-d04abbc4.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-54bb3309.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-53abbcc4.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-1a77b5cf.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-af47222a.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-b9080f0f.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-e54c11d2.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-f0891654.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-e43ceea4.mjs"), "./mi-time.entry.js": () => import("./mi-time.entry-3aaf6986.mjs") }), `./${g}.entry.js`).then((S) => (QI.set(g, S), S[u]), Bu);
17281
17281
  }, jy = /* @__PURE__ */ new Map(), Um = typeof window < "u" ? window : {}, Ma = Um.document || { head: {} }, no = {
17282
17282
  $flags$: 0,
17283
17283
  $resourcesUrl$: "",
@@ -27337,12 +27337,12 @@ ${JSON.stringify(p, null, 2)}
27337
27337
  return l * te(ye(e));
27338
27338
  }
27339
27339
  const Ee = 85.051129;
27340
- function Re(l) {
27340
+ function Le(l) {
27341
27341
  return Math.cos(In(dt(l, -Ee, Ee)));
27342
27342
  }
27343
27343
  function Ue(l, e) {
27344
27344
  const o = dt(e, J, Q), c = Math.pow(2, o);
27345
- return Re(l) * V / (512 * c);
27345
+ return Le(l) * V / (512 * c);
27346
27346
  }
27347
27347
  function ze(l) {
27348
27348
  return 1 / Math.cos(l * Math.PI / 180);
@@ -32921,7 +32921,7 @@ ${JSON.stringify(p, null, 2)}
32921
32921
  const U = Dv(l, o), Z = xe.mat4.multiply([], o.projMatrix, U), Y = [0, 0, 0, 1];
32922
32922
  xe.vec4.transformMat4(Y, Y, Z);
32923
32923
  const re = Y[3] / o.cameraToCenterDistance, ue = Kl(v), de = o.projection.pixelsPerMeter(c.lat, D) * Ue(c.lat, v), se = o.projection.pixelsPerMeter(o.center.lat, D) * Ue(o.center.lat, v);
32924
- I = re / Tn(de, Re(o.center.lat), ue), k = re * M / de, I *= se, k *= se;
32924
+ I = re / Tn(de, Le(o.center.lat), ue), k = re * M / de, I *= se, k *= se;
32925
32925
  }
32926
32926
  } else
32927
32927
  I = E;
@@ -38650,10 +38650,10 @@ Use an identity property function instead: ${G}.`)];
38650
38650
  const j = new i.P(P[0] / P[3], P[1] / P[3]), V = new i.P(O[0] / O[3], O[1] / O[3]), G = i.an(x, j) && P[3] < N[3], X = i.an(x, V) && O[3] < N[3];
38651
38651
  if (!G && !X)
38652
38652
  return null;
38653
- const J = function(Ae, Ee, Re) {
38653
+ const J = function(Ae, Ee, Le) {
38654
38654
  for (let Ue = 1; Ue < Ae.length; Ue++) {
38655
38655
  const ze = wi(Ee.pointCoordinate3D(Ae[Ue - 1]).x), Oe = wi(Ee.pointCoordinate3D(Ae[Ue]).x);
38656
- if (Re < 0) {
38656
+ if (Le < 0) {
38657
38657
  if (ze < Oe)
38658
38658
  return { idx: Ue, t: -ze / (Oe - 1 - ze) };
38659
38659
  } else if (Oe < ze)
@@ -39551,8 +39551,8 @@ Use an identity property function instead: ${G}.`)];
39551
39551
  }
39552
39552
  bs.fill(0), Rc.fill(0);
39553
39553
  for (let Q = 2045; Q >= 0; Q--) {
39554
- const te = 4 * Q, he = is[te + 0], ge = is[te + 1], ce = is[te + 2], ve = is[te + 3], ye = he + ce >> 1, Ae = ge + ve >> 1, Ee = ye + Ae - ge, Re = Ae + he - ye, Ue = ge * rs + he, ze = ve * rs + ce, Oe = Ae * rs + ye, Ze = Math.hypot((bo[2 * Ue + 0] + bo[2 * ze + 0]) / 2 - bo[2 * Oe + 0], (bo[2 * Ue + 1] + bo[2 * ze + 1]) / 2 - bo[2 * Oe + 1]) >= 16;
39555
- bs[Oe] = bs[Oe] || (Ze ? 1 : 0), Q < 1022 && (bs[Oe] = bs[Oe] || bs[(ge + Re >> 1) * rs + (he + Ee >> 1)] || bs[(ve + Re >> 1) * rs + (ce + Ee >> 1)]);
39554
+ const te = 4 * Q, he = is[te + 0], ge = is[te + 1], ce = is[te + 2], ve = is[te + 3], ye = he + ce >> 1, Ae = ge + ve >> 1, Ee = ye + Ae - ge, Le = Ae + he - ye, Ue = ge * rs + he, ze = ve * rs + ce, Oe = Ae * rs + ye, Ze = Math.hypot((bo[2 * Ue + 0] + bo[2 * ze + 0]) / 2 - bo[2 * Oe + 0], (bo[2 * Ue + 1] + bo[2 * ze + 1]) / 2 - bo[2 * Oe + 1]) >= 16;
39555
+ bs[Oe] = bs[Oe] || (Ze ? 1 : 0), Q < 1022 && (bs[Oe] = bs[Oe] || bs[(ge + Le >> 1) * rs + (he + Ee >> 1)] || bs[(ve + Le >> 1) * rs + (ce + Ee >> 1)]);
39556
39556
  }
39557
39557
  const j = new i.aN(), V = new i.aO();
39558
39558
  let G = 0;
@@ -39565,8 +39565,8 @@ Use an identity property function instead: ${G}.`)];
39565
39565
  if (Math.abs(Q - ce) + Math.abs(te - ve) > 1 && bs[Ae * rs + ye])
39566
39566
  J(ce, ve, Q, te, ye, Ae), J(he, ge, ce, ve, ye, Ae);
39567
39567
  else {
39568
- const Ee = X(Q, te), Re = X(he, ge), Ue = X(ce, ve);
39569
- V.emplaceBack(Ee, Re, Ue);
39568
+ const Ee = X(Q, te), Le = X(he, ge), Ue = X(ce, ve);
39569
+ V.emplaceBack(Ee, Le, Ue);
39570
39570
  }
39571
39571
  }
39572
39572
  return J(0, 0, qo, qo, qo, 0), J(qo, qo, 0, 0, 0, qo), { vertices: j, indices: V };
@@ -40670,8 +40670,8 @@ Use an identity property function instead: ${G}.`)];
40670
40670
  const te = d.lineVertexArray, he = f ? d.text.placedSymbolArray : d.icon.placedSymbolArray, ge = a.transform.width / a.transform.height;
40671
40671
  let ce, ve = !1;
40672
40672
  for (let ye = 0; ye < he.length; ye++) {
40673
- const Ae = he.get(ye), { numGlyphs: Ee, writingMode: Re } = Ae;
40674
- if (Re !== i.bk.vertical || ve || ce === i.bk.horizontal || (ve = !0), ce = Re, (Ae.hidden || Re === i.bk.vertical) && !ve) {
40673
+ const Ae = he.get(ye), { numGlyphs: Ee, writingMode: Le } = Ae;
40674
+ if (Le !== i.bk.vertical || ve || ce === i.bk.horizontal || (ve = !0), ce = Le, (Ae.hidden || Le === i.bk.vertical) && !ve) {
40675
40675
  Ts(Ee, J);
40676
40676
  continue;
40677
40677
  }
@@ -40711,7 +40711,7 @@ Use an identity property function instead: ${G}.`)];
40711
40711
  }(a, f) ? n === os.flipRequired ? { needsFlipping: !0 } : null : a < 0 ? { needsFlipping: !0 } : null;
40712
40712
  }
40713
40713
  function hi(d, n, a, f, _, x, w, R, P, O, N, j, V, G, X, J, Q, te, he) {
40714
- const ge = n / 24, ce = d.lineOffsetX * ge, ve = d.lineOffsetY * ge, { lineStartIndex: ye, glyphStartIndex: Ae, numGlyphs: Ee, segment: Re, writingMode: Ue, flipState: ze } = d, Oe = ye + d.lineLength, Ze = (lt) => {
40714
+ const ge = n / 24, ce = d.lineOffsetX * ge, ve = d.lineOffsetY * ge, { lineStartIndex: ye, glyphStartIndex: Ae, numGlyphs: Ee, segment: Le, writingMode: Ue, flipState: ze } = d, Oe = ye + d.lineLength, Ze = (lt) => {
40715
40715
  if (N) {
40716
40716
  const [Ye, _t, ht] = lt.up, At = O.length;
40717
40717
  i.bm(N, At + 0, Ye, _t, ht), i.bm(N, At + 1, Ye, _t, ht), i.bm(N, At + 2, Ye, _t, ht), i.bm(N, At + 3, Ye, _t, ht);
@@ -40732,7 +40732,7 @@ Use an identity property function instead: ${G}.`)];
40732
40732
  }
40733
40733
  Ze(lt.first);
40734
40734
  for (let wt = Ae + 1; wt < Ae + Ee - 1; wt++) {
40735
- const at = wl(ge * R.getoffsetX(wt), ce, ve, a, j, V, Re, ye, Oe, P, x, G, J, !1, !1, Q, te, he);
40735
+ const at = wl(ge * R.getoffsetX(wt), ce, ve, a, j, V, Le, ye, Oe, P, x, G, J, !1, !1, Q, te, he);
40736
40736
  if (!at)
40737
40737
  return O.length -= 4 * (wt - Ae), { notEnoughRoom: !0 };
40738
40738
  Ze(at);
@@ -40740,11 +40740,11 @@ Use an identity property function instead: ${G}.`)];
40740
40740
  Ze(lt.last);
40741
40741
  } else {
40742
40742
  if (f && !a) {
40743
- const wt = Ki(V.x, V.y, 0, _), at = ye + Re + 1, Mt = new i.P(P.getx(at), P.gety(at)), Ye = Ki(Mt.x, Mt.y, 0, _), _t = Ye[3] > 0 ? Ye : bl(V, Mt, wt, 1, _, void 0, Q, te.canonical), ht = oo(Ue, ze, (_t[0] - wt[0]) * X, _t[1] - wt[1]);
40743
+ const wt = Ki(V.x, V.y, 0, _), at = ye + Le + 1, Mt = new i.P(P.getx(at), P.gety(at)), Ye = Ki(Mt.x, Mt.y, 0, _), _t = Ye[3] > 0 ? Ye : bl(V, Mt, wt, 1, _, void 0, Q, te.canonical), ht = oo(Ue, ze, (_t[0] - wt[0]) * X, _t[1] - wt[1]);
40744
40744
  if (d.flipState = ht && ht.needsFlipping ? os.flipRequired : os.flipNotRequired, ht)
40745
40745
  return ht;
40746
40746
  }
40747
- const lt = wl(ge * R.getoffsetX(Ae), ce, ve, a, j, V, Re, ye, Oe, P, x, G, J, !1, !1, Q, te, he);
40747
+ const lt = wl(ge * R.getoffsetX(Ae), ce, ve, a, j, V, Le, ye, Oe, P, x, G, J, !1, !1, Q, te, he);
40748
40748
  if (!lt)
40749
40749
  return { notEnoughRoom: !0 };
40750
40750
  Ze(lt);
@@ -40766,21 +40766,21 @@ Use an identity property function instead: ${G}.`)];
40766
40766
  const he = f ? d - n : d + n;
40767
40767
  let ge = he > 0 ? 1 : -1, ce = 0;
40768
40768
  f && (ge *= -1, ce = Math.PI), ge < 0 && (ce += Math.PI);
40769
- let ve = R + w + (ge > 0 ? 0 : 1) | 0, ye = _, Ae = _, Ee = 0, Re = 0;
40769
+ let ve = R + w + (ge > 0 ? 0 : 1) | 0, ye = _, Ae = _, Ee = 0, Le = 0;
40770
40770
  const Ue = Math.abs(he), ze = [], Oe = [];
40771
40771
  let Ze = x, lt = Ze;
40772
40772
  const wt = () => bl(lt, Ze, Ae, Ue - Ee + 1, N, V, J, Q.canonical);
40773
- for (; Ee + Re <= Ue; ) {
40773
+ for (; Ee + Le <= Ue; ) {
40774
40774
  if (ve += ge, ve < R || ve >= P)
40775
40775
  return null;
40776
40776
  if (Ae = ye, lt = Ze, ze.push(Ae), G && Oe.push(lt), Ze = new i.P(O.getx(ve), O.gety(ve)), ye = j[ve], !ye) {
40777
40777
  const Et = Jm(Ze, Q.canonical, N, J, V);
40778
40778
  ye = Et[3] > 0 ? j[ve] = Et : wt();
40779
40779
  }
40780
- Ee += Re, Re = i.a6.vec3.distance(Ae, ye);
40780
+ Ee += Le, Le = i.a6.vec3.distance(Ae, ye);
40781
40781
  }
40782
- X && V && (j[ve] && (ye = wt(), Re = i.a6.vec3.distance(Ae, ye)), j[ve] = ye);
40783
- const at = (Ue - Ee) / Re, Mt = Ze.sub(lt)._mult(at)._add(lt), Ye = i.a6.vec3.sub([], ye, Ae), _t = i.a6.vec3.scaleAndAdd([], Ae, Ye, at);
40782
+ X && V && (j[ve] && (ye = wt(), Le = i.a6.vec3.distance(Ae, ye)), j[ve] = ye);
40783
+ const at = (Ue - Ee) / Le, Mt = Ze.sub(lt)._mult(at)._add(lt), Ye = i.a6.vec3.sub([], ye, Ae), _t = i.a6.vec3.scaleAndAdd([], Ae, Ye, at);
40784
40784
  let ht = [0, 0, 1], At = Ye[0], kt = Ye[1];
40785
40785
  if (te && (ht = J.upVector(Q.canonical, Mt.x, Mt.y), ht[0] !== 0 || ht[1] !== 0 || ht[2] !== 1)) {
40786
40786
  const Et = [ht[2], 0, -ht[0]], pn = i.a6.vec3.cross([], ht, Et);
@@ -40810,8 +40810,8 @@ Use an identity property function instead: ${G}.`)];
40810
40810
  let O = f.projectedAnchorX, N = f.projectedAnchorY, j = f.projectedAnchorZ;
40811
40811
  const V = f.elevation, G = f.tileID, X = n.getProjection();
40812
40812
  if (V && G) {
40813
- const [ye, Ae, Ee] = X.upVector(G.canonical, f.tileAnchorX, f.tileAnchorY), Re = X.upVectorScale(G.canonical, this.transform.center.lat, this.transform.worldSize).metersToTile;
40814
- O += ye * V * Re, N += Ae * V * Re, j += Ee * V * Re;
40813
+ const [ye, Ae, Ee] = X.upVector(G.canonical, f.tileAnchorX, f.tileAnchorY), Le = X.upVectorScale(G.canonical, this.transform.center.lat, this.transform.worldSize).metersToTile;
40814
+ O += ye * V * Le, N += Ae * V * Le, j += Ee * V * Le;
40815
40815
  }
40816
40816
  const J = this.projectAndGetPerspectiveRatio(R, O, N, j, f.tileID, X.name === "globe" || !!V || this.transform.pitch > 0, X), Q = w * J.perspectiveRatio, te = (f.x1 * a + _.x - f.padding) * Q + J.point.x, he = (f.y1 * a + _.y - f.padding) * Q + J.point.y, ge = (f.x2 * a + _.x + f.padding) * Q + J.point.x, ce = (f.y2 * a + _.y + f.padding) * Q + J.point.y, ve = J.perspectiveRatio <= 0.55 || J.occluded;
40817
40817
  return !this.isInsideGrid(te, he, ge, ce) || !x && this.grid.hitTest(te, he, ge, ce, P) || ve ? { box: [], offscreen: !1, occluded: J.occluded } : { box: [te, he, ge, ce], offscreen: this.isOffscreen(te, he, ge, ce), occluded: !1 };
@@ -40823,9 +40823,9 @@ Use an identity property function instead: ${G}.`)];
40823
40823
  const [Mt, Ye, _t] = ge(ce);
40824
40824
  ve += Mt, ye += Ye, Ae += _t;
40825
40825
  }
40826
- const Ee = he.name === "globe", Re = this.projectAndGetPerspectiveRatio(R, ve, ye, Ae, J, Ee || !!te || this.transform.pitch > 0, he), { perspectiveRatio: Ue } = Re, ze = (j ? w / Ue : w * Ue) / i.bq, Oe = Ki(ve, ye, Ae, P), Ze = Re.signedDistanceFromCamera > 0 ? xl(ze, x, f.lineOffsetX * ze, f.lineOffsetY * ze, !1, Oe, ce, f, _, P, {}, te && !j ? ge : null, j && !!te, he, J, j) : null;
40826
+ const Ee = he.name === "globe", Le = this.projectAndGetPerspectiveRatio(R, ve, ye, Ae, J, Ee || !!te || this.transform.pitch > 0, he), { perspectiveRatio: Ue } = Le, ze = (j ? w / Ue : w * Ue) / i.bq, Oe = Ki(ve, ye, Ae, P), Ze = Le.signedDistanceFromCamera > 0 ? xl(ze, x, f.lineOffsetX * ze, f.lineOffsetY * ze, !1, Oe, ce, f, _, P, {}, te && !j ? ge : null, j && !!te, he, J, j) : null;
40827
40827
  let lt = !1, wt = !1, at = !0;
40828
- if (Ze && !Re.occluded) {
40828
+ if (Ze && !Le.occluded) {
40829
40829
  const Mt = 0.5 * G * Ue + X, Ye = new i.P(-100, -100), _t = new i.P(this.screenRightBoundary, this.screenBottomBoundary), ht = new Ss(), { first: At, last: kt } = Ze, xt = At.path.length;
40830
40830
  let Et = [];
40831
40831
  for (let Jt = xt - 1; Jt >= 1; Jt--)
@@ -40854,7 +40854,7 @@ Use an identity property function instead: ${G}.`)];
40854
40854
  }
40855
40855
  }
40856
40856
  }
40857
- return { circles: !N && lt || !wt ? [] : Q, offscreen: at, collisionDetected: lt, occluded: Re.occluded };
40857
+ return { circles: !N && lt || !wt ? [] : Q, offscreen: at, collisionDetected: lt, occluded: Le.occluded };
40858
40858
  }
40859
40859
  queryRenderedSymbols(n) {
40860
40860
  if (n.length === 0 || this.grid.keysLength() === 0 && this.ignoredGrid.keysLength() === 0)
@@ -40992,29 +40992,29 @@ Use an identity property function instead: ${G}.`)];
40992
40992
  }
40993
40993
  let Ee = null;
40994
40994
  ge && f.latestFeatureIndex && (Ee = { unwrappedTileID: V, dynamicFilter: ge, dynamicFilterNeedsFeature: ce }), this.retainedQueryData[x.bucketInstanceId] = new uf(x.bucketInstanceId, w, x.sourceLayerIndex, x.index, f.tileID);
40995
- const Re = { bucket: x, layout: R, paint: P, posMatrix: G, textLabelPlaneMatrix: ye, labelToScreenMatrix: Ae, clippingData: Ee, scale: N, textPixelRatio: j, holdingForFade: f.holdingForFade(), collisionBoxArray: O, partiallyEvaluatedTextSize: i.bj(x.textSizeData, this.transform.zoom), partiallyEvaluatedIconSize: i.bj(x.iconSizeData, this.transform.zoom), collisionGroup: this.collisionGroups.get(x.sourceID), latestFeatureIndex: f.latestFeatureIndex };
40995
+ const Le = { bucket: x, layout: R, paint: P, posMatrix: G, textLabelPlaneMatrix: ye, labelToScreenMatrix: Ae, clippingData: Ee, scale: N, textPixelRatio: j, holdingForFade: f.holdingForFade(), collisionBoxArray: O, partiallyEvaluatedTextSize: i.bj(x.textSizeData, this.transform.zoom), partiallyEvaluatedIconSize: i.bj(x.iconSizeData, this.transform.zoom), collisionGroup: this.collisionGroups.get(x.sourceID), latestFeatureIndex: f.latestFeatureIndex };
40996
40996
  if (_)
40997
40997
  for (const Ue of x.sortKeyRanges) {
40998
40998
  const { sortKey: ze, symbolInstanceStart: Oe, symbolInstanceEnd: Ze } = Ue;
40999
- n.push({ sortKey: ze, symbolInstanceStart: Oe, symbolInstanceEnd: Ze, parameters: Re });
40999
+ n.push({ sortKey: ze, symbolInstanceStart: Oe, symbolInstanceEnd: Ze, parameters: Le });
41000
41000
  }
41001
41001
  else
41002
- n.push({ symbolInstanceStart: 0, symbolInstanceEnd: x.symbolInstances.length, parameters: Re });
41002
+ n.push({ symbolInstanceStart: 0, symbolInstanceEnd: x.symbolInstances.length, parameters: Le });
41003
41003
  }
41004
41004
  attemptAnchorPlacement(n, a, f, _, x, w, R, P, O, N, j, V, G, X, J, Q, te, he) {
41005
41005
  const { textOffset0: ge, textOffset1: ce, crossTileID: ve } = V, ye = [ge, ce], Ae = Sl(n, f, _, ye, x), Ee = this.collisionIndex.placeCollisionBox(X, x, a, Oa(Ae.x, Ae.y, w, R, this.transform.angle), j, P, O, N.predicate);
41006
41006
  if (Q) {
41007
- const Re = X.getSymbolInstanceIconSize(he, this.transform.zoom, V.placedIconSymbolIndex);
41008
- if (this.collisionIndex.placeCollisionBox(X, Re, Q, Oa(Ae.x, Ae.y, w, R, this.transform.angle), j, P, O, N.predicate).box.length === 0)
41007
+ const Le = X.getSymbolInstanceIconSize(he, this.transform.zoom, V.placedIconSymbolIndex);
41008
+ if (this.collisionIndex.placeCollisionBox(X, Le, Q, Oa(Ae.x, Ae.y, w, R, this.transform.angle), j, P, O, N.predicate).box.length === 0)
41009
41009
  return;
41010
41010
  }
41011
41011
  if (Ee.box.length > 0) {
41012
- let Re;
41013
- return this.prevPlacement && this.prevPlacement.variableOffsets[ve] && this.prevPlacement.placements[ve] && this.prevPlacement.placements[ve].text && (Re = this.prevPlacement.variableOffsets[ve].anchor), this.variableOffsets[ve] = { textOffset: ye, width: f, height: _, anchor: n, textScale: x, prevAnchor: Re }, this.markUsedJustification(X, n, V, J), X.allowVerticalPlacement && (this.markUsedOrientation(X, J, V), this.placedOrientations[ve] = J), { shift: Ae, placedGlyphBoxes: Ee };
41012
+ let Le;
41013
+ return this.prevPlacement && this.prevPlacement.variableOffsets[ve] && this.prevPlacement.placements[ve] && this.prevPlacement.placements[ve].text && (Le = this.prevPlacement.variableOffsets[ve].anchor), this.variableOffsets[ve] = { textOffset: ye, width: f, height: _, anchor: n, textScale: x, prevAnchor: Le }, this.markUsedJustification(X, n, V, J), X.allowVerticalPlacement && (this.markUsedOrientation(X, J, V), this.placedOrientations[ve] = J), { shift: Ae, placedGlyphBoxes: Ee };
41014
41014
  }
41015
41015
  }
41016
41016
  placeLayerBucketPart(n, a, f, _) {
41017
- const { bucket: x, layout: w, paint: R, posMatrix: P, textLabelPlaneMatrix: O, labelToScreenMatrix: N, clippingData: j, textPixelRatio: V, holdingForFade: G, collisionBoxArray: X, partiallyEvaluatedTextSize: J, partiallyEvaluatedIconSize: Q, collisionGroup: te, latestFeatureIndex: he } = n.parameters, ge = w.get("text-optional"), ce = w.get("icon-optional"), ve = w.get("text-allow-overlap"), ye = w.get("icon-allow-overlap"), Ae = w.get("text-rotation-alignment") === "map", Ee = w.get("text-pitch-alignment") === "map", Re = w.get("symbol-z-elevate"), Ue = R.get("symbol-z-offset"), ze = R.get("symbol-elevation-reference") === "sea";
41017
+ const { bucket: x, layout: w, paint: R, posMatrix: P, textLabelPlaneMatrix: O, labelToScreenMatrix: N, clippingData: j, textPixelRatio: V, holdingForFade: G, collisionBoxArray: X, partiallyEvaluatedTextSize: J, partiallyEvaluatedIconSize: Q, collisionGroup: te, latestFeatureIndex: he } = n.parameters, ge = w.get("text-optional"), ce = w.get("icon-optional"), ve = w.get("text-allow-overlap"), ye = w.get("icon-allow-overlap"), Ae = w.get("text-rotation-alignment") === "map", Ee = w.get("text-pitch-alignment") === "map", Le = w.get("symbol-z-elevate"), Ue = R.get("symbol-z-offset"), ze = R.get("symbol-elevation-reference") === "sea";
41018
41018
  this.transform.setProjection(x.projection);
41019
41019
  let Oe = ve && (ye || !x.hasIconData() || ce), Ze = ye && (ve || !x.hasTextData() || ge);
41020
41020
  const lt = !Ue.isConstant();
@@ -41120,7 +41120,7 @@ Use an identity property function instead: ${G}.`)];
41120
41120
  const Rr = x.projection.name !== "globe";
41121
41121
  Oe = Oe && (Rr || !Ft), Ze = Ze && (Rr || !Jt), this.placements[_t] = new ss(xt || Oe, Et || Ze, pn || x.justReloaded), a.add(_t);
41122
41122
  };
41123
- if (Re && this.buildingIndex && (this.buildingIndex.updateZOffset(x, this.retainedQueryData[x.bucketInstanceId].tileID), x.updateZOffset()), x.sortFeaturesByY) {
41123
+ if (Le && this.buildingIndex && (this.buildingIndex.updateZOffset(x, this.retainedQueryData[x.bucketInstanceId].tileID), x.updateZOffset()), x.sortFeaturesByY) {
41124
41124
  const at = x.getSortedSymbolIndexes(this.transform.angle);
41125
41125
  for (let Mt = at.length - 1; Mt >= 0; --Mt) {
41126
41126
  const Ye = at[Mt];
@@ -41184,18 +41184,18 @@ Use an identity property function instead: ${G}.`)];
41184
41184
  n.hasTextData() && n.text.opacityVertexArray.clear(), n.hasIconData() && n.icon.opacityVertexArray.clear(), n.hasIconCollisionBoxData() && n.iconCollisionBox.collisionVertexArray.clear(), n.hasTextCollisionBoxData() && n.textCollisionBox.collisionVertexArray.clear();
41185
41185
  const O = n.layers[0].layout, N = n.layers[0].paint, j = !!n.layers[0].dynamicFilter(), V = new ao(null, 0, !1, !1, !0), G = O.get("text-allow-overlap"), X = O.get("icon-allow-overlap"), J = O.get("text-variable-anchor"), Q = O.get("text-rotation-alignment") === "map", te = O.get("text-pitch-alignment") === "map", he = N.get("symbol-z-offset"), ge = N.get("symbol-elevation-reference") === "sea", ce = !he.isConstant(), ve = new ao(null, 0, G && (X || !n.hasIconData() || O.get("icon-optional")), X && (G || !n.hasTextData() || O.get("text-optional")), !0);
41186
41186
  !n.collisionArrays && _ && (n.hasIconCollisionBoxData() || n.hasTextCollisionBoxData()) && n.deserializeCollisionBoxes(_);
41187
- const ye = (Ee, Re, Ue) => {
41188
- for (let ze = 0; ze < Re / 4; ze++)
41187
+ const ye = (Ee, Le, Ue) => {
41188
+ for (let ze = 0; ze < Le / 4; ze++)
41189
41189
  Ee.opacityVertexArray.emplaceBack(Ue);
41190
41190
  };
41191
41191
  let Ae = 0;
41192
41192
  w && n.updateReplacement(R, w);
41193
41193
  for (let Ee = 0; Ee < n.symbolInstances.length; Ee++) {
41194
- const Re = n.symbolInstances.get(Ee), { numHorizontalGlyphVertices: Ue, numVerticalGlyphVertices: ze, crossTileID: Oe, numIconVertices: Ze, tileAnchorX: lt, tileAnchorY: wt } = Re;
41194
+ const Le = n.symbolInstances.get(Ee), { numHorizontalGlyphVertices: Ue, numVerticalGlyphVertices: ze, crossTileID: Oe, numIconVertices: Ze, tileAnchorX: lt, tileAnchorY: wt } = Le;
41195
41195
  let at = null;
41196
- if (Re && ce) {
41196
+ if (Le && ce) {
41197
41197
  const Ft = this.retainedQueryData[n.bucketInstanceId];
41198
- at = f.latestFeatureIndex.loadFeature({ featureIndex: Re.featureIndex, bucketIndex: Ft.bucketIndex, sourceLayerIndex: Ft.sourceLayerIndex, layoutVertexArrayOffset: 0 });
41198
+ at = f.latestFeatureIndex.loadFeature({ featureIndex: Le.featureIndex, bucketIndex: Ft.bucketIndex, sourceLayerIndex: Ft.sourceLayerIndex, layoutVertexArrayOffset: 0 });
41199
41199
  }
41200
41200
  const Mt = he.evaluate(at, {}), Ye = a.has(Oe);
41201
41201
  let _t = this.opacities[Oe];
@@ -41214,16 +41214,16 @@ Use an identity property function instead: ${G}.`)];
41214
41214
  if (ht) {
41215
41215
  const Ft = pn ? El : Tl(_t.text);
41216
41216
  ye(n.text, Ue, xt ? El : Ft), ye(n.text, ze, Et ? El : Ft);
41217
- const Jt = _t.text.isHidden(), { leftJustifiedTextSymbolIndex: Cn, centerJustifiedTextSymbolIndex: cn, rightJustifiedTextSymbolIndex: bn, verticalPlacedTextSymbolIndex: Zn } = Re, Vn = n.text.placedSymbolArray, Mr = Jt || xt ? 1 : 0;
41217
+ const Jt = _t.text.isHidden(), { leftJustifiedTextSymbolIndex: Cn, centerJustifiedTextSymbolIndex: cn, rightJustifiedTextSymbolIndex: bn, verticalPlacedTextSymbolIndex: Zn } = Le, Vn = n.text.placedSymbolArray, Mr = Jt || xt ? 1 : 0;
41218
41218
  Cn >= 0 && (Vn.get(Cn).hidden = Mr), cn >= 0 && (Vn.get(cn).hidden = Mr), bn >= 0 && (Vn.get(bn).hidden = Mr), Zn >= 0 && (Vn.get(Zn).hidden = Jt || Et ? 1 : 0);
41219
41219
  const Dr = this.variableOffsets[Oe];
41220
- Dr && this.markUsedJustification(n, Dr.anchor, Re, kt);
41220
+ Dr && this.markUsedJustification(n, Dr.anchor, Le, kt);
41221
41221
  const qr = this.placedOrientations[Oe];
41222
- qr && (this.markUsedJustification(n, "left", Re, qr), this.markUsedOrientation(n, qr, Re));
41222
+ qr && (this.markUsedJustification(n, "left", Le, qr), this.markUsedOrientation(n, qr, Le));
41223
41223
  }
41224
41224
  if (At) {
41225
- const Ft = pn ? El : Tl(_t.icon), { placedIconSymbolIndex: Jt, verticalPlacedIconSymbolIndex: Cn } = Re, cn = n.icon.placedSymbolArray, bn = _t.icon.isHidden() ? 1 : 0;
41226
- Jt >= 0 && (ye(n.icon, Ze, xt ? El : Ft), cn.get(Jt).hidden = bn), Cn >= 0 && (ye(n.icon, Re.numVerticalIconVertices, Et ? El : Ft), cn.get(Cn).hidden = bn);
41225
+ const Ft = pn ? El : Tl(_t.icon), { placedIconSymbolIndex: Jt, verticalPlacedIconSymbolIndex: Cn } = Le, cn = n.icon.placedSymbolArray, bn = _t.icon.isHidden() ? 1 : 0;
41226
+ Jt >= 0 && (ye(n.icon, Ze, xt ? El : Ft), cn.get(Jt).hidden = bn), Cn >= 0 && (ye(n.icon, Le.numVerticalIconVertices, Et ? El : Ft), cn.get(Cn).hidden = bn);
41227
41227
  }
41228
41228
  if (n.hasIconCollisionBoxData() || n.hasTextCollisionBoxData()) {
41229
41229
  const Ft = n.collisionArrays[Ee];
@@ -41237,7 +41237,7 @@ Use an identity property function instead: ${G}.`)];
41237
41237
  j && (Cn = !_t.clipped), Ft.textBox && Hu(n.textCollisionBox.collisionVertexArray, _t.text.placed, !Cn || xt, Mt, ge, Jt.x, Jt.y), Ft.verticalTextBox && Hu(n.textCollisionBox.collisionVertexArray, _t.text.placed, !Cn || Et, Mt, ge, Jt.x, Jt.y);
41238
41238
  }
41239
41239
  const cn = Cn && !!(!Et && Ft.verticalIconBox);
41240
- Ft.iconBox && Hu(n.iconCollisionBox.collisionVertexArray, _t.icon.placed, cn, Mt, ge, Re.hasIconTextFit ? Jt.x : 0, Re.hasIconTextFit ? Jt.y : 0), Ft.verticalIconBox && Hu(n.iconCollisionBox.collisionVertexArray, _t.icon.placed, !cn, Mt, ge, Re.hasIconTextFit ? Jt.x : 0, Re.hasIconTextFit ? Jt.y : 0);
41240
+ Ft.iconBox && Hu(n.iconCollisionBox.collisionVertexArray, _t.icon.placed, cn, Mt, ge, Le.hasIconTextFit ? Jt.x : 0, Le.hasIconTextFit ? Jt.y : 0), Ft.verticalIconBox && Hu(n.iconCollisionBox.collisionVertexArray, _t.icon.placed, !cn, Mt, ge, Le.hasIconTextFit ? Jt.x : 0, Le.hasIconTextFit ? Jt.y : 0);
41241
41241
  }
41242
41242
  }
41243
41243
  }
@@ -41923,7 +41923,7 @@ Use an identity property function instead: ${G}.`)];
41923
41923
  const ye = n.isTerrainDEM ? -ve : this._elevation ? this._elevation.getMinElevationBelowMSL() : 0, Ae = this.projection.isReprojectedInTileSpace ? i.bO(this) : 1, Ee = (Ye) => {
41924
41924
  const ht = new i.a5(Ye.x + 25e-6, Ye.y, Ye.z), At = new i.a5(Ye.x, Ye.y + 25e-6, Ye.z), kt = Ye.toLngLat(), xt = ht.toLngLat(), Et = At.toLngLat(), pn = this.locationCoordinate(kt), Ft = this.locationCoordinate(xt), Jt = this.locationCoordinate(Et), Cn = Math.hypot(Ft.x - pn.x, Ft.y - pn.y), cn = Math.hypot(Jt.x - pn.x, Jt.y - pn.y);
41925
41925
  return Math.sqrt(Cn * cn) * Ae / 25e-6;
41926
- }, Re = (Ye) => {
41926
+ }, Le = (Ye) => {
41927
41927
  const _t = ve, ht = ye;
41928
41928
  return { aabb: i.bR(this, O, 0, 0, 0, Ye, ht, _t, this.projection), zoom: 0, x: 0, y: 0, minZ: ht, maxZ: _t, wrap: Ye, fullyVisible: !1 };
41929
41929
  }, Ue = [];
@@ -41976,8 +41976,8 @@ Use an identity property function instead: ${G}.`)];
41976
41976
  };
41977
41977
  if (this.renderWorldCopies)
41978
41978
  for (let Ye = 1; Ye <= 3; Ye++)
41979
- Ue.push(Re(-Ye)), Ue.push(Re(Ye));
41980
- for (Ue.push(Re(0)); Ue.length > 0; ) {
41979
+ Ue.push(Le(-Ye)), Ue.push(Le(Ye));
41980
+ for (Ue.push(Le(0)); Ue.length > 0; ) {
41981
41981
  const Ye = Ue.pop(), _t = Ye.x, ht = Ye.y;
41982
41982
  let At = Ye.fullyVisible;
41983
41983
  const kt = () => this.projection.name === "globe" && (Ye.y === 0 || Ye.y === (1 << Ye.zoom) - 1);
@@ -42160,8 +42160,8 @@ Use an identity property function instead: ${G}.`)];
42160
42160
  const { top: n, left: a } = this._edgeInsets, f = this.height - this._edgeInsets.bottom, _ = this.width - this._edgeInsets.right, x = this.pointLocation3D(new i.P(a, n)), w = this.pointLocation3D(new i.P(_, n)), R = this.pointLocation3D(new i.P(_, f)), P = this.pointLocation3D(new i.P(a, f));
42161
42161
  let O = Math.min(x.lng, w.lng, R.lng, P.lng), N = Math.max(x.lng, w.lng, R.lng, P.lng), j = Math.min(x.lat, w.lat, R.lat, P.lat), V = Math.max(x.lat, w.lat, R.lat, P.lat);
42162
42162
  const G = Math.pow(2, -this.zoom) / 16 * 270, X = this.projection.name === "globe" ? 1 : 4, J = (Q, te, he, ge, ce) => {
42163
- const ve = (Q + he) / 2, ye = (te + ge) / 2, Ae = new i.P(ve, ye), { lng: Ee, lat: Re } = this.pointLocation3D(Ae), Ue = Math.max(0, O - Ee, j - Re, Ee - N, Re - V);
42164
- O = Math.min(O, Ee), N = Math.max(N, Ee), j = Math.min(j, Re), V = Math.max(V, Re), (ce < X || Ue > G) && (J(Q, te, ve, ye, ce + 1), J(ve, ye, he, ge, ce + 1));
42163
+ const ve = (Q + he) / 2, ye = (te + ge) / 2, Ae = new i.P(ve, ye), { lng: Ee, lat: Le } = this.pointLocation3D(Ae), Ue = Math.max(0, O - Ee, j - Le, Ee - N, Le - V);
42164
+ O = Math.min(O, Ee), N = Math.max(N, Ee), j = Math.min(j, Le), V = Math.max(V, Le), (ce < X || Ue > G) && (J(Q, te, ve, ye, ce + 1), J(ve, ye, he, ge, ce + 1));
42165
42165
  };
42166
42166
  if (J(a, n, _, n, 1), J(_, n, _, f, 1), J(_, f, a, f, 1), J(a, f, a, n, 1), this.projection.name === "globe") {
42167
42167
  const [Q, te] = i.bV(this);
@@ -42309,8 +42309,8 @@ Use an identity property function instead: ${G}.`)];
42309
42309
  let R;
42310
42310
  const P = this._camera.getCameraToClipPerspective(this._fov, this.width / this.height, this._nearZ, this._farZ);
42311
42311
  if (P[8] = 2 * -n.x / this.width, P[9] = 2 * n.y / this.height, this.isOrthographic) {
42312
- let Re = 0.5 * this.height / Math.tan(this._fov / 2) * 1 * Math.tan(0.5 * this._fov), Ue = Re * this.aspect, ze = -Ue, Oe = -Re;
42313
- Ue -= n.x, ze -= n.x, Re += n.y, Oe += n.y, R = this._camera.getCameraToClipOrthographic(ze, Ue, Oe, Re, this._nearZ, this._farZ), ((Ze, lt, wt, at) => {
42312
+ let Le = 0.5 * this.height / Math.tan(this._fov / 2) * 1 * Math.tan(0.5 * this._fov), Ue = Le * this.aspect, ze = -Ue, Oe = -Le;
42313
+ Ue -= n.x, ze -= n.x, Le += n.y, Oe += n.y, R = this._camera.getCameraToClipOrthographic(ze, Ue, Oe, Le, this._nearZ, this._farZ), ((Ze, lt, wt, at) => {
42314
42314
  for (let Mt = 0; Mt < 16; Mt++)
42315
42315
  Ze[Mt] = Il(lt[Mt], wt[Mt], at);
42316
42316
  })(R, R, P, Ml(this.pitch >= 15 ? 1 : this.pitch / 15));
@@ -42319,13 +42319,13 @@ Use an identity property function instead: ${G}.`)];
42319
42319
  const O = i.a6.mat4.mul([], P, w);
42320
42320
  let N = i.a6.mat4.mul([], R, w);
42321
42321
  if (this.projection.isReprojectedInTileSpace) {
42322
- const Re = this.locationCoordinate(this.center), Ue = i.a6.mat4.identity([]);
42323
- i.a6.mat4.translate(Ue, Ue, [Re.x * this.worldSize, Re.y * this.worldSize, 0]), i.a6.mat4.multiply(Ue, Ue, i.bY(this)), i.a6.mat4.translate(Ue, Ue, [-Re.x * this.worldSize, -Re.y * this.worldSize, 0]), i.a6.mat4.multiply(N, N, Ue), i.a6.mat4.multiply(O, O, Ue), this.inverseAdjustmentMatrix = i.bZ(this);
42322
+ const Le = this.locationCoordinate(this.center), Ue = i.a6.mat4.identity([]);
42323
+ i.a6.mat4.translate(Ue, Ue, [Le.x * this.worldSize, Le.y * this.worldSize, 0]), i.a6.mat4.multiply(Ue, Ue, i.bY(this)), i.a6.mat4.translate(Ue, Ue, [-Le.x * this.worldSize, -Le.y * this.worldSize, 0]), i.a6.mat4.multiply(N, N, Ue), i.a6.mat4.multiply(O, O, Ue), this.inverseAdjustmentMatrix = i.bZ(this);
42324
42324
  } else
42325
42325
  this.inverseAdjustmentMatrix = [1, 0, 0, 1];
42326
42326
  if (this.mercatorMatrix = i.a6.mat4.scale([], N, [this.worldSize, this.worldSize, this.worldSize / x, 1]), this.projMatrix = N, this.invProjMatrix = i.a6.mat4.invert(new Float64Array(16), this.projMatrix), a) {
42327
- const Re = this._camera.getCameraToClipPerspective(this._fov, this.width / this.height, this._nearZ, 1 / 0);
42328
- Re[8] = 2 * -n.x / this.width, Re[9] = 2 * n.y / this.height, this.expandedFarZProjMatrix = i.a6.mat4.mul([], Re, w);
42327
+ const Le = this._camera.getCameraToClipPerspective(this._fov, this.width / this.height, this._nearZ, 1 / 0);
42328
+ Le[8] = 2 * -n.x / this.width, Le[9] = 2 * n.y / this.height, this.expandedFarZProjMatrix = i.a6.mat4.mul([], Le, w);
42329
42329
  } else
42330
42330
  this.expandedFarZProjMatrix = this.projMatrix;
42331
42331
  const j = i.a6.mat4.invert([], R);
@@ -42341,8 +42341,8 @@ Use an identity property function instead: ${G}.`)];
42341
42341
  throw new Error("failed to invert matrix");
42342
42342
  if (this.pixelMatrixInverse = N, this.projection.name === "globe" || this.mercatorFromTransition) {
42343
42343
  this.globeMatrix = i.b$(this);
42344
- const Re = [this.globeMatrix[12], this.globeMatrix[13], this.globeMatrix[14]];
42345
- this.globeCenterInViewSpace = i.a6.vec3.transformMat4(Re, Re, w), this.globeRadius = this.worldSize / 2 / Math.PI - 1;
42344
+ const Le = [this.globeMatrix[12], this.globeMatrix[13], this.globeMatrix[14]];
42345
+ this.globeCenterInViewSpace = i.a6.vec3.transformMat4(Le, Le, w), this.globeRadius = this.worldSize / 2 / Math.PI - 1;
42346
42346
  } else
42347
42347
  this.globeMatrix = N;
42348
42348
  this._projMatrixCache = {}, this._alignedProjMatrixCache = {}, this._pixelsToTileUnitsCache = {}, this._expandedProjMatrixCache = {};
@@ -42701,9 +42701,9 @@ Use an identity property function instead: ${G}.`)];
42701
42701
  }
42702
42702
  var ye;
42703
42703
  ce *= _ / (_ - 1);
42704
- const Ae = Math.acos(n[2]), Ee = Math.atan2(-n[0], -n[1]), Re = new Ba();
42705
- Re.position = ge, Re.setPitchBearing(Ae, Ee);
42706
- const Ue = Re.getWorldToCamera(P, te), ze = ce * P, Oe = Math.min(d._mercatorZfromZoom(17) * P * -2, -2 * ze), Ze = Re.getCameraToClipOrthographic(-ze, ze, -ze, ze, Oe, (ze + x * te) / n[2]), lt = new Float64Array(16);
42704
+ const Ae = Math.acos(n[2]), Ee = Math.atan2(-n[0], -n[1]), Le = new Ba();
42705
+ Le.position = ge, Le.setPitchBearing(Ae, Ee);
42706
+ const Ue = Le.getWorldToCamera(P, te), ze = ce * P, Oe = Math.min(d._mercatorZfromZoom(17) * P * -2, -2 * ze), Ze = Le.getCameraToClipOrthographic(-ze, ze, -ze, ze, Oe, (ze + x * te) / n[2]), lt = new Float64Array(16);
42707
42707
  i.a6.mat4.multiply(lt, Ze, Ue);
42708
42708
  const wt = i.a6.vec3.fromValues(Math.floor(1e6 * ge[0]) / 1e6 * P, Math.floor(1e6 * ge[1]) / 1e6 * P, 0), at = 0.5 * _, Mt = [0, 0, 0];
42709
42709
  i.a6.vec3.transformMat4(Mt, wt, lt), i.a6.vec3.scale(Mt, Mt, at);
@@ -43299,9 +43299,9 @@ Use an identity property function instead: ${G}.`)];
43299
43299
  Ae = Q[ve], ge.hasOwnProperty(Ae) ? ye++ : (J.push({ command: ur.removeImport, args: [Ae] }), ce.splice(ce.indexOf(Ae, ye), 1));
43300
43300
  for (ve = 0, ye = 0; ve < te.length; ve++)
43301
43301
  Ae = te[te.length - 1 - ve], ce[ce.length - 1 - ve] !== Ae && (he.hasOwnProperty(Ae) ? (J.push({ command: ur.removeImport, args: [Ae] }), ce.splice(ce.lastIndexOf(Ae, ce.length - ye), 1)) : ye++, Ee = ce[ce.length - ve], J.push({ command: ur.addImport, args: [ge[Ae], Ee] }), ce.splice(ce.length - ve, 0, Ae));
43302
- for (const Re of X) {
43303
- const Ue = he[Re.id];
43304
- Ue && !i.bh(Ue, Re) && J.push({ command: ur.updateImport, args: [Re.id, Re] });
43302
+ for (const Le of X) {
43303
+ const Ue = he[Le.id];
43304
+ Ue && !i.bh(Ue, Le) && J.push({ command: ur.updateImport, args: [Le.id, Le] });
43305
43305
  }
43306
43306
  }(w.imports, R.imports, P), i.bh(w.transition, R.transition) || P.push({ command: ur.setTransition, args: [R.transition] }), i.bh(w.light, R.light) || P.push({ command: ur.setLight, args: [R.light] }), i.bh(w.fog, R.fog) || P.push({ command: ur.setFog, args: [R.fog] }), i.bh(w.projection, R.projection) || P.push({ command: ur.setProjection, args: [R.projection] }), i.bh(w.lights, R.lights) || P.push({ command: ur.setLights, args: [R.lights] }), i.bh(w.camera, R.camera) || P.push({ command: ur.setCamera, args: [R.camera] }), !i.bh(w["color-theme"], R["color-theme"]))
43307
43307
  return [{ command: ur.setStyle, args: [R] }];
@@ -43325,18 +43325,18 @@ Use an identity property function instead: ${G}.`)];
43325
43325
  V && O[V.source] && (P.push({ command: ur.setTerrain, args: [void 0] }), V = void 0), P = P.concat(N), i.bh(V, R.terrain) || P.push({ command: ur.setTerrain, args: [R.terrain] }), function(G, X, J) {
43326
43326
  X = X || [];
43327
43327
  const Q = (G = G || []).map(Da), te = X.map(Da), he = G.reduce(yl, {}), ge = X.reduce(yl, {}), ce = Q.slice(), ve = /* @__PURE__ */ Object.create(null);
43328
- let ye, Ae, Ee, Re, Ue, ze, Oe;
43328
+ let ye, Ae, Ee, Le, Ue, ze, Oe;
43329
43329
  for (ye = 0, Ae = 0; ye < Q.length; ye++)
43330
43330
  Ee = Q[ye], ge.hasOwnProperty(Ee) ? Ae++ : (J.push({ command: ur.removeLayer, args: [Ee] }), ce.splice(ce.indexOf(Ee, Ae), 1));
43331
43331
  for (ye = 0, Ae = 0; ye < te.length; ye++)
43332
43332
  Ee = te[te.length - 1 - ye], ce[ce.length - 1 - ye] !== Ee && (he.hasOwnProperty(Ee) ? (J.push({ command: ur.removeLayer, args: [Ee] }), ce.splice(ce.lastIndexOf(Ee, ce.length - Ae), 1)) : Ae++, ze = ce[ce.length - ye], J.push({ command: ur.addLayer, args: [ge[Ee], ze] }), ce.splice(ce.length - ye, 0, Ee), ve[Ee] = !0);
43333
43333
  for (ye = 0; ye < te.length; ye++)
43334
- if (Ee = te[ye], Re = he[Ee], Ue = ge[Ee], !ve[Ee] && !i.bh(Re, Ue))
43335
- if (i.bh(Re.source, Ue.source) && i.bh(Re["source-layer"], Ue["source-layer"]) && i.bh(Re.type, Ue.type)) {
43336
- for (Oe in kc(Re.layout, Ue.layout, J, Ee, null, ur.setLayoutProperty), kc(Re.paint, Ue.paint, J, Ee, null, ur.setPaintProperty), i.bh(Re.slot, Ue.slot) || J.push({ command: ur.setSlot, args: [Ee, Ue.slot] }), i.bh(Re.filter, Ue.filter) || J.push({ command: ur.setFilter, args: [Ee, Ue.filter] }), i.bh(Re.minzoom, Ue.minzoom) && i.bh(Re.maxzoom, Ue.maxzoom) || J.push({ command: ur.setLayerZoomRange, args: [Ee, Ue.minzoom, Ue.maxzoom] }), Re)
43337
- Re.hasOwnProperty(Oe) && Oe !== "layout" && Oe !== "paint" && Oe !== "filter" && Oe !== "metadata" && Oe !== "minzoom" && Oe !== "maxzoom" && Oe !== "slot" && (Oe.indexOf("paint.") === 0 ? kc(Re[Oe], Ue[Oe], J, Ee, Oe.slice(6), ur.setPaintProperty) : i.bh(Re[Oe], Ue[Oe]) || J.push({ command: ur.setLayerProperty, args: [Ee, Oe, Ue[Oe]] }));
43334
+ if (Ee = te[ye], Le = he[Ee], Ue = ge[Ee], !ve[Ee] && !i.bh(Le, Ue))
43335
+ if (i.bh(Le.source, Ue.source) && i.bh(Le["source-layer"], Ue["source-layer"]) && i.bh(Le.type, Ue.type)) {
43336
+ for (Oe in kc(Le.layout, Ue.layout, J, Ee, null, ur.setLayoutProperty), kc(Le.paint, Ue.paint, J, Ee, null, ur.setPaintProperty), i.bh(Le.slot, Ue.slot) || J.push({ command: ur.setSlot, args: [Ee, Ue.slot] }), i.bh(Le.filter, Ue.filter) || J.push({ command: ur.setFilter, args: [Ee, Ue.filter] }), i.bh(Le.minzoom, Ue.minzoom) && i.bh(Le.maxzoom, Ue.maxzoom) || J.push({ command: ur.setLayerZoomRange, args: [Ee, Ue.minzoom, Ue.maxzoom] }), Le)
43337
+ Le.hasOwnProperty(Oe) && Oe !== "layout" && Oe !== "paint" && Oe !== "filter" && Oe !== "metadata" && Oe !== "minzoom" && Oe !== "maxzoom" && Oe !== "slot" && (Oe.indexOf("paint.") === 0 ? kc(Le[Oe], Ue[Oe], J, Ee, Oe.slice(6), ur.setPaintProperty) : i.bh(Le[Oe], Ue[Oe]) || J.push({ command: ur.setLayerProperty, args: [Ee, Oe, Ue[Oe]] }));
43338
43338
  for (Oe in Ue)
43339
- Ue.hasOwnProperty(Oe) && !Re.hasOwnProperty(Oe) && Oe !== "layout" && Oe !== "paint" && Oe !== "filter" && Oe !== "metadata" && Oe !== "minzoom" && Oe !== "maxzoom" && Oe !== "slot" && (Oe.indexOf("paint.") === 0 ? kc(Re[Oe], Ue[Oe], J, Ee, Oe.slice(6), ur.setPaintProperty) : i.bh(Re[Oe], Ue[Oe]) || J.push({ command: ur.setLayerProperty, args: [Ee, Oe, Ue[Oe]] }));
43339
+ Ue.hasOwnProperty(Oe) && !Le.hasOwnProperty(Oe) && Oe !== "layout" && Oe !== "paint" && Oe !== "filter" && Oe !== "metadata" && Oe !== "minzoom" && Oe !== "maxzoom" && Oe !== "slot" && (Oe.indexOf("paint.") === 0 ? kc(Le[Oe], Ue[Oe], J, Ee, Oe.slice(6), ur.setPaintProperty) : i.bh(Le[Oe], Ue[Oe]) || J.push({ command: ur.setLayerProperty, args: [Ee, Oe, Ue[Oe]] }));
43340
43340
  } else
43341
43341
  J.push({ command: ur.removeLayer, args: [Ee] }), ze = ce[ce.lastIndexOf(Ee) + 1], J.push({ command: ur.addLayer, args: [Ue, ze] });
43342
43342
  }(j, R.layers, P);
@@ -43848,13 +43848,13 @@ Use an identity property function instead: ${G}.`)];
43848
43848
  const ce = ge.featureIndex.lookupSymbolFeatures(te[ge.bucketInstanceId], N, ge.bucketIndex, ge.sourceLayerIndex, G.filter, G.layers, G.availableImages, O);
43849
43849
  for (const ve in ce) {
43850
43850
  const ye = Q[ve] = Q[ve] || [], Ae = ce[ve];
43851
- Ae.sort((Ee, Re) => {
43851
+ Ae.sort((Ee, Le) => {
43852
43852
  const Ue = ge.featureSortOrder;
43853
43853
  if (Ue) {
43854
43854
  const ze = Ue.indexOf(Ee.featureIndex);
43855
- return Ue.indexOf(Re.featureIndex) - ze;
43855
+ return Ue.indexOf(Le.featureIndex) - ze;
43856
43856
  }
43857
- return Re.featureIndex - Ee.featureIndex;
43857
+ return Le.featureIndex - Ee.featureIndex;
43858
43858
  });
43859
43859
  for (const Ee of Ae)
43860
43860
  ye.push(Ee);
@@ -46488,8 +46488,8 @@ uniform ${j} ${V} u_${G};
46488
46488
  const Ue = Q.style.directionalLight.properties.get("direction"), ze = i.c7(Ue.x, Ue.y, Ue.z);
46489
46489
  Ee = i.bB(ze[1]);
46490
46490
  }
46491
- const Re = !Q.options.moving;
46492
- return { u_matrix: ge || Q.transform.calculateProjMatrix(te.tileID.toUnwrapped(), Re), u_image: 0, u_latrange: Bc(0, te.tileID), u_light: [he.paint.get("hillshade-exaggeration"), Ee], u_shadow: ce.toRenderColor(he.lut), u_highlight: ve.toRenderColor(he.lut), u_emissive_strength: Ae, u_accent: ye.toRenderColor(he.lut) };
46491
+ const Le = !Q.options.moving;
46492
+ return { u_matrix: ge || Q.transform.calculateProjMatrix(te.tileID.toUnwrapped(), Le), u_image: 0, u_latrange: Bc(0, te.tileID), u_light: [he.paint.get("hillshade-exaggeration"), Ee], u_shadow: ce.toRenderColor(he.lut), u_highlight: ve.toRenderColor(he.lut), u_emissive_strength: Ae, u_accent: ye.toRenderColor(he.lut) };
46493
46493
  })(d, a, f, d.terrain ? n.projMatrix : null);
46494
46494
  d.uploadCommonUniforms(R, j, n.toUnwrapped());
46495
46495
  const { tileBoundsBuffer: G, tileBoundsIndexBuffer: X, tileBoundsSegments: J } = d.getTileBoundsBuffers(a);
@@ -47224,7 +47224,7 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
47224
47224
  Q = O.getOrCreateProgram("globeRaster", { defines: wt, overrideFog: at }), te = lt;
47225
47225
  }, ve = O.colorModeForRenderPass(), ye = new xn(J.LEQUAL, xn.ReadWrite, O.depthRangeFor3D);
47226
47226
  Ol.update(G);
47227
- const Ae = i.cy(he), Ee = [i.am(he.center.lng), i.at(he.center.lat)], Re = O.globeSharedBuffers, Ue = [he.width * i.q.devicePixelRatio, he.height * i.q.devicePixelRatio], ze = Float32Array.from(he.globeMatrix), Oe = { useDenormalizedUpVectorScale: !0 };
47227
+ const Ae = i.cy(he), Ee = [i.am(he.center.lng), i.at(he.center.lat)], Le = O.globeSharedBuffers, Ue = [he.width * i.q.devicePixelRatio, he.height * i.q.devicePixelRatio], ze = Float32Array.from(he.globeMatrix), Oe = { useDenormalizedUpVectorScale: !0 };
47228
47228
  {
47229
47229
  const Ze = O.transform, lt = Tg(Ze.zoom, N.exaggeration(), N.sourceCache._source.tileSize);
47230
47230
  te = -1;
@@ -47235,17 +47235,17 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
47235
47235
  const At = Ol.getMorphValuesForProxy(at.key), kt = At ? 1 : 0;
47236
47236
  At && i.C(Oe, { morphing: { srcDemTile: At.from, dstDemTile: At.to, phase: i.cw(At.phase) } });
47237
47237
  const xt = i.cz(at.canonical), Et = i.cA(xt.getCenter().lat), pn = i.cB(at.canonical, xt, Et, Ze.worldSize / Ze._pixelsPerMercatorPixel), Ft = i.b5(i.cC(at.canonical)), Jt = bg(Ze.expandedFarZProjMatrix, ze, Ae, Ft, i.a9(Ze.zoom), Ee, Ze.frustumCorners.TL, Ze.frustumCorners.TR, Ze.frustumCorners.BR, Ze.frustumCorners.BL, Ze.globeCenterInViewSpace, Ze.globeRadius, Ue, lt, Ze._farZ, pn);
47238
- if (ce(at, kt), Q && (N.setupElevationDraw(Mt, Q, Oe), O.uploadCommonUniforms(X, Q, at.toUnwrapped()), Re)) {
47239
- const [Cn, cn, bn] = Re.getGridBuffers(Et, lt !== 0);
47238
+ if (ce(at, kt), Q && (N.setupElevationDraw(Mt, Q, Oe), O.uploadCommonUniforms(X, Q, at.toUnwrapped()), Le)) {
47239
+ const [Cn, cn, bn] = Le.getGridBuffers(Et, lt !== 0);
47240
47240
  Q.draw(O, wt, ye, Ye, ve, Mn.backCCW, Jt, "globe_raster", Cn, cn, bn);
47241
47241
  }
47242
47242
  }
47243
47243
  }
47244
- if (Re && (O.renderDefaultNorthPole || O.renderDefaultSouthPole)) {
47244
+ if (Le && (O.renderDefaultNorthPole || O.renderDefaultSouthPole)) {
47245
47245
  const Ze = ["GLOBE_POLES", "PROJECTION_GLOBE_VIEW"];
47246
47246
  ge && Ze.push("CUSTOM_ANTIALIASING"), Q = O.getOrCreateProgram("globeRaster", { defines: Ze });
47247
47247
  for (const lt of V) {
47248
- const { x: wt, y: at, z: Mt } = lt.canonical, Ye = at === 0, _t = at === (1 << Mt) - 1, [ht, At, kt, xt] = Re.getPoleBuffers(Mt, !1);
47248
+ const { x: wt, y: at, z: Mt } = lt.canonical, Ye = at === 0, _t = at === (1 << Mt) - 1, [ht, At, kt, xt] = Le.getPoleBuffers(Mt, !1);
47249
47249
  if (xt && (Ye || _t)) {
47250
47250
  const Et = j.getTile(lt);
47251
47251
  X.activeTexture.set(J.TEXTURE0), Et.texture && Et.texture.bind(J.LINEAR, J.CLAMP_TO_EDGE);
@@ -47276,15 +47276,15 @@ This leads to lower resolution of hillshade. For full hillshade resolution but h
47276
47276
  V = -1;
47277
47277
  const ve = N.TRIANGLES, [ye, Ae] = [x.gridIndexBuffer, x.gridSegments];
47278
47278
  for (const Ee of R) {
47279
- const Re = w.getTile(Ee), Ue = Dn.disabled, ze = x.prevTerrainTileForTile[Ee.key], Oe = x.terrainTileForTile[Ee.key];
47280
- wg(ze, Oe) && Ol.newMorphing(Ee.key, ze, Oe, P, 250), O.activeTexture.set(N.TEXTURE0), Re.texture && Re.texture.bind(N.LINEAR, N.CLAMP_TO_EDGE);
47279
+ const Le = w.getTile(Ee), Ue = Dn.disabled, ze = x.prevTerrainTileForTile[Ee.key], Oe = x.terrainTileForTile[Ee.key];
47280
+ wg(ze, Oe) && Ol.newMorphing(Ee.key, ze, Oe, P, 250), O.activeTexture.set(N.TEXTURE0), Le.texture && Le.texture.bind(N.LINEAR, N.CLAMP_TO_EDGE);
47281
47281
  const Ze = Ol.getMorphValuesForProxy(Ee.key), lt = Ze ? 1 : 0;
47282
47282
  let wt;
47283
47283
  Ze && (wt = { morphing: { srcDemTile: Ze.from, dstDemTile: Ze.to, phase: i.cw(Ze.phase) } });
47284
47284
  const at = T1(Ee.projMatrix, Lf(Ee.canonical, he.renderWorldCopies) ? ge / 10 : ge, ce);
47285
47285
  if (J(lt), !j)
47286
47286
  continue;
47287
- x.setupElevationDraw(Re, j, wt);
47287
+ x.setupElevationDraw(Le, j, wt);
47288
47288
  const Mt = Ee.toUnwrapped();
47289
47289
  G && G.setupShadows(Mt, j), _.uploadCommonUniforms(O, j, Mt, null, X), j.draw(_, ve, te, Ue, Q, Mn.backCCW, at, "terrain_raster", x.gridBuffer, ye, Ae);
47290
47290
  }
@@ -47986,14 +47986,14 @@ ${f.vertexSource}`;
47986
47986
  if (!Ae)
47987
47987
  continue;
47988
47988
  const Ee = Qm(ve, Ae, O);
47989
- let Re = Ee;
47990
- _[0] === 0 && _[1] === 0 || (Re = d.translatePosMatrix(Ee, ye, _, x));
47989
+ let Le = Ee;
47990
+ _[0] === 0 && _[1] === 0 || (Le = d.translatePosMatrix(Ee, ye, _, x));
47991
47991
  const Ue = w ? Ae.textCollisionBox : Ae.iconCollisionBox, ze = Ae.collisionCircleArray;
47992
47992
  if (ze.length > 0) {
47993
- const Oe = i.a6.mat4.create(), Ze = Re;
47993
+ const Oe = i.a6.mat4.create(), Ze = Le;
47994
47994
  i.a6.mat4.mul(Oe, Ae.placementInvProjMatrix, O.glCoordMatrix), i.a6.mat4.mul(Oe, Oe, Ae.placementViewportMatrix), j.push({ circleArray: ze, circleOffset: G, transform: Ze, invTransform: Oe, projection: Ae.getProjection() }), V += ze.length / 4, G = V;
47995
47995
  }
47996
- Ue && (d.terrain && d.terrain.setupElevationDraw(ye, N), N.draw(d, P.LINES, xn.disabled, Dn.disabled, d.colorModeForRenderPass(), Mn.disabled, E1(Re, O, ye, Ae.getProjection()), a.id, Ue.layoutVertexBuffer, Ue.indexBuffer, Ue.segments, null, O.zoom, null, [Ue.collisionVertexBuffer, Ue.collisionVertexBufferExt]));
47996
+ Ue && (d.terrain && d.terrain.setupElevationDraw(ye, N), N.draw(d, P.LINES, xn.disabled, Dn.disabled, d.colorModeForRenderPass(), Mn.disabled, E1(Le, O, ye, Ae.getProjection()), a.id, Ue.layoutVertexBuffer, Ue.indexBuffer, Ue.segments, null, O.zoom, null, [Ue.collisionVertexBuffer, Ue.collisionVertexBufferExt]));
47997
47997
  }
47998
47998
  if (!w || !j.length)
47999
47999
  return;
@@ -48002,8 +48002,8 @@ ${f.vertexSource}`;
48002
48002
  let Q = 0;
48003
48003
  for (const ce of j)
48004
48004
  for (let ve = 0; ve < ce.circleArray.length / 4; ve++) {
48005
- const ye = 4 * ve, Ae = ce.circleArray[ye + 0], Ee = ce.circleArray[ye + 1], Re = ce.circleArray[ye + 2], Ue = ce.circleArray[ye + 3];
48006
- J.emplace(Q++, Ae, Ee, Re, Ue, 0), J.emplace(Q++, Ae, Ee, Re, Ue, 1), J.emplace(Q++, Ae, Ee, Re, Ue, 2), J.emplace(Q++, Ae, Ee, Re, Ue, 3);
48005
+ const ye = 4 * ve, Ae = ce.circleArray[ye + 0], Ee = ce.circleArray[ye + 1], Le = ce.circleArray[ye + 2], Ue = ce.circleArray[ye + 3];
48006
+ J.emplace(Q++, Ae, Ee, Le, Ue, 0), J.emplace(Q++, Ae, Ee, Le, Ue, 1), J.emplace(Q++, Ae, Ee, Le, Ue, 2), J.emplace(Q++, Ae, Ee, Le, Ue, 3);
48007
48007
  }
48008
48008
  (!xh || xh.length < 2 * V) && (xh = function(ce) {
48009
48009
  const ve = 2 * ce, ye = new i.aO();
@@ -48039,17 +48039,17 @@ ${f.vertexSource}`;
48039
48039
  for (let ge = 0; ge < j.length; ge++) {
48040
48040
  const ce = j.get(ge), { tileAnchorX: ve, tileAnchorY: ye, numGlyphs: Ae } = ce, Ee = ce.hidden || !ce.crossTileID || d.allowVerticalPlacement && !ce.placedOrientation ? null : f[ce.crossTileID];
48041
48041
  if (Ee) {
48042
- let Re = 0, Ue = 0, ze = 0;
48042
+ let Le = 0, Ue = 0, ze = 0;
48043
48043
  if (te) {
48044
48044
  const ht = te ? te.getAtTileOffset(R, ve, ye) : 0, [At, kt, xt] = J.upVector(R.canonical, ve, ye);
48045
- Re = ht * At * he, Ue = ht * kt * he, ze = ht * xt * he;
48045
+ Le = ht * At * he, Ue = ht * kt * he, ze = ht * xt * he;
48046
48046
  }
48047
- let [Oe, Ze, lt, wt] = Ki(ce.projectedAnchorX + Re, ce.projectedAnchorY + Ue, ce.projectedAnchorZ + ze, a ? Q : w);
48047
+ let [Oe, Ze, lt, wt] = Ki(ce.projectedAnchorX + Le, ce.projectedAnchorY + Ue, ce.projectedAnchorZ + ze, a ? Q : w);
48048
48048
  const at = cr(x.getCameraToCenterDistance(J), wt);
48049
48049
  let Mt = _.evaluateSizeForFeature(d.textSizeData, O, ce) * at / i.bq;
48050
48050
  a && (Mt *= d.tilePixelRatio / P);
48051
48051
  const Ye = M1(Ee, Mt);
48052
- a ? ({ x: Oe, y: Ze, z: lt } = J.projectTilePoint(ve + Ye.x, ye + Ye.y, R.canonical), [Oe, Ze, lt] = Ki(Oe + Re, Ze + Ue, lt + ze, w)) : (n && Ye._rotate(-x.angle), Oe += Ye.x, Ze += Ye.y, lt = 0);
48052
+ a ? ({ x: Oe, y: Ze, z: lt } = J.projectTilePoint(ve + Ye.x, ye + Ye.y, R.canonical), [Oe, Ze, lt] = Ki(Oe + Le, Ze + Ue, lt + ze, w)) : (n && Ye._rotate(-x.angle), Oe += Ye.x, Ze += Ye.y, lt = 0);
48053
48053
  const _t = d.allowVerticalPlacement && ce.placedOrientation === i.bk.vertical ? Math.PI / 2 : 0;
48054
48054
  for (let ht = 0; ht < Ae; ht++)
48055
48055
  i.bn(V, Oe, Ze, lt, _t);
@@ -48065,9 +48065,9 @@ ${f.vertexSource}`;
48065
48065
  if (ve.hidden || !Ae)
48066
48066
  Ts(ye, G);
48067
48067
  else {
48068
- const { x: Ee, y: Re, z: Ue, angle: ze } = Ae;
48068
+ const { x: Ee, y: Le, z: Ue, angle: ze } = Ae;
48069
48069
  for (let Oe = 0; Oe < ye; Oe++)
48070
- i.bn(G, Ee, Re, Ue, ze);
48070
+ i.bn(G, Ee, Le, Ue, ze);
48071
48071
  }
48072
48072
  }
48073
48073
  d.icon.dynamicLayoutVertexBuffer.updateData(G);
@@ -48075,26 +48075,26 @@ ${f.vertexSource}`;
48075
48075
  d.text.dynamicLayoutVertexBuffer.updateData(V);
48076
48076
  }
48077
48077
  function Zc(d, n, a, f, _, x, w = {}) {
48078
- const R = a.paint.get("icon-translate"), P = a.paint.get("text-translate"), O = a.paint.get("icon-translate-anchor"), N = a.paint.get("text-translate-anchor"), j = a.layout.get("icon-rotation-alignment"), V = a.layout.get("text-rotation-alignment"), G = a.layout.get("icon-pitch-alignment"), X = a.layout.get("text-pitch-alignment"), J = a.layout.get("icon-keep-upright"), Q = a.layout.get("text-keep-upright"), te = a.paint.get("icon-color-saturation"), he = a.paint.get("icon-color-contrast"), ge = a.paint.get("icon-color-brightness-min"), ce = a.paint.get("icon-color-brightness-max"), ve = a.paint.get("symbol-elevation-reference") === "sea", ye = a.paint.get("text-occlusion-opacity").constantOr(0), Ae = d.context, Ee = Ae.gl, Re = d.transform, Ue = j === "map", ze = V === "map", Oe = G === "map", Ze = X === "map", lt = a.layout.get("symbol-sort-key").constantOr(1) !== void 0;
48078
+ const R = a.paint.get("icon-translate"), P = a.paint.get("text-translate"), O = a.paint.get("icon-translate-anchor"), N = a.paint.get("text-translate-anchor"), j = a.layout.get("icon-rotation-alignment"), V = a.layout.get("text-rotation-alignment"), G = a.layout.get("icon-pitch-alignment"), X = a.layout.get("text-pitch-alignment"), J = a.layout.get("icon-keep-upright"), Q = a.layout.get("text-keep-upright"), te = a.paint.get("icon-color-saturation"), he = a.paint.get("icon-color-contrast"), ge = a.paint.get("icon-color-brightness-min"), ce = a.paint.get("icon-color-brightness-max"), ve = a.paint.get("symbol-elevation-reference") === "sea", ye = a.paint.get("text-occlusion-opacity").constantOr(0), Ae = d.context, Ee = Ae.gl, Le = d.transform, Ue = j === "map", ze = V === "map", Oe = G === "map", Ze = X === "map", lt = a.layout.get("symbol-sort-key").constantOr(1) !== void 0;
48079
48079
  let wt = !1;
48080
- const at = d.depthModeForSublayer(0, xn.ReadOnly), Mt = [i.am(Re.center.lng), i.at(Re.center.lat)], Ye = a.layout.get("text-variable-anchor"), _t = Re.projection.name === "globe", ht = [], At = [0, -1, 0];
48080
+ const at = d.depthModeForSublayer(0, xn.ReadOnly), Mt = [i.am(Le.center.lng), i.at(Le.center.lat)], Ye = a.layout.get("text-variable-anchor"), _t = Le.projection.name === "globe", ht = [], At = [0, -1, 0];
48081
48081
  for (const kt of f) {
48082
48082
  const xt = n.getTile(kt), Et = xt.getBucket(a);
48083
48083
  if (!Et || Et.projection.name === "mercator" && _t || Et.fullyClipped)
48084
48084
  continue;
48085
- const pn = Et.projection.name === "globe", Ft = pn ? i.a9(Re.zoom) : 0, Jt = oa(kt, Et.getProjection(), Re), Cn = Re.calculatePixelsToTileUnitsMatrix(xt), cn = Ye && Et.hasTextData(), bn = Et.hasIconTextFit() && cn && Et.hasIconData(), Zn = Et.getProjection().createInversionMatrix(Re, kt.canonical), Vn = (Rr) => {
48086
- Re.depthOcclusionForSymbolsAndCircles && (a.hasInitialOcclusionOpacityProperties || d.terrain) && (Rr.push("DEPTH_D24"), Rr.push("DEPTH_OCCLUSION"));
48085
+ const pn = Et.projection.name === "globe", Ft = pn ? i.a9(Le.zoom) : 0, Jt = oa(kt, Et.getProjection(), Le), Cn = Le.calculatePixelsToTileUnitsMatrix(xt), cn = Ye && Et.hasTextData(), bn = Et.hasIconTextFit() && cn && Et.hasIconData(), Zn = Et.getProjection().createInversionMatrix(Le, kt.canonical), Vn = (Rr) => {
48086
+ Le.depthOcclusionForSymbolsAndCircles && (a.hasInitialOcclusionOpacityProperties || d.terrain) && (Rr.push("DEPTH_D24"), Rr.push("DEPTH_OCCLUSION"));
48087
48087
  }, Mr = () => {
48088
48088
  const Rr = Ue && a.layout.get("symbol-placement") !== "point", Gn = [];
48089
48089
  Vn(Gn);
48090
48090
  const gr = Rr || bn, Er = a.paint.get("icon-image-cross-fade").constantOr(0);
48091
48091
  d.terrainRenderModeElevated() && Oe && Gn.push("PITCH_WITH_MAP_TERRAIN"), pn && (Gn.push("PROJECTION_GLOBE_VIEW"), gr && Gn.push("PROJECTED_POS_ON_VIEWPORT")), Er > 0 && Gn.push("ICON_TRANSITION"), Et.icon.zOffsetVertexBuffer && Gn.push("Z_OFFSET"), te === 0 && he === 0 && ge === 0 && ce === 1 || Gn.push("COLOR_ADJUSTMENT"), Et.sdfIcons && Gn.push("RENDER_SDF");
48092
- const ui = Et.icon.programConfigurations.get(a.id), vi = d.getOrCreateProgram("symbol", { config: ui, defines: Gn }), ar = xt.imageAtlasTexture ? xt.imageAtlasTexture.size : [0, 0], Li = Et.iconSizeData, zi = i.bj(Li, Re.zoom), ki = Oe || Re.pitch !== 0, Vr = ir(Jt, xt.tileID.canonical, Oe, Ue, Re, Et.getProjection(), Cn), co = So(Jt, xt.tileID.canonical, Oe, Ue, Re, Et.getProjection(), Cn), uo = d.translatePosMatrix(co, xt, R, O, !0), Zo = d.translatePosMatrix(Jt, xt, R, O), Fo = gr ? Wc : Vr, Io = Ue && !Oe && !Rr;
48092
+ const ui = Et.icon.programConfigurations.get(a.id), vi = d.getOrCreateProgram("symbol", { config: ui, defines: Gn }), ar = xt.imageAtlasTexture ? xt.imageAtlasTexture.size : [0, 0], Li = Et.iconSizeData, zi = i.bj(Li, Le.zoom), ki = Oe || Le.pitch !== 0, Vr = ir(Jt, xt.tileID.canonical, Oe, Ue, Le, Et.getProjection(), Cn), co = So(Jt, xt.tileID.canonical, Oe, Ue, Le, Et.getProjection(), Cn), uo = d.translatePosMatrix(co, xt, R, O, !0), Zo = d.translatePosMatrix(Jt, xt, R, O), Fo = gr ? Wc : Vr, Io = Ue && !Oe && !Rr;
48093
48093
  let Yo = At;
48094
- !_t && !Re.mercatorFromTransition || Ue || (Yo = jf(Re));
48094
+ !_t && !Le.mercatorFromTransition || Ue || (Yo = jf(Le));
48095
48095
  const qs = pn ? Yo : At, ga = a.getColorAdjustmentMatrix(te, he, ge, ce), As = Ff(Li.kind, zi, Io, Oe, d, Zo, Fo, uo, ve, !1, ar, [0, 0], !0, kt, Ft, Mt, Zn, qs, Et.getProjection(), ga, Er), Zl = xt.imageAtlasTexture ? xt.imageAtlasTexture : null, Yl = a.layout.get("icon-size").constantOr(0) !== 1 || Et.iconsNeedLinear, Bh = Et.sdfIcons || d.options.rotating || d.options.zooming || Yl || ki ? Ee.LINEAR : Ee.NEAREST, Xl = Et.sdfIcons && a.paint.get("icon-halo-width").constantOr(1) !== 0, $r = d.terrain && Oe && Rr ? i.a6.mat4.invert(i.a6.mat4.create(), Vr) : Wc;
48096
48096
  if (Rr && Et.icon) {
48097
- const Wa = Re.elevation, G1 = Wa ? Wa.getAtTileOffsetFunc(kt, Re.center.lat, Re.worldSize, Et.getProjection()) : null, Qg = or(Jt, xt.tileID.canonical, Oe, Ue, Re, Et.getProjection(), Cn);
48097
+ const Wa = Le.elevation, G1 = Wa ? Wa.getAtTileOffsetFunc(kt, Le.center.lat, Le.worldSize, Et.getProjection()) : null, Qg = or(Jt, xt.tileID.canonical, Oe, Ue, Le, Et.getProjection(), Cn);
48098
48098
  vl(Et, Jt, d, !1, Qg, co, Oe, J, G1, kt);
48099
48099
  }
48100
48100
  return { program: vi, buffers: Et.icon, uniformValues: As, atlasTexture: Zl, atlasTextureIcon: null, atlasInterpolation: Bh, atlasInterpolationIcon: null, isSDF: Et.sdfIcons, hasHalo: Xl, tile: xt, labelPlaneMatrixInv: $r };
@@ -48104,13 +48104,13 @@ ${f.vertexSource}`;
48104
48104
  const Er = Et.text.programConfigurations.get(a.id), ui = d.getOrCreateProgram("symbol", { config: Er, defines: Gn });
48105
48105
  let vi, ar = [0, 0], Li = null;
48106
48106
  const zi = Et.textSizeData;
48107
- Et.iconsInText && (ar = xt.imageAtlasTexture ? xt.imageAtlasTexture.size : [0, 0], Li = xt.imageAtlasTexture ? xt.imageAtlasTexture : null, vi = Ze || Re.pitch !== 0 || d.options.rotating || d.options.zooming || zi.kind === "composite" || zi.kind === "camera" ? Ee.LINEAR : Ee.NEAREST);
48108
- const ki = xt.glyphAtlasTexture ? xt.glyphAtlasTexture.size : [0, 0], Vr = i.bj(zi, Re.zoom), co = ir(Jt, xt.tileID.canonical, Ze, ze, Re, Et.getProjection(), Cn), uo = So(Jt, xt.tileID.canonical, Ze, ze, Re, Et.getProjection(), Cn), Zo = d.translatePosMatrix(uo, xt, P, N, !0), Fo = d.translatePosMatrix(Jt, xt, P, N), Io = gr ? Wc : co, Yo = ze && !Ze && !Rr;
48107
+ Et.iconsInText && (ar = xt.imageAtlasTexture ? xt.imageAtlasTexture.size : [0, 0], Li = xt.imageAtlasTexture ? xt.imageAtlasTexture : null, vi = Ze || Le.pitch !== 0 || d.options.rotating || d.options.zooming || zi.kind === "composite" || zi.kind === "camera" ? Ee.LINEAR : Ee.NEAREST);
48108
+ const ki = xt.glyphAtlasTexture ? xt.glyphAtlasTexture.size : [0, 0], Vr = i.bj(zi, Le.zoom), co = ir(Jt, xt.tileID.canonical, Ze, ze, Le, Et.getProjection(), Cn), uo = So(Jt, xt.tileID.canonical, Ze, ze, Le, Et.getProjection(), Cn), Zo = d.translatePosMatrix(uo, xt, P, N, !0), Fo = d.translatePosMatrix(Jt, xt, P, N), Io = gr ? Wc : co, Yo = ze && !Ze && !Rr;
48109
48109
  let qs = At;
48110
- !_t && !Re.mercatorFromTransition || ze || (qs = jf(Re));
48110
+ !_t && !Le.mercatorFromTransition || ze || (qs = jf(Le));
48111
48111
  const ga = Ff(zi.kind, Vr, Yo, Ze, d, Fo, Io, Zo, ve, !0, ki, ar, !0, kt, Ft, Mt, Zn, pn ? qs : At, Et.getProjection(), ye), As = xt.glyphAtlasTexture ? xt.glyphAtlasTexture : null, Zl = Ee.LINEAR, Yl = a.paint.get("text-halo-width").constantOr(1) !== 0, Bh = d.terrain && Ze && Rr ? i.a6.mat4.invert(i.a6.mat4.create(), co) : Wc;
48112
48112
  if (Rr && Et.text) {
48113
- const Xl = Re.elevation, $r = Xl ? Xl.getAtTileOffsetFunc(kt, Re.center.lat, Re.worldSize, Et.getProjection()) : null, Wa = or(Jt, xt.tileID.canonical, Ze, ze, Re, Et.getProjection(), Cn);
48113
+ const Xl = Le.elevation, $r = Xl ? Xl.getAtTileOffsetFunc(kt, Le.center.lat, Le.worldSize, Et.getProjection()) : null, Wa = or(Jt, xt.tileID.canonical, Ze, ze, Le, Et.getProjection(), Cn);
48114
48114
  vl(Et, Jt, d, !0, Wa, uo, Ze, Q, $r, kt);
48115
48115
  }
48116
48116
  return { program: ui, buffers: Et.text, uniformValues: ga, atlasTexture: As, atlasTextureIcon: Li, atlasInterpolation: Zl, atlasInterpolationIcon: vi, isSDF: !0, hasHalo: Yl, tile: xt, labelPlaneMatrixInv: Bh };
@@ -48129,7 +48129,7 @@ ${f.vertexSource}`;
48129
48129
  for (const kt of ht) {
48130
48130
  const xt = kt.state;
48131
48131
  if (xt)
48132
- if (d.terrain ? d.terrain.setupElevationDraw(xt.tile, xt.program, { useDepthForOcclusion: Re.depthOcclusionForSymbolsAndCircles, labelPlaneMatrixInv: xt.labelPlaneMatrixInv }) : d.setupDepthForOcclusion(Re.depthOcclusionForSymbolsAndCircles, xt.program), Ae.activeTexture.set(Ee.TEXTURE0), xt.atlasTexture && xt.atlasTexture.bind(xt.atlasInterpolation, Ee.CLAMP_TO_EDGE, !0), xt.atlasTextureIcon && (Ae.activeTexture.set(Ee.TEXTURE1), xt.atlasTextureIcon && xt.atlasTextureIcon.bind(xt.atlasInterpolationIcon, Ee.CLAMP_TO_EDGE, !0)), d.uploadCommonLightUniforms(d.context, xt.program), xt.hasHalo) {
48132
+ if (d.terrain ? d.terrain.setupElevationDraw(xt.tile, xt.program, { useDepthForOcclusion: Le.depthOcclusionForSymbolsAndCircles, labelPlaneMatrixInv: xt.labelPlaneMatrixInv }) : d.setupDepthForOcclusion(Le.depthOcclusionForSymbolsAndCircles, xt.program), Ae.activeTexture.set(Ee.TEXTURE0), xt.atlasTexture && xt.atlasTexture.bind(xt.atlasInterpolation, Ee.CLAMP_TO_EDGE, !0), xt.atlasTextureIcon && (Ae.activeTexture.set(Ee.TEXTURE1), xt.atlasTextureIcon && xt.atlasTextureIcon.bind(xt.atlasInterpolationIcon, Ee.CLAMP_TO_EDGE, !0)), d.uploadCommonLightUniforms(d.context, xt.program), xt.hasHalo) {
48133
48133
  const Et = xt.uniformValues;
48134
48134
  Et.u_is_halo = 1, Yc(xt.buffers, kt.segments, a, d, xt.program, at, _, x, Et, 2), Et.u_is_halo = 0;
48135
48135
  } else {
@@ -48164,21 +48164,21 @@ ${f.vertexSource}`;
48164
48164
  const Ue = he.imageAtlas.patternPositions[Ae.toString()];
48165
48165
  Ue && ce.setConstantPatternPositions(Ue);
48166
48166
  }
48167
- const Ee = d.translatePosMatrix(te.projMatrix, he, a.paint.get("fill-translate"), a.paint.get("fill-translate-anchor")), Re = a.paint.get("fill-emissive-strength");
48167
+ const Ee = d.translatePosMatrix(te.projMatrix, he, a.paint.get("fill-translate"), a.paint.get("fill-translate-anchor")), Le = a.paint.get("fill-emissive-strength");
48168
48168
  if (w) {
48169
48169
  J = ge.indexBuffer2, Q = ge.segments2;
48170
48170
  const Ue = d.terrain && d.terrain.renderingToTexture ? d.terrain.drapeBufferSize : [R.drawingBufferWidth, R.drawingBufferHeight];
48171
- X = G === "fillOutlinePattern" && j ? Hc(Ee, Re, d, he, Ue) : Ag(Ee, Re, Ue);
48171
+ X = G === "fillOutlinePattern" && j ? Hc(Ee, Le, d, he, Ue) : Ag(Ee, Le, Ue);
48172
48172
  } else
48173
- J = ge.indexBuffer, Q = ge.segments, X = j ? Mg(Ee, Re, d, he) : fh(Ee, Re);
48173
+ J = ge.indexBuffer, Q = ge.segments, X = j ? Mg(Ee, Le, d, he) : fh(Ee, Le);
48174
48174
  d.uploadCommonUniforms(d.context, ye, te.toUnwrapped()), ye.draw(d, V, _, O ? N : d.stencilModeForClipping(te), x, Mn.disabled, X, a.id, ge.layoutVertexBuffer, J, Q, a.paint, d.transform.zoom, ce, void 0);
48175
48175
  }
48176
48176
  }
48177
48177
  function Bl(d, n, a, f, _, x, w, R) {
48178
48178
  a.resetLayerRenderingStats(d);
48179
- const P = d.context, O = P.gl, N = d.transform, j = a.paint.get("fill-extrusion-pattern"), V = j.constantOr(1), G = a.paint.get("fill-extrusion-opacity"), X = d.style.enable3dLights(), J = a.paint.get(X && !V ? "fill-extrusion-ambient-occlusion-wall-radius" : "fill-extrusion-ambient-occlusion-radius"), Q = [a.paint.get("fill-extrusion-ambient-occlusion-intensity"), J], te = a.layout.get("fill-extrusion-edge-radius"), he = te > 0 && !a.paint.get("fill-extrusion-rounded-roof"), ge = he ? 0 : te, ce = N.projection.name === "globe" ? i.c_() : 0, ve = N.projection.name === "globe", ye = ve ? i.a9(N.zoom) : 0, Ae = [i.am(N.center.lng), i.at(N.center.lat)], Ee = a.paint.get("fill-extrusion-flood-light-color").toRenderColor(a.lut).toArray01().slice(0, 3), Re = a.paint.get("fill-extrusion-flood-light-intensity"), Ue = a.paint.get("fill-extrusion-vertical-scale"), ze = a.paint.get("fill-extrusion-line-width").constantOr(1) !== 0, Oe = Us(d, a.paint.get("fill-extrusion-cutoff-fade-range")), Ze = [];
48179
+ const P = d.context, O = P.gl, N = d.transform, j = a.paint.get("fill-extrusion-pattern"), V = j.constantOr(1), G = a.paint.get("fill-extrusion-opacity"), X = d.style.enable3dLights(), J = a.paint.get(X && !V ? "fill-extrusion-ambient-occlusion-wall-radius" : "fill-extrusion-ambient-occlusion-radius"), Q = [a.paint.get("fill-extrusion-ambient-occlusion-intensity"), J], te = a.layout.get("fill-extrusion-edge-radius"), he = te > 0 && !a.paint.get("fill-extrusion-rounded-roof"), ge = he ? 0 : te, ce = N.projection.name === "globe" ? i.c_() : 0, ve = N.projection.name === "globe", ye = ve ? i.a9(N.zoom) : 0, Ae = [i.am(N.center.lng), i.at(N.center.lat)], Ee = a.paint.get("fill-extrusion-flood-light-color").toRenderColor(a.lut).toArray01().slice(0, 3), Le = a.paint.get("fill-extrusion-flood-light-intensity"), Ue = a.paint.get("fill-extrusion-vertical-scale"), ze = a.paint.get("fill-extrusion-line-width").constantOr(1) !== 0, Oe = Us(d, a.paint.get("fill-extrusion-cutoff-fade-range")), Ze = [];
48180
48180
  let lt;
48181
- ve && Ze.push("PROJECTION_GLOBE_VIEW"), Q[0] > 0 && Ze.push("FAUX_AO"), he && Ze.push("ZERO_ROOF_RADIUS"), R && Ze.push("HAS_CENTROID"), Re > 0 && Ze.push("FLOOD_LIGHT"), Oe.shouldRenderCutoff && Ze.push("RENDER_CUTOFF"), ze && Ze.push("RENDER_WALL_MODE");
48181
+ ve && Ze.push("PROJECTION_GLOBE_VIEW"), Q[0] > 0 && Ze.push("FAUX_AO"), he && Ze.push("ZERO_ROOF_RADIUS"), R && Ze.push("HAS_CENTROID"), Le > 0 && Ze.push("FLOOD_LIGHT"), Oe.shouldRenderCutoff && Ze.push("RENDER_CUTOFF"), ze && Ze.push("RENDER_WALL_MODE");
48182
48182
  const wt = d.renderPass === "shadow", at = d.shadowRenderer, Mt = wt && !!at;
48183
48183
  d.shadowRenderer && (d.shadowRenderer.useNormalOffset = !0);
48184
48184
  let Ye = [0, 0, 0];
@@ -48213,7 +48213,7 @@ ${f.vertexSource}`;
48213
48213
  Zn = Ig(Dr, ge, bn, Ue);
48214
48214
  } else {
48215
48215
  const Dr = d.translatePosMatrix(At.expandedProjMatrix, kt, a.paint.get("fill-extrusion-translate"), a.paint.get("fill-extrusion-translate-anchor")), qr = N.projection.createInversionMatrix(N, At.canonical);
48216
- Zn = V ? Nf(Dr, d, cn, G, Q, ge, bn, At, kt, ce, ye, Ae, qr, Ee, Ue) : zf(Dr, d, cn, G, Q, ge, bn, At, ce, ye, Ae, qr, Ee, Ue, Re, Ye);
48216
+ Zn = V ? Nf(Dr, d, cn, G, Q, ge, bn, At, kt, ce, ye, Ae, qr, Ee, Ue) : zf(Dr, d, cn, G, Q, ge, bn, At, ce, ye, Ae, qr, Ee, Ue, Le, Ye);
48217
48217
  }
48218
48218
  d.uploadCommonUniforms(P, Jt, At.toUnwrapped(), null, Oe);
48219
48219
  let Vn = xt.segments;
@@ -48234,8 +48234,8 @@ ${f.vertexSource}`;
48234
48234
  function Ui(d, n, a, f, _, x, w, R, P, O, N, j, V, G, X, J, Q, te, he) {
48235
48235
  const ge = d.context, ce = ge.gl, ve = d.transform, ye = d.transform.zoom, Ae = [], Ee = Us(d, a.paint.get("fill-extrusion-cutoff-fade-range"));
48236
48236
  O === "clear" ? (Ae.push("CLEAR_SUBPASS"), he && (Ae.push("CLEAR_FROM_TEXTURE"), ge.activeTexture.set(ce.TEXTURE0), he.bind(ce.LINEAR, ce.CLAMP_TO_EDGE))) : O === "sdf" && Ae.push("SDF_SUBPASS"), Q && Ae.push("HAS_CENTROID"), Ee.shouldRenderCutoff && Ae.push("RENDER_CUTOFF");
48237
- const Re = a.layout.get("fill-extrusion-edge-radius"), Ue = (ze, Oe, Ze, lt, wt) => {
48238
- const at = Oe.programConfigurations.get(a.id), Mt = d.isTileAffectedByFog(ze), Ye = d.getOrCreateProgram("fillExtrusionGroundEffect", { config: at, defines: Ae, overrideFog: Mt }), _t = ((At, kt, xt, Et, pn, Ft, Jt, Cn, cn, bn, Zn) => ({ u_matrix: kt, u_opacity: xt, u_ao_pass: Et ? 1 : 0, u_meter_to_tile: pn, u_ao: Ft, u_flood_light_intensity: Jt, u_flood_light_color: Cn, u_attenuation: cn, u_edge_radius: bn, u_fb: 0, u_fb_size: Zn, u_dynamic_offset: 1 }))(0, lt, N, P, wt, [j, V * wt], G, X, J, ye >= 17 ? 0 : Re * wt, he ? he.size[0] : 0), ht = [];
48237
+ const Le = a.layout.get("fill-extrusion-edge-radius"), Ue = (ze, Oe, Ze, lt, wt) => {
48238
+ const at = Oe.programConfigurations.get(a.id), Mt = d.isTileAffectedByFog(ze), Ye = d.getOrCreateProgram("fillExtrusionGroundEffect", { config: at, defines: Ae, overrideFog: Mt }), _t = ((At, kt, xt, Et, pn, Ft, Jt, Cn, cn, bn, Zn) => ({ u_matrix: kt, u_opacity: xt, u_ao_pass: Et ? 1 : 0, u_meter_to_tile: pn, u_ao: Ft, u_flood_light_intensity: Jt, u_flood_light_color: Cn, u_attenuation: cn, u_edge_radius: bn, u_fb: 0, u_fb_size: Zn, u_dynamic_offset: 1 }))(0, lt, N, P, wt, [j, V * wt], G, X, J, ye >= 17 ? 0 : Le * wt, he ? he.size[0] : 0), ht = [];
48239
48239
  Q && ht.push(Oe.hiddenByLandmarkVertexBuffer), d.uploadCommonUniforms(ge, Ye, ze.toUnwrapped(), null, Ee), Ye.draw(d, ge.gl.TRIANGLES, _, x, w, R, _t, a.id, Oe.vertexBuffer, Oe.indexBuffer, Ze, a.paint, ye, at, ht);
48240
48240
  };
48241
48241
  for (const ze of f) {
@@ -48287,7 +48287,7 @@ ${f.vertexSource}`;
48287
48287
  }, N = [0, 0, 0], j = (te, he) => (N[0] = Math.min(te.min.y, he.min.y), N[1] = Math.max(te.max.y, he.max.y), N[2] = i.ab - he.min.x > te.max.x ? he.min.x - i.ab : te.max.x, N), V = (te, he) => (N[0] = Math.min(te.min.x, he.min.x), N[1] = Math.max(te.max.x, he.max.x), N[2] = i.ab - he.min.y > te.max.y ? he.min.y - i.ab : te.max.y, N), G = [(te, he) => j(te, he), (te, he) => j(he, te), (te, he) => V(te, he), (te, he) => V(he, te)], X = (te, he, ge, ce, ve, ye, Ae) => {
48288
48288
  if (!x)
48289
48289
  return 0;
48290
- const Ee = [[ye ? ge : te, ye ? te : ge, 0], [ye ? ge : he, ye ? he : ge, 0]], Re = Ae < 0 ? i.ab + Ae : Ae, Ue = [ye ? Re : (te + he) / 2, ye ? (te + he) / 2 : Re, 0];
48290
+ const Ee = [[ye ? ge : te, ye ? te : ge, 0], [ye ? ge : he, ye ? he : ge, 0]], Le = Ae < 0 ? i.ab + Ae : Ae, Ue = [ye ? Le : (te + he) / 2, ye ? (te + he) / 2 : Le, 0];
48291
48291
  return ge === 0 && Ae < 0 || ge !== 0 && Ae > 0 ? x.getForTilePoints(ve, [Ue], !0, ce) : Ee.push(Ue), x.getForTilePoints(a, Ee, !0, R), Math.max(Ee[0][2], Ee[1][2], Ue[2]) / x.exaggeration();
48292
48292
  };
48293
48293
  for (let te = 0; te < 4; te++) {
@@ -48302,7 +48302,7 @@ ${f.vertexSource}`;
48302
48302
  if (!(ve && ve.dem || w))
48303
48303
  continue;
48304
48304
  const ye = (te < 2 ? 1 : 5) - te, Ae = ce.borderDoneWithNeighborZ[ye] !== f.canonical.z, Ee = ce.borderFeatureIndices[ye];
48305
- let Re = 0;
48305
+ let Le = 0;
48306
48306
  if (f.canonical.z !== ce.canonical.z) {
48307
48307
  for (const Ue of he)
48308
48308
  f.showCentroid(f.featuresOnBorder[Ue]);
@@ -48314,23 +48314,23 @@ ${f.vertexSource}`;
48314
48314
  for (const Ue of he) {
48315
48315
  const ze = f.featuresOnBorder[Ue], Oe = f.centroidData[ze.centroidDataIndex], Ze = ze.borders[te];
48316
48316
  let lt;
48317
- for (; Re < Ee.length; ) {
48318
- lt = ce.featuresOnBorder[Ee[Re]];
48317
+ for (; Le < Ee.length; ) {
48318
+ lt = ce.featuresOnBorder[Ee[Le]];
48319
48319
  const wt = lt.borders[ye];
48320
48320
  if (wt[1] > Ze[0] + 3 || wt[0] > Ze[0] - 3)
48321
48321
  break;
48322
- ce.showCentroid(lt), Re++;
48322
+ ce.showCentroid(lt), Le++;
48323
48323
  }
48324
- if (lt && Re < Ee.length) {
48325
- const wt = Re;
48324
+ if (lt && Le < Ee.length) {
48325
+ const wt = Le;
48326
48326
  let at = 0;
48327
- for (; !(lt.borders[ye][0] > Ze[1] - 3) && (at++, ++Re !== Ee.length); )
48328
- lt = ce.featuresOnBorder[Ee[Re]];
48327
+ for (; !(lt.borders[ye][0] > Ze[1] - 3) && (at++, ++Le !== Ee.length); )
48328
+ lt = ce.featuresOnBorder[Ee[Le]];
48329
48329
  lt = ce.featuresOnBorder[Ee[wt]];
48330
48330
  let Mt = !1;
48331
48331
  if (at >= 1) {
48332
48332
  const ht = lt.borders[ye];
48333
- Math.abs(Ze[0] - ht[0]) < 3 && Math.abs(Ze[1] - ht[1]) < 3 && (at = 1, Mt = !0, Re = wt + 1);
48333
+ Math.abs(Ze[0] - ht[0]) < 3 && Math.abs(Ze[1] - ht[1]) < 3 && (at = 1, Mt = !0, Le = wt + 1);
48334
48334
  } else if (at === 0) {
48335
48335
  f.showCentroid(ze);
48336
48336
  continue;
@@ -48339,7 +48339,7 @@ ${f.vertexSource}`;
48339
48339
  w && Mt && (((J = Oe).flags | (Q = Ye).flags) & i.d1 ? (J.flags |= i.d1, Q.flags |= i.d1) : (J.flags &= ~i.d1, Q.flags &= ~i.d1));
48340
48340
  const _t = ze.intersectsCount() > 1 || lt.intersectsCount() > 1;
48341
48341
  if (at > 1)
48342
- Re = wt, Oe.centroidXY = Ye.centroidXY = new i.P(0, 0);
48342
+ Le = wt, Oe.centroidXY = Ye.centroidXY = new i.P(0, 0);
48343
48343
  else if (ve && ve.dem && !_t) {
48344
48344
  const ht = G[te](Oe, Ye), At = te % 2 ? i.ab - 1 : 0, kt = X(ht[0], Math.min(i.ab - 1, ht[1]), At, ve, ge, te < 2, ht[2]);
48345
48345
  Oe.centroidXY = Ye.centroidXY = P(kt);
@@ -48388,11 +48388,11 @@ ${f.vertexSource}`;
48388
48388
  he.push("GLOBE_POLES");
48389
48389
  const ge = new xn(J.LEQUAL, xn.ReadWrite, a.depthRangeFor3D), ce = Float32Array.from(a.transform.expandedFarZProjMatrix), ve = Float32Array.from(i.b5(i.cC(new i.bP(0, 0, 0))));
48390
48390
  a.terrain && a.terrain.prepareDrawTile(), X.activeTexture.set(J.TEXTURE0), V.bind(Q, J.CLAMP_TO_EDGE), X.activeTexture.set(J.TEXTURE1), V.bind(Q, J.CLAMP_TO_EDGE), V.useMipmap && X.extTextureFilterAnisotropic && a.transform.pitch > 20 && J.texParameterf(J.TEXTURE_2D, X.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, X.extTextureFilterAnisotropicMax);
48391
- const [ye, Ae, Ee, Re] = n ? N.getPoleBuffers(n.canonical.z, !1) : N.getPoleBuffers(0, !0), Ue = _.paint.get("raster-elevation");
48391
+ const [ye, Ae, Ee, Le] = n ? N.getPoleBuffers(n.canonical.z, !1) : N.getPoleBuffers(0, !0), Ue = _.paint.get("raster-elevation");
48392
48392
  let ze;
48393
48393
  d ? (ze = ye, a.renderDefaultNorthPole = Ue !== 0) : (ze = Ae, a.renderDefaultSouthPole = Ue !== 0);
48394
48394
  const Oe = Hf(w.mix), Ze = ((wt, at, Mt, Ye, _t, ht, At, kt, xt, Et, pn, Ft, Jt) => qc(wt, at, Mt, new Float32Array(16), new Float32Array(9), [0, 0], Ye, [0, 0], [0, 0, 0, 0], 1, { opacity: 1, mix: 0 }, ht, [0, 0], kt, 2, Et, pn, Ft, 1, 0, Jt))(ce, ve, G, i.a9(a.transform.zoom), 0, _, 0, Ue, 0, Oe, w.offset, w.range, x), lt = a.getOrCreateProgram("raster", { defines: he });
48395
- a.uploadCommonUniforms(X, lt, null), lt.draw(a, J.TRIANGLES, ge, P, te, R, Ze, _.id, ze, Ee, Re);
48395
+ a.uploadCommonUniforms(X, lt, null), lt.draw(a, J.TRIANGLES, ge, P, te, R, Ze, _.id, ze, Ee, Le);
48396
48396
  }
48397
48397
  function li(d) {
48398
48398
  const n = d._nearZ, a = d.projection.farthestPixelDistance(d), f = a - n, _ = 0.2 * d.height, x = n + _;
@@ -48467,8 +48467,8 @@ ${f.vertexSource}`;
48467
48467
  _t.clearRect(0, 0, Mt.width, Mt.height), _t.shadowColor = "white", _t.shadowBlur = 2, _t.lineWidth = 1.5, _t.strokeStyle = "white", _t.textBaseline = "top", _t.font = "bold 36px Open Sans, sans-serif", _t.fillText(at, 5, 5), _t.strokeText(at, 5, 5), wt.debugOverlayTexture.update(Mt), wt.debugOverlayTexture.bind(Ye.LINEAR, Ye.CLAMP_TO_EDGE);
48468
48468
  }(d, lt);
48469
48469
  }
48470
- const Ae = n.getTile(a).tileSize, Ee = 512 / Math.min(Ae, 512) * (a.overscaledZ / P.zoom) * 0.5, Re = J._tileDebugTextBuffer || d.debugBuffer, Ue = J._tileDebugTextIndexBuffer || d.quadTriangleIndexBuffer, ze = J._tileDebugTextSegments || d.debugSegments;
48471
- X.draw(d, O.TRIANGLES, Q, te, Jn.alphaBlended, Mn.disabled, Rg(V, i.bz.transparent, Ee), ge, Re, Ue, ze, null, null, null, [J._globeTileDebugTextBuffer]);
48470
+ const Ae = n.getTile(a).tileSize, Ee = 512 / Math.min(Ae, 512) * (a.overscaledZ / P.zoom) * 0.5, Le = J._tileDebugTextBuffer || d.debugBuffer, Ue = J._tileDebugTextIndexBuffer || d.quadTriangleIndexBuffer, ze = J._tileDebugTextSegments || d.debugSegments;
48471
+ X.draw(d, O.TRIANGLES, Q, te, Jn.alphaBlended, Mn.disabled, Rg(V, i.bz.transparent, Ee), ge, Le, Ue, ze, null, null, null, [J._globeTileDebugTextBuffer]);
48472
48472
  }
48473
48473
  function Kr(d, n, a, f) {
48474
48474
  Xc(d, 0, n + a / 2, d.transform.width, a, f);
@@ -48548,7 +48548,7 @@ ${f.vertexSource}`;
48548
48548
  const f = n.context, _ = f.gl, x = n.transform, w = new xn(_.LEQUAL, xn.ReadOnly, [0, 1]), R = i.a9(x.zoom), P = n.style.getLut(a.scope), O = a.properties.get("color").toRenderColor(P).toArray01(), N = a.properties.get("high-color").toRenderColor(P).toArray01(), j = a.properties.get("space-color").toRenderColor(P).toArray01PremultipliedAlpha(), V = 5e-4, G = i.dc(a.properties.get("horizon-blend"), 0, 1, V, 0.25), X = i.cx(n, f, x) && G === V ? x.worldSize / (2 * Math.PI * 1.025) - 1 : x.globeRadius, J = n.frameCounter / 1e3 % 1, Q = i.a6.vec3.length(x.globeCenterInViewSpace), te = Math.sqrt(Math.pow(Q, 2) - Math.pow(X, 2)), he = Math.acos(te / Q), ge = (ce) => {
48549
48549
  const ve = x.projection.name === "globe" ? ["PROJECTION_GLOBE_VIEW", "FOG"] : ["FOG"];
48550
48550
  ce && ve.push("ALPHA_PASS");
48551
- const ye = n.getOrCreateProgram("globeAtmosphere", { defines: ve }), Ae = ((Re, Ue, ze, Oe, Ze, lt, wt, at, Mt, Ye, _t, ht) => ({ u_frustum_tl: Re, u_frustum_tr: Ue, u_frustum_br: ze, u_frustum_bl: Oe, u_horizon: Ze, u_transition: lt, u_fadeout_range: wt, u_color: at, u_high_color: Mt, u_space_color: Ye, u_temporal_offset: _t, u_horizon_angle: ht }))(x.frustumCorners.TL, x.frustumCorners.TR, x.frustumCorners.BR, x.frustumCorners.BL, x.frustumCorners.horizon, R, G, O, N, j, J, he);
48551
+ const ye = n.getOrCreateProgram("globeAtmosphere", { defines: ve }), Ae = ((Le, Ue, ze, Oe, Ze, lt, wt, at, Mt, Ye, _t, ht) => ({ u_frustum_tl: Le, u_frustum_tr: Ue, u_frustum_br: ze, u_frustum_bl: Oe, u_horizon: Ze, u_transition: lt, u_fadeout_range: wt, u_color: at, u_high_color: Mt, u_space_color: Ye, u_temporal_offset: _t, u_horizon_angle: ht }))(x.frustumCorners.TL, x.frustumCorners.TR, x.frustumCorners.BR, x.frustumCorners.BL, x.frustumCorners.horizon, R, G, O, N, j, J, he);
48552
48552
  n.uploadCommonUniforms(f, ye);
48553
48553
  const Ee = this.atmosphereBuffer;
48554
48554
  Ee && ye.draw(n, _.TRIANGLES, w, Dn.disabled, ce ? this.colorModeWriteAlpha : this.colorModeAlphaBlendedWriteRGB, Mn.backCW, Ae, ce ? "atmosphere_glow_alpha" : "atmosphere_glow", Ee.vertexBuffer, Ee.indexBuffer, Ee.segments);
@@ -48598,7 +48598,7 @@ ${f.vertexSource}`;
48598
48598
  if (G) {
48599
48599
  const Ee = Ch(d.nodeModelMatrix, n.transform);
48600
48600
  if (ve = new Float32Array(Ee), O.projection.name !== "globe") {
48601
- const Re = N.aabb.min, Ue = N.aabb.max, [ze, Oe] = G.getOpacityForBounds(Ee, Re[0], Re[1], Ue[0], Ue[1]);
48601
+ const Le = N.aabb.min, Ue = N.aabb.max, [ze, Oe] = G.getOpacityForBounds(Ee, Le[0], Le[1], Ue[0], Ue[1]);
48602
48602
  he.overrideFog = ze >= Tt || Oe >= Tt;
48603
48603
  }
48604
48604
  }
@@ -48776,10 +48776,10 @@ ${f.vertexSource}`;
48776
48776
  const ce = V.getTile(ge), ve = ce.getBucket(j);
48777
48777
  if (!ve || !ve.text || !ve.text.segments.get().length)
48778
48778
  continue;
48779
- const ye = i.bj(ve.textSizeData, Q.zoom), Ae = oa(ge, ve.getProjection(), Q), Ee = Q.calculatePixelsToTileUnitsMatrix(ce), Re = ir(Ae, ce.tileID.canonical, he, te, Q, ve.getProjection(), Ee), Ue = ve.hasIconTextFit() && ve.hasIconData();
48779
+ const ye = i.bj(ve.textSizeData, Q.zoom), Ae = oa(ge, ve.getProjection(), Q), Ee = Q.calculatePixelsToTileUnitsMatrix(ce), Le = ir(Ae, ce.tileID.canonical, he, te, Q, ve.getProjection(), Ee), Ue = ve.hasIconTextFit() && ve.hasIconData();
48780
48780
  if (ye) {
48781
48781
  const ze = Math.pow(2, Q.zoom - ce.tileID.overscaledZ);
48782
- A1(ve, te, he, J, i.cS, Q, Re, ge, ze, ye, Ue);
48782
+ A1(ve, te, he, J, i.cS, Q, Le, ge, ze, ye, Ue);
48783
48783
  }
48784
48784
  }
48785
48785
  }(f, d, a, n, a.layout.get("text-rotation-alignment"), a.layout.get("text-pitch-alignment"), _);
@@ -48796,9 +48796,9 @@ ${f.vertexSource}`;
48796
48796
  const ce = f[ge], ve = n.getTile(ce), ye = ve.getBucket(a);
48797
48797
  if (!ye || ye.projection.name !== j.projection.name)
48798
48798
  continue;
48799
- const Ae = ye.programConfigurations.get(a.id), Ee = i.cT(a), Re = d.isTileAffectedByFog(ce);
48799
+ const Ae = ye.programConfigurations.get(a.id), Ee = i.cT(a), Le = d.isTileAffectedByFog(ce);
48800
48800
  J && Ee.push("PROJECTION_GLOBE_VIEW"), Ee.push("DEPTH_D24"), d.terrain && j.depthOcclusionForSymbolsAndCircles && Ee.push("DEPTH_OCCLUSION");
48801
- const Ue = d.getOrCreateProgram("circle", { config: Ae, defines: Ee, overrideFog: Re }), ze = ye.layoutVertexBuffer, Oe = ye.globeExtVertexBuffer, Ze = ye.indexBuffer, lt = j.projection.createInversionMatrix(j, ce.canonical), wt = { programConfiguration: Ae, program: Ue, layoutVertexBuffer: ze, globeExtVertexBuffer: Oe, indexBuffer: Ze, uniformValues: i.cU(d, ce, ve, lt, Q, a), tile: ve };
48801
+ const Ue = d.getOrCreateProgram("circle", { config: Ae, defines: Ee, overrideFog: Le }), ze = ye.layoutVertexBuffer, Oe = ye.globeExtVertexBuffer, Ze = ye.indexBuffer, lt = j.projection.createInversionMatrix(j, ce.canonical), wt = { programConfiguration: Ae, program: Ue, layoutVertexBuffer: ze, globeExtVertexBuffer: Oe, indexBuffer: Ze, uniformValues: i.cU(d, ce, ve, lt, Q, a), tile: ve };
48802
48802
  if (R) {
48803
48803
  const at = ye.segments.get();
48804
48804
  for (const Mt of at)
@@ -48809,8 +48809,8 @@ ${f.vertexSource}`;
48809
48809
  R && te.sort((ge, ce) => ge.sortKey - ce.sortKey);
48810
48810
  const he = { useDepthForOcclusion: j.depthOcclusionForSymbolsAndCircles };
48811
48811
  for (const ge of te) {
48812
- const { programConfiguration: ce, program: ve, layoutVertexBuffer: ye, globeExtVertexBuffer: Ae, indexBuffer: Ee, uniformValues: Re, tile: Ue } = ge.state, ze = ge.segments;
48813
- d.terrain && d.terrain.setupElevationDraw(Ue, ve, he), d.uploadCommonUniforms(O, ve, Ue.tileID.toUnwrapped()), ve.draw(d, N.TRIANGLES, V, G, X, Mn.disabled, Re, a.id, ye, Ee, ze, a.paint, j.zoom, ce, [Ae]);
48812
+ const { programConfiguration: ce, program: ve, layoutVertexBuffer: ye, globeExtVertexBuffer: Ae, indexBuffer: Ee, uniformValues: Le, tile: Ue } = ge.state, ze = ge.segments;
48813
+ d.terrain && d.terrain.setupElevationDraw(Ue, ve, he), d.uploadCommonUniforms(O, ve, Ue.tileID.toUnwrapped()), ve.draw(d, N.TRIANGLES, V, G, X, Mn.disabled, Le, a.id, ye, Ee, ze, a.paint, j.zoom, ce, [Ae]);
48814
48814
  }
48815
48815
  }, heatmap: function(d, n, a, f) {
48816
48816
  if (a.paint.get("heatmap-opacity") !== 0)
@@ -48823,9 +48823,9 @@ ${f.vertexSource}`;
48823
48823
  if (!ce || ce && (ce.width !== he || ce.height !== ge)) {
48824
48824
  ce && ce.destroy();
48825
48825
  const ve = te.createTexture();
48826
- te.bindTexture(te.TEXTURE_2D, ve), te.texParameteri(te.TEXTURE_2D, te.TEXTURE_WRAP_S, te.CLAMP_TO_EDGE), te.texParameteri(te.TEXTURE_2D, te.TEXTURE_WRAP_T, te.CLAMP_TO_EDGE), te.texParameteri(te.TEXTURE_2D, te.TEXTURE_MIN_FILTER, te.LINEAR), te.texParameteri(te.TEXTURE_2D, te.TEXTURE_MAG_FILTER, te.LINEAR), ce = J.heatmapFbo = G.createFramebuffer(he, ge, !0, null), function(ye, Ae, Ee, Re, Ue, ze) {
48826
+ te.bindTexture(te.TEXTURE_2D, ve), te.texParameteri(te.TEXTURE_2D, te.TEXTURE_WRAP_S, te.CLAMP_TO_EDGE), te.texParameteri(te.TEXTURE_2D, te.TEXTURE_WRAP_T, te.CLAMP_TO_EDGE), te.texParameteri(te.TEXTURE_2D, te.TEXTURE_MIN_FILTER, te.LINEAR), te.texParameteri(te.TEXTURE_2D, te.TEXTURE_MAG_FILTER, te.LINEAR), ce = J.heatmapFbo = G.createFramebuffer(he, ge, !0, null), function(ye, Ae, Ee, Le, Ue, ze) {
48827
48827
  const Oe = ye.gl;
48828
- Oe.texImage2D(Oe.TEXTURE_2D, 0, ye.extRenderToTextureHalfFloat ? Oe.RGBA16F : Oe.RGBA, Ue, ze, 0, Oe.RGBA, ye.extRenderToTextureHalfFloat ? Oe.HALF_FLOAT : Oe.UNSIGNED_BYTE, null), Re.colorAttachment.set(Ee);
48828
+ Oe.texImage2D(Oe.TEXTURE_2D, 0, ye.extRenderToTextureHalfFloat ? Oe.RGBA16F : Oe.RGBA, Ue, ze, 0, Oe.RGBA, ye.extRenderToTextureHalfFloat ? Oe.HALF_FLOAT : Oe.UNSIGNED_BYTE, null), Le.colorAttachment.set(Ee);
48829
48829
  }(G, 0, ve, ce, he, ge);
48830
48830
  } else
48831
48831
  te.bindTexture(te.TEXTURE_2D, ce.colorAttachment.get()), G.bindFramebuffer.set(ce.framebuffer);
@@ -48860,16 +48860,16 @@ ${f.vertexSource}`;
48860
48860
  if (_.constantOr(1) === 0 || x.constantOr(1) === 0)
48861
48861
  return;
48862
48862
  const w = a.paint.get("line-emissive-strength"), R = a.paint.get("line-occlusion-opacity"), P = d.context, O = P.gl, N = a.layout.get("line-z-offset"), j = !N.isConstant() || !!N.constantOr(0), V = j ? new xn(d.depthOcclusion ? O.GREATER : O.LEQUAL, xn.ReadOnly, d.depthRangeFor3D) : d.depthModeForSublayer(0, xn.ReadOnly), G = d.colorModeForDrapableLayerRenderPass(w), X = d.terrain && d.terrain.renderingToTexture, J = X ? 1 : i.q.devicePixelRatio, Q = a.paint.get("line-dasharray"), te = Q.constantOr(1), he = a.layout.get("line-cap"), ge = Q.constantOr(null), ce = he.constantOr(null), ve = a.paint.get("line-pattern"), ye = ve.constantOr(1), Ae = ve.constantOr(null), Ee = a.paint.get("line-opacity").constantOr(1);
48863
- let Re = !ye && Ee !== 1 || d.depthOcclusion && R > 0 && R < 1;
48863
+ let Le = !ye && Ee !== 1 || d.depthOcclusion && R > 0 && R < 1;
48864
48864
  const Ue = a.paint.get("line-gradient"), ze = ye ? "linePattern" : "line", Oe = i.cV(a);
48865
48865
  let Ze;
48866
- if (X && d.terrain && d.terrain.clipOrMaskOverlapStencilType() && (Re = !1), R !== 0 && d.depthOcclusion) {
48866
+ if (X && d.terrain && d.terrain.clipOrMaskOverlapStencilType() && (Le = !1), R !== 0 && d.depthOcclusion) {
48867
48867
  const wt = a.paint._values["line-opacity"];
48868
48868
  wt && wt.value && wt.value.kind === "constant" ? Ze = wt.value : i.w(`Occlusion opacity for layer ${a.id} is supported only when line-opacity isn't data-driven.`);
48869
48869
  }
48870
48870
  if (j && (d.forceTerrainMode = !0), !j && R !== 0 && d.terrain && !X)
48871
48871
  return void i.w(`Occlusion opacity for layer ${a.id} is supported on terrain only if the layer has non-zero line-z-offset.`);
48872
- const lt = Re && j ? d.stencilModeFor3D() : Dn.disabled;
48872
+ const lt = Le && j ? d.stencilModeFor3D() : Dn.disabled;
48873
48873
  for (const wt of f) {
48874
48874
  const at = n.getTile(wt);
48875
48875
  if (ye && !at.patternsLoaded())
@@ -48907,15 +48907,15 @@ ${f.vertexSource}`;
48907
48907
  const pn = (Ft) => {
48908
48908
  Ze != null && (Ze.value = Ee * R), ht.draw(d, O.TRIANGLES, V, Ft, G, Mn.disabled, Et, a.id, Mt.layoutVertexBuffer, Mt.indexBuffer, Mt.segments, a.paint, d.transform.zoom, Ye, [Mt.layoutVertexBuffer2, Mt.patternVertexBuffer, Mt.zOffsetVertexBuffer]), Ze != null && (Ze.value = Ee);
48909
48909
  };
48910
- if (Re && !j) {
48910
+ if (Le && !j) {
48911
48911
  const Ft = d.stencilModeForClipping(wt).ref;
48912
48912
  Ft === 0 && X && P.clear({ stencil: 0 });
48913
48913
  const Jt = { func: O.EQUAL, mask: 255 };
48914
48914
  Et.u_alpha_discard_threshold = 0.8, pn(new Dn(Jt, Ft, 255, O.KEEP, O.KEEP, O.INVERT)), Et.u_alpha_discard_threshold = 0, pn(new Dn(Jt, Ft, 255, O.KEEP, O.KEEP, O.KEEP));
48915
48915
  } else
48916
- Re && j && (Et.u_alpha_discard_threshold = 1e-3), pn(j ? lt : d.stencilModeForClipping(wt));
48916
+ Le && j && (Et.u_alpha_discard_threshold = 1e-3), pn(j ? lt : d.stencilModeForClipping(wt));
48917
48917
  }
48918
- Re && (d.resetStencilClippingMasks(), X && P.clear({ stencil: 0 })), R === 0 || d.depthOcclusion || X || d.layersWithOcclusionOpacity.push(d.currentLayer), j && (d.forceTerrainMode = !1);
48918
+ Le && (d.resetStencilClippingMasks(), X && P.clear({ stencil: 0 })), R === 0 || d.depthOcclusion || X || d.layersWithOcclusionOpacity.push(d.currentLayer), j && (d.forceTerrainMode = !1);
48919
48919
  }, fill: function(d, n, a, f) {
48920
48920
  const _ = a.paint.get("fill-color"), x = a.paint.get("fill-opacity"), w = a.is3D(), R = new xn(d.context.gl.LEQUAL, xn.ReadWrite, d.depthRangeFor3D);
48921
48921
  if (x.constantOr(1) === 0)
@@ -48958,18 +48958,18 @@ ${f.vertexSource}`;
48958
48958
  }
48959
48959
  if (d.style.enable3dLights() && j && (!R && d.transform.projection.name !== "globe" || P)) {
48960
48960
  const G = a.paint.get("fill-extrusion-opacity"), X = a.paint.get("fill-extrusion-ambient-occlusion-intensity"), J = a.paint.get("fill-extrusion-ambient-occlusion-ground-radius"), Q = a.paint.get("fill-extrusion-flood-light-intensity"), te = a.paint.get("fill-extrusion-flood-light-color").toRenderColor(a.lut).toArray01().slice(0, 3), he = X > 0 && J > 0, ge = Q > 0, ce = (ye, Ae, Ee) => (1 - Ee) * ye + Ee * Ae, ve = (ye) => {
48961
- const Ae = d.depthModeForSublayer(1, xn.ReadOnly, w.LEQUAL, !0), Ee = a.paint.get(ye ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), Re = ce(0.1, 3, Ee), Ue = d._showOverdrawInspector;
48961
+ const Ae = d.depthModeForSublayer(1, xn.ReadOnly, w.LEQUAL, !0), Ee = a.paint.get(ye ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), Le = ce(0.1, 3, Ee), Ue = d._showOverdrawInspector;
48962
48962
  if (!Ue) {
48963
48963
  const ze = new Dn({ func: w.ALWAYS, mask: 255 }, 255, 255, w.KEEP, w.KEEP, w.REPLACE), Oe = new Jn([w.ONE, w.ONE, w.ONE, w.ONE], i.bz.transparent, [!1, !1, !1, !0], w.MIN);
48964
- Ui(d, n, a, f, Ae, ze, Oe, Mn.disabled, ye, "sdf", G, X, J, Q, te, Re, O, !1);
48964
+ Ui(d, n, a, f, Ae, ze, Oe, Mn.disabled, ye, "sdf", G, X, J, Q, te, Le, O, !1);
48965
48965
  }
48966
48966
  {
48967
48967
  const ze = Ue ? Dn.disabled : new Dn({ func: w.EQUAL, mask: 255 }, 255, 255, w.KEEP, w.DECR, w.DECR), Oe = Ue ? d.colorModeForRenderPass() : new Jn([w.ONE_MINUS_DST_ALPHA, w.DST_ALPHA, w.ONE, w.ONE], i.bz.transparent, [!0, !0, !0, !0]);
48968
- Ui(d, n, a, f, Ae, ze, Oe, Mn.disabled, ye, "color", G, X, J, Q, te, Re, O, !1);
48968
+ Ui(d, n, a, f, Ae, ze, Oe, Mn.disabled, ye, "color", G, X, J, Q, te, Le, O, !1);
48969
48969
  }
48970
48970
  };
48971
48971
  if (P) {
48972
- const ye = (Ae, Ee, Re) => {
48972
+ const ye = (Ae, Ee, Le) => {
48973
48973
  const Ue = d.depthModeForSublayer(1, xn.ReadOnly, w.LEQUAL, !1), ze = a.paint.get(Ae ? "fill-extrusion-ambient-occlusion-ground-attenuation" : "fill-extrusion-flood-light-ground-attenuation"), Oe = ce(0.1, 3, ze);
48974
48974
  {
48975
48975
  const Ze = new Jn([w.ONE, w.ONE, w.ONE, w.ONE], i.bz.transparent, [!1, !1, !1, !0]);
@@ -48985,14 +48985,14 @@ ${f.vertexSource}`;
48985
48985
  }
48986
48986
  {
48987
48987
  const Ze = new Jn([w.ONE, w.ONE, w.ONE, Ae ? w.ZERO : w.ONE], i.bz.transparent, [!1, !1, !1, !0], Ae ? w.FUNC_ADD : w.MAX);
48988
- Ui(d, n, a, f, Ue, Dn.disabled, Ze, Mn.disabled, Ae, "clear", G, X, J, Q, te, Oe, O, Ee, Re);
48988
+ Ui(d, n, a, f, Ue, Dn.disabled, Ze, Mn.disabled, Ae, "clear", G, X, J, Q, te, Oe, O, Ee, Le);
48989
48989
  }
48990
48990
  };
48991
48991
  if (he || ge) {
48992
48992
  let Ae;
48993
48993
  if (d.prepareDrawTile(), R) {
48994
- const Ee = R.drapeBufferSize[0], Re = R.drapeBufferSize[1];
48995
- Ae = R.framebufferCopyTexture, Ae && (!Ae || Ae.size[0] === Ee && Ae.size[1] === Re) || (Ae && Ae.destroy(), Ae = R.framebufferCopyTexture = new i.T(x, new i.r({ width: Ee, height: Re }), w.RGBA8)), Ae.bind(w.LINEAR, w.CLAMP_TO_EDGE), w.copyTexImage2D(w.TEXTURE_2D, 0, w.RGBA, 0, 0, Ee, Re, 0);
48994
+ const Ee = R.drapeBufferSize[0], Le = R.drapeBufferSize[1];
48995
+ Ae = R.framebufferCopyTexture, Ae && (!Ae || Ae.size[0] === Ee && Ae.size[1] === Le) || (Ae && Ae.destroy(), Ae = R.framebufferCopyTexture = new i.T(x, new i.r({ width: Ee, height: Le }), w.RGBA8)), Ae.bind(w.LINEAR, w.CLAMP_TO_EDGE), w.copyTexImage2D(w.TEXTURE_2D, 0, w.RGBA, 0, 0, Ee, Le, 0);
48996
48996
  }
48997
48997
  he && ye(!0, !1, Ae), ge && ye(!1, !0, Ae);
48998
48998
  }
@@ -49020,19 +49020,19 @@ ${f.vertexSource}`;
49020
49020
  const w = d.transform.projection.name === "globe", R = a.paint.get("raster-elevation") !== 0, P = R && w;
49021
49021
  if (d.renderElevatedRasterBackface && !P)
49022
49022
  return;
49023
- const O = d.context, N = O.gl, j = n.getSource(), V = function(ye, Ae, Ee, Re) {
49023
+ const O = d.context, N = O.gl, j = n.getSource(), V = function(ye, Ae, Ee, Le) {
49024
49024
  const Ue = Ae.paint.get("raster-color"), ze = ye.type === "raster-array", Oe = [], Ze = Ae.paint.get("raster-resampling"), lt = Ae.paint.get("raster-color-mix");
49025
49025
  let wt = Ae.paint.get("raster-color-range");
49026
49026
  const at = [lt[0], lt[1], lt[2], 0], Mt = lt[3];
49027
- let Ye = Ze === "nearest" ? Re.NEAREST : Re.LINEAR;
49028
- if (ze && (Oe.push("RASTER_ARRAY"), Ue || Oe.push("RASTER_COLOR"), Ze === "linear" && Oe.push("RASTER_ARRAY_LINEAR"), Ye = Re.NEAREST, !wt && ye.rasterLayers)) {
49027
+ let Ye = Ze === "nearest" ? Le.NEAREST : Le.LINEAR;
49028
+ if (ze && (Oe.push("RASTER_ARRAY"), Ue || Oe.push("RASTER_COLOR"), Ze === "linear" && Oe.push("RASTER_ARRAY_LINEAR"), Ye = Le.NEAREST, !wt && ye.rasterLayers)) {
49029
49029
  const _t = ye.rasterLayers.find(({ id: ht }) => ht === Ae.sourceLayer);
49030
49030
  _t && _t.fields && _t.fields.range && (wt = _t.fields.range);
49031
49031
  }
49032
49032
  if (wt = wt || [0, 1], Ue) {
49033
- Oe.push("RASTER_COLOR"), Ee.activeTexture.set(Re.TEXTURE2), Ae.updateColorRamp(wt);
49033
+ Oe.push("RASTER_COLOR"), Ee.activeTexture.set(Le.TEXTURE2), Ae.updateColorRamp(wt);
49034
49034
  let _t = Ae.colorRampTexture;
49035
- _t || (_t = Ae.colorRampTexture = new i.T(Ee, Ae.colorRamp, Re.RGBA8)), _t.bind(Re.LINEAR, Re.CLAMP_TO_EDGE);
49035
+ _t || (_t = Ae.colorRampTexture = new i.T(Ee, Ae.colorRamp, Le.RGBA8)), _t.bind(Le.LINEAR, Le.CLAMP_TO_EDGE);
49036
49036
  }
49037
49037
  return { mix: at, range: wt, offset: Mt, defines: Oe, resampling: Ye };
49038
49038
  }(j, a, O, N);
@@ -49048,8 +49048,8 @@ ${f.vertexSource}`;
49048
49048
  const [he, ge] = j instanceof i.aD || J ? [{}, f] : d.stencilConfigForOverlap(f), ce = ge[ge.length - 1].overscaledZ;
49049
49049
  P && V.defines.push("PROJECTION_GLOBE_VIEW"), R && V.defines.push("RENDER_CUTOFF");
49050
49050
  const ve = (ye, Ae, Ee) => {
49051
- for (const Re of ye) {
49052
- const Ue = Re.toUnwrapped(), ze = n.getTile(Re);
49051
+ for (const Le of ye) {
49052
+ const Ue = Le.toUnwrapped(), ze = n.getTile(Le);
49053
49053
  if (J && (!ze || !ze.hasData()))
49054
49054
  continue;
49055
49055
  O.activeTexture.set(N.TEXTURE0);
@@ -49058,10 +49058,10 @@ ${f.vertexSource}`;
49058
49058
  continue;
49059
49059
  const { texture: Ze, mix: lt, offset: wt, tileSize: at, buffer: Mt } = Oe;
49060
49060
  let Ye, _t;
49061
- J ? (Ye = xn.disabled, _t = Re.projMatrix) : R ? (Ye = new xn(N.LEQUAL, xn.ReadWrite, d.depthRangeFor3D), _t = w ? Float32Array.from(d.transform.expandedFarZProjMatrix) : d.transform.calculateProjMatrix(Ue, Q)) : (Ye = d.depthModeForSublayer(Re.overscaledZ - ce, a.paint.get("raster-opacity") === 1 ? xn.ReadWrite : xn.ReadOnly, N.LESS), _t = d.transform.calculateProjMatrix(Ue, Q));
49062
- const ht = d.terrain && J ? d.terrain.stencilModeForRTTOverlap(Re) : he[Re.overscaledZ], At = x ? 0 : a.paint.get("raster-fade-duration");
49061
+ J ? (Ye = xn.disabled, _t = Le.projMatrix) : R ? (Ye = new xn(N.LEQUAL, xn.ReadWrite, d.depthRangeFor3D), _t = w ? Float32Array.from(d.transform.expandedFarZProjMatrix) : d.transform.calculateProjMatrix(Ue, Q)) : (Ye = d.depthModeForSublayer(Le.overscaledZ - ce, a.paint.get("raster-opacity") === 1 ? xn.ReadWrite : xn.ReadOnly, N.LESS), _t = d.transform.calculateProjMatrix(Ue, Q));
49062
+ const ht = d.terrain && J ? d.terrain.stencilModeForRTTOverlap(Le) : he[Le.overscaledZ], At = x ? 0 : a.paint.get("raster-fade-duration");
49063
49063
  ze.registerFadeDuration(At);
49064
- const kt = n.findLoadedParent(Re, 0), xt = hh(ze, kt, n, d.transform, At);
49064
+ const kt = n.findLoadedParent(Le, 0), xt = hh(ze, kt, n, d.transform, At);
49065
49065
  let Et, pn;
49066
49066
  d.terrain && d.terrain.prepareDrawTile(), O.activeTexture.set(N.TEXTURE0), Ze.bind(te, N.CLAMP_TO_EDGE), O.activeTexture.set(N.TEXTURE1), kt ? (kt.texture && kt.texture.bind(te, N.CLAMP_TO_EDGE), Et = Math.pow(2, kt.tileID.overscaledZ - ze.tileID.overscaledZ), pn = [ze.tileID.canonical.x * Et % 1, ze.tileID.canonical.y * Et % 1]) : Ze.bind(te, N.CLAMP_TO_EDGE), Ze.useMipmap && O.extTextureFilterAnisotropic && d.transform.pitch > 20 && N.texParameterf(N.TEXTURE_2D, O.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT, O.extTextureFilterAnisotropicMax);
49067
49067
  const Ft = d.transform;
@@ -49071,11 +49071,11 @@ ${f.vertexSource}`;
49071
49071
  if (P && j instanceof i.aD && j.coordinates.length > 3)
49072
49072
  cn = Float32Array.from(i.b5(i.cC(new i.bP(0, 0, 0)))), bn = Float32Array.from(Ft.globeMatrix), Zn = Float32Array.from(i.cy(Ft)), Vn = [i.am(Ft.center.lng), i.at(Ft.center.lat)], Jt = j.elevatedGlobePerspectiveTransform, Mr = j.elevatedGlobeGridMatrix || new Float32Array(9);
49073
49073
  else if (P) {
49074
- const tr = i.cz(Re.canonical);
49075
- Dr = i.cA(tr.getCenter().lat), cn = Float32Array.from(i.b5(i.cC(Re.canonical))), bn = Float32Array.from(Ft.globeMatrix), Zn = Float32Array.from(i.cy(Ft)), Vn = [i.am(Ft.center.lng), i.at(Ft.center.lat)], Jt = [0, 0], Mr = Float32Array.from(i.cB(Re.canonical, tr, Dr, Ft.worldSize / Ft._pixelsPerMercatorPixel));
49074
+ const tr = i.cz(Le.canonical);
49075
+ Dr = i.cA(tr.getCenter().lat), cn = Float32Array.from(i.b5(i.cC(Le.canonical))), bn = Float32Array.from(Ft.globeMatrix), Zn = Float32Array.from(i.cy(Ft)), Vn = [i.am(Ft.center.lng), i.at(Ft.center.lat)], Jt = [0, 0], Mr = Float32Array.from(i.cB(Le.canonical, tr, Dr, Ft.worldSize / Ft._pixelsPerMercatorPixel));
49076
49076
  } else
49077
49077
  Jt = j instanceof i.aD ? j.perspectiveTransform : [0, 0], cn = new Float32Array(16), bn = new Float32Array(9), Zn = new Float32Array(16), Vn = [0, 0], Mr = new Float32Array(9);
49078
- const qr = qc(_t, cn, bn, Zn, Mr, pn || [0, 0], i.a9(d.transform.zoom), Vn, Cn, Et || 1, xt, a, Jt, R ? a.paint.get("raster-elevation") : 0, 2, lt, wt, V.range, at, Mt, G), Wo = d.isTileAffectedByFog(Re), yi = d.getOrCreateProgram("raster", { defines: V.defines, overrideFog: Wo });
49078
+ const qr = qc(_t, cn, bn, Zn, Mr, pn || [0, 0], i.a9(d.transform.zoom), Vn, Cn, Et || 1, xt, a, Jt, R ? a.paint.get("raster-elevation") : 0, 2, lt, wt, V.range, at, Mt, G), Wo = d.isTileAffectedByFog(Le), yi = d.getOrCreateProgram("raster", { defines: V.defines, overrideFog: Wo });
49079
49079
  if (d.uploadCommonUniforms(O, yi, Ue), j instanceof i.aD) {
49080
49080
  const tr = j.elevatedGlobeVertexBuffer, kr = j.elevatedGlobeIndexBuffer;
49081
49081
  if (J || !w)
@@ -49097,9 +49097,9 @@ ${f.vertexSource}`;
49097
49097
  }
49098
49098
  }
49099
49099
  if (!(j instanceof i.aD) && P)
49100
- for (const Re of ye) {
49101
- const Ue = Re.canonical.y === (1 << Re.canonical.z) - 1;
49102
- Re.canonical.y === 0 && Co(!0, Re, d, n, a, G, V, Ae, Ee || Dn.disabled), Ue && Co(!1, Re, d, n, a, G, V, Ae === Mn.frontCW ? Mn.backCW : Mn.frontCW, Ee || Dn.disabled);
49100
+ for (const Le of ye) {
49101
+ const Ue = Le.canonical.y === (1 << Le.canonical.z) - 1;
49102
+ Le.canonical.y === 0 && Co(!0, Le, d, n, a, G, V, Ae, Ee || Dn.disabled), Ue && Co(!1, Le, d, n, a, G, V, Ae === Mn.frontCW ? Mn.backCW : Mn.frontCW, Ee || Dn.disabled);
49103
49103
  }
49104
49104
  };
49105
49105
  P ? ve(ge, d.renderElevatedRasterBackface ? Mn.backCW : Mn.frontCW, d.stencilModeFor3D()) : ve(ge, Mn.disabled, void 0), d.resetStencilClippingMasks();
@@ -49114,12 +49114,12 @@ ${f.vertexSource}`;
49114
49114
  let X = P.particlePositionRGBAImage;
49115
49115
  if (!X || X.width !== G) {
49116
49116
  const ge = function(ce) {
49117
- const ve = ce * ce, ye = new Uint8Array(4 * ve), Ae = function(Re) {
49118
- return Re |= 0, Re = Math.imul(2747636419 ^ Re, 2654435769), Re = Math.imul(Re ^ Re >>> 16, 2654435769), ((Re = Math.imul(Re ^ Re >>> 16, 2654435769)) >>> 0) / 4294967296;
49117
+ const ve = ce * ce, ye = new Uint8Array(4 * ve), Ae = function(Le) {
49118
+ return Le |= 0, Le = Math.imul(2747636419 ^ Le, 2654435769), Le = Math.imul(Le ^ Le >>> 16, 2654435769), ((Le = Math.imul(Le ^ Le >>> 16, 2654435769)) >>> 0) / 4294967296;
49119
49119
  }, Ee = 1 / 1.1;
49120
- for (let Re = 0; Re < ve; Re++) {
49121
- const Ue = Ee * (Ae(2 * Re + 0) + Es), ze = Ee * (Ae(2 * Re + 1) + Es), Oe = 255 * Ue % 1, Ze = 255 * ze % 1, lt = Oe, wt = ze - Ze / 255, at = Ze;
49122
- ye[4 * Re + 0] = 255 * (Ue - Oe / 255), ye[4 * Re + 1] = 255 * lt, ye[4 * Re + 2] = 255 * wt, ye[4 * Re + 3] = 255 * at;
49120
+ for (let Le = 0; Le < ve; Le++) {
49121
+ const Ue = Ee * (Ae(2 * Le + 0) + Es), ze = Ee * (Ae(2 * Le + 1) + Es), Oe = 255 * Ue % 1, Ze = 255 * ze % 1, lt = Oe, wt = ze - Ze / 255, at = Ze;
49122
+ ye[4 * Le + 0] = 255 * (Ue - Oe / 255), ye[4 * Le + 1] = 255 * lt, ye[4 * Le + 2] = 255 * wt, ye[4 * Le + 3] = 255 * at;
49123
49123
  }
49124
49124
  return ye;
49125
49125
  }(G);
@@ -49140,12 +49140,12 @@ ${f.vertexSource}`;
49140
49140
  Ae || (Ae = P.tileFramebuffer = N.createFramebuffer(ye[0], ye[1], !0, null));
49141
49141
  let Ee = ce.rasterParticleState;
49142
49142
  Ee || (Ee = ce.rasterParticleState = new zg(N, ge, ye, X));
49143
- const Re = Ee.update(P.lastInvalidatedAt);
49143
+ const Le = Ee.update(P.lastInvalidatedAt);
49144
49144
  Ee.particleTextureDimension !== G && Ee.updateParticleTexture(ge, X);
49145
49145
  const Ue = Ee.targetColorTexture;
49146
49146
  Ee.targetColorTexture = Ee.backgroundColorTexture, Ee.backgroundColorTexture = Ue;
49147
49147
  const ze = Ee.particleTexture0;
49148
- Ee.particleTexture0 = Ee.particleTexture1, Ee.particleTexture1 = ze, Q.push([ge, ve, Ee, Re]);
49148
+ Ee.particleTexture0 = Ee.particleTexture1, Ee.particleTexture1 = ze, Q.push([ge, ve, Ee, Le]);
49149
49149
  }
49150
49150
  if (Q.length === 0)
49151
49151
  return;
@@ -49158,17 +49158,17 @@ ${f.vertexSource}`;
49158
49158
  N.bindFramebuffer.set(P.tileFramebuffer.framebuffer), function(ge, ce, ve) {
49159
49159
  const ye = ge.context, Ae = ye.gl, Ee = ce.tileFramebuffer;
49160
49160
  ye.activeTexture.set(Ae.TEXTURE0);
49161
- const Re = { u_texture: 0, u_opacity: 1.05 * (ze = ce.paint.get("raster-particle-fade-opacity-factor")) / (ze + 0.05) }, Ue = ge.getOrCreateProgram("rasterParticleTexture", { defines: [], overrideFog: !1 });
49161
+ const Le = { u_texture: 0, u_opacity: 1.05 * (ze = ce.paint.get("raster-particle-fade-opacity-factor")) / (ze + 0.05) }, Ue = ge.getOrCreateProgram("rasterParticleTexture", { defines: [], overrideFog: !1 });
49162
49162
  var ze;
49163
49163
  for (const Oe of ve) {
49164
49164
  const [, , Ze, lt] = Oe;
49165
- Ee.colorAttachment.set(Ze.targetColorTexture.texture), ye.viewport.set([0, 0, Ee.width, Ee.height]), ye.clear({ color: i.bz.transparent }), lt && (Ze.backgroundColorTexture.bind(Ae.NEAREST, Ae.CLAMP_TO_EDGE), Ue.draw(ge, Ae.TRIANGLES, xn.disabled, Dn.disabled, Jn.alphaBlended, Mn.disabled, Re, ce.id, ge.viewportBuffer, ge.quadTriangleIndexBuffer, ge.viewportSegments));
49165
+ Ee.colorAttachment.set(Ze.targetColorTexture.texture), ye.viewport.set([0, 0, Ee.width, Ee.height]), ye.clear({ color: i.bz.transparent }), lt && (Ze.backgroundColorTexture.bind(Ae.NEAREST, Ae.CLAMP_TO_EDGE), Ue.draw(ge, Ae.TRIANGLES, xn.disabled, Dn.disabled, Jn.alphaBlended, Mn.disabled, Le, ce.id, ge.viewportBuffer, ge.quadTriangleIndexBuffer, ge.viewportSegments));
49166
49166
  }
49167
49167
  }(w, P, Q), function(ge, ce, ve, ye) {
49168
- const Ae = ge.context, Ee = Ae.gl, Re = ve.tileFramebuffer, Ue = ge.transform.projection.name === "globe", ze = ve.paint.get("raster-particle-max-speed");
49168
+ const Ae = ge.context, Ee = Ae.gl, Le = ve.tileFramebuffer, Ue = ge.transform.projection.name === "globe", ze = ve.paint.get("raster-particle-max-speed");
49169
49169
  for (const Oe of ye) {
49170
49170
  const [Ze, lt, wt] = Oe;
49171
- Ae.activeTexture.set(Ee.TEXTURE0 + 0), lt.texture.bind(Ee.LINEAR, Ee.CLAMP_TO_EDGE), Re.colorAttachment.set(wt.targetColorTexture.texture);
49171
+ Ae.activeTexture.set(Ee.TEXTURE0 + 0), lt.texture.bind(Ee.LINEAR, Ee.CLAMP_TO_EDGE), Le.colorAttachment.set(wt.targetColorTexture.texture);
49172
49172
  const at = ge.getOrCreateProgram("rasterParticleDraw", { defines: lt.defines, overrideFog: !1 });
49173
49173
  Ae.activeTexture.set(Ee.TEXTURE0 + 1);
49174
49174
  const Mt = lt.scalarData ? [] : [0, 1, 2, 3].map((ht) => i.c$[ht](Ze));
@@ -49188,7 +49188,7 @@ ${f.vertexSource}`;
49188
49188
  }
49189
49189
  }
49190
49190
  }(w, R, P, Q), N.bindFramebuffer.set(P.particleFramebuffer.framebuffer), function(ge, ce, ve, ye) {
49191
- const Ae = ge.context, Ee = Ae.gl, Re = ce.paint.get("raster-particle-max-speed"), Ue = ye * ce.paint.get("raster-particle-speed-factor") * 0.15, ze = function(Ze) {
49191
+ const Ae = ge.context, Ee = Ae.gl, Le = ce.paint.get("raster-particle-max-speed"), Ue = ye * ce.paint.get("raster-particle-speed-factor") * 0.15, ze = function(Ze) {
49192
49192
  return Math.pow(Ze, 6);
49193
49193
  }(0.01 + 1 * ce.paint.get("raster-particle-reset-rate-factor")), Oe = ce.particleFramebuffer;
49194
49194
  Ae.viewport.set([0, 0, Oe.width, Oe.height]);
@@ -49197,7 +49197,7 @@ ${f.vertexSource}`;
49197
49197
  Ae.activeTexture.set(Ee.TEXTURE0 + 0), lt.texture.bind(Ee.LINEAR, Ee.CLAMP_TO_EDGE), Ae.activeTexture.set(Ee.TEXTURE0 + 1);
49198
49198
  const at = wt.particleTexture0;
49199
49199
  at.bind(Ee.NEAREST, Ee.CLAMP_TO_EDGE);
49200
- const Mt = _h(1, at.size[0], 0, lt.texture.size, Re, Ue, ze, lt.textureOffset, lt.scale, lt.offset);
49200
+ const Mt = _h(1, at.size[0], 0, lt.texture.size, Le, Ue, ze, lt.textureOffset, lt.scale, lt.offset);
49201
49201
  Oe.colorAttachment.set(wt.particleTexture1.texture), Ae.clear({ color: i.bz.transparent }), ge.getOrCreateProgram("rasterParticleUpdate", { defines: lt.defines }).draw(ge, Ee.TRIANGLES, xn.disabled, Dn.disabled, Jn.unblended, Mn.disabled, Mt, ce.id, ge.viewportBuffer, ge.quadTriangleIndexBuffer, ge.viewportSegments);
49202
49202
  }
49203
49203
  }(w, P, Q, he);
@@ -49212,9 +49212,9 @@ ${f.vertexSource}`;
49212
49212
  const ye = ve.toUnwrapped(), Ae = R.getTile(ve);
49213
49213
  if (!Ae.rasterParticleState)
49214
49214
  continue;
49215
- const Ee = Ae.rasterParticleState, Re = 100;
49216
- Ae.registerFadeDuration(Re);
49217
- const Ue = R.findLoadedParent(ve, 0), ze = hh(Ae, Ue, R, w.transform, Re);
49215
+ const Ee = Ae.rasterParticleState, Le = 100;
49216
+ Ae.registerFadeDuration(Le);
49217
+ const Ue = R.findLoadedParent(ve, 0), ze = hh(Ae, Ue, R, w.transform, Le);
49218
49218
  let Oe, Ze;
49219
49219
  w.terrain && w.terrain.prepareDrawTile(), j.activeTexture.set(V.TEXTURE0), Ee.targetColorTexture.bind(V.LINEAR, V.CLAMP_TO_EDGE), j.activeTexture.set(V.TEXTURE1), Ue && Ue.rasterParticleState ? (Ue.rasterParticleState.targetColorTexture.bind(V.LINEAR, V.CLAMP_TO_EDGE), Oe = Math.pow(2, Ue.tileID.overscaledZ - Ae.tileID.overscaledZ), Ze = [Ae.tileID.canonical.x * Oe % 1, Ae.tileID.canonical.y * Oe % 1]) : Ee.targetColorTexture.bind(V.LINEAR, V.CLAMP_TO_EDGE);
49220
49220
  const lt = Q ? Float32Array.from(w.transform.expandedFarZProjMatrix) : w.transform.calculateProjMatrix(ye, J), wt = w.transform, at = Bg(wt), Mt = i.cz(ve.canonical), Ye = i.cA(Mt.getCenter().lat);
@@ -49252,9 +49252,9 @@ ${f.vertexSource}`;
49252
49252
  ve.draw(d, O.TRIANGLES, Q, J, te, Mn.disabled, Ee, a.id, d.viewportBuffer, d.quadTriangleIndexBuffer, d.viewportSegments);
49253
49253
  } else
49254
49254
  for (const ve of ce) {
49255
- const ye = d.isTileAffectedByFog(ve), Ae = d.getOrCreateProgram(he, { overrideFog: ye }), Ee = ve.toUnwrapped(), Re = f ? ve.projMatrix : d.transform.calculateProjMatrix(Ee);
49255
+ const ye = d.isTileAffectedByFog(ve), Ae = d.getOrCreateProgram(he, { overrideFog: ye }), Ee = ve.toUnwrapped(), Le = f ? ve.projMatrix : d.transform.calculateProjMatrix(Ee);
49256
49256
  d.prepareDrawTile();
49257
- const Ue = n ? n.getTile(ve) : ge ? ge[ve.key] : new ws(ve, j, N.zoom, d), ze = V ? Ua(Re, w, x, d, 0, a.scope, G, R, { tileID: ve, tileSize: j }) : Pg(Re, w, x, _.toRenderColor(a.lut));
49257
+ const Ue = n ? n.getTile(ve) : ge ? ge[ve.key] : new ws(ve, j, N.zoom, d), ze = V ? Ua(Le, w, x, d, 0, a.scope, G, R, { tileID: ve, tileSize: j }) : Pg(Le, w, x, _.toRenderColor(a.lut));
49258
49258
  d.uploadCommonUniforms(P, Ae, Ee);
49259
49259
  const { tileBoundsBuffer: Oe, tileBoundsIndexBuffer: Ze, tileBoundsSegments: lt } = d.getTileBoundsBuffers(Ue);
49260
49260
  Ae.draw(d, O.TRIANGLES, Q, J, te, Mn.disabled, ze, a.id, Oe, Ze, lt);
@@ -49354,7 +49354,7 @@ ${f.vertexSource}`;
49354
49354
  return;
49355
49355
  const Ee = te.modelManager;
49356
49356
  ge.modelManager = Ee;
49357
- const Re = te.shadowRenderer;
49357
+ const Le = te.shadowRenderer;
49358
49358
  if (!ge._unevaluatedLayout._values.hasOwnProperty("model-id"))
49359
49359
  return;
49360
49360
  const Ue = ge._unevaluatedLayout._values["model-id"], ze = { ...ge.layout.get("model-id").parameters }, Oe = te.style.order.indexOf(ge.fqid);
@@ -49367,11 +49367,11 @@ ${f.vertexSource}`;
49367
49367
  const at = P1(Ze, ye);
49368
49368
  ze.zoom = at;
49369
49369
  const Mt = Ue.possiblyEvaluate(ze);
49370
- if (Ug(te, lt, Ze), us.shadowUniformsInitialized = !1, us.useSingleShadowCascade = !!Re && Re.getMaxCascadeForTile(Ze.toUnwrapped()) === 0, te.renderPass === "shadow" && Re) {
49370
+ if (Ug(te, lt, Ze), us.shadowUniformsInitialized = !1, us.useSingleShadowCascade = !!Le && Le.getMaxCascadeForTile(Ze.toUnwrapped()) === 0, te.renderPass === "shadow" && Le) {
49371
49371
  if (te.currentShadowCascade === 1 && lt.isInsideFirstShadowMapFrustum)
49372
49372
  continue;
49373
49373
  const ht = ye.calculatePosMatrix(Ze.toUnwrapped(), ye.worldSize);
49374
- if (us.tileMatrix.set(ht), us.shadowTileMatrix = Float32Array.from(Re.calculateShadowPassMatrixFromMatrix(ht)), us.aabb.min.fill(0), us.aabb.max[0] = us.aabb.max[1] = i.ab, us.aabb.max[2] = 0, Qc(lt, us, te, ge.scope))
49374
+ if (us.tileMatrix.set(ht), us.shadowTileMatrix = Float32Array.from(Le.calculateShadowPassMatrixFromMatrix(ht)), us.aabb.min.fill(0), us.aabb.max[0] = us.aabb.max[1] = i.ab, us.aabb.max[2] = 0, Qc(lt, us, te, ge.scope))
49375
49375
  continue;
49376
49376
  }
49377
49377
  const Ye = 1 << Ze.canonical.z, _t = [((Ae.x - Ze.wrap) * Ye - Ze.canonical.x) * i.ab, (Ae.y * Ye - Ze.canonical.y) * i.ab, Ae.z * Ye * i.ab];
@@ -49394,7 +49394,7 @@ ${f.vertexSource}`;
49394
49394
  const ve = te.context, ye = te.transform, Ae = te.style.fog, Ee = te.shadowRenderer;
49395
49395
  if (ye.projection.name !== "mercator")
49396
49396
  return void i.w(`Drawing 3D landmark models for ${ye.projection.name} projection is not yet implemented`);
49397
- const Re = te.transform.getFreeCameraOptions().position, Ue = i.a6.vec3.scale([], [Re.x, Re.y, Re.z], te.transform.worldSize), ze = i.a6.vec3.negate([], Ue), Oe = i.a6.mat4.identity([]), Ze = i.de(ye.center.lat, ye.zoom), lt = i.a6.mat4.fromScaling([], [1, 1, 1 / Ze]);
49397
+ const Le = te.transform.getFreeCameraOptions().position, Ue = i.a6.vec3.scale([], [Le.x, Le.y, Le.z], te.transform.worldSize), ze = i.a6.vec3.negate([], Ue), Oe = i.a6.mat4.identity([]), Ze = i.de(ye.center.lat, ye.zoom), lt = i.a6.mat4.fromScaling([], [1, 1, 1 / Ze]);
49398
49398
  i.a6.mat4.translate(Oe, Oe, ze);
49399
49399
  const wt = ge.paint.get("model-opacity"), at = new xn(ve.gl.LEQUAL, xn.ReadWrite, te.depthRangeFor3D), Mt = new xn(ve.gl.LEQUAL, xn.ReadOnly, te.depthRangeFor3D), Ye = new i.c9([1 / 0, 1 / 0, 1 / 0], [-1 / 0, -1 / 0, -1 / 0]), _t = te.renderPass === "shadow", ht = _t && Ee ? Ee.getCurrentCascadeFrustum() : ye.getFrustum(ye.scaleZoom(ye.worldSize)), At = ge.paint.get("model-front-cutoff"), kt = At[2] < 1, xt = Us(te, ge.paint.get("model-cutoff-fade-range")), Et = ge.getLayerRenderingStats();
49400
49400
  (function(pn, Ft, Jt, Cn) {
@@ -49852,7 +49852,7 @@ ${f.vertexSource}`;
49852
49852
  this.currentLayer = 0, this.firstLightBeamLayer = Number.MAX_SAFE_INTEGER;
49853
49853
  let Ee = 0;
49854
49854
  ce && (Ee = ce.getShadowCastingLayerCount());
49855
- let Re = !1, Ue = -1;
49855
+ let Le = !1, Ue = -1;
49856
49856
  for (let ze = 0; ze < x.length; ++ze) {
49857
49857
  const Oe = P[ze];
49858
49858
  Oe.isHidden(this.transform.zoom) || Oe.is3D() && (Ue = ze);
@@ -49868,7 +49868,7 @@ ${f.vertexSource}`;
49868
49868
  }
49869
49869
  this.currentLayer = this.terrain.renderBatch(this.currentLayer), this._lastOcclusionLayer = Math.max(this.currentLayer, this._lastOcclusionLayer);
49870
49870
  } else {
49871
- if (w && !Re && this.terrain && !this.transform.isOrthographic && (Re = !0, this.blitDepth()), R && Ue !== -1 && this.currentLayer === Ue + 1 && !this.transform.isOrthographic && this.blitDepth(), ze.is3D() || this.terrain || this._renderTileClippingMasks(ze, Oe, Oe ? G[Oe.id] : void 0), this.renderLayer(this, Oe, ze, Ae(ze, Oe)), !this.terrain && ce && Ee > 0 && ze.hasShadowPass() && --Ee == 0 && (ce.drawGroundShadows(), this.firstLightBeamLayer <= this.currentLayer)) {
49871
+ if (w && !Le && this.terrain && !this.transform.isOrthographic && (Le = !0, this.blitDepth()), R && Ue !== -1 && this.currentLayer === Ue + 1 && !this.transform.isOrthographic && this.blitDepth(), ze.is3D() || this.terrain || this._renderTileClippingMasks(ze, Oe, Oe ? G[Oe.id] : void 0), this.renderLayer(this, Oe, ze, Ae(ze, Oe)), !this.terrain && ce && Ee > 0 && ze.hasShadowPass() && --Ee == 0 && (ce.drawGroundShadows(), this.firstLightBeamLayer <= this.currentLayer)) {
49872
49872
  const Ze = this.currentLayer;
49873
49873
  for (this.renderPass = "light-beam", this.currentLayer = this.firstLightBeamLayer; this.currentLayer <= Ze; this.currentLayer++) {
49874
49874
  const lt = P[this.currentLayer];
@@ -50034,8 +50034,8 @@ ${f.vertexSource}`;
50034
50034
  const R = w.getOpacity(this.transform.pitch), P = ((O, N, j, V, G, X, J, Q, te, he, ge, ce) => {
50035
50035
  const ve = O.transform, ye = N.properties.get("color").toRenderColor(O.style.getLut(N.scope)).toArray01();
50036
50036
  ye[3] = V;
50037
- const Ae = O.frameCounter / 1e3 % 1, [Ee, Re] = N.properties.get("vertical-range");
50038
- return { u_fog_matrix: j ? ve.calculateFogTileMatrix(j) : ce || O.identityMat, u_fog_range: N.getFovAdjustedRange(ve._fov), u_fog_color: ye, u_fog_horizon_blend: N.properties.get("horizon-blend"), u_fog_vertical_limit: [Math.min(Ee, Re), Re], u_fog_temporal_offset: Ae, u_frustum_tl: G, u_frustum_tr: X, u_frustum_br: J, u_frustum_bl: Q, u_globe_pos: te, u_globe_radius: he, u_viewport: ge, u_globe_transition: i.a9(ve.zoom), u_is_globe: +(ve.projection.name === "globe") };
50037
+ const Ae = O.frameCounter / 1e3 % 1, [Ee, Le] = N.properties.get("vertical-range");
50038
+ return { u_fog_matrix: j ? ve.calculateFogTileMatrix(j) : ce || O.identityMat, u_fog_range: N.getFovAdjustedRange(ve._fov), u_fog_color: ye, u_fog_horizon_blend: N.properties.get("horizon-blend"), u_fog_vertical_limit: [Math.min(Ee, Le), Le], u_fog_temporal_offset: Ae, u_frustum_tl: G, u_frustum_tr: X, u_frustum_br: J, u_frustum_bl: Q, u_globe_pos: te, u_globe_radius: he, u_viewport: ge, u_globe_transition: i.a9(ve.zoom), u_is_globe: +(ve.projection.name === "globe") };
50039
50039
  })(this, w, f, R, this.transform.frustumCorners.TL, this.transform.frustumCorners.TR, this.transform.frustumCorners.BR, this.transform.frustumCorners.BL, this.transform.globeCenterInViewSpace, this.transform.globeRadius, [this.transform.width * i.q.devicePixelRatio, this.transform.height * i.q.devicePixelRatio], _);
50040
50040
  a.setFogUniformValues(n, P);
50041
50041
  }
@@ -51364,7 +51364,7 @@ ${f.vertexSource}`;
51364
51364
  if (!Ae)
51365
51365
  return void i.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");
51366
51366
  ge = Ae, i.a6.vec3.transformMat4(ce, ce, ve);
51367
- const Ee = 0.5 * (ge.max[2] - ge.min[2]), Re = this._minimumAABBFrustumDistance(R, ge), Ue = i.a6.vec3.scale([], [0, 0, 1], Ee), ze = i.a6.vec3.add(Ue, ce, Ue), Oe = Re + (R.pitch === 0 ? 0 : i.a6.vec3.distance(ce, ze)), Ze = R.globeCenterInViewSpace, lt = i.a6.vec3.sub([], ce, [Ze[0], Ze[1], Ze[2]]);
51367
+ const Ee = 0.5 * (ge.max[2] - ge.min[2]), Le = this._minimumAABBFrustumDistance(R, ge), Ue = i.a6.vec3.scale([], [0, 0, 1], Ee), ze = i.a6.vec3.add(Ue, ce, Ue), Oe = Le + (R.pitch === 0 ? 0 : i.a6.vec3.distance(ce, ze)), Ze = R.globeCenterInViewSpace, lt = i.a6.vec3.sub([], ce, [Ze[0], Ze[1], Ze[2]]);
51368
51368
  i.a6.vec3.normalize(lt, lt), i.a6.vec3.scale(lt, lt, Oe);
51369
51369
  const wt = i.a6.vec3.add([], ce, lt);
51370
51370
  i.a6.vec3.transformMat4(wt, wt, ye);
@@ -51395,9 +51395,9 @@ ${f.vertexSource}`;
51395
51395
  if (!Ae)
51396
51396
  return void i.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");
51397
51397
  ce = Ae;
51398
- const Ee = 0.5 * i.a6.vec3.sub([], ce.max, ce.min)[2], Re = this._minimumAABBFrustumDistance(R, ce), Ue = [0, 0, 1, 0];
51398
+ const Ee = 0.5 * i.a6.vec3.sub([], ce.max, ce.min)[2], Le = this._minimumAABBFrustumDistance(R, ce), Ue = [0, 0, 1, 0];
51399
51399
  i.a6.vec4.transformMat4(Ue, Ue, ve), i.a6.vec4.normalize(Ue, Ue);
51400
- const ze = i.a6.vec3.scale([], Ue, Re + Ee), Oe = i.a6.vec3.add([], ce.center, ze);
51400
+ const ze = i.a6.vec3.scale([], Ue, Le + Ee), Oe = i.a6.vec3.add([], ce.center, ze);
51401
51401
  i.a6.vec3.transformMat4(ce.center, ce.center, ye), i.a6.vec3.transformMat4(Oe, Oe, ye);
51402
51402
  const Ze = R.unproject(new i.P(ce.center[0], ce.center[1])), lt = i.dv(R.projection, Ze), wt = Math.pow(2, lt), at = Math.min(R._zoomFromMercatorZ(Oe[2] * R.pixelsPerMeter * wt / R.worldSize), P.maxZoom);
51403
51403
  return R.mercatorFromTransition && at < 0.5 * (i.c2 + i.bU) ? (R.setProjection({ name: "globe" }), R.zoom = at, this._cameraForBounds(R, a, f, _, x, w)) : { center: Ze, zoom: at, bearing: _, pitch: x };
@@ -51473,8 +51473,8 @@ ${f.vertexSource}`;
51473
51473
  const Ue = this._emulate(Ee, n.duration, f);
51474
51474
  return this._preloadTiles(Ue), this;
51475
51475
  }
51476
- const Re = { moving: this._moving, zooming: this._zooming, rotating: this._rotating, pitching: this._pitching };
51477
- return this._zooming = ge, this._rotating = ce, this._pitching = ve, this._padding = ye, this._easeId = n.easeId, this._prepareEase(a, n.noMoveStart, Re), this._ease(Ee(f), (Ue) => {
51476
+ const Le = { moving: this._moving, zooming: this._zooming, rotating: this._rotating, pitching: this._pitching };
51477
+ return this._zooming = ge, this._rotating = ce, this._pitching = ve, this._padding = ye, this._easeId = n.easeId, this._prepareEase(a, n.noMoveStart, Le), this._ease(Ee(f), (Ue) => {
51478
51478
  f.cameraElevationReference === "sea" && f.recenterOnTerrain(), this._afterEase(a, Ue);
51479
51479
  }, n), this;
51480
51480
  }
@@ -51513,7 +51513,7 @@ ${f.vertexSource}`;
51513
51513
  const At = (ve * ve - ce * ce + (ht ? -1 : 1) * Ae * Ae * ye * ye) / (2 * (ht ? ve : ce) * Ae * ye);
51514
51514
  return Math.log(Math.sqrt(At * At + 1) - At);
51515
51515
  }
51516
- function Re(ht) {
51516
+ function Le(ht) {
51517
51517
  return (Math.exp(ht) - Math.exp(-ht)) / 2;
51518
51518
  }
51519
51519
  function Ue(ht) {
@@ -51523,7 +51523,7 @@ ${f.vertexSource}`;
51523
51523
  let Oe = function(ht) {
51524
51524
  return Ue(ze) / Ue(ze + ge * ht);
51525
51525
  }, Ze = function(ht) {
51526
- return ce * ((Ue(ze) * (Re(At = ze + ge * ht) / Ue(At)) - Re(ze)) / Ae) / ye;
51526
+ return ce * ((Ue(ze) * (Le(At = ze + ge * ht) / Ue(At)) - Le(ze)) / Ae) / ye;
51527
51527
  var At;
51528
51528
  }, lt = (Ee(1) - ze) / ge;
51529
51529
  if (Math.abs(ye) < 1e-6 || !isFinite(lt)) {
@@ -53460,13 +53460,13 @@ function nk({
53460
53460
  break;
53461
53461
  }
53462
53462
  });
53463
- }, [y, t]), r0(/* @__PURE__ */ Le.jsxs("div", { className: "view-mode-switch", children: [
53464
- /* @__PURE__ */ Le.jsx("button", { className: "view-mode-switch__button", onClick: () => S(fs.clicked2D), style: {
53463
+ }, [y, t]), r0(/* @__PURE__ */ Re.jsxs("div", { className: "view-mode-switch", children: [
53464
+ /* @__PURE__ */ Re.jsx("button", { className: "view-mode-switch__button", onClick: () => S(fs.clicked2D), style: {
53465
53465
  backgroundColor: y === fs.clicked2D ? u : "white"
53466
- }, children: y === fs.clicked2D ? /* @__PURE__ */ Le.jsx(kZ, {}) : /* @__PURE__ */ Le.jsx(PZ, {}) }),
53467
- /* @__PURE__ */ Le.jsx("button", { className: "view-mode-switch__button", onClick: () => S(fs.clicked3D), style: {
53466
+ }, children: y === fs.clicked2D ? /* @__PURE__ */ Re.jsx(kZ, {}) : /* @__PURE__ */ Re.jsx(PZ, {}) }),
53467
+ /* @__PURE__ */ Re.jsx("button", { className: "view-mode-switch__button", onClick: () => S(fs.clicked3D), style: {
53468
53468
  backgroundColor: [fs.initial3D, fs.clicked3D].includes(y) ? u : "white"
53469
- }, children: [fs.initial3D, fs.clicked3D].includes(y) ? /* @__PURE__ */ Le.jsx(DZ, {}) : /* @__PURE__ */ Le.jsx(OZ, {}) })
53469
+ }, children: [fs.initial3D, fs.clicked3D].includes(y) ? /* @__PURE__ */ Re.jsx(DZ, {}) : /* @__PURE__ */ Re.jsx(OZ, {}) })
53470
53470
  ] }), i);
53471
53471
  }
53472
53472
  const zZ = (t) => {
@@ -53538,7 +53538,7 @@ function rk({
53538
53538
  F != null && F.miTransitionLevel && !isNaN(parseInt(F == null ? void 0 : F.miTransitionLevel)) && (ie.mapsIndoorsTransitionLevel = parseInt(F.miTransitionLevel)), Ci(F == null ? void 0 : F.showRoadNames) || (ie.showRoadNameLabels = F.showRoadNames);
53539
53539
  const fe = new window.mapsindoors.mapView.MapboxV3View(ie);
53540
53540
  ne(fe), r(fe);
53541
- }, []), /* @__PURE__ */ Le.jsx("div", { className: "mapsindoors-map mapbox-map-container", id: "map", "data-sentry-component": "MapboxMap", "data-sentry-source-file": "MapboxMap.jsx", children: z && /* @__PURE__ */ Le.jsx(nk, { reset: i, mapView: W, pitch: S, activeColor: F == null ? void 0 : F.brandingColor, show2DModelsIn3D: (Ce = q == null ? void 0 : q.appSettings) == null ? void 0 : Ce.show2DModelsIn3D }) });
53541
+ }, []), /* @__PURE__ */ Re.jsx("div", { className: "mapsindoors-map mapbox-map-container", id: "map", "data-sentry-component": "MapboxMap", "data-sentry-source-file": "MapboxMap.jsx", children: z && /* @__PURE__ */ Re.jsx(nk, { reset: i, mapView: W, pitch: S, activeColor: F == null ? void 0 : F.brandingColor, show2DModelsIn3D: (Ce = q == null ? void 0 : q.appSettings) == null ? void 0 : Ce.show2DModelsIn3D }) });
53542
53542
  }
53543
53543
  var NZ = function t(r, s) {
53544
53544
  if (r === s)
@@ -53765,7 +53765,7 @@ function ik({
53765
53765
  }, ae = new window.mapsindoors.mapView.GoogleMapsView(fe);
53766
53766
  ne(ae), r(ae);
53767
53767
  });
53768
- }, []), /* @__PURE__ */ Le.jsx("div", { className: "mapsindoors-map google-maps-map-container", id: "map", "data-sentry-component": "GoogleMapsMap", "data-sentry-source-file": "GoogleMapsMap.jsx" });
53768
+ }, []), /* @__PURE__ */ Re.jsx("div", { className: "mapsindoors-map google-maps-map-container", id: "map", "data-sentry-component": "GoogleMapsMap", "data-sentry-source-file": "GoogleMapsMap.jsx" });
53769
53769
  }
53770
53770
  ok.propTypes = {
53771
53771
  mapType: Ge.oneOf(["google", "mapbox"]).isRequired,
@@ -53781,7 +53781,7 @@ function ok({
53781
53781
  onPositionControl: u,
53782
53782
  brandingColor: g
53783
53783
  }) {
53784
- const y = Jw(), S = Kn(null), i = Kn(null), L = /* @__PURE__ */ Le.jsx("div", { className: "venue-selector-portal" }, "venue-selector"), z = /* @__PURE__ */ Le.jsx("div", { className: "floor-selector-portal" }, "floor-selector"), F = /* @__PURE__ */ Le.jsx("div", { className: "my-position-element-portal" }, "my-position"), q = /* @__PURE__ */ Le.jsx("div", { className: "viewmode-switch-portal" }, "viewmode-switch"), W = /* @__PURE__ */ Le.jsx("div", { className: "view-selector-portal" }, "view-selector");
53784
+ const y = Jw(), S = Kn(null), i = Kn(null), L = /* @__PURE__ */ Re.jsx("div", { className: "venue-selector-portal" }, "venue-selector"), z = /* @__PURE__ */ Re.jsx("div", { className: "floor-selector-portal" }, "floor-selector"), F = /* @__PURE__ */ Re.jsx("div", { className: "my-position-element-portal" }, "my-position"), q = /* @__PURE__ */ Re.jsx("div", { className: "viewmode-switch-portal" }, "viewmode-switch"), W = /* @__PURE__ */ Re.jsx("div", { className: "view-selector-portal" }, "view-selector");
53785
53785
  return Dt(() => {
53786
53786
  if (!(!r || !s)) {
53787
53787
  if (!S.current) {
@@ -53802,21 +53802,21 @@ function ok({
53802
53802
  ke && !ke.contains(K) && (K.remove(), ke.appendChild(K));
53803
53803
  };
53804
53804
  ne(S.current, "floor-selector-portal"), ne(i.current, "my-position-element-portal");
53805
- }, [y]), y ? /* @__PURE__ */ Le.jsxs(Le.Fragment, { children: [
53806
- /* @__PURE__ */ Le.jsxs("div", { className: "map-controls-container desktop top-right", children: [
53805
+ }, [y]), y ? /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
53806
+ /* @__PURE__ */ Re.jsxs("div", { className: "map-controls-container desktop top-right", children: [
53807
53807
  L,
53808
53808
  q,
53809
53809
  F,
53810
53810
  z
53811
53811
  ] }),
53812
- /* @__PURE__ */ Le.jsx("div", { className: "map-controls-container desktop bottom-right", children: W })
53813
- ] }) : /* @__PURE__ */ Le.jsxs(Le.Fragment, { children: [
53814
- /* @__PURE__ */ Le.jsxs("div", { className: "map-controls-left-column mobile-column", children: [
53812
+ /* @__PURE__ */ Re.jsx("div", { className: "map-controls-container desktop bottom-right", children: W })
53813
+ ] }) : /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
53814
+ /* @__PURE__ */ Re.jsxs("div", { className: "map-controls-left-column mobile-column", children: [
53815
53815
  L,
53816
53816
  q,
53817
53817
  W
53818
53818
  ] }),
53819
- /* @__PURE__ */ Le.jsxs("div", { className: "map-controls-right-column mobile-column", children: [
53819
+ /* @__PURE__ */ Re.jsxs("div", { className: "map-controls-right-column mobile-column", children: [
53820
53820
  F,
53821
53821
  z
53822
53822
  ] })
@@ -53886,10 +53886,10 @@ function sk({
53886
53886
  ae && W === id.Mapbox && ["mapbox", "3dwalls", "floorplan"].every((Ne) => ae.modules.map((bt) => bt.toLowerCase()).includes(Ne)) ? fe(!0) : fe(!1);
53887
53887
  }, [ae, W]), Dt(() => {
53888
53888
  s ? ne(id.Mapbox) : r && ne(id.Google);
53889
- }, [r, s]), /* @__PURE__ */ Le.jsxs(Le.Fragment, { children: [
53890
- W === id.Google && /* @__PURE__ */ Le.jsx(ik, { mapsIndoorsInstance: K, apiKey: r, onInitialized: Pe, center: u, zoom: g, mapOptions: z, heading: S, tilt: i, bounds: y, gmMapId: q }),
53891
- W === id.Mapbox && /* @__PURE__ */ Le.jsx(rk, { mapsIndoorsInstance: K, accessToken: s, onInitialized: Pe, center: u, zoom: g, mapOptions: z, bearing: S, pitch: i, bounds: y, resetViewMode: L, viewModeSwitchVisible: ie, appConfig: Se }),
53892
- K && Qe && W && /* @__PURE__ */ Le.jsx(ok, { mapType: W, mapsIndoorsInstance: K, mapInstance: Qe, onPositionControl: Ce, brandingColor: z == null ? void 0 : z.brandingColor })
53889
+ }, [r, s]), /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
53890
+ W === id.Google && /* @__PURE__ */ Re.jsx(ik, { mapsIndoorsInstance: K, apiKey: r, onInitialized: Pe, center: u, zoom: g, mapOptions: z, heading: S, tilt: i, bounds: y, gmMapId: q }),
53891
+ W === id.Mapbox && /* @__PURE__ */ Re.jsx(rk, { mapsIndoorsInstance: K, accessToken: s, onInitialized: Pe, center: u, zoom: g, mapOptions: z, bearing: S, pitch: i, bounds: y, resetViewMode: L, viewModeSwitchVisible: ie, appConfig: Se }),
53892
+ K && Qe && W && /* @__PURE__ */ Re.jsx(ok, { mapType: W, mapsIndoorsInstance: K, mapInstance: Qe, onPositionControl: Ce, brandingColor: z == null ? void 0 : z.brandingColor })
53893
53893
  ] });
53894
53894
  }
53895
53895
  const po = {
@@ -55568,31 +55568,31 @@ function zY() {
55568
55568
  };
55569
55569
  }, [r, i]), Ce.length <= 1)
55570
55570
  return null;
55571
- const fe = () => i ? /* @__PURE__ */ Le.jsxs("button", { className: "view-selector__toggle-button", onClick: () => s(!r), "data-sentry-component": "ToggleButton", "data-sentry-source-file": "ViewSelector.jsx", children: [
55572
- /* @__PURE__ */ Le.jsx(L3, { "data-sentry-element": "PanViewIcon", "data-sentry-source-file": "ViewSelector.jsx" }),
55573
- /* @__PURE__ */ Le.jsxs("span", { children: [
55571
+ const fe = () => i ? /* @__PURE__ */ Re.jsxs("button", { className: "view-selector__toggle-button", onClick: () => s(!r), "data-sentry-component": "ToggleButton", "data-sentry-source-file": "ViewSelector.jsx", children: [
55572
+ /* @__PURE__ */ Re.jsx(L3, { "data-sentry-element": "PanViewIcon", "data-sentry-source-file": "ViewSelector.jsx" }),
55573
+ /* @__PURE__ */ Re.jsxs("span", { children: [
55574
55574
  " ",
55575
55575
  t("Pan map to view")
55576
55576
  ] }),
55577
- r ? /* @__PURE__ */ Le.jsx(kk, {}) : /* @__PURE__ */ Le.jsx(Pk, {})
55578
- ] }) : /* @__PURE__ */ Le.jsx("button", { ref: K, className: "view-selector__toggle-button", onClick: () => s(!r), children: /* @__PURE__ */ Le.jsx(L3, {}) }), ae = () => {
55577
+ r ? /* @__PURE__ */ Re.jsx(kk, {}) : /* @__PURE__ */ Re.jsx(Pk, {})
55578
+ ] }) : /* @__PURE__ */ Re.jsx("button", { ref: K, className: "view-selector__toggle-button", onClick: () => s(!r), children: /* @__PURE__ */ Re.jsx(L3, {}) }), ae = () => {
55579
55579
  const Se = tm(() => i && Ce.length > pe ? {
55580
55580
  height: `${pe * ke}px`
55581
55581
  } : {}, [i, Ce.length]);
55582
- return /* @__PURE__ */ Le.jsx("div", { className: "building-list", style: Se, "data-sentry-component": "BuildingList", "data-sentry-source-file": "ViewSelector.jsx", children: Ce.map((be) => /* @__PURE__ */ Le.jsx("button", { className: "building-list__item", onClick: () => ie(be.id), children: /* @__PURE__ */ Le.jsx("span", { children: be.name }) }, be.id)) });
55583
- }, me = /* @__PURE__ */ Le.jsxs("div", { className: "view-selector", children: [
55584
- !i && r && /* @__PURE__ */ Le.jsxs("div", { className: "mobile-overlay", children: [
55585
- /* @__PURE__ */ Le.jsx("div", { className: "mobile-overlay__backdrop", onClick: () => s(!1) }),
55586
- /* @__PURE__ */ Le.jsxs("div", { className: "view-selector__container view-selector__container--mobile", children: [
55587
- /* @__PURE__ */ Le.jsxs("div", { className: "mobile-overlay__header", children: [
55588
- /* @__PURE__ */ Le.jsx("button", { className: "mobile-overlay__exit-button", onClick: () => s(!1), "aria-label": t("Close view selector"), children: /* @__PURE__ */ Le.jsx($m, {}) }),
55589
- /* @__PURE__ */ Le.jsx("span", { children: t("Pan map to view") })
55582
+ return /* @__PURE__ */ Re.jsx("div", { className: "building-list", style: Se, "data-sentry-component": "BuildingList", "data-sentry-source-file": "ViewSelector.jsx", children: Ce.map((be) => /* @__PURE__ */ Re.jsx("button", { className: "building-list__item", onClick: () => ie(be.id), children: /* @__PURE__ */ Re.jsx("span", { children: be.name }) }, be.id)) });
55583
+ }, me = /* @__PURE__ */ Re.jsxs("div", { className: "view-selector", children: [
55584
+ !i && r && /* @__PURE__ */ Re.jsxs("div", { className: "mobile-overlay", children: [
55585
+ /* @__PURE__ */ Re.jsx("div", { className: "mobile-overlay__backdrop", onClick: () => s(!1) }),
55586
+ /* @__PURE__ */ Re.jsxs("div", { className: "view-selector__container view-selector__container--mobile", children: [
55587
+ /* @__PURE__ */ Re.jsxs("div", { className: "mobile-overlay__header", children: [
55588
+ /* @__PURE__ */ Re.jsx("button", { className: "mobile-overlay__exit-button", onClick: () => s(!1), "aria-label": t("Close view selector"), children: /* @__PURE__ */ Re.jsx($m, {}) }),
55589
+ /* @__PURE__ */ Re.jsx("span", { children: t("Pan map to view") })
55590
55590
  ] }),
55591
- /* @__PURE__ */ Le.jsx(ae, {})
55591
+ /* @__PURE__ */ Re.jsx(ae, {})
55592
55592
  ] })
55593
55593
  ] }),
55594
- i && r && /* @__PURE__ */ Le.jsx("div", { ref: ne, className: "view-selector__container view-selector__container--desktop", children: /* @__PURE__ */ Le.jsx(ae, {}) }),
55595
- /* @__PURE__ */ Le.jsx("div", { className: `view-selector__button-container ${i ? "view-selector__button-container--desktop" : "view-selector__button-container--mobile"}`, children: /* @__PURE__ */ Le.jsx(fe, {}) })
55594
+ i && r && /* @__PURE__ */ Re.jsx("div", { ref: ne, className: "view-selector__container view-selector__container--desktop", children: /* @__PURE__ */ Re.jsx(ae, {}) }),
55595
+ /* @__PURE__ */ Re.jsx("div", { className: `view-selector__button-container ${i ? "view-selector__button-container--desktop" : "view-selector__button-container--mobile"}`, children: /* @__PURE__ */ Re.jsx(fe, {}) })
55596
55596
  ] });
55597
55597
  return q ? r0(me, q) : null;
55598
55598
  }
@@ -55686,9 +55686,9 @@ function Dk({
55686
55686
  i({
55687
55687
  showRoadNames: bt
55688
55688
  });
55689
- }, [bt]), /* @__PURE__ */ Le.jsxs(Le.Fragment, { children: [
55690
- z && /* @__PURE__ */ Le.jsx(sk, { apiKey: z, mapboxAccessToken: W === po.Mapbox ? q : void 0, gmApiKey: W === po.Google ? F : void 0, onInitialized: an, resetUICounter: y, mapOptions: S, gmMapId: L }),
55691
- z && /* @__PURE__ */ Le.jsx(zY, {})
55689
+ }, [bt]), /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
55690
+ z && /* @__PURE__ */ Re.jsx(sk, { apiKey: z, mapboxAccessToken: W === po.Mapbox ? q : void 0, gmApiKey: W === po.Google ? F : void 0, onInitialized: an, resetUICounter: y, mapOptions: S, gmMapId: L }),
55691
+ z && /* @__PURE__ */ Re.jsx(zY, {})
55692
55692
  ] });
55693
55693
  }
55694
55694
  const ul = $n({
@@ -55701,9 +55701,9 @@ const dS = $n({
55701
55701
  });
55702
55702
  function NY() {
55703
55703
  const t = Qt(ul), r = Qt(dS);
55704
- return /* @__PURE__ */ Le.jsx("div", { className: "splash-screen", "data-sentry-component": "SplashScreen", "data-sentry-source-file": "SplashScreen.jsx", children: /* @__PURE__ */ Le.jsxs("div", { className: "splash-screen__container", children: [
55705
- /* @__PURE__ */ Le.jsx("img", { className: "splash-screen__logo", src: r, alt: "logo" }),
55706
- /* @__PURE__ */ Le.jsx("div", { className: "splash-screen__loader", style: {
55704
+ return /* @__PURE__ */ Re.jsx("div", { className: "splash-screen", "data-sentry-component": "SplashScreen", "data-sentry-source-file": "SplashScreen.jsx", children: /* @__PURE__ */ Re.jsxs("div", { className: "splash-screen__container", children: [
55705
+ /* @__PURE__ */ Re.jsx("img", { className: "splash-screen__logo", src: r, alt: "logo" }),
55706
+ /* @__PURE__ */ Re.jsx("div", { className: "splash-screen__loader", style: {
55707
55707
  border: `8px solid ${t}33`,
55708
55708
  borderLeft: `8px solid ${t}`
55709
55709
  } })
@@ -56301,11 +56301,11 @@ function Uk({
56301
56301
  }, []), Dt(() => {
56302
56302
  const S = {};
56303
56303
  t.image && (S.backgroundImage = `url('${t.image}')`), y(S);
56304
- }, [t]), /* @__PURE__ */ Le.jsxs("button", { className: "venue", onClick: () => s(), "data-sentry-component": "Venue", "data-sentry-source-file": "Venue.jsx", children: [
56305
- /* @__PURE__ */ Le.jsx("div", { className: "venue__image", style: g }),
56306
- /* @__PURE__ */ Le.jsxs("div", { className: "venue__content", children: [
56307
- /* @__PURE__ */ Le.jsx("div", { children: t.venueInfo.name }),
56308
- r && /* @__PURE__ */ Le.jsx("div", { className: "venue__current", children: u("Current") })
56304
+ }, [t]), /* @__PURE__ */ Re.jsxs("button", { className: "venue", onClick: () => s(), "data-sentry-component": "Venue", "data-sentry-source-file": "Venue.jsx", children: [
56305
+ /* @__PURE__ */ Re.jsx("div", { className: "venue__image", style: g }),
56306
+ /* @__PURE__ */ Re.jsxs("div", { className: "venue__content", children: [
56307
+ /* @__PURE__ */ Re.jsx("div", { children: t.venueInfo.name }),
56308
+ r && /* @__PURE__ */ Re.jsx("div", { className: "venue__current", children: u("Current") })
56309
56309
  ] })
56310
56310
  ] });
56311
56311
  }
@@ -56333,14 +56333,14 @@ function jk({
56333
56333
  function ne(K) {
56334
56334
  q(K), z(!1);
56335
56335
  }
56336
- return /* @__PURE__ */ Le.jsxs(Le.Fragment, { children: [
56337
- !s && F && r0(/* @__PURE__ */ Le.jsx("button", { className: "venue-selector__button", onClick: () => t(), "aria-label": u("Venues"), children: /* @__PURE__ */ Le.jsx(qY, {}) }), F),
56338
- /* @__PURE__ */ Le.jsx(HY, { in: s, nodeRef: g, timeout: 400, classNames: "venue-selector__content", unmountOnExit: !0, "data-sentry-element": "CSSTransition", "data-sentry-source-file": "VenueSelector.jsx", children: /* @__PURE__ */ Le.jsxs("div", { className: "venue-selector__content", ref: g, children: [
56339
- /* @__PURE__ */ Le.jsxs("div", { className: "venue-selector__header", children: [
56340
- /* @__PURE__ */ Le.jsx("h1", { children: u("Select venue") }),
56341
- /* @__PURE__ */ Le.jsx("button", { className: "venue-selector__button", onClick: () => r(), "aria-label": u("Close"), children: /* @__PURE__ */ Le.jsx($m, { "data-sentry-element": "CloseIcon", "data-sentry-source-file": "VenueSelector.jsx" }) })
56336
+ return /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
56337
+ !s && F && r0(/* @__PURE__ */ Re.jsx("button", { className: "venue-selector__button", onClick: () => t(), "aria-label": u("Venues"), children: /* @__PURE__ */ Re.jsx(qY, {}) }), F),
56338
+ /* @__PURE__ */ Re.jsx(HY, { in: s, nodeRef: g, timeout: 400, classNames: "venue-selector__content", unmountOnExit: !0, "data-sentry-element": "CSSTransition", "data-sentry-source-file": "VenueSelector.jsx", children: /* @__PURE__ */ Re.jsxs("div", { className: "venue-selector__content", ref: g, children: [
56339
+ /* @__PURE__ */ Re.jsxs("div", { className: "venue-selector__header", children: [
56340
+ /* @__PURE__ */ Re.jsx("h1", { children: u("Select venue") }),
56341
+ /* @__PURE__ */ Re.jsx("button", { className: "venue-selector__button", onClick: () => r(), "aria-label": u("Close"), children: /* @__PURE__ */ Re.jsx($m, { "data-sentry-element": "CloseIcon", "data-sentry-source-file": "VenueSelector.jsx" }) })
56342
56342
  ] }),
56343
- /* @__PURE__ */ Le.jsx("div", { className: "venue-selector__list", children: y.map((K) => /* @__PURE__ */ Le.jsx(Uk, { isCurrent: (i == null ? void 0 : i.toLowerCase()) === K.name.toLowerCase(), venue: K, onVenueClicked: () => ne(K) }, K.id)) })
56343
+ /* @__PURE__ */ Re.jsx("div", { className: "venue-selector__list", children: y.map((K) => /* @__PURE__ */ Re.jsx(Uk, { isCurrent: (i == null ? void 0 : i.toLowerCase()) === K.name.toLowerCase(), venue: K, onVenueClicked: () => ne(K) }, K.id)) })
56344
56344
  ] }) })
56345
56345
  ] });
56346
56346
  }
@@ -56571,7 +56571,7 @@ const hd = t0(function({
56571
56571
  }, Qe = zr.Children.map(r, (mt) => Y3(mt, {
56572
56572
  snapPointSwipedByUser: pe
56573
56573
  }));
56574
- return /* @__PURE__ */ Le.jsx("div", { ...Se, ref: be, className: `sheet ${s ? "sheet--active" : ""} ${ne ? "sheet--dragging" : ""}`, style: q, children: /* @__PURE__ */ Le.jsx("div", { ref: i, className: `sheet__content ${F.current === dr.MIN ? "sheet__content--no-scroll" : ""}`, style: q, children: Qe }) });
56574
+ return /* @__PURE__ */ Re.jsx("div", { ...Se, ref: be, className: `sheet ${s ? "sheet--active" : ""} ${ne ? "sheet--dragging" : ""}`, style: q, children: /* @__PURE__ */ Re.jsx("div", { ref: i, className: `sheet__content ${F.current === dr.MIN ? "sheet__content--no-scroll" : ""}`, style: q, children: Qe }) });
56575
56575
  });
56576
56576
  hd.propTypes = {
56577
56577
  children: Ge.node.isRequired,
@@ -56749,20 +56749,20 @@ function qk({
56749
56749
  }).toLowerCase();
56750
56750
  return K(q == null ? void 0 : q[ie]) ? "Open" : "Closed";
56751
56751
  }, [q, z, F, K, s])(), Ce = (ie) => ie.charAt(0).toUpperCase() + ie.slice(1);
56752
- return /* @__PURE__ */ Le.jsxs("div", { className: "opening-hours", "data-sentry-component": "OpeningHours", "data-sentry-source-file": "OpeningHours.jsx", children: [
56753
- /* @__PURE__ */ Le.jsxs("button", { className: "contact-action-button contact-action-button--opening-hours", onClick: () => g(!u), children: [
56754
- /* @__PURE__ */ Le.jsx("div", { className: "contact-action-button__icon-wrapper", children: /* @__PURE__ */ Le.jsx(sX, { "data-sentry-element": "ClockIcon", "data-sentry-source-file": "OpeningHours.jsx" }) }),
56755
- /* @__PURE__ */ Le.jsx("div", { className: "contact-action-button__text", children: ne(z[F]).text }),
56756
- /* @__PURE__ */ Le.jsx("span", { className: `contact-action-button--opening-hours__status contact-action-button--opening-hours__status--${ke.toLowerCase()}`, children: s(ke) }),
56757
- u ? /* @__PURE__ */ Le.jsx(Pk, {}) : /* @__PURE__ */ Le.jsx(kk, {})
56752
+ return /* @__PURE__ */ Re.jsxs("div", { className: "opening-hours", "data-sentry-component": "OpeningHours", "data-sentry-source-file": "OpeningHours.jsx", children: [
56753
+ /* @__PURE__ */ Re.jsxs("button", { className: "contact-action-button contact-action-button--opening-hours", onClick: () => g(!u), children: [
56754
+ /* @__PURE__ */ Re.jsx("div", { className: "contact-action-button__icon-wrapper", children: /* @__PURE__ */ Re.jsx(sX, { "data-sentry-element": "ClockIcon", "data-sentry-source-file": "OpeningHours.jsx" }) }),
56755
+ /* @__PURE__ */ Re.jsx("div", { className: "contact-action-button__text", children: ne(z[F]).text }),
56756
+ /* @__PURE__ */ Re.jsx("span", { className: `contact-action-button--opening-hours__status contact-action-button--opening-hours__status--${ke.toLowerCase()}`, children: s(ke) }),
56757
+ u ? /* @__PURE__ */ Re.jsx(Pk, {}) : /* @__PURE__ */ Re.jsx(kk, {})
56758
56758
  ] }),
56759
- u && /* @__PURE__ */ Le.jsx("ul", { className: "opening-hours__list", children: z.map((ie) => {
56759
+ u && /* @__PURE__ */ Re.jsx("ul", { className: "opening-hours__list", children: z.map((ie) => {
56760
56760
  const fe = ne(ie);
56761
- return /* @__PURE__ */ Le.jsxs("li", { className: "opening-hours__list-item", children: [
56762
- /* @__PURE__ */ Le.jsx("span", { className: "opening-hours__day", children: Ce(ie.toLocaleString(S, {
56761
+ return /* @__PURE__ */ Re.jsxs("li", { className: "opening-hours__list-item", children: [
56762
+ /* @__PURE__ */ Re.jsx("span", { className: "opening-hours__day", children: Ce(ie.toLocaleString(S, {
56763
56763
  weekday: "long"
56764
56764
  })) }),
56765
- /* @__PURE__ */ Le.jsx("span", { className: `opening-hours__hours ${fe.isClosed ? "opening-hours__hours--closed" : ""}`, children: fe.text })
56765
+ /* @__PURE__ */ Re.jsx("span", { className: `opening-hours__hours ${fe.isClosed ? "opening-hours__hours--closed" : ""}`, children: fe.text })
56766
56766
  ] }, ie);
56767
56767
  }) })
56768
56768
  ] });
@@ -56916,15 +56916,15 @@ function Kk({
56916
56916
  }, Ce = () => {
56917
56917
  K(S), g(!1);
56918
56918
  };
56919
- return (z || q) && /* @__PURE__ */ Le.jsxs("div", { className: "share-location-link", children: [
56920
- /* @__PURE__ */ Le.jsx("button", { className: r, onClick: () => g((ie) => !ie), title: s("Share"), "aria-label": s("Share"), children: /* @__PURE__ */ Le.jsx(cX, {}) }),
56921
- u && /* @__PURE__ */ Le.jsx(Wk, { onClickAway: () => g(!1), children: /* @__PURE__ */ Le.jsxs("ul", { children: [
56922
- q && /* @__PURE__ */ Le.jsx("li", { children: /* @__PURE__ */ Le.jsxs("button", { className: r, onClick: () => ke(), children: [
56923
- /* @__PURE__ */ Le.jsx(lX, {}),
56919
+ return (z || q) && /* @__PURE__ */ Re.jsxs("div", { className: "share-location-link", children: [
56920
+ /* @__PURE__ */ Re.jsx("button", { className: r, onClick: () => g((ie) => !ie), title: s("Share"), "aria-label": s("Share"), children: /* @__PURE__ */ Re.jsx(cX, {}) }),
56921
+ u && /* @__PURE__ */ Re.jsx(Wk, { onClickAway: () => g(!1), children: /* @__PURE__ */ Re.jsxs("ul", { children: [
56922
+ q && /* @__PURE__ */ Re.jsx("li", { children: /* @__PURE__ */ Re.jsxs("button", { className: r, onClick: () => ke(), children: [
56923
+ /* @__PURE__ */ Re.jsx(lX, {}),
56924
56924
  s("Copy link")
56925
56925
  ] }) }),
56926
- z && /* @__PURE__ */ Le.jsx("li", { children: /* @__PURE__ */ Le.jsxs("button", { className: r, onClick: () => Ce(), children: [
56927
- /* @__PURE__ */ Le.jsx(Yk, {}),
56926
+ z && /* @__PURE__ */ Re.jsx("li", { children: /* @__PURE__ */ Re.jsxs("button", { className: r, onClick: () => Ce(), children: [
56927
+ /* @__PURE__ */ Re.jsx(Yk, {}),
56928
56928
  s("QR Code")
56929
56929
  ] }) })
56930
56930
  ] }) })
@@ -56964,9 +56964,9 @@ function Jk({
56964
56964
  }
56965
56965
  }
56966
56966
  };
56967
- return /* @__PURE__ */ Le.jsxs("a", { className: "contact-action-button", href: S(t, u), target: t.toLowerCase() === "email" || t.toLowerCase() === "phone" ? "_self" : "_blank", rel: "noopener noreferrer", "data-sentry-component": "ContactActionButton", "data-sentry-source-file": "ContactActionButton.jsx", children: [
56968
- /* @__PURE__ */ Le.jsx("div", { className: "contact-action-button__icon-wrapper", children: /* @__PURE__ */ Le.jsx("img", { alt: "", src: g, className: "contact-action-button__icon" }) }),
56969
- /* @__PURE__ */ Le.jsx("span", { className: "contact-action-button__text", children: y })
56967
+ return /* @__PURE__ */ Re.jsxs("a", { className: "contact-action-button", href: S(t, u), target: t.toLowerCase() === "email" || t.toLowerCase() === "phone" ? "_self" : "_blank", rel: "noopener noreferrer", "data-sentry-component": "ContactActionButton", "data-sentry-source-file": "ContactActionButton.jsx", children: [
56968
+ /* @__PURE__ */ Re.jsx("div", { className: "contact-action-button__icon-wrapper", children: /* @__PURE__ */ Re.jsx("img", { alt: "", src: g, className: "contact-action-button__icon" }) }),
56969
+ /* @__PURE__ */ Re.jsx("span", { className: "contact-action-button__text", children: y })
56970
56970
  ] });
56971
56971
  }
56972
56972
  mS.propTypes = {
@@ -57040,36 +57040,38 @@ function mS({
57040
57040
  return;
57041
57041
  }
57042
57042
  q(y === dr.MAX), y === dr.MAX ? Lt() : en();
57043
- }, [y]), /* @__PURE__ */ Le.jsx("div", { className: `location-details ${ke.current === !0 ? "location-details--max-height" : ""} ${W ? "location-details--content-above" : ""} ${K ? "location-details--content-below" : ""}`, "data-sentry-component": "LocationDetails", "data-sentry-source-file": "LocationDetails.jsx", children: ae && /* @__PURE__ */ Le.jsxs(Le.Fragment, { children: [
57044
- /* @__PURE__ */ Le.jsxs("div", { className: "location-info", children: [
57045
- /* @__PURE__ */ Le.jsx("div", { className: "location-info__icon", children: Ce && /* @__PURE__ */ Le.jsx("img", { alt: "", src: Ce.icon.src ? Ce.icon.src : Ce.icon }) }),
57046
- /* @__PURE__ */ Le.jsxs("div", { className: "location-info__content", children: [
57047
- /* @__PURE__ */ Le.jsx("div", { className: "location-info__name", children: ae.properties.name }),
57048
- /* @__PURE__ */ Le.jsx("mi-location-info", { level: S("Level"), ref: i, "show-external-id": Pt })
57043
+ }, [y]), /* @__PURE__ */ Re.jsx("div", { className: `location-details ${ke.current === !0 ? "location-details--max-height" : ""} ${W ? "location-details--content-above" : ""} ${K ? "location-details--content-below" : ""}`, "data-sentry-component": "LocationDetails", "data-sentry-source-file": "LocationDetails.jsx", children: ae && /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
57044
+ /* @__PURE__ */ Re.jsxs("div", { className: "location-details__header", children: [
57045
+ /* @__PURE__ */ Re.jsxs("div", { className: "location-info", children: [
57046
+ /* @__PURE__ */ Re.jsx("div", { className: "location-info__icon", children: Ce && /* @__PURE__ */ Re.jsx("img", { alt: "", src: Ce.icon.src ? Ce.icon.src : Ce.icon }) }),
57047
+ /* @__PURE__ */ Re.jsxs("div", { className: "location-info__content", children: [
57048
+ /* @__PURE__ */ Re.jsx("div", { className: "location-info__name", children: ae.properties.name }),
57049
+ /* @__PURE__ */ Re.jsx("mi-location-info", { level: S("Level"), ref: i, "show-external-id": Pt })
57050
+ ] }),
57051
+ /* @__PURE__ */ Re.jsxs("div", { className: "location-info__actions", children: [
57052
+ /* @__PURE__ */ Re.jsx(Kk, { buttonClassName: "location-info__button", location: ae }),
57053
+ /* @__PURE__ */ Re.jsx("button", { className: "location-info__button", onClick: () => Je(), children: /* @__PURE__ */ Re.jsx($m, {}) })
57054
+ ] })
57049
57055
  ] }),
57050
- /* @__PURE__ */ Le.jsxs("div", { className: "location-info__actions", children: [
57051
- /* @__PURE__ */ Le.jsx(Kk, { buttonClassName: "location-info__button", location: ae }),
57052
- /* @__PURE__ */ Le.jsx("button", { className: "location-info__button", onClick: () => Je(), children: /* @__PURE__ */ Le.jsx($m, {}) })
57053
- ] })
57056
+ Ne && an ? /* @__PURE__ */ Re.jsx("button", { disabled: !pt, onClick: () => Rn(), className: `location-details__wayfinding ${pt ? "" : "location-details--no-route"}`, style: {
57057
+ background: Pe
57058
+ }, children: S(pt ? "Start directions" : "Directions not available") }) : /* @__PURE__ */ Re.jsx("button", { onClick: () => xe(), style: {
57059
+ background: Pe
57060
+ }, className: "location-details__wayfinding", children: S("Start wayfinding") })
57054
57061
  ] }),
57055
- Ne && an ? /* @__PURE__ */ Le.jsx("button", { disabled: !pt, onClick: () => Rn(), className: `location-details__wayfinding ${pt ? "" : "location-details--no-route"}`, style: {
57056
- background: Pe
57057
- }, children: S(pt ? "Start directions" : "Directions not available") }) : /* @__PURE__ */ Le.jsx("button", { onClick: () => xe(), style: {
57058
- background: Pe
57059
- }, className: "location-details__wayfinding", children: S("Start wayfinding") }),
57060
- /* @__PURE__ */ Le.jsxs("div", { ref: L, onScroll: (ut) => Xt(), className: "location-details__details prevent-scroll", ...mt, children: [
57061
- ae.properties.imageURL && /* @__PURE__ */ Le.jsx("img", { alt: "", src: ae.properties.imageURL, className: "location-details__image" }),
57062
- Object.keys(ae.properties.categories).length > 0 && /* @__PURE__ */ Le.jsx("p", { className: "location-details__categories", children: Object.values(ae.properties.categories).map((ut, pr, Qn) => /* @__PURE__ */ Le.jsxs(zr.Fragment, { children: [
57062
+ /* @__PURE__ */ Re.jsxs("div", { ref: L, onScroll: (ut) => Xt(), className: "location-details__details prevent-scroll", ...mt, children: [
57063
+ ae.properties.imageURL && /* @__PURE__ */ Re.jsx("img", { alt: "", src: ae.properties.imageURL, className: "location-details__image" }),
57064
+ Object.keys(ae.properties.categories).length > 0 && /* @__PURE__ */ Re.jsx("p", { className: "location-details__categories", children: Object.values(ae.properties.categories).map((ut, pr, Qn) => /* @__PURE__ */ Re.jsxs(zr.Fragment, { children: [
57063
57065
  ut,
57064
- pr < Qn.length - 1 && /* @__PURE__ */ Le.jsx(Le.Fragment, { children: "・" })
57066
+ pr < Qn.length - 1 && /* @__PURE__ */ Re.jsx(Re.Fragment, { children: "・" })
57065
57067
  ] }, ut)) }),
57066
- ae.properties.description && /* @__PURE__ */ Le.jsxs("section", { className: `location-details__description ${F ? "location-details__description--full" : ""}`, children: [
57067
- /* @__PURE__ */ Le.jsx("div", { ref: z, children: ae.properties.description }),
57068
- (be || Qe || F) && /* @__PURE__ */ Le.jsx("button", { onClick: () => $t(), children: S(F ? "Close" : "Read full description") })
57068
+ ae.properties.description && /* @__PURE__ */ Re.jsxs("section", { className: `location-details__description ${F ? "location-details__description--full" : ""}`, children: [
57069
+ /* @__PURE__ */ Re.jsx("div", { ref: z, children: ae.properties.description }),
57070
+ (be || Qe || F) && /* @__PURE__ */ Re.jsx("button", { onClick: () => $t(), children: S(F ? "Close" : "Read full description") })
57069
57071
  ] }),
57070
- me && /* @__PURE__ */ Le.jsxs("div", { className: "contact-action-buttons-container", children: [
57071
- me.map((ut) => /* @__PURE__ */ Le.jsx(Jk, { detailType: ut.detailType, active: ut.active, displayText: ut.displayText, value: ut.value, icon: ut.icon }, ut.key)),
57072
- Se && /* @__PURE__ */ Le.jsx(aX, { openingHours: Se })
57072
+ me && /* @__PURE__ */ Re.jsxs("div", { className: "contact-action-buttons-container", children: [
57073
+ me.map((ut) => /* @__PURE__ */ Re.jsx(Jk, { detailType: ut.detailType, active: ut.active, displayText: ut.displayText, value: ut.value, icon: ut.icon }, ut.key)),
57074
+ Se && /* @__PURE__ */ Re.jsx(aX, { openingHours: Se })
57073
57075
  ] })
57074
57076
  ] })
57075
57077
  ] }) });
@@ -57106,7 +57108,7 @@ function s1({
57106
57108
  return q.location = t, q.icon = s || S.getDisplayRule(t).icon, q.addEventListener("locationClicked", L), q.addEventListener("mouseover", z), q.addEventListener("mouseout", F), u ? y.current.classList.add("hovered") : y.current.classList.remove("hovered"), () => {
57107
57109
  q.removeEventListener("locationClicked", L), q.removeEventListener("mouseover", z), q.removeEventListener("mouseout", F);
57108
57110
  };
57109
- }, [t, r, u]), /* @__PURE__ */ Le.jsx("mi-list-item-location", { level: g("Level"), ref: y, "show-external-id": i, "data-sentry-element": "mi-list-item-location", "data-sentry-component": "ListItemLocation", "data-sentry-source-file": "ListItemLocation.jsx" });
57111
+ }, [t, r, u]), /* @__PURE__ */ Re.jsx("mi-list-item-location", { level: g("Level"), ref: y, "show-external-id": i, "data-sentry-element": "mi-list-item-location", "data-sentry-component": "ListItemLocation", "data-sentry-source-file": "ListItemLocation.jsx" });
57110
57112
  }
57111
57113
  const dX = () => {
57112
57114
  const [t, r] = yn(), s = Qt(Bs), u = Qt(Q0);
@@ -57171,7 +57173,7 @@ const dX = () => {
57171
57173
  return g === !0 && (Qe.mapsindoors = "true"), Qe.addEventListener("results", Se), Qe.addEventListener("click", S), Qe.addEventListener("cleared", be), Qe.addEventListener("changed", L), () => {
57172
57174
  Qe.removeEventListener("results", Se), Qe.removeEventListener("click", S), Qe.removeEventListener("cleared", be), Qe.removeEventListener("changed", L);
57173
57175
  };
57174
- }, [u, g, y, S, i, F, q, L]), /* @__PURE__ */ Le.jsx("mi-search", { ref: ne, "id-attribute": "search", placeholder: u, "session-token": Ce, "user-position": ie.latitude !== void 0 && ie.longitude !== void 0 ? Object.values(ie).join(",") : null, "mi-near": fe, "mi-categories": z, disabled: W, mapbox: q, google: F, "mi-venue": me ? void 0 : ae, language: pe });
57176
+ }, [u, g, y, S, i, F, q, L]), /* @__PURE__ */ Re.jsx("mi-search", { ref: ne, "id-attribute": "search", placeholder: u, "session-token": Ce, "user-position": ie.latitude !== void 0 && ie.longitude !== void 0 ? Object.values(ie).join(",") : null, "mi-near": fe, "mi-categories": z, disabled: W, mapbox: q, google: F, "mi-venue": me ? void 0 : ae, language: pe });
57175
57177
  });
57176
57178
  Jy.propTypes = {
57177
57179
  placeholder: Ge.string,
@@ -57227,7 +57229,7 @@ function Qk({
57227
57229
  current: g
57228
57230
  } = s;
57229
57231
  return g.addEventListener("change", u), () => g.removeEventListener("change", u);
57230
- }, [t]), /* @__PURE__ */ Le.jsx("mi-dropdown", { ref: s, "data-sentry-element": "mi-dropdown", "data-sentry-component": "Dropdown", "data-sentry-source-file": "Dropdown.jsx", children: r });
57232
+ }, [t]), /* @__PURE__ */ Re.jsx("mi-dropdown", { ref: s, "data-sentry-element": "mi-dropdown", "data-sentry-component": "Dropdown", "data-sentry-source-file": "Dropdown.jsx", children: r });
57231
57233
  }
57232
57234
  function gX(t, r) {
57233
57235
  const s = sessionStorage.getItem("mapboxPlacesSessionToken");
@@ -57257,11 +57259,11 @@ function _S({
57257
57259
  function g(y) {
57258
57260
  u(y.target.checked), t && t();
57259
57261
  }
57260
- return /* @__PURE__ */ Le.jsxs("div", { className: "accessibility", "data-sentry-component": "Accessibility", "data-sentry-source-file": "Accessibility.jsx", children: [
57261
- /* @__PURE__ */ Le.jsx("input", { className: "mi-toggle", type: "checkbox", checked: s, onChange: (y) => g(y), style: {
57262
+ return /* @__PURE__ */ Re.jsxs("div", { className: "accessibility", "data-sentry-component": "Accessibility", "data-sentry-source-file": "Accessibility.jsx", children: [
57263
+ /* @__PURE__ */ Re.jsx("input", { className: "mi-toggle", type: "checkbox", checked: s, onChange: (y) => g(y), style: {
57262
57264
  backgroundColor: s ? r : ""
57263
57265
  } }),
57264
- /* @__PURE__ */ Le.jsx("div", { children: YL("Avoid stairs and escalators") })
57266
+ /* @__PURE__ */ Re.jsx("div", { children: YL("Avoid stairs and escalators") })
57265
57267
  ] });
57266
57268
  }
57267
57269
  const eP = $n({
@@ -57367,76 +57369,76 @@ function yS({
57367
57369
  K === po.Mapbox && (Nt(!1), Pe(mt.filter((dt) => dt.properties.type !== "google_places")));
57368
57370
  }, [K]), Dt(() => {
57369
57371
  ne && (bt(ne), z.current.setDisplayText(ne.properties.name));
57370
- }, [ne]), /* @__PURE__ */ Le.jsxs("div", { className: "wayfinding", ref: i, "data-sentry-component": "Wayfinding", "data-sentry-source-file": "Wayfinding.jsx", children: [
57371
- /* @__PURE__ */ Le.jsxs("div", { className: "wayfinding__directions", children: [
57372
- /* @__PURE__ */ Le.jsx("div", { className: "wayfinding__title", children: S("Directions") }),
57373
- /* @__PURE__ */ Le.jsx("button", { className: "wayfinding__close", onClick: () => Wn(), "aria-label": "Close", children: /* @__PURE__ */ Le.jsx($m, { "data-sentry-element": "CloseIcon", "data-sentry-source-file": "Wayfinding.jsx" }) }),
57374
- /* @__PURE__ */ Le.jsxs("div", { className: "wayfinding__locations", children: [
57375
- /* @__PURE__ */ Le.jsxs("label", { className: "wayfinding__label", children: [
57376
- /* @__PURE__ */ Le.jsx("span", { children: S("Choose departure") }),
57377
- /* @__PURE__ */ Le.jsx(Jy, { ref: F, mapsindoors: !0, google: K === po.Google && Zt, mapbox: K === po.Mapbox && Zt, placeholder: S("Choose departure"), results: (dt) => ft(dt, Vi.FROM), clicked: () => Ir(Vi.FROM), cleared: () => In(Vi.FROM), changed: () => Qn(Vi.FROM), "data-sentry-element": "SearchField", "data-sentry-source-file": "Wayfinding.jsx" })
57372
+ }, [ne]), /* @__PURE__ */ Re.jsxs("div", { className: "wayfinding", ref: i, "data-sentry-component": "Wayfinding", "data-sentry-source-file": "Wayfinding.jsx", children: [
57373
+ /* @__PURE__ */ Re.jsxs("div", { className: "wayfinding__directions", children: [
57374
+ /* @__PURE__ */ Re.jsx("div", { className: "wayfinding__title", children: S("Directions") }),
57375
+ /* @__PURE__ */ Re.jsx("button", { className: "wayfinding__close", onClick: () => Wn(), "aria-label": "Close", children: /* @__PURE__ */ Re.jsx($m, { "data-sentry-element": "CloseIcon", "data-sentry-source-file": "Wayfinding.jsx" }) }),
57376
+ /* @__PURE__ */ Re.jsxs("div", { className: "wayfinding__locations", children: [
57377
+ /* @__PURE__ */ Re.jsxs("label", { className: "wayfinding__label", children: [
57378
+ /* @__PURE__ */ Re.jsx("span", { children: S("Choose departure") }),
57379
+ /* @__PURE__ */ Re.jsx(Jy, { ref: F, mapsindoors: !0, google: K === po.Google && Zt, mapbox: K === po.Mapbox && Zt, placeholder: S("Choose departure"), results: (dt) => ft(dt, Vi.FROM), clicked: () => Ir(Vi.FROM), cleared: () => In(Vi.FROM), changed: () => Qn(Vi.FROM), "data-sentry-element": "SearchField", "data-sentry-source-file": "Wayfinding.jsx" })
57378
57380
  ] }),
57379
- /* @__PURE__ */ Le.jsx("button", { onClick: () => Br(), "aria-label": S("Switch"), className: "wayfinding__switch", children: /* @__PURE__ */ Le.jsx(hX, { "data-sentry-element": "SwitchIcon", "data-sentry-source-file": "Wayfinding.jsx" }) }),
57380
- /* @__PURE__ */ Le.jsxs("label", { className: "wayfinding__label", children: [
57381
- /* @__PURE__ */ Le.jsx("span", { children: S("Choose destination") }),
57382
- /* @__PURE__ */ Le.jsx(Jy, { ref: z, mapsindoors: !0, google: K === po.Google && Zt, mapbox: K === po.Mapbox && Zt, placeholder: S("Choose destination"), results: (dt) => ft(dt, Vi.TO), clicked: () => Ir(Vi.TO), cleared: () => In(Vi.TO), changed: () => Qn(Vi.TO), "data-sentry-element": "SearchField", "data-sentry-source-file": "Wayfinding.jsx" })
57381
+ /* @__PURE__ */ Re.jsx("button", { onClick: () => Br(), "aria-label": S("Switch"), className: "wayfinding__switch", children: /* @__PURE__ */ Re.jsx(hX, { "data-sentry-element": "SwitchIcon", "data-sentry-source-file": "Wayfinding.jsx" }) }),
57382
+ /* @__PURE__ */ Re.jsxs("label", { className: "wayfinding__label", children: [
57383
+ /* @__PURE__ */ Re.jsx("span", { children: S("Choose destination") }),
57384
+ /* @__PURE__ */ Re.jsx(Jy, { ref: z, mapsindoors: !0, google: K === po.Google && Zt, mapbox: K === po.Mapbox && Zt, placeholder: S("Choose destination"), results: (dt) => ft(dt, Vi.TO), clicked: () => Ir(Vi.TO), cleared: () => In(Vi.TO), changed: () => Qn(Vi.TO), "data-sentry-element": "SearchField", "data-sentry-source-file": "Wayfinding.jsx" })
57383
57385
  ] })
57384
57386
  ] })
57385
57387
  ] }),
57386
- !en && /* @__PURE__ */ Le.jsx("p", { className: "wayfinding__error", children: S("No route found") }),
57387
- !me && !Pt && /* @__PURE__ */ Le.jsx("p", { className: "wayfinding__error", children: S("Nothing was found") }),
57388
- W && Pt && /* @__PURE__ */ Le.jsxs("button", { type: "button", className: "wayfinding__use-current-position", onClick: () => ut(), children: [
57389
- /* @__PURE__ */ Le.jsx(mX, {}),
57388
+ !en && /* @__PURE__ */ Re.jsx("p", { className: "wayfinding__error", children: S("No route found") }),
57389
+ !me && !Pt && /* @__PURE__ */ Re.jsx("p", { className: "wayfinding__error", children: S("Nothing was found") }),
57390
+ W && Pt && /* @__PURE__ */ Re.jsxs("button", { type: "button", className: "wayfinding__use-current-position", onClick: () => ut(), children: [
57391
+ /* @__PURE__ */ Re.jsx(mX, {}),
57390
57392
  S("My position")
57391
57393
  ] }),
57392
- mt.length > 0 && /* @__PURE__ */ Le.jsx("div", { className: "wayfinding__scrollable", ...qt, children: /* @__PURE__ */ Le.jsxs("div", { className: "wayfinding__results", children: [
57393
- mt.map((dt) => /* @__PURE__ */ Le.jsx(s1, { icon: dt.properties.type === "google_places" || dt.properties.type === "mapbox_places" ? yX : void 0, location: dt, locationClicked: (jn) => Rn(jn) }, dt.id)),
57394
- an && /* @__PURE__ */ Le.jsx("img", { className: "wayfinding__google", alt: "Powered by Google", src: pX })
57394
+ mt.length > 0 && /* @__PURE__ */ Re.jsx("div", { className: "wayfinding__scrollable", ...qt, children: /* @__PURE__ */ Re.jsxs("div", { className: "wayfinding__results", children: [
57395
+ mt.map((dt) => /* @__PURE__ */ Re.jsx(s1, { icon: dt.properties.type === "google_places" || dt.properties.type === "mapbox_places" ? yX : void 0, location: dt, locationClicked: (jn) => Rn(jn) }, dt.id)),
57396
+ an && /* @__PURE__ */ Re.jsx("img", { className: "wayfinding__google", alt: "Powered by Google", src: pX })
57395
57397
  ] }) }),
57396
- !be && !Pt && en && !an && yt && Ne && /* @__PURE__ */ Le.jsxs("div", { className: "wayfinding__details", ref: L, children: [
57397
- /* @__PURE__ */ Le.jsxs("div", { className: "wayfinding__settings", children: [
57398
- /* @__PURE__ */ Le.jsx(_S, {}),
57399
- /* @__PURE__ */ Le.jsx("div", { className: "wayfinding__travel", children: /* @__PURE__ */ Le.jsxs(Qk, { selectionChanged: (dt) => pt(dt[0].value), children: [
57400
- /* @__PURE__ */ Le.jsxs("mi-dropdown-item", { selected: !0, value: yu.WALKING, children: [
57401
- /* @__PURE__ */ Le.jsx(F3, {}),
57398
+ !be && !Pt && en && !an && yt && Ne && /* @__PURE__ */ Re.jsxs("div", { className: "wayfinding__details", ref: L, children: [
57399
+ /* @__PURE__ */ Re.jsxs("div", { className: "wayfinding__settings", children: [
57400
+ /* @__PURE__ */ Re.jsx(_S, {}),
57401
+ /* @__PURE__ */ Re.jsx("div", { className: "wayfinding__travel", children: /* @__PURE__ */ Re.jsxs(Qk, { selectionChanged: (dt) => pt(dt[0].value), children: [
57402
+ /* @__PURE__ */ Re.jsxs("mi-dropdown-item", { selected: !0, value: yu.WALKING, children: [
57403
+ /* @__PURE__ */ Re.jsx(F3, {}),
57402
57404
  S("Walk")
57403
57405
  ] }),
57404
- /* @__PURE__ */ Le.jsxs("mi-dropdown-item", { value: yu.DRIVING, children: [
57405
- /* @__PURE__ */ Le.jsx(U3, {}),
57406
+ /* @__PURE__ */ Re.jsxs("mi-dropdown-item", { value: yu.DRIVING, children: [
57407
+ /* @__PURE__ */ Re.jsx(U3, {}),
57406
57408
  S("Drive")
57407
57409
  ] }),
57408
- /* @__PURE__ */ Le.jsxs("mi-dropdown-item", { value: yu.BICYCLING, children: [
57409
- /* @__PURE__ */ Le.jsx(j3, {}),
57410
+ /* @__PURE__ */ Re.jsxs("mi-dropdown-item", { value: yu.BICYCLING, children: [
57411
+ /* @__PURE__ */ Re.jsx(j3, {}),
57410
57412
  S("Bike")
57411
57413
  ] })
57412
57414
  ] }) })
57413
57415
  ] }),
57414
- /* @__PURE__ */ Le.jsx("hr", {}),
57415
- /* @__PURE__ */ Le.jsxs("div", { className: "wayfinding__info", children: [
57416
- /* @__PURE__ */ Le.jsxs("div", { className: "wayfinding__distance", children: [
57417
- Bt === yu.WALKING && /* @__PURE__ */ Le.jsx(F3, {}),
57418
- Bt === yu.DRIVING && /* @__PURE__ */ Le.jsx(U3, {}),
57419
- Bt === yu.BICYCLING && /* @__PURE__ */ Le.jsx(j3, {}),
57420
- /* @__PURE__ */ Le.jsxs("div", { children: [
57416
+ /* @__PURE__ */ Re.jsx("hr", {}),
57417
+ /* @__PURE__ */ Re.jsxs("div", { className: "wayfinding__info", children: [
57418
+ /* @__PURE__ */ Re.jsxs("div", { className: "wayfinding__distance", children: [
57419
+ Bt === yu.WALKING && /* @__PURE__ */ Re.jsx(F3, {}),
57420
+ Bt === yu.DRIVING && /* @__PURE__ */ Re.jsx(U3, {}),
57421
+ Bt === yu.BICYCLING && /* @__PURE__ */ Re.jsx(j3, {}),
57422
+ /* @__PURE__ */ Re.jsxs("div", { children: [
57421
57423
  S("Distance"),
57422
57424
  ":"
57423
57425
  ] }),
57424
- /* @__PURE__ */ Le.jsx("div", { className: "wayfinding__meters", children: $t && Xt && /* @__PURE__ */ Le.jsx("mi-distance", { unit: gt, meters: $t }) })
57426
+ /* @__PURE__ */ Re.jsx("div", { className: "wayfinding__meters", children: $t && Xt && /* @__PURE__ */ Re.jsx("mi-distance", { unit: gt, meters: $t }) })
57425
57427
  ] }),
57426
- /* @__PURE__ */ Le.jsxs("div", { className: "wayfinding__time", children: [
57427
- /* @__PURE__ */ Le.jsx(uX, {}),
57428
- /* @__PURE__ */ Le.jsxs("div", { children: [
57428
+ /* @__PURE__ */ Re.jsxs("div", { className: "wayfinding__time", children: [
57429
+ /* @__PURE__ */ Re.jsx(uX, {}),
57430
+ /* @__PURE__ */ Re.jsxs("div", { children: [
57429
57431
  S("Estimated time"),
57430
57432
  ":"
57431
57433
  ] }),
57432
- /* @__PURE__ */ Le.jsx("div", { className: "wayfinding__minutes", children: Lt && Xt && /* @__PURE__ */ Le.jsx("mi-time", { translations: JSON.stringify({
57434
+ /* @__PURE__ */ Re.jsx("div", { className: "wayfinding__minutes", children: Lt && Xt && /* @__PURE__ */ Re.jsx("mi-time", { translations: JSON.stringify({
57433
57435
  days: S("d"),
57434
57436
  hours: S("h"),
57435
57437
  minutes: S("min")
57436
57438
  }), seconds: Lt }) })
57437
57439
  ] })
57438
57440
  ] }),
57439
- /* @__PURE__ */ Le.jsx("button", { className: "wayfinding__button", style: {
57441
+ /* @__PURE__ */ Re.jsx("button", { className: "wayfinding__button", style: {
57440
57442
  background: pe
57441
57443
  }, onClick: () => t(), disabled: !Xt, children: S("Go!") })
57442
57444
  ] })
@@ -57517,7 +57519,7 @@ const vX = (t) => /* @__PURE__ */ mn.createElement("svg", { width: 24, height: 2
57517
57519
  return ke.addEventListener("substepsToggled", Ce), () => {
57518
57520
  ke.removeEventListener("substepsToggled", Ce);
57519
57521
  };
57520
- }, [F]), /* @__PURE__ */ Le.jsx("mi-route-instructions-step", { ref: L, "show-toggle-button": !ne, step: JSON.stringify(u[g]), translations: JSON.stringify(K), "destination-location": i == null ? void 0 : i.destinationLocation.properties.name, "from-travel-mode": (y == null ? void 0 : y.travel_mode) ?? "", "from-route-context": (y == null ? void 0 : y.route_context) ?? ((pe = S == null ? void 0 : S.properties) == null ? void 0 : pe.name) ?? "" });
57522
+ }, [F]), /* @__PURE__ */ Re.jsx("mi-route-instructions-step", { ref: L, "show-toggle-button": !ne, step: JSON.stringify(u[g]), translations: JSON.stringify(K), "destination-location": i == null ? void 0 : i.destinationLocation.properties.name, "from-travel-mode": (y == null ? void 0 : y.travel_mode) ?? "", "from-route-context": (y == null ? void 0 : y.route_context) ?? ((pe = S == null ? void 0 : S.properties) == null ? void 0 : pe.name) ?? "" });
57521
57523
  });
57522
57524
  tP.propTypes = {
57523
57525
  totalSteps: Ge.array,
@@ -57559,15 +57561,15 @@ function rP({
57559
57561
  function fe() {
57560
57562
  z(W[F - 2]), q(F - 1), s();
57561
57563
  }
57562
- return /* @__PURE__ */ Le.jsx("div", { className: "route-instructions prevent-scroll", ...S, "data-sentry-component": "RouteInstructions", "data-sentry-source-file": "RouteInstructions.jsx", children: W && /* @__PURE__ */ Le.jsxs(Le.Fragment, { children: [
57563
- /* @__PURE__ */ Le.jsx(tP, { totalSteps: W, activeStep: F, previous: L, directions: K, originLocation: u, ref: i }),
57564
- /* @__PURE__ */ Le.jsx("div", { className: `route-instructions__footer ${Ce ? "route-instructions__footer--kiosk" : ""}`, children: /* @__PURE__ */ Le.jsxs("div", { className: "route-instructions__actions", children: [
57565
- /* @__PURE__ */ Le.jsx("button", { className: `route-instructions__button ${Ce ? "route-instructions__button--kiosk" : ""}`, onClick: () => fe(), "aria-label": y("Previous"), disabled: F === 0, children: /* @__PURE__ */ Le.jsx(xX, {}) }),
57566
- /* @__PURE__ */ Le.jsx("div", { className: "route-instructions__overview", children: y("StepYofX", {
57564
+ return /* @__PURE__ */ Re.jsx("div", { className: "route-instructions prevent-scroll", ...S, "data-sentry-component": "RouteInstructions", "data-sentry-source-file": "RouteInstructions.jsx", children: W && /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
57565
+ /* @__PURE__ */ Re.jsx(tP, { totalSteps: W, activeStep: F, previous: L, directions: K, originLocation: u, ref: i }),
57566
+ /* @__PURE__ */ Re.jsx("div", { className: `route-instructions__footer ${Ce ? "route-instructions__footer--kiosk" : ""}`, children: /* @__PURE__ */ Re.jsxs("div", { className: "route-instructions__actions", children: [
57567
+ /* @__PURE__ */ Re.jsx("button", { className: `route-instructions__button ${Ce ? "route-instructions__button--kiosk" : ""}`, onClick: () => fe(), "aria-label": y("Previous"), disabled: F === 0, children: /* @__PURE__ */ Re.jsx(xX, {}) }),
57568
+ /* @__PURE__ */ Re.jsx("div", { className: "route-instructions__overview", children: y("StepYofX", {
57567
57569
  activeStep: F + 1,
57568
57570
  totalSteps: W.length
57569
57571
  }) }),
57570
- /* @__PURE__ */ Le.jsx("button", { className: `route-instructions__button ${Ce ? "route-instructions__button--kiosk" : ""}`, onClick: () => ie(), "aria-label": y("Next"), disabled: F === W.length - 1, children: /* @__PURE__ */ Le.jsx(vX, {}) })
57572
+ /* @__PURE__ */ Re.jsx("button", { className: `route-instructions__button ${Ce ? "route-instructions__button--kiosk" : ""}`, onClick: () => ie(), "aria-label": y("Next"), disabled: F === W.length - 1, children: /* @__PURE__ */ Re.jsx(vX, {}) })
57571
57573
  ] }) })
57572
57574
  ] }) });
57573
57575
  }
@@ -57671,38 +57673,38 @@ function vS({
57671
57673
  S.current && cancelAnimationFrame(S.current);
57672
57674
  }), [ke]), Dt(() => {
57673
57675
  t && g && Ce(g === dr.MAX);
57674
- }, [t, g]), /* @__PURE__ */ Le.jsxs("div", { className: "directions", style: {
57676
+ }, [t, g]), /* @__PURE__ */ Re.jsxs("div", { className: "directions", style: {
57675
57677
  display: be ? "block" : "grid"
57676
57678
  }, "data-sentry-component": "Directions", "data-sentry-source-file": "Directions.jsx", children: [
57677
- /* @__PURE__ */ Le.jsxs("div", { className: "directions__steps", children: [
57678
- /* @__PURE__ */ Le.jsx("div", { className: "directions__minutes", children: F && /* @__PURE__ */ Le.jsx("mi-time", { translations: JSON.stringify({
57679
+ /* @__PURE__ */ Re.jsxs("div", { className: "directions__steps", children: [
57680
+ /* @__PURE__ */ Re.jsx("div", { className: "directions__minutes", children: F && /* @__PURE__ */ Re.jsx("mi-time", { translations: JSON.stringify({
57679
57681
  days: y("d"),
57680
57682
  hours: y("h"),
57681
57683
  minutes: y("min")
57682
57684
  }), seconds: F }) }),
57683
- /* @__PURE__ */ Le.jsx(rP, { steps: zt(), originLocation: K == null ? void 0 : K.originLocation, onNextStep: () => jt(), isOpen: t, onPreviousStep: () => qt(), "data-sentry-element": "RouteInstructions", "data-sentry-source-file": "Directions.jsx" })
57685
+ /* @__PURE__ */ Re.jsx(rP, { steps: zt(), originLocation: K == null ? void 0 : K.originLocation, onNextStep: () => jt(), isOpen: t, onPreviousStep: () => qt(), "data-sentry-element": "RouteInstructions", "data-sentry-source-file": "Directions.jsx" })
57684
57686
  ] }),
57685
- be && /* @__PURE__ */ Le.jsxs(Le.Fragment, { children: [
57686
- /* @__PURE__ */ Le.jsx("hr", {}),
57687
- /* @__PURE__ */ Le.jsxs("div", { className: "directions__kiosk", children: [
57688
- /* @__PURE__ */ Le.jsx(_S, { onAccessibilityChanged: () => Nt() }),
57689
- /* @__PURE__ */ Le.jsxs("button", { className: "directions__qr-code", onClick: () => Ke(), children: [
57690
- /* @__PURE__ */ Le.jsx(Yk, {}),
57687
+ be && /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
57688
+ /* @__PURE__ */ Re.jsx("hr", {}),
57689
+ /* @__PURE__ */ Re.jsxs("div", { className: "directions__kiosk", children: [
57690
+ /* @__PURE__ */ Re.jsx(_S, { onAccessibilityChanged: () => Nt() }),
57691
+ /* @__PURE__ */ Re.jsxs("button", { className: "directions__qr-code", onClick: () => Ke(), children: [
57692
+ /* @__PURE__ */ Re.jsx(Yk, {}),
57691
57693
  y("Scan QR code")
57692
57694
  ] })
57693
57695
  ] })
57694
57696
  ] }),
57695
- /* @__PURE__ */ Le.jsxs("div", { className: "directions__actions", children: [
57696
- /* @__PURE__ */ Le.jsx("div", { className: "directions__details", children: (K == null ? void 0 : K.destinationLocation) && /* @__PURE__ */ Le.jsxs("div", { className: "directions__info", children: [
57697
- i && K.destinationLocation.id !== "USER_POSITION" && /* @__PURE__ */ Le.jsx("div", { className: "directions__icon", children: /* @__PURE__ */ Le.jsx("img", { alt: "", src: i.icon.src ? i.icon.src : i.icon }) }),
57698
- /* @__PURE__ */ Le.jsxs("div", { className: "directions__content", children: [
57699
- /* @__PURE__ */ Le.jsx("div", { className: "directions__name", children: K == null ? void 0 : K.destinationLocation.properties.name }),
57700
- /* @__PURE__ */ Le.jsx("mi-location-info", { ref: z, "show-external-id": Qe })
57697
+ /* @__PURE__ */ Re.jsxs("div", { className: "directions__actions", children: [
57698
+ /* @__PURE__ */ Re.jsx("div", { className: "directions__details", children: (K == null ? void 0 : K.destinationLocation) && /* @__PURE__ */ Re.jsxs("div", { className: "directions__info", children: [
57699
+ i && K.destinationLocation.id !== "USER_POSITION" && /* @__PURE__ */ Re.jsx("div", { className: "directions__icon", children: /* @__PURE__ */ Re.jsx("img", { alt: "", src: i.icon.src ? i.icon.src : i.icon }) }),
57700
+ /* @__PURE__ */ Re.jsxs("div", { className: "directions__content", children: [
57701
+ /* @__PURE__ */ Re.jsx("div", { className: "directions__name", children: K == null ? void 0 : K.destinationLocation.properties.name }),
57702
+ /* @__PURE__ */ Re.jsx("mi-location-info", { ref: z, "show-external-id": Qe })
57701
57703
  ] })
57702
57704
  ] }) }),
57703
- me ? /* @__PURE__ */ Le.jsx("button", { className: "directions__finish", onClick: () => u(), style: {
57705
+ me ? /* @__PURE__ */ Re.jsx("button", { className: "directions__finish", onClick: () => u(), style: {
57704
57706
  background: Se
57705
- }, children: y("Finish route") }) : /* @__PURE__ */ Le.jsx("button", { className: "directions__cancel", onClick: () => pt(), children: y("Cancel route") })
57707
+ }, children: y("Finish route") }) : /* @__PURE__ */ Re.jsx("button", { className: "directions__cancel", onClick: () => pt(), children: y("Cancel route") })
57706
57708
  ] })
57707
57709
  ] });
57708
57710
  }
@@ -57722,7 +57724,7 @@ const oP = $n({
57722
57724
  current: S
57723
57725
  } = g;
57724
57726
  u && (S.inputElement = u);
57725
- }, [u]), /* @__PURE__ */ Le.jsx("mi-keyboard", { language: y, ref: g });
57727
+ }, [u]), /* @__PURE__ */ Re.jsx("mi-keyboard", { language: y, ref: g });
57726
57728
  });
57727
57729
  sP.propTypes = {
57728
57730
  searchInputElement: Ge.instanceOf(HTMLInputElement)
@@ -57806,13 +57808,13 @@ function Hb({
57806
57808
  me(Ne);
57807
57809
  const bt = (jt = (zt = i.find(([qt]) => qt === z)) == null ? void 0 : zt[1]) == null ? void 0 : jt.displayName;
57808
57810
  be(bt);
57809
- }, [i]), /* @__PURE__ */ Le.jsx("div", { className: "categories prevent-scroll", ...ne, "data-sentry-component": "Categories", "data-sentry-source-file": "Categories.jsx", children: i.length > 0 && /* @__PURE__ */ Le.jsxs("div", { className: "categories__list", children: [
57810
- !g && /* @__PURE__ */ Le.jsxs("div", { className: "categories__nav", children: [
57811
- /* @__PURE__ */ Le.jsx("button", { "aria-label": Qe("Back"), type: "button", className: "categories__nav-button", onClick: y, children: /* @__PURE__ */ Le.jsx(TX, {}) }),
57812
- /* @__PURE__ */ Le.jsx("div", { children: Se })
57811
+ }, [i]), /* @__PURE__ */ Re.jsx("div", { className: "categories prevent-scroll", ...ne, "data-sentry-component": "Categories", "data-sentry-source-file": "Categories.jsx", children: i.length > 0 && /* @__PURE__ */ Re.jsxs("div", { className: "categories__list", children: [
57812
+ !g && /* @__PURE__ */ Re.jsxs("div", { className: "categories__nav", children: [
57813
+ /* @__PURE__ */ Re.jsx("button", { "aria-label": Qe("Back"), type: "button", className: "categories__nav-button", onClick: y, children: /* @__PURE__ */ Re.jsx(TX, {}) }),
57814
+ /* @__PURE__ */ Re.jsx("div", { children: Se })
57813
57815
  ] }),
57814
- ae.map(([Ne, bt]) => !g && S.current.length !== 1 ? null : /* @__PURE__ */ Le.jsx("div", { className: "categories__category", children: /* @__PURE__ */ Le.jsxs("button", { onClick: () => g ? Pe(Ne) : r(Ne), children: [
57815
- /* @__PURE__ */ Le.jsx("img", { src: bt.iconUrl, alt: "" }),
57816
+ ae.map(([Ne, bt]) => !g && S.current.length !== 1 ? null : /* @__PURE__ */ Re.jsx("div", { className: "categories__category", children: /* @__PURE__ */ Re.jsxs("button", { onClick: () => g ? Pe(Ne) : r(Ne), children: [
57817
+ /* @__PURE__ */ Re.jsx("img", { src: bt.iconUrl, alt: "" }),
57816
57818
  bt.displayName
57817
57819
  ] }) }, Ne))
57818
57820
  ] }) });
@@ -58011,14 +58013,14 @@ function wS({
58011
58013
  var dt, jn;
58012
58014
  const on = ((jn = (dt = ne.find(([vr]) => vr === Ce)) == null ? void 0 : dt[1]) == null ? void 0 : jn.childKeys) || [];
58013
58015
  xe(on);
58014
- }, [ne, Ce]), /* @__PURE__ */ Le.jsxs("div", { className: "search", ref: u, style: Wn(), "data-sentry-component": "Search", "data-sentry-source-file": "Search.jsx", children: [
58015
- /* @__PURE__ */ Le.jsxs("div", { className: "search__info", style: {
58016
+ }, [ne, Ce]), /* @__PURE__ */ Re.jsxs("div", { className: "search", ref: u, style: Wn(), "data-sentry-component": "Search", "data-sentry-source-file": "Search.jsx", children: [
58017
+ /* @__PURE__ */ Re.jsxs("div", { className: "search__info", style: {
58016
58018
  gridTemplateColumns: Nt && pt ? "min-content 1fr" : "auto"
58017
58019
  }, children: [
58018
- Nt && pt && /* @__PURE__ */ Le.jsx("button", { className: "search__legend", onClick: () => Bt(!0), children: /* @__PURE__ */ Le.jsx(EX, {}) }),
58019
- /* @__PURE__ */ Le.jsxs("label", { className: "search__label", children: [
58020
- /* @__PURE__ */ Le.jsx("span", { children: s("Search by name, category, building...") }),
58021
- /* @__PURE__ */ Le.jsx(
58020
+ Nt && pt && /* @__PURE__ */ Re.jsx("button", { className: "search__legend", onClick: () => Bt(!0), children: /* @__PURE__ */ Re.jsx(EX, {}) }),
58021
+ /* @__PURE__ */ Re.jsxs("label", { className: "search__label", children: [
58022
+ /* @__PURE__ */ Re.jsx("span", { children: s("Search by name, category, building...") }),
58023
+ /* @__PURE__ */ Re.jsx(
58022
58024
  Jy,
58023
58025
  {
58024
58026
  ref: S,
@@ -58035,17 +58037,17 @@ function wS({
58035
58037
  )
58036
58038
  ] })
58037
58039
  ] }),
58038
- Lt && !pe && ne.length > 0 && q.length === 0 && /* @__PURE__ */ Le.jsx(Hb, { onSetSize: t, searchFieldRef: S, getFilteredLocations: (on) => ft(on), isOpen: !!Ce, topLevelCategory: !0 }),
58039
- pe && /* @__PURE__ */ Le.jsxs("p", { className: "search__error", children: [
58040
+ Lt && !pe && ne.length > 0 && q.length === 0 && /* @__PURE__ */ Re.jsx(Hb, { onSetSize: t, searchFieldRef: S, getFilteredLocations: (on) => ft(on), isOpen: !!Ce, topLevelCategory: !0 }),
58041
+ pe && /* @__PURE__ */ Re.jsxs("p", { className: "search__error", children: [
58040
58042
  " ",
58041
58043
  s("Nothing was found")
58042
58044
  ] }),
58043
- q.length > 0 && /* @__PURE__ */ Le.jsxs("div", { className: "search__results prevent-scroll", ...fe, children: [
58044
- Ce && /* @__PURE__ */ Le.jsx(Hb, { handleBack: Rn, getFilteredLocations: (on) => ft(on), onLocationClicked: Ar, childKeys: Zt, topLevelCategory: !1, selectedCategoriesArray: Xt }),
58045
- /* @__PURE__ */ Le.jsx("div", { className: "search__results", children: q.map((on) => /* @__PURE__ */ Le.jsx(s1, { location: on, locationClicked: () => Ar(on), isHovered: (on == null ? void 0 : on.id) === (ae == null ? void 0 : ae.id) }, on.id)) })
58045
+ q.length > 0 && /* @__PURE__ */ Re.jsxs("div", { className: "search__results prevent-scroll", ...fe, children: [
58046
+ Ce && /* @__PURE__ */ Re.jsx(Hb, { handleBack: Rn, getFilteredLocations: (on) => ft(on), onLocationClicked: Ar, childKeys: Zt, topLevelCategory: !1, selectedCategoriesArray: Xt }),
58047
+ /* @__PURE__ */ Re.jsx("div", { className: "search__results", children: q.map((on) => /* @__PURE__ */ Re.jsx(s1, { location: on, locationClicked: () => Ar(on), isHovered: (on == null ? void 0 : on.id) === (ae == null ? void 0 : ae.id) }, on.id)) })
58046
58048
  ] }),
58047
- jt && yt && /* @__PURE__ */ Le.jsx(sP, { ref: i, searchInputElement: an }),
58048
- r && Nt && q.length > 0 && r0(/* @__PURE__ */ Le.jsx("div", { className: "search__scroll-buttons", children: /* @__PURE__ */ Le.jsx("mi-scroll-buttons", { ref: g }) }), document.querySelector(".mapsindoors-map"))
58049
+ jt && yt && /* @__PURE__ */ Re.jsx(sP, { ref: i, searchInputElement: an }),
58050
+ r && Nt && q.length > 0 && r0(/* @__PURE__ */ Re.jsx("div", { className: "search__scroll-buttons", children: /* @__PURE__ */ Re.jsx("mi-scroll-buttons", { ref: g }) }), document.querySelector(".mapsindoors-map"))
58049
58051
  ] });
58050
58052
  }
58051
58053
  SS.propTypes = {
@@ -58068,16 +58070,16 @@ function SS({
58068
58070
  }
58069
58071
  return Dt(() => {
58070
58072
  S(dr.FIT);
58071
- }, []), /* @__PURE__ */ Le.jsxs("div", { className: "locations-list", "data-sentry-component": "LocationsList", "data-sentry-source-file": "LocationsList.jsx", children: [
58072
- /* @__PURE__ */ Le.jsxs("div", { className: "locations-list__header", children: [
58073
- /* @__PURE__ */ Le.jsxs("div", { className: "locations-list__title", children: [
58073
+ }, []), /* @__PURE__ */ Re.jsxs("div", { className: "locations-list", "data-sentry-component": "LocationsList", "data-sentry-source-file": "LocationsList.jsx", children: [
58074
+ /* @__PURE__ */ Re.jsxs("div", { className: "locations-list__header", children: [
58075
+ /* @__PURE__ */ Re.jsxs("div", { className: "locations-list__title", children: [
58074
58076
  s == null ? void 0 : s.length,
58075
58077
  " ",
58076
58078
  g("Locations")
58077
58079
  ] }),
58078
- /* @__PURE__ */ Le.jsx("button", { className: "locations-list__close", onClick: () => t(), "aria-label": g("Close"), children: /* @__PURE__ */ Le.jsx($m, { "data-sentry-element": "CloseIcon", "data-sentry-source-file": "LocationsList.jsx" }) })
58080
+ /* @__PURE__ */ Re.jsx("button", { className: "locations-list__close", onClick: () => t(), "aria-label": g("Close"), children: /* @__PURE__ */ Re.jsx($m, { "data-sentry-element": "CloseIcon", "data-sentry-source-file": "LocationsList.jsx" }) })
58079
58081
  ] }),
58080
- /* @__PURE__ */ Le.jsx("div", { className: "locations-list__scrollable prevent-scroll", ...y, children: /* @__PURE__ */ Le.jsx("div", { className: "locations-list__list", children: s == null ? void 0 : s.map((i) => /* @__PURE__ */ Le.jsx(s1, { location: i, locationClicked: (L) => r(L) }, i.id)) }) })
58082
+ /* @__PURE__ */ Re.jsx("div", { className: "locations-list__scrollable prevent-scroll", ...y, children: /* @__PURE__ */ Re.jsx("div", { className: "locations-list__list", children: s == null ? void 0 : s.map((i) => /* @__PURE__ */ Re.jsx(s1, { location: i, locationClicked: (L) => r(L) }, i.id)) }) })
58081
58083
  ] });
58082
58084
  }
58083
58085
  cP.propTypes = {
@@ -58111,8 +58113,8 @@ function cP({
58111
58113
  function ae() {
58112
58114
  s(g.SEARCH), ne(), Ce([]);
58113
58115
  }
58114
- const me = [/* @__PURE__ */ Le.jsx(hd, { minimizedHeight: 80, initialSnapPoint: dr.MIN, isOpen: u === g.SEARCH, ref: i, children: /* @__PURE__ */ Le.jsx(wS, { isOpen: u === g.SEARCH, onSetSize: (Se) => i.current.setSnapPoint(Se) }) }, "SEARCH"), /* @__PURE__ */ Le.jsx(hd, { minimizedHeight: 200, isOpen: u === g.EXTERNALIDS, initialSnapPoint: dr.MIN, ref: L, children: /* @__PURE__ */ Le.jsx(SS, { onSetSize: (Se) => L.current.setSnapPoint(Se), onBack: () => ae(), locations: ke, onLocationClick: (Se) => ne(Se) }) }, "EXTERNALIDS"), /* @__PURE__ */ Le.jsx(hd, { minimizedHeight: K ? 180 : 136, initialSnapPoint: dr.MIN, isOpen: u === g.LOCATION_DETAILS, ref: z, children: /* @__PURE__ */ Le.jsx(mS, { onSetSize: (Se) => z.current.setSnapPoint(Se), onStartWayfinding: () => s(g.WAYFINDING), onBack: () => fe(), onStartDirections: () => s(g.DIRECTIONS), isOpen: u === g.LOCATION_DETAILS }) }, "LOCATION_DETAILS"), /* @__PURE__ */ Le.jsx(hd, { minimizedHeight: 190, initialSnapPoint: dr.FIT, isOpen: u === g.WAYFINDING, ref: F, children: /* @__PURE__ */ Le.jsx(yS, { onSetSize: (Se) => F.current.setSnapPoint(Se), onStartDirections: () => s(g.DIRECTIONS), directionsToLocation: r, directionsFromLocation: t, onBack: () => s(W ? g.LOCATION_DETAILS : g.SEARCH), isActive: u === g.WAYFINDING }) }, "WAYFINDING"), /* @__PURE__ */ Le.jsx(hd, { minimizedHeight: 273, isOpen: u === g.DIRECTIONS, initialSnapPoint: dr.FIT, ref: q, children: /* @__PURE__ */ Le.jsx(vS, { onSetSize: (Se) => q.current.setSnapPoint(Se), isOpen: u === g.DIRECTIONS, onBack: () => s(g.WAYFINDING), onRouteFinished: () => y() }) }, "DIRECTIONS")];
58115
- return /* @__PURE__ */ Le.jsx("div", { ref: S, className: "bottom-sheets", "data-sentry-component": "BottomSheet", "data-sentry-source-file": "BottomSheet.jsx", children: /* @__PURE__ */ Le.jsx(Vk.Provider, { value: S, "data-sentry-element": "unknown", "data-sentry-source-file": "BottomSheet.jsx", children: me }) });
58116
+ const me = [/* @__PURE__ */ Re.jsx(hd, { minimizedHeight: 80, initialSnapPoint: dr.MIN, isOpen: u === g.SEARCH, ref: i, children: /* @__PURE__ */ Re.jsx(wS, { isOpen: u === g.SEARCH, onSetSize: (Se) => i.current.setSnapPoint(Se) }) }, "SEARCH"), /* @__PURE__ */ Re.jsx(hd, { minimizedHeight: 200, isOpen: u === g.EXTERNALIDS, initialSnapPoint: dr.MIN, ref: L, children: /* @__PURE__ */ Re.jsx(SS, { onSetSize: (Se) => L.current.setSnapPoint(Se), onBack: () => ae(), locations: ke, onLocationClick: (Se) => ne(Se) }) }, "EXTERNALIDS"), /* @__PURE__ */ Re.jsx(hd, { minimizedHeight: K ? 180 : 136, initialSnapPoint: dr.MIN, isOpen: u === g.LOCATION_DETAILS, ref: z, children: /* @__PURE__ */ Re.jsx(mS, { onSetSize: (Se) => z.current.setSnapPoint(Se), onStartWayfinding: () => s(g.WAYFINDING), onBack: () => fe(), onStartDirections: () => s(g.DIRECTIONS), isOpen: u === g.LOCATION_DETAILS }) }, "LOCATION_DETAILS"), /* @__PURE__ */ Re.jsx(hd, { minimizedHeight: 190, initialSnapPoint: dr.FIT, isOpen: u === g.WAYFINDING, ref: F, children: /* @__PURE__ */ Re.jsx(yS, { onSetSize: (Se) => F.current.setSnapPoint(Se), onStartDirections: () => s(g.DIRECTIONS), directionsToLocation: r, directionsFromLocation: t, onBack: () => s(W ? g.LOCATION_DETAILS : g.SEARCH), isActive: u === g.WAYFINDING }) }, "WAYFINDING"), /* @__PURE__ */ Re.jsx(hd, { minimizedHeight: 273, isOpen: u === g.DIRECTIONS, initialSnapPoint: dr.FIT, ref: q, children: /* @__PURE__ */ Re.jsx(vS, { onSetSize: (Se) => q.current.setSnapPoint(Se), isOpen: u === g.DIRECTIONS, onBack: () => s(g.WAYFINDING), onRouteFinished: () => y() }) }, "DIRECTIONS")];
58117
+ return /* @__PURE__ */ Re.jsx("div", { ref: S, className: "bottom-sheets", "data-sentry-component": "BottomSheet", "data-sentry-source-file": "BottomSheet.jsx", children: /* @__PURE__ */ Re.jsx(Vk.Provider, { value: S, "data-sentry-element": "unknown", "data-sentry-source-file": "BottomSheet.jsx", children: me }) });
58116
58118
  }
58117
58119
  const CX = {
58118
58120
  SEARCH: void 0,
@@ -58174,7 +58176,7 @@ function dd({
58174
58176
  }), () => {
58175
58177
  L.disconnect();
58176
58178
  };
58177
- }, [i]), /* @__PURE__ */ Le.jsx("div", { ref: S, className: `modal ${r ? "modal--open" : ""} ${s ? "modal--full" : ""} ${g ? "modal--substeps" : ""} ${y ? "modal--kiosk" : ""}`, "data-sentry-component": "Modal", "data-sentry-source-file": "Modal.jsx", children: /* @__PURE__ */ Le.jsx("div", { ref: i, className: "modal__content", children: t }) });
58179
+ }, [i]), /* @__PURE__ */ Re.jsx("div", { ref: S, className: `modal ${r ? "modal--open" : ""} ${s ? "modal--full" : ""} ${g ? "modal--substeps" : ""} ${y ? "modal--kiosk" : ""}`, "data-sentry-component": "Modal", "data-sentry-source-file": "Modal.jsx", children: /* @__PURE__ */ Re.jsx("div", { ref: i, className: "modal__content", children: t }) });
58178
58180
  }
58179
58181
  uP.propTypes = {
58180
58182
  directionsFromLocation: Ge.string,
@@ -58206,8 +58208,8 @@ function uP({
58206
58208
  function K() {
58207
58209
  s(q ? g.LOCATION_DETAILS : g.WAYFINDING);
58208
58210
  }
58209
- const pe = [/* @__PURE__ */ Le.jsx(dd, { isOpen: u === g.SEARCH, children: /* @__PURE__ */ Le.jsx(wS, { isOpen: u === g.SEARCH }) }, "SEARCH"), /* @__PURE__ */ Le.jsx(dd, { isOpen: u === g.EXTERNALIDS, children: /* @__PURE__ */ Le.jsx(SS, { onBack: () => ne(), locations: L, onLocationClick: (ke) => i(ke) }) }, "EXTERNALIDS"), /* @__PURE__ */ Le.jsx(dd, { isOpen: u === g.LOCATION_DETAILS, children: /* @__PURE__ */ Le.jsx(mS, { onStartWayfinding: () => s(g.WAYFINDING), onBack: () => W(), onStartDirections: () => s(g.DIRECTIONS), isOpen: u === g.LOCATION_DETAILS }) }, "LOCATION_DETAILS"), /* @__PURE__ */ Le.jsx(dd, { isOpen: u === g.WAYFINDING, children: /* @__PURE__ */ Le.jsx(yS, { onStartDirections: () => s(g.DIRECTIONS), directionsToLocation: r, directionsFromLocation: t, onBack: () => s(S ? g.LOCATION_DETAILS : g.SEARCH), isActive: u === g.WAYFINDING }) }, "WAYFINDING"), /* @__PURE__ */ Le.jsx(dd, { isOpen: u === g.DIRECTIONS, children: /* @__PURE__ */ Le.jsx(vS, { isOpen: u === g.DIRECTIONS, onBack: () => K(), onRouteFinished: () => y() }) }, "DIRECTIONS")];
58210
- return /* @__PURE__ */ Le.jsx("div", { "data-sentry-component": "Sidebar", "data-sentry-source-file": "Sidebar.jsx", children: pe });
58211
+ const pe = [/* @__PURE__ */ Re.jsx(dd, { isOpen: u === g.SEARCH, children: /* @__PURE__ */ Re.jsx(wS, { isOpen: u === g.SEARCH }) }, "SEARCH"), /* @__PURE__ */ Re.jsx(dd, { isOpen: u === g.EXTERNALIDS, children: /* @__PURE__ */ Re.jsx(SS, { onBack: () => ne(), locations: L, onLocationClick: (ke) => i(ke) }) }, "EXTERNALIDS"), /* @__PURE__ */ Re.jsx(dd, { isOpen: u === g.LOCATION_DETAILS, children: /* @__PURE__ */ Re.jsx(mS, { onStartWayfinding: () => s(g.WAYFINDING), onBack: () => W(), onStartDirections: () => s(g.DIRECTIONS), isOpen: u === g.LOCATION_DETAILS }) }, "LOCATION_DETAILS"), /* @__PURE__ */ Re.jsx(dd, { isOpen: u === g.WAYFINDING, children: /* @__PURE__ */ Re.jsx(yS, { onStartDirections: () => s(g.DIRECTIONS), directionsToLocation: r, directionsFromLocation: t, onBack: () => s(S ? g.LOCATION_DETAILS : g.SEARCH), isActive: u === g.WAYFINDING }) }, "WAYFINDING"), /* @__PURE__ */ Re.jsx(dd, { isOpen: u === g.DIRECTIONS, children: /* @__PURE__ */ Re.jsx(vS, { isOpen: u === g.DIRECTIONS, onBack: () => K(), onRouteFinished: () => y() }) }, "DIRECTIONS")];
58212
+ return /* @__PURE__ */ Re.jsx("div", { "data-sentry-component": "Sidebar", "data-sentry-source-file": "Sidebar.jsx", children: pe });
58211
58213
  }
58212
58214
  const V3 = (t) => {
58213
58215
  const [r, s] = yn(), u = Qt(H0), g = Qt(lk);
@@ -58223,7 +58225,7 @@ function LX() {
58223
58225
  return Dt(() => {
58224
58226
  var s;
58225
58227
  (s = r.current) == null || s.classList.add("notification"), t ? r.current.push(t.text, t.type, !0) : r.current.clearAll();
58226
- }, [t]), /* @__PURE__ */ Le.jsx("mi-notification", { ref: r, position: "top-center", "data-sentry-element": "mi-notification", "data-sentry-component": "Notification", "data-sentry-source-file": "Notification.jsx" });
58228
+ }, [t]), /* @__PURE__ */ Re.jsx("mi-notification", { ref: r, position: "top-center", "data-sentry-element": "mi-notification", "data-sentry-component": "Notification", "data-sentry-source-file": "Notification.jsx" });
58227
58229
  }
58228
58230
  var Ym = {}, kX = function() {
58229
58231
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
@@ -59722,12 +59724,12 @@ function bK() {
59722
59724
  Ym.toDataURL(r, y).then((S) => {
59723
59725
  u.current.src = S;
59724
59726
  });
59725
- }, [g, r]), /* @__PURE__ */ Le.jsxs(Le.Fragment, { children: [
59726
- /* @__PURE__ */ Le.jsx("div", { className: "background" }),
59727
- /* @__PURE__ */ Le.jsxs("div", { className: "qr-code", children: [
59728
- /* @__PURE__ */ Le.jsx("img", { alt: "", className: "qr-code__image", ref: u }),
59729
- /* @__PURE__ */ Le.jsx("p", { children: t("Scan the QR code to see the route on your phone") }),
59730
- /* @__PURE__ */ Le.jsx("button", { className: "qr-code__button", style: {
59727
+ }, [g, r]), /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
59728
+ /* @__PURE__ */ Re.jsx("div", { className: "background" }),
59729
+ /* @__PURE__ */ Re.jsxs("div", { className: "qr-code", children: [
59730
+ /* @__PURE__ */ Re.jsx("img", { alt: "", className: "qr-code__image", ref: u }),
59731
+ /* @__PURE__ */ Re.jsx("p", { children: t("Scan the QR code to see the route on your phone") }),
59732
+ /* @__PURE__ */ Re.jsx("button", { className: "qr-code__button", style: {
59731
59733
  background: g
59732
59734
  }, onClick: () => s(null), children: t("Done") })
59733
59735
  ] })
@@ -59745,20 +59747,20 @@ function wK() {
59745
59747
  const ne = document.querySelector(".legend__sections");
59746
59748
  S.current.scrollContainerElementRef = ne;
59747
59749
  }
59748
- }, [i, s, z]), /* @__PURE__ */ Le.jsxs(Le.Fragment, { children: [
59749
- /* @__PURE__ */ Le.jsx("div", { className: "legend__background" }),
59750
- /* @__PURE__ */ Le.jsxs("div", { className: "legend", ref: g, children: [
59751
- s.length > 0 && /* @__PURE__ */ Le.jsx("div", { className: `legend__sections ${z ? "legend__sections--scrollable" : ""}`, ref: q, style: {
59750
+ }, [i, s, z]), /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
59751
+ /* @__PURE__ */ Re.jsx("div", { className: "legend__background" }),
59752
+ /* @__PURE__ */ Re.jsxs("div", { className: "legend", ref: g, children: [
59753
+ s.length > 0 && /* @__PURE__ */ Re.jsx("div", { className: `legend__sections ${z ? "legend__sections--scrollable" : ""}`, ref: q, style: {
59752
59754
  maxHeight: z ? `${W}px` : "auto",
59753
59755
  overflowY: z ? "scroll" : "auto"
59754
- }, children: s.map((ne, K) => /* @__PURE__ */ Le.jsxs("div", { className: "legend__section", ref: y, children: [
59755
- /* @__PURE__ */ Le.jsx("div", { className: "legend__heading", children: ne.heading }),
59756
- /* @__PURE__ */ Le.jsx("div", { className: "legend__content", children: ne.content })
59756
+ }, children: s.map((ne, K) => /* @__PURE__ */ Re.jsxs("div", { className: "legend__section", ref: y, children: [
59757
+ /* @__PURE__ */ Re.jsx("div", { className: "legend__heading", children: ne.heading }),
59758
+ /* @__PURE__ */ Re.jsx("div", { className: "legend__content", children: ne.content })
59757
59759
  ] }, K)) }),
59758
- /* @__PURE__ */ Le.jsx("button", { className: "legend__button", style: {
59760
+ /* @__PURE__ */ Re.jsx("button", { className: "legend__button", style: {
59759
59761
  background: r
59760
59762
  }, onClick: () => L(!1), children: t("Close") }),
59761
- u && i && z && /* @__PURE__ */ Le.jsx("div", { className: "scroll-buttons", children: /* @__PURE__ */ Le.jsx("mi-scroll-buttons", { ref: S }) })
59763
+ u && i && z && /* @__PURE__ */ Re.jsx("div", { className: "scroll-buttons", children: /* @__PURE__ */ Re.jsx("mi-scroll-buttons", { ref: S }) })
59762
59764
  ] })
59763
59765
  ] });
59764
59766
  }
@@ -60029,20 +60031,20 @@ function MP({
60029
60031
  }
60030
60032
  return Dt(() => {
60031
60033
  Gt && be && Lt.find((Bn) => Bn[0] === be) && (Br(be), on(be));
60032
- }, [be, Lt, Gt]), /* @__PURE__ */ Le.jsxs("div", { className: `mapsindoors-map
60034
+ }, [be, Lt, Gt]), /* @__PURE__ */ Re.jsxs("div", { className: `mapsindoors-map
60033
60035
  ${et === Ct.DIRECTIONS ? "mapsindoors-map--hide-elements" : "mapsindoors-map--show-elements"}
60034
60036
  ${Ke.length > 1 && vo ? "" : "mapsindoors-map--hide-venue-selector"}
60035
60037
  ${st ? "mapsindoors-map--show-my-position" : "mapsindoors-map--hide-my-position"}`, "data-sentry-component": "MapTemplate", "data-sentry-source-file": "MapTemplate.jsx", children: [
60036
- /* @__PURE__ */ Le.jsx(LX, { "data-sentry-element": "Notification", "data-sentry-source-file": "MapTemplate.jsx" }),
60037
- !pt && /* @__PURE__ */ Le.jsx(BY, {}),
60038
- Ke.length > 1 && vo && /* @__PURE__ */ Le.jsx(jk, { onOpen: () => le(Ct.VENUE_SELECTOR), onClose: () => Be(), active: et === Ct.VENUE_SELECTOR }),
60039
- io && /* @__PURE__ */ Le.jsx(bK, {}),
60040
- gn && /* @__PURE__ */ Le.jsx(wK, {}),
60041
- Sn && /* @__PURE__ */ Le.jsxs(u5, { children: [
60042
- rt && /* @__PURE__ */ Le.jsx(uP, { directionsFromLocation: Vt, directionsToLocation: un, pushAppView: le, currentAppView: et, appViews: Ct, onRouteFinished: () => Pa() }),
60043
- We && /* @__PURE__ */ Le.jsx(cP, { directionsFromLocation: Vt, directionsToLocation: un, pushAppView: le, currentAppView: et, appViews: Ct, onRouteFinished: () => Pa() })
60038
+ /* @__PURE__ */ Re.jsx(LX, { "data-sentry-element": "Notification", "data-sentry-source-file": "MapTemplate.jsx" }),
60039
+ !pt && /* @__PURE__ */ Re.jsx(BY, {}),
60040
+ Ke.length > 1 && vo && /* @__PURE__ */ Re.jsx(jk, { onOpen: () => le(Ct.VENUE_SELECTOR), onClose: () => Be(), active: et === Ct.VENUE_SELECTOR }),
60041
+ io && /* @__PURE__ */ Re.jsx(bK, {}),
60042
+ gn && /* @__PURE__ */ Re.jsx(wK, {}),
60043
+ Sn && /* @__PURE__ */ Re.jsxs(u5, { children: [
60044
+ rt && /* @__PURE__ */ Re.jsx(uP, { directionsFromLocation: Vt, directionsToLocation: un, pushAppView: le, currentAppView: et, appViews: Ct, onRouteFinished: () => Pa() }),
60045
+ We && /* @__PURE__ */ Re.jsx(cP, { directionsFromLocation: Vt, directionsToLocation: un, pushAppView: le, currentAppView: et, appViews: Ct, onRouteFinished: () => Pa() })
60044
60046
  ] }, kn),
60045
- /* @__PURE__ */ Le.jsx(Dk, { useMapProviderModule: ke, onMapPositionKnown: () => Di(), onMapPositionInvestigating: () => En(!0), onLocationClick: (Bn) => ko(Bn), onViewModeSwitchKnown: (Bn) => Ho(Bn), resetCount: kn, mapOptions: jt, onMapOptionsChange: wi, gmMapId: pe, "data-sentry-element": "MapWrapper", "data-sentry-source-file": "MapTemplate.jsx" })
60047
+ /* @__PURE__ */ Re.jsx(Dk, { useMapProviderModule: ke, onMapPositionKnown: () => Di(), onMapPositionInvestigating: () => En(!0), onLocationClick: (Bn) => ko(Bn), onViewModeSwitchKnown: (Bn) => Ho(Bn), resetCount: kn, mapOptions: jt, onMapOptionsChange: wi, gmMapId: pe, "data-sentry-element": "MapWrapper", "data-sentry-source-file": "MapTemplate.jsx" })
60046
60048
  ] });
60047
60049
  }
60048
60050
  function ac(t, r, s, u) {
@@ -60134,7 +60136,7 @@ function AP(t) {
60134
60136
  supportsUrlParameters: t.supportsUrlParameters,
60135
60137
  useAppTitle: ac(t.supportsUrlParameters, y.useAppTitle, t.useAppTitle, Bt)
60136
60138
  });
60137
- }, [t]), /* @__PURE__ */ Le.jsx(Zq, { "data-sentry-element": "RecoilRoot", "data-sentry-component": "MapsIndoorsMap", "data-sentry-source-file": "MapsIndoorsMap.jsx", children: /* @__PURE__ */ Le.jsx(Rw, { "data-sentry-element": "unknown", "data-sentry-source-file": "MapsIndoorsMap.jsx", children: r && /* @__PURE__ */ Le.jsx(MP, { ...r }) }) });
60139
+ }, [t]), /* @__PURE__ */ Re.jsx(Zq, { "data-sentry-element": "RecoilRoot", "data-sentry-component": "MapsIndoorsMap", "data-sentry-source-file": "MapsIndoorsMap.jsx", children: /* @__PURE__ */ Re.jsx(Rw, { "data-sentry-element": "unknown", "data-sentry-source-file": "MapsIndoorsMap.jsx", children: r && /* @__PURE__ */ Re.jsx(MP, { ...r }) }) });
60138
60140
  }
60139
60141
  S9({
60140
60142
  dsn: process.env.NODE_ENV === "production" ? "https://0ee7fa162023d958c96db25e99c8ff6c@o351128.ingest.sentry.io/4506851619831808" : void 0,
@@ -60176,4 +60178,4 @@ export {
60176
60178
  nW as h,
60177
60179
  AK as r
60178
60180
  };
60179
- //# sourceMappingURL=reactcomponent-2ffc4106.mjs.map
60181
+ //# sourceMappingURL=reactcomponent-8ea6ca8b.mjs.map