@expofp/floorplan 3.25.2 → 3.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/browser/{Button-DZ5RJVoX.js → Button-DI5g1CPS.js} +5 -5
  2. package/dist/browser/{CookieConsent-CNE-7zNI.js → CookieConsent-Qws_nQ3N.js} +7 -7
  3. package/dist/browser/{Debug-TDQ_xzea.js → Debug-DTNPNDds.js} +7 -7
  4. package/dist/browser/{Demo-A0X5mRqG.js → Demo-BDZjOBQc.js} +9 -9
  5. package/dist/browser/{Free-BjYK0xDM.js → Free-Cage9TkV.js} +9 -9
  6. package/dist/browser/{GalleryContainer-BsQuHOrj.js → GalleryContainer-EeLKgziN.js} +10 -10
  7. package/dist/browser/{GpsLoader-DoutzmU_.js → GpsLoader-CJMX_mJN.js} +11 -11
  8. package/dist/browser/{KioskStore-CRN9B487.js → KioskStore-BSza48xl.js} +24 -24
  9. package/dist/browser/{MaplibreAdapter-W1ZdQQ00.js → MaplibreAdapter-evVQiVQj.js} +245 -245
  10. package/dist/browser/{ModalContainer-BfZm0B_L.js → ModalContainer-CTKDfIyR.js} +10 -10
  11. package/dist/browser/{PermissionNotice-Cm6qrOC_.js → PermissionNotice-O469DuWb.js} +6 -6
  12. package/dist/browser/{SetKioskMode-BlmUmBkH.js → SetKioskMode-DUk4c-Gs.js} +11 -11
  13. package/dist/browser/{ShowKiosk-B0cj0p6h.js → ShowKiosk-DumFiuHU.js} +10 -10
  14. package/dist/browser/{ViewerMenuPanel-FFmV-n9m.js → ViewerMenuPanel-ByFemA_T.js} +10 -10
  15. package/dist/browser/{add-debug-secret-listener-BOW3NQe7.js → add-debug-secret-listener-TLumKuSo.js} +1 -1
  16. package/dist/browser/{adopt-global-settings-DNTNdr3z.js → adopt-global-settings-ghJrZaU5.js} +9 -9
  17. package/dist/browser/{boolean-editor-Bx4HLLyu.js → boolean-editor-WIpm-pFP.js} +9 -9
  18. package/dist/browser/{bootIntercom-C_8HLvxg.js → bootIntercom-BR_Ehbyl.js} +2 -2
  19. package/dist/browser/{booth-by-xy-DgXTlV8u.js → booth-by-xy-CyZpg1Fn.js} +287 -287
  20. package/dist/browser/bundle.json +65 -65
  21. package/dist/browser/{classnames-DovQg6we.js → classnames-BmlkHMS8.js} +2 -2
  22. package/dist/browser/{client-CadlVOps.js → client-CIHxJZmk.js} +4 -4
  23. package/dist/browser/{components-BK-czcTL.js → components-7lxOhyyi.js} +1911 -1902
  24. package/dist/browser/{debug-overlay-vFTynZrP.js → debug-overlay-B7jCqVlX.js} +10 -10
  25. package/dist/browser/{debug-ui-BgSppEQg.js → debug-ui-D1ApG52e.js} +6 -6
  26. package/dist/browser/{dist-CkAU9dsV.js → dist-BrF5yJyj.js} +5 -5
  27. package/dist/browser/{dist-C1WQpGAq.js → dist-C67OkD_4.js} +6 -6
  28. package/dist/browser/{dist-gIYlJ33F.js → dist-CnpnDA-V.js} +3 -3
  29. package/dist/browser/{efp-debug-init-CGEJSmuk.js → efp-debug-init-BqEN61Fo.js} +3 -3
  30. package/dist/browser/{enum-editor-BZXgS3I-.js → enum-editor-Cy6VeZZd.js} +4 -4
  31. package/dist/browser/{es5-DoqUhz95.js → es5-DyV1fctu.js} +2 -2
  32. package/dist/browser/{event-not-found-Dl66nXH1.js → event-not-found-BpFVdXz_.js} +1 -1
  33. package/dist/browser/{exports-CK5UTqgq.js → exports-C7NzL4lf.js} +1 -1
  34. package/dist/browser/{favicon-BnTLQysW.js → favicon-BHscWjwp.js} +1 -1
  35. package/dist/browser/{fetch-retry.umd-D_tGjwEb.js → fetch-retry.umd-BytZeydp.js} +2 -2
  36. package/dist/browser/{flex-BCrAgMxK.js → flex-BQBLAC6l.js} +5 -5
  37. package/dist/browser/{floorplan.loader-DXJR9eeS.js → floorplan.loader-DkaQPhwC.js} +10 -10
  38. package/dist/browser/{floorplan.ready-C0sdmceF.js → floorplan.ready-DwuXZphI.js} +158 -158
  39. package/dist/browser/{fuse-C7evxCwi.js → fuse-DZTwJ52u.js} +2 -2
  40. package/dist/browser/{i18n-Cp32ZzDq.js → i18n-Bcv8xw_q.js} +5 -5
  41. package/dist/browser/index.js +14 -14
  42. package/dist/browser/{index.module-CeDH7KeK.js → index.module-BFxDVa3K.js} +4 -4
  43. package/dist/browser/{integrateKiosk-JZG1AZBF.js → integrateKiosk-VTNZSSfD.js} +4 -4
  44. package/dist/browser/{is-webview-Be9due3O.js → is-webview-CjItzxdV.js} +1 -1
  45. package/dist/browser/{jsx-runtime-DwNSQYOA.js → jsx-runtime-CT2c-IhD.js} +2 -2
  46. package/dist/browser/{kiosk-record-BMwfA16j.js → kiosk-record-v7r7q7t0.js} +1 -1
  47. package/dist/browser/{lib-DeQ47J_S.js → lib-DGh8lZgT.js} +3 -3
  48. package/dist/browser/{loadImage-DVBOry5-.js → loadImage-a_ahClbD.js} +4 -4
  49. package/dist/browser/{logDeviceInfo-uPn7yfGH.js → logDeviceInfo-DHfa6NcE.js} +9 -9
  50. package/dist/browser/{main-WTEdqNkt.js → main-sUuehgQu.js} +1 -1
  51. package/dist/browser/{mobx-DFFcUY2e.js → mobx-dAtztuiQ.js} +4 -4
  52. package/dist/browser/{optional-boolean-editor-DfcaW7-l.js → optional-boolean-editor-D43-yLO3.js} +3 -3
  53. package/dist/browser/{optional-enum-editor-SEARu4hs.js → optional-enum-editor-Cvn8TV-x.js} +4 -4
  54. package/dist/browser/{optional-string-editor-COLkp8EA.js → optional-string-editor-sY0yVw_j.js} +4 -4
  55. package/dist/browser/{particles.min-DHvuM5ou.js → particles.min-BD7iDSr6.js} +2 -2
  56. package/dist/browser/{react-BNCBBLDK.js → react-BJopqGbW.js} +2 -2
  57. package/dist/browser/{react-dom-ql8ZgjdB.js → react-dom-B77nDdqp.js} +3 -3
  58. package/dist/browser/{rolldown-runtime-D0mAPq9J.js → rolldown-runtime-BmHtYG9i.js} +1 -1
  59. package/dist/browser/{select-CwB0Zi7C.js → select-ByU-Ym6-.js} +10 -10
  60. package/dist/browser/{settings-MzAuoQZ6.js → settings-CEH1i0Pj.js} +2 -2
  61. package/dist/browser/{settings-item-Ca6s5CDf.js → settings-item-_PTji9Bz.js} +6 -6
  62. package/dist/browser/{store-B_c3r86U.js → store-Oj0dGPnb.js} +1098 -1037
  63. package/dist/browser/{string-editor-BjOeNcgJ.js → string-editor-DaF1t7MK.js} +4 -4
  64. package/dist/browser/{text-field-6Ccfbuuo.js → text-field-XRLZPyNV.js} +5 -5
  65. package/dist/browser/{theme-XlV0fBPc.js → theme-D0OZcdto.js} +8 -8
  66. package/dist/browser/{ui-BopruaHZ.js → ui-7ozfXlN3.js} +8 -8
  67. package/dist/browser/{useRenderTarget-CdH-VI6E.js → useRenderTarget-BG295f3e.js} +4 -4
  68. package/dist/esm/components/Booth/Booth.js +1 -1
  69. package/dist/esm/components/Event.js +1 -1
  70. package/dist/esm/components/Exhibitor.js +1 -1
  71. package/dist/esm/components/Layout.js +1 -1
  72. package/dist/esm/components/Speaker.js +1 -1
  73. package/dist/esm/floorplan.ready.js +1 -1
  74. package/dist/esm/services/url-sync.js +1 -1
  75. package/dist/esm/store/HeatmapStore.d.ts +9 -0
  76. package/dist/esm/store/RootStore.js +1 -1
  77. package/dist/esm/store/ShortcutRegistry.d.ts +14 -0
  78. package/dist/esm/store/ShortcutRegistry.js +1 -1
  79. package/dist/esm/store/providers/SessionsSubButtonProvider.d.ts +18 -0
  80. package/dist/esm/store/providers/SessionsSubButtonProvider.js +1 -1
  81. package/dist/esm/store/search-buttons/SearchButtonsActions.d.ts +15 -2
  82. package/dist/esm/store/search-buttons/SearchButtonsActions.js +1 -1
  83. package/dist/esm/store/search-buttons/SearchButtonsFactory.js +1 -1
  84. package/dist/esm/store/search-buttons/SearchButtonsStore.d.ts +3 -3
  85. package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
  86. package/dist/esm/tools/gtag.d.ts +1 -0
  87. package/dist/esm/tools/gtag.js +1 -1
  88. package/dist/esm/tools/telemetry.d.ts +2 -0
  89. package/dist/esm/tools/telemetry.js +1 -1
  90. package/dist/esm/tools/track-event.d.ts +26 -2
  91. package/dist/esm/tools/track-event.js +1 -1
  92. package/package.json +9 -9
