@expofp/floorplan 3.33.0 → 3.34.1

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 (84) hide show
  1. package/dist/browser/{Button-B0MFYLVc.js → Button-BXoX7gHH.js} +5 -5
  2. package/dist/browser/{CookieConsent-Bqn0q_87.js → CookieConsent-B0Oo9kBc.js} +7 -7
  3. package/dist/browser/{Debug-CKc3n1sg.js → Debug-Ci8scQLL.js} +7 -7
  4. package/dist/browser/{DebugTools-BU3wjPGB.js → DebugTools-j9-peX4I.js} +6 -6
  5. package/dist/browser/{Demo-D-TB4mNu.js → Demo-DD8lvF7Z.js} +9 -9
  6. package/dist/browser/{Free-TLOhTU_Z.js → Free-BC2dZH3U.js} +9 -9
  7. package/dist/browser/{GalleryContainer-G381lvbx.js → GalleryContainer-uHY_oD37.js} +10 -10
  8. package/dist/browser/{GpsLoader-DL-xnnfg.js → GpsLoader-BV-t9Zhw.js} +34 -34
  9. package/dist/browser/{KioskStore-DluWuejk.js → KioskStore-BFRl_9Tu.js} +26 -26
  10. package/dist/browser/{MaplibreAdapter-CKpyQZkH.js → MaplibreAdapter-CxfsNB3d.js} +219 -219
  11. package/dist/browser/{ModalContainer-BJuhy7tC.js → ModalContainer-lgZ3p9Wt.js} +10 -10
  12. package/dist/browser/{PermissionNotice-DzavRwDB.js → PermissionNotice-Dpx8F1X_.js} +6 -6
  13. package/dist/browser/{SetKioskMode-DQMJq09_.js → SetKioskMode-CnBqyg6u.js} +15 -15
  14. package/dist/browser/{ShowKiosk-txc4lzXg.js → ShowKiosk-SUK4FPID.js} +10 -10
  15. package/dist/browser/{ViewerMenuPanel-BDDILMLj.js → ViewerMenuPanel-C3GOFuuF.js} +18 -18
  16. package/dist/browser/{add-debug-secret-listener-jHopjZKv.js → add-debug-secret-listener-B3ytSUKG.js} +1 -1
  17. package/dist/browser/{adopt-global-settings-33HggKBq.js → adopt-global-settings-Dg7PfpwQ.js} +9 -9
  18. package/dist/browser/{boolean-editor-CtUCInIZ.js → boolean-editor-60x2s2cD.js} +9 -9
  19. package/dist/browser/{bootIntercom-BeXT05Ea.js → bootIntercom-CP8_uooS.js} +2 -2
  20. package/dist/browser/bundle.json +69 -69
  21. package/dist/browser/{camera-events-KroE96c4.js → camera-events-DN0rAOay.js} +1 -1
  22. package/dist/browser/{classnames-BJTcQIVl.js → classnames-Rv7CGeQc.js} +2 -2
  23. package/dist/browser/{client-Cj1mLS94.js → client-CeXtqSi0.js} +5 -5
  24. package/dist/browser/{components-6-iibf5i.js → components-yKSBPUVE.js} +1838 -1838
  25. package/dist/browser/{debug-context-_45jR8C-.js → debug-context-D2yhyzV5.js} +5 -5
  26. package/dist/browser/{debug-overlay-C78aQduk.js → debug-overlay-D33H0Asq.js} +10 -10
  27. package/dist/browser/{debug-ui-Bzg8w5FY.js → debug-ui-Dg4ty2ft.js} +6 -6
  28. package/dist/browser/{dimming-B0nptLJO.js → dimming-CnrPXrbS.js} +379 -383
  29. package/dist/browser/{dist-LJcBFXUG.js → dist-CbsoHzXy.js} +5 -5
  30. package/dist/browser/{dist-DX9URKQh.js → dist-Cht6zsHr.js} +6 -6
  31. package/dist/browser/{dist-BfBy25r6.js → dist-DPIySxET.js} +3 -3
  32. package/dist/browser/{efp-debug-init-tAoJiV3q.js → efp-debug-init-B1Jdu0aR.js} +3 -3
  33. package/dist/browser/{enum-editor-12NAdvKo.js → enum-editor-FXnBB5tB.js} +4 -4
  34. package/dist/browser/{es5-D-Bj8Lf1.js → es5-DAdylDRo.js} +2 -2
  35. package/dist/browser/{event-not-found-CsAHzhl6.js → event-not-found-aDLfx4yr.js} +1 -1
  36. package/dist/browser/{exports-BfhFANKi.js → exports-rXrZzOsb.js} +1 -1
  37. package/dist/browser/{favicon-D4TW1swv.js → favicon-DOeZ3jUq.js} +1 -1
  38. package/dist/browser/{fetch-retry.umd-DyLfSwjv.js → fetch-retry.umd-BKnymyM4.js} +2 -2
  39. package/dist/browser/{flex-C3cSMVt_.js → flex-DxFTtCgE.js} +5 -5
  40. package/dist/browser/{floorplan.loader-DxRhDqfH.js → floorplan.loader-DElAJins.js} +10 -10
  41. package/dist/browser/{floorplan.ready-RkqlzsJt.js → floorplan.ready-UhOqD1tv.js} +68 -68
  42. package/dist/browser/{fuse-CSGWbbNq.js → fuse-CJ7gqOT4.js} +2 -2
  43. package/dist/browser/{i18n-EK2oa1QJ.js → i18n-BlOjJNd_.js} +5 -5
  44. package/dist/browser/index.js +14 -14
  45. package/dist/browser/{index.module-BwOjEcud.js → index.module-Dcom9fhx.js} +4 -4
  46. package/dist/browser/{integrateKiosk-DT0yChCb.js → integrateKiosk-DsUSoOfW.js} +4 -4
  47. package/dist/browser/{is-webview-CW_tK_lH.js → is-webview-TAmTjUCs.js} +1 -1
  48. package/dist/browser/{jsx-runtime-DAYaJ8Wj.js → jsx-runtime-CDd5kSFh.js} +2 -2
  49. package/dist/browser/{kiosk-record-DSOWQWwy.js → kiosk-record-zMuE-Rb4.js} +1 -1
  50. package/dist/browser/{lib-DS8gxXh1.js → lib-5fBCHBXo.js} +3 -3
  51. package/dist/browser/{loadImage-Chqtrnpo.js → loadImage-LelO76SH.js} +4 -4
  52. package/dist/browser/{logDeviceInfo-C3nIx8MI.js → logDeviceInfo-CgO0CoJD.js} +9 -9
  53. package/dist/browser/{mobx-BYaAarcI.js → mobx-R5-ZJi7a.js} +4 -4
  54. package/dist/browser/{optional-boolean-editor-f0AsQ88K.js → optional-boolean-editor-BP1lJrpP.js} +3 -3
  55. package/dist/browser/{optional-enum-editor-DTfOMkVp.js → optional-enum-editor-BfcUGUII.js} +4 -4
  56. package/dist/browser/{optional-string-editor-Dweo1EiQ.js → optional-string-editor-DF6pZ-oE.js} +4 -4
  57. package/dist/browser/{particles.min-DcgQ3bEa.js → particles.min-DZqXGQRY.js} +2 -2
  58. package/dist/browser/{react-CSfcl6m_.js → react-Ip13m5sp.js} +2 -2
  59. package/dist/browser/{react-dom-BtTajUTr.js → react-dom-Ds2Ul4iF.js} +3 -3
  60. package/dist/browser/{rolldown-runtime-LBfc_8zH.js → rolldown-runtime-ZbujXurt.js} +1 -1
  61. package/dist/browser/{scheduler-CO29sRve.js → scheduler-DAwkCOYn.js} +2 -2
  62. package/dist/browser/{select-ZMZ_S_qj.js → select-D_iLwN3g.js} +10 -10
  63. package/dist/browser/{settings-Cot3Zp4u.js → settings-B7ptvUVq.js} +2 -2
  64. package/dist/browser/{settings-item-D5PjVyNk.js → settings-item-C4IxYqPQ.js} +6 -6
  65. package/dist/browser/{store-BUXXD8-o.js → store-rtRwBx18.js} +3745 -3689
  66. package/dist/browser/{string-editor-Bdjy-hXr.js → string-editor-CggghgyI.js} +4 -4
  67. package/dist/browser/{text-field-Db4wvBQb.js → text-field-JwPIZ7II.js} +5 -5
  68. package/dist/browser/{theme-DOvsIfDN.js → theme-DoaejPSE.js} +8 -8
  69. package/dist/browser/{ui-exQmHhHz.js → ui-DTo23cpi.js} +8 -8
  70. package/dist/browser/{useRenderTarget-COoBm3gN.js → useRenderTarget-CK3wugqb.js} +4 -4
  71. package/dist/browser/{viewport-D14jB-aG.js → viewport-DVDTED_v.js} +3 -3
  72. package/dist/esm/components/Map/drawing/config/config-all.js +1 -1
  73. package/dist/esm/engine/defs.d.ts +2 -3
  74. package/dist/esm/engine/defs.js +3 -3
  75. package/dist/esm/tools/telemetry.js +1 -1
  76. package/dist/esm/wayfinding/createWayfinding.d.ts +1 -1
  77. package/dist/esm/wayfinding/createWayfinding.js +1 -1
  78. package/dist/esm/wayfinding/handlers/kioskHandler.d.ts +1 -2
  79. package/dist/esm/wayfinding/handlers/kioskHandler.js +1 -1
  80. package/dist/esm/wayfinding/handlers/yahHandler.d.ts +1 -2
  81. package/dist/esm/wayfinding/handlers/yahHandler.js +1 -1
  82. package/package.json +10 -10
  83. package/dist/esm/wayfinding/layers.d.ts +0 -15
  84. package/dist/esm/wayfinding/layers.js +0 -1
