@expofp/floorplan 3.7.3 → 3.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/browser/Button-C2KZSXb2.js +204 -0
  2. package/dist/browser/{CookieConsent-B9r34uCC.js → CookieConsent-Cq4qcueB.js} +8 -8
  3. package/dist/browser/{Debug-DunksSNj.js → Debug-D1JNigN7.js} +10 -9
  4. package/dist/browser/{Demo-891f5t9l.js → Demo-XVDEqvrA.js} +12 -11
  5. package/dist/browser/{Free-DVER8MHL.js → Free-C3wcDnvz.js} +13 -12
  6. package/dist/browser/{Gallery-CyRq9QY2.js → Gallery-CGxt4BEQ.js} +10 -10
  7. package/dist/browser/{GpsLoader-9_3XrM1S.js → GpsLoader-BL9r9aBb.js} +27 -26
  8. package/dist/browser/{KioskStore-BOSyfMyO.js → KioskStore-CEjAu1fS.js} +71 -72
  9. package/dist/browser/{MaplibreAdapter-C9a80Y5u.js → MaplibreAdapter-CFCATr0R.js} +312 -311
  10. package/dist/browser/{Modal-DcLxiT8t.js → Modal-DwvgaUJ4.js} +10 -10
  11. package/dist/browser/{PermissionNotice-DWddxvUt.js → PermissionNotice-Bfmg473m.js} +7 -7
  12. package/dist/browser/{SetKioskMode-CgzKiK3y.js → SetKioskMode-DgZnzdyw.js} +18 -17
  13. package/dist/browser/ShowKiosk-Ddu65pot.js +27 -0
  14. package/dist/browser/{TouchHand-B6PlZY3K.js → TouchHand-CW3feM7g.js} +4 -4
  15. package/dist/browser/{ViewerMenuPanel-B46Uw94g.js → ViewerMenuPanel-DTLGFJdO.js} +18 -17
  16. package/dist/browser/{add-debug-secret-listener-DprGe6C-.js → add-debug-secret-listener-DLq_05Ya.js} +1 -1
  17. package/dist/browser/{boolean-editor-CdhFegqG.js → boolean-editor-CPZmUe0k.js} +9 -9
  18. package/dist/browser/{bootIntercom-C2w8EmqK.js → bootIntercom-OQUPpNv5.js} +3 -3
  19. package/dist/browser/{browser-D4L-gjqm.js → browser-CuHRVR45.js} +2 -2
  20. package/dist/browser/bundle.json +61 -58
  21. package/dist/browser/{classnames-CDxP0X2-.js → classnames-Bua-vCkl.js} +2 -2
  22. package/dist/browser/{client-BUGY3NJ-.js → client-BtBjpMA2.js} +4 -4
  23. package/dist/browser/{components-C9eYt8L8.js → components-Bk-VYz6V.js} +1585 -1584
  24. package/dist/browser/{createWayfinding-B9PG8HXm.js → createWayfinding-BcyMyZfV.js} +323 -323
  25. package/dist/browser/{debug-overlay-DHL2Ipq8.js → debug-overlay-Bee-ID_e.js} +10 -10
  26. package/dist/browser/{debug-ui-BE-7wgWb.js → debug-ui-C6Mu7jmE.js} +6 -6
  27. package/dist/browser/{dist-BY2VkOah.js → dist-C3qJPKIL.js} +5 -5
  28. package/dist/browser/{dist-DPH_nXx1.js → dist-C6Bwrbur.js} +3 -3
  29. package/dist/browser/{dist-C6qlzHIi.js → dist-Ypj0lz96.js} +6 -6
  30. package/dist/browser/{efp-debug-init-YS7dfyN-.js → efp-debug-init-BmXxwF3h.js} +2 -2
  31. package/dist/browser/{enum-editor-D_zEjkiJ.js → enum-editor-BtytGwbn.js} +11 -11
  32. package/dist/browser/{event-not-found-FYtE_1nu.js → event-not-found-DtnrzyTS.js} +1 -1
  33. package/dist/browser/{exports-Cjz1yZKk.js → exports-DwNV9Fce.js} +1 -1
  34. package/dist/browser/{favicon-DrjHpzP4.js → favicon-Bg82OSpr.js} +1 -1
  35. package/dist/browser/{fetch-retry.umd-Cid9TH8f.js → fetch-retry.umd-C5JqTz5u.js} +2 -2
  36. package/dist/browser/{flex-DeqbUH21.js → flex-BoTx9ho3.js} +5 -5
  37. package/dist/browser/{floorplan.loader-Bj-l8uDr.js → floorplan.loader-CJNw0Cge.js} +670 -707
  38. package/dist/browser/{floorplan.ready-ISdK-pOq.js → floorplan.ready-DOhcGKtR.js} +283 -244
  39. package/dist/browser/{fuse-DuhtQS_C.js → fuse-DJzKEeDA.js} +2 -2
  40. package/dist/browser/{i18n-topUIylF.js → i18n-Cir_gINd.js} +3 -3
  41. package/dist/browser/index.js +11 -11
  42. package/dist/browser/{storage-DQBS2cde.js → is-debug-0pBDODSU.js} +7 -24
  43. package/dist/browser/{jsx-runtime-BqvudT0U.js → jsx-runtime-DCZPOiVu.js} +2 -2
  44. package/dist/browser/{lib-Cs6Jo7Wv.js → lib-DQt-k78K.js} +4 -4
  45. package/dist/browser/{main-BEqsYQfj.js → main-CIgf7ksx.js} +1 -1
  46. package/dist/browser/{mobx-C5AHTMbx.js → mobx-pMkzJ1bN.js} +4 -4
  47. package/dist/browser/{particles.min-COvnIi42.js → particles.min-Q2r1icQ9.js} +2 -2
  48. package/dist/browser/{prop-types-H1ekLSgm.js → prop-types-GavRCOPR.js} +2 -2
  49. package/dist/browser/{react-CDj0nSIt.js → react-BlsmLtRd.js} +2 -2
  50. package/dist/browser/{react-dom-F1fx5UfT.js → react-dom-DgLQ5tL0.js} +3 -3
  51. package/dist/browser/{reset-all-settings-Dj1Hc9SL.js → reset-all-settings-CxUO3y2o.js} +7 -7
  52. package/dist/browser/{rolldown-runtime-CJ4NSGHF.js → rolldown-runtime-C9CB_XOZ.js} +1 -1
  53. package/dist/browser/{settings-bv5D0Jdx.js → settings-O5svYOVy.js} +2 -2
  54. package/dist/browser/{settings-item-BBkCXqTe.js → settings-item-354rDOkM.js} +6 -6
  55. package/dist/browser/{store-CG3Lvb_Y.js → store-CVf_IY9i.js} +6166 -6328
  56. package/dist/browser/{string-editor-DWJwFIbn.js → string-editor-C1jvvzZY.js} +7 -7
  57. package/dist/browser/{theme-Bn3nZG-N.js → theme-BewQdo5w.js} +8 -8
  58. package/dist/browser/{ui-B_JKKY6c.js → ui-DeHsnIKK.js} +8 -8
  59. package/dist/browser/{useRenderTarget-cPhKH67H.js → useRenderTarget-Cpug5PXZ.js} +5 -5
  60. package/dist/esm/floorplan.loader.js +1 -1
  61. package/dist/esm/floorplan.ready.js +1 -1
  62. package/dist/esm/store/index.js +1 -1
  63. package/package.json +4 -4
  64. package/dist/browser/ShowKiosk-DRR5jjXM.js +0 -26
@@ -2,20 +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.7.3" };
5
+ e.SENTRY_RELEASE = { id: "3.7.5" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "093e1131-89ac-474d-99a2-42589536e028", e._sentryDebugIdIdentifier = "sentry-dbid-093e1131-89ac-474d-99a2-42589536e028");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "73ad4796-801f-4b2b-9c13-7a5b8d901e1e", e._sentryDebugIdIdentifier = "sentry-dbid-73ad4796-801f-4b2b-9c13-7a5b8d901e1e");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./rolldown-runtime-CJ4NSGHF.js";
11
- import { t as n } from "./react-CDj0nSIt.js";
12
- import { t as r } from "./jsx-runtime-BqvudT0U.js";
13
- import { v as i } from "./i18n-topUIylF.js";
14
- import { Ht as a, Nt as o, Rt as s, St as c, Ut as l, an as u, cn as d, dn as f, it as p, ln as m, o as h, rn as g, s as _, sn as v, st as y, t as b, vt as x, wt as S } from "./store-CG3Lvb_Y.js";
15
- import { r as C } from "./mobx-C5AHTMbx.js";
16
- import { a as w, c as T, i as E, l as D, n as O, o as k, r as A, s as j, t as M, u as N } from "./createWayfinding-B9PG8HXm.js";
10
+ import { r as e, t } from "./rolldown-runtime-C9CB_XOZ.js";
11
+ import { t as n } from "./react-BlsmLtRd.js";
12
+ import { t as r } from "./jsx-runtime-DCZPOiVu.js";
13
+ import { v as i } from "./i18n-Cir_gINd.js";
14
+ import { n as a } from "./Button-C2KZSXb2.js";
15
+ import { Dt as o, Gt as s, It as c, Kt as l, Tt as u, Vt as d, cn as f, dn as p, fn as m, it as h, o as g, on as _, s as v, st as y, t as b, un as x, xt as S } from "./store-CVf_IY9i.js";
16
+ import { r as C } from "./mobx-pMkzJ1bN.js";
17
+ import { a as w, c as T, i as E, l as D, n as O, o as k, r as A, s as j, t as M, u as ee } from "./createWayfinding-BcyMyZfV.js";
17
18
  //#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
