@expofp/floorplan 3.45.11 → 3.45.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/browser/{Button-wvbcVeFB.js → Button-CRDP5tCg.js} +5 -5
  2. package/dist/browser/{CookieConsent-Culs9sI1.js → CookieConsent-BsPfYrwB.js} +7 -7
  3. package/dist/browser/{Debug-BM8bkKs4.js → Debug-BecJzEG-.js} +7 -7
  4. package/dist/browser/{DebugTools-fmsxTLzp.js → DebugTools-DS4bgIEf.js} +6 -6
  5. package/dist/browser/{Demo-C3o1FEbw.js → Demo-D7FBxB3R.js} +9 -9
  6. package/dist/browser/{Free-D1AZmJe7.js → Free-DnjUGTjD.js} +10 -10
  7. package/dist/browser/{GalleryContainer-Bbj-p43R.js → GalleryContainer-Bj8NAG3S.js} +11 -11
  8. package/dist/browser/{GpsLoader-BNqyoowH.js → GpsLoader-C05PU1j1.js} +13 -13
  9. package/dist/browser/{KioskStore-BiM1CrZM.js → KioskStore-BVCEYCzk.js} +10 -10
  10. package/dist/browser/{LayerStore-CYhUcBJN.js → LayerStore-k2gvCLhr.js} +825 -819
  11. package/dist/browser/{MaplibreAdapter-Cr1b2MUz.js → MaplibreAdapter-DFo29ESa.js} +144 -144
  12. package/dist/browser/{ModalContainer-bhF8uauy.js → ModalContainer-BcElOeJ-.js} +10 -10
  13. package/dist/browser/{PermissionNotice-Cp33Dup_.js → PermissionNotice-Bu9vqb_4.js} +6 -6
  14. package/dist/browser/{RouteStore-BnA20xcN.js → RouteStore-LJeUl8tg.js} +127 -127
  15. package/dist/browser/{SetKioskMode-DlEk89q8.js → SetKioskMode-CaQ4UMCy.js} +14 -14
  16. package/dist/browser/{ShowKiosk-C_2hw-6E.js → ShowKiosk-BcAeJ0Fi.js} +10 -10
  17. package/dist/browser/{UIState-B9mFI9_m.js → UIState-X5Q9PwMX.js} +89 -89
  18. package/dist/browser/{ViewerMenuPanel-DlXU3ixM.js → ViewerMenuPanel-BnUwfWS9.js} +11 -11
  19. package/dist/browser/{add-debug-secret-listener-xal_XewS.js → add-debug-secret-listener-DneFnknI.js} +1 -1
  20. package/dist/browser/{adopt-global-settings-BDiKKjee.js → adopt-global-settings-DgH2Nn_8.js} +9 -9
  21. package/dist/browser/{boolean-editor-Sma15U6s.js → boolean-editor-BHGGEMnO.js} +9 -9
  22. package/dist/browser/{bootIntercom-CvT_A8p8.js → bootIntercom-BKRjfcRC.js} +2 -2
  23. package/dist/browser/bundle.json +85 -85
  24. package/dist/browser/{camera-events-DtEEOjHJ.js → camera-events-Bp5aMamY.js} +1 -1
  25. package/dist/browser/{classnames-DOWh55m7.js → classnames-CzqYMEz4.js} +2 -2
  26. package/dist/browser/{client-Bq8KC_Gd.js → client-BekOsoIf.js} +5 -5
  27. package/dist/browser/{components-DAgPmGLN.js → components-D1oyhcDF.js} +151 -151
  28. package/dist/browser/{create-live-plan-CyeXLvG9.js → create-live-plan-aMAiUYTV.js} +73 -73
  29. package/dist/browser/{debug-context-DgfLIP_z.js → debug-context-1NBU7EsG.js} +5 -5
  30. package/dist/browser/{debug-overlay-DjhkoXTh.js → debug-overlay-DjvhIY8H.js} +10 -10
  31. package/dist/browser/{debug-ui-C5Ov9nWP.js → debug-ui-flULqhXs.js} +6 -6
  32. package/dist/browser/{dist-BPgTae9z.js → dist-BTo6i8Hu.js} +6 -6
  33. package/dist/browser/{dist-D7R1HRT6.js → dist-BxP9tL6r.js} +5 -5
  34. package/dist/browser/{dist-D8q30ciB.js → dist-CIlit6Zo.js} +3 -3
  35. package/dist/browser/{efp-debug-init-CI7-9-EF.js → efp-debug-init-BSFBVV1y.js} +3 -3
  36. package/dist/browser/{enum-editor-DgdrIT6p.js → enum-editor-CQ1DXCzl.js} +4 -4
  37. package/dist/browser/{es5-CKWQYgqj.js → es5-BIr-i8Ja.js} +2 -2
  38. package/dist/browser/{event-head-CGnPGf8r.js → event-head-BZOaCqbu.js} +1 -1
  39. package/dist/browser/{event-not-found-BczHwPfj.js → event-not-found-CJL8MZjO.js} +3 -3
  40. package/dist/browser/{event-scoped-cache-D2VS2gfE.js → event-scoped-cache-C9DjEqlr.js} +2 -2
  41. package/dist/browser/{expofpUrl-BjxV_NsI.js → expofpUrl-CY5ITSBJ.js} +1 -1
  42. package/dist/browser/{exports-Ck0hSnNP.js → exports-BS9yuUDe.js} +1 -1
  43. package/dist/browser/{favicon-DXRCQyX8.js → favicon-xBZv-cxl.js} +1 -1
  44. package/dist/browser/{fetch-retry.umd-BpErXOBo.js → fetch-retry.umd-DcxeSTii.js} +2 -2
  45. package/dist/browser/{flex-BQOoxB4K.js → flex-5FqYfEu4.js} +5 -5
  46. package/dist/browser/{floorplan.loader-BevvQXsH.js → floorplan.loader-BNTd5WnJ.js} +12 -12
  47. package/dist/browser/{floorplan.ready-CfjIq-tD.js → floorplan.ready-B3MuQfII.js} +30 -30
  48. package/dist/browser/{framing-rect-DMoOdaT6.js → framing-rect-VUrV6oqA.js} +355 -363
  49. package/dist/browser/{freeBanner-BLUQe1wS.js → freeBanner-CJNLRo6z.js} +2 -2
  50. package/dist/browser/{fuse-ZrYQLa2i.js → fuse-B9cOk_lN.js} +2 -2
  51. package/dist/browser/{i18n-BLaFErhY.js → i18n-Bg9oysVh.js} +6 -6
  52. package/dist/browser/index.js +17 -17
  53. package/dist/browser/{index.module-Cgw9eIFs.js → index.module-Cb8dhnVA.js} +4 -4
  54. package/dist/browser/{init-ui-C168qd--.js → init-ui-idRwV029.js} +13 -13
  55. package/dist/browser/{integrateKiosk-CItUrjqr.js → integrateKiosk-B74sTu2o.js} +5 -5
  56. package/dist/browser/{is-debug-5Wx1pzmC.js → is-debug-h_MAA0vT.js} +4 -4
  57. package/dist/browser/{is-own-domain-CQwNRlOP.js → is-own-domain-C0yte9ZX.js} +1 -1
  58. package/dist/browser/{is-webview-M2z00we8.js → is-webview-Vzf66YAj.js} +1 -1
  59. package/dist/browser/{jsx-runtime-BUD3cKrd.js → jsx-runtime-CEn3DmvQ.js} +2 -2
  60. package/dist/browser/{kiosk-mode-oR6Qku6R.js → kiosk-mode-DvHrNFsy.js} +3 -3
  61. package/dist/browser/{kiosk-record-B4TPlUVM.js → kiosk-record-DJlPleCt.js} +1 -1
  62. package/dist/browser/{kioskApi-Bjbnt2QJ.js → kioskApi-PfBFbTr5.js} +7 -7
  63. package/dist/browser/{lib-DCkZiNTx.js → lib-D72VRmCp.js} +3 -3
  64. package/dist/browser/{loadImage-CsHBlWDX.js → loadImage-C9WhBEVX.js} +1 -1
  65. package/dist/browser/{logDeviceInfo-CBp39wle.js → logDeviceInfo-CLreGIbg.js} +9 -9
  66. package/dist/browser/{mobx-BKuZa-uE.js → mobx-CF4qOwIb.js} +4 -4
  67. package/dist/browser/{mobx.module-DLfbGzOu.js → mobx.module-Bld24lDp.js} +1 -1
  68. package/dist/browser/{optional-boolean-editor-C_nG8KPk.js → optional-boolean-editor-BFjLyngH.js} +3 -3
  69. package/dist/browser/{optional-enum-editor-Cz65owXN.js → optional-enum-editor-Cn22Eotn.js} +4 -4
  70. package/dist/browser/{optional-string-editor-CiixI5VU.js → optional-string-editor-DtPGGsjm.js} +4 -4
  71. package/dist/browser/{particles.min-Dg9rhGQw.js → particles.min-CNpS5I-V.js} +2 -2
  72. package/dist/browser/{react-dom-BnQ0aR5T.js → react-dom-Dmeqr6Ih.js} +3 -3
  73. package/dist/browser/{react-9fRUfYcQ.js → react-jM_gvhh_.js} +2 -2
  74. package/dist/browser/{rolldown-runtime-DW9kw2-Z.js → rolldown-runtime-BvcUA6Ul.js} +1 -1
  75. package/dist/browser/{scene-CfgUV6qo.js → scene-C2Ph7vMa.js} +9 -9
  76. package/dist/browser/{scheduler-2CNHK3J9.js → scheduler-VjuMtUPg.js} +2 -2
  77. package/dist/browser/{select-DhztBWaW.js → select-OEbn0UxW.js} +10 -10
  78. package/dist/browser/{settings-CQJfzF0P.js → settings-BpKs8Nb_.js} +2 -2
  79. package/dist/browser/{settings-item-C8z-VDRo.js → settings-item-Ci9bHqX0.js} +6 -6
  80. package/dist/browser/{store-CToL6ro6.js → store-DxzMbDAn.js} +2 -2
  81. package/dist/browser/{string-editor-CfDpSKQj.js → string-editor-DeGRtfp9.js} +4 -4
  82. package/dist/browser/{text-field-Cc4OOu_O.js → text-field-Bnb1278l.js} +5 -5
  83. package/dist/browser/{theme-DyT10pAe.js → theme-aRuFDTe2.js} +8 -8
  84. package/dist/browser/{ui-oWcLvPG5.js → ui-BDhcNOy1.js} +8 -8
  85. package/dist/browser/{useRenderTarget-QHju4vdT.js → useRenderTarget-BtqSLLkH.js} +4 -4
  86. package/dist/browser/{viewport-DtGAyX5m.js → viewport-BcTdYyUU.js} +3 -3
  87. package/dist/browser/{wayfinding-xq3uzwvp.js → wayfinding-Cyts8CmL.js} +228 -228
  88. package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
  89. package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
  90. package/dist/esm/engine/utils/rotation.d.ts +8 -0
  91. package/dist/esm/engine/utils/rotation.js +1 -1
  92. package/package.json +10 -10