@@ -2,23 +2,23 @@ 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.33.0" };
5
+ e.SENTRY_RELEASE = { id: "3.34.1" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "924c8ebe-1f20-42e6-9cf1-d10896bc9ddb", e._sentryDebugIdIdentifier = "sentry-dbid-924c8ebe-1f20-42e6-9cf1-d10896bc9ddb");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "85632468-7ac0-47d7-8e13-0c941ad785ee", e._sentryDebugIdIdentifier = "sentry-dbid-85632468-7ac0-47d7-8e13-0c941ad785ee");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./rolldown-runtime-LBfc_8zH.js";
11
- import { X as n, Z as r, v as i, y as a } from "./i18n-EK2oa1QJ.js";
12
- import { t as o } from "./react-CSfcl6m_.js";
13
- import { t as s } from "./jsx-runtime-DAYaJ8Wj.js";
14
- import { n as c } from "./loadImage-Chqtrnpo.js";
15
- import { At as l, Cn as u, D as d, En as f, Ft as p, G as m, Ht as h, It as g, L as _, Lt as v, Pt as y, Sn as b, St as x, Tn as S, c as C, d as w, f as T, in as E, kn as D, kt as O, l as k, p as A, qt as j, u as M, v as N, xn as ee, xt as P, yn as te, z as ne } from "./store-BUXXD8-o.js";
16
- import { t as re } from "./index.module-BwOjEcud.js";
17
- import { i as ie } from "./mobx-BYaAarcI.js";
18
- import { t as ae } from "./viewport-D14jB-aG.js";
19
- import { a as oe, c as se, i as ce, l as le, n as ue, o as de, r as fe, s as pe, t as me } from "./dimming-B0nptLJO.js";
10
+ import { r as e, t } from "./rolldown-runtime-ZbujXurt.js";
11
+ import { X as n, Z as r, v as i, y as a } from "./i18n-BlOjJNd_.js";
12
+ import { t as o } from "./react-Ip13m5sp.js";
13
+ import { t as s } from "./jsx-runtime-CDd5kSFh.js";
14
+ import { n as c } from "./loadImage-LelO76SH.js";
15
+ import { At as l, D as u, Et as d, F as f, Mt as p, N as m, Nt as h, Rt as g, Sn as _, Tn as v, Tt as y, Ut as b, V as x, _n as S, _t as C, c as w, d as T, en as E, f as D, hn as O, jt as k, l as A, p as j, u as M, v as N, vn as ee, vt as te, xn as ne, yn as P } from "./store-rtRwBx18.js";
16
+ import { t as re } from "./index.module-Dcom9fhx.js";
17
+ import { i as ie } from "./mobx-R5-ZJi7a.js";
18
+ import { t as ae } from "./viewport-DVDTED_v.js";
19
+ import { a as oe, c as se, i as ce, l as le, n as ue, o as de, r as fe, s as pe, t as me } from "./dimming-CnrPXrbS.js";
20
20
  //#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
21
- var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__PURE__ */ t(((e, t) => {
21
+ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(_(), 1), ge = (/* @__PURE__ */ t(((e, t) => {
22
22
  (function(n, r) {
23
23
  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());
24
24
  })(e, (function() {
@@ -327,11 +327,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
327
327
  let i = new o(e, t, n, r);
328
328
  return (e) => i.solve(e);
329
329
  }
330
- let P = ee(.25, .1, .25, 1);
331
- function te(e, t, n) {
330
+ let te = ee(.25, .1, .25, 1);
331
+ function ne(e, t, n) {
332
332
  return Math.min(n, Math.max(t, e));
333
333
  }
334
- function ne(e, t, n) {
334
+ function P(e, t, n) {
335
335
  let r = n - t, i = ((e - t) % r + r) % r + t;
336
336
  return i === t ? n : i;
337
337
  }
@@ -9415,7 +9415,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
9415
9415
  }
9416
9416
  }
9417
9417
  function cs(e, t) {
9418
- return 256 * (e = te(Math.floor(e), 0, 255)) + te(Math.floor(t), 0, 255);
9418
+ return 256 * (e = ne(Math.floor(e), 0, 255)) + ne(Math.floor(t), 0, 255);
9419
9419
  }
9420
9420
  ss.MAX_VERTEX_ARRAY_LENGTH = 2 ** 16 - 1, X("SegmentVector", ss);
9421
9421
  let ls = oo([
@@ -9675,7 +9675,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
9675
9675
  this.paintVertexBuffer && this.paintVertexBuffer.destroy();
9676
9676
  }
9677
9677
  setUniform(e, t) {
9678
- let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r = te(this.expression.interpolationFactor(n, this.zoom, this.zoom + 1), 0, 1);
9678
+ let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r = ne(this.expression.interpolationFactor(n, this.zoom, this.zoom + 1), 0, 1);
9679
9679
  e.set(r);
9680
9680
  }
9681
9681
  getBinding(e, t, n) {
@@ -9969,7 +9969,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
9969
9969
  let t = O / e.extent, n = e.loadGeometry();
9970
9970
  for (let e of n) for (let n of e) {
9971
9971
  let e = Math.round(n.x * t), r = Math.round(n.y * t);
9972
- n.x = te(e, Bs, zs), n.y = te(r, Bs, zs), (e < n.x || e > n.x + 1 || r < n.y || r > n.y + 1) && le("Geometry exceeds allowed extent, reduce your vector tile buffer size");
9972
+ n.x = ne(e, Bs, zs), n.y = ne(r, Bs, zs), (e < n.x || e > n.x + 1 || r < n.y || r > n.y + 1) && le("Geometry exceeds allowed extent, reduce your vector tile buffer size");
9973
9973
  }
9974
9974
  return n;
9975
9975
  }
@@ -14781,7 +14781,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
14781
14781
  if (this.lng = +e, this.lat = +t, this.lat > 90 || this.lat < -90) throw Error("Invalid LngLat latitude value: must be between -90 and 90");
14782
14782
  }
14783
14783
  wrap() {
14784
- return new Nf(ne(this.lng, -180, 180), this.lat);
14784
+ return new Nf(P(this.lng, -180, 180), this.lat);
14785
14785
  }
14786
14786
  toArray() {
14787
14787
  return [this.lng, this.lat];
@@ -17390,9 +17390,9 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
17390
17390
  (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;
17391
17391
  }
17392
17392
  let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
17393
- 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, _), P = new n(u / s, f / s), te = new n(g / s, A / s), ne = t * Math.PI / 180;
17394
- if (ne) {
17395
- let e = Math.sin(ne), t = Math.cos(ne), n = [
17393
+ 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), P = t * Math.PI / 180;
17394
+ if (P) {
17395
+ let e = Math.sin(P), t = Math.cos(P), n = [
17396
17396
  t,
17397
17397
  -e,
17398
17398
  e,
@@ -17415,8 +17415,8 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
17415
17415
  writingMode: void 0,
17416
17416
  glyphOffset: [0, 0],
17417
17417
  sectionIndex: 0,
17418
- pixelOffsetTL: P,
17419
- pixelOffsetBR: te,
17418
+ pixelOffsetTL: te,
17419
+ pixelOffsetBR: ne,
17420
17420
  minFontScaleX: C / s / O,
17421
17421
  minFontScaleY: T / s / k,
17422
17422
  isSDF: r
@@ -17677,7 +17677,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
17677
17677
  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, _)));
17678
17678
  let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, N = (c, f) => {
17679
17679
  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) {
17680
- let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0, P = -1, te = -1, ne = {}, re = _s("");
17680
+ let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0, te = -1, ne = -1, P = {}, re = _s("");
17681
17681
  if (t.allowVerticalPlacement && i.vertical) {
17682
17682
  let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
17683
17683
  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));
@@ -17686,7 +17686,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
17686
17686
  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;
17687
17687
  O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
17688
17688
  let m = t.iconSizeData, h = null;
17689
- m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && le(`${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) && le(`${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), P = 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), te = t.icon.placedSymbolArray.length - 1);
17689
+ m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && le(`${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) && le(`${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);
17690
17690
  }
17691
17691
  let ie = Object.keys(i.horizontal);
17692
17692
  for (let r of ie) {
@@ -17697,9 +17697,9 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
17697
17697
  D = new yh(l, n, u, d, f, a, p, m, h, e);
17698
17698
  }
17699
17699
  let s = a.positionedLines.length === 1;
17700
- if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ie : [r], ne, P, S, w), s) break;
17700
+ if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ie : [r], P, te, S, w), s) break;
17701
17701
  }
17702
- i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], ne, te, S, w));
17702
+ i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], P, ne, S, w));
17703
17703
  let ae = D ? D.boxStartIndex : t.collisionBoxArray.length, oe = D ? D.boxEndIndex : t.collisionBoxArray.length, se = k ? k.boxStartIndex : t.collisionBoxArray.length, ce = k ? k.boxEndIndex : t.collisionBoxArray.length, ue = O ? O.boxStartIndex : t.collisionBoxArray.length, de = O ? O.boxEndIndex : t.collisionBoxArray.length, fe = A ? A.boxStartIndex : t.collisionBoxArray.length, pe = A ? A.boxEndIndex : t.collisionBoxArray.length, me = -1, F = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