18
- var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__PURE__ */ t(((e, t) => {
19
+ var N = /* @__PURE__ */ e(n(), 1), te = /* @__PURE__ */ e(m(), 1), ne = (/* @__PURE__ */ t(((e, t) => {
19
20
  (function(n, r) {
20
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());
21
22
  })(e, (function() {
@@ -314,45 +315,45 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
314
315
  function M(e, t, n) {
315
316
  return e * (1 - n) + t * n;
316
317
  }
317
- function N(e) {
318
+ function ee(e) {
318
319
  if (e <= 0) return 0;
319
320
  if (e >= 1) return 1;
320
321
  let t = e * e, n = t * e;
321
322
  return 4 * (e < .5 ? n : 3 * (e - t) + n - .75);
322
323
  }
323
- function P(e, t, n, r) {
324
+ function N(e, t, n, r) {
324
325
  let i = new o(e, t, n, r);
325
326
  return (e) => i.solve(e);
326
327
  }
327
- let ee = P(.25, .1, .25, 1);
328
- function te(e, t, n) {
328
+ let te = N(.25, .1, .25, 1);
329
+ function ne(e, t, n) {
329
330
  return Math.min(n, Math.max(t, e));
330
331
  }
331
- function F(e, t, n) {
332
+ function P(e, t, n) {
332
333
  let r = n - t, i = ((e - t) % r + r) % r + t;
333
334
  return i === t ? n : i;
334
335
  }
335
- function ne(e, ...t) {
336
+ function re(e, ...t) {
336
337
  for (let n of t) for (let t in n) e[t] = n[t];
337
338
  return e;
338
339
  }
339
- let re = 1;
340
- function ie(e, t, n) {
340
+ let ie = 1;
341
+ function ae(e, t, n) {
341
342
  let r = {};
342
343
  for (let n in e) r[n] = t.call(this, e[n], n, e);
343
344
  return r;
344
345
  }
345
- function ae(e, t, n) {
346
+ function oe(e, t, n) {
346
347
  let r = {};
347
348
  for (let n in e) t.call(this, e[n], n, e) && (r[n] = e[n]);
348
349
  return r;
349
350
  }
350
- function oe(e) {
351
- return Array.isArray(e) ? e.map(oe) : typeof e == "object" && e ? ie(e, oe) : e;
351
+ function se(e) {
352
+ return Array.isArray(e) ? e.map(se) : typeof e == "object" && e ? ae(e, se) : e;
352
353
  }
353
- let se = {};
354
+ let F = {};
354
355
  function ce(e) {
355
- se[e] || (typeof console < "u" && console.warn(e), se[e] = !0);
356
+ F[e] || (typeof console < "u" && console.warn(e), F[e] = !0);
356
357
  }
357
358
  function le(e, t, n) {
358
359
  return (n.y - e.y) * (t.x - e.x) > (t.y - e.y) * (n.x - e.x);
@@ -465,7 +466,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
465
466
  let t = De(e.url);
466
467
  if (t) {
467
468
  let r = yield t(e, n);
468
- return r.data || e.type !== "arrayBuffer" ? r : ne(r, { data: /* @__PURE__ */ new ArrayBuffer(0) });
469
+ return r.data || e.type !== "arrayBuffer" ? r : re(r, { data: /* @__PURE__ */ new ArrayBuffer(0) });
469
470
  }
470
471
  if (ue(self) && (r = self.worker) != null && r.actor) return self.worker.actor.sendAsync({
471
472
  type: "GR",
@@ -567,12 +568,12 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
567
568
  }
568
569
  class Fe {
569
570
  constructor(e, t = {}) {
570
- ne(this, t), this.type = e;
571
+ re(this, t), this.type = e;
571
572
  }
572
573
  }
573
574
  class Ie extends Fe {
574
575
  constructor(e, t = {}) {
575
- super("error", ne({ error: e }, t));
576
+ super("error", re({ error: e }, t));
576
577
  }
577
578
  }
578
579
  class Le {
@@ -598,7 +599,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
598
599
  let a = (r = this._oneTimeListeners) != null && r[i] ? this._oneTimeListeners[i].slice() : [];
599
600
  for (let t of a) Pe(i, t, this._oneTimeListeners), t.call(this, e);
600
601
  let o = this._eventedParent;
601
- o && (ne(e, typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData), o.fire(e));
602
+ o && (re(e, typeof this._eventedParentData == "function" ? this._eventedParentData() : this._eventedParentData), o.fire(e));
602
603
  } else e instanceof Ie && console.error(e.error);
603
604
  return this;
604
605
  }
@@ -8256,7 +8257,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
8256
8257
  this.property = e, this.value = new za(e, void 0, t);
8257
8258
  }
8258
8259
  transitioned(e, t) {
8259
- return new Ha(this.property, this.value, t, ne({}, e.transition, this.transition), e.now);
8260
+ return new Ha(this.property, this.value, t, re({}, e.transition, this.transition), e.now);
8260
8261
  }
8261
8262
  untransitioned() {
8262
8263
  return new Ha(this.property, this.value, null, {}, 0);
@@ -8270,16 +8271,16 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
8270
8271
  return e in this._properties.defaultTransitionablePropertyValues;
8271
8272
  }
8272
8273
  getValue(e) {
8273
- return oe(this._values[e].value.value);
8274
+ return se(this._values[e].value.value);
8274
8275
  }
8275
8276
  setValue(e, t) {
8276
- Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].value = new za(this._values[e].property, t === null ? void 0 : oe(t), this._globalState);
8277
+ Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].value = new za(this._values[e].property, t === null ? void 0 : se(t), this._globalState);
8277
8278
  }
8278
8279
  getTransition(e) {
8279
- return oe(this._values[e].transition);
8280
+ return se(this._values[e].transition);
8280
8281
  }
8281
8282
  setTransition(e, t) {
8282
- Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].transition = oe(t) || void 0;
8283
+ Object.hasOwn(this._values, e) || (this._values[e] = new Ba(this._values[e].property, this._globalState)), this._values[e].transition = se(t) || void 0;
8283
8284
  }
8284
8285
  serialize() {
8285
8286
  let e = {};
@@ -8313,7 +8314,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
8313
8314
  if (r < this.begin) return a.possiblyEvaluate(e, t, n);
8314
8315
  {
8315
8316
  let o = (r - this.begin) / (this.end - this.begin);
8316
- return this.property.interpolate(a.possiblyEvaluate(e, t, n), i, N(o));
8317
+ return this.property.interpolate(a.possiblyEvaluate(e, t, n), i, ee(o));
8317
8318
  }
8318
8319
  }
8319
8320
  return i;
@@ -8344,10 +8345,10 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
8344
8345
  return e in this._properties.defaultPropertyValues;
8345
8346
  }
8346
8347
  getValue(e) {
8347
- return oe(this._values[e].value);
8348
+ return se(this._values[e].value);
8348
8349
  }
8349
8350
  setValue(e, t) {
8350
- this._values[e] = new za(this._values[e].property, t === null ? void 0 : oe(t), this._globalState);
8351
+ this._values[e] = new za(this._values[e].property, t === null ? void 0 : se(t), this._globalState);
8351
8352
  }
8352
8353
  serialize() {
8353
8354
  let e = {};
@@ -8636,7 +8637,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
8636
8637
  layout: (e = this._unevaluatedLayout) == null ? void 0 : e.serialize(),
8637
8638
  paint: (t = this._transitionablePaint) == null ? void 0 : t.serialize()
8638
8639
  };
8639
- return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility), ae(n, ((e, t) => !(e === void 0 || t === "layout" && !Object.keys(e).length || t === "paint" && !Object.keys(e).length)));
8640
+ return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility), oe(n, ((e, t) => !(e === void 0 || t === "layout" && !Object.keys(e).length || t === "paint" && !Object.keys(e).length)));
8640
8641
  }
8641
8642
  _validate(e, t, n, r, i = {}) {
8642
8643
  return !1 !== (i == null ? void 0 : i.validate) && pa(this, e.call(ca, {
@@ -9411,7 +9412,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
9411
9412
  }
9412
9413
  }
9413
9414
  function cs(e, t) {
9414
- return 256 * (e = te(Math.floor(e), 0, 255)) + te(Math.floor(t), 0, 255);
9415
+ return 256 * (e = ne(Math.floor(e), 0, 255)) + ne(Math.floor(t), 0, 255);
9415
9416
  }
9416
9417
  ss.MAX_VERTEX_ARRAY_LENGTH = 2 ** 16 - 1, X("SegmentVector", ss);
9417
9418
  let ls = oo([
@@ -9671,7 +9672,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
9671
9672
  this.paintVertexBuffer && this.paintVertexBuffer.destroy();
9672
9673
  }
9673
9674
  setUniform(e, t) {
9674
- let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r = te(this.expression.interpolationFactor(n, this.zoom, this.zoom + 1), 0, 1);
9675
+ let n = this.useIntegerZoom ? Math.floor(t.zoom) : t.zoom, r = ne(this.expression.interpolationFactor(n, this.zoom, this.zoom + 1), 0, 1);
9675
9676
  e.set(r);
9676
9677
  }
9677
9678
  getBinding(e, t, n) {
@@ -9965,7 +9966,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
9965
9966
  let t = O / e.extent, n = e.loadGeometry();
9966
9967
  for (let e of n) for (let n of e) {
9967
9968
  let e = Math.round(n.x * t), r = Math.round(n.y * t);
9968
- 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) && ce("Geometry exceeds allowed extent, reduce your vector tile buffer size");
9969
+ 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) && ce("Geometry exceeds allowed extent, reduce your vector tile buffer size");
9969
9970
  }
9970
9971
  return n;
9971
9972
  }
@@ -12842,7 +12843,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
12842
12843
  }), super.possiblyEvaluate(e, t);
12843
12844
  }
12844
12845
  evaluate(e, t, n, r) {
12845
- return t = ne({}, t, { zoom: Math.floor(t.zoom) }), super.evaluate(e, t, n, r);
12846
+ return t = re({}, t, { zoom: Math.floor(t.zoom) }), super.evaluate(e, t, n, r);
12846
12847
  }
12847
12848
  }
12848
12849
  let dd;
@@ -14777,7 +14778,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
14777
14778
  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");
14778
14779
  }
14779
14780
  wrap() {
14780
- return new Nf(F(this.lng, -180, 180), this.lat);
14781
+ return new Nf(P(this.lng, -180, 180), this.lat);
14781
14782
  }
14782
14783
  toArray() {
14783
14784
  return [this.lng, this.lat];
@@ -17196,7 +17197,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
17196
17197
  if (!n) continue;
17197
17198
  let i = {};
17198
17199
  m && l && (i = l.getState(n.sourceLayer || Um, m));
17199
- let d = ne({}, c[t]);
17200
+ let d = re({}, c[t]);
17200
17201
  d.paint = Qm(d.paint, n.paint, p, i, o), d.layout = Qm(d.layout, n.layout, p, i, o);
17201
17202
  let f = !u || u(p, n, i);
17202
17203
  if (!f) continue;
@@ -17228,7 +17229,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
17228
17229
  }
17229
17230
  }
17230
17231
  function Qm(e, t, n, r, i) {
17231
- return ie(e, ((e, a) => {
17232
+ return ae(e, ((e, a) => {
17232
17233
  let o = t instanceof Ka ? t.get(a) : null;
17233
17234
  return o != null && o.evaluate ? o.evaluate(n, r, i) : o;
17234
17235
  }));
@@ -17370,33 +17371,33 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
17370
17371
  (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;
17371
17372
  }
17372
17373
  let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
17373
- 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, _), P = new n(l, _), ee = new n(u / s, f / s), te = new n(g / s, A / s), F = t * Math.PI / 180;
17374
- if (F) {
17375
- let e = Math.sin(F), t = Math.cos(F), n = [
17374
+ 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, _), N = new n(l, _), te = new n(u / s, f / s), ne = new n(g / s, A / s), P = t * Math.PI / 180;
17375
+ if (P) {
17376
+ let e = Math.sin(P), t = Math.cos(P), n = [
17376
17377
  t,
17377
17378
  -e,
17378
17379
  e,
17379
17380
  t
17380
17381
  ];
17381
- j._matMult(n), M._matMult(n), P._matMult(n), N._matMult(n);
17382
+ j._matMult(n), M._matMult(n), N._matMult(n), ee._matMult(n);
17382
17383
  }
17383
- let ne = e.stretch + e.fixed, re = i.stretch + i.fixed;
17384
+ let re = e.stretch + e.fixed, ie = i.stretch + i.fixed;
17384
17385
  return {
17385
17386
  tl: j,
17386
17387
  tr: M,
17387
- bl: P,
17388
- br: N,
17388
+ bl: N,
17389
+ br: ee,
17389
17390
  tex: {
17390
- x: o.paddedRect.x + 1 + ne,
17391
- y: o.paddedRect.y + 1 + re,
17392
- w: a.stretch + a.fixed - ne,
17393
- h: c.stretch + c.fixed - re
17391
+ x: o.paddedRect.x + 1 + re,
17392
+ y: o.paddedRect.y + 1 + ie,
17393
+ w: a.stretch + a.fixed - re,
17394
+ h: c.stretch + c.fixed - ie
17394
17395
  },
17395
17396
  writingMode: void 0,
17396
17397
  glyphOffset: [0, 0],
17397
17398
  sectionIndex: 0,
17398
- pixelOffsetTL: ee,
17399
- pixelOffsetBR: te,
17399
+ pixelOffsetTL: te,
17400
+ pixelOffsetBR: ne,
17400
17401
  minFontScaleX: C / s / O,
17401
17402
  minFontScaleY: T / s / k,
17402
17403
  isSDF: r
@@ -17655,9 +17656,9 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
17655
17656
  ];
17656
17657
  }(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;
17657
17658
  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, _)));
17658
- let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, N = (c, f) => {
17659
+ let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, ee = (c, f) => {
17659
17660
  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) {
17660
- let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, P = 0, ee = -1, te = -1, F = {}, ne = _s("");
17661
+ let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, ee = 0, N = 0, te = -1, ne = -1, P = {}, re = _s("");
17661
17662
  if (t.allowVerticalPlacement && i.vertical) {
17662
17663
  let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
17663
17664
  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));
@@ -17666,17 +17667,17 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
17666
17667
  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;
17667
17668
  O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
17668
17669
  let m = t.iconSizeData, h = null;
17669
- m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ce(`${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) && ce(`${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), ee = 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);
17670
+ m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ce(`${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) && ce(`${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);
17670
17671
  }
17671
- let re = Object.keys(i.horizontal);
17672
- for (let r of re) {
17672
+ let ie = Object.keys(i.horizontal);
17673
+ for (let r of ie) {
17673
17674
  let a = i.horizontal[r];
17674
- D || (ne = _s(a.text), D = new yh(l, n, u, d, f, a, p, m, h, c.layout.get("text-rotate").evaluate(x, {}, w)));
17675
+ D || (re = _s(a.text), D = new yh(l, n, u, d, f, a, p, m, h, c.layout.get("text-rotate").evaluate(x, {}, w)));
17675
17676
  let s = a.positionedLines.length === 1;
17676
- if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? re : [r], F, ee, S, w), s) break;
17677
+ if (ee += 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;
17677
17678
  }
17678
- i.vertical && (P += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], F, te, S, w));
17679
- let ie = D ? D.boxStartIndex : t.collisionBoxArray.length, ae = D ? D.boxEndIndex : t.collisionBoxArray.length, oe = k ? k.boxStartIndex : t.collisionBoxArray.length, se = k ? k.boxEndIndex : t.collisionBoxArray.length, le = O ? O.boxStartIndex : t.collisionBoxArray.length, ue = O ? O.boxEndIndex : t.collisionBoxArray.length, de = A ? A.boxStartIndex : t.collisionBoxArray.length, fe = A ? A.boxEndIndex : t.collisionBoxArray.length, pe = -1, me = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
17679
+ i.vertical && (N += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], P, ne, S, w));
17680
+ let ae = D ? D.boxStartIndex : t.collisionBoxArray.length, oe = D ? D.boxEndIndex : t.collisionBoxArray.length, se = k ? k.boxStartIndex : t.collisionBoxArray.length, F = k ? k.boxEndIndex : t.collisionBoxArray.length, le = O ? O.boxStartIndex : t.collisionBoxArray.length, ue = O ? O.boxEndIndex : t.collisionBoxArray.length, de = A ? A.boxStartIndex : t.collisionBoxArray.length, fe = A ? A.boxEndIndex : t.collisionBoxArray.length, pe = -1, me = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
17680
17681
  pe = me(D, pe), pe = me(k, pe), pe = me(O, pe), pe = me(A, pe);
17681
17682
  let he = +(pe > -1);
17682
17683
  he && (pe *= T / xd), t.glyphOffsetArray.length >= bf.MAX_GLYPHS && ce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), x.sortKey !== void 0 && t.addToSortKeyRanges(t.symbolInstances.length, x.sortKey);
@@ -17688,7 +17689,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
17688
17689
  }
17689
17690
  return [r, t.length];
17690
17691
  }(t.textAnchorOffsets, ge);