@@ -2,21 +2,21 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.25.2" };
5
+ e.SENTRY_RELEASE = { id: "3.26.0" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "3f0aaf1a-c3b3-41aa-ac93-39baf3bd7cd8", e._sentryDebugIdIdentifier = "sentry-dbid-3f0aaf1a-c3b3-41aa-ac93-39baf3bd7cd8");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7259d742-99a4-46b2-b4b9-57f3b9fff5d4", e._sentryDebugIdIdentifier = "sentry-dbid-7259d742-99a4-46b2-b4b9-57f3b9fff5d4");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./rolldown-runtime-D0mAPq9J.js";
11
- import { X as n, Y as r, v as i, y as a } from "./i18n-Cp32ZzDq.js";
12
- import { t as o } from "./react-BNCBBLDK.js";
13
- import { t as s } from "./jsx-runtime-DwNSQYOA.js";
14
- import { E as c, Ft as l, I as u, Pt as d, R as f, V as p, Wt as m, _t as h, an as g, c as _, cn as v, d as y, dn as b, f as x, fn as S, gt as C, hn as w, kt as T, l as E, ln as D, p as O, pt as k, sn as A, t as j, u as M, xn as ee, zt as te } from "./store-B_c3r86U.js";
15
- import { t as N } from "./index.module-CeDH7KeK.js";
16
- import { r as ne } from "./mobx-DFFcUY2e.js";
17
- import { a as re, c as ie, i as ae, l as oe, n as se, o as ce, r as le, s as ue, t as de } from "./booth-by-xy-DgXTlV8u.js";
10
+ import { r as e, t } from "./rolldown-runtime-BmHtYG9i.js";
11
+ import { X as n, Y as r, v as i, y as a } from "./i18n-Bcv8xw_q.js";
12
+ import { t as o } from "./react-BJopqGbW.js";
13
+ import { t as s } from "./jsx-runtime-CT2c-IhD.js";
14
+ import { At as c, Bt as l, E as u, Ft as d, Gt as f, I as p, It as m, R as h, Sn as g, V as _, _t as v, c as y, cn as b, d as x, f as S, fn as C, gn as w, l as T, ln as E, mt as D, on as O, p as k, pn as A, t as j, u as M, un as N, vt as ee } from "./store-Oj0dGPnb.js";
15
+ import { t as te } from "./index.module-BFxDVa3K.js";
16
+ import { r as ne } from "./mobx-dAtztuiQ.js";
17
+ import { a as re, c as ie, i as ae, l as oe, n as se, o as ce, r as le, s as ue, t as de } from "./booth-by-xy-CyZpg1Fn.js";
18
18
  //#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
19
- var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__PURE__ */ t(((e, t) => {
19
+ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(A(), 1), pe = (/* @__PURE__ */ t(((e, t) => {
20
20
  (function(n, r) {
21
21
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.maplibregl = r());
22
22
  })(e, (function() {
@@ -315,17 +315,17 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
315
315
  function M(e, t, n) {
316
316
  return e * (1 - n) + t * n;
317
317
  }
318
- function ee(e) {
318
+ function N(e) {
319
319
  if (e <= 0) return 0;
320
320
  if (e >= 1) return 1;
321
321
  let t = e * e, n = t * e;
322
322
  return 4 * (e < .5 ? n : 3 * (e - t) + n - .75);
323
323
  }
324
- function te(e, t, n, r) {
324
+ function ee(e, t, n, r) {
325
325
  let i = new o(e, t, n, r);
326
326
  return (e) => i.solve(e);
327
327
  }
328
- let N = te(.25, .1, .25, 1);
328
+ let te = ee(.25, .1, .25, 1);
329
329
  function ne(e, t, n) {
330
330
  return Math.min(n, Math.max(t, e));
331
331
  }
@@ -8315,7 +8315,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
8315
8315
  if (r < this.begin) return a.possiblyEvaluate(e, t, n);
8316
8316
  {
8317
8317
  let o = (r - this.begin) / (this.end - this.begin);
8318
- return this.property.interpolate(a.possiblyEvaluate(e, t, n), i, ee(o));
8318
+ return this.property.interpolate(a.possiblyEvaluate(e, t, n), i, N(o));
8319
8319
  }
8320
8320
  }
8321
8321
  return i;
@@ -17388,7 +17388,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
17388
17388
  (o.textFitWidth || o.textFitHeight) && (u = lf(e)), v = hh(d, 0, t[0]), b = hh(f, 0, t[1]), y = hh(d, t[0], t[2]), x = hh(f, t[1], t[3]), S = t[0] - v, w = t[1] - b, C = n - y, T = r - x;
17389
17389
  }
17390
17390
  let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
17391
- let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), ee = new n(p, _), te = new n(l, _), N = new n(u / s, f / s), ne = new n(g / s, A / s), re = t * Math.PI / 180;
17391
+ let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), N = new n(p, _), ee = new n(l, _), te = new n(u / s, f / s), ne = new n(g / s, A / s), re = t * Math.PI / 180;
17392
17392
  if (re) {
17393
17393
  let e = Math.sin(re), t = Math.cos(re), n = [
17394
17394
  t,
@@ -17396,14 +17396,14 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
17396
17396
  e,
17397
17397
  t
17398
17398
  ];
17399
- j._matMult(n), M._matMult(n), te._matMult(n), ee._matMult(n);
17399
+ j._matMult(n), M._matMult(n), ee._matMult(n), N._matMult(n);
17400
17400
  }
17401
17401
  let ie = e.stretch + e.fixed, ae = i.stretch + i.fixed;
17402
17402
  return {
17403
17403
  tl: j,
17404
17404
  tr: M,
17405
- bl: te,
17406
- br: ee,
17405
+ bl: ee,
17406
+ br: N,
17407
17407
  tex: {
17408
17408
  x: o.paddedRect.x + 1 + ie,
17409
17409
  y: o.paddedRect.y + 1 + ae,
@@ -17413,7 +17413,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
17413
17413
  writingMode: void 0,
17414
17414
  glyphOffset: [0, 0],
17415
17415
  sectionIndex: 0,
17416
- pixelOffsetTL: N,
17416
+ pixelOffsetTL: te,
17417
17417
  pixelOffsetBR: ne,
17418
17418
  minFontScaleX: C / s / O,
17419
17419
  minFontScaleY: T / s / k,
@@ -17673,9 +17673,9 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
17673
17673
  ];
17674
17674
  }(m, n, d, t.tilePixelRatio), w = m.get("text-max-angle") / 180 * Math.PI, T = m.get("text-rotation-alignment") !== "viewport" && m.get("symbol-placement") !== "point", E = m.get("icon-rotation-alignment") === "map" && m.get("symbol-placement") !== "point", D = m.get("symbol-placement"), k = x / 2, A = m.get("icon-text-fit"), j;
17675
17675
  i && A !== "none" && (t.allowVerticalPlacement && r.vertical && (j = uf(i, r.vertical, A, m.get("icon-text-fit-padding"), h, _)), g && (i = uf(i, g, A, m.get("icon-text-fit-padding"), h, _)));
17676
- let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, ee = (c, f) => {
17676
+ let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, N = (c, f) => {
17677
17677
  f.x < 0 || f.x >= O || f.y < 0 || f.y >= O || function(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T) {
17678
- let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, ee = 0, te = 0, N = -1, ne = -1, re = {}, ie = _s("");
17678
+ let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0, te = -1, ne = -1, re = {}, ie = _s("");
17679
17679
  if (t.allowVerticalPlacement && i.vertical) {
17680
17680
  let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
17681
17681
  k = new yh(l, n, u, d, f, i.vertical, p, m, h, e), s && (A = new yh(l, n, u, d, f, s, _, v, h, e));
@@ -17684,7 +17684,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
17684
17684
  let r = c.layout.get("icon-rotate").evaluate(x, {}), i = c.layout.get("icon-text-fit") !== "none", o = mh(a, r, C, i), p = s ? mh(s, r, C, i) : void 0;
17685
17685
  O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
17686
17686
  let m = t.iconSizeData, h = null;
17687
- m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w), N = t.icon.placedSymbolArray.length - 1, p && (M = 4 * p.length, t.addSymbols(t.icon, p, h, b, y, x, e.ax.vertical, n, E.lineStartIndex, E.lineLength, -1, w), ne = t.icon.placedSymbolArray.length - 1);
17687
+ m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w), te = t.icon.placedSymbolArray.length - 1, p && (M = 4 * p.length, t.addSymbols(t.icon, p, h, b, y, x, e.ax.vertical, n, E.lineStartIndex, E.lineLength, -1, w), ne = t.icon.placedSymbolArray.length - 1);
17688
17688
  }
17689
17689
  let ae = Object.keys(i.horizontal);
17690
17690
  for (let r of ae) {
@@ -17695,9 +17695,9 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
17695
17695
  D = new yh(l, n, u, d, f, a, p, m, h, e);
17696
17696
  }
17697
17697
  let s = a.positionedLines.length === 1;
17698
- if (ee += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ae : [r], re, N, S, w), s) break;
17698
+ if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ae : [r], re, te, S, w), s) break;
17699
17699
  }
17700
- i.vertical && (te += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], re, ne, S, w));
17700
+ i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], re, ne, S, w));
17701
17701
  let oe = D ? D.boxStartIndex : t.collisionBoxArray.length, se = D ? D.boxEndIndex : t.collisionBoxArray.length, ce = k ? k.boxStartIndex : t.collisionBoxArray.length, le = k ? k.boxEndIndex : t.collisionBoxArray.length, de = O ? O.boxStartIndex : t.collisionBoxArray.length, P = O ? O.boxEndIndex : t.collisionBoxArray.length, fe = A ? A.boxStartIndex : t.collisionBoxArray.length, pe = A ? A.boxEndIndex : t.collisionBoxArray.length, me = -1, he = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
17702
17702
  me = he(D, me), me = he(k, me), me = he(O, me), me = he(A, me);
17703
17703
  let ge = +(me > -1);
@@ -17710,7 +17710,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
17710
17710
  }
17711
17711
  return [r, t.length];
17712
17712
  }(t.textAnchorOffsets, _e);