17704
17704
  me = F(D, me), me = F(k, me), me = F(O, me), me = F(A, me);
17705
17705
  let he = +(me > -1);
@@ -17712,7 +17712,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
17712
17712
  }
17713
17713
  return [r, t.length];
17714
17714
  }(t.textAnchorOffsets, ge);
17715
- t.symbolInstances.emplaceBack(n.x, n.y, ne.right >= 0 ? ne.right : -1, ne.center >= 0 ? ne.center : -1, ne.left >= 0 ? ne.left : -1, ne.vertical || -1, P, te, re, ae, oe, se, ce, ue, de, fe, pe, u, N, ee, j, M, he, 0, p, me, _e, ve);
17715
+ t.symbolInstances.emplaceBack(n.x, n.y, P.right >= 0 ? P.right : -1, P.center >= 0 ? P.center : -1, P.left >= 0 ? P.left : -1, P.vertical || -1, te, ne, re, ae, oe, se, ce, ue, de, fe, pe, u, N, ee, j, M, he, 0, p, me, _e, ve);
17716
17716
  }(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
17717
17717
  S,
17718
17718
  S,
@@ -17925,7 +17925,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
17925
17925
  let n = {};
17926
17926
  for (let r of t) r in e && (n[r] = e[r]);
17927
17927
  return n;
17928
- }, e.W = Nf, e.X = ne, e.Y = Lf, e.Z = If, e._ = t, e.a = Ce, e.a$ = function(e) {
17928
+ }, e.W = Nf, e.X = P, e.Y = Lf, e.Z = If, e._ = t, e.a = Ce, e.a$ = function(e) {
17929
17929
  var t = new f(3);
17930
17930
  return t[0] = e[0], t[1] = e[1], t[2] = e[2], t;
17931
17931
  }, e.a0 = l, e.a1 = u, e.a2 = F, e.a3 = Kf, e.a4 = zf, e.a5 = Bf, e.a6 = O, e.a7 = Hf, e.a8 = Jf, e.a9 = 25, e.aA = function(e) {
@@ -17980,7 +17980,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
17980
17980
  isNaN(e) ? delete t["max-age"] : t["max-age"] = e;
17981
17981
  }
17982
17982
  return t;
17983
- }, e.al = te, e.am = 85.051129, e.an = ve, e.ao = function(e) {
17983
+ }, e.al = ne, e.am = 85.051129, e.an = ve, e.ao = function(e) {
17984
17984
  return 2 ** e;
17985
17985
  }, e.ap = m, e.aq = Rf, e.ar = function(e) {
17986
17986
  return Math.log(e) / Math.LN2;
@@ -18065,7 +18065,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
18065
18065
  let n = 0, r = 0;
18066
18066
  if (e.kind === "constant") r = e.layoutSize;
18067
18067
  else if (e.kind !== "source") {
18068
- let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ? te(yn.interpolationFactor(i, t, a, o), 0, 1) : 0;
18068
+ let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ? ne(yn.interpolationFactor(i, t, a, o), 0, 1) : 0;
18069
18069
  e.kind === "camera" ? r = xn.number(e.minSize, e.maxSize, s) : n = s;
18070
18070
  }
18071
18071
  return {
@@ -18374,7 +18374,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
18374
18374
  let t = /* @__PURE__ */ new Float64Array(9);
18375
18375
  var n, r, i, a, o, s, c, l, u, d = (i = (r = e)[0]) * (c = i + i), f = (a = r[1]) * c, p, m = (o = r[2]) * c, h = o * (l = a + a), g, _ = (s = r[3]) * c, v = s * l, y = s * (u = o + o);
18376
18376
  (n = t)[0] = 1 - (p = a * l) - (g = o * u), n[3] = f - y, n[6] = m + v, n[1] = f + y, n[4] = 1 - d - g, n[7] = h - _, n[2] = m - v, n[5] = h + _, n[8] = 1 - d - p;
18377
- let b = ye(-Math.asin(te(t[2], -1, 1))), x, S;
18377
+ let b = ye(-Math.asin(ne(t[2], -1, 1))), x, S;
18378
18378
  return Math.hypot(t[5], t[8]) < .001 ? (x = 0, S = -ye(Math.atan2(t[3], t[4]))) : (x = ye(t[5] === 0 && t[8] === 0 ? 0 : Math.atan2(t[5], t[8])), S = ye(t[1] === 0 && t[0] === 0 ? 0 : Math.atan2(t[1], t[0]))), {
18379
18379
  roll: x,
18380
18380
  pitch: b + 90,
@@ -18383,7 +18383,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
18383
18383
  }, e.bn = function(e, t) {
18384
18384
  return e.roll == t.roll && e.pitch == t.pitch && e.bearing == t.bearing;
18385
18385
  }, e.bo = W, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = N, e.bv = Jt, e.bw = function(e, t, n, r, i) {
18386
- return M(r, i, te((e - t) / (n - t), 0, 1));
18386
+ return M(r, i, ne((e - t) / (n - t), 0, 1));
18387
18387
  }, e.bx = function(e, t, n, r) {
18388
18388
  return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
18389
18389
  }, e.by = j, e.bz = function() {
@@ -18599,7 +18599,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
18599
18599
  let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
18600
18600
  var a, o;
18601
18601
  return ye(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
18602
- }, e.cy = P, e.cz = function(e, t) {
18602
+ }, e.cy = te, e.cz = function(e, t) {
18603
18603
  var n;
18604
18604
  if (!xe[t]) return !1;
18605
18605
  let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
@@ -20261,11 +20261,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
20261
20261
  }
20262
20262
  }
20263
20263
  let M = Math.floor(s.hardwareConcurrency / 2), N, ee;
20264
- function P() {
20264
+ function te() {
20265
20265
  return N || (N = new j()), N;
20266
20266
  }
20267
20267
  j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
20268
- class te {
20268
+ class ne {
20269
20269
  constructor(e, n) {
20270
20270
  this.workerPool = e, this.actors = [], this.currentActor = 0, this.id = n;
20271
20271
  let r = this.workerPool.acquire(n);
@@ -20297,8 +20297,8 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
20297
20297
  for (let t of this.actors) t.unregisterMessageHandler(e);
20298
20298
  }
20299
20299
  }
20300
- function ne() {
20301
- return ee || (ee = new te(P(), t.M), ee.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), ee;
20300
+ function P() {
20301
+ return ee || (ee = new ne(te(), t.M), ee.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), ee;
20302
20302
  }
20303
20303
  function re(e, n) {
20304
20304
  let r = t.O();
@@ -21351,7 +21351,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
21351
21351
  }, we = "RTLPluginLoaded";
21352
21352
  class Te extends t.E {
21353
21353
  constructor() {
21354
- super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = ne();
21354
+ super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = P();
21355
21355
  }
21356
21356
  _syncState(e) {
21357
21357
  return this.status = e, this.dispatcher.broadcast("SRPS", {
@@ -23035,12 +23035,12 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
23035
23035
  var w, A;
23036
23036
  if (n[e.crossTileID]) return;
23037
23037
  if (d) return void (this.placements[e.crossTileID] = new St(!1, !1, !1));
23038
- let j = !1, M = !1, N = !0, ee = null, P = {
23038
+ let j = !1, M = !1, N = !0, ee = null, te = {
23039
23039
  box: null,
23040
23040
  placeable: !1,
23041
23041
  offscreen: null,
23042
23042
  occluded: !1
23043
- }, te = { placeable: !1 }, ne = null, re = null, ie = null, ae = 0, oe = 0, se = 0;
23043
+ }, ne = { placeable: !1 }, P = null, re = null, ie = null, ae = 0, oe = 0, se = 0;
23044
23044
  f.textFeatureIndex ? ae = f.textFeatureIndex : e.useRuntimeCollisionCircles && (ae = e.featureIndex), f.verticalTextFeatureIndex && (oe = f.verticalTextFeatureIndex);
23045
23045
  let ce = f.textBox;
23046
23046
  if (ce) {
@@ -23053,8 +23053,8 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
23053
23053
  return r;
23054
23054
  }, a = (n, r) => {
23055
23055
  if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
23056
- for (let e of i.writingModes) if (e === t.ax.vertical ? (P = r(), te = P) : P = n(), P != null && P.placeable) break;
23057
- } else P = n();
23056
+ for (let e of i.writingModes) if (e === t.ax.vertical ? (te = r(), ne = te) : te = n(), te != null && te.placeable) break;
23057
+ } else te = n();
23058
23058
  }, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
23059
23059
  if (d === l) {
23060
23060
  let r = (t, n) => {
@@ -23067,7 +23067,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
23067
23067
  box: null,
23068
23068
  offscreen: null
23069
23069
  };
23070
- })), n(P == null ? void 0 : P.placeable);
23070
+ })), n(te == null ? void 0 : te.placeable);
23071
23071
  } else {
23072
23072
  let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
23073
23073
  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";
@@ -23090,33 +23090,33 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
23090
23090
  };
23091
23091
  a((() => h(ce, f.iconBox, t.ax.horizontal)), (() => {
23092
23092
  let n = f.verticalTextBox;
23093
- return i.allowVerticalPlacement && !(P != null && P.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
23093
+ return i.allowVerticalPlacement && !(te != null && te.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
23094
23094
  box: null,
23095
23095
  occluded: !0,
23096
23096
  offscreen: null
23097
23097
  };
23098
- })), P && (j = P.placeable, N = P.offscreen);
23099
- let g = n(P == null ? void 0 : P.placeable);
23098
+ })), te && (j = te.placeable, N = te.offscreen);
23099
+ let g = n(te == null ? void 0 : te.placeable);
23100
23100
  if (!j && this.prevPlacement) {
23101
23101
  let t = this.prevPlacement.variableOffsets[e.crossTileID];
23102
23102
  t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
23103
23103
  }