@@ -1,61 +1,61 @@
1
1
  (function() {
2
2
  try {
3
3
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
- e.SENTRY_RELEASE = { id: "3.45.11" };
4
+ e.SENTRY_RELEASE = { id: "3.45.12" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9fa1b3fb-6903-4cc2-9812-1367f533051a", e._sentryDebugIdIdentifier = "sentry-dbid-9fa1b3fb-6903-4cc2-9812-1367f533051a");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5b1d6393-5e58-435b-97ab-56df607456da", e._sentryDebugIdIdentifier = "sentry-dbid-5b1d6393-5e58-435b-97ab-56df607456da");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DW9kw2-Z.js";
10
- import { h as t } from "./i18n-BLaFErhY.js";
11
- import { t as n } from "./react-9fRUfYcQ.js";
12
- import { i as r, l as i } from "./mobx.module-DLfbGzOu.js";
13
- import { t as a } from "./loadImage-CsHBlWDX.js";
14
- import { r as o } from "./debug-context-DgfLIP_z.js";
15
- import { a as s, l as c, t as l, u } from "./store-CToL6ro6.js";
16
- import { $t as d, At as f, Ct as p, Et as m, Ft as h, G as g, Ht as _, It as v, J as y, Jt as b, K as x, Kt as S, Lt as C, Mt as w, Nt as T, O as E, Pt as D, Q as O, Rt as k, S as A, St as j, Tt as ee, X as te, Y as M, Z as ne, Zt as N, an as P, at as re, en as F, f as ie, i as ae, it as oe, jt as se, ot as ce, p as le, pt as I, rn as ue, t as de, tn as fe, tt as pe, vt as me, x as he, xt as ge, yt as _e, zt as ve } from "./LayerStore-CYhUcBJN.js";
17
- import { _ as ye, l as be } from "./wayfinding-xq3uzwvp.js";
18
- import { i as xe, n as Se } from "./viewport-DtGAyX5m.js";
19
- import { i as Ce, r as we } from "./scene-CfgUV6qo.js";
9
+ import { r as e } from "./rolldown-runtime-BvcUA6Ul.js";
10
+ import { h as t } from "./i18n-Bg9oysVh.js";
11
+ import { t as n } from "./react-jM_gvhh_.js";
12
+ import { i as r, l as i } from "./mobx.module-Bld24lDp.js";
13
+ import { t as a } from "./loadImage-C9WhBEVX.js";
14
+ import { r as o } from "./debug-context-1NBU7EsG.js";
15
+ import { a as s, l as c, t as l, u } from "./store-DxzMbDAn.js";
16
+ import { Bt as d, Ct as f, Dt as p, Et as m, Ft as h, G as g, It as _, J as v, K as y, Lt as b, Mt as x, Nt as S, O as C, Pt as w, Q as T, Qt as E, Rt as D, S as O, St as k, Ut as A, X as ee, Y as j, Yt as te, Z as ne, at as re, bt as ie, en as ae, f as oe, i as se, in as ce, it as le, jt as M, mt as N, nn as ue, on as P, ot as de, p as fe, qt as pe, st as me, t as he, tn as F, tt as ge, wt as _e, x as ve, yt as ye, zt as be } from "./LayerStore-k2gvCLhr.js";
17
+ import { _ as xe, l as Se } from "./wayfinding-Cyts8CmL.js";
18
+ import { i as Ce, n as we } from "./viewport-BcTdYyUU.js";
19
+ import { i as Te, r as Ee } from "./scene-C2Ph7vMa.js";
20
20
  //#region src/components/Map/traffic/trafficLayers.ts
21
- var Te = "traffic_route", Ee = "traffic_route_stop", L = "traffic_vehicles", De = "build_route_lines", Oe = "build_route_dots", ke = 5;
22
- function Ae() {
21
+ var De = "traffic_route", Oe = "traffic_route_stop", I = "traffic_vehicles", ke = "build_route_lines", Ae = "build_route_dots", je = 5;
22
+ function Me() {
23
23
  let e = [];
24
- for (let t = 0; t < ke; t++) e.push({
25
- name: je(t),
24
+ for (let t = 0; t < je; t++) e.push({
25
+ name: Ne(t),
26
26
  children: []
27
27
  }), e.push({
28
- name: Me(t),
28
+ name: Pe(t),
29
29
  children: []
30
30
  });
31
31
  return e.push({
32
- name: L,
32
+ name: I,
33
33
  children: []
34
34
  }), e.push({
35
- name: De,
35
+ name: ke,
36
36
  children: []
37
37
  }), e.push({
38
- name: Oe,
38
+ name: Ae,
39
39
  children: []
40
40
  }), e;
41
41
  }
42
- function je(e) {
43
- return `${Te}_${e + 1}`;
42
+ function Ne(e) {
43
+ return `${De}_${e + 1}`;
44
44
  }
45
- function Me(e) {
46
- return `${Ee}_${e + 1}`;
45
+ function Pe(e) {
46
+ return `${Oe}_${e + 1}`;
47
47
  }
48
- function Ne() {
49
- return RegExp(`^${Te}_\\d+$`);
48
+ function Fe() {
49
+ return RegExp(`^${De}_\\d+$`);
50
50
  }
51
- function Pe() {
52
- return RegExp(`^${Ee}_\\d+$`);
51
+ function Ie() {
52
+ return RegExp(`^${Oe}_\\d+$`);
53
53
  }
54
54
  //#endregion
55
55
  //#region src/components/Map/drawing/config/booth-badge-anchor.ts
56
- var Fe = /* @__PURE__ */ e(me(), 1), Ie = .5, Le = .3, Re = 10, ze = 8, Be = 4, Ve = 50, R = class e {
56
+ var Le = /* @__PURE__ */ e(ye(), 1), Re = .5, ze = .3, Be = 10, Ve = 8, He = 4, Ue = 50, L = class e {
57
57
  constructor(e, t, n, r) {
58
- this.booth = e, this.triangles = t, this.border = n, this.source = r, this.fits = [], this.prefetchRotation = 0, this.polygon = void 0, this.bbox = void 0, this.vertices = null, this.polygon = Ue(t), this.bbox = He(t);
58
+ this.booth = e, this.triangles = t, this.border = n, this.source = r, this.fits = [], this.prefetchRotation = 0, this.polygon = void 0, this.bbox = void 0, this.vertices = null, this.polygon = Ge(t), this.bbox = We(t);
59
59
  }
60
60
  fit(e, t) {
61
61
  let n = this.fits[e];
@@ -68,15 +68,15 @@ var Fe = /* @__PURE__ */ e(me(), 1), Ie = .5, Le = .3, Re = 10, ze = 8, Be = 4,
68
68
  e.idle.delete(this);
69
69
  }
70
70
  static scheduleIdle() {
71
- e.idleScheduled || !e.idle.size || (e.idleScheduled = !0, typeof requestIdleCallback == "function" ? requestIdleCallback(e.runIdle) : typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => setTimeout(e.runSlice, 0)) : setTimeout(e.runSlice, Ve));
71
+ e.idleScheduled || !e.idle.size || (e.idleScheduled = !0, typeof requestIdleCallback == "function" ? requestIdleCallback(e.runIdle) : typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => setTimeout(e.runSlice, 0)) : setTimeout(e.runSlice, Ue));
72
72
  }
73
73
  static runSlice() {
74
- let t = performance.now() + Be;
74
+ let t = performance.now() + He;
75
75
  e.runIdle({ timeRemaining: () => t - performance.now() });
76
76
  }
77
77
  static runIdle(t) {
78
78
  e.idleScheduled = !1;
79
- let n = performance.now() + ze;
79
+ let n = performance.now() + Ve;
80
80
  try {
81
81
  for (let r of e.idle) {
82
82
  if (t.timeRemaining() <= 0 || performance.now() >= n) break;
@@ -105,7 +105,7 @@ var Fe = /* @__PURE__ */ e(me(), 1), Ie = .5, Le = .3, Re = 10, ze = 8, Be = 4,
105
105
  }
106
106
  rectMaxScale(e) {
107
107
  let t = this.booth.rect.size.width, n = this.booth.rect.size.height, r = e ? n : t, i = e ? t : n;
108
- return Math.min(r > 0 ? r * Ie / this.source.x : Infinity, i > 0 ? i * Le / this.source.y : Infinity);
108
+ return Math.min(r > 0 ? r * Re / this.source.x : Infinity, i > 0 ? i * ze / this.source.y : Infinity);
109
109
  }
110
110
  findAnchor(e, t) {
111
111
  var n;
@@ -148,7 +148,7 @@ var Fe = /* @__PURE__ */ e(me(), 1), Ie = .5, Le = .3, Re = 10, ze = 8, Be = 4,
148
148
  };
149
149
  if (!i.containsPoint(o)) return n;
150
150
  let s = 0, c = n;
151
- for (let n = 0; n < Re; n++) {
151
+ for (let n = 0; n < Be; n++) {
152
152
  let n = (s + c) / 2, l = a.x * n, u = a.y * n;
153
153
  i.containsPoint(P({
154
154
  x: e + l,
@@ -173,12 +173,12 @@ var Fe = /* @__PURE__ */ e(me(), 1), Ie = .5, Le = .3, Re = 10, ze = 8, Be = 4,
173
173
  return this.vertices = t;
174
174
  }
175
175
  };
176
- R.idle = /* @__PURE__ */ new Set(), R.idleScheduled = !1;
177
- function He(e) {
176
+ L.idle = /* @__PURE__ */ new Set(), L.idleScheduled = !1;
177
+ function We(e) {
178
178
  if (!e.length) return null;
179
179
  let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
180
180
  for (let a of e) for (let [e, o] of a) e < t && (t = e), o < n && (n = o), e > r && (r = e), o > i && (i = o);
181
- return N.fromMinMax({
181
+ return E.fromMinMax({
182
182
  x: t,
183
183
  y: n
184
184
  }, {
@@ -186,7 +186,7 @@ function He(e) {
186
186
  y: i
187
187
  });
188
188
  }
189
- function Ue(e) {
189
+ function Ge(e) {
190
190
  let t = [], n = [];
191
191
  for (let r of e) {
192
192
  let e = t.length;
@@ -205,76 +205,76 @@ function Ue(e) {
205
205
  e + 2
206
206
  ]);
207
207
  }
208
- return new fe(t, n);
208
+ return new ue(t, n);
209
209
  }
210
210
  //#endregion
211
211
  //#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
212
- function We(e) {
212
+ function Ke(e) {
213
213
  return e.hideExhibitorBoothNumber || e.hideBoothBadges || !e.hasExhibitors ? !1 : e.noLabels || !e.hideLogoInBooth && e.hasLogoInBooth;
214
214
  }
215
215
  //#endregion
216
216
  //#region src/components/Map/drawing/config/config-booth-badge-scale.ts
217
- function Ge({ pixelSize: e, fontSize: t, plateFontSize: n, maxScale: r }) {
217
+ function qe({ pixelSize: e, fontSize: t, plateFontSize: n, maxScale: r }) {
218
218
  let i = e * t / n;
219
219
  return Math.min(i, r);
220
220
  }
221
221
  //#endregion
222
222
  //#region src/components/Map/drawing/config/config-booth-badge.ts
223
- var Ke = 15, qe = we ? 16 : 18, Je = 30, Ye = 6, z = .8, Xe = Je * z, Ze = document.createElement("canvas").getContext("2d");
224
- function Qe(e) {
225
- return e.length <= Ke ? e : e.slice(0, Ke - 1) + "…";
223
+ var Je = 15, Ye = Ee ? 16 : 18, Xe = 30, Ze = 6, R = .8, Qe = Xe * R, $e = document.createElement("canvas").getContext("2d");
224
+ function et(e) {
225
+ return e.length <= Je ? e : e.slice(0, Je - 1) + "…";
226
226
  }
227
- function $e(e) {
227
+ function tt(e) {
228
228
  var t, n;
229
229
  if (!((t = e.paths) != null && t.length)) return [];
230
230
  let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
231
- for (let t of e.paths) for (let e of _(t.index, r)) i.push(e);
231
+ for (let t of e.paths) for (let e of A(t.index, r)) i.push(e);
232
232
  return i;
233
233
  }
234
- function B(e) {
234
+ function z(e) {
235
235
  return e && e !== "none" ? e : void 0;
236
236
  }
237
- function et(e) {
237
+ function nt(e) {
238
238
  var t;
239
- let n = B(e.borderColor) || B(ve.boothBorderColor) || ve.colors.booths.default;
240
- return ((t = e.paths) == null ? void 0 : t.length) > 1 && B(e.paths[e.paths.length - 1].color) || n;
239
+ let n = z(e.borderColor) || z(d.boothBorderColor) || d.colors.booths.default;
240
+ return ((t = e.paths) == null ? void 0 : t.length) > 1 && z(e.paths[e.paths.length - 1].color) || n;
241
241
  }
242
- function tt(e) {
242
+ function rt(e) {
243
243
  var t;
244
- let n = Qe(e.title || e.name), r = et(e), a = Ce((0, Fe.default)(r).hex()), o = ie();
245
- Ze.font = se(Je, o);
246
- let s = Ze.measureText(n).width, c = Math.ceil(s + Ye * 2), d = (e.borderWidth || l.borderWidth) / 2, f = c * z, p = 38 * z, m = new R(e, $e(e), d, {
244
+ let n = et(e.title || e.name), r = nt(e), a = Te((0, Le.default)(r).hex()), o = oe();
245
+ $e.font = x(Xe, o);
246
+ let s = $e.measureText(n).width, c = Math.ceil(s + Ze * 2), d = (e.borderWidth || l.borderWidth) / 2, f = c * R, p = 38 * R, m = new L(e, tt(e), d, {
247
247
  x: f,
248
248
  y: p
249
- }), h = (t = e.rotate) == null ? 0 : t, g = 0, _ = 0, v = 0, b = 0, x = () => {
249
+ }), h = (t = e.rotate) == null ? 0 : t, g = 0, _ = 0, y = 0, b = 0, S = () => {
250
250
  let e = m.fit(g, h);
251
- _ = e.x, v = e.y, b = e.maxScale;
251
+ _ = e.x, y = e.y, b = e.maxScale;
252
252
  };
253
- x();
254
- let S = (t, n) => {
253
+ S();
254
+ let C = (t, n) => {
255
255
  let r = t / 2, i = n / 2;
256
256
  return new F(P({
257
257
  x: _ + r,
258
- y: v + i
258
+ y: y + i
259
259
  }, h, {
260
260
  x: _,
261
- y: v
261
+ y
262
262
  }), {
263
263
  x: t,
264
264
  y: n
265
265
  }, h, e.elevation);
266
- }, C = le(o, O()), w = y(S(1, 1), r);
267
- w.hidden = !0, w.dim = e.skipDim ? 0 : void 0;
268
- let T = M(te([[n], []], a, 0, [C, C]), S(1, 1), [0, 0], {
266
+ }, w = fe(o, T()), E = v(C(1, 1), r);
267
+ E.hidden = !0, E.dim = e.skipDim ? 0 : void 0;
268
+ let D = j(ee([[n], []], a, 0, [w, w]), C(1, 1), [0, 0], {
269
269
  horizontal: "center",
270
270
  vertical: "center"
271
271
  });
272
- T.hidden = !0, T.dim = e.skipDim ? 0 : void 0;
273
- let E = {
272
+ D.hidden = !0, D.dim = e.skipDim ? 0 : void 0;
273
+ let O = {
274
274
  booth: e,
275
275
  anchor: {
276
276
  x: _,
277
- y: v
277
+ y
278
278
  },
279
279
  source: {
280
280
  x: f,
@@ -282,33 +282,33 @@ function tt(e) {
282
282
  },
283
283
  rotation: h,
284
284
  maxScale: b,
285
- bg: w,
286
- text: T
287
- }, D = new nt(E);
288
- w.onScale = ({ pixelSize: e }) => D.layOutBg(e), T.onScale = ({ pixelSize: e }) => D.layOutText(e);
289
- let k = [];
290
- return k.push(i(() => e.skipDim, (e) => {
291
- w.dim = e ? 0 : void 0, T.dim = e ? 0 : void 0, I(w, T);
292
- })), k.push(i(() => {
285
+ bg: E,
286
+ text: D
287
+ }, k = new it(O);
288
+ E.onScale = ({ pixelSize: e }) => k.layOutBg(e), D.onScale = ({ pixelSize: e }) => k.layOutText(e);
289
+ let A = [];
290
+ return A.push(i(() => e.skipDim, (e) => {
291
+ E.dim = e ? 0 : void 0, D.dim = e ? 0 : void 0, N(E, D);
292
+ })), A.push(i(() => {
293
293
  var t, n;
294
294
  return (t = (n = e.layer) == null ? void 0 : n.visible) == null || t;
295
295
  }, (e) => {
296
- w.hidden = !e, T.hidden = !e, I(w, T);
297
- })), k.push(i(() => u.mapSettings, ({ roll: t }) => {
296
+ E.hidden = !e, D.hidden = !e, N(E, D);
297
+ })), A.push(i(() => u.mapSettings, ({ roll: t }) => {
298
298
  var n;
299
- re(t == null ? 0 : t) && (m.prefetch((n = e.rotate) == null ? 0 : n), w.onRoll = ({ roll: e, pixelSize: t }) => {
300
- let n = oe(e, h);
301
- if (n !== 0) return h += n * Math.PI / 2, g = ((g + n) % 4 + 4) % 4, x(), E.anchor.x = _, E.anchor.y = v, E.rotation = h, E.maxScale = b, D.invalidate(), [...D.layOutBg(t), ...D.layOutText(t)];
299
+ de(t == null ? 0 : t) && (m.prefetch((n = e.rotate) == null ? 0 : n), E.onRoll = ({ roll: e, pixelSize: t }) => {
300
+ let n = re(e, h);
301
+ if (n !== 0) return h += n * Math.PI / 2, g = ((g + n) % 4 + 4) % 4, S(), O.anchor.x = _, O.anchor.y = y, O.rotation = h, O.maxScale = b, k.invalidate(), [...k.layOutBg(t), ...k.layOutText(t)];
302
302
  });
303
303
  }, { fireImmediately: !0 }), () => m.cancelPrefetch()), {
304
- bg: w,
305
- text: T,
304
+ bg: E,
305
+ text: D,
306
306
  dispose: () => {
307
- k.forEach((e) => e()), k.length = 0;
307
+ A.forEach((e) => e()), A.length = 0;
308
308
  }
309
309
  };
310
310
  }
311
- var nt = class {
311
+ var it = class {
312
312
  constructor(e) {
313
313
  this.placement = e, this.bgScale = NaN, this.textScale = NaN;
314
314
  }
@@ -321,13 +321,13 @@ var nt = class {
321
321
  }
322
322
  layOutText(e) {
323
323
  let { text: t } = this.placement, n = this.scaleFor(e);
324
- return n === this.textScale ? [] : (this.textScale = n, t.lines[0].fontSize = Xe * n, t.bounds = this.rectAt(n), t.hidden = this.isHidden(), t.hidden ? [] : [t]);
324
+ return n === this.textScale ? [] : (this.textScale = n, t.lines[0].fontSize = Qe * n, t.bounds = this.rectAt(n), t.hidden = this.isHidden(), t.hidden ? [] : [t]);
325
325
  }
326
326
  scaleFor(e) {
327
- return Ge({
327
+ return qe({
328
328
  pixelSize: e,
329
- fontSize: qe,
330
- plateFontSize: Xe,
329
+ fontSize: Ye,
330
+ plateFontSize: Qe,
331
331
  maxScale: this.placement.maxScale
332
332
  });
333
333
  }
@@ -346,17 +346,17 @@ var nt = class {
346
346
  return !!(e.layer && !e.layer.visible);
347
347
  }
348
348
  };
349
- function rt(e, t) {
349
+ function at(e, t) {
350
350
  let n = [], r = [], i = [];
351
- for (let e of t) if (e instanceof pe && We({
352
- hideExhibitorBoothNumber: S.hideExhibitorBoothNumber,
353
- hideBoothBadges: S.hideBoothBadges,
351
+ for (let e of t) if (e instanceof ge && Ke({
352
+ hideExhibitorBoothNumber: pe.hideExhibitorBoothNumber,
353
+ hideBoothBadges: pe.hideBoothBadges,
354
354
  hideLogoInBooth: u.hideLogoInBooth,
355
355
  noLabels: e.noLabels,
356
356
  hasExhibitors: e.exhibitors.length > 0,
357
357
  hasLogoInBooth: e.exhibitors.some((e) => e.logoInBooth && e.logo)
358
358
  })) {
359
- let { bg: t, text: a, dispose: o } = tt(e);
359
+ let { bg: t, text: a, dispose: o } = rt(e);
360
360
  n.push(t), r.push(a), i.push(o);
361
361
  }
362
362
  let a = () => {
@@ -381,17 +381,17 @@ function rt(e, t) {
381
381
  }
382
382
  //#endregion
383
383
  //#region src/components/Map/drawing/config/config-markers.ts
384
- var it = "_selected", at = "markers";
385
- function ot(e, t, n) {
384
+ var ot = "_selected", st = "markers";
385
+ function ct(e, t, n) {
386
386
  let { center: r, rotation: i, elevation: a } = e.bounds, { width: o, height: s } = t;
387
- return e.bounds = f(r.x, r.y, o, s, n, i, a), [e];
387
+ return e.bounds = M(r.x, r.y, o, s, n, i, a), [e];
388
388
  }
389
- function st(e) {
390
- V = e;
389
+ function lt(e) {
390
+ B = e;
391
391
  }
392
- function ct(e) {
393
- let { scene: t } = e, n = [], r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [], l = t.rootLayer.children.find((e) => e.name === at);
394
- l.onScale = ({ pixelSize: e }) => st(e), he(lt), I(l);
392
+ function ut(e) {
393
+ let { scene: t } = e, n = [], r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [], l = t.rootLayer.children.find((e) => e.name === st);
394
+ l.onScale = ({ pixelSize: e }) => lt(e), ve(dt), N(l);
395
395
  async function d(e) {
396
396
  let t = [];
397
397
  e.forEach((e) => {
@@ -412,17 +412,15 @@ function ct(e) {
412
412
  t.push(l), c.src = i, c.crossOrigin = "anonymous";
413
413
  }), await Promise.all(t);
414
414
  }
415
- let p = (e, t) => {
416
- e.onScale = ({ pixelSize: n }) => ot(e, t, n);
417
- }, m = (e) => {
418
- e.screenSpace || (e.onRoll = ({ roll: t }) => {
419
- if (t !== e.bounds.rotation) return e.bounds.rotate(t - e.bounds.rotation, e.bounds), [e];
420
- });
415
+ let f = (e, t) => {
416
+ e.onScale = ({ pixelSize: n }) => ct(e, t, n);
417
+ }, p = (e) => {
418
+ e.screenSpace || le(e);
421
419
  };
422
420
  function h(e, t) {
423
421
  let n = a.get(e);
424
422
  if (n) return n;
425
- let r = ee(t.img, t.width, t.height, window.devicePixelRatio, t.scale || 1);
423
+ let r = m(t.img, t.width, t.height, window.devicePixelRatio, t.scale || 1);
426
424
  return a.set(e, r), r;
427
425
  }
428
426
  function _() {
@@ -436,38 +434,38 @@ function ct(e) {
436
434
  if (!a) return;
437
435
  let c = r.get(e.selectedIcon);
438
436
  if (!c) return;
439
- let l = a.scale || 1, u = h(e.icon, a), d = h(e.selectedIcon, c), m = (n = (i = s.findLayer(e.z)) == null ? void 0 : i.visible) == null || n, _ = w(a.img, a.width, a.height, l), v = w(c.img, c.width, c.height, l), y = f(e.x, e.y, _.width, _.height, 1, 0), b = f(e.x, e.y, v.width, v.height, 1, 0), x;
437
+ let l = a.scale || 1, u = h(e.icon, a), d = h(e.selectedIcon, c), p = (n = (i = s.findLayer(e.z)) == null ? void 0 : i.visible) == null || n, m = S(a.img, a.width, a.height, l), _ = S(c.img, c.width, c.height, l), v = M(e.x, e.y, m.width, m.height, 1, 0), y = M(e.x, e.y, _.width, _.height, 1, 0), b;
440
438
  switch (e.position) {
441
439
  case "lefttop":
442
- x = [0, 0];
440
+ b = [0, 0];
443
441
  break;
444
442
  case "centertop":
445
- x = [.5, 0];
443
+ b = [.5, 0];
446
444
  break;
447
445
  case "centerbottom":
448
- x = [.5, 1];
446
+ b = [.5, 1];
449
447
  break;
450
- default: x = [.5, .5];
448
+ default: b = [.5, .5];
451
449
  }
452
- let S = {
453
- ...g(u, y, {
454
- hidden: !m,
455
- origin: x
450
+ let x = {
451
+ ...g(u, v, {
452
+ hidden: !p,
453
+ origin: b
456
454
  }),
457
455
  id: e.id,
458
456
  scale: l,
459
457
  screenSpace: t
460
458
  }, C = {
461
- ...g(d, b, {
462
- hidden: !(m && e.active),
463
- origin: x
459
+ ...g(d, y, {
460
+ hidden: !(p && e.active),
461
+ origin: b
464
462
  }),
465
- id: `${e.id}${it}`,
463
+ id: `${e.id}${ot}`,
466
464
  scale: l,
467
465
  screenSpace: t
468
466
  };
469
- p(S, _), p(C, v), o.push(S, C);
470
- }), l.children = o, o.forEach(m);
467
+ f(x, m), f(C, _), o.push(x, C);
468
+ }), l.children = o, o.forEach(p);
471
469
  }
472
470
  function v() {
473
471
  l.children = [], o = [];
@@ -476,7 +474,7 @@ function ct(e) {
476
474
  let e = c.routeStore.markersData.markers;
477
475
  e.length && e.forEach((e) => {
478
476
  var t, n;
479
- let r = o.find((t) => t.id === e.id), i = o.find((t) => t.id === `${e.id}${it}`);
477
+ let r = o.find((t) => t.id === e.id), i = o.find((t) => t.id === `${e.id}${ot}`);
480
478
  if (!r || !i) return;
481
479
  let a = (t = (n = s.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
482
480
  e.active ? (r.hidden = !0, i.hidden = !(a && e.active)) : (r.hidden = !a, i.hidden = !0);
@@ -484,35 +482,35 @@ function ct(e) {
484
482
  }
485
483
  return n.push(i(() => [c.routeStore.selectedMarkers, c.layerStore.visible], () => {
486
484
  if (!c.routeStore.markersData.markers.length) {
487
- v(), I(l);
485
+ v(), N(l);
488
486
  return;
489
487
  }
490
- y(), I(...o);
488
+ y(), N(...o);
491
489
  })), n.push(i(() => c.routeStore.markersData.markers, () => {
492
490
  d(c.routeStore.markersData.icons).then(() => {
493
- _(), I(l);
491
+ _(), N(l);
494
492
  });
495
493
  }, { fireImmediately: !0 })), function() {
496
- n.forEach((e) => e()), n.length = 0, l.onScale = void 0, he(), V = 1, I(l);
494
+ n.forEach((e) => e()), n.length = 0, l.onScale = void 0, ve(), B = 1, N(l);
497
495
  };
498
496
  }
499
- function lt(e, t) {
500
- return ut(e, t, V);
497
+ function dt(e, t) {
498
+ return ft(e, t, B);
501
499
  }
502
- function ut(e, t, n) {
500
+ function ft(e, t, n) {
503
501
  for (let r of c.routeStore.markersData.markers) {
504
502
  let i = c.routeStore.markersData.icons.find((e) => e.name === r.icon);
505
503
  if (!i) continue;
506
504
  let a = i.width * (i.scale || 1) * n, o = i.height * (i.scale || 1) * n;
507
- if (dt(e, t, r.x, r.y, a, o)) {
505
+ if (pt(e, t, r.x, r.y, a, o)) {
508
506
  let e = c.layerStore.findLayer(r.z);
509
507
  if (!e || e && e.visible) return r;
510
508
  }
511
509
  }
512
510
  return null;
513
511
  }
514
- function dt(e, t, n, r, i, a) {
515
- return N.fromCenter({
512
+ function pt(e, t, n, r, i, a) {
513
+ return E.fromCenter({
516
514
  x: n,
517
515
  y: r
518
516
  }, {
@@ -523,11 +521,11 @@ function dt(e, t, n, r, i, a) {
523
521
  y: t
524
522
  });
525
523
  }
526
- var V = 1, ft = .5, pt = "cubic";
527
- function mt(e, t) {
524
+ var B = 1, mt = .5, ht = "cubic";
525
+ function gt(e, t) {
528
526
  return !e || e.rootLayer.dim === t ? !1 : (e.rootLayer.dim = t, !0);
529
527
  }
530
- function ht(e, t = 300, n = pt) {
528
+ function _t(e, t = 300, n = ht) {
531
529
  let r = null, i = 0, a = 0, o = 0, s = 0, c = Math.max(t, 0);
532
530
  function l() {
533
531
  r === null || typeof cancelAnimationFrame != "function" || (cancelAnimationFrame(r), r = null);
@@ -536,7 +534,7 @@ function ht(e, t = 300, n = pt) {
536
534
  l(), i = t, e(i);
537
535
  }
538
536
  function d(t) {
539
- let l = t - s, u = Math.min(Math.max(l / c, 0), 1), f = gt(u, n);
537
+ let l = t - s, u = Math.min(Math.max(l / c, 0), 1), f = vt(u, n);
540
538
  if (i = a + (o - a) * f, e(i), u < 1) {
541
539
  r = requestAnimationFrame(d);
542
540
  return;
@@ -562,15 +560,15 @@ function ht(e, t = 300, n = pt) {
562
560
  }
563
561
  };
564
562
  }
565
- function gt(e, t) {
566
- return t === "linear" ? e : _t(e);
563
+ function vt(e, t) {
564
+ return t === "linear" ? e : yt(e);
567
565
  }
568
- function _t(e) {
566
+ function yt(e) {
569
567
  return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
570
568
  }
571
569
  //#endregion
572
570
  //#region src/components/Map/drawing/config/config-pins.ts
573
- function vt(e, t, n) {
571
+ function bt(e, t, n) {
574
572
  let a = [], o = [], s = [], c = [];
575
573
  function d() {
576
574
  let e = u.selectedPoiTypeFilters;
@@ -585,15 +583,15 @@ function vt(e, t, n) {
585
583
  o.forEach((e) => e.stop()), o = [];
586
584
  }
587
585
  function m() {
588
- e.children = s.map((e) => Ct(e, f));
586
+ e.children = s.map((e) => Tt(e, f));
589
587
  }
590
588
  function h() {
591
- c = Array.from({ length: Math.floor(s.length / 2) }, () => Tt(f)), t.children = c.map((e) => e.image), n.children = c.map((e) => e.count);
589
+ c = Array.from({ length: Math.floor(s.length / 2) }, () => Dt(f)), t.children = c.map((e) => e.image), n.children = c.map((e) => e.count);
592
590
  }
593
591
  function g(e, t) {
594
- let n = /* @__PURE__ */ new Set(), r = (e) => e == null ? void 0 : e.forEach((e) => n.add(e)), i = Dt(c, e, Pt * t.pixelSize);
592
+ let n = /* @__PURE__ */ new Set(), r = (e) => e == null ? void 0 : e.forEach((e) => n.add(e)), i = kt(c, e, Ft * t.pixelSize);
595
593
  i.forEach((t, n) => {
596
- kt(t, e[n]) && r([t.image, t.count]), r(t.fader.place(!0));
594
+ jt(t, e[n]) && r([t.image, t.count]), r(t.fader.place(!0));
597
595
  });
598
596
  let a = new Set(i);
599
597
  for (let e of c) a.has(e) || r(e.fader.place(!1));
@@ -603,28 +601,28 @@ function vt(e, t, n) {
603
601
  onCluster: (e, t) => g(e, t),
604
602
  marker: {
605
603
  width: U,
606
- height: Lt,
607
- origin: Nt
604
+ height: W,
605
+ origin: H
608
606
  }
609
607
  }, a.push(i(() => d(), (r) => {
610
- s = r, p(), m(), h(), I(e, t, n);
608
+ s = r, p(), m(), h(), N(e, t, n);
611
609
  }, {
612
610
  equals: r.shallow,
613
611
  fireImmediately: !0
614
612
  })), function() {
615
- a.forEach((e) => e()), a.length = 0, p(), c = [], e.clustering = void 0, e.children = [], t.children = [], n.children = [], I(e, t, n);
613
+ a.forEach((e) => e()), a.length = 0, p(), c = [], e.clustering = void 0, e.children = [], t.children = [], n.children = [], N(e, t, n);
616
614
  };
617
615
  }
618
- function yt(e, t, n, r, i) {
616
+ function xt(e, t, n, r, i) {
619
617
  let a, o = i, s = !1, c = !1, l = (r) => {
620
618
  let i = 1 - Math.min(Math.max(r, 0), 1), a = !1;
621
619
  if (n() !== i && (t(i), a = !0), !o && r >= 1 && e.some((e) => !e.hidden)) {
622
620
  for (let t of e) t.hidden = !0;
623
621
  a = !0;
624
622
  }
625
- a && (s ? c = !0 : I(...e));
623
+ a && (s ? c = !0 : N(...e));
626
624
  }, u = () => {
627
- if (!a && (a = ht(l, 300), r(a), !i)) {
625
+ if (!a && (a = _t(l, 300), r(a), !i)) {
628
626
  let e = s;
629
627
  s = !0, a.setTarget(!0, { immediate: !0 }), s = e;
630
628
  }
@@ -641,30 +639,30 @@ function yt(e, t, n, r, i) {
641
639
  return s = !0, c = !1, u().setTarget(!t), s = !1, n || c ? e : void 0;
642
640
  } };
643
641
  }
644
- function bt(e, t, n, r) {
642
+ function St(e, t, n, r) {
645
643
  let { bounds: i } = e, a = t * r, o = t * n * r;
646
644
  if (!(i.size.x === a && i.size.y === o)) return i.set(i.center.x, i.center.y, a, o, i.rotation, i.elevation), [e];
647
645
  }
648
- function xt() {
649
- return Rt || (Rt = m(H, window.devicePixelRatio)), Rt;
646
+ function Ct() {
647
+ return G || (G = p(V, window.devicePixelRatio)), G;
650
648
  }
651
- function St() {
652
- return zt || (zt = p(U, window.devicePixelRatio)), zt;
649
+ function wt() {
650
+ return Rt || (Rt = _e(U, window.devicePixelRatio)), Rt;
653
651
  }
654
- function Ct(e, t) {
652
+ function Tt(e, t) {
655
653
  let n = new F(e.rect.center, {
656
- x: H,
657
- y: H * D
654
+ x: V,
655
+ y: V * h
658
656
  }, 0, e.elevation * 2), r = {
659
- ...g(xt(), n, {
657
+ ...g(Ct(), n, {
660
658
  hidden: !1,
661
- origin: Nt
659
+ origin: H
662
660
  }),
663
661
  screenSpace: !0,
664
662
  opacity: 1
665
663
  };
666
- r.onScale = ({ pixelSize: e }) => bt(r, H, D, e);
667
- let i = yt([r], (e) => {
664
+ r.onScale = ({ pixelSize: e }) => St(r, V, h, e);
665
+ let i = xt([r], (e) => {
668
666
  r.opacity = e;
669
667
  }, () => {
670
668
  var e;
@@ -672,42 +670,42 @@ function Ct(e, t) {
672
670
  }, t, !0);
673
671
  return r.placement = { onPlace: (e) => i.place(e) }, r;
674
672
  }
675
- function wt(e) {
676
- return `${Ft}${Math.round(Math.min(Math.max(e, 0), 1) * 255).toString(16).padStart(2, "0")}`;
673
+ function Et(e) {
674
+ return `${It}${Math.round(Math.min(Math.max(e, 0), 1) * 255).toString(16).padStart(2, "0")}`;
677
675
  }
678
- function Tt(e) {
676
+ function Dt(e) {
679
677
  let t = new F({
680
678
  x: 0,
681
679
  y: 0
682
680
  }, {
683
681
  x: U,
684
- y: Lt
682
+ y: W
685
683
  }, 0, 0), n = {
686
- ...g(St(), t, {
684
+ ...g(wt(), t, {
687
685
  hidden: !0,
688
- origin: Nt
686
+ origin: H
689
687
  }),
690
688
  screenSpace: !0,
691
689
  opacity: 0
692
690
  };
693
- n.onScale = ({ pixelSize: e }) => bt(n, U, D, e);
694
- let r = Et(n);
691
+ n.onScale = ({ pixelSize: e }) => St(n, U, h, e);
692
+ let r = Ot(n);
695
693
  return {
696
694
  image: n,
697
695
  count: r,
698
- fader: yt([n, r], (e) => {
699
- n.opacity = e, r.lines[0].color = wt(e);
696
+ fader: xt([n, r], (e) => {
697
+ n.opacity = e, r.lines[0].color = Et(e);
700
698
  }, () => {
701
699
  var e;
702
700
  return (e = n.opacity) == null ? 1 : e;
703
701
  }, e, !1)
704
702
  };
705
703
  }
706
- function Et(e) {
704
+ function Ot(e) {
707
705
  let t = {
708
706
  lines: [{
709
- text: v(2),
710
- color: wt(0),
707
+ text: b(2),
708
+ color: Et(0),
711
709
  fontUrl: ne,
712
710
  fontSize: 0
713
711
  }],
@@ -728,11 +726,11 @@ function Et(e) {
728
726
  hidden: !0
729
727
  };
730
728
  return t.onScale = ({ pixelSize: n }) => {
731
- let r = h(It.r) * n, i = U * n, a = 2 * ((Lt - It.cy) * n + T * r), { bounds: o } = t, [s] = t.lines;
729
+ let r = _(Lt.r) * n, i = U * n, a = 2 * ((W - Lt.cy) * n + w * r), { bounds: o } = t, [s] = t.lines;
732
730
  if (!(s.fontSize === r && o.size.x === i && o.size.y === a)) return s.fontSize = r, o.set(e.bounds.center.x, e.bounds.center.y, i, a, o.rotation, e.bounds.elevation), [t];
733
731
  }, t;
734
732
  }
735
- function Dt(e, t, n) {
733
+ function kt(e, t, n) {
736
734
  let r = Math.min(t.length, e.length), i = [], a = /* @__PURE__ */ new Set(), o = [];
737
735
  e.forEach(({ image: e }, i) => {
738
736
  if (!e.hidden) for (let a = 0; a < r; a++) {
@@ -748,44 +746,44 @@ function Dt(e, t, n) {
748
746
  let s = e.map((e, t) => ({
749
747
  unit: e,
750
748
  index: t
751
- })).filter(({ unit: e }) => !a.has(e)).sort((e, t) => Ot(e.unit) - Ot(t.unit) || e.index - t.index), c = 0;
749
+ })).filter(({ unit: e }) => !a.has(e)).sort((e, t) => At(e.unit) - At(t.unit) || e.index - t.index), c = 0;
752
750
  for (let e = 0; e < r; e++) i[e] || (i[e] = s[c++].unit);
753
751
  return i;
754
752
  }
755
- function Ot({ image: e }) {
753
+ function At({ image: e }) {
756
754
  var t;
757
755
  return e.hidden ? 0 : (t = e.opacity) == null ? 1 : t;
758
756
  }
759
- function kt({ image: e, count: t }, n) {
760
- let { x: r, y: i, elevation: a, unitCount: o } = n, s = v(o), [c] = t.lines, l = e.bounds;
757
+ function jt({ image: e, count: t }, n) {
758
+ let { x: r, y: i, elevation: a, unitCount: o } = n, s = b(o), [c] = t.lines, l = e.bounds;
761
759
  if (l.center.x === r && l.center.y === i && l.elevation === a && c.text === s) return !1;
762
760
  l.set(r, i, l.size.x, l.size.y, l.rotation, a);
763
761
  let { bounds: u } = t;
764
762
  return u.set(r, i, u.size.x, u.size.y, u.rotation, a), c.text = s, !0;
765
763
  }
766
- var At = "poiFilterPins", jt = "poiFilterPinClusters", Mt = "poiFilterPinCounts", H = 32, Nt = [.5, 1], U = 44, Pt = U, Ft = "#000000", It = C(U), Lt = U * D, Rt, zt;
764
+ var Mt = "poiFilterPins", Nt = "poiFilterPinClusters", Pt = "poiFilterPinCounts", V = 32, H = [.5, 1], U = 44, Ft = U, It = "#000000", Lt = D(U), W = U * h, G, Rt;
767
765
  //#endregion
768
766
  //#region src/components/Map/drawing/config/config-all.ts
769
- function Bt() {
767
+ function zt() {
770
768
  let { defaultLayer: e } = c.layerStore, { layers: t } = c.layerStore;
771
769
  if (e) {
772
770
  let n = [...t], r = t.indexOf(e);
773
771
  n.splice(r, 1), t = [e, ...n];
774
772
  }
775
- let n = t.filter((e) => !e.rootParent).map((e) => ae(e));
773
+ let n = t.filter((e) => !e.rootParent).map((e) => se(e));
776
774
  return Promise.all(n).then((e) => {
777
775
  var t;
778
- let n = x(at, []);
776
+ let n = y(st, []);
779
777
  n.overlay = u.is3DView;
780
- let r = u.is3DView ? Vt() : void 0, i = be({ overlay: u.is3DView }), a = [], o = [];
781
- for (let t of e.flat()) E(t.name) ? (t.dim = 0, o.push(t)) : a.push(t);
782
- let { layer: s, cleanup: c } = rt("root", l.booths);
778
+ let r = u.is3DView ? Bt() : void 0, i = Se({ overlay: u.is3DView }), a = [], o = [];
779
+ for (let t of e.flat()) C(t.name) ? (t.dim = 0, o.push(t)) : a.push(t);
780
+ let { layer: s, cleanup: c } = at("root", l.booths);
783
781
  return {
784
782
  layers: [
785
783
  ...a,
786
784
  ...s ? [s] : [],
787
785
  ...o,
788
- ...Ae(),
786
+ ...Me(),
789
787
  n,
790
788
  ...(t = r == null ? void 0 : r.layers) == null ? [] : t,
791
789
  i
@@ -796,33 +794,33 @@ function Bt() {
796
794
  };
797
795
  });
798
796
  }
799
- function Vt() {
797
+ function Bt() {
800
798
  let e = [
801
- At,
802
- jt,
803
- Mt
799
+ Mt,
800
+ Nt,
801
+ Pt
804
802
  ].map((e) => {
805
- let t = x(e, []);
803
+ let t = y(e, []);
806
804
  return t.overlay = !0, t.dim = 0, t;
807
805
  }), [t, n, r] = e;
808
806
  return {
809
807
  layers: e,
810
- cleanup: vt(t, n, r)
808
+ cleanup: bt(t, n, r)
811
809
  };
812
810
  }
813
811
  //#endregion
814
812
  //#region src/components/Map/MapCursorCoords.tsx
815
- var W = /* @__PURE__ */ e(n(), 1), Ht = 2;
816
- function Ut(e) {
817
- let { canvas: t } = e, n = ce(), r = o(), i = (0, W.useCallback)(() => r("cursor", void 0), [r]), a = (0, W.useEffectEvent)((e) => {
813
+ var K = /* @__PURE__ */ e(n(), 1), Vt = 2;
814
+ function Ht(e) {
815
+ let { canvas: t } = e, n = me(), r = o(), i = (0, K.useCallback)(() => r("cursor", void 0), [r]), a = (0, K.useEffectEvent)((e) => {
818
816
  if (!e.isPrimary) return;
819
817
  let t = n.canvasToPlan({
820
818
  x: e.offsetX,
821
819
  y: e.offsetY
822
820
  });
823
- r("cursor", t ? Gt(t, Wt()) : void 0);
821
+ r("cursor", t ? Wt(t, Ut()) : void 0);
824
822
  });
825
- return (0, W.useEffect)(() => {
823
+ return (0, K.useEffect)(() => {
826
824
  let e = t.current;
827
825
  if (!e) return;
828
826
  let n = (e) => a(e), r = () => i();
@@ -831,25 +829,25 @@ function Ut(e) {
831
829
  };
832
830
  }, [t, i]), null;
833
831
  }
834
- function Wt() {
835
- let e = c.layerStore.layers.find((e) => e.visible && (e.mode === de.TurnedOn || e.mode === de.TurnedOff));
832
+ function Ut() {
833
+ let e = c.layerStore.layers.find((e) => e.visible && (e.mode === he.TurnedOn || e.mode === he.TurnedOff));
836
834
  return (e == null ? void 0 : e.name) || null;
837
835
  }
838
- function Gt(e, t) {
839
- let n = `[${e.x.toFixed(Ht)}, ${e.y.toFixed(Ht)}]`;
836
+ function Wt(e, t) {
837
+ let n = `[${e.x.toFixed(Vt)}, ${e.y.toFixed(Vt)}]`;
840
838
  return t ? `${n} · layer ${t}` : n;
841
839
  }
842
840
  //#endregion
843
841
  //#region src/components/Map/MapViewport.tsx
844
- function Kt() {
845
- let e = ce(), t = (0, W.useRef)({ api: e }), [n] = (0, W.useState)(() => Se(t));
846
- return (0, W.useLayoutEffect)(() => {
842
+ function Gt() {
843
+ let e = me(), t = (0, K.useRef)({ api: e }), [n] = (0, K.useState)(() => we(t));
844
+ return (0, K.useLayoutEffect)(() => {
847
845
  t.current = { api: e };
848
- }), (0, W.useEffect)(() => (xe(n), () => xe(void 0)), [n]), null;
846
+ }), (0, K.useEffect)(() => (Ce(n), () => Ce(void 0)), [n]), null;
849
847
  }
850
848
  //#endregion
851
849
  //#region src/components/Map/traffic/UpdateQueue.ts
852
- var qt = class {
850
+ var Kt = class {
853
851
  constructor() {
854
852
  this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
855
853
  }
@@ -891,7 +889,7 @@ var qt = class {
891
889
  destroy() {
892
890
  this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
893
891
  }
894
- }, Jt = 49, Yt = `hsl(257, 76%, ${Jt}%)`, Xt = `hsl(339.903, 82%, ${Jt}%)`, Zt = `hsl(257, 76%, ${Math.round(Jt * 1.82)}%)`, G = 4, K = _e(G), Qt = G, $t = "U", en = "R", tn = "S", nn = "P", rn = class {
892
+ }, qt = 49, Jt = `hsl(257, 76%, ${qt}%)`, Yt = `hsl(339.903, 82%, ${qt}%)`, Xt = `hsl(257, 76%, ${Math.round(qt * 1.82)}%)`, q = 4, J = ie(q), Zt = q, Qt = "U", $t = "R", en = "S", tn = "P", nn = class {
895
893
  constructor() {
896
894
  this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
897
895
  }
@@ -930,10 +928,10 @@ var qt = class {
930
928
  instruct() {
931
929
  this.log(`How to Build a Route:
932
930
  Add Point: Click on the map.
933
- Apply Smoothing: Press ${en}.
934
- Apply Simplification: Press ${tn}.
935
- Undo: Press ${$t}.
936
- Enable/Disable Preview: Press ${nn}.
931
+ Apply Smoothing: Press ${$t}.
932
+ Apply Simplification: Press ${en}.
933
+ Undo: Press ${Qt}.
934
+ Enable/Disable Preview: Press ${tn}.
937
935
  `, 16);
938
936
  }
939
937
  applyChaikinSmoothing(e, t, n) {
@@ -995,7 +993,7 @@ Enable/Disable Preview: Press ${nn}.
995
993
  let r = e.x, i = e.y, a = t.x, o = t.y, s = n.x, c = n.y;
996
994
  return Math.abs((c - o) * r - (s - a) * i + s * o - c * a) / (Math.sqrt((c - o) ** 2 + (s - a) ** 2) || 1e-10);
997
995
  }, r = (e, t, n, r) => {
998
- let i = d({
996
+ let i = ae({
999
997
  p0: e,
1000
998
  p1: t
1001
999
  }, {
@@ -1033,22 +1031,22 @@ Enable/Disable Preview: Press ${nn}.
1033
1031
  this._selected = Math.max(0, Math.min(e, this.points.length - 1));
1034
1032
  }
1035
1033
  };
1036
- function an({ enabled: e, scene: t }) {
1037
- let n = (0, W.useRef)(!1), r = (0, W.useRef)(1), i = (0, W.useMemo)(() => j(G, Yt), []), a = (0, W.useMemo)(() => j(G, Xt), []), o = (0, W.useMemo)(() => new rn(), []), s = (0, W.useRef)(new qt()), c = (0, W.useMemo)(() => {
1034
+ function rn({ enabled: e, scene: t }) {
1035
+ let n = (0, K.useRef)(!1), r = (0, K.useRef)(1), i = (0, K.useMemo)(() => f(q, Jt), []), a = (0, K.useMemo)(() => f(q, Yt), []), o = (0, K.useMemo)(() => new nn(), []), s = (0, K.useRef)(new Kt()), c = (0, K.useMemo)(() => {
1038
1036
  if (!t) return {};
1039
1037
  let e = t.rootLayer.children;
1040
1038
  return {
1041
- linesLayer: e.find((e) => e.name === De),
1042
- pointsLayer: e.find((e) => e.name === Oe)
1039
+ linesLayer: e.find((e) => e.name === ke),
1040
+ pointsLayer: e.find((e) => e.name === Ae)
1043
1041
  };
1044
- }, [t]), l = (0, W.useCallback)(() => {
1042
+ }, [t]), l = (0, K.useCallback)(() => {
1045
1043
  if (!c || !i || !a) return;
1046
1044
  let { linesLayer: e, pointsLayer: t } = c;
1047
1045
  if (!e || !t) return;
1048
1046
  let l = o.points, u = n.current;
1049
1047
  u ? t.children.length = 0 : t.children = l.map(({ x: e, y: t }, n) => ({
1050
1048
  source: n == o.selected ? a : i,
1051
- bounds: f(e, t, K, K, r.current)
1049
+ bounds: M(e, t, J, J, r.current)
1052
1050
  }));
1053
1051
  let d = [];
1054
1052
  for (let e = 1; e < l.length; e++) {
@@ -1058,44 +1056,44 @@ function an({ enabled: e, scene: t }) {
1058
1056
  p0: t,
1059
1057
  p1: n
1060
1058
  },
1061
- color: u ? Yt : Zt,
1062
- width: Qt
1059
+ color: u ? Jt : Xt,
1060
+ width: Zt
1063
1061
  });
1064
1062
  }
1065
- d.length ? e.children = d : e.children.length = 0, s.current.add(() => I(t, e)), o.instruct(), o.log(JSON.stringify(o.points));
1063
+ d.length ? e.children = d : e.children.length = 0, s.current.add(() => N(t, e)), o.instruct(), o.log(JSON.stringify(o.points));
1066
1064
  }, [
1067
1065
  o,
1068
1066
  c,
1069
1067
  i,
1070
1068
  a
1071
- ]), u = (0, W.useCallback)((e) => {
1069
+ ]), u = (0, K.useCallback)((e) => {
1072
1070
  let t = e.key.toUpperCase();
1073
1071
  o.execute(() => {
1074
1072
  switch (t) {
1075
- case $t:
1073
+ case Qt:
1076
1074
  e.preventDefault(), o.undo(), n.current = !1, l();
1077
1075
  break;
1078
- case en:
1076
+ case $t:
1079
1077
  e.preventDefault(), o.applySmoothing(), n.current = !1, l();
1080
1078
  break;
1081
- case tn:
1079
+ case en:
1082
1080
  e.preventDefault(), o.applySimplification(), n.current = !1, l();
1083
1081
  break;
1084
- case nn:
1082
+ case tn:
1085
1083
  e.preventDefault(), n.current = !n.current, l();
1086
1084
  break;
1087
1085
  }
1088
1086
  });
1089
- }, [o, l]), d = (0, W.useCallback)((e) => {
1087
+ }, [o, l]), d = (0, K.useCallback)((e) => {
1090
1088
  r.current = e;
1091
1089
  let { pointsLayer: t } = c;
1092
1090
  if (!t) return [];
1093
1091
  let n = [];
1094
1092
  return o.execute(() => {
1095
1093
  let e = t.children;
1096
- for (let t of e) t.bounds = f(t.bounds.center.x, t.bounds.center.y, K, K, r.current), n.push(t);
1094
+ for (let t of e) t.bounds = M(t.bounds.center.x, t.bounds.center.y, J, J, r.current), n.push(t);
1097
1095
  }), n;
1098
- }, [c, o]), p = (0, W.useCallback)((e) => {
1096
+ }, [c, o]), p = (0, K.useCallback)((e) => {
1099
1097
  o.execute(() => {
1100
1098
  o.add({
1101
1099
  x: e.x,
@@ -1103,16 +1101,16 @@ function an({ enabled: e, scene: t }) {
1103
1101
  }), o.select(o.points.length - 1), l();
1104
1102
  });
1105
1103
  }, [o, l]);
1106
- (0, W.useEffect)(() => {
1104
+ (0, K.useEffect)(() => {
1107
1105
  var t, n;
1108
1106
  if (!e || !(c != null && c.pointsLayer)) return;
1109
1107
  let { pointsLayer: i } = c;
1110
- r.current = (t = (n = b()) == null ? void 0 : n.state().pixelSize) == null ? 1 : t, o.execute(() => {
1108
+ r.current = (t = (n = te()) == null ? void 0 : n.state().pixelSize) == null ? 1 : t, o.execute(() => {
1111
1109
  o.restore(), l();
1112
1110
  }), i.onScale = ({ pixelSize: e }) => d(e);
1113
1111
  let a = s.current;
1114
- return a.add(() => I(i)), A(p), window.addEventListener("keyup", u), () => {
1115
- window.removeEventListener("keyup", u), A(), i.onScale = void 0, a.destroy();
1112
+ return a.add(() => N(i)), O(p), window.addEventListener("keyup", u), () => {
1113
+ window.removeEventListener("keyup", u), O(), i.onScale = void 0, a.destroy();
1116
1114
  };
1117
1115
  }, [
1118
1116
  e,
@@ -1126,13 +1124,13 @@ function an({ enabled: e, scene: t }) {
1126
1124
  }
1127
1125
  //#endregion
1128
1126
  //#region src/components/Map/traffic/useManageTraffic.ts
1129
- var on = 2, sn = on * 3.5, q = on * 12, J = q * .7, cn = 8, ln = 2, un = .6, dn = 8, fn = "transport_locations", pn = 150, mn = "#a4aab6", hn = 1e3, gn = 2e4, _n = 500;
1130
- function vn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1131
- let o = (0, W.useRef)(1), s = (0, W.useRef)(/* @__PURE__ */ new Map()), c = (0, W.useRef)(/* @__PURE__ */ new Map()), l = (0, W.useRef)(null), u = (0, W.useRef)(null), d = (0, W.useRef)(0), p = (0, W.useRef)(1), m = (0, W.useRef)(new qt()), h = (0, W.useRef)(/* @__PURE__ */ new Map()), g = (0, W.useRef)(hn), _ = (0, W.useRef)(/* @__PURE__ */ new Map()), v = (0, W.useRef)(void 0);
1132
- (0, W.useEffect)(() => {
1127
+ var an = 2, on = an * 3.5, Y = an * 12, X = Y * .7, sn = 8, cn = 2, ln = .6, un = 8, dn = "transport_locations", fn = 150, pn = "#a4aab6", mn = 1e3, hn = 2e4, gn = 500;
1128
+ function _n({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1129
+ let o = (0, K.useRef)(1), s = (0, K.useRef)(/* @__PURE__ */ new Map()), c = (0, K.useRef)(/* @__PURE__ */ new Map()), l = (0, K.useRef)(null), u = (0, K.useRef)(null), d = (0, K.useRef)(0), f = (0, K.useRef)(1), p = (0, K.useRef)(new Kt()), h = (0, K.useRef)(/* @__PURE__ */ new Map()), g = (0, K.useRef)(mn), _ = (0, K.useRef)(/* @__PURE__ */ new Map()), v = (0, K.useRef)(void 0);
1130
+ (0, K.useEffect)(() => {
1133
1131
  if (!e || !n) return;
1134
- let y = !1, x, S = n.rootLayer.children, C = c.current, T = s.current, E = m.current;
1135
- async function D() {
1132
+ let y = !1, b, x = n.rootLayer.children, C = c.current, w = s.current, T = p.current;
1133
+ async function E() {
1136
1134
  try {
1137
1135
  var e, n;
1138
1136
  let i;
@@ -1147,86 +1145,86 @@ function vn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1147
1145
  console.warn("useManageTraffic failed to get JSON", e);
1148
1146
  }
1149
1147
  if (y || !i || i.disabled || i.error) return;
1150
- o.current = xn((e = (n = b()) == null ? void 0 : n.state().pixelSize) == null ? 1 : e);
1148
+ o.current = bn((e = (n = te()) == null ? void 0 : n.state().pixelSize) == null ? 1 : e);
1151
1149
  let c = new Map(i.routes.map(({ id: e, color: t }) => [e, t])), l = /* @__PURE__ */ new Map();
1152
1150
  c.forEach((e) => {
1153
- l.set(e, Cn({
1154
- radius: sn,
1151
+ l.set(e, Sn({
1152
+ radius: on,
1155
1153
  color: e,
1156
1154
  scale: window.devicePixelRatio
1157
1155
  }));
1158
1156
  });
1159
- let m = Ne(), g = S.filter((e) => m.test(e.name)), v = Pe(), x = S.filter((e) => v.test(e.name));
1157
+ let p = Fe(), g = x.filter((e) => p.test(e.name)), v = Ie(), b = x.filter((e) => v.test(e.name));
1160
1158
  i.routes.slice(0, g.length).forEach(({ id: e, color: t, path: n, stops: r, hiddenPoints: i }, a) => {
1161
1159
  h.current.set(e, n);
1162
1160
  let s = g[a];
1163
1161
  if (s) {
1164
1162
  var c;
1165
- let e = new Map((c = i == null ? void 0 : i.map((e) => [Q(e), e])) == null ? [] : c);
1163
+ let e = new Map((c = i == null ? void 0 : i.map((e) => [jn(e), e])) == null ? [] : c);
1166
1164
  for (let r = 1; r < n.length; r++) {
1167
1165
  let i = n[r - 1], a = n[r];
1168
- e.has(Q(i)) || e.has(Q(a)) || s.children.push({
1166
+ e.has(jn(i)) || e.has(jn(a)) || s.children.push({
1169
1167
  points: {
1170
1168
  p0: i,
1171
1169
  p1: a
1172
1170
  },
1173
1171
  color: t,
1174
- width: on
1172
+ width: an
1175
1173
  });
1176
1174
  }
1177
- s.children.length && E.add(() => I(s));
1175
+ s.children.length && T.add(() => N(s));
1178
1176
  }
1179
- let u = x[a], d = l.get(t);
1177
+ let u = b[a], d = l.get(t);
1180
1178
  u && d && r != null && r.length && (r.forEach((e) => {
1181
1179
  u.children.push({
1182
1180
  source: d,
1183
- bounds: f(e.x, e.y, ...Y(d), o.current)
1181
+ bounds: M(e.x, e.y, ...Z(d), o.current)
1184
1182
  });
1185
- }), u.children.length && E.add(() => I(u)));
1183
+ }), u.children.length && T.add(() => N(u)));
1186
1184
  });
1187
- let D = S.find((e) => e.name === L);
1188
- if (!D) {
1189
- console.warn(`useManageTraffic: the scene has no "${L}" layer`);
1185
+ let E = x.find((e) => e.name === I);
1186
+ if (!E) {
1187
+ console.warn(`useManageTraffic: the scene has no "${I}" layer`);
1190
1188
  return;
1191
1189
  }
1192
- let j = /* @__PURE__ */ new Map();
1193
- D.onScale = ({ pixelSize: e }) => {
1194
- o.current = xn(e);
1190
+ let A = /* @__PURE__ */ new Map();
1191
+ E.onScale = ({ pixelSize: e }) => {
1192
+ o.current = bn(e);
1195
1193
  let t = [];
1196
- for (let e of x) {
1194
+ for (let e of b) {
1197
1195
  let n = e.children;
1198
1196
  for (let e of n) {
1199
1197
  let n = e.source;
1200
- e.bounds = f(e.bounds.center.x, e.bounds.center.y, ...Y(n), o.current, e.bounds.rotation), t.push(e);
1198
+ e.bounds = M(e.bounds.center.x, e.bounds.center.y, ...Z(n), o.current, e.bounds.rotation), t.push(e);
1201
1199
  }
1202
1200
  }
1203
1201
  for (let e of s.current.values()) {
1204
1202
  let n = e.source;
1205
- e.bounds = f(e.bounds.center.x, e.bounds.center.y, ...Y(n), o.current, e.bounds.rotation), t.push(e);
1203
+ e.bounds = M(e.bounds.center.x, e.bounds.center.y, ...Z(n), o.current, e.bounds.rotation), t.push(e);
1206
1204
  }
1207
1205
  return t;
1208
- }, E.add(() => I(D)), c.forEach((e, t) => {
1209
- j.set(t, wn({
1206
+ }, T.add(() => N(E)), c.forEach((e, t) => {
1207
+ A.set(t, Cn({
1210
1208
  id: t,
1211
- width: q,
1212
- height: q,
1209
+ width: Y,
1210
+ height: Y,
1213
1211
  color: e,
1214
1212
  scale: window.devicePixelRatio
1215
1213
  }));
1216
1214
  });
1217
- let te = wn({
1215
+ let ee = Cn({
1218
1216
  id: "orphan",
1219
- width: q,
1220
- height: q,
1221
- color: mn,
1217
+ width: Y,
1218
+ height: Y,
1219
+ color: pn,
1222
1220
  scale: window.devicePixelRatio
1223
- }), M = null;
1221
+ }), j = null;
1224
1222
  try {
1225
1223
  let e = await a(`${t}icons/bus-white.svg`);
1226
1224
  if (y) return;
1227
- M = ee(e, J, J, window.devicePixelRatio);
1228
- let { width: n, height: r } = w(e, J, J);
1229
- $.set(M, [n, r]);
1225
+ j = m(e, X, X, window.devicePixelRatio);
1226
+ let { width: n, height: r } = S(e, X, X);
1227
+ $.set(j, [n, r]);
1230
1228
  } catch (e) {
1231
1229
  console.error(e);
1232
1230
  }
@@ -1234,59 +1232,59 @@ function vn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1234
1232
  try {
1235
1233
  var t;
1236
1234
  let n = JSON.parse(e.data);
1237
- if (n.type !== fn) return;
1235
+ if (n.type !== dn) return;
1238
1236
  let r = e.timeStamp || performance.now();
1239
- p.current = Math.round(r - d.current), d.current = r;
1240
- let i = Math.max((t = p.current) == null ? _n : t, _n), a = D.children, s = !1;
1237
+ f.current = Math.round(r - d.current), d.current = r;
1238
+ let i = Math.max((t = f.current) == null ? gn : t, gn), a = E.children, s = !1;
1241
1239
  n.data.forEach(({ id: e, x: t, y: n, route_id: r, hidden: c }) => {
1242
1240
  var l;
1243
1241
  if (C.has(e)) {
1244
1242
  var u;
1245
1243
  (u = C.get(e)) == null || u(), C.delete(e);
1246
1244
  }
1247
- let d = T.get(e), p = (l = T.get(X(e))) == null ? null : l;
1248
- if (c && d && p) {
1249
- d.hidden = !0, p.hidden = !0, E.add(() => I(d, p));
1245
+ let d = w.get(e), f = (l = w.get(Tn(e))) == null ? null : l;
1246
+ if (c && d && f) {
1247
+ d.hidden = !0, f.hidden = !0, T.add(() => N(d, f));
1250
1248
  return;
1251
1249
  }
1252
1250
  if (_.current.set(e, performance.now()), !d) {
1253
- var m;
1254
- let i = (m = j.get(r)) == null ? te : m, c = {
1251
+ var p;
1252
+ let i = (p = A.get(r)) == null ? ee : p, c = {
1255
1253
  source: i,
1256
- bounds: f(t, n, ...Y(i), o.current, 0)
1254
+ bounds: M(t, n, ...Z(i), o.current, 0)
1257
1255
  };
1258
- if (T.set(e, c), M) {
1259
- let r = X(e), i = {
1260
- source: M,
1261
- bounds: f(t, n, ...Y(M), o.current, 0)
1256
+ if (w.set(e, c), j) {
1257
+ let r = Tn(e), i = {
1258
+ source: j,
1259
+ bounds: M(t, n, ...Z(j), o.current, 0)
1262
1260
  };
1263
- En(i), M.setAttribute("id", r), T.set(r, i), a.push(c, i);
1261
+ le(i), j.setAttribute("id", r), w.set(r, i), a.push(c, i);
1264
1262
  } else a.push(c);
1265
1263
  s = !0;
1266
1264
  return;
1267
1265
  }
1268
- let g = d.bounds.center, v = An(g, {
1266
+ let m = d.bounds.center, g = kn(m, {
1269
1267
  x: t,
1270
1268
  y: n
1271
1269
  }, h.current.get(r));
1272
- if (v.reduce((e, t, n) => n === 0 ? e : e + Tn(v[n - 1], t), 0) >= pn || document.hidden) Dn({
1273
- updateQueue: E,
1270
+ if (g.reduce((e, t, n) => n === 0 ? e : e + wn(g[n - 1], t), 0) >= fn || document.hidden) En({
1271
+ updateQueue: T,
1274
1272
  vehicle: d,
1275
- vehicleFinery: p,
1273
+ vehicleFinery: f,
1276
1274
  x: t,
1277
1275
  y: n,
1278
1276
  scale: o.current,
1279
- angle: Sn(d.bounds.center, {
1277
+ angle: xn(d.bounds.center, {
1280
1278
  x: t,
1281
1279
  y: n
1282
1280
  })
1283
1281
  });
1284
1282
  else {
1285
- let t = jn(v, i, (e) => {
1286
- Dn({
1287
- updateQueue: E,
1283
+ let t = An(g, i, (e) => {
1284
+ En({
1285
+ updateQueue: T,
1288
1286
  vehicle: d,
1289
- vehicleFinery: p,
1287
+ vehicleFinery: f,
1290
1288
  x: e.x,
1291
1289
  y: e.y,
1292
1290
  scale: o.current,
@@ -1295,45 +1293,45 @@ function vn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1295
1293
  });
1296
1294
  C.set(e, t);
1297
1295
  }
1298
- }), s && E.add(() => I(D));
1296
+ }), s && T.add(() => N(E));
1299
1297
  } catch (e) {
1300
1298
  console.error("handleSocketMessage", e);
1301
1299
  }
1302
- }, d.current = performance.now(), O(), window.addEventListener("online", k), A(i.config ? (Number(i.config.vehicle_inactive_interval) || 20) * 1e3 : gn);
1300
+ }, d.current = performance.now(), D(), window.addEventListener("online", O), k(i.config ? (Number(i.config.vehicle_inactive_interval) || 20) * 1e3 : hn);
1303
1301
  } catch (e) {
1304
1302
  console.warn(e);
1305
1303
  }
1306
1304
  }
1307
- D();
1308
- function O() {
1305
+ E();
1306
+ function D() {
1309
1307
  var e, t;
1310
1308
  y || ((e = l.current) == null ? void 0 : e.readyState) === WebSocket.OPEN || ((t = l.current) == null ? void 0 : t.readyState) === WebSocket.CONNECTING || (l.current = new WebSocket(i), l.current.onmessage = u.current, l.current.onopen = () => {
1311
- g.current = hn;
1309
+ g.current = mn;
1312
1310
  }, l.current.onclose = () => {
1313
- y || !navigator.onLine || (x = window.setTimeout(O, g.current), g.current = Math.min(g.current * 2, 3e4));
1311
+ y || !navigator.onLine || (b = window.setTimeout(D, g.current), g.current = Math.min(g.current * 2, 3e4));
1314
1312
  });
1315
1313
  }
1316
- function k() {
1317
- O();
1314
+ function O() {
1315
+ D();
1318
1316
  }
1319
- function A(e) {
1317
+ function k(e) {
1320
1318
  clearInterval(v.current), !y && (v.current = window.setInterval(() => {
1321
1319
  let t = performance.now(), n = [], r = [];
1322
1320
  _.current.forEach((i, a) => {
1323
1321
  if (t - i < e) return;
1324
- let o = T.get(a);
1322
+ let o = w.get(a);
1325
1323
  o && (o.hidden = !0, r.push(o), n.push(a));
1326
- let s = X(a), c = T.get(s);
1324
+ let s = Tn(a), c = w.get(s);
1327
1325
  c && (c.hidden = !0, r.push(c), n.push(s));
1328
- }), r.length && E.add(() => I(...r)), n.forEach((e) => _.current.delete(e));
1326
+ }), r.length && T.add(() => N(...r)), n.forEach((e) => _.current.delete(e));
1329
1327
  }, e));
1330
1328
  }
1331
1329
  return () => {
1332
- y = !0, clearTimeout(x);
1330
+ y = !0, clearTimeout(b);
1333
1331
  let e = l.current;
1334
1332
  e && (e.onopen = null, e.onmessage = null, e.onclose = null, e.close(), l.current = null), u.current = null;
1335
- let t = S.find((e) => e.name === L);
1336
- t && (t.onScale = void 0), C.forEach((e) => e == null ? void 0 : e()), C.clear(), T.clear(), E.destroy(), window.removeEventListener("online", k), clearInterval(v.current);
1333
+ let t = x.find((e) => e.name === I);
1334
+ t && (t.onScale = void 0), C.forEach((e) => e == null ? void 0 : e()), C.clear(), w.clear(), T.destroy(), window.removeEventListener("online", O), clearInterval(v.current);
1337
1335
  };
1338
1336
  }, [
1339
1337
  e,
@@ -1342,75 +1340,69 @@ function vn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1342
1340
  i
1343
1341
  ]);
1344
1342
  }
1345
- function Y(e) {
1343
+ function Z(e) {
1346
1344
  let t = $.get(e);
1347
1345
  if (!t) throw Error("useManageTraffic: an icon was drawn without a recorded CSS size");
1348
1346
  return t;
1349
1347
  }
1350
- function yn(e) {
1348
+ function vn(e) {
1351
1349
  return e * 2;
1352
1350
  }
1353
- function bn(e, t) {
1354
- let n = t * un, r = dn * 2;
1355
- return [t + ln + n / 2 + r, e + n + ln + r];
1351
+ function yn(e, t) {
1352
+ let n = t * ln, r = un * 2;
1353
+ return [t + cn + n / 2 + r, e + n + cn + r];
1356
1354
  }
1357
- function xn(e) {
1358
- return Math.min(e || 1, cn);
1355
+ function bn(e) {
1356
+ return Math.min(e || 1, sn);
1359
1357
  }
1360
- function Sn(e, t) {
1361
- return ye(e, t);
1358
+ function xn(e, t) {
1359
+ return xe(e, t);
1362
1360
  }
1363
- function Cn({ radius: e, scale: t, color: n }) {
1364
- let r = Math.ceil(e * 2 * t), i = ge(r, r, t);
1365
- $.set(i, [yn(e), yn(e)]);
1361
+ function Sn({ radius: e, scale: t, color: n }) {
1362
+ let r = Math.ceil(e * 2 * t), i = k(r, r, t);
1363
+ $.set(i, [vn(e), vn(e)]);
1366
1364
  let a = i.getContext("2d");
1367
1365
  a.imageSmoothingEnabled = !1;
1368
1366
  let o = r / 2, s = e * .78, c = e * .33;
1369
1367
  return a.translate(o, o), a.scale(t, t), a.beginPath(), a.arc(0, 0, e, 0, 2 * Math.PI), a.fillStyle = "#FFFFFF", a.fill(), a.beginPath(), a.arc(0, 0, s, 0, 2 * Math.PI), a.fillStyle = n, a.fill(), a.beginPath(), a.arc(0, 0, c, 0, 2 * Math.PI), a.fillStyle = "#FFFFFF", a.fill(), i;
1370
1368
  }
1371
- function wn({ id: e, width: t, height: n, color: r, scale: i }) {
1372
- let a = ln * i, o = t / 2 * i, s = n * i, c = un, l = .01, u = s * c, d = s, f = dn * i, p = d + a + u / 2 + f * 2, m = o * 2 + u + a + f * 2, h = ge(p, m, i);
1373
- $.set(h, bn(t, n)), h.setAttribute("id", e);
1369
+ function Cn({ id: e, width: t, height: n, color: r, scale: i }) {
1370
+ let a = cn * i, o = t / 2 * i, s = n * i, c = ln, l = .01, u = s * c, d = s, f = un * i, p = d + a + u / 2 + f * 2, m = o * 2 + u + a + f * 2, h = k(p, m, i);
1371
+ $.set(h, yn(t, n)), h.setAttribute("id", e);
1374
1372
  let g = h.getContext("2d"), _ = p / 2, v = m / 2;
1375
1373
  g.save(), g.translate(_, v), g.rotate(-Math.PI / 2), g.translate(-_, -v);
1376
1374
  let y = _, b = v - d / 2 + o, x = b + u;
1377
1375
  return g.shadowColor = "rgba(16, 24, 40, 0.2)", g.shadowBlur = f / 2, g.beginPath(), g.arc(y, b, o, Math.PI, 0, !1), g.bezierCurveTo(y + o, b + s * .3, y + l * o, x, y, x), g.bezierCurveTo(y - l * o, x, y - o, b + s * .3, y - o, b), g.closePath(), g.fillStyle = r, g.fill(), g.strokeStyle = "#FFFFFF", g.lineWidth = a, g.stroke(), g.restore(), h;
1378
1376
  }
1379
- function Tn(e, t) {
1380
- return ue(e, t);
1377
+ function wn(e, t) {
1378
+ return ce(e, t);
1381
1379
  }
1382
- function X(e) {
1380
+ function Tn(e) {
1383
1381
  return `${e}_finery`;
1384
1382
  }
1385
- function En(e) {
1386
- e.onRoll = ({ roll: t }) => {
1387
- let { bounds: n } = e;
1388
- if (t !== n.rotation) return n.rotate(t - n.rotation, n), [e];
1389
- };
1390
- }
1391
- function Dn({ updateQueue: e, vehicle: t, vehicleFinery: n, x: r, y: i, scale: a, angle: o }) {
1383
+ function En({ updateQueue: e, vehicle: t, vehicleFinery: n, x: r, y: i, scale: a, angle: o }) {
1392
1384
  let s = t.source;
1393
- if (t.bounds = f(r, i, ...Y(s), a, o), t.hidden = !1, n) {
1385
+ if (t.bounds = M(r, i, ...Z(s), a, o), t.hidden = !1, n) {
1394
1386
  let { size: a, rotation: o, elevation: s } = n.bounds;
1395
1387
  n.bounds = new F({
1396
1388
  x: r,
1397
1389
  y: i
1398
- }, a, o, s), n.hidden = !1, e.add(() => I(n, t));
1399
- } else e.add(() => I(t));
1390
+ }, a, o, s), n.hidden = !1, e.add(() => N(n, t));
1391
+ } else e.add(() => N(t));
1400
1392
  }
1401
- function Z(e, t, n) {
1393
+ function Q(e, t, n) {
1402
1394
  return {
1403
1395
  x: e.x + (t.x - e.x) * n,
1404
1396
  y: e.y + (t.y - e.y) * n
1405
1397
  };
1406
1398
  }
1407
- function On(e, t) {
1399
+ function Dn(e, t) {
1408
1400
  let n = Infinity, r = {
1409
1401
  index: 0,
1410
1402
  t: 0
1411
1403
  };
1412
1404
  for (let i = 0; i < t.length - 1; i++) {
1413
- let a = t[i], o = t[i + 1], s = o.x - a.x, c = o.y - a.y, l = s * s + c * c, u = l ? ((e.x - a.x) * s + (e.y - a.y) * c) / l : 0, d = Math.max(0, Math.min(1, u)), f = Tn(e, Z(a, o, d));
1405
+ let a = t[i], o = t[i + 1], s = o.x - a.x, c = o.y - a.y, l = s * s + c * c, u = l ? ((e.x - a.x) * s + (e.y - a.y) * c) / l : 0, d = Math.max(0, Math.min(1, u)), f = wn(e, Q(a, o, d));
1414
1406
  f < n && (n = f, r = {
1415
1407
  index: i,
1416
1408
  t: d
@@ -1418,26 +1410,26 @@ function On(e, t) {
1418
1410
  }
1419
1411
  return r;
1420
1412
  }
1421
- function kn(e, t, n) {
1422
- let r = Tn(e, t), i = Math.max(2, Math.ceil(r / n) + 1), a = [];
1413
+ function On(e, t, n) {
1414
+ let r = wn(e, t), i = Math.max(2, Math.ceil(r / n) + 1), a = [];
1423
1415
  for (let n = 0; n < i; n++) {
1424
- let r = Z(e, t, n / (i - 1));
1416
+ let r = Q(e, t, n / (i - 1));
1425
1417
  a.push(r);
1426
1418
  }
1427
1419
  return a;
1428
1420
  }
1429
- function An(e, t, n) {
1430
- if (!n || !n.length) return kn(e, t, 10);
1431
- let r = On(e, n), i = On(t, n), a = [], o = (e) => a.push(e);
1432
- r.index + 1 < n.length ? o(Z(n[r.index], n[r.index + 1], r.t)) : o(n[r.index]);
1421
+ function kn(e, t, n) {
1422
+ if (!n || !n.length) return On(e, t, 10);
1423
+ let r = Dn(e, n), i = Dn(t, n), a = [], o = (e) => a.push(e);
1424
+ r.index + 1 < n.length ? o(Q(n[r.index], n[r.index + 1], r.t)) : o(n[r.index]);
1433
1425
  for (let e = r.index + 1; e <= i.index && e < n.length; e++) o(n[e]);
1434
- return i.index + 1 < n.length ? o(Z(n[i.index], n[i.index + 1], i.t)) : o(n[i.index]), a;
1426
+ return i.index + 1 < n.length ? o(Q(n[i.index], n[i.index + 1], i.t)) : o(n[i.index]), a;
1435
1427
  }
1436
- function jn(e, t, n, r) {
1428
+ function An(e, t, n, r) {
1437
1429
  if (e.length < 2) return () => {};
1438
1430
  let i = null, a, o = [], s = 0;
1439
1431
  for (let t = 0; t < e.length - 1; t++) {
1440
- let n = ue(e[t], e[t + 1]);
1432
+ let n = ce(e[t], e[t + 1]);
1441
1433
  o.push(n), s += n;
1442
1434
  }
1443
1435
  let c = (l) => {
@@ -1449,14 +1441,14 @@ function jn(e, t, n, r) {
1449
1441
  n({
1450
1442
  x: h.x + (g.x - h.x) * v,
1451
1443
  y: h.y + (g.y - h.y) * v,
1452
- angle: ye(h, g)
1444
+ angle: xe(h, g)
1453
1445
  }), d < 1 ? a = requestAnimationFrame(c) : r && r();
1454
1446
  };
1455
1447
  return a = requestAnimationFrame(c), () => {
1456
1448
  a && cancelAnimationFrame(a);
1457
1449
  };
1458
1450
  }
1459
- function Q(e) {
1451
+ function jn(e) {
1460
1452
  return `${e.x},${e.y}`;
1461
1453
  }
1462
1454
  var $ = /* @__PURE__ */ new WeakMap();
@@ -1465,19 +1457,19 @@ var $ = /* @__PURE__ */ new WeakMap();
1465
1457
  function Mn(e) {
1466
1458
  var t;
1467
1459
  let n = u.kioskData;
1468
- return !n || !(!k() || n.z === ((t = c.routeStore.currentRouteLayer) == null ? void 0 : t.name)) ? e : N.fromUnion(e, new N(n.x, n.y, 1, 1));
1460
+ return !n || !(!be() || n.z === ((t = c.routeStore.currentRouteLayer) == null ? void 0 : t.name)) ? e : E.fromUnion(e, new E(n.x, n.y, 1, 1));
1469
1461
  }
1470
1462
  //#endregion
1471
1463
  //#region src/components/Map/framing-rect.ts
1472
1464
  function Nn() {
1473
1465
  let e = u.canvasVisibleRectPx;
1474
- return u.shouldShiftMapRect ? u.rtl ? N.fromMinMax(e.min, {
1466
+ return u.shouldShiftMapRect ? u.rtl ? E.fromMinMax(e.min, {
1475
1467
  x: e.max.x - u.overlayWidthPx,
1476
1468
  y: e.max.y
1477
- }) : N.fromMinMax({
1469
+ }) : E.fromMinMax({
1478
1470
  x: e.min.x + u.overlayWidthPx,
1479
1471
  y: e.min.y
1480
1472
  }, e.max) : e;
1481
1473
  }
1482
1474
  //#endregion
1483
- export { Kt as a, ft as c, ct as d, an as i, mt as l, Mn as n, Ut as o, vn as r, Bt as s, Nn as t, ht as u };
1475
+ export { Gt as a, mt as c, ut as d, rn as i, gt as l, Mn as n, Ht as o, _n as r, zt as s, Nn as t, _t as u };