17691
- t.symbolInstances.emplaceBack(n.x, n.y, F.right >= 0 ? F.right : -1, F.center >= 0 ? F.center : -1, F.left >= 0 ? F.left : -1, F.vertical || -1, ee, te, ne, ie, ae, oe, se, le, ue, de, fe, u, N, P, j, M, he, 0, p, pe, _e, ve);
17692
+ 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, F, le, ue, de, fe, u, ee, N, j, M, he, 0, p, pe, _e, ve);
17692
17693
  }(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
17693
17694
  S,
17694
17695
  S,
@@ -17698,22 +17699,22 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
17698
17699
  };
17699
17700
  if (D === "line") for (let e of eh(n.geometry, 0, 0, O, O)) {
17700
17701
  let n = yl(e, M), a = fh(n, x, w, r.vertical || g, i, 24, y, t.overscaling, O);
17701
- for (let e of a) g && Mh(t, g.text, k, e) || N(n, e);
17702
+ for (let e of a) g && Mh(t, g.text, k, e) || ee(n, e);
17702
17703
  }
17703
17704
  else if (D === "line-center") {
17704
17705
  for (let e of n.geometry) if (e.length > 1) {
17705
17706
  let t = yl(e, M), n = dh(t, w, r.vertical || g, i, 24, y);
17706
- n && N(t, n);
17707
+ n && ee(t, n);
17707
17708
  }
17708
17709
  } else if (n.type === "Polygon") for (let e of or(n.geometry, 0)) {
17709
17710
  let t = xh(e, 16);
17710
- N(yl(e[0], M, !0), new oh(t.x, t.y, 0));
17711
+ ee(yl(e[0], M, !0), new oh(t.x, t.y, 0));
17711
17712
  }
17712
17713
  else if (n.type === "LineString") for (let e of n.geometry) {
17713
17714
  let t = yl(e, M);
17714
- N(t, new oh(t[0].x, t[0].y, 0));
17715
+ ee(t, new oh(t[0].x, t[0].y, 0));
17715
17716
  }
17716
- 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));
17717
+ 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));
17717
17718
  }
17718
17719
  function Ah(e, t, r, i, a, o, s, c, l, u, d, f, p, m, h) {
17719
17720
  let g = function(e, t, r, i, a, o, s, c) {
@@ -17901,7 +17902,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
17901
17902
  let n = {};
17902
17903
  for (let r of t) r in e && (n[r] = e[r]);
17903
17904
  return n;
17904
- }, e.W = Nf, e.X = F, e.Y = Lf, e.Z = If, e._ = t, e.a = Ce, e.a$ = function(e) {
17905
+ }, e.W = Nf, e.X = P, e.Y = Lf, e.Z = If, e._ = t, e.a = Ce, e.a$ = function(e) {
17905
17906
  var t = new f(3);
17906
17907
  return t[0] = e[0], t[1] = e[1], t[2] = e[2], t;
17907
17908
  }, e.a0 = l, e.a1 = u, e.a2 = me, 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) {
@@ -17945,7 +17946,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
17945
17946
  }
17946
17947
  }));
17947
17948
  }, e.ac = z, e.ad = function() {
17948
- return re++;
17949
+ return ie++;
17949
17950
  }, e.ae = Po, e.af = bf, e.ag = Um, e.ah = _i, e.ai = Hs, e.aj = Xf, e.ak = function(e) {
17950
17951
  let t = {};
17951
17952
  if (e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((e, n, r, i) => {
@@ -17956,7 +17957,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
17956
17957
  isNaN(e) ? delete t["max-age"] : t["max-age"] = e;
17957
17958
  }
17958
17959
  return t;
17959
- }, e.al = te, e.am = 85.051129, e.an = ve, e.ao = function(e) {
17960
+ }, e.al = ne, e.am = 85.051129, e.an = ve, e.ao = function(e) {
17960
17961
  return 2 ** e;
17961
17962
  }, e.ap = m, e.aq = Rf, e.ar = function(e) {
17962
17963
  return Math.log(e) / Math.LN2;
@@ -18041,7 +18042,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
18041
18042
  let n = 0, r = 0;
18042
18043
  if (e.kind === "constant") r = e.layoutSize;
18043
18044
  else if (e.kind !== "source") {
18044
- let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ? te(yn.interpolationFactor(i, t, a, o), 0, 1) : 0;
18045
+ let { interpolationType: i, minZoom: a, maxZoom: o } = e, s = i ? ne(yn.interpolationFactor(i, t, a, o), 0, 1) : 0;
18045
18046
  e.kind === "camera" ? r = xn.number(e.minSize, e.maxSize, s) : n = s;
18046
18047
  }
18047
18048
  return {
@@ -18178,7 +18179,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
18178
18179
  case "raster": return new no(e, t);
18179
18180
  case "symbol": return new Tf(e, t);
18180
18181
  }
18181
- }, e.bU = (e) => e.type === "raster", e.bV = oe, e.bW = function(e, t) {
18182
+ }, e.bU = (e) => e.type === "raster", e.bV = se, e.bW = function(e, t) {
18182
18183
  if (!e) return [{
18183
18184
  command: "setStyle",
18184
18185
  args: [t]
@@ -18306,7 +18307,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
18306
18307
  }, e.bX = function(e) {
18307
18308
  let t = [], n = e.id;
18308
18309
  return n === void 0 && t.push({ message: `layers.${n}: missing required property "id"` }), e.render === void 0 && t.push({ message: `layers.${n}: missing required method "render"` }), e.renderingMode && e.renderingMode !== "2d" && e.renderingMode !== "3d" && t.push({ message: `layers.${n}: property "renderingMode" must be either "2d" or "3d"` }), t;
18309
- }, e.bY = ie, e.bZ = ae, e.b_ = class extends Ss {
18310
+ }, e.bY = ae, e.bZ = oe, e.b_ = class extends Ss {
18310
18311
  constructor(e, t) {
18311
18312
  super(e, t), this.current = 0;
18312
18313
  }
@@ -18350,7 +18351,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
18350
18351
  let t = new Float64Array(9);
18351
18352
  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);
18352
18353
  (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;
18353
- let b = ye(-Math.asin(te(t[2], -1, 1))), x, S;
18354
+ let b = ye(-Math.asin(ne(t[2], -1, 1))), x, S;
18354
18355
  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]))), {
18355
18356
  roll: x,
18356
18357
  pitch: b + 90,
@@ -18358,8 +18359,8 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
18358
18359
  };
18359
18360
  }, e.bn = function(e, t) {
18360
18361
  return e.roll == t.roll && e.pitch == t.pitch && e.bearing == t.bearing;
18361
- }, 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) {
18362
- return M(r, i, te((e - t) / (n - t), 0, 1));
18362
+ }, e.bo = W, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = ee, e.bv = Jt, e.bw = function(e, t, n, r, i) {
18363
+ return M(r, i, ne((e - t) / (n - t), 0, 1));
18363
18364
  }, e.bx = function(e, t, n, r) {
18364
18365
  return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
18365
18366
  }, e.by = j, e.bz = function() {
@@ -18563,11 +18564,11 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
18563
18564
  }, e.ch = class extends uo {}, e.ci = class extends jo {}, e.cj = function(e, t) {
18564
18565
  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];
18565
18566
  }, e.ck = function(e, t) {
18566
- 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], P = t[15];
18567
- 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 - P) <= d * Math.max(1, Math.abs(v), Math.abs(P));
18567
+ 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], N = t[15];
18568
+ 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 - N) <= d * Math.max(1, Math.abs(v), Math.abs(N));
18568
18569
  }, e.cl = function(e, t) {
18569
18570
  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;
18570
- }, 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 = P, e.cw = function(e, t, n) {
18571
+ }, 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 = N, e.cw = function(e, t, n) {
18571
18572
  if (t <= 0) return e;
18572
18573
  let r = 1 / t;
18573
18574
  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;
@@ -18575,7 +18576,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
18575
18576
  let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
18576
18577
  var a, o;
18577
18578
  return ye(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
18578
- }, e.cy = ee, e.cz = function(e, t) {
18579
+ }, e.cy = te, e.cz = function(e, t) {
18579
18580
  var n;
18580
18581
  if (!xe[t]) return !1;
18581
18582
  let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
@@ -18673,7 +18674,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
18673
18674
  getClusterLeaves(e, t, n) {
18674
18675
  return this.tileIndex.getLeaves(e, t, n);
18675
18676
  }
18676
- }, e.d1 = Fa, e.e = ne, e.f = Me, e.g = De, e.h = (e) => t(void 0, void 0, void 0, (function* () {
18677
+ }, e.d1 = Fa, e.e = re, e.f = Me, e.g = De, e.h = (e) => t(void 0, void 0, void 0, (function* () {
18677
18678
  if (e.byteLength === 0) return createImageBitmap(new ImageData(1, 1));
18678
18679
  let t = new Blob([new Uint8Array(e)], { type: "image/png" });
18679
18680
  try {
@@ -18688,7 +18689,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
18688
18689
  }, r.onerror = () => n(/* @__PURE__ */ Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
18689
18690
  let i = new Blob([new Uint8Array(e)], { type: "image/png" });
18690
18691
  r.src = e.byteLength ? URL.createObjectURL(i) : pe;
18691
- })), e.k = (e, t) => je(ne(e, { type: "json" }), t), e.l = Ie, e.m = je, e.n = Fe, e.o = (e, t) => je(ne(e, { type: "arrayBuffer" }), t), e.p = Yd, e.q = function(e) {
18692
+ })), e.k = (e, t) => je(re(e, { type: "json" }), t), e.l = Ie, e.m = je, e.n = Fe, e.o = (e, t) => je(re(e, { type: "arrayBuffer" }), t), e.p = Yd, e.q = function(e) {
18692
18693
  return new Pd(e).readFields(Kd, []);
18693
18694
  }, e.r = function(e) {
18694
18695
  return /[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e));
@@ -20236,12 +20237,12 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20236
20237
  return Object.keys(this.active).length;
20237
20238
  }
20238
20239
  }