23104
23104
  }
23105
23105
  }
23106
- if (ne = P, j = ne == null ? void 0 : ne.placeable, N = ne == null ? void 0 : ne.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
23106
+ if (P = te, j = P == null ? void 0 : P.placeable, N = P == null ? void 0 : P.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
23107
23107
  let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
23108
23108
  re = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), re.circles.length && re.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || re.circles.length > 0 && !re.collisionDetected, N && (N = re.offscreen);
23109
23109
  }
23110
23110
  if (f.iconFeatureIndex && (se = f.iconFeatureIndex), f.iconBox) {
23111
23111
  let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && ee ? ee : void 0, k);
23112
- te && te.placeable && f.verticalIconBox ? (ie = e(f.verticalIconBox), M = ie.placeable) : (ie = e(f.iconBox), M = ie.placeable), N && (N = ie.offscreen);
23112
+ ne && ne.placeable && f.verticalIconBox ? (ie = e(f.verticalIconBox), M = ie.placeable) : (ie = e(f.iconBox), M = ie.placeable), N && (N = ie.offscreen);
23113
23113
  }
23114
23114
  let le = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, ue = g || e.numIconVertices === 0;
23115
23115
  le || ue ? ue ? le || M && (M = j) : j = M && j : M = j = M && j;
23116
23116
  let de = M && ie.placeable;
23117
- if (j && ne.placeable && this.collisionIndex.insertCollisionBox(ne.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, te && te.placeable && oe ? oe : ae, m.ID), de && this.collisionIndex.insertCollisionBox(ie.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, se, m.ID), re && j && this.collisionIndex.insertCollisionCircles(re.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, ae, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, ne, ie, re), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
23117
+ if (j && P.placeable && this.collisionIndex.insertCollisionBox(P.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, ne && ne.placeable && oe ? oe : ae, m.ID), de && this.collisionIndex.insertCollisionBox(ie.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, se, m.ID), re && j && this.collisionIndex.insertCollisionCircles(re.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, ae, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, P, ie, re), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
23118
23118
  if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
23119
- this.placements[e.crossTileID] = new St((j || T) && !(ne != null && ne.occluded), (M || E) && !(ie != null && ie.occluded), N || i.justReloaded), n[e.crossTileID] = !0;
23119
+ this.placements[e.crossTileID] = new St((j || T) && !(P != null && P.occluded), (M || E) && !(ie != null && ie.occluded), N || i.justReloaded), n[e.crossTileID] = !0;
23120
23120
  };
23121
23121
  if (w) {
23122
23122
  if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
@@ -26524,7 +26524,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
26524
26524
  let t = this.tileManagers[e].getSource().type;
26525
26525
  t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
26526
26526
  }
26527
- }, this.map = e, this.dispatcher = new te(P(), 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);
26527
+ }, 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);
26528
26528
  let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
26529
26529
  this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new zt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()), De().on(we, this._rtlPluginLoaded), this.on("data", ((e) => {
26530
26530
  if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
@@ -28687,8 +28687,8 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
28687
28687
  if (!l) continue;
28688
28688
  let d = a ? l.text : l.icon;
28689
28689
  if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
28690
- 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, P, te = [0, 0], ne = null;
28691
- if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (te = i.imageAtlasTexture.size, ne = i.imageAtlasTexture, P = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
28690
+ 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], P = null;
28691
+ if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (ne = i.imageAtlasTexture.size, P = i.imageAtlasTexture, te = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
28692
28692
  else {
28693
28693
  let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
28694
28694
  N = i.imageAtlasTexture, ee = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
@@ -28705,16 +28705,16 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
28705
28705
  it(l, e, a, ie, n, b, u, r.layout.get("text-rotation-alignment") === "map", c.toUnwrapped(), v.width, v.height, oe, i);
28706
28706
  }
28707
28707
  let ue = a && E || le, de = x || ue ? pi : b ? ie : e.transform.clipSpaceToPixelsMatrix, fe = h && r.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0, pe;
28708
- pe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, ue, e, de, ae, oe, M, te, O) : vr(g.kind, A, S, b, x, ue, e, de, ae, oe, a, M, fe, O) : _r(g.kind, A, S, b, x, ue, e, de, ae, oe, a, M, O);
28708
+ pe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, ue, e, de, ae, oe, M, ne, O) : vr(g.kind, A, S, b, x, ue, e, de, ae, oe, a, M, fe, O) : _r(g.kind, A, S, b, x, ue, e, de, ae, oe, a, M, O);
28709
28709
  let me = {
28710
28710
  program: k,
28711
28711
  buffers: d,
28712
28712
  uniformValues: pe,
28713
28713
  projectionData: se,
28714
28714
  atlasTexture: N,
28715
- atlasTextureIcon: ne,
28715
+ atlasTextureIcon: P,
28716
28716
  atlasInterpolation: ee,
28717
- atlasInterpolationIcon: P,
28717
+ atlasInterpolationIcon: te,
28718
28718
  isSDF: h,
28719
28719
  hasHalo: fe
28720
28720
  };
@@ -33719,7 +33719,7 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
33719
33719
  })), e.clearPrewarmedResources = function() {
33720
33720
  let e = N;
33721
33721
  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()"));
33722
- }, e.createTileMesh = fn, e.getGlobalDispatcher = ne, e.getMaxParallelImageRequests = function() {
33722
+ }, e.createTileMesh = fn, e.getGlobalDispatcher = P, e.getMaxParallelImageRequests = function() {
33723
33723
  return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
33724
33724
  }, e.getRTLTextPluginStatus = function() {
33725
33725
  return De().getRTLTextPluginStatus();
@@ -33730,11 +33730,11 @@ var F = /* @__PURE__ */ e(o(), 1), he = /* @__PURE__ */ e(f(), 1), ge = (/* @__P
33730
33730
  }, e.getWorkerUrl = function() {
33731
33731
  return t.c.WORKER_URL;
33732
33732
  }, e.importScriptInWorkers = function(e) {
33733
- return ne().broadcast("IS", e);
33733
+ return P().broadcast("IS", e);
33734
33734
  }, e.isTimeFrozen = function() {
33735
33735
  return c.isFrozen();
33736
33736
  }, e.now = l, e.prewarm = function() {
33737
- P().acquire(A);
33737
+ te().acquire(A);
33738
33738
  }, e.restoreNow = function() {
33739
33739
  c.restoreNow();
33740
33740
  }, e.setMaxParallelImageRequests = function(e) {
@@ -33939,8 +33939,8 @@ var Fe = /*#__PURE__*/ Me(Ne, 9, 1), Ie = /*#__PURE__*/ Me(Pe, 5, 1), Le = funct
33939
33939
  for (y == 16 ? (N = 3 + I(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (N = 3 + I(e, d, 7), d += 3) : y == 18 && (N = 11 + I(e, d, 127), d += 7); N--;) T[D++] = M;
33940
33940
  }
33941
33941
  }
33942
- var ee = T.subarray(0, S), P = T.subarray(S);
33943
- h = Le(ee), g = Le(P), p = Me(ee, h, 1), m = Me(P, g, 1);
33942
+ var ee = T.subarray(0, S), te = T.subarray(S);
33943
+ h = Le(ee), g = Le(te), p = Me(ee, h, 1), m = Me(te, g, 1);
33944
33944
  } else Ve(1);
33945
33945
  if (d > _) {
33946
33946
  c && Ve(0);
@@ -33948,8 +33948,8 @@ var Fe = /*#__PURE__*/ Me(Ne, 9, 1), Ie = /*#__PURE__*/ Me(Pe, 5, 1), Le = funct
33948
33948
  }
33949
33949
  }
33950
33950
  s && l(f + 131072);