17713
- t.symbolInstances.emplaceBack(n.x, n.y, re.right >= 0 ? re.right : -1, re.center >= 0 ? re.center : -1, re.left >= 0 ? re.left : -1, re.vertical || -1, N, ne, ie, oe, se, ce, le, de, P, fe, pe, u, ee, te, j, M, ge, 0, p, me, ve, ye);
17713
+ t.symbolInstances.emplaceBack(n.x, n.y, re.right >= 0 ? re.right : -1, re.center >= 0 ? re.center : -1, re.left >= 0 ? re.left : -1, re.vertical || -1, te, ne, ie, oe, se, ce, le, de, P, fe, pe, u, N, ee, j, M, ge, 0, p, me, ve, ye);
17714
17714
  }(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
17715
17715
  S,
17716
17716
  S,
@@ -17720,22 +17720,22 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
17720
17720
  };
17721
17721
  if (D === "line") for (let e of eh(n.geometry, 0, 0, O, O)) {
17722
17722
  let n = yl(e, M), a = fh(n, x, w, r.vertical || g, i, 24, y, t.overscaling, O);
17723
- for (let e of a) g && Mh(t, g.text, k, e) || ee(n, e);
17723
+ for (let e of a) g && Mh(t, g.text, k, e) || N(n, e);
17724
17724
  }
17725
17725
  else if (D === "line-center") {
17726
17726
  for (let e of n.geometry) if (e.length > 1) {
17727
17727
  let t = yl(e, M), n = dh(t, w, r.vertical || g, i, 24, y);
17728
- n && ee(t, n);
17728
+ n && N(t, n);
17729
17729
  }
17730
17730
  } else if (n.type === "Polygon") for (let e of or(n.geometry, 0)) {
17731
17731
  let t = xh(e, 16);
17732
- ee(yl(e[0], M, !0), new oh(t.x, t.y, 0));
17732
+ N(yl(e[0], M, !0), new oh(t.x, t.y, 0));
17733
17733
  }
17734
17734
  else if (n.type === "LineString") for (let e of n.geometry) {
17735
17735
  let t = yl(e, M);
17736
- ee(t, new oh(t[0].x, t[0].y, 0));
17736
+ N(t, new oh(t[0].x, t[0].y, 0));
17737
17737
  }
17738
- else if (n.type === "Point") for (let e of n.geometry) for (let t of e) ee([t], new oh(t.x, t.y, 0));
17738
+ else if (n.type === "Point") for (let e of n.geometry) for (let t of e) N([t], new oh(t.x, t.y, 0));
17739
17739
  }
17740
17740
  function Ah(e, t, r, i, a, o, s, c, l, u, d, f, p, m, h) {
17741
17741
  let g = function(e, t, r, i, a, o, s, c) {
@@ -18380,7 +18380,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
18380
18380
  };
18381
18381
  }, e.bn = function(e, t) {
18382
18382
  return e.roll == t.roll && e.pitch == t.pitch && e.bearing == t.bearing;
18383
- }, e.bo = U, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = ee, e.bv = Yt, e.bw = function(e, t, n, r, i) {
18383
+ }, e.bo = U, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = N, e.bv = Yt, e.bw = function(e, t, n, r, i) {
18384
18384
  return M(r, i, ne((e - t) / (n - t), 0, 1));
18385
18385
  }, e.bx = function(e, t, n, r) {
18386
18386
  return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
@@ -18585,11 +18585,11 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
18585
18585
  }, e.ch = class extends uo {}, e.ci = class extends jo {}, e.cj = function(e, t) {
18586
18586
  return e[0] === t[0] && e[1] === t[1] && e[2] === t[2] && e[3] === t[3] && e[4] === t[4] && e[5] === t[5] && e[6] === t[6] && e[7] === t[7] && e[8] === t[8] && e[9] === t[9] && e[10] === t[10] && e[11] === t[11] && e[12] === t[12] && e[13] === t[13] && e[14] === t[14] && e[15] === t[15];
18587
18587
  }, e.ck = function(e, t) {
18588
- var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13], ee = t[14], te = t[15];
18589
- return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ - ee) <= d * Math.max(1, Math.abs(_), Math.abs(ee)) && Math.abs(v - te) <= d * Math.max(1, Math.abs(v), Math.abs(te));
18588
+ var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13], N = t[14], ee = t[15];
18589
+ return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ - N) <= d * Math.max(1, Math.abs(_), Math.abs(N)) && Math.abs(v - ee) <= d * Math.max(1, Math.abs(v), Math.abs(ee));
18590
18590
  }, e.cl = function(e, t) {
18591
18591
  return e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e[4] = t[4], e[5] = t[5], e[6] = t[6], e[7] = t[7], e[8] = t[8], e[9] = t[9], e[10] = t[10], e[11] = t[11], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
18592
- }, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv = te, e.cw = function(e, t, n) {
18592
+ }, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv = ee, e.cw = function(e, t, n) {
18593
18593
  if (t <= 0) return e;
18594
18594
  let r = 1 / t;
18595
18595
  return n === void 0 || Math.abs(n) < 1e-10 ? Math.round(e * r) / r : (n > 0 ? Math.ceil(e * r - 1e-9) : Math.floor(e * r + 1e-10)) / r;
@@ -18597,7 +18597,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
18597
18597
  let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
18598
18598
  var a, o;
18599
18599
  return be(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
18600
- }, e.cy = N, e.cz = function(e, t) {
18600
+ }, e.cy = te, e.cz = function(e, t) {
18601
18601
  var n;
18602
18602
  if (!Se[t]) return !1;
18603
18603
  let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
@@ -20258,9 +20258,9 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
20258
20258
  return Object.keys(this.active).length;
20259
20259
  }
20260
20260
  }
20261
- let M = Math.floor(s.hardwareConcurrency / 2), ee, te;
20262
- function N() {
20263
- return ee || (ee = new j()), ee;
20261
+ let M = Math.floor(s.hardwareConcurrency / 2), N, ee;
20262
+ function te() {
20263
+ return N || (N = new j()), N;
20264
20264
  }
20265
20265
  j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
20266
20266
  class ne {
@@ -20296,7 +20296,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
20296
20296
  }
20297
20297
  }
20298
20298
  function re() {
20299
- return te || (te = new ne(N(), t.M), te.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), te;
20299
+ return ee || (ee = new ne(te(), t.M), ee.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), ee;
20300
20300
  }
20301
20301
  function ie(e, n) {
20302
20302
  let r = t.O();
@@ -23033,7 +23033,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
23033
23033
  var w, A;
23034
23034
  if (n[e.crossTileID]) return;
23035
23035
  if (d) return void (this.placements[e.crossTileID] = new Ct(!1, !1, !1));
23036
- let j = !1, M = !1, ee = !0, te = null, N = {
23036
+ let j = !1, M = !1, N = !0, ee = null, te = {
23037
23037
  box: null,
23038
23038
  placeable: !1,
23039
23039
  offscreen: null,
@@ -23051,8 +23051,8 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
23051
23051
  return r;
23052
23052
  }, a = (n, r) => {
23053
23053
  if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
23054
- for (let e of i.writingModes) if (e === t.ax.vertical ? (N = r(), ne = N) : N = n(), N != null && N.placeable) break;
23055
- } else N = n();
23054
+ for (let e of i.writingModes) if (e === t.ax.vertical ? (te = r(), ne = te) : te = n(), te != null && te.placeable) break;
23055
+ } else te = n();
23056
23056
  }, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
23057
23057
  if (d === l) {
23058
23058
  let r = (t, n) => {
@@ -23065,7 +23065,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
23065
23065
  box: null,
23066
23066
  offscreen: null
23067
23067
  };
23068
- })), n(N == null ? void 0 : N.placeable);
23068
+ })), n(te == null ? void 0 : te.placeable);
23069
23069
  } else {
23070
23070
  let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
23071
23071
  let f = t.x2 - t.x1, h = t.y2 - t.y1, g = e.textBoxScale, v = C && y === "never" ? n : null, b = null, w = _ === "never" ? 1 : 2, T = "never";
@@ -23075,7 +23075,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
23075
23075
  let r = i.textAnchorOffsets.get(n);
23076
23076
  if (p && r.textAnchor !== p) continue;
23077
23077
  let l = this.attemptAnchorPlacement(r, t, f, h, g, x, S, u, D, c, m, T, e, i, a, o, s, v, O);
23078
- if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, te = l.shift, b;
23078
+ if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, ee = l.shift, b;
23079
23079
  }
23080
23080
  p ? p = null : T = _;
23081
23081
  }
@@ -23088,33 +23088,33 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
23088
23088
  };
23089
23089
  a((() => h(le, f.iconBox, t.ax.horizontal)), (() => {
23090
23090
  let n = f.verticalTextBox;
23091
- return i.allowVerticalPlacement && !(N != null && N.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
23091
+ return i.allowVerticalPlacement && !(te != null && te.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
23092
23092
  box: null,
23093
23093
  occluded: !0,
23094
23094
  offscreen: null
23095
23095
  };
23096
- })), N && (j = N.placeable, ee = N.offscreen);
23097
- let g = n(N == null ? void 0 : N.placeable);
23096
+ })), te && (j = te.placeable, N = te.offscreen);
23097
+ let g = n(te == null ? void 0 : te.placeable);
23098
23098
  if (!j && this.prevPlacement) {
23099
23099
  let t = this.prevPlacement.variableOffsets[e.crossTileID];
23100
23100
  t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
23101
23101
  }
23102
23102
  }
23103
23103
  }
23104
- if (re = N, j = re == null ? void 0 : re.placeable, ee = re == null ? void 0 : re.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
23104
+ if (re = te, j = re == null ? void 0 : re.placeable, N = re == null ? void 0 : re.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
23105
23105
  let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
23106
- ie = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ie.circles.length && ie.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ie.circles.length > 0 && !ie.collisionDetected, ee && (ee = ie.offscreen);
23106
+ ie = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ie.circles.length && ie.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ie.circles.length > 0 && !ie.collisionDetected, N && (N = ie.offscreen);
23107
23107
  }
23108
23108
  if (f.iconFeatureIndex && (ce = f.iconFeatureIndex), f.iconBox) {
23109
- let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && te ? te : void 0, k);
23110
- ne && ne.placeable && f.verticalIconBox ? (ae = e(f.verticalIconBox), M = ae.placeable) : (ae = e(f.iconBox), M = ae.placeable), ee && (ee = ae.offscreen);
23109
+ let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && ee ? ee : void 0, k);
23110
+ ne && ne.placeable && f.verticalIconBox ? (ae = e(f.verticalIconBox), M = ae.placeable) : (ae = e(f.iconBox), M = ae.placeable), N && (N = ae.offscreen);
23111
23111
  }