20239
- let M = Math.floor(s.hardwareConcurrency / 2), N, P;
20240
- function ee() {
20241
- return N || (N = new j()), N;
20240
+ let M = Math.floor(s.hardwareConcurrency / 2), ee, N;
20241
+ function te() {
20242
+ return ee || (ee = new j()), ee;
20242
20243
  }
20243
20244
  j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
20244
- class te {
20245
+ class ne {
20245
20246
  constructor(e, n) {
20246
20247
  this.workerPool = e, this.actors = [], this.currentActor = 0, this.id = n;
20247
20248
  let r = this.workerPool.acquire(n);
@@ -20273,10 +20274,10 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20273
20274
  for (let t of this.actors) t.unregisterMessageHandler(e);
20274
20275
  }
20275
20276
  }
20276
- function F() {
20277
- return P || (P = new te(ee(), t.M), P.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), P;
20277
+ function P() {
20278
+ return N || (N = new ne(te(), t.M), N.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), N;
20278
20279
  }
20279
- function ne(e, n) {
20280
+ function re(e, n) {
20280
20281
  let r = t.O();
20281
20282
  return t.Q(r, r, [
20282
20283
  1,
@@ -20288,7 +20289,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20288
20289
  1
20289
20290
  ]), e.calculatePosMatrix ? t.U(r, r, e.calculatePosMatrix(n.toUnwrapped())) : r;
20290
20291
  }
20291
- function re(e, t, n, r, i, a, o) {
20292
+ function ie(e, t, n, r, i, a, o) {
20292
20293
  var s;
20293
20294
  let c = function(e, t, n) {
20294
20295
  if (e) for (let r of e) {
@@ -20301,14 +20302,14 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20301
20302
  }
20302
20303
  return !1;
20303
20304
  }((s = i == null ? void 0 : i.layers) == null ? null : s, t, e.id), l = a.maxPitchScaleFactor(), u = e.tilesIn(r, l, c);
20304
- u.sort(ie);
20305
+ u.sort(ae);
20305
20306
  let d = [];
20306
20307
  for (let r of u) d.push({
20307
20308
  wrappedTileID: r.tileID.wrapped().key,
20308
- queryResults: r.tile.queryRenderedFeatures(t, n, e.getState(), r.queryGeometry, r.cameraQueryGeometry, r.scale, i, a, l, ne(a, r.tileID), o ? (e, t) => o(r.tileID, e, t) : void 0)
20309
+ queryResults: r.tile.queryRenderedFeatures(t, n, e.getState(), r.queryGeometry, r.cameraQueryGeometry, r.scale, i, a, l, re(a, r.tileID), o ? (e, t) => o(r.tileID, e, t) : void 0)
20309
20310
  });
20310
20311
  return function(e, t) {
20311
- for (let n in e) for (let r of e[n]) ae(r, t);
20312
+ for (let n in e) for (let r of e[n]) oe(r, t);
20312
20313
  return e;
20313
20314
  }(function(e) {
20314
20315
  let t = {}, n = {};
@@ -20326,15 +20327,15 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20326
20327
  return t;
20327
20328
  }(d), e);
20328
20329
  }
20329
- function ie(e, t) {
20330
+ function ae(e, t) {
20330
20331
  let n = e.tileID, r = t.tileID;
20331
20332
  return n.overscaledZ - r.overscaledZ || n.canonical.y - r.canonical.y || n.wrap - r.wrap || n.canonical.x - r.canonical.x;
20332
20333
  }
20333
- function ae(e, t) {
20334
+ function oe(e, t) {
20334
20335
  let n = e.feature, r = t.getFeatureState(n.layer["source-layer"], n.id);
20335
20336
  n.source = n.layer.source, n.layer["source-layer"] && (n.sourceLayer = n.layer["source-layer"]), n.state = r;
20336
20337
  }
20337
- function oe(e, n, r, i) {
20338
+ function se(e, n, r, i) {
20338
20339
  return t._(this, void 0, void 0, (function* () {
20339
20340
  let a = e;
20340
20341
  if (e.url ? a = (yield t.k(yield n.transformRequest(e.url, "Source"), r)).data : yield s.frameAsync(r, i), !a) return null;
@@ -20351,7 +20352,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20351
20352
  return "vector_layers" in a && a.vector_layers && (o.vectorLayerIds = a.vector_layers.map(((e) => e.id))), o;
20352
20353
  }));
20353
20354
  }
20354
- class se {
20355
+ class F {
20355
20356
  constructor(e, t) {
20356
20357
  e && (t ? this.setSouthWest(e).setNorthEast(t) : Array.isArray(e) && (e.length === 4 ? this.setSouthWest([e[0], e[1]]).setNorthEast([e[2], e[3]]) : this.setSouthWest(e[0]).setNorthEast(e[1])));
20357
20358
  }
@@ -20365,7 +20366,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20365
20366
  let n = this._sw, r = this._ne, i, a;
20366
20367
  if (e instanceof t.W) i = e, a = e;
20367
20368
  else {
20368
- if (!(e instanceof se)) return Array.isArray(e) ? e.length === 4 || e.every(Array.isArray) ? this.extend(se.convert(e)) : this.extend(t.W.convert(e)) : e && ("lng" in e || "lon" in e) && "lat" in e ? this.extend(t.W.convert(e)) : this;
20369
+ if (!(e instanceof F)) return Array.isArray(e) ? e.length === 4 || e.every(Array.isArray) ? this.extend(F.convert(e)) : this.extend(t.W.convert(e)) : e && ("lng" in e || "lon" in e) && "lat" in e ? this.extend(t.W.convert(e)) : this;
20369
20370
  if (i = e._sw, a = e._ne, !i || !a) return this;
20370
20371
  }
20371
20372
  return n || r ? (n.lng = Math.min(i.lng, n.lng), n.lat = Math.min(i.lat, n.lat), r.lng = Math.max(a.lng, r.lng), r.lat = Math.max(a.lat, r.lat)) : (this._sw = new t.W(i.lng, i.lat), this._ne = new t.W(a.lng, a.lat)), this;
@@ -20411,27 +20412,27 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20411
20412
  return this._sw.lng > this._ne.lng && (i = this._sw.lng >= n && n >= this._ne.lng), this._sw.lat <= r && r <= this._ne.lat && i;
20412
20413
  }
20413
20414
  intersects(e) {
20414
- if (!((e = se.convert(e)).getNorth() >= this.getSouth() && e.getSouth() <= this.getNorth())) return !1;
20415
+ if (!((e = F.convert(e)).getNorth() >= this.getSouth() && e.getSouth() <= this.getNorth())) return !1;
20415
20416
  let n = Math.abs(this.getEast() - this.getWest()), r = Math.abs(e.getEast() - e.getWest());
20416
20417
  if (n >= 360 || r >= 360) return !0;
20417
20418
  let i = t.X(this.getWest(), -180, 180), a = t.X(this.getEast(), -180, 180), o = t.X(e.getWest(), -180, 180), s = t.X(e.getEast(), -180, 180), c = i > a, l = o > s;
20418
20419
  return !(!c || !l) || (c ? s >= i || o <= a : l ? a >= o || i <= s : o <= a && s >= i);
20419
20420
  }
20420
20421
  static convert(e) {
20421
- return e instanceof se ? e : e && new se(e);
20422
+ return e instanceof F ? e : e && new F(e);
20422
20423
  }
20423
20424
  static fromLngLat(e, n = 0) {
20424
20425
  let r = 360 * n / 40075017, i = r / Math.cos(Math.PI / 180 * e.lat);
20425
- return new se(new t.W(e.lng - i, e.lat - r), new t.W(e.lng + i, e.lat + r));
20426
+ return new F(new t.W(e.lng - i, e.lat - r), new t.W(e.lng + i, e.lat + r));
20426
20427
  }
20427
20428
  adjustAntiMeridian() {
20428
20429
  let e = new t.W(this._sw.lng, this._sw.lat), n = new t.W(this._ne.lng, this._ne.lat);
20429
- return new se(e, e.lng > n.lng ? new t.W(n.lng + 360, n.lat) : n);
20430
+ return new F(e, e.lng > n.lng ? new t.W(n.lng + 360, n.lat) : n);
20430
20431
  }
20431
20432
  }
20432
20433
  class ce {
20433
20434
  constructor(e, t, n) {
20434
- this.bounds = se.convert(this.validateBounds(e)), this.minzoom = t || 0, this.maxzoom = n || 24;
20435
+ this.bounds = F.convert(this.validateBounds(e)), this.minzoom = t || 0, this.maxzoom = n || 24;
20435
20436
  }
20436
20437
  validateBounds(e) {
20437
20438
  return Array.isArray(e) && e.length === 4 ? [
@@ -20466,7 +20467,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20466
20467
  return t._(this, arguments, void 0, (function* (e = !1) {
20467
20468
  this._loaded = !1, this.fire(new t.n("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
20468
20469
  try {
20469
- let n = yield oe(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
20470
+ let n = yield se(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
20470
20471
  this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new ce(n.bounds, this.minzoom, this.maxzoom)), this.fire(new t.n("data", {
20471
20472
  dataType: "source",
20472
20473
  sourceDataType: "metadata"
@@ -20609,7 +20610,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20609
20610
  return t._(this, arguments, void 0, (function* (e = !1) {
20610
20611
  this._loaded = !1, this.fire(new t.n("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController();
20611
20612
  try {
20612
- let n = yield oe(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
20613
+ let n = yield se(this._options, this.map._requestManager, this._tileJSONRequest, this.map._ownerWindow);
20613
20614
  this._tileJSONRequest = null, this._loaded = !0, n && (t.e(this, n), n.bounds && (this.tileBounds = new ce(n.bounds, this.minzoom, this.maxzoom)), this.fire(new t.n("data", {
20614
20615
  dataType: "source",
20615
20616
  sourceDataType: "metadata"
@@ -20781,7 +20782,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
20781
20782
  return e.type === "GeometryCollection" ? e.geometries.flatMap(((e) => ge(e))) : he(e.coordinates);
20782
20783
  }
20783
20784
  function _e(e) {
20784
- let t = new se(), n;
20785
+ let t = new F(), n;
20785
20786
  switch (e.type) {
20786
20787
  case "FeatureCollection":
20787
20788
  n = e.features.flatMap(((e) => ge(e.geometry)));
@@ -21026,7 +21027,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
21026
21027
  if (e.state === "unloaded") return !1;
21027
21028
  let { buffer: r, extent: i } = this.workerOptions.geojsonVtOptions, a = function({ x: e, y: n, z: r }, i = 0) {
21028
21029
  let a = t.a4((e - i) / 2 ** r), o = t.a5((n + 1 + i) / 2 ** r), s = t.a4((e + 1 + i) / 2 ** r), c = t.a5((n - i) / 2 ** r);
21029
- return new se([a, o], [s, c]);
21030
+ return new F([a, o], [s, c]);
21030
21031
  }(e.tileID.canonical, r / i);
21031
21032
  for (let e of n) if (a.intersects(e)) return !0;
21032
21033
  return !1;
@@ -21327,7 +21328,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
21327
21328
  }, we = "RTLPluginLoaded";
21328
21329
  class Te extends t.E {
21329
21330
  constructor() {
21330
- super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = F();
21331
+ super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = P();
21331
21332
  }
21332
21333
  _syncState(e) {
21333
21334
  return this.status = e, this.dispatcher.broadcast("SRPS", {
@@ -23011,15 +23012,15 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
23011
23012
  var w, A;
23012
23013
  if (n[e.crossTileID]) return;
23013
23014
  if (d) return void (this.placements[e.crossTileID] = new St(!1, !1, !1));
23014
- let j = !1, M = !1, N = !0, P = null, ee = {
23015
+ let j = !1, M = !1, ee = !0, N = null, te = {
23015
23016
  box: null,
23016
23017
  placeable: !1,
23017
23018
  offscreen: null,
23018
23019
  occluded: !1
23019
- }, te = { placeable: !1 }, F = null, ne = null, re = null, ie = 0, ae = 0, oe = 0;
23020
- f.textFeatureIndex ? ie = f.textFeatureIndex : e.useRuntimeCollisionCircles && (ie = e.featureIndex), f.verticalTextFeatureIndex && (ae = f.verticalTextFeatureIndex);
23021
- let se = f.textBox;
23022
- if (se) {
23020
+ }, ne = { placeable: !1 }, P = null, re = null, ie = null, ae = 0, oe = 0, se = 0;
23021
+ f.textFeatureIndex ? ae = f.textFeatureIndex : e.useRuntimeCollisionCircles && (ae = e.featureIndex), f.verticalTextFeatureIndex && (oe = f.verticalTextFeatureIndex);
23022
+ let F = f.textBox;
23023
+ if (F) {
23023
23024
  let n = (n) => {
23024
23025
  let r = t.ax.horizontal;
23025
23026
  if (i.allowVerticalPlacement && !n && this.prevPlacement) {
@@ -23029,21 +23030,21 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
23029
23030
  return r;
23030
23031
  }, a = (n, r) => {
23031
23032
  if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
23032
- for (let e of i.writingModes) if (e === t.ax.vertical ? (ee = r(), te = ee) : ee = n(), ee != null && ee.placeable) break;
23033
- } else ee = n();
23033
+ for (let e of i.writingModes) if (e === t.ax.vertical ? (te = r(), ne = te) : te = n(), te != null && te.placeable) break;
23034
+ } else te = n();
23034
23035
  }, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
23035
23036
  if (d === l) {
23036
23037
  let r = (t, n) => {
23037
23038
  let r = this.collisionIndex.placeCollisionBox(t, _, u, D, c, S, x, o, m.predicate, O, void 0, k);
23038
23039
  return r != null && r.placeable && (this.markUsedOrientation(i, n, e), this.placedOrientations[e.crossTileID] = n), r;
23039
23040
  };
23040
- a((() => r(se, t.ax.horizontal)), (() => {
23041
+ a((() => r(F, t.ax.horizontal)), (() => {
23041
23042
  let n = f.verticalTextBox;
23042
23043
  return i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && n ? r(n, t.ax.vertical) : {
23043
23044
  box: null,
23044
23045
  offscreen: null
23045
23046
  };
23046
- })), n(ee == null ? void 0 : ee.placeable);
23047
+ })), n(te == null ? void 0 : te.placeable);
23047
23048
  } else {
23048
23049
  let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
23049
23050
  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";
@@ -23053,46 +23054,46 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
23053
23054
  let r = i.textAnchorOffsets.get(n);
23054
23055
  if (p && r.textAnchor !== p) continue;
23055
23056
  let l = this.attemptAnchorPlacement(r, t, f, h, g, x, S, u, D, c, m, T, e, i, a, o, s, v, O);
23056
- if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, P = l.shift, b;
23057
+ if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, N = l.shift, b;
23057
23058
  }
23058
23059
  p ? p = null : T = _;
23059
23060
  }
23060
23061
  return r && !b && (b = {
23061
- box: this.collisionIndex.placeCollisionBox(se, "always", u, D, c, S, x, o, m.predicate, O, void 0, k).box,
23062
+ box: this.collisionIndex.placeCollisionBox(F, "always", u, D, c, S, x, o, m.predicate, O, void 0, k).box,
23062
23063
  offscreen: !1,
23063
23064
  placeable: !1,
23064
23065
  occluded: !1
23065
23066
  }), b;
23066
23067
  };
23067
- a((() => h(se, f.iconBox, t.ax.horizontal)), (() => {
23068
+ a((() => h(F, f.iconBox, t.ax.horizontal)), (() => {
23068
23069
  let n = f.verticalTextBox;
23069
- return i.allowVerticalPlacement && !(ee != null && ee.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
23070
+ return i.allowVerticalPlacement && !(te != null && te.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
23070
23071
  box: null,
23071
23072
  occluded: !0,
23072
23073
  offscreen: null
23073
23074
  };
23074
- })), ee && (j = ee.placeable, N = ee.offscreen);
23075
- let g = n(ee == null ? void 0 : ee.placeable);
23075
+ })), te && (j = te.placeable, ee = te.offscreen);
23076
+ let g = n(te == null ? void 0 : te.placeable);
23076
23077
  if (!j && this.prevPlacement) {
23077
23078
  let t = this.prevPlacement.variableOffsets[e.crossTileID];
23078
23079
  t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
23079
23080
  }
23080
23081
  }
23081
23082
  }
23082
- if (F = ee, j = F == null ? void 0 : F.placeable, N = F == null ? void 0 : F.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
23083
+ if (P = te, j = P == null ? void 0 : P.placeable, ee = P == null ? void 0 : P.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
23083
23084
  let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
23084
- ne = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ne.circles.length && ne.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ne.circles.length > 0 && !ne.collisionDetected, N && (N = ne.offscreen);
23085
+ 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, ee && (ee = re.offscreen);
23085
23086
  }
23086
- if (f.iconFeatureIndex && (oe = f.iconFeatureIndex), f.iconBox) {
23087
- let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && P ? P : void 0, k);
23088
- te && te.placeable && f.verticalIconBox ? (re = e(f.verticalIconBox), M = re.placeable) : (re = e(f.iconBox), M = re.placeable), N && (N = re.offscreen);
23087
+ if (f.iconFeatureIndex && (se = f.iconFeatureIndex), f.iconBox) {
23088
+ let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && N ? N : void 0, k);
23089
+ ne && ne.placeable && f.verticalIconBox ? (ie = e(f.verticalIconBox), M = ie.placeable) : (ie = e(f.iconBox), M = ie.placeable), ee && (ee = ie.offscreen);
23089
23090
  }
23090
23091
  let ce = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, le = g || e.numIconVertices === 0;
23091
23092
  ce || le ? le ? ce || M && (M = j) : j = M && j : M = j = M && j;
23092
- let ue = M && re.placeable;
23093
- if (j && F.placeable && this.collisionIndex.insertCollisionBox(F.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, te && te.placeable && ae ? ae : ie, m.ID), ue && this.collisionIndex.insertCollisionBox(re.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, oe, m.ID), ne && j && this.collisionIndex.insertCollisionCircles(ne.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, ie, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, F, re, ne), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
23093
+ let ue = M && ie.placeable;
23094
+ if (j && P.placeable && this.collisionIndex.insertCollisionBox(P.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, ne && ne.placeable && oe ? oe : ae, m.ID), ue && 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");
23094
23095
  if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
23095
- this.placements[e.crossTileID] = new St((j || T) && !(F != null && F.occluded), (M || E) && !(re != null && re.occluded), N || i.justReloaded), n[e.crossTileID] = !0;
23096
+ this.placements[e.crossTileID] = new St((j || T) && !(P != null && P.occluded), (M || E) && !(ie != null && ie.occluded), ee || i.justReloaded), n[e.crossTileID] = !0;
23096
23097
  };
23097
23098
  if (w) {
23098
23099
  if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
@@ -23792,7 +23793,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
23792
23793
  }
23793
23794
  getMaxBounds() {
23794
23795
  var e, t;
23795
- return ((e = this._latRange) == null ? void 0 : e.length) !== 2 || ((t = this._lngRange) == null ? void 0 : t.length) !== 2 ? null : new se([this._lngRange[0], this._latRange[0]], [this._lngRange[1], this._latRange[1]]);
23796
+ return ((e = this._latRange) == null ? void 0 : e.length) !== 2 || ((t = this._lngRange) == null ? void 0 : t.length) !== 2 ? null : new F([this._lngRange[0], this._latRange[0]], [this._lngRange[1], this._latRange[1]]);
23796
23797
  }
23797
23798
  setMaxBounds(e) {
23798
23799
  e ? (this._lngRange = [e.getWest(), e.getEast()], this._latRange = [e.getSouth(), e.getNorth()], this.constrainInternal()) : (this._lngRange = null, this._latRange = [-t.am, t.am]);
@@ -24452,7 +24453,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
24452
24453
  }
24453
24454
  getBounds() {
24454
24455
  let e = Math.max(0, this._helper._height / 2 - Fe(this));
24455
- return new se().extend(this.screenPointToLocation(new t.P(0, e))).extend(this.screenPointToLocation(new t.P(this._helper._width, e))).extend(this.screenPointToLocation(new t.P(this._helper._width, this._helper._height))).extend(this.screenPointToLocation(new t.P(0, this._helper._height)));
24456
+ return new F().extend(this.screenPointToLocation(new t.P(0, e))).extend(this.screenPointToLocation(new t.P(this._helper._width, e))).extend(this.screenPointToLocation(new t.P(this._helper._width, this._helper._height))).extend(this.screenPointToLocation(new t.P(0, this._helper._height)));
24456
24457
  }
24457
24458
  isPointOnMapSurface(e, t) {
24458
24459
  return t ? t.pointCoordinate(e) != null : e.y > this.height / 2 - Fe(this);
@@ -25825,7 +25826,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
25825
25826
  0,
25826
25827
  -1,
25827
25828
  0
25828
- ]) && (u[1] = -90, u[0] = -180, u[2] = 180), new se(u);
25829
+ ]) && (u[1] = -90, u[0] = -180, u[2] = 180), new F(u);
25829
25830
  }
25830
25831
  calculateCenterFromCameraLngLatAlt(e, t, n, r) {
25831
25832
  return this._helper.calculateCenterFromCameraLngLatAlt(e, t, n, r);
@@ -26500,7 +26501,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
26500
26501
  let t = this.tileManagers[e].getSource().type;
26501
26502
  t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
26502
26503
  }
26503
- }, this.map = e, this.dispatcher = new te(ee(), 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);
26504
+ }, 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);
26504
26505
  let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
26505
26506
  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) => {
26506
26507
  if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
@@ -27073,11 +27074,11 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
27073
27074
  layers: s,
27074
27075
  globalState: this._globalState
27075
27076
  });
27076
- for (let t in this.tileManagers) n.layers && !i[t] || a.push(re(this.tileManagers[t], this._layers, o, e, c, r, this.map.terrain ? (e, t, n) => this.map.terrain.getElevation(e, t, n) : void 0));
27077
+ for (let t in this.tileManagers) n.layers && !i[t] || a.push(ie(this.tileManagers[t], this._layers, o, e, c, r, this.map.terrain ? (e, t, n) => this.map.terrain.getElevation(e, t, n) : void 0));
27077
27078
  return this.placement && a.push(function(e, t, n, r, i, a, o) {
27078
27079
  let s = {}, c = a.queryRenderedSymbols(r), l = [];
27079
27080
  for (let e of Object.keys(c).map(Number)) l.push(o[e]);
27080
- l.sort(ie);
27081
+ l.sort(ae);
27081
27082
  for (let n of l) {
27082
27083
  let r = n.featureIndex.lookupSymbolFeatures(c[n.bucketInstanceId], t, n.bucketIndex, n.sourceLayerIndex, {
27083
27084
  filterSpec: i.filter,
@@ -27098,7 +27099,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
27098
27099
  }
27099
27100
  }
27100
27101
  return function(e, t, n) {
27101
- for (let r in e) for (let i of e[r]) ae(i, n[t[r].source]);
27102
+ for (let r in e) for (let i of e[r]) oe(i, n[t[r].source]);
27102
27103
  return e;
27103
27104
  }(s, e, n);
27104
27105
  }(this._layers, o, this.tileManagers, e, c, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(a);
@@ -28663,34 +28664,34 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
28663
28664
  if (!l) continue;
28664
28665
  let d = a ? l.text : l.icon;
28665
28666
  if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
28666
- 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, P, ee, te = [0, 0], F = null;
28667
- if (a) N = i.glyphAtlasTexture, P = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (te = i.imageAtlasTexture.size, F = i.imageAtlasTexture, ee = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
28667
+ 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, N, te, ne = [0, 0], P = null;
28668
+ if (a) ee = i.glyphAtlasTexture, N = _.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);
28668
28669
  else {
28669
28670
  let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
28670
- N = i.imageAtlasTexture, P = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
28671
+ ee = i.imageAtlasTexture, N = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
28671
28672
  }
28672
- let ne = t.aK(i, 1, e.transform.zoom), re = $e(y, e.transform, ne), ie = et(b, y, e.transform, ne), ae = t.aL(v, i, o, s), oe = v.getProjectionData({
28673
+ let re = t.aK(i, 1, e.transform.zoom), ie = $e(y, e.transform, re), ae = et(b, y, e.transform, re), oe = t.aL(v, i, o, s), se = v.getProjectionData({
28673
28674
  overscaledTileID: c,
28674
28675
  applyGlobeMatrix: !p,
28675
28676
  applyTerrainMatrix: !0
28676
- }), se = E && l.hasTextData(), ce = r.layout.get("icon-text-fit") !== "none" && se && l.hasIconData();
28677
+ }), F = E && l.hasTextData(), ce = r.layout.get("icon-text-fit") !== "none" && F && l.hasIconData();
28677
28678
  if (x) {
28678
28679
  let n = t.O();
28679
- H(n, re);
28680
+ H(n, ie);
28680
28681
  let i = e.style.map.terrain ? (t, n) => e.style.map.terrain.getElevation(c, t, n) : null;
28681
- it(l, e, a, re, n, b, u, r.layout.get("text-rotation-alignment") === "map", c.toUnwrapped(), v.width, v.height, ae, i);
28682
+ it(l, e, a, ie, n, b, u, r.layout.get("text-rotation-alignment") === "map", c.toUnwrapped(), v.width, v.height, oe, i);
28682
28683
  }
28683
- let le = a && E || ce, ue = x || le ? pi : b ? re : e.transform.clipSpaceToPixelsMatrix, de = h && r.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0, fe;
28684
- fe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, le, e, ue, ie, ae, M, te, O) : vr(g.kind, A, S, b, x, le, e, ue, ie, ae, a, M, de, O) : _r(g.kind, A, S, b, x, le, e, ue, ie, ae, a, M, O);
28684
+ let le = a && E || ce, ue = x || le ? pi : b ? ie : e.transform.clipSpaceToPixelsMatrix, de = h && r.paint.get(a ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0, fe;
28685
+ fe = h ? l.iconsInText ? yr(g.kind, A, S, b, x, le, e, ue, ae, oe, M, ne, O) : vr(g.kind, A, S, b, x, le, e, ue, ae, oe, a, M, de, O) : _r(g.kind, A, S, b, x, le, e, ue, ae, oe, a, M, O);
28685
28686
  let pe = {
28686
28687
  program: k,
28687
28688
  buffers: d,
28688
28689
  uniformValues: fe,
28689
- projectionData: oe,
28690
- atlasTexture: N,
28691
- atlasTextureIcon: F,
28692
- atlasInterpolation: P,
28693
- atlasInterpolationIcon: ee,
28690
+ projectionData: se,
28691
+ atlasTexture: ee,
28692
+ atlasTextureIcon: P,
28693
+ atlasInterpolation: N,
28694
+ atlasInterpolationIcon: te,
28694
28695
  isSDF: h,
28695
28696
  hasHalo: de
28696
28697
  };
@@ -31317,7 +31318,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
31317
31318
  return this.jumpTo({ roll: e }, t), this;
31318
31319
  }
31319
31320
  cameraForBounds(e, t) {
31320
- e = se.convert(e).adjustAntiMeridian();
31321
+ e = F.convert(e).adjustAntiMeridian();
31321
31322
  let n = (t == null ? void 0 : t.bearing) || 0;
31322
31323
  return this._cameraForBoxAndBearing(e.getNorthWest(), e.getSouthEast(), n, t);
31323
31324
  }
@@ -31343,7 +31344,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
31343
31344
  }
31344
31345
  let o = t.e(a, i.padding);
31345
31346
  i.padding = o;
31346
- let s = this.transform, c = new se(e, n), l = this.cameraHelper.cameraForBoxAndBearing(i, o, c, r, s);
31347
+ let s = this.transform, c = new F(e, n), l = this.cameraHelper.cameraForBoxAndBearing(i, o, c, r, s);
31347
31348
  return l && this._zoomSnap && (l.zoom = t.cw(l.zoom, this._zoomSnap, -1)), l;
31348
31349
  }
31349
31350
  fitBounds(e, t, n) {
@@ -32290,7 +32291,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
32290
32291
  return this.transform.getMaxBounds();
32291
32292
  }
32292
32293
  setMaxBounds(e) {
32293
- return this.transform.setMaxBounds(se.convert(e)), this._update();
32294
+ return this.transform.setMaxBounds(F.convert(e)), this._update();
32294
32295
  }
32295
32296
  setMinZoom(e) {
32296
32297
  if ((e = e == null ? -2 : e) >= -2 && e <= this.transform.maxZoom) {
@@ -33374,7 +33375,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
33374
33375
  this.options.showUserLocation && this._watchState !== "OFF" && this._updateMarker(e), this.options.trackUserLocation && this._watchState !== "ACTIVE_LOCK" || this._updateCamera(e), this.options.showUserLocation && this._dotElement.classList.remove("maplibregl-user-location-dot-stale"), this.fire(new t.n("geolocate", e)), this._finish();
33375
33376
  }
33376
33377
  }, this._updateCamera = (e) => {
33377
- let n = new t.W(e.coords.longitude, e.coords.latitude), r = e.coords.accuracy, i = this._map.getBearing(), a = t.e({ bearing: i }, this.options.fitBoundsOptions), o = se.fromLngLat(n, r);
33378
+ let n = new t.W(e.coords.longitude, e.coords.latitude), r = e.coords.accuracy, i = this._map.getBearing(), a = t.e({ bearing: i }, this.options.fitBoundsOptions), o = F.fromLngLat(n, r);
33378
33379
  this._map.fitBounds(o, a, { geolocateSource: !0 });
33379
33380
  }, this._updateMarker = (e) => {
33380
33381
  if (e) {
@@ -33526,7 +33527,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
33526
33527
  onRemove() {
33527
33528
  this._container.remove(), this._map.off("styledata", this._updateGlobeIcon), this._map.off("projectiontransition", this._updateGlobeIcon), this._globeButton.removeEventListener("click", this._toggleProjection), this._map = void 0;
33528
33529
  }
33529
- }, e.Hash = Qi, e.ImageSource = ye, e.KeyboardHandler = Pa, e.LngLatBounds = se, e.LogoControl = Xa, e.Map = so, e.MapLibreMap = so, e.MapMouseEvent = ca, e.MapTouchEvent = la, e.MapWheelEvent = ua, e.Marker = ho, e.NavigationControl = class {
33530
+ }, e.Hash = Qi, e.ImageSource = ye, e.KeyboardHandler = Pa, e.LngLatBounds = F, e.LogoControl = Xa, e.Map = so, e.MapLibreMap = so, e.MapMouseEvent = ca, e.MapTouchEvent = la, e.MapWheelEvent = ua, e.Marker = ho, e.NavigationControl = class {
33530
33531
  constructor(e) {
33531
33532
  this._updateZoomButtons = () => {
33532
33533
  let e = this._map.getZoom(), t = e === this._map.getMaxZoom(), n = e === this._map.getMinZoom();
@@ -33689,9 +33690,9 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
33689
33690
  Se[e] = t;
33690
33691
  })(e, n);
33691
33692
  })), e.clearPrewarmedResources = function() {
33692
- let e = N;
33693
- 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()"));
33694
- }, e.createTileMesh = fn, e.getGlobalDispatcher = F, e.getMaxParallelImageRequests = function() {
33693
+ let e = ee;
33694
+ 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()"));
33695
+ }, e.createTileMesh = fn, e.getGlobalDispatcher = P, e.getMaxParallelImageRequests = function() {
33695
33696
  return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
33696
33697
  }, e.getRTLTextPluginStatus = function() {
33697
33698
  return De().getRTLTextPluginStatus();
@@ -33702,11 +33703,11 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
33702
33703
  }, e.getWorkerUrl = function() {
33703
33704
  return t.c.WORKER_URL;
33704
33705
  }, e.importScriptInWorkers = function(e) {
33705
- return F().broadcast("IS", e);
33706
+ return P().broadcast("IS", e);
33706
33707
  }, e.isTimeFrozen = function() {
33707
33708
  return c.isFrozen();
33708
33709
  }, e.now = l, e.prewarm = function() {
33709
- ee().acquire(A);
33710
+ te().acquire(A);
33710
33711
  }, e.restoreNow = function() {
33711
33712
  c.restoreNow();
33712
33713
  }, e.setMaxParallelImageRequests = function(e) {
@@ -33722,7 +33723,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
33722
33723
  };
33723
33724
  })), e;
33724
33725
  }));
33725
- })))(), F = Uint8Array, ne = Uint16Array, re = Int32Array, ie = new F([
33726
+ })))(), P = Uint8Array, re = Uint16Array, ie = Int32Array, ae = new P([
33726
33727
  0,
33727
33728
  0,
33728
33729
  0,
@@ -33755,7 +33756,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
33755
33756
  0,
33756
33757
  0,
33757
33758
  0
33758
- ]), ae = new F([
33759
+ ]), oe = new P([
33759
33760
  0,
33760
33761
  0,
33761
33762
  0,
@@ -33788,7 +33789,7 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
33788
33789
  13,
33789
33790
  0,
33790
33791
  0
33791
- ]), oe = new F([
33792
+ ]), se = new P([
33792
33793
  16,
33793
33794
  17,
33794
33795
  18,
@@ -33808,37 +33809,37 @@ var P = /* @__PURE__ */ e(n(), 1), ee = /* @__PURE__ */ e(m(), 1), te = (/* @__P
33808
33809
  14,
33809
33810
  1,
33810
33811
  15
33811
- ]), se = function(e, t) {
33812
- for (var n = new ne(31), r = 0; r < 31; ++r) n[r] = t += 1 << e[r - 1];
33813
- for (var i = new re(n[30]), r = 1; r < 30; ++r) for (var a = n[r]; a < n[r + 1]; ++a) i[a] = a - n[r] << 5 | r;
33812
+ ]), F = function(e, t) {
33813
+ for (var n = new re(31), r = 0; r < 31; ++r) n[r] = t += 1 << e[r - 1];
33814
+ for (var i = new ie(n[30]), r = 1; r < 30; ++r) for (var a = n[r]; a < n[r + 1]; ++a) i[a] = a - n[r] << 5 | r;
33814
33815
  return {
33815
33816
  b: n,
33816
33817
  r: i
33817
33818
  };
33818
- }, ce = se(ie, 2), le = ce.b, ue = ce.r;
33819
+ }, ce = F(ae, 2), le = ce.b, ue = ce.r;
33819
33820
  le[28] = 258, ue[258] = 28;
33820
- var de = se(ae, 0), fe = de.b;
33821
+ var de = F(oe, 0), fe = de.b;
33821
33822
  de.r;
33822
- for (var pe = new ne(32768), me = 0; me < 32768; ++me) {
33823
+ for (var pe = new re(32768), me = 0; me < 32768; ++me) {
33823
33824
  var he = (me & 43690) >> 1 | (me & 21845) << 1;
33824
33825
  he = (he & 52428) >> 2 | (he & 13107) << 2, he = (he & 61680) >> 4 | (he & 3855) << 4, pe[me] = ((he & 65280) >> 8 | (he & 255) << 8) >> 1;
33825
33826
  }
33826
33827
  for (var ge = (function(e, t, n) {
33827
- for (var r = e.length, i = 0, a = new ne(t); i < r; ++i) e[i] && ++a[e[i] - 1];
33828
- var o = new ne(t);
33828
+ for (var r = e.length, i = 0, a = new re(t); i < r; ++i) e[i] && ++a[e[i] - 1];
33829
+ var o = new re(t);
33829
33830
  for (i = 1; i < t; ++i) o[i] = o[i - 1] + a[i - 1] << 1;
33830
33831
  var s;
33831
33832
  if (n) {
33832
- s = new ne(1 << t);
33833
+ s = new re(1 << t);
33833
33834
  var c = 15 - t;
33834
33835
  for (i = 0; i < r; ++i) if (e[i]) for (var l = i << 4 | e[i], u = t - e[i], d = o[e[i] - 1]++ << u, f = d | (1 << u) - 1; d <= f; ++d) s[pe[d] >> c] = l;
33835
- } else for (s = new ne(r), i = 0; i < r; ++i) e[i] && (s[i] = pe[o[e[i] - 1]++] >> 15 - e[i]);
33836
+ } else for (s = new re(r), i = 0; i < r; ++i) e[i] && (s[i] = pe[o[e[i] - 1]++] >> 15 - e[i]);
33836
33837
  return s;
33837
- }), _e = new F(288), me = 0; me < 144; ++me) _e[me] = 8;
33838
+ }), _e = new P(288), me = 0; me < 144; ++me) _e[me] = 8;
33838
33839
  for (var me = 144; me < 256; ++me) _e[me] = 9;
33839
33840
  for (var me = 256; me < 280; ++me) _e[me] = 7;
33840
33841
  for (var me = 280; me < 288; ++me) _e[me] = 8;
33841
- for (var ve = new F(32), me = 0; me < 32; ++me) ve[me] = 5;
33842
+ for (var ve = new P(32), me = 0; me < 32; ++me) ve[me] = 5;
33842
33843
  var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = function(e) {
33843
33844
  for (var t = e[0], n = 1; n < e.length; ++n) e[n] > t && (t = e[n]);
33844
33845
  return t;
@@ -33851,7 +33852,7 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
33851
33852
  }, we = function(e) {
33852
33853
  return (e + 7) / 8 | 0;
33853
33854
  }, Te = function(e, t, n) {
33854
- return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new F(e.subarray(t, n));
33855
+ return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new P(e.subarray(t, n));
33855
33856
  }, Ee = [
33856
33857
  "unexpected EOF",
33857
33858
  "invalid block type",
@@ -33873,13 +33874,13 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
33873
33874
  return r;
33874
33875
  }, Oe = function(e, t, n, r) {
33875
33876
  var i = e.length, a = r ? r.length : 0;
33876
- if (!i || t.f && !t.l) return n || new F(0);
33877
+ if (!i || t.f && !t.l) return n || new P(0);
33877
33878
  var o = !n, s = o || t.i != 2, c = t.i;
33878
- o && (n = new F(i * 3));
33879
+ o && (n = new P(i * 3));
33879
33880
  var l = function(e) {
33880
33881
  var t = n.length;
33881
33882
  if (e > t) {
33882
- var r = new F(Math.max(t * 2, e));
33883
+ var r = new P(Math.max(t * 2, e));
33883
33884
  r.set(n), n = r;
33884
33885
  }
33885
33886
  }, u = t.f || 0, d = t.p || 0, f = t.b || 0, p = t.l, m = t.d, h = t.m, g = t.n, _ = i * 8;
@@ -33899,7 +33900,7 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
33899
33900
  else if (v == 2) {
33900
33901
  var S = Se(e, d, 31) + 257, C = Se(e, d + 10, 15) + 4, w = S + Se(e, d + 5, 31) + 1;
33901
33902
  d += 14;
33902
- for (var T = new F(w), E = new F(19), D = 0; D < C; ++D) E[oe[D]] = Se(e, d + D * 3, 7);
33903
+ for (var T = new P(w), E = new P(19), D = 0; D < C; ++D) E[se[D]] = Se(e, d + D * 3, 7);
33903
33904
  d += C * 3;
33904
33905
  for (var O = xe(E), k = (1 << O) - 1, A = ge(E, O, 1), D = 0; D < w;) {
33905
33906
  var j = A[Se(e, d, k)];
@@ -33907,12 +33908,12 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
33907
33908
  var y = j >> 4;
33908
33909
  if (y < 16) T[D++] = y;
33909
33910
  else {
33910
- var M = 0, N = 0;
33911
- for (y == 16 ? (N = 3 + Se(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (N = 3 + Se(e, d, 7), d += 3) : y == 18 && (N = 11 + Se(e, d, 127), d += 7); N--;) T[D++] = M;
33911
+ var M = 0, ee = 0;
33912
+ for (y == 16 ? (ee = 3 + Se(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (ee = 3 + Se(e, d, 7), d += 3) : y == 18 && (ee = 11 + Se(e, d, 127), d += 7); ee--;) T[D++] = M;
33912
33913
  }
33913
33914
  }
33914
- var P = T.subarray(0, S), ee = T.subarray(S);
33915
- h = xe(P), g = xe(ee), p = ge(P, h, 1), m = ge(ee, g, 1);
33915
+ var N = T.subarray(0, S), te = T.subarray(S);
33916
+ h = xe(N), g = xe(te), p = ge(N, h, 1), m = ge(te, g, 1);
33916
33917
  } else De(1);
33917
33918
  if (d > _) {
33918
33919
  c && De(0);
@@ -33920,28 +33921,28 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
33920
33921
  }
33921
33922
  }
33922
33923
  s && l(f + 131072);
33923
- for (var te = (1 << h) - 1, ne = (1 << g) - 1, re = d;; re = d) {
33924
- var M = p[Ce(e, d) & te], se = M >> 4;
33924
+ for (var ne = (1 << h) - 1, re = (1 << g) - 1, ie = d;; ie = d) {
33925
+ var M = p[Ce(e, d) & ne], F = M >> 4;
33925
33926
  if (d += M & 15, d > _) {
33926
33927
  c && De(0);
33927
33928
  break;
33928
33929
  }
33929
- if (M || De(2), se < 256) n[f++] = se;
33930
- else if (se == 256) {
33931
- re = d, p = null;
33930
+ if (M || De(2), F < 256) n[f++] = F;
33931
+ else if (F == 256) {
33932
+ ie = d, p = null;
33932
33933
  break;
33933
33934
  } else {
33934
- var ce = se - 254;
33935
- if (se > 264) {
33936
- var D = se - 257, ue = ie[D];
33935
+ var ce = F - 254;
33936
+ if (F > 264) {
33937
+ var D = F - 257, ue = ae[D];
33937
33938
  ce = Se(e, d, (1 << ue) - 1) + le[D], d += ue;
33938
33939
  }
33939
- var de = m[Ce(e, d) & ne], pe = de >> 4;
33940
+ var de = m[Ce(e, d) & re], pe = de >> 4;
33940
33941
  de || De(3), d += de & 15;
33941
- var ee = fe[pe];
33942
+ var te = fe[pe];
33942
33943
  if (pe > 3) {
33943
- var ue = ae[pe];
33944
- ee += Ce(e, d) & (1 << ue) - 1, d += ue;
33944
+ var ue = oe[pe];
33945
+ te += Ce(e, d) & (1 << ue) - 1, d += ue;
33945
33946
  }
33946
33947
  if (d > _) {
33947
33948
  c && De(0);
@@ -33949,17 +33950,17 @@ var ye = /*#__PURE__*/ ge(_e, 9, 1), be = /*#__PURE__*/ ge(ve, 5, 1), xe = funct
33949
33950
  }
33950
33951
  s && l(f + 131072);
33951
33952
  var me = f + ce;
33952
- if (f < ee) {
33953
- var he = a - ee, _e = Math.min(ee, me);
33953
+ if (f < te) {
33954
+ var he = a - te, _e = Math.min(te, me);
33954
33955
  for (he + f < 0 && De(3); f < _e; ++f) n[f] = r[he + f];
33955
33956
  }
33956
- for (; f < me; ++f) n[f] = n[f - ee];
33957
+ for (; f < me; ++f) n[f] = n[f - te];
33957
33958
  }
33958
33959
  }
33959
- t.l = p, t.p = re, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
33960
+ t.l = p, t.p = ie, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
33960
33961
  } while (!u);
33961
33962
  return f != n.length && o ? Te(n, 0, f) : n.subarray(0, f);
33962
- }, ke = /*#__PURE__*/ new F(0), Ae = function(e) {
33963
+ }, ke = /*#__PURE__*/ new P(0), Ae = function(e) {
33963
33964
  (e[0] != 31 || e[1] != 139 || e[2] != 8) && De(6, "invalid gzip data");
33964
33965
  var t = e[3], n = 10;
33965
33966
  t & 4 && (n += (e[10] | e[11] << 8) + 2);
@@ -33976,7 +33977,7 @@ function Ne(e, t) {
33976
33977
  }
33977
33978
  function Pe(e, t) {
33978
33979
  var n = Ae(e);
33979
- return n + 8 > e.length && De(6, "invalid gzip data"), Oe(e.subarray(n, -8), { i: 2 }, t && t.out || new F(je(e)), t && t.dictionary);
33980
+ return n + 8 > e.length && De(6, "invalid gzip data"), Oe(e.subarray(n, -8), { i: 2 }, t && t.out || new P(je(e)), t && t.dictionary);
33980
33981
  }
33981
33982
  function Fe(e, t) {
33982
33983
  return Oe(e.subarray(Me(e, t && t.dictionary), -4), { i: 2 }, t && t.out, t && t.dictionary);
@@ -34568,23 +34569,23 @@ function St() {
34568
34569
  if (!mt) {
34569
34570
  mt = new He();
34570
34571
  try {
34571
- (0, te.addProtocol)("pmtiles", mt.tile);
34572
+ (0, ne.addProtocol)("pmtiles", mt.tile);
34572
34573
  } catch (e) {
34573
34574
  console.warn("Maplibre PMTiles protocol registration failed.", e);
34574
34575
  }
34575
34576
  }
34576
34577
  }
34577
34578
  function Ct({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOptions: i, onRendererReady: a, onMapDimLayerReady: o, onMapLoadError: s }) {
34578
- 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)({
34579
+ let c = (0, N.useRef)(null), u = (0, N.useRef)(null), d = (0, N.useRef)(null), f = (0, N.useRef)(a), p = (0, N.useRef)(o), m = (0, N.useRef)(s), h = (0, N.useRef)({
34579
34580
  sceneDef: e,
34580
34581
  geoConfig: t,
34581
34582
  staticTransform: n,
34582
34583
  tileSource: r,
34583
34584
  mapOptions: i
34584
34585
  });
34585
- return (0, P.useEffect)(() => {
34586
+ return (0, N.useEffect)(() => {
34586
34587
  f.current = a, p.current = o, m.current = s;
34587
- }), (0, P.useEffect)(() => {
34588
+ }), (0, N.useEffect)(() => {
34588
34589
  var e, t;
34589
34590
  if (!c.current) return;
34590
34591
  let { sceneDef: n, geoConfig: r, staticTransform: i, tileSource: a, mapOptions: o } = h.current, s = !1, g = { ...n };
@@ -34603,7 +34604,7 @@ function Ct({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
34603
34604
  } : {
34604
34605
  center: r.center,
34605
34606
  zoom: r.zoom
34606
- }, y = new te.Map({
34607
+ }, y = new ne.Map({
34607
34608
  container: c.current,
34608
34609
  style: a.style,
34609
34610
  ...v,
@@ -34678,26 +34679,26 @@ function Ct({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapO
34678
34679
  var wt = .02, Tt = .15;
34679
34680
  function Et(e) {
34680
34681
  let t = [
34681
- [u.x1, u.y1],
34682
- [u.x2, u.y1],
34683
- [u.x2, u.y2],
34684
- [u.x1, u.y2]
34685
- ].map(([t, n]) => p(t, n, e));
34682
+ [f.x1, f.y1],
34683
+ [f.x2, f.y1],
34684
+ [f.x2, f.y2],
34685
+ [f.x1, f.y2]
34686
+ ].map(([t, n]) => h(t, n, e));
34686
34687
  if (!t.every(([e, t]) => Number.isFinite(e) && Number.isFinite(t))) return;
34687
34688
  let n = t.map(([e]) => e), r = t.map(([, e]) => e), i = Math.min(...n), a = Math.max(...n), o = Math.min(...r), s = Math.max(...r), c = Math.max((a - i) * 3, wt), l = Math.max((s - o) * 3, wt);
34688
34689
  return [[i - c, o - l], [a + c, s + l]];
34689
34690
  }
34690
34691
  function Dt(e, t) {
34691
34692
  let n = [
34692
- p(e.x1, e.y1, t),
34693
- p(e.x2, e.y1, t),
34694
- p(e.x2, e.y2, t),
34695
- p(e.x1, e.y2, t)
34693
+ h(e.x1, e.y1, t),
34694
+ h(e.x2, e.y1, t),
34695
+ h(e.x2, e.y2, t),
34696
+ h(e.x1, e.y2, t)
34696
34697
  ], r = n.map(([e]) => e), i = n.map(([, e]) => e);
34697
34698
  return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
34698
34699
  }
34699
34700
  function Ot(e = 0) {
34700
- let t = _.canvasVisibleRectPx, n = _.screenSize;
34701
+ let t = v.canvasVisibleRectPx, n = v.screenSize;
34701
34702
  return !t || !n ? {
34702
34703
  top: e,
34703
34704
  bottom: e,
@@ -34733,7 +34734,7 @@ function At(e, t, n, r = {}) {
34733
34734
  }
34734
34735
  //#endregion
34735
34736
  //#region src/components/Maplibre/useCameraReactions.ts
34736
- var jt = _;
34737
+ var jt = v;
34737
34738
  function Mt(e, t) {
34738
34739
  C(() => jt.moveToBooths, (n) => {
34739
34740
  let r = e.current;
@@ -34741,7 +34742,7 @@ function Mt(e, t) {
34741
34742
  let i = n.filter((e) => e.rect);
34742
34743
  if (i.length === 0) return;
34743
34744
  let a = i.map((e) => e.rect);
34744
- At(r, d.fromMultiple(a), t), jt.moveToBooths = null;
34745
+ At(r, p.fromMultiple(a), t), jt.moveToBooths = null;
34745
34746
  }), C(() => jt.moveToRect, (n) => {
34746
34747
  let r = e.current;
34747
34748
  !n || !r || !t || (At(r, n, t), jt.moveToRect = null);
@@ -34752,25 +34753,25 @@ function Mt(e, t) {
34752
34753
  animate: !0,
34753
34754
  duration: 500
34754
34755
  }), jt.zoomBy = null);
34755
- }), C(() => _.moveToLocation, (n) => {
34756
- let r = e.current, i = h.routeStore.currentPosition;
34756
+ }), C(() => v.moveToLocation, (n) => {
34757
+ let r = e.current, i = g.routeStore.currentPosition;
34757
34758
  if (!n || !r || !i) return;
34758
34759
  let { lng: a, lat: o } = i, s = typeof a == "number" && Number.isFinite(a) && typeof o == "number" && Number.isFinite(o), c;
34759
34760
  if (s) c = [a, o];
34760
34761
  else {
34761
34762
  if (!t) return;
34762
- c = p(i.x, i.y, t.gpsConfig);
34763
+ c = h(i.x, i.y, t.gpsConfig);
34763
34764
  }
34764
34765
  r.flyTo({
34765
34766
  center: c,
34766
34767
  animate: !0,
34767
34768
  duration: 1e3
34768
34769
  }), r.once("moveend", () => {
34769
- _.moveToLocation = !1;
34770
+ v.moveToLocation = !1;
34770
34771
  });
34771
- }), C(() => _.centerMap, (n) => {
34772
+ }), C(() => v.centerMap, (n) => {
34772
34773
  let r = e.current;
34773
- !n || !r || !t || (_.list.type === "search" && !_.list.text || At(r, h.layerStore.rectangle || u, t, { padding: 0 }), _.centerMap = !1);
34774
+ !n || !r || !t || (v.list.type === "search" && !v.list.text || At(r, g.layerStore.rectangle || f, t, { padding: 0 }), v.centerMap = !1);
34774
34775
  });
34775
34776
  }
34776
34777
  //#endregion
@@ -34802,18 +34803,18 @@ function W(e, t, n = !1) {
34802
34803
  }
34803
34804
  function Rt() {
34804
34805
  var e, t;
34805
- let n = (e = (t = h.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
34806
+ let n = (e = (t = g.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
34806
34807
  return n != null && n.style ? { style: n.style } : n != null && n.styleUrl ? { style: n.styleUrl } : Nt;
34807
34808
  }
34808
34809
  //#endregion
34809
34810
  //#region src/components/Maplibre/useDimming.ts
34810
34811
  function zt(e, t) {
34811
- let n = (0, P.useRef)(t);
34812
- (0, P.useEffect)(() => {
34812
+ let n = (0, N.useRef)(t);
34813
+ (0, N.useEffect)(() => {
34813
34814
  n.current = t;
34814
34815
  }, [t]);
34815
- let r = (0, P.useRef)(null), i = (0, P.useRef)(null);
34816
- return (0, P.useEffect)(() => {
34816
+ let r = (0, N.useRef)(null), i = (0, N.useRef)(null);
34817
+ return (0, N.useEffect)(() => {
34817
34818
  let t = w((t) => {
34818
34819
  It(e.current, t * A);
34819
34820
  }), a = w((e) => {
@@ -34822,15 +34823,15 @@ function zt(e, t) {
34822
34823
  return r.current = t, i.current = a, () => {
34823
34824
  t.stop(), a.stop(), r.current = null, i.current = null;
34824
34825
  };
34825
- }, [e]), C(() => _.dimmed, (e) => {
34826
+ }, [e]), C(() => v.dimmed, (e) => {
34826
34827
  var t, n;
34827
34828
  (t = r.current) == null || t.setTarget(e), (n = i.current) == null || n.setTarget(e);
34828
34829
  }), {
34829
34830
  mapDimAnimatorRef: r,
34830
34831
  venueDimAnimatorRef: i,
34831
- handleMapDimLayerReady: (0, P.useCallback)((e) => {
34832
+ handleMapDimLayerReady: (0, N.useCallback)((e) => {
34832
34833
  var t, n;
34833
- It(e, ((t = (n = r.current) == null ? void 0 : n.getValue()) == null ? +!!_.dimmed : t) * A);
34834
+ It(e, ((t = (n = r.current) == null ? void 0 : n.getValue()) == null ? +!!v.dimmed : t) * A);
34834
34835
  }, [])
34835
34836
  };
34836
34837
  }
@@ -34855,8 +34856,8 @@ function Vt(e) {
34855
34856
  //#endregion
34856
34857
  //#region src/components/Maplibre/useLayerVisibilitySync.ts
34857
34858
  function G(e, t, n) {
34858
- let r = (0, P.useRef)(null), i = (0, P.useRef)(null);
34859
- C(() => h.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
34859
+ let r = (0, N.useRef)(null), i = (0, N.useRef)(null);
34860
+ C(() => g.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
34860
34861
  var a, o;
34861
34862
  let s = e.scene;
34862
34863
  if (!s) return;
@@ -34865,7 +34866,7 @@ function G(e, t, n) {
34865
34866
  defsByName: Bt(s.rootLayer)
34866
34867
  });
34867
34868
  let c = r.current.defsByName, l = [];
34868
- for (let e of h.layerStore.layers) {
34869
+ for (let e of g.layerStore.layers) {
34869
34870
  let t = c.get(e.name);
34870
34871
  if (t != null && t.length) for (let n of t) {
34871
34872
  let t = !e.visible;
@@ -34873,42 +34874,42 @@ function G(e, t, n) {
34873
34874
  }
34874
34875
  }
34875
34876
  l.length && e.update(...l);
34876
- let u = h.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
34877
+ let u = g.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
34877
34878
  !u || i.current === u.name || (i.current = u.name, At(t.current, (o = u.viewbox) == null ? u.rect : o, n));
34878
34879
  });
34879
34880
  }
34880
34881
  //#endregion
34881
34882
  //#region src/components/Maplibre/useRendererEvents.ts
34882
- var Ht = _;
34883
+ var Ht = v;
34883
34884
  function Ut(e, t) {
34884
- (0, P.useEffect)(() => {
34885
+ (0, N.useEffect)(() => {
34885
34886
  if (!e) return;
34886
34887
  let n = ({ data: e }) => {
34887
- if (_.setKioskModeEnabled) return;
34888
- let { point: t, defs: n } = s(e), r = O(t.x, t.y), i = Vt(n[0]);
34888
+ if (v.setKioskModeEnabled) return;
34889
+ let { point: t, defs: n } = d(e), r = O(t.x, t.y), i = Vt(n[0]);
34889
34890
  Ht.hoveredBooth = r || i;
34890
34891
  }, r = () => {
34891
- _.setKioskModeEnabled || (Ht.hoveredBooth = null);
34892
+ v.setKioskModeEnabled || (Ht.hoveredBooth = null);
34892
34893
  }, i = ({ data: e }) => {
34893
34894
  var n, r;
34894
- if (!(_ != null && _.rootElement)) return;
34895
- (n = (r = window).__resett) == null || n.call(r), _.overlayPosition === "bottom" && _.overlaySize === "full" && h.showMap();
34896
- let { point: i, defs: a } = s(e), { x: o, y: c } = i;
34897
- if (_.onGetCoordsClick) {
34898
- let e = h.layerStore.layers.find((e) => e.visible && (e.mode === x.TurnedOn || e.mode === x.TurnedOff));
34899
- _.onGetCoordsClick({
34895
+ if (!(v != null && v.rootElement)) return;
34896
+ (n = (r = window).__resett) == null || n.call(r), v.overlayPosition === "bottom" && v.overlaySize === "full" && g.showMap();
34897
+ let { point: i, defs: a } = d(e), { x: o, y: s } = i;
34898
+ if (v.onGetCoordsClick) {
34899
+ let e = g.layerStore.layers.find((e) => e.visible && (e.mode === S.TurnedOn || e.mode === S.TurnedOff));
34900
+ v.onGetCoordsClick({
34900
34901
  x: o,
34901
- y: c,
34902
+ y: s,
34902
34903
  z: (e == null ? void 0 : e.name) || null
34903
34904
  });
34904
34905
  }
34905
- if (_.setKioskModeEnabled) return;
34906
- if (_.onMarkerClick) {
34907
- let e = N(o, c, t.scale);
34908
- _.onMarkerClick(e);
34906
+ if (v.setKioskModeEnabled) return;
34907
+ if (v.onMarkerClick) {
34908
+ let e = ee(o, s, t.scale);
34909
+ v.onMarkerClick(e);
34909
34910
  }
34910
- let l = O(i.x, i.y), u = Vt(a[0]);
34911
- h.clickBooth(l || u);
34911
+ let c = O(i.x, i.y), l = Vt(a[0]);
34912
+ g.clickBooth(c || l);
34912
34913
  }, a = () => {
34913
34914
  var e, t;
34914
34915
  return (e = (t = window).__resett) == null ? void 0 : e.call(t);
@@ -34921,7 +34922,7 @@ function Ut(e, t) {
34921
34922
  //#endregion
34922
34923
  //#region src/components/Maplibre/useWayfindingAndMarkers.ts
34923
34924
  function Wt(e, t) {
34924
- (0, P.useEffect)(() => {
34925
+ (0, N.useEffect)(() => {
34925
34926
  if (!e) return;
34926
34927
  let n = M(t), r = D(t);
34927
34928
  return () => {
@@ -34941,7 +34942,7 @@ function Jt(e, t) {
34941
34942
  ], o = [], s = [], c = [];
34942
34943
  for (let e of a) {
34943
34944
  Xt(e), s.push([e.x, e.y]);
34944
- let t = te.MercatorCoordinate.fromLngLat([e.lng, e.lat], 0), n = t.meterInMercatorCoordinateUnits();
34945
+ let t = ne.MercatorCoordinate.fromLngLat([e.lng, e.lat], 0), n = t.meterInMercatorCoordinateUnits();
34945
34946
  Zt(t.x), Zt(t.y), Zt(n), o.push(n), c.push([t.x, t.y]);
34946
34947
  }
34947
34948
  let l = [], u = [];
@@ -35043,9 +35044,9 @@ function rn(e, t) {
35043
35044
  var an = "routes-api.expofp.com";
35044
35045
  function on() {
35045
35046
  i(() => {
35046
- h.layerStore.layers.forEach((e) => {
35047
+ g.layerStore.layers.forEach((e) => {
35047
35048
  e.configured = !1, e.children = [], e.loaded = !1;
35048
- }), h.layerStore.layersLoaded = !1;
35049
+ }), g.layerStore.layersLoaded = !1;
35049
35050
  });
35050
35051
  }
35051
35052
  function sn(e, t) {
@@ -35053,84 +35054,84 @@ function sn(e, t) {
35053
35054
  for (let r of e.rollRegistry.invoke(t)) Array.isArray(r) ? n.push(...r) : n.push(r);
35054
35055
  n.length && e.update(...n);
35055
35056
  }
35056
- var K = f(function({ viewMode: e }) {
35057
- let [t, n] = (0, P.useState)(null), [r, i] = (0, P.useState)(null), s = h.rendererService, l = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), m = (0, P.useMemo)(() => kt(), []), y = (0, P.useMemo)(() => m ? {
35058
- center: m.center,
35059
- bearing: m.bearing,
35060
- zoom: m.zoom,
35061
- bounds: Dt(u, m.gpsConfig),
35057
+ var K = a(function({ viewMode: e }) {
35058
+ let [t, n] = (0, N.useState)(null), [r, i] = (0, N.useState)(null), a = g.rendererService, l = (0, N.useRef)(null), d = (0, N.useRef)(null), p = (0, N.useRef)(null), m = (0, N.useRef)(null), h = (0, N.useMemo)(() => kt(), []), y = (0, N.useMemo)(() => h ? {
35059
+ center: h.center,
35060
+ bearing: h.bearing,
35061
+ zoom: h.zoom,
35062
+ bounds: Dt(f, h.gpsConfig),
35062
35063
  fitPadding: Ot(0),
35063
35064
  zoomAdjustment: Tt
35064
- } : null, [m]), b = (0, P.useMemo)(() => {
35065
+ } : null, [h]), b = (0, N.useMemo)(() => {
35065
35066
  var e;
35066
- return m ? Jt(m.gpsConfig, (e = g()) == null ? void 0 : e.getAttribute("units")) : null;
35067
- }, [m]), x = (0, P.useMemo)(() => ({
35067
+ return h ? Jt(h.gpsConfig, (e = _()) == null ? void 0 : e.getAttribute("units")) : null;
35068
+ }, [h]), S = (0, N.useMemo)(() => ({
35068
35069
  ...e === "map2d" ? Ft : Pt,
35069
- maxBounds: m ? Et(m.gpsConfig) : void 0
35070
- }), [m, e]), C = (0, P.useRef)(x), w = (0, P.useMemo)(() => Rt(), []), { mapDimAnimatorRef: E, venueDimAnimatorRef: D, handleMapDimLayerReady: O } = zt(d, s);
35071
- (0, P.useEffect)(() => {
35072
- if (!m) return;
35070
+ maxBounds: h ? Et(h.gpsConfig) : void 0
35071
+ }), [h, e]), C = (0, N.useRef)(S), w = (0, N.useMemo)(() => Rt(), []), { mapDimAnimatorRef: E, venueDimAnimatorRef: D, handleMapDimLayerReady: O } = zt(d, a);
35072
+ (0, N.useEffect)(() => {
35073
+ if (!h) return;
35073
35074
  let e = !1;
35074
35075
  on();
35075
- let t = T(s).then((t) => {
35076
+ let t = T(a).then((t) => {
35076
35077
  if (e) return;
35077
- let r = (0, ee.default)(v.backgroundColor === "none" ? "#ebebeb" : v.backgroundColor).string();
35078
- n(o(t, a.fromCoreRect(u), r));
35078
+ let r = (0, te.default)(x.backgroundColor === "none" ? "#ebebeb" : x.backgroundColor).string();
35079
+ n(c(t, s.fromCoreRect(f), r));
35079
35080
  }).catch((t) => {
35080
35081
  e || console.warn("Maplibre scene configuration failed.", t);
35081
- }), r = E.current, c = D.current;
35082
+ }), r = E.current, o = D.current;
35082
35083
  return () => {
35083
35084
  var n;
35084
35085
  e = !0, on();
35085
- let a = l.current;
35086
- t.finally(() => s.disposeIfCurrent(a)), (n = f.current) == null || n.call(f), f.current = null, l.current = null, d.current = null, p.current = null, i(null), r == null || r.stop(), c == null || c.stop(), _.sceneDefReady = !1;
35086
+ let s = l.current;
35087
+ t.finally(() => a.disposeIfCurrent(s)), (n = p.current) == null || n.call(p), p.current = null, l.current = null, d.current = null, m.current = null, i(null), r == null || r.stop(), o == null || o.stop(), v.sceneDefReady = !1;
35087
35088
  };
35088
35089
  }, [
35089
- m,
35090
+ h,
35090
35091
  E,
35091
- s,
35092
+ a,
35092
35093
  D
35093
35094
  ]);
35094
- let A = (0, P.useCallback)((e, t, n, r) => {
35095
- var a, o, u;
35096
- l.current = e, d.current = t, p.current = r, i(e), s.attach(e, n, r), W(t, C.current), (a = E.current) == null || a.setTarget(_.dimmed, { immediate: !0 }), (o = D.current) == null || o.setTarget(_.dimmed, { immediate: !0 }), (u = f.current) == null || u.call(f);
35097
- let m = () => sn(s, S(t.getBearing()));
35098
- t.on("rotate", m), t.on("rotateend", m), f.current = () => {
35099
- t.off("rotate", m), t.off("rotateend", m);
35100
- }, c(s);
35101
- let g = s.ptScaleRegistry.invoke(s.scale || 1);
35102
- g.length && s.update(...g), sn(s, S(t.getBearing())), h.layerStore.layersLoaded = !0, h.fp.onFpConfigured && h.fp.onFpConfigured(), _.sceneDefReady = !0, r();
35095
+ let A = (0, N.useCallback)((e, t, n, r) => {
35096
+ var s, c, f;
35097
+ l.current = e, d.current = t, m.current = r, i(e), a.attach(e, n, r), W(t, C.current), (s = E.current) == null || s.setTarget(v.dimmed, { immediate: !0 }), (c = D.current) == null || c.setTarget(v.dimmed, { immediate: !0 }), (f = p.current) == null || f.call(p);
35098
+ let h = () => sn(a, o(t.getBearing()));
35099
+ t.on("rotate", h), t.on("rotateend", h), p.current = () => {
35100
+ t.off("rotate", h), t.off("rotateend", h);
35101
+ }, u(a);
35102
+ let _ = a.ptScaleRegistry.invoke(a.scale || 1);
35103
+ _.length && a.update(..._), sn(a, o(t.getBearing())), g.layerStore.layersLoaded = !0, g.fp.onFpConfigured && g.fp.onFpConfigured(), v.sceneDefReady = !0, r();
35103
35104
  }, [
35104
- s,
35105
+ a,
35105
35106
  E,
35106
35107
  D
35107
35108
  ]);
35108
- (0, P.useEffect)(() => {
35109
- C.current = x, W(d.current, x, !0);
35110
- }, [x]), Ut(r, s), Wt(r, s), G(s, d, m), Mt(d, m), j({
35111
- enabled: h.layerStore.layersLoaded && _.buildRoute,
35112
- rendererService: s
35109
+ (0, N.useEffect)(() => {
35110
+ C.current = S, W(d.current, S, !0);
35111
+ }, [S]), Ut(r, a), Wt(r, a), G(a, d, h), Mt(d, h), j({
35112
+ enabled: g.layerStore.layersLoaded && v.buildRoute,
35113
+ rendererService: a
35113
35114
  }), k({
35114
- permission: h.layerStore.layersLoaded,
35115
- rendererService: s,
35116
- dataJsonUrl: `https://${an}/v1/routes?expo=${v.EXPO}`,
35117
- websocketUrl: `wss://${an}/locations?expo=${v.EXPO}`
35115
+ permission: g.layerStore.layersLoaded,
35116
+ rendererService: a,
35117
+ dataJsonUrl: `https://${an}/v1/routes?expo=${x.EXPO}`,
35118
+ websocketUrl: `wss://${an}/locations?expo=${x.EXPO}`
35118
35119
  });
35119
- let M = (0, P.useCallback)((e) => {
35120
- console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), h.maplibreStore.deactivateMaplibre();
35120
+ let M = (0, N.useCallback)((e) => {
35121
+ console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), g.maplibreStore.deactivateMaplibre();
35121
35122
  }, []);
35122
- if (!m || !y || !b || !t) return null;
35123
- let N = `${y.center.join(",")}:${y.bearing}:${y.zoom}`;
35123
+ if (!h || !y || !b || !t) return null;
35124
+ let ee = `${y.center.join(",")}:${y.bearing}:${y.zoom}`;
35124
35125
  return /* @__PURE__ */ (0, ut.jsx)(Ct, {
35125
35126
  sceneDef: t,
35126
35127
  geoConfig: y,
35127
35128
  staticTransform: b,
35128
35129
  tileSource: w,
35129
- mapOptions: x,
35130
+ mapOptions: S,
35130
35131
  onRendererReady: A,
35131
35132
  onMapDimLayerReady: O,
35132
35133
  onMapLoadError: M
35133
- }, N);
35134
+ }, ee);
35134
35135
  });
35135
35136
  //#endregion
35136
35137
  export { K as default };