33951
- for (var te = (1 << h) - 1, ne = (1 << g) - 1, re = d;; re = d) {
33952
- var M = p[Re(e, d) & te], ie = M >> 4;
33951
+ for (var ne = (1 << h) - 1, P = (1 << g) - 1, re = d;; re = d) {
33952
+ var M = p[Re(e, d) & ne], ie = M >> 4;
33953
33953
  if (d += M & 15, d > _) {
33954
33954
  c && Ve(0);
33955
33955
  break;
@@ -33964,12 +33964,12 @@ var Fe = /*#__PURE__*/ Me(Ne, 9, 1), Ie = /*#__PURE__*/ Me(Pe, 5, 1), Le = funct
33964
33964
  var D = ie - 257, oe = be[D];
33965
33965
  ae = I(e, d, (1 << oe) - 1) + Te[D], d += oe;
33966
33966
  }
33967
- var se = m[Re(e, d) & ne], ce = se >> 4;
33967
+ var se = m[Re(e, d) & P], ce = se >> 4;
33968
33968
  se || Ve(3), d += se & 15;
33969
- var P = Oe[ce];
33969
+ var te = Oe[ce];
33970
33970
  if (ce > 3) {
33971
33971
  var oe = xe[ce];
33972
- P += Re(e, d) & (1 << oe) - 1, d += oe;
33972
+ te += Re(e, d) & (1 << oe) - 1, d += oe;
33973
33973
  }
33974
33974
  if (d > _) {
33975
33975
  c && Ve(0);
@@ -33977,11 +33977,11 @@ var Fe = /*#__PURE__*/ Me(Ne, 9, 1), Ie = /*#__PURE__*/ Me(Pe, 5, 1), Le = funct
33977
33977
  }
33978
33978
  s && l(f + 131072);
33979
33979
  var le = f + ae;
33980
- if (f < P) {
33981
- var ue = a - P, de = Math.min(P, le);
33980
+ if (f < te) {
33981
+ var ue = a - te, de = Math.min(te, le);
33982
33982
  for (ue + f < 0 && Ve(3); f < de; ++f) n[f] = r[ue + f];
33983
33983
  }
33984
- for (; f < le; ++f) n[f] = n[f - P];
33984
+ for (; f < le; ++f) n[f] = n[f - te];
33985
33985
  }
33986
33986
  }
33987
33987
  t.l = p, t.p = re, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
@@ -34673,8 +34673,8 @@ function Ut() {
34673
34673
  }
34674
34674
  return e;
34675
34675
  }