23112
23112
  let ue = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, de = g || e.numIconVertices === 0;
23113
23113
  ue || de ? de ? ue || M && (M = j) : j = M && j : M = j = M && j;
23114
23114
  let P = M && ae.placeable;
23115
23115
  if (j && re.placeable && this.collisionIndex.insertCollisionBox(re.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, ne && ne.placeable && se ? se : oe, m.ID), P && this.collisionIndex.insertCollisionBox(ae.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, ce, m.ID), ie && j && this.collisionIndex.insertCollisionCircles(ie.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, oe, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, re, ae, ie), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
23116
23116
  if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
23117
- this.placements[e.crossTileID] = new Ct((j || T) && !(re != null && re.occluded), (M || E) && !(ae != null && ae.occluded), ee || i.justReloaded), n[e.crossTileID] = !0;
23117
+ this.placements[e.crossTileID] = new Ct((j || T) && !(re != null && re.occluded), (M || E) && !(ae != null && ae.occluded), N || i.justReloaded), n[e.crossTileID] = !0;
23118
23118
  };
23119
23119
  if (w) {
23120
23120
  if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
@@ -26522,7 +26522,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
26522
26522
  let t = this.tileManagers[e].getSource().type;
26523
26523
  t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
26524
26524
  }
26525
- }, this.map = e, this.dispatcher = new ne(N(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", ((e, t) => this.getGlyphs(e, t))), this.dispatcher.registerMessageHandler("GI", ((e, t) => this.getImages(e, t))), this.dispatcher.registerMessageHandler("GDA", ((e, t) => this.getDashes(e, t))), this.imageManager = new _(), this.imageManager.setEventedParent(this);
26525
+ }, this.map = e, this.dispatcher = new ne(te(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", ((e, t) => this.getGlyphs(e, t))), this.dispatcher.registerMessageHandler("GI", ((e, t) => this.getImages(e, t))), this.dispatcher.registerMessageHandler("GDA", ((e, t) => this.getDashes(e, t))), this.imageManager = new _(), this.imageManager.setEventedParent(this);
26526
26526
  let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
26527
26527
  this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new Bt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()), Oe().on(Te, this._rtlPluginLoaded), this.on("data", ((e) => {
26528
26528
  if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
@@ -28685,11 +28685,11 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
28685
28685
  if (!l) continue;
28686
28686
  let d = a ? l.text : l.icon;
28687
28687
  if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
28688
- let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, ee, te, N, ne = [0, 0], re = null;
28689
- if (a) ee = i.glyphAtlasTexture, te = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (ne = i.imageAtlasTexture.size, re = i.imageAtlasTexture, N = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
28688
+ let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, N, ee, te, ne = [0, 0], re = null;
28689
+ if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (ne = i.imageAtlasTexture.size, re = i.imageAtlasTexture, te = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
28690
28690
  else {
28691
28691
  let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
28692
- ee = i.imageAtlasTexture, te = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
28692
+ N = i.imageAtlasTexture, ee = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
28693
28693
  }
28694
28694
  let ie = t.aK(i, 1, e.transform.zoom), ae = et(y, e.transform, ie), oe = tt(b, y, e.transform, ie), se = t.aL(v, i, o, s), ce = v.getProjectionData({
28695
28695
  overscaledTileID: c,
@@ -28709,10 +28709,10 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
28709
28709
  buffers: d,
28710
28710
  uniformValues: pe,
28711
28711
  projectionData: ce,
28712
- atlasTexture: ee,
28712
+ atlasTexture: N,
28713
28713
  atlasTextureIcon: re,
28714
- atlasInterpolation: te,
28715
- atlasInterpolationIcon: N,
28714
+ atlasInterpolation: ee,
28715
+ atlasInterpolationIcon: te,
28716
28716
  isSDF: h,
28717
28717
  hasHalo: fe
28718
28718
  };
@@ -33715,8 +33715,8 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
33715
33715
  Ce[e] = t;
33716
33716
  })(e, n);
33717
33717
  })), e.clearPrewarmedResources = function() {
33718
- let e = ee;
33719
- e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A), ee = null) : console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"));
33718
+ let e = N;
33719
+ e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A), N = null) : console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"));
33720
33720
  }, e.createTileMesh = fn, e.getGlobalDispatcher = re, e.getMaxParallelImageRequests = function() {
33721
33721
  return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
33722
33722
  }, e.getRTLTextPluginStatus = function() {
@@ -33732,7 +33732,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
33732
33732
  }, e.isTimeFrozen = function() {
33733
33733
  return c.isFrozen();
33734
33734
  }, e.now = l, e.prewarm = function() {
33735
- N().acquire(A);
33735
+ te().acquire(A);
33736
33736
  }, e.restoreNow = function() {
33737
33737
  c.restoreNow();
33738
33738
  }, e.setMaxParallelImageRequests = function(e) {
@@ -33933,12 +33933,12 @@ var Me = /*#__PURE__*/ ke(Ae, 9, 1), Ne = /*#__PURE__*/ ke(je, 5, 1), Pe = funct
33933
33933
  var y = j >> 4;
33934
33934
  if (y < 16) T[D++] = y;
33935
33935
  else {
33936
- var M = 0, ee = 0;
33937
- for (y == 16 ? (ee = 3 + Fe(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (ee = 3 + Fe(e, d, 7), d += 3) : y == 18 && (ee = 11 + Fe(e, d, 127), d += 7); ee--;) T[D++] = M;
33936
+ var M = 0, N = 0;
33937
+ for (y == 16 ? (N = 3 + Fe(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (N = 3 + Fe(e, d, 7), d += 3) : y == 18 && (N = 11 + Fe(e, d, 127), d += 7); N--;) T[D++] = M;
33938
33938
  }
33939
33939
  }
33940
- var te = T.subarray(0, S), N = T.subarray(S);
33941
- h = Pe(te), g = Pe(N), p = ke(te, h, 1), m = ke(N, g, 1);
33940
+ var ee = T.subarray(0, S), te = T.subarray(S);
33941
+ h = Pe(ee), g = Pe(te), p = ke(ee, h, 1), m = ke(te, g, 1);
33942
33942
  } else ze(1);
33943
33943
  if (d > _) {
33944
33944
  c && ze(0);
@@ -33964,10 +33964,10 @@ var Me = /*#__PURE__*/ ke(Ae, 9, 1), Ne = /*#__PURE__*/ ke(je, 5, 1), Pe = funct
33964
33964
  }
33965
33965
  var ce = m[Ie(e, d) & re], le = ce >> 4;
33966
33966
  ce || ze(3), d += ce & 15;
33967
- var N = Te[le];
33967
+ var te = Te[le];
33968
33968
  if (le > 3) {
33969
33969
  var se = ve[le];
33970
- N += Ie(e, d) & (1 << se) - 1, d += se;
33970
+ te += Ie(e, d) & (1 << se) - 1, d += se;
33971
33971
  }
33972
33972
  if (d > _) {
33973
33973
  c && ze(0);
@@ -33975,11 +33975,11 @@ var Me = /*#__PURE__*/ ke(Ae, 9, 1), Ne = /*#__PURE__*/ ke(je, 5, 1), Pe = funct
33975
33975
  }
33976
33976
  s && l(f + 131072);
33977
33977
  var ue = f + oe;
33978
- if (f < N) {
33979
- var de = a - N, P = Math.min(N, ue);
33978
+ if (f < te) {
33979
+ var de = a - te, P = Math.min(te, ue);
33980
33980
  for (de + f < 0 && ze(3); f < P; ++f) n[f] = r[de + f];
33981
33981
  }
33982
- for (; f < ue; ++f) n[f] = n[f - N];
33982
+ for (; f < ue; ++f) n[f] = n[f - te];
33983
33983
  }
33984
33984
  }
33985
33985
  t.l = p, t.p = ie, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
@@ -34694,7 +34694,7 @@ function Ht() {
34694
34694
  return e;
34695
34695
  }
34696
34696
  function W({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOptions: i, onRendererReady: a, onMapDimLayerReady: o, onMapLoadError: s }) {
34697
- let c = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(a), f = (0, P.useRef)(o), p = (0, P.useRef)(s), m = (0, P.useRef)({
34697
+ let c = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(a), p = (0, P.useRef)(o), m = (0, P.useRef)(s), h = (0, P.useRef)({
34698
34698
  sceneDef: e,
34699
34699
  geoConfig: t,
34700
34700
  staticTransform: n,
@@ -34702,18 +34702,18 @@ function W({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOp
34702
34702
  mapOptions: i
34703
34703
  });
34704
34704
  return (0, P.useEffect)(() => {
34705
- d.current = a, f.current = o, p.current = s;
34705
+ f.current = a, p.current = o, m.current = s;
34706
34706
  }), (0, P.useEffect)(() => {
34707
34707
  var e, t;
34708
34708
  if (!c.current) return;
34709
- let { sceneDef: n, geoConfig: r, staticTransform: i, tileSource: a, mapOptions: o } = m.current, s = !1, h = { ...n };
34710
- h.rootLayer = { ...n.rootLayer };
34711
- let g = n.rootLayer.children;
34712
- h.rootLayer.children = g.filter((e) => {
34709
+ let { sceneDef: n, geoConfig: r, staticTransform: i, tileSource: a, mapOptions: o } = h.current, s = !1, g = { ...n };
34710
+ g.rootLayer = { ...n.rootLayer };
34711
+ let _ = n.rootLayer.children;
34712
+ g.rootLayer.children = _.filter((e) => {
34713
34713
  var t;
34714
34714
  return (e == null || (t = e.name) == null ? void 0 : t.toString().toLowerCase()) !== "areamap";
34715
- }), h.background = void 0, h.staticTransform = i;
34716
- let _ = Ht(), v = r.bounds ? {
34715
+ }), g.background = void 0, g.staticTransform = i;
34716
+ let v = Ht(), y = r.bounds ? {
34717
34717
  bounds: r.bounds,
34718
34718
  fitBoundsOptions: {
34719
34719
  padding: r.fitPadding,
@@ -34722,9 +34722,9 @@ function W({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOp
34722
34722
  } : {
34723
34723
  center: r.center,
34724
34724
  zoom: r.zoom
34725
- }, y = Ot(a.style, a.offline ? (e) => Tt(_, e) : void 0), b = new pe.Map({
34725
+ }, b = Ot(a.style, a.offline ? (e) => Tt(v, e) : void 0), x = new pe.Map({
34726
34726
  container: c.current,
34727
- ...v,
34727
+ ...y,
34728
34728
  bearing: r.bearing,
34729
34729
  pitch: (e = o == null ? void 0 : o.pitch) == null ? 30 : e,
34730
34730
  maxPitch: (t = o == null ? void 0 : o.maxPitch) == null ? 70 : t,
@@ -34734,47 +34734,47 @@ function W({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOp
34734
34734
  bearingSnap: 0,
34735
34735
  canvasContextAttributes: { antialias: !0 }
34736
34736
  });
34737
- r.zoomAdjustment && b.jumpTo({ zoom: b.getZoom() + r.zoomAdjustment }), l.current = b, b.once("error", (e) => {
34737
+ r.zoomAdjustment && x.jumpTo({ zoom: x.getZoom() + r.zoomAdjustment }), u.current = x, x.once("error", (e) => {
34738
34738
  var t, n;
34739
- b.isStyleLoaded() || (t = p.current) == null || t.call(p, (n = e == null ? void 0 : e.error) == null ? e : n);
34739
+ x.isStyleLoaded() || (t = m.current) == null || t.call(m, (n = e == null ? void 0 : e.error) == null ? e : n);
34740
34740
  });
34741
- let x = (e) => {
34741
+ let S = (e) => {
34742
34742
  let t = e == null ? void 0 : e.id;
34743
- !t || b.hasImage(t) || b.addImage(t, {
34743
+ !t || x.hasImage(t) || x.addImage(t, {
34744
34744
  width: 1,
34745
34745
  height: 1,
34746
34746
  data: /* @__PURE__ */ new Uint8Array(4)
34747
34747
  });
34748
34748
  };
34749
- b.on("styleimagemissing", x);
34750
- let S = At({ requestFrame: () => b.triggerRepaint() }), C = {
34749
+ x.on("styleimagemissing", S);
34750
+ let C = At({ requestFrame: () => x.triggerRepaint() }), w = {
34751
34751
  id: Pt,
34752
34752
  type: "custom",
34753
34753
  renderingMode: "3d",
34754
34754
  onAdd(e, t) {
34755
34755
  var n;
34756
34756
  if (s) return;
34757
- let r = new te({
34758
- canvas: b.getCanvas(),
34757
+ let r = new l({
34758
+ canvas: x.getCanvas(),
34759
34759
  gl: t
34760
34760
  });
34761
34761
  if (s) {
34762
34762
  r.dispose();
34763
34763
  return;
34764
34764
  }
34765
- r.init(h), u.current = r, (n = d.current) == null || n.call(d, r, b, h, () => b.triggerRepaint());
34765
+ r.init(g), d.current = r, (n = f.current) == null || n.call(f, r, x, g, () => x.triggerRepaint());
34766
34766
  },
34767
34767
  render(e, t) {
34768
- if (!u.current || u.current.isDisposed) return;
34768
+ if (!d.current || d.current.isDisposed) return;
34769
34769
  let n = U(t == null ? e : t);
34770
- n && (u.current.render(n), S(u.current));
34770
+ n && (d.current.render(n), C(d.current));
34771
34771
  }
34772
- }, w = () => {
34772
+ }, T = () => {
34773
34773
  var e;
34774
- Vt(b), b.getSource(Nt) || b.addSource(Nt, {
34774
+ Vt(x), x.getSource(Nt) || x.addSource(Nt, {
34775
34775
  type: "geojson",
34776
34776
  data: Lt
34777
- }), b.getLayer("expofp-map-dim") || b.addLayer({
34777
+ }), x.getLayer("expofp-map-dim") || x.addLayer({
34778
34778
  id: Mt,
34779
34779
  type: "fill",
34780
34780
  source: Nt,
@@ -34786,11 +34786,11 @@ function W({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOp
34786
34786
  delay: 0
34787
34787
  }
34788
34788
  }
34789
- }), (e = f.current) == null || e.call(f, b), b.addLayer(C);
34789
+ }), (e = p.current) == null || e.call(p, x), x.addLayer(w);
34790
34790
  };
34791
- return b.on("style.load", w), b.setStyle(a.style, y ? { transformStyle: y } : void 0), () => {
34791
+ return x.on("style.load", T), x.setStyle(a.style, b ? { transformStyle: b } : void 0), () => {
34792
34792
  var e;
34793
- s = !0, b.off("style.load", w), b.off("styleimagemissing", x), (e = u.current) == null || e.dispose(), u.current = null, b.remove(), l.current = null;
34793
+ s = !0, x.off("style.load", T), x.off("styleimagemissing", S), (e = d.current) == null || e.dispose(), d.current = null, x.remove(), u.current = null;
34794
34794
  };
34795
34795
  }, []), /* @__PURE__ */ (0, jt.jsx)("div", {
34796
34796
  ref: c,
@@ -34822,32 +34822,32 @@ function Zt(e, t, n) {
34822
34822
  }
34823
34823
  function Qt(e, t) {
34824
34824
  let n = [
34825
- u(e.min.x, e.min.y, t),
34826
- u(e.max.x, e.min.y, t),
34827
- u(e.max.x, e.max.y, t),
34828
- u(e.min.x, e.max.y, t)
34825
+ p(e.min.x, e.min.y, t),
34826
+ p(e.max.x, e.min.y, t),
34827
+ p(e.max.x, e.max.y, t),
34828
+ p(e.min.x, e.max.y, t)
34829
34829
  ], r = n.map(([e]) => e), i = n.map(([, e]) => e);
34830
34830
  return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
34831
34831
  }
34832
34832
  var $t = 512;
34833
34833
  function en(e, t, n, r, i) {
34834
34834
  let a = [
34835
- u(e.min.x, e.min.y, t),
34836
- u(e.max.x, e.min.y, t),
34837
- u(e.max.x, e.max.y, t),
34838
- u(e.min.x, e.max.y, t)
34835
+ p(e.min.x, e.min.y, t),
34836
+ p(e.max.x, e.min.y, t),
34837
+ p(e.max.x, e.max.y, t),
34838
+ p(e.min.x, e.max.y, t)
34839
34839
  ].map(([e, t]) => pe.MercatorCoordinate.fromLngLat({
34840
34840
  lng: e,
34841
34841
  lat: t
34842
34842
  }));
34843
34843
  if (!a.every(({ x: e, y: t }) => Number.isFinite(e) && Number.isFinite(t))) return null;
34844
- let o = -n * Math.PI / 180, s = Math.cos(o), c = Math.sin(o), l = a.map(({ x: e, y: t }) => e * s - t * c), d = a.map(({ x: e, y: t }) => e * c + t * s), f = Math.max(...l) - Math.min(...l), p = Math.max(...d) - Math.min(...d);
34845
- if (f <= 0 || p <= 0) return null;
34844
+ let o = -n * Math.PI / 180, s = Math.cos(o), c = Math.sin(o), l = a.map(({ x: e, y: t }) => e * s - t * c), u = a.map(({ x: e, y: t }) => e * c + t * s), d = Math.max(...l) - Math.min(...l), f = Math.max(...u) - Math.min(...u);
34845
+ if (d <= 0 || f <= 0) return null;
34846
34846
  let m = r.width - i.left - i.right, h = r.height - i.top - i.bottom;
34847
34847
  if (m <= 0 || h <= 0) return null;
34848
- let g = Math.min(m / (f * $t), h / (p * $t));
34848
+ let g = Math.min(m / (d * $t), h / (f * $t));
34849
34849
  if (!(g > 0)) return null;
34850
- let _ = $t * g, v = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / _, y = (Math.min(...d) + Math.max(...d)) / 2 - (i.top - i.bottom) / 2 / _, { lng: b, lat: x } = new pe.MercatorCoordinate(v * s + y * c, -v * c + y * s).toLngLat();
34850
+ let _ = $t * g, v = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / _, y = (Math.min(...u) + Math.max(...u)) / 2 - (i.top - i.bottom) / 2 / _, { lng: b, lat: x } = new pe.MercatorCoordinate(v * s + y * c, -v * c + y * s).toLngLat();
34851
34851
  return {
34852
34852
  center: [b, x],
34853
34853
  zoom: Math.log2(g)
@@ -34862,7 +34862,7 @@ function tn(e, t) {
34862
34862
  };
34863
34863
  }
34864
34864
  function nn(e = 0) {
34865
- let t = E.canvasVisibleRectPx, n = E.screenSize;
34865
+ let t = T.canvasVisibleRectPx, n = T.screenSize;
34866
34866
  return t ? {
34867
34867
  top: Math.max(0, t.min.y) + e,
34868
34868
  bottom: Math.max(0, n.height - t.max.y) + e,
@@ -34881,8 +34881,8 @@ function rn(e, t, n) {
34881
34881
  }
34882
34882
  function an() {
34883
34883
  var e, t;
34884
- if (!(!(p == null || (e = p.properties) == null) && e.config)) return null;
34885
- let n = p.properties.config, r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = f(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
34884
+ if (!(!(_ == null || (e = _.properties) == null) && e.config)) return null;
34885
+ let n = _.properties.config, r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = h(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
34886
34886
  return {
34887
34887
  center: [r, i],
34888
34888
  bearing: o,
@@ -34943,9 +34943,9 @@ function on(e, t, n, r = {}) {
34943
34943
  }
34944
34944
  //#endregion
34945
34945
  //#region src/components/Maplibre/useCameraReactions.ts
34946
- var G = E, sn = 15, K = 24;
34946
+ var G = T, sn = 15, K = 24;
34947
34947
  function q(e) {
34948
- return M(e, x(e, A));
34948
+ return M(e, S(e, b));
34949
34949
  }
34950
34950
  function cn(e, t) {
34951
34951
  return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
@@ -34953,9 +34953,9 @@ function cn(e, t) {
34953
34953
  function J(e, t, n) {
34954
34954
  var r;
34955
34955
  if (n.length !== 1) return !1;
34956
- let i = (r = n[0]) == null ? void 0 : r.id, a = _.poiMarkerStore.markers.find((e) => e.boothId === i);
34956
+ let i = (r = n[0]) == null ? void 0 : r.id, a = y.poiMarkerStore.markers.find((e) => e.boothId === i);
34957
34957
  if (!a) return !1;
34958
- let o = u(a.center.x, a.center.y, t.gpsConfig);
34958
+ let o = p(a.center.x, a.center.y, t.gpsConfig);
34959
34959
  return rn(e, o, nn(K)) || e.easeTo({
34960
34960
  center: o,
34961
34961
  zoom: cn(e, sn),
@@ -34987,44 +34987,44 @@ function ln(e, t, n) {
34987
34987
  duration: 500
34988
34988
  }), G.zoomBy = null);
34989
34989
  }), ne(() => [
34990
- E.moveToLocation,
34991
- _.maplibreStore.cameraPort,
34992
- _.routeStore.currentPosition
34990
+ T.moveToLocation,
34991
+ y.maplibreStore.cameraPort,
34992
+ y.routeStore.currentPosition
34993
34993
  ], ([n]) => {
34994
34994
  if (!n) return;
34995
- let r = e.current, i = _.routeStore.currentPosition;
34995
+ let r = e.current, i = y.routeStore.currentPosition;
34996
34996
  if (!i) {
34997
- E.moveToLocation = !1;
34997
+ T.moveToLocation = !1;
34998
34998
  return;
34999
34999
  }
35000
35000
  if (!r) return;
35001
35001
  let { lng: a, lat: o } = i, s = typeof a == "number" && Number.isFinite(a) && typeof o == "number" && Number.isFinite(o);
35002
- E.moveToLocation = !1;
35002
+ T.moveToLocation = !1;
35003
35003
  let c;
35004
35004
  if (s) c = [a, o];
35005
35005
  else {
35006
35006
  if (!t) return;
35007
- c = u(i.x, i.y, t.gpsConfig);
35007
+ c = p(i.x, i.y, t.gpsConfig);
35008
35008
  }
35009
35009
  r.flyTo({
35010
35010
  center: c,
35011
35011
  animate: !0,
35012
35012
  duration: 1e3
35013
35013
  });
35014
- }), ne(() => E.centerMap, (r) => {
35014
+ }), ne(() => T.centerMap, (r) => {
35015
35015
  let i = e.current;
35016
35016
  if (!(!r || !i || !t)) {
35017
- if (!(E.list.type === "search" && !E.list.text)) {
35018
- let { rect: e } = O({
35019
- layerViewbox: _.layerStore.viewboxRectangle,
35020
- explicitArea: v ? A : null,
35021
- layerRectangle: _.layerStore.rectangle,
35017
+ if (!(T.list.type === "search" && !T.list.text)) {
35018
+ let { rect: e } = k({
35019
+ layerViewbox: y.layerStore.viewboxRectangle,
35020
+ explicitArea: E ? b : null,
35021
+ layerRectangle: y.layerStore.rectangle,
35022
35022
  sceneDef: n,
35023
- svgArea: A
35023
+ svgArea: b
35024
35024
  });
35025
35025
  on(i, e, t);
35026
35026
  }
35027
- E.centerMap = !1;
35027
+ T.centerMap = !1;
35028
35028
  }
35029
35029
  });
35030
35030
  }
@@ -35074,19 +35074,19 @@ function xn(e, t, n = !1) {
35074
35074
  }
35075
35075
  function Sn() {
35076
35076
  var e, t, n;
35077
- let r = (e = (t = _.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
35077
+ let r = (e = (t = y.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
35078
35078
  return r != null && r.style ? {
35079
35079
  style: r.style,
35080
35080
  offline: r.offline
35081
35081
  } : r != null && r.styleUrl ? {
35082
35082
  style: r.styleUrl,
35083
35083
  offline: r.offline
35084
- } : pn(p == null || (n = p.properties) == null || (n = n.config) == null ? void 0 : n.style, D.backgroundColor) === "dark" ? hn : mn;
35084
+ } : pn(_ == null || (n = _.properties) == null || (n = n.config) == null ? void 0 : n.style, N.backgroundColor) === "dark" ? hn : mn;
35085
35085
  }
35086
35086
  //#endregion
35087
35087
  //#region src/components/Maplibre/useDimming.ts
35088
35088
  function Cn() {
35089
- return E.dimmed && !_.poiMarkerStore.dimSuppressed;
35089
+ return T.dimmed && !y.poiMarkerStore.dimSuppressed;
35090
35090
  }
35091
35091
  function wn(e, t) {
35092
35092
  let n = (0, P.useRef)(t);
@@ -35157,7 +35157,7 @@ function Dn(e) {
35157
35157
  //#region src/components/Maplibre/useLayerVisibilitySync.ts
35158
35158
  function On(e, t, n) {
35159
35159
  let r = (0, P.useRef)(null), i = (0, P.useRef)(null);
35160
- ne(() => _.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
35160
+ ne(() => y.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
35161
35161
  var a, o;
35162
35162
  let s = e.scene;
35163
35163
  if (!s) return;
@@ -35166,7 +35166,7 @@ function On(e, t, n) {
35166
35166
  defsByName: En(s.rootLayer)
35167
35167
  });
35168
35168
  let c = r.current.defsByName, l = [];
35169
- for (let e of _.layerStore.layers) {
35169
+ for (let e of y.layerStore.layers) {
35170
35170
  let t = c.get(e.name);
35171
35171
  if (t != null && t.length) for (let n of t) {
35172
35172
  let t = !e.visible;
@@ -35174,7 +35174,7 @@ function On(e, t, n) {
35174
35174
  }
35175
35175
  }
35176
35176
  l.length && e.update(...l);
35177
- let u = _.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
35177
+ let u = y.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
35178
35178
  if (!u || i.current === u.name) return;
35179
35179
  i.current = u.name;
35180
35180
  let d = (o = u.viewbox) == null ? u.rect : o;
@@ -35199,22 +35199,22 @@ var kn = null, An = {
35199
35199
  function Bn(e, t, a) {
35200
35200
  (0, P.useEffect)(() => {
35201
35201
  var o;
35202
- if (!C()) return;
35202
+ if (!v()) return;
35203
35203
  let s = t.current;
35204
35204
  if (!e || !s || !a) return;
35205
- let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(), d = window.devicePixelRatio || 1, f = m(36, d, ((o = D.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), p = (e) => u(e.center.x, e.center.y, c), h = (e, t) => {
35206
- s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: d }), l.add(e);
35205
+ let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(), u = window.devicePixelRatio || 1, d = f(36, u, ((o = N.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), m = (e) => p(e.center.x, e.center.y, c), h = (e, t) => {
35206
+ s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: u }), l.add(e);
35207
35207
  }, g = (e) => {
35208
- let t = _.poiMarkerStore.markers, n = new Set(t.map((e) => zn(e.boothId)));
35208
+ let t = y.poiMarkerStore.markers, n = new Set(t.map((e) => zn(e.boothId)));
35209
35209
  n.add(In);
35210
35210
  for (let e of [...l]) n.has(e) || (s.hasImage(e) && s.removeImage(e), l.delete(e));
35211
35211
  for (let n of t) {
35212
35212
  let t = zn(n.boothId);
35213
35213
  (e || !l.has(t)) && h(t, n.icon);
35214
35214
  }
35215
- l.has(In) || h(In, f);
35216
- }, v = () => {
35217
- let e = _.poiMarkerStore.selectedMarkerId, t = _.poiMarkerStore.outdoorFilter, n = !t.active, r = _.poiMarkerStore.markers;
35215
+ l.has(In) || h(In, d);
35216
+ }, _ = () => {
35217
+ let e = y.poiMarkerStore.selectedMarkerId, t = y.poiMarkerStore.outdoorFilter, n = !t.active, r = y.poiMarkerStore.markers;
35218
35218
  return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
35219
35219
  cluster: n,
35220
35220
  data: {
@@ -35223,7 +35223,7 @@ function Bn(e, t, a) {
35223
35223
  type: "Feature",
35224
35224
  geometry: {
35225
35225
  type: "Point",
35226
- coordinates: p(t)
35226
+ coordinates: m(t)
35227
35227
  },
35228
35228
  properties: {
35229
35229
  boothId: t.boothId,
@@ -35233,7 +35233,7 @@ function Bn(e, t, a) {
35233
35233
  }))
35234
35234
  }
35235
35235
  };
35236
- }, y = () => {
35236
+ }, b = () => {
35237
35237
  var e, t, n;
35238
35238
  let r = null;
35239
35239
  for (let n of (e = (t = s.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
@@ -35246,17 +35246,17 @@ function Bn(e, t, a) {
35246
35246
  }
35247
35247
  }
35248
35248
  return (n = r) == null ? ["Noto Sans Regular"] : n;
35249
- }, b = null, x = () => {
35249
+ }, x = null, S = () => {
35250
35250
  for (let e of Ln) s.getLayer(e) && s.removeLayer(e);
35251
- s.getSource(jn) && s.removeSource(jn), b = null;
35252
- }, S = (e, t) => {
35253
- if (b !== null && b !== t && x(), s.getSource(jn) || (s.addSource(jn, {
35251
+ s.getSource(jn) && s.removeSource(jn), x = null;
35252
+ }, C = (e, t) => {
35253
+ if (x !== null && x !== t && S(), s.getSource(jn) || (s.addSource(jn, {
35254
35254
  type: "geojson",
35255
35255
  data: e,
35256
35256
  cluster: t,
35257
35257
  clusterRadius: 50,
35258
35258
  clusterMinPoints: 3
35259
- }), b = t), s.getLayer(Mn)) return;
35259
+ }), x = t), s.getLayer(Mn)) return;
35260
35260
  let i = ["!", ["has", "point_count"]], a = [
35261
35261
  "==",
35262
35262
  [
@@ -35285,7 +35285,7 @@ function Bn(e, t, a) {
35285
35285
  filter: ["has", "point_count"],
35286
35286
  layout: {
35287
35287
  "text-field": ["get", "point_count_abbreviated"],
35288
- "text-font": y(),
35288
+ "text-font": b(),
35289
35289
  "text-size": 14,
35290
35290
  "text-allow-overlap": !0,
35291
35291
  "text-ignore-placement": !0
@@ -35329,12 +35329,12 @@ function Bn(e, t, a) {
35329
35329
  }, E = (e = !1) => {
35330
35330
  var t;
35331
35331
  g(e);
35332
- let { cluster: n, data: r } = v();
35333
- S(r, n), (t = s.getSource(jn)) == null || t.setData(r), T();
35334
- }, O = (e) => {
35332
+ let { cluster: n, data: r } = _();
35333
+ C(r, n), (t = s.getSource(jn)) == null || t.setData(r), T();
35334
+ }, D = (e) => {
35335
35335
  if (!e.length) return;
35336
35336
  let t = nn(50);
35337
- if (e.every((e) => rn(s, p(e), t))) return;
35337
+ if (e.every((e) => rn(s, m(e), t))) return;
35338
35338
  let n = Qt(w.fromPoints(e.map((e) => e.center)), c), r = s.cameraForBounds(n, {
35339
35339
  padding: t,
35340
35340
  bearing: a.bearing
@@ -35346,13 +35346,13 @@ function Bn(e, t, a) {
35346
35346
  duration: 500,
35347
35347
  essential: !0
35348
35348
  });
35349
- }, k = (e) => {
35349
+ }, O = (e) => {
35350
35350
  var t;
35351
35351
  let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
35352
35352
  if (typeof n != "number") return;
35353
- let r = _.boothStore.boothById.get(n);
35354
- r && _.clickBooth(r);
35355
- }, A = (e) => {
35353
+ let r = y.boothStore.boothById.get(n);
35354
+ r && y.clickBooth(r);
35355
+ }, k = (e) => {
35356
35356
  var t, n, r;
35357
35357
  let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id, o = s.getSource(jn);
35358
35358
  if (typeof a != "number" || !o || (i == null || (r = i.geometry) == null ? void 0 : r.type) !== "Point") return;
@@ -35365,23 +35365,23 @@ function Bn(e, t, a) {
35365
35365
  });
35366
35366
  });
35367
35367
  };
35368
- s.on("click", Pn, k), s.on("click", Fn, k), s.on("click", Mn, A), An.set((e, t) => {
35368
+ s.on("click", Pn, O), s.on("click", Fn, O), s.on("click", Mn, k), An.set((e, t) => {
35369
35369
  let n = Rn.filter((e) => !!s.getLayer(e));
35370
35370
  if (!n.length) return !1;
35371
- let r = s.project(u(e, t, c));
35371
+ let r = s.project(p(e, t, c));
35372
35372
  return s.queryRenderedFeatures([r.x, r.y], { layers: n }).length > 0;
35373
35373
  });
35374
- let j = () => {
35374
+ let A = () => {
35375
35375
  l.clear(), E(!0);
35376
35376
  };
35377
- s.on("style.load", j);
35378
- let M = i(() => _.poiMarkerStore.markers, () => E(!0)), ee = i(() => _.poiMarkerStore.selectedMarkerId, () => E()), te = i(() => _.poiMarkerStore.outdoorFilter.key, () => {
35379
- E(), O(_.poiMarkerStore.outdoorFilter.matchingMarkers);
35380
- }), N = i(() => Cn(), () => T());
35377
+ s.on("style.load", A);
35378
+ let j = i(() => y.poiMarkerStore.markers, () => E(!0)), M = i(() => y.poiMarkerStore.selectedMarkerId, () => E()), ee = i(() => y.poiMarkerStore.outdoorFilter.key, () => {
35379
+ E(), D(y.poiMarkerStore.outdoorFilter.matchingMarkers);
35380
+ }), te = i(() => Cn(), () => T());
35381
35381
  return E(!0), () => {
35382
- M(), ee(), te(), N(), An.set(null), s.off("style.load", j), s.off("click", Pn, k), s.off("click", Fn, k), s.off("click", Mn, A);
35382
+ j(), M(), ee(), te(), An.set(null), s.off("style.load", A), s.off("click", Pn, O), s.off("click", Fn, O), s.off("click", Mn, k);
35383
35383
  try {
35384
- x();
35384
+ S();
35385
35385
  for (let e of l) s.hasImage(e) && s.removeImage(e);
35386
35386
  } catch {}
35387
35387
  };
@@ -35393,36 +35393,36 @@ function Bn(e, t, a) {
35393
35393
  }
35394
35394
  //#endregion
35395
35395
  //#region src/components/Maplibre/useRendererEvents.ts
35396
- var Vn = E;
35396
+ var Vn = T;
35397
35397
  function Hn(e, t) {
35398
35398
  (0, P.useEffect)(() => {
35399
35399
  if (!e) return;
35400
35400
  let n = ({ data: e }) => {
35401
- if (E.setKioskModeEnabled) return;
35401
+ if (T.setKioskModeEnabled) return;
35402
35402
  let { point: t, defs: n } = d(e), r = de(t.x, t.y), i = Dn(n[0]);
35403
35403
  Vn.hoveredBooth = r || i || null;
35404
35404
  }, r = () => {
35405
- E.setKioskModeEnabled || (Vn.hoveredBooth = null);
35405
+ T.setKioskModeEnabled || (Vn.hoveredBooth = null);
35406
35406
  }, i = ({ data: e }) => {
35407
35407
  var n, r;
35408
- if (!(E != null && E.rootElement)) return;
35409
- (n = (r = window).__resett) == null || n.call(r), E.overlayPosition === "bottom" && E.overlaySize === "full" && _.showMap();
35408
+ if (!(T != null && T.rootElement)) return;
35409
+ (n = (r = window).__resett) == null || n.call(r), T.overlayPosition === "bottom" && T.overlaySize === "full" && y.showMap();
35410
35410
  let { point: i, defs: a } = d(e), { x: o, y: s } = i;
35411
- if (E.onGetCoordsClick) {
35412
- let e = _.layerStore.layers.find((e) => e.visible && (e.mode === k.TurnedOn || e.mode === k.TurnedOff));
35413
- E.onGetCoordsClick({
35411
+ if (T.onGetCoordsClick) {
35412
+ let e = y.layerStore.layers.find((e) => e.visible && (e.mode === D.TurnedOn || e.mode === D.TurnedOff));
35413
+ T.onGetCoordsClick({
35414
35414
  x: o,
35415
35415
  y: s,
35416
35416
  z: (e == null ? void 0 : e.name) || null
35417
35417
  });
35418
35418
  }
35419
- if (E.setKioskModeEnabled || An.test(o, s)) return;
35419
+ if (T.setKioskModeEnabled || An.test(o, s)) return;
35420
35420
  let c = de(i.x, i.y) || Dn(a[0]);
35421
- if (E.onMarkerClick) {
35421
+ if (T.onMarkerClick) {
35422
35422
  let e = oe(o, s, t.scale);
35423
- E.onMarkerClick(e);
35423
+ T.onMarkerClick(e);
35424
35424
  }
35425
- _.clickBooth(c || null);
35425
+ y.clickBooth(c || null);
35426
35426
  }, a = () => {
35427
35427
  var e, t;
35428
35428
  return (e = (t = window).__resett) == null ? void 0 : e.call(t);
@@ -35437,7 +35437,7 @@ function Hn(e, t) {
35437
35437
  function Un(e, t) {
35438
35438
  (0, P.useEffect)(() => {
35439
35439
  if (!e) return;
35440
- let n = c(t, _), r = ie(t);
35440
+ let n = u(t, y), r = ie(t);
35441
35441
  return () => {
35442
35442
  n == null || n(), r == null || r();
35443
35443
  };
@@ -35621,10 +35621,10 @@ function ur(e, t, n) {
35621
35621
  };
35622
35622
  }
35623
35623
  function dr() {
35624
- _.poiMarkerStore.clear(), a(() => {
35625
- _.layerStore.layers.forEach((e) => {
35624
+ y.poiMarkerStore.clear(), a(() => {
35625
+ y.layerStore.layers.forEach((e) => {
35626
35626
  e.configured = !1, e.children = [], e.loaded = !1;
35627
- }), _.layerStore.layersLoaded = !1;
35627
+ }), y.layerStore.layersLoaded = !1;
35628
35628
  });
35629
35629
  }
35630
35630
  function fr(e, t) {
@@ -35637,44 +35637,44 @@ function pr(e) {
35637
35637
  let i = Math.abs((t = e[0]) == null ? 0 : t), a = Math.hypot((n = e[0]) == null ? 0 : n, (r = e[1]) == null ? 0 : r);
35638
35638
  return i <= 0 || a <= 0 ? 1 : i / a;
35639
35639
  }
35640
- var mr = N(function({ viewMode: e }) {
35640
+ var mr = te(function({ viewMode: e }) {
35641
35641
  var t;
35642
- let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(null), o = _.rendererService, s = (0, P.useRef)(null), c = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = (0, P.useMemo)(() => an(), []), S = (0, P.useMemo)(() => O({
35643
- layerViewbox: _.layerStore.viewboxRectangle,
35644
- explicitArea: v ? A : null,
35645
- layerRectangle: _.layerStore.rectangle,
35642
+ let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(null), o = y.rendererService, s = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), h = (0, P.useMemo)(() => an(), []), _ = (0, P.useMemo)(() => k({
35643
+ layerViewbox: y.layerStore.viewboxRectangle,
35644
+ explicitArea: E ? b : null,
35645
+ layerRectangle: y.layerStore.rectangle,
35646
35646
  sceneDef: n,
35647
- svgArea: A
35648
- }), [n]), C = S.rect, w = (0, P.useMemo)(() => {
35649
- if (!m) return null;
35650
- let e = y(S.source) ? 0 : x(C, A), t = nn(0);
35651
- e && E.screenSize && (t.left += E.screenSize.width * e, t.right += E.screenSize.width * e, t.top += E.screenSize.height * e, t.bottom += E.screenSize.height * e);
35652
- let n = E.screenSize ? en(C, m.gpsConfig, m.bearing, {
35653
- width: E.screenSize.width,
35654
- height: E.screenSize.height
35647
+ svgArea: b
35648
+ }), [n]), v = _.rect, w = (0, P.useMemo)(() => {
35649
+ if (!h) return null;
35650
+ let e = x(_.source) ? 0 : S(v, b), t = nn(0);
35651
+ e && T.screenSize && (t.left += T.screenSize.width * e, t.right += T.screenSize.width * e, t.top += T.screenSize.height * e, t.bottom += T.screenSize.height * e);
35652
+ let n = T.screenSize ? en(v, h.gpsConfig, h.bearing, {
35653
+ width: T.screenSize.width,
35654
+ height: T.screenSize.height
35655
35655
  }, t) : null;
35656
35656
  return n ? {
35657
35657
  center: n.center,
35658
- bearing: m.bearing,
35658
+ bearing: h.bearing,
35659
35659
  zoom: n.zoom
35660
35660
  } : {
35661
- center: m.center,
35662
- bearing: m.bearing,
35663
- zoom: m.zoom,
35664
- bounds: Qt(C, m.gpsConfig),
35661
+ center: h.center,
35662
+ bearing: h.bearing,
35663
+ zoom: h.zoom,
35664
+ bounds: Qt(v, h.gpsConfig),
35665
35665
  fitPadding: t,
35666
35666
  zoomAdjustment: Ut
35667
35667
  };
35668
35668
  }, [
35669
- m,
35670
- S,
35671
- C
35672
- ]), j = (0, P.useMemo)(() => {
35669
+ h,
35670
+ _,
35671
+ v
35672
+ ]), A = (0, P.useMemo)(() => {
35673
35673
  var e;
35674
- return m ? Yn(m.gpsConfig, (e = g()) == null ? void 0 : e.getAttribute("units")) : null;
35675
- }, [m]), M = (0, P.useMemo)(() => ({ ...e === "map2d" ? vn : _n }), [e]), te = (0, P.useRef)(M), N = (0, P.useMemo)(() => Sn(), []), { mapDimAnimatorRef: ne, venueDimAnimatorRef: ie, applyDimmingTarget: ae, handleMapDimLayerReady: oe } = wn(c, o);
35674
+ return h ? Yn(h.gpsConfig, (e = O()) == null ? void 0 : e.getAttribute("units")) : null;
35675
+ }, [h]), j = (0, P.useMemo)(() => ({ ...e === "map2d" ? vn : _n }), [e]), M = (0, P.useRef)(j), te = (0, P.useMemo)(() => Sn(), []), { mapDimAnimatorRef: ne, venueDimAnimatorRef: ie, applyDimmingTarget: ae, handleMapDimLayerReady: oe } = wn(l, o);
35676
35676
  (0, P.useEffect)(() => {
35677
- if (!m) return;
35677
+ if (!h) return;
35678
35678
  let e = !1;
35679
35679
  dr();
35680
35680
  let t = ue(o).then(({ layers: t, cleanup: n }) => {
@@ -35683,80 +35683,80 @@ var mr = N(function({ viewMode: e }) {
35683
35683
  return;
35684
35684
  }
35685
35685
  d.current = n;
35686
- let i = T(t, A, (0, fe.default)(D.backgroundColor === "none" ? "#ebebeb" : D.backgroundColor).string());
35686
+ let i = c(t, b, (0, fe.default)(N.backgroundColor === "none" ? "#ebebeb" : N.backgroundColor).string());
35687
35687
  r(i);
35688
35688
  }).catch((t) => {
35689
35689
  e || console.warn("Maplibre scene configuration failed.", t);
35690
35690
  }), n = ne.current, i = ie.current;
35691
35691
  return () => {
35692
- var r, l;
35692
+ var r, c;
35693
35693
  e = !0, dr();
35694
35694
  let m = s.current;
35695
- t.finally(() => o.disposeIfCurrent(m)), (r = u.current) == null || r.call(u), u.current = null, (l = d.current) == null || l.call(d), d.current = null, p.current && (_.maplibreStore.clearCameraPortIfCurrent(p.current), p.current = null), s.current = null, c.current = null, f.current = null, a(null), n == null || n.stop(), i == null || i.stop(), E.sceneDefReady = !1;
35695
+ t.finally(() => o.disposeIfCurrent(m)), (r = u.current) == null || r.call(u), u.current = null, (c = d.current) == null || c.call(d), d.current = null, p.current && (y.maplibreStore.clearCameraPortIfCurrent(p.current), p.current = null), s.current = null, l.current = null, f.current = null, a(null), n == null || n.stop(), i == null || i.stop(), T.sceneDefReady = !1;
35696
35696
  };
35697
35697
  }, [
35698
- m,
35698
+ h,
35699
35699
  ne,
35700
35700
  o,
35701
35701
  ie
35702
35702
  ]);
35703
35703
  let se = (0, P.useCallback)((e, t, n, r) => {
35704
- var i, d, g;
35705
- s.current = e, c.current = t, f.current = r, a(e), o.attach(e, n, r, j ? pr(j) : 1), xn(t, te.current);
35706
- let v = ur(t, (i = m == null ? void 0 : m.bearing) == null ? t.getBearing() : i, () => {
35704
+ var i, c, d;
35705
+ s.current = e, l.current = t, f.current = r, a(e), o.attach(e, n, r, A ? pr(A) : 1), xn(t, M.current);
35706
+ let _ = ur(t, (i = h == null ? void 0 : h.bearing) == null ? t.getBearing() : i, () => {
35707
35707
  var e;
35708
- return (e = te.current.pitch) == null ? 0 : e;
35708
+ return (e = M.current.pitch) == null ? 0 : e;
35709
35709
  });
35710
- p.current = v, _.maplibreStore.setCameraPort(v), _.fp.getCenterCoordinates = () => {
35711
- let { canvas: t } = e, n = l(e.viewport.canvasToSvg({
35710
+ p.current = _, y.maplibreStore.setCameraPort(_), y.fp.getCenterCoordinates = () => {
35711
+ let { canvas: t } = e, n = m(e.viewport.canvasToSvg({
35712
35712
  x: t.clientWidth / 2,
35713
35713
  y: t.clientHeight / 2
35714
- })), r = _.layerStore.visible.find((e) => e.mode === k.TurnedOff || e.mode === k.TurnedOn);
35714
+ })), r = y.layerStore.visible.find((e) => e.mode === D.TurnedOff || e.mode === D.TurnedOn);
35715
35715
  return {
35716
35716
  ...n,
35717
35717
  z: (r == null ? void 0 : r.name) || null
35718
35718
  };
35719
- }, ae({ immediate: !0 }), (d = u.current) == null || d.call(u);
35720
- let y = () => {
35719
+ }, ae({ immediate: !0 }), (c = u.current) == null || c.call(u);
35720
+ let v = () => {
35721
35721
  var e;
35722
- let n = t.getBearing() - ((e = m == null ? void 0 : m.bearing) == null ? 0 : e);
35723
- fr(o, ee(n));
35722
+ let n = t.getBearing() - ((e = h == null ? void 0 : h.bearing) == null ? 0 : e);
35723
+ fr(o, g(n));
35724
35724
  };
35725
- t.on("rotate", y), t.on("rotateend", y), u.current = () => {
35726
- t.off("rotate", y), t.off("rotateend", y);
35727
- }, h(o);
35725
+ t.on("rotate", v), t.on("rotateend", v), u.current = () => {
35726
+ t.off("rotate", v), t.off("rotateend", v);
35727
+ }, ee(o);
35728
35728
  let b = o.ptScaleRegistry.invoke(o.scale || 1);
35729
- b.length && o.update(...b), fr(o, ee(t.getBearing() - ((g = m == null ? void 0 : m.bearing) == null ? 0 : g))), _.layerStore.layersLoaded = !0, _.fp.onFpConfigured && _.fp.onFpConfigured(), E.sceneDefReady = !0, r();
35729
+ b.length && o.update(...b), fr(o, g(t.getBearing() - ((d = h == null ? void 0 : h.bearing) == null ? 0 : d))), y.layerStore.layersLoaded = !0, y.fp.onFpConfigured && y.fp.onFpConfigured(), T.sceneDefReady = !0, r();
35730
35730
  }, [
35731
35731
  o,
35732
35732
  ae,
35733
- j,
35734
- m
35733
+ A,
35734
+ h
35735
35735
  ]);
35736
35736
  (0, P.useEffect)(() => {
35737
- te.current = M, xn(c.current, M, !0);
35738
- }, [M]), Hn(i, o), Tn(i, c), Un(i, o), Bn(i, c, m), On(o, c, m), ln(c, m, n), ce({
35739
- enabled: _.layerStore.layersLoaded && E.buildRoute,
35737
+ M.current = j, xn(l.current, j, !0);
35738
+ }, [j]), Hn(i, o), Tn(i, l), Un(i, o), Bn(i, l, h), On(o, l, h), ln(l, h, n), ce({
35739
+ enabled: y.layerStore.layersLoaded && T.buildRoute,
35740
35740
  rendererService: o
35741
35741
  });
35742
- let le = (t = b.busRoutes) != null && t;
35742
+ let le = (t = C.busRoutes) != null && t;
35743
35743
  re({
35744
- permission: _.layerStore.layersLoaded && le,
35744
+ permission: y.layerStore.layersLoaded && le,
35745
35745
  rendererService: o,
35746
- dataJsonUrl: `https://${cr}/v1/routes?expo=${D.EXPO}`,
35747
- websocketUrl: `wss://${cr}/locations?expo=${D.EXPO}`
35746
+ dataJsonUrl: `https://${cr}/v1/routes?expo=${N.EXPO}`,
35747
+ websocketUrl: `wss://${cr}/locations?expo=${N.EXPO}`
35748
35748
  });
35749
35749
  let de = (0, P.useCallback)((e) => {
35750
- console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), _.maplibreStore.deactivateMaplibre();
35750
+ console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), y.maplibreStore.deactivateMaplibre();
35751
35751
  }, []);
35752
- if (!m || !w || !j || !n) return null;
35752
+ if (!h || !w || !A || !n) return null;
35753
35753
  let pe = `${w.center.join(",")}:${w.bearing}:${w.zoom}`;
35754
35754
  return /* @__PURE__ */ (0, jt.jsx)(W, {
35755
35755
  sceneDef: n,
35756
35756
  geoConfig: w,
35757
- staticTransform: j,
35758
- tileSource: N,
35759
- mapOptions: M,
35757
+ staticTransform: A,
35758
+ tileSource: te,
35759
+ mapOptions: j,
35760
35760
  onRendererReady: se,
35761
35761
  onMapDimLayerReady: oe,
35762
35762
  onMapLoadError: de