34676
- function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i, onMapReady: a, onMapDimLayerReady: o, onMapLoadError: s, onPointerMissed: c, children: u }) {
34677
- let d = (0, F.useRef)(null), [f, p] = (0, F.useState)(), m = (0, F.useRef)(a), h = (0, F.useRef)(o), g = (0, F.useRef)(s), _ = (0, F.useRef)({
34676
+ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i, onMapReady: a, onMapDimLayerReady: o, onMapLoadError: s, onPointerMissed: c, children: l }) {
34677
+ let u = (0, F.useRef)(null), [f, p] = (0, F.useState)(), m = (0, F.useRef)(a), h = (0, F.useRef)(o), g = (0, F.useRef)(s), _ = (0, F.useRef)({
34678
34678
  geoConfig: t,
34679
34679
  tileSource: n,
34680
34680
  mapOptions: r,
@@ -34683,7 +34683,7 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
34683
34683
  return (0, F.useEffect)(() => {
34684
34684
  m.current = a, h.current = o, g.current = s;
34685
34685
  }), (0, F.useEffect)(() => {
34686
- let e = d.current;
34686
+ let e = u.current;
34687
34687
  if (!e) return;
34688
34688
  let { geoConfig: t, tileSource: n, mapOptions: r, debug: i } = _.current, a = !1, o, s = () => {
34689
34689
  var i, s;
@@ -34766,13 +34766,13 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
34766
34766
  d.off("style.load", b), d.off("styleimagemissing", f), d.remove();
34767
34767
  };
34768
34768
  };
34769
- return i ? l().then(() => {
34769
+ return i ? d().then(() => {
34770
34770
  a || s();
34771
34771
  }) : s(), () => {
34772
34772
  a = !0, o == null || o(), p(void 0);
34773
34773
  };
34774
34774
  }, []), /* @__PURE__ */ (0, Mt.jsx)("div", {
34775
- ref: d,
34775
+ ref: u,
34776
34776
  style: {
34777
34777
  position: "absolute",
34778
34778
  top: 0,
@@ -34780,12 +34780,12 @@ function Wt({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
34780
34780
  width: "100%",
34781
34781
  height: "100%"
34782
34782
  },
34783
- children: f && /* @__PURE__ */ (0, Mt.jsx)(O, {
34783
+ children: f && /* @__PURE__ */ (0, Mt.jsx)(y, {
34784
34784
  ...f,
34785
34785
  scene: e,
34786
34786
  debug: i,
34787
34787
  onPointerMissed: c,
34788
- children: u
34788
+ children: l
34789
34789
  })
34790
34790
  });
34791
34791
  }
@@ -34808,20 +34808,20 @@ function $t(e, t, n) {
34808
34808
  }
34809
34809
  function en(e, t) {
34810
34810
  let n = [
34811
- _(e.min.x, e.min.y, t),
34812
- _(e.max.x, e.min.y, t),
34813
- _(e.max.x, e.max.y, t),
34814
- _(e.min.x, e.max.y, t)
34811
+ m(e.min.x, e.min.y, t),
34812
+ m(e.max.x, e.min.y, t),
34813
+ m(e.max.x, e.max.y, t),
34814
+ m(e.min.x, e.max.y, t)
34815
34815
  ], r = n.map(([e]) => e), i = n.map(([, e]) => e);
34816
34816
  return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
34817
34817
  }
34818
34818
  var tn = 512;
34819
34819
  function nn(e, t, n, r, i) {
34820
34820
  let a = [
34821
- _(e.min.x, e.min.y, t),
34822
- _(e.max.x, e.min.y, t),
34823
- _(e.max.x, e.max.y, t),
34824
- _(e.min.x, e.max.y, t)
34821
+ m(e.min.x, e.min.y, t),
34822
+ m(e.max.x, e.min.y, t),
34823
+ m(e.max.x, e.max.y, t),
34824
+ m(e.min.x, e.max.y, t)
34825
34825
  ].map(([e, t]) => ge.MercatorCoordinate.fromLngLat({
34826
34826
  lng: e,
34827
34827
  lat: t
@@ -34829,14 +34829,14 @@ function nn(e, t, n, r, i) {
34829
34829
  if (!a.every(({ x: e, y: t }) => Number.isFinite(e) && Number.isFinite(t))) return null;
34830
34830
  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);
34831
34831
  if (d <= 0 || f <= 0) return null;
34832
- let p = r.width - i.left - i.right, m = r.height - i.top - i.bottom;
34833
- if (p <= 0 || m <= 0) return null;
34834
- let h = Math.min(p / (d * tn), m / (f * tn));
34835
- if (!(h > 0)) return null;
34836
- let g = tn * h, v = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / g, y = (Math.min(...u) + Math.max(...u)) / 2 - (i.top - i.bottom) / 2 / g, { lng: b, lat: x } = new ge.MercatorCoordinate(v * s + y * c, -v * c + y * s).toLngLat();
34832
+ let p = r.width - i.left - i.right, h = r.height - i.top - i.bottom;
34833
+ if (p <= 0 || h <= 0) return null;
34834
+ let g = Math.min(p / (d * tn), h / (f * tn));
34835
+ if (!(g > 0)) return null;
34836
+ let _ = tn * 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 ge.MercatorCoordinate(v * s + y * c, -v * c + y * s).toLngLat();
34837
34837
  return {
34838
34838
  center: [b, x],
34839
- zoom: Math.log2(h)
34839
+ zoom: Math.log2(g)
34840
34840
  };
34841
34841
  }
34842
34842
  function rn(e, t) {
@@ -34848,7 +34848,7 @@ function rn(e, t) {
34848
34848
  };
34849
34849
  }
34850
34850
  function an(e = 0) {
34851
- let t = k.canvasVisibleRectPx, n = k.screenSize;
34851
+ let t = A.canvasVisibleRectPx, n = A.screenSize;
34852
34852
  return t ? {
34853
34853
  top: Math.max(0, t.min.y) + e,
34854
34854
  bottom: Math.max(0, n.height - t.max.y) + e,
@@ -34867,8 +34867,8 @@ function on(e, t, n) {
34867
34867
  }
34868
34868
  function sn() {
34869
34869
  var e, t;
34870
- if (!(!(m == null || (e = m.properties) == null) && e.config)) return null;
34871
- let n = m.properties.config, r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = ne(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
34870
+ if (!(!(x == null || (e = x.properties) == null) && e.config)) return null;
34871
+ let n = x.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;
34872
34872
  return {
34873
34873
  center: [r, i],
34874
34874
  bearing: o,
@@ -34929,9 +34929,9 @@ function K(e, t, n, r = {}) {
34929
34929
  }
34930
34930
  //#endregion
34931
34931
  //#region src/components/Maplibre/useCameraReactions.ts
34932
- var q = k, cn = 15, J = 24, ln = 20;
34932
+ var q = A, cn = 15, J = 24, ln = 20;
34933
34933
  function un(e) {
34934
- return M(e, T(e, ee)).expand(ln);
34934
+ return M(e, D(e, S)).expand(ln);
34935
34935
  }
34936
34936
  function dn(e, t) {
34937
34937
  return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
@@ -34939,9 +34939,9 @@ function dn(e, t) {
34939
34939
  function fn(e, t, n) {
34940
34940
  var r;
34941
34941
  if (n.length !== 1) return !1;
34942
- let i = (r = n[0]) == null ? void 0 : r.id, a = C.poiMarkerStore.markers.find((e) => e.boothId === i);
34942
+ let i = (r = n[0]) == null ? void 0 : r.id, a = w.poiMarkerStore.markers.find((e) => e.boothId === i);
34943
34943
  if (!a) return !1;
34944
- let o = _(a.center.x, a.center.y, t.gpsConfig);
34944
+ let o = m(a.center.x, a.center.y, t.gpsConfig);
34945
34945
  return on(e, o, an(J)) || e.easeTo({
34946
34946
  center: o,
34947
34947
  zoom: dn(e, cn),
@@ -34960,7 +34960,7 @@ function pn(e, t, n) {
34960
34960
  q.moveToBooths = null;
34961
34961
  return;
34962
34962
  }
34963
- K(r, un(D.fromUnion(...i.map((e) => e.rect))), t), q.moveToBooths = null;
34963
+ K(r, un(v.fromUnion(...i.map((e) => e.rect))), t), q.moveToBooths = null;
34964
34964
  }
34965
34965
  }), ie(() => q.moveToRect, (n) => {
34966
34966
  let r = e.current;
@@ -34973,44 +34973,44 @@ function pn(e, t, n) {
34973
34973
  duration: 500
34974
34974
  }), q.zoomBy = null);
34975
34975
  }), ie(() => [
34976
- k.moveToLocation,
34977
- C.maplibreStore.cameraPort,
34978
- C.routeStore.currentPosition
34976
+ A.moveToLocation,
34977
+ w.maplibreStore.cameraPort,
34978
+ w.routeStore.currentPosition
34979
34979
  ], ([n]) => {
34980
34980
  if (!n) return;
34981
- let r = e.current, i = C.routeStore.currentPosition;
34981
+ let r = e.current, i = w.routeStore.currentPosition;
34982
34982
  if (!i) {
34983
- k.moveToLocation = !1;
34983
+ A.moveToLocation = !1;
34984
34984
  return;
34985
34985
  }
34986
34986
  if (!r) return;
34987
34987
  let { lng: a, lat: o } = i, s = typeof a == "number" && Number.isFinite(a) && typeof o == "number" && Number.isFinite(o);
34988
- k.moveToLocation = !1;
34988
+ A.moveToLocation = !1;
34989
34989
  let c;
34990
34990
  if (s) c = [a, o];
34991
34991
  else {
34992
34992
  if (!t) return;
34993
- c = _(i.x, i.y, t.gpsConfig);
34993
+ c = m(i.x, i.y, t.gpsConfig);
34994
34994
  }
34995
34995
  r.flyTo({
34996
34996
  center: c,
34997
34997
  animate: !0,
34998
34998
  duration: 1e3
34999
34999
  });
35000
- }), ie(() => k.centerMap, (r) => {
35000
+ }), ie(() => A.centerMap, (r) => {
35001
35001
  let i = e.current;
35002
35002
  if (!(!r || !i || !t)) {
35003
- if (!(k.list.type === "search" && !k.list.text)) {
35004
- let { rect: e } = A({
35005
- layerViewbox: C.layerStore.viewboxRectangle,
35006
- explicitArea: b ? ee : null,
35007
- layerRectangle: C.layerStore.rectangle,
35003
+ if (!(A.list.type === "search" && !A.list.text)) {
35004
+ let { rect: e } = j({
35005
+ layerViewbox: w.layerStore.viewboxRectangle,
35006
+ explicitArea: ee ? S : null,
35007
+ layerRectangle: w.layerStore.rectangle,
35008
35008
  sceneDef: n,
35009
- svgArea: ee
35009
+ svgArea: S
35010
35010
  });
35011
35011
  K(i, e, t);
35012
35012
  }
35013
- k.centerMap = !1;
35013
+ A.centerMap = !1;
35014
35014
  }
35015
35015
  });
35016
35016
  }
@@ -35060,19 +35060,19 @@ function Tn(e, t, n = !1) {
35060
35060
  }
35061
35061
  function En() {
35062
35062
  var e, t, n;
35063
- let r = (e = (t = C.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
35063
+ let r = (e = (t = w.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
35064
35064
  return r != null && r.style ? {
35065
35065
  style: r.style,
35066
35066
  offline: r.offline
35067
35067
  } : r != null && r.styleUrl ? {
35068
35068
  style: r.styleUrl,
35069
35069
  offline: r.offline
35070
- } : _n(m == null || (n = m.properties) == null || (n = n.config) == null ? void 0 : n.style, u.backgroundColor) === "dark" ? yn : vn;
35070
+ } : _n(x == null || (n = x.properties) == null || (n = n.config) == null ? void 0 : n.style, P.backgroundColor) === "dark" ? yn : vn;
35071
35071
  }
35072
35072
  //#endregion
35073
35073
  //#region src/components/Maplibre/useDimming.ts
35074
35074
  function Dn() {
35075
- return k.dimmed && !C.poiMarkerStore.dimSuppressed;
35075
+ return A.dimmed && !w.poiMarkerStore.dimSuppressed;
35076
35076
  }
35077
35077
  function On(e, t) {
35078
35078
  let n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useCallback)((e) => {
@@ -35085,7 +35085,7 @@ function On(e, t) {
35085
35085
  Cn(e.current, t * me);
35086
35086
  }), a = fe((e) => {
35087
35087
  let n = t.current;
35088
- n && ue(n, e * 1) && y(n.rootLayer);
35088
+ n && ue(n, e * 1) && l(n.rootLayer);
35089
35089
  });
35090
35090
  return n.current = i, r.current = a, () => {
35091
35091
  i.stop(), a.stop(), n.current = null, r.current = null;
@@ -35127,14 +35127,14 @@ function An(e, t = /* @__PURE__ */ new Map()) {
35127
35127
  let n = (r = t.get(e.name)) == null ? [] : r;
35128
35128
  n.push(e), t.set(e.name, n);
35129
35129
  }
35130
- for (let r of (n = e.children) == null ? [] : n) p(r) && An(r, t);
35130
+ for (let r of (n = e.children) == null ? [] : n) k(r) && An(r, t);
35131
35131
  return t;
35132
35132
  }
35133
35133
  //#endregion
35134
35134
  //#region src/components/Maplibre/useLayerVisibilitySync.ts
35135
35135
  function jn(e, t, n) {
35136
35136
  let r = (0, F.useRef)(null), i = (0, F.useRef)(null);
35137
- ie(() => C.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
35137
+ ie(() => w.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
35138
35138
  var a, o;
35139
35139
  if (!e) return;
35140
35140
  ((a = r.current) == null ? void 0 : a.rootLayer) !== e.rootLayer && (r.current = {
@@ -35142,19 +35142,19 @@ function jn(e, t, n) {
35142
35142
  defsByName: An(e.rootLayer)
35143
35143
  });
35144
35144
  let s = r.current.defsByName, c = [];
35145
- for (let e of C.layerStore.layers) {
35145
+ for (let e of w.layerStore.layers) {
35146
35146
  let t = s.get(e.name);
35147
35147
  if (t != null && t.length) for (let n of t) {
35148
35148
  let t = !e.visible;
35149
35149
  n.hidden !== t && (n.hidden = t, c.push(n));
35150
35150
  }
35151
35151
  }
35152
- c.length && y(...c);
35153
- let l = C.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
35154
- if (!l || i.current === l.name) return;
35155
- i.current = l.name;
35156
- let u = (o = l.viewbox) == null ? l.rect : o;
35157
- K(t.current, u == null ? null : u, n);
35152
+ c.length && l(...c);
35153
+ let u = w.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
35154
+ if (!u || i.current === u.name) return;
35155
+ i.current = u.name;
35156
+ let d = (o = u.viewbox) == null ? u.rect : o;
35157
+ K(t.current, d == null ? null : d, n);
35158
35158
  }, void 0, [
35159
35159
  e,
35160
35160
  t,
@@ -35172,22 +35172,22 @@ var Mn = "expofp-poi", Nn = "expofp-poi-clusters", Pn = "expofp-poi-cluster-coun
35172
35172
  function Vn(e, t, a) {
35173
35173
  (0, F.useEffect)(() => {
35174
35174
  var o;
35175
- if (!P()) return;
35175
+ if (!C()) return;
35176
35176
  let s = t.current;
35177
35177
  if (!e || !s || !a) return;
35178
- let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(), d = window.devicePixelRatio || 1, f = E(36, d, ((o = u.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), p = (e) => _(e.center.x, e.center.y, c), m = (e, t) => {
35179
- s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: d }), l.add(e);
35180
- }, g = (e) => {
35181
- let t = C.poiMarkerStore.markers, n = new Set(t.map((e) => Bn(e.boothId)));
35178
+ let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(), u = window.devicePixelRatio || 1, d = E(36, u, ((o = P.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), f = (e) => m(e.center.x, e.center.y, c), p = (e, t) => {
35179
+ s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: u }), l.add(e);
35180
+ }, h = (e) => {
35181
+ let t = w.poiMarkerStore.markers, n = new Set(t.map((e) => Bn(e.boothId)));
35182
35182
  n.add(Ln);
35183
35183
  for (let e of [...l]) n.has(e) || (s.hasImage(e) && s.removeImage(e), l.delete(e));
35184
35184
  for (let n of t) {
35185
35185
  let t = Bn(n.boothId);
35186
- (e || !l.has(t)) && m(t, n.icon);
35186
+ (e || !l.has(t)) && p(t, n.icon);
35187
35187
  }
35188
- l.has(Ln) || m(Ln, f);
35189
- }, v = () => {
35190
- let e = C.poiMarkerStore.selectedMarkerId, t = C.poiMarkerStore.outdoorFilter, n = !t.active, r = C.poiMarkerStore.markers;
35188
+ l.has(Ln) || p(Ln, d);
35189
+ }, _ = () => {
35190
+ let e = w.poiMarkerStore.selectedMarkerId, t = w.poiMarkerStore.outdoorFilter, n = !t.active, r = w.poiMarkerStore.markers;
35191
35191
  return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
35192
35192
  cluster: n,
35193
35193
  data: {
@@ -35196,7 +35196,7 @@ function Vn(e, t, a) {
35196
35196
  type: "Feature",
35197
35197
  geometry: {
35198
35198
  type: "Point",
35199
- coordinates: p(t)
35199
+ coordinates: f(t)
35200
35200
  },
35201
35201
  properties: {
35202
35202
  boothId: t.boothId,
@@ -35295,20 +35295,20 @@ function Vn(e, t, a) {
35295
35295
  "icon-ignore-placement": !0
35296
35296
  }
35297
35297
  });
35298
- }, w = () => {
35298
+ }, T = () => {
35299
35299
  if (!s.getLayer(Nn)) return;
35300
35300
  let e = Dn() ? 1 - me : 1;
35301
35301
  s.setPaintProperty(Nn, "circle-opacity", e), s.setPaintProperty(Nn, "circle-stroke-opacity", e), s.setPaintProperty(Pn, "text-opacity", e), s.setPaintProperty(Fn, "icon-opacity", e), s.setPaintProperty(In, "icon-opacity", e);
35302
- }, T = (e = !1) => {
35302
+ }, D = (e = !1) => {
35303
35303
  var t;
35304
- g(e);
35305
- let { cluster: n, data: r } = v();
35306
- S(r, n), (t = s.getSource(Mn)) == null || t.setData(r), w();
35304
+ h(e);
35305
+ let { cluster: n, data: r } = _();
35306
+ S(r, n), (t = s.getSource(Mn)) == null || t.setData(r), T();
35307
35307
  }, O = (e) => {
35308
35308
  if (!e.length) return;
35309
35309
  let t = an(50);
35310
- if (e.every((e) => on(s, p(e), t))) return;
35311
- let n = en(D.fromPoints(e.map((e) => e.center)), c), r = s.cameraForBounds(n, {
35310
+ if (e.every((e) => on(s, f(e), t))) return;
35311
+ let n = en(v.fromPoints(e.map((e) => e.center)), c), r = s.cameraForBounds(n, {
35312
35312
  padding: t,
35313
35313
  bearing: a.bearing
35314
35314
  });
@@ -35323,8 +35323,8 @@ function Vn(e, t, a) {
35323
35323
  var t;
35324
35324
  let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
35325
35325
  if (typeof n != "number") return;
35326
- let r = C.boothStore.boothById.get(n);
35327
- r && C.clickBooth(r);
35326
+ let r = w.boothStore.boothById.get(n);
35327
+ r && w.clickBooth(r);
35328
35328
  }, A = (e) => {
35329
35329
  var t, n, r;
35330
35330
  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(Mn);
@@ -35338,21 +35338,21 @@ function Vn(e, t, a) {
35338
35338
  });
35339
35339
  });
35340
35340
  };
35341
- s.on("click", Fn, k), s.on("click", In, k), s.on("click", Nn, A), h.set((e, t) => {
35341
+ s.on("click", Fn, k), s.on("click", In, k), s.on("click", Nn, A), g.set((e, t) => {
35342
35342
  let n = zn.filter((e) => !!s.getLayer(e));
35343
35343
  if (!n.length) return !1;
35344
- let r = s.project(_(e, t, c));
35344
+ let r = s.project(m(e, t, c));
35345
35345
  return s.queryRenderedFeatures([r.x, r.y], { layers: n }).length > 0;
35346
35346
  });
35347
35347
  let j = () => {
35348
- l.clear(), T(!0);
35348
+ l.clear(), D(!0);
35349
35349
  };
35350
35350
  s.on("style.load", j);
35351
- let M = i(() => C.poiMarkerStore.markers, () => T(!0)), N = i(() => C.poiMarkerStore.selectedMarkerId, () => T()), ee = i(() => C.poiMarkerStore.outdoorFilter.key, () => {
35352
- T(), O(C.poiMarkerStore.outdoorFilter.matchingMarkers);
35353
- }), te = i(() => Dn(), () => w());
35354
- return T(!0), () => {
35355
- M(), N(), ee(), te(), h.set(null), s.off("style.load", j), s.off("click", Fn, k), s.off("click", In, k), s.off("click", Nn, A);
35351
+ let M = i(() => w.poiMarkerStore.markers, () => D(!0)), N = i(() => w.poiMarkerStore.selectedMarkerId, () => D()), ee = i(() => w.poiMarkerStore.outdoorFilter.key, () => {
35352
+ D(), O(w.poiMarkerStore.outdoorFilter.matchingMarkers);
35353
+ }), te = i(() => Dn(), () => T());
35354
+ return D(!0), () => {
35355
+ M(), N(), ee(), te(), g.set(null), s.off("style.load", j), s.off("click", Fn, k), s.off("click", In, k), s.off("click", Nn, A);
35356
35356
  try {
35357
35357
  x();
35358
35358
  for (let e of l) s.hasImage(e) && s.removeImage(e);
@@ -35369,9 +35369,9 @@ function Vn(e, t, a) {
35369
35369
  function Hn(e, t) {
35370
35370
  (0, F.useEffect)(() => {
35371
35371
  if (!e) return;
35372
- let n = d({
35372
+ let n = u({
35373
35373
  scene: e,
35374
- store: C,
35374
+ store: w,
35375
35375
  canvas: t
35376
35376
  }), r = le({ scene: e });
35377
35377
  return () => {
@@ -35557,50 +35557,50 @@ function lr(e, t, n) {
35557
35557
  };
35558
35558
  }
35559
35559
  function ur() {
35560
- C.poiMarkerStore.clear(), a(() => {
35561
- C.layerStore.layers.forEach((e) => {
35560
+ w.poiMarkerStore.clear(), a(() => {
35561
+ w.layerStore.layers.forEach((e) => {
35562
35562
  e.configured = !1, e.children = [], e.loaded = !1;
35563
- }), C.layerStore.layersLoaded = !1;
35563
+ }), w.layerStore.layersLoaded = !1;
35564
35564
  });
35565
35565
  }
35566
35566
  var dr = re(function({ viewMode: e }) {
35567
35567
  var t;
35568
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null), s = (0, F.useRef)(null), l = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useMemo)(() => sn(), []), m = (0, F.useMemo)(() => A({
35569
- layerViewbox: C.layerStore.viewboxRectangle,
35570
- explicitArea: b ? ee : null,
35571
- layerRectangle: C.layerStore.rectangle,
35568
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null), s = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useMemo)(() => sn(), []), m = (0, F.useMemo)(() => j({
35569
+ layerViewbox: w.layerStore.viewboxRectangle,
35570
+ explicitArea: ee ? S : null,
35571
+ layerRectangle: w.layerStore.rectangle,
35572
35572
  sceneDef: n,
35573
- svgArea: ee
35574
- }), [n]), h = m.rect, _ = (0, F.useMemo)(() => {
35575
- if (!p) return null;
35576
- let e = w(m.source) ? 0 : T(h, ee), t = an(0);
35577
- e && k.screenSize && (t.left += k.screenSize.width * e, t.right += k.screenSize.width * e, t.top += k.screenSize.height * e, t.bottom += k.screenSize.height * e);
35578
- let n = k.screenSize ? nn(h, p.gpsConfig, p.bearing, {
35579
- width: k.screenSize.width,
35580
- height: k.screenSize.height
35573
+ svgArea: S
35574
+ }), [n]), g = m.rect, _ = (0, F.useMemo)(() => {
35575
+ if (!f) return null;
35576
+ let e = T(m.source) ? 0 : D(g, S), t = an(0);
35577
+ e && A.screenSize && (t.left += A.screenSize.width * e, t.right += A.screenSize.width * e, t.top += A.screenSize.height * e, t.bottom += A.screenSize.height * e);
35578
+ let n = A.screenSize ? nn(g, f.gpsConfig, f.bearing, {
35579
+ width: A.screenSize.width,
35580
+ height: A.screenSize.height
35581
35581
  }, t) : null;
35582
35582
  return n ? {
35583
35583
  center: n.center,
35584
- bearing: p.bearing,
35584
+ bearing: f.bearing,
35585
35585
  zoom: n.zoom
35586
35586
  } : {
35587
- center: p.center,
35588
- bearing: p.bearing,
35589
- zoom: p.zoom,
35590
- bounds: en(h, p.gpsConfig),
35587
+ center: f.center,
35588
+ bearing: f.bearing,
35589
+ zoom: f.zoom,
35590
+ bounds: en(g, f.gpsConfig),
35591
35591
  fitPadding: t,
35592
35592
  zoomAdjustment: Gt
35593
35593
  };
35594
35594
  }, [
35595
- p,
35595
+ f,
35596
35596
  m,
35597
- h
35598
- ]), y = (0, F.useMemo)(() => {
35597
+ g
35598
+ ]), v = (0, F.useMemo)(() => {
35599
35599
  var e;
35600
- return p ? Jn(p.gpsConfig, (e = te()) == null ? void 0 : e.getAttribute("units")) : null;
35601
- }, [p]), E = (0, F.useMemo)(() => ({ ...e === "map2d" ? Sn : xn }), [e]), D = (0, F.useRef)(E), O = (0, F.useMemo)(() => En(), []), M = (0, F.useMemo)(() => {
35602
- if (!n || !y) return null;
35603
- let e = n.rootLayer.children, t = g(e) ? e.filter((e) => e.name.toLowerCase() !== "areamap") : e;
35600
+ return f ? Jn(f.gpsConfig, (e = O()) == null ? void 0 : e.getAttribute("units")) : null;
35601
+ }, [f]), y = (0, F.useMemo)(() => ({ ...e === "map2d" ? Sn : xn }), [e]), x = (0, F.useRef)(y), C = (0, F.useMemo)(() => En(), []), E = (0, F.useMemo)(() => {
35602
+ if (!n || !v) return null;
35603
+ let e = n.rootLayer.children, t = p(e) ? e.filter((e) => e.name.toLowerCase() !== "areamap") : e;
35604
35604
  return {
35605
35605
  ...n,
35606
35606
  rootLayer: {
@@ -35608,17 +35608,17 @@ var dr = re(function({ viewMode: e }) {
35608
35608
  children: t
35609
35609
  },
35610
35610
  background: void 0,
35611
- staticTransform: y
35611
+ staticTransform: v
35612
35612
  };
35613
- }, [n, y]), P = (0, F.useRef)(null);
35613
+ }, [n, v]), k = (0, F.useRef)(null);
35614
35614
  (0, F.useEffect)(() => {
35615
- P.current = M;
35616
- }, [M]), (0, F.useEffect)(() => {
35617
- if (M) return N(M), () => N(void 0);
35618
- }, [M]);
35619
- let { mapDimAnimatorRef: ne, venueDimAnimatorRef: re, applyDimmingTarget: ie, handleMapDimLayerReady: le } = On(o, P);
35615
+ k.current = E;
35616
+ }, [E]), (0, F.useEffect)(() => {
35617
+ if (E) return N(E), () => N(void 0);
35618
+ }, [E]);
35619
+ let { mapDimAnimatorRef: M, venueDimAnimatorRef: re, applyDimmingTarget: ie, handleMapDimLayerReady: le } = On(o, k);
35620
35620
  (0, F.useEffect)(() => {
35621
- if (!p) return;
35621
+ if (!f) return;
35622
35622
  let e = !1;
35623
35623
  ur(), se().then(({ layers: t, cleanup: n }) => {
35624
35624
  if (e) {
@@ -35626,58 +35626,58 @@ var dr = re(function({ viewMode: e }) {
35626
35626
  return;
35627
35627
  }
35628
35628
  l.current = n;
35629
- let i = (0, he.default)(u.backgroundColor === "none" ? "#ebebeb" : u.backgroundColor).string();
35630
- r(j(t, ee, i));
35629
+ let i = (0, he.default)(P.backgroundColor === "none" ? "#ebebeb" : P.backgroundColor).string();
35630
+ r(b(t, S, i));
35631
35631
  }).catch((t) => {
35632
35632
  e || console.warn("Maplibre scene configuration failed.", t);
35633
35633
  });
35634
- let t = ne.current, n = re.current;
35634
+ let t = M.current, n = re.current;
35635
35635
  return () => {
35636
35636
  var r;
35637
- e = !0, ur(), (r = l.current) == null || r.call(l), l.current = null, f.current && (C.maplibreStore.clearCameraPortIfCurrent(f.current), f.current = null), o.current = null, s.current = null, d.current = null, a(!1), t == null || t.stop(), n == null || n.stop(), k.sceneDefReady = !1;
35637
+ e = !0, ur(), (r = l.current) == null || r.call(l), l.current = null, d.current && (w.maplibreStore.clearCameraPortIfCurrent(d.current), d.current = null), o.current = null, s.current = null, u.current = null, a(!1), t == null || t.stop(), n == null || n.stop(), A.sceneDefReady = !1;
35638
35638
  };
35639
35639
  }, [
35640
- p,
35641
- ne,
35640
+ f,
35641
+ M,
35642
35642
  re
35643
35643
  ]);
35644
35644
  let ue = (0, F.useCallback)((e, t) => {
35645
35645
  var n;
35646
- o.current = e, s.current = e.getCanvas(), d.current = t, a(!0), Tn(e, D.current);
35647
- let r = lr(e, (n = p == null ? void 0 : p.bearing) == null ? e.getBearing() : n, () => {
35646
+ o.current = e, s.current = e.getCanvas(), u.current = t, a(!0), Tn(e, x.current);
35647
+ let r = lr(e, (n = f == null ? void 0 : f.bearing) == null ? e.getBearing() : n, () => {
35648
35648
  var e;
35649
- return (e = D.current.pitch) == null ? 0 : e;
35649
+ return (e = x.current.pitch) == null ? 0 : e;
35650
35650
  });
35651
- f.current = r, C.maplibreStore.setCameraPort(r), C.fp.getCenterCoordinates = () => ae(s.current), ie({ immediate: !0 }), x(), C.layerStore.layersLoaded = !0, C.fp.onFpConfigured && C.fp.onFpConfigured(), k.sceneDefReady = !0, t();
35652
- }, [ie, p]);
35651
+ d.current = r, w.maplibreStore.setCameraPort(r), w.fp.getCenterCoordinates = () => ae(s.current), ie({ immediate: !0 }), te(), w.layerStore.layersLoaded = !0, w.fp.onFpConfigured && w.fp.onFpConfigured(), A.sceneDefReady = !0, t();
35652
+ }, [ie, f]);
35653
35653
  (0, F.useEffect)(() => {
35654
- D.current = E, Tn(o.current, E, !0);
35655
- }, [E]), kn(i, o), Hn(M, s), Vn(i, o, p), jn(M, o, p), pn(o, p, M), oe({
35656
- enabled: C.layerStore.layersLoaded && k.buildRoute,
35657
- scene: M == null ? void 0 : M
35654
+ x.current = y, Tn(o.current, y, !0);
35655
+ }, [y]), kn(i, o), Hn(E, s), Vn(i, o, f), jn(E, o, f), pn(o, f, E), oe({
35656
+ enabled: w.layerStore.layersLoaded && A.buildRoute,
35657
+ scene: E == null ? void 0 : E
35658
35658
  });
35659
- let fe = (t = S.busRoutes) != null && t;
35659
+ let fe = (t = ne.busRoutes) != null && t;
35660
35660
  ce({
35661
- permission: C.layerStore.layersLoaded && fe,
35662
- scene: M == null ? void 0 : M,
35663
- dataJsonUrl: `https://${sr}/v1/routes?expo=${u.EXPO}`,
35664
- websocketUrl: `wss://${sr}/locations?expo=${u.EXPO}`
35661
+ permission: w.layerStore.layersLoaded && fe,
35662
+ scene: E == null ? void 0 : E,
35663
+ dataJsonUrl: `https://${sr}/v1/routes?expo=${P.EXPO}`,
35664
+ websocketUrl: `wss://${sr}/locations?expo=${P.EXPO}`
35665
35665
  });
35666
35666
  let me = (0, F.useCallback)((e) => {
35667
- console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), C.maplibreStore.deactivateMaplibre();
35667
+ console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), w.maplibreStore.deactivateMaplibre();
35668
35668
  }, []);
35669
- if (!p || !_ || !y || !M) return null;
35669
+ if (!f || !_ || !v || !E) return null;
35670
35670
  let ge = `${_.center.join(",")}:${_.bearing}:${_.zoom}`;
35671
35671
  return /* @__PURE__ */ (0, Mt.jsxs)(Wt, {
35672
- sceneDef: M,
35672
+ sceneDef: E,
35673
35673
  geoConfig: _,
35674
- tileSource: O,
35675
- mapOptions: E,
35674
+ tileSource: C,
35675
+ mapOptions: y,
35676
35676
  debug: c,
35677
35677
  onMapReady: ue,
35678
35678
  onMapDimLayerReady: le,
35679
35679
  onMapLoadError: me,
35680
- onPointerMissed: v,
35680
+ onPointerMissed: h,
35681
35681
  children: [/* @__PURE__ */ (0, Mt.jsx)(de, {}), c && /* @__PURE__ */ (0, Mt.jsx)(pe, { canvas: s })]
35682
35682
  }, ge);
35683
35683
  });