@expofp/floorplan 3.45.2 → 3.45.4

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 (96) hide show
  1. package/dist/browser/{Button-Crfda6Lz.js → Button-CftScIdx.js} +5 -5
  2. package/dist/browser/{CookieConsent-2RwTH-WJ.js → CookieConsent-ByS7cPh9.js} +7 -7
  3. package/dist/browser/{Debug-Kc7acuW6.js → Debug-CDb2j0OF.js} +7 -7
  4. package/dist/browser/{DebugTools-Bcy_rIA6.js → DebugTools-jdOEpl8C.js} +6 -6
  5. package/dist/browser/{Demo-DtKyfXaG.js → Demo-CTLfudbP.js} +9 -9
  6. package/dist/browser/{Free-DIldGHdP.js → Free-C5QMNYRI.js} +10 -10
  7. package/dist/browser/{GalleryContainer-BkkCj4Od.js → GalleryContainer-BUhs_oBk.js} +11 -11
  8. package/dist/browser/{GpsLoader-Ddbsa0Xv.js → GpsLoader-BSWIXvfs.js} +13 -13
  9. package/dist/browser/{KioskStore-l3coFOMN.js → KioskStore-BC-gl1wE.js} +9 -9
  10. package/dist/browser/{LayerStore-Clz_ooRC.js → LayerStore-CONC-3Gj.js} +25 -25
  11. package/dist/browser/{MaplibreAdapter-CcyHg1C8.js → MaplibreAdapter-BXKE5rxG.js} +28 -28
  12. package/dist/browser/{ModalContainer-BQgezeI0.js → ModalContainer-BpM9aPfz.js} +10 -10
  13. package/dist/browser/{PermissionNotice-CfNcWjwj.js → PermissionNotice-BM5kQYe7.js} +6 -6
  14. package/dist/browser/{RouteStore-DmI3xo6Y.js → RouteStore-C7okfu9_.js} +9 -9
  15. package/dist/browser/{SetKioskMode-CEKnGx3s.js → SetKioskMode-DabqQvMH.js} +11 -11
  16. package/dist/browser/{ShowKiosk-DX5_HdN1.js → ShowKiosk-DvOBEV0v.js} +10 -10
  17. package/dist/browser/{UIState-BtsQF4Qd.js → UIState-Ce9F8YFe.js} +229 -230
  18. package/dist/browser/{ViewerMenuPanel-DE1PS7On.js → ViewerMenuPanel-FsMuHE9m.js} +10 -10
  19. package/dist/browser/{add-debug-secret-listener-DrTVYjLv.js → add-debug-secret-listener-DEPSZS-A.js} +1 -1
  20. package/dist/browser/{adopt-global-settings-D3Ezjf-T.js → adopt-global-settings-ptJCSHgd.js} +9 -9
  21. package/dist/browser/{boolean-editor-BWZ5tP5I.js → boolean-editor-C_RdXFiI.js} +9 -9
  22. package/dist/browser/{bootIntercom-BYA7uJn4.js → bootIntercom-CnpSeS09.js} +2 -2
  23. package/dist/browser/bundle.json +85 -85
  24. package/dist/browser/{camera-events-JR26Hdcu.js → camera-events-BYUTGOGy.js} +1 -1
  25. package/dist/browser/{classnames-CCXT3oJS.js → classnames-I5odALD0.js} +2 -2
  26. package/dist/browser/{client-Dn9Zr5pe.js → client-TnBerOtS.js} +5 -5
  27. package/dist/browser/{components-xHw_gBa5.js → components-CEGOfvRn.js} +48 -48
  28. package/dist/browser/{create-live-plan-DDxPT-Pe.js → create-live-plan-msjLUPAb.js} +14 -14
  29. package/dist/browser/{debug-context-CcikkQPi.js → debug-context-8s7JYsHP.js} +5 -5
  30. package/dist/browser/{debug-overlay-BlVOrhsh.js → debug-overlay-BEEAevvE.js} +10 -10
  31. package/dist/browser/{debug-ui-ByJjooBA.js → debug-ui-BWDU1_DK.js} +6 -6
  32. package/dist/browser/{dist-zf4NxUGc.js → dist-B7taugxI.js} +5 -5
  33. package/dist/browser/{dist-Cf6IReKz.js → dist-BL9v1eQu.js} +3 -3
  34. package/dist/browser/{dist-D5tNj-0Y.js → dist-Dg8H-fF9.js} +6 -6
  35. package/dist/browser/{efp-debug-init-al55q10u.js → efp-debug-init-3uYSkVQl.js} +3 -3
  36. package/dist/browser/{enum-editor-BBB3sWCH.js → enum-editor-DiE-Q-gC.js} +4 -4
  37. package/dist/browser/{es5-CVG4aGRa.js → es5-D2KUWXXM.js} +2 -2
  38. package/dist/browser/{event-head-DyDtmXOE.js → event-head-DXLhGPVQ.js} +1 -1
  39. package/dist/browser/{event-not-found-DQhH655U.js → event-not-found-ClTL2wLx.js} +3 -3
  40. package/dist/browser/{event-scoped-cache-BRqlbRWj.js → event-scoped-cache-CcA_qeS6.js} +2 -2
  41. package/dist/browser/{expofpUrl-Cnkbj5KP.js → expofpUrl-BTeumhPB.js} +1 -1
  42. package/dist/browser/{exports-CriZf319.js → exports-BezdpCeZ.js} +1 -1
  43. package/dist/browser/{favicon-BN2jB3cD.js → favicon-eEoLTD6j.js} +1 -1
  44. package/dist/browser/{fetch-retry.umd-TufkXQUc.js → fetch-retry.umd-o-6hecKO.js} +2 -2
  45. package/dist/browser/{flex-Co7qWs_0.js → flex-DC-YFhOp.js} +5 -5
  46. package/dist/browser/{floorplan.loader-uU5jSX4L.js → floorplan.loader-BMR6104c.js} +12 -12
  47. package/dist/browser/{floorplan.ready-DpsnIaye.js → floorplan.ready-DxP00yOP.js} +23 -23
  48. package/dist/browser/{framing-rect-BR93grUW.js → framing-rect-B28m3lJd.js} +262 -245
  49. package/dist/browser/{freeBanner-oBXl72SS.js → freeBanner-CxeeG1v1.js} +2 -2
  50. package/dist/browser/{fuse-Dm-WhNtD.js → fuse-CM3BvYBC.js} +2 -2
  51. package/dist/browser/{i18n-Brp2h-sf.js → i18n-CyzfIlqQ.js} +6 -6
  52. package/dist/browser/index.js +17 -17
  53. package/dist/browser/{index.module-kQtZEvIK.js → index.module-D9cgjYhA.js} +4 -4
  54. package/dist/browser/{init-ui-CtgiMn-b.js → init-ui-7k8cHFZw.js} +9 -9
  55. package/dist/browser/{integrateKiosk-Ci0Kelz8.js → integrateKiosk-DUFIUi05.js} +5 -5
  56. package/dist/browser/{is-debug-Dl85G8le.js → is-debug-BAIQHfxq.js} +4 -4
  57. package/dist/browser/{is-own-domain-rn4zdSxw.js → is-own-domain-C_JX2ZHR.js} +1 -1
  58. package/dist/browser/{is-webview-BcPE_KnA.js → is-webview-BU0Pek8w.js} +1 -1
  59. package/dist/browser/{jsx-runtime-DjUvqNZ4.js → jsx-runtime-CtimPtPq.js} +2 -2
  60. package/dist/browser/{kiosk-mode-CgDJr0Cy.js → kiosk-mode-CV-M1Zz8.js} +3 -3
  61. package/dist/browser/{kiosk-record-DSAURYxo.js → kiosk-record-Du4IFKBR.js} +1 -1
  62. package/dist/browser/{kioskApi-BpS2oCDp.js → kioskApi-BVRzmuDX.js} +7 -7
  63. package/dist/browser/{lib-D722Pg4z.js → lib-n3_ONTp3.js} +3 -3
  64. package/dist/browser/{loadImage-7lVuG7mT.js → loadImage-DqAC23xl.js} +1 -1
  65. package/dist/browser/{logDeviceInfo-dGpUXc_1.js → logDeviceInfo-B47wOFn-.js} +9 -9
  66. package/dist/browser/{mobx-C7iTPB-l.js → mobx-BxS2198S.js} +4 -4
  67. package/dist/browser/{mobx.module-BnXrY7HW.js → mobx.module-DBXspHzN.js} +1 -1
  68. package/dist/browser/{optional-boolean-editor-BwkRtcEs.js → optional-boolean-editor-DusM7rb0.js} +3 -3
  69. package/dist/browser/{optional-enum-editor-DiYEddI4.js → optional-enum-editor-BKyAfZ8e.js} +4 -4
  70. package/dist/browser/{optional-string-editor-BRCJlGU6.js → optional-string-editor-sA0aHiGB.js} +4 -4
  71. package/dist/browser/{particles.min-Cyv2g1i1.js → particles.min-B7kv19nN.js} +2 -2
  72. package/dist/browser/{react-GM02QWsb.js → react-Cohf8rUU.js} +2 -2
  73. package/dist/browser/{react-dom-B8t0es6H.js → react-dom-tyj4-_-C.js} +3 -3
  74. package/dist/browser/{rolldown-runtime-BE0XSRfw.js → rolldown-runtime-Bcr_gA0_.js} +1 -1
  75. package/dist/browser/{scene-DWydbLeX.js → scene-BBPTWEUE.js} +38 -34
  76. package/dist/browser/{scheduler-DPogrQnC.js → scheduler-CrY9mG_c.js} +2 -2
  77. package/dist/browser/{select-hn9vWuOi.js → select-D19r5W1a.js} +10 -10
  78. package/dist/browser/{settings-CFSsnNiW.js → settings-D4-jxTxB.js} +2 -2
  79. package/dist/browser/{settings-item-B78SzeBC.js → settings-item-CIt7SQG4.js} +6 -6
  80. package/dist/browser/{store-_wn5u-g_.js → store-CjCKsoXy.js} +2 -2
  81. package/dist/browser/{string-editor-DG_fQEtF.js → string-editor-D8F1eTpQ.js} +4 -4
  82. package/dist/browser/{text-field-MkszrHMN.js → text-field-BYYweuSY.js} +5 -5
  83. package/dist/browser/{theme-GhRMjRAR.js → theme-q6cCoTLz.js} +8 -8
  84. package/dist/browser/{ui-R9Wb5JLi.js → ui-CYUl2cf1.js} +8 -8
  85. package/dist/browser/{useRenderTarget-CmmLzvq6.js → useRenderTarget-Bqdt8QZX.js} +4 -4
  86. package/dist/browser/{viewport-P1Fw2W4S.js → viewport-D4MnXYrN.js} +3 -3
  87. package/dist/browser/{wayfinding-CtfrReXU.js → wayfinding-CulSEPiv.js} +5 -5
  88. package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.d.ts +20 -0
  89. package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.js +1 -0
  90. package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +20 -11
  91. package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
  92. package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
  93. package/dist/esm/components/Map/pointer.js +1 -1
  94. package/dist/esm/components/Maplibre/usePoiMarkers.js +1 -1
  95. package/dist/esm/components/Maplibre/utils/poi-marker-hit-test.d.ts +6 -6
  96. 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.2" };
4
+ e.SENTRY_RELEASE = { id: "3.45.4" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1f72e573-a51b-4df9-a889-f2d1841332df", e._sentryDebugIdIdentifier = "sentry-dbid-1f72e573-a51b-4df9-a889-f2d1841332df");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "173c34ad-acb0-4b03-a6c8-aac622d6bb41", e._sentryDebugIdIdentifier = "sentry-dbid-173c34ad-acb0-4b03-a6c8-aac622d6bb41");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-BE0XSRfw.js";
10
- import { g as t } from "./i18n-Brp2h-sf.js";
11
- import { t as n } from "./react-GM02QWsb.js";
12
- import { i as r, l as i } from "./mobx.module-BnXrY7HW.js";
13
- import { t as a } from "./loadImage-7lVuG7mT.js";
14
- import { r as o } from "./debug-context-CcikkQPi.js";
15
- import { a as s, l as c, t as l, u } from "./store-_wn5u-g_.js";
16
- import { $t as d, At as f, D as p, Ft as m, G as h, Gt as g, It as _, J as v, Lt as y, Mt as b, Nt as x, Pt as S, Qt as C, Rt as w, St as T, Tt as E, Vt as D, W as O, X as k, Xt as A, Y as ee, Z as te, _t as ne, an as re, at as ie, b as ae, bt as oe, d as se, en as ce, et as le, f as ue, ft as j, i as de, in as M, it as fe, jt as N, kt as P, nn as pe, q as me, qt as F, rt as he, t as ge, vt as _e, wt as ve, x as ye, xt as be } from "./LayerStore-Clz_ooRC.js";
17
- import { _ as xe, l as Se } from "./wayfinding-CtfrReXU.js";
18
- import { i as Ce, n as we } from "./viewport-P1Fw2W4S.js";
19
- import { r as Te } from "./scene-DWydbLeX.js";
9
+ import { r as e } from "./rolldown-runtime-Bcr_gA0_.js";
10
+ import { g as t } from "./i18n-CyzfIlqQ.js";
11
+ import { t as n } from "./react-Cohf8rUU.js";
12
+ import { i as r, l as i } from "./mobx.module-DBXspHzN.js";
13
+ import { t as a } from "./loadImage-DqAC23xl.js";
14
+ import { r as o } from "./debug-context-8s7JYsHP.js";
15
+ import { a as s, l as c, t as l, u } from "./store-CjCKsoXy.js";
16
+ import { $t as d, At as f, D as p, Ft as m, G as h, Gt as g, It as _, J as v, Lt as y, Mt as b, Nt as x, Pt as S, Qt as C, Rt as w, St as T, Tt as E, Vt as D, W as O, X as k, Xt as A, Y as ee, Z as te, _t as ne, an as re, at as ie, b as ae, bt as oe, d as se, en as ce, et as le, f as ue, ft as j, i as de, in as M, it as fe, jt as N, kt as P, nn as pe, q as me, qt as F, rt as he, t as ge, vt as _e, wt as ve, x as ye, xt as be } from "./LayerStore-CONC-3Gj.js";
17
+ import { _ as xe, l as Se } from "./wayfinding-CulSEPiv.js";
18
+ import { i as Ce, n as we } from "./viewport-D4MnXYrN.js";
19
+ import { i as Te, r as Ee } from "./scene-BBPTWEUE.js";
20
20
  //#region src/components/Map/traffic/trafficLayers.ts
21
- var Ee = "traffic_route", De = "traffic_route_stop", I = "traffic_vehicles", Oe = "build_route_lines", ke = "build_route_dots", Ae = 5;
22
- function je() {
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 < Ae; t++) e.push({
25
- name: Me(t),
24
+ for (let t = 0; t < je; t++) e.push({
25
+ name: Ne(t),
26
26
  children: []
27
27
  }), e.push({
28
- name: Ne(t),
28
+ name: Pe(t),
29
29
  children: []
30
30
  });
31
31
  return e.push({
32
32
  name: I,
33
33
  children: []
34
34
  }), e.push({
35
- name: Oe,
35
+ name: ke,
36
36
  children: []
37
37
  }), e.push({
38
- name: ke,
38
+ name: Ae,
39
39
  children: []
40
40
  }), e;
41
41
  }
42
- function Me(e) {
43
- return `${Ee}_${e + 1}`;
44
- }
45
42
  function Ne(e) {
46
43
  return `${De}_${e + 1}`;
47
44
  }
48
- function Pe() {
49
- return RegExp(`^${Ee}_\\d+$`);
45
+ function Pe(e) {
46
+ return `${Oe}_${e + 1}`;
50
47
  }
51
48
  function Fe() {
52
49
  return RegExp(`^${De}_\\d+$`);
53
50
  }
51
+ function Ie() {
52
+ return RegExp(`^${Oe}_\\d+$`);
53
+ }
54
54
  //#endregion
55
55
  //#region src/components/Map/drawing/config/booth-badge-anchor.ts
56
- var Ie = /* @__PURE__ */ e(ne(), 1), Le = .5, Re = .3, ze = 10, Be = 8, Ve = 4, He = 50, L = class e {
56
+ var Le = /* @__PURE__ */ e(ne(), 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 = We(t), this.bbox = Ue(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 Ie = /* @__PURE__ */ e(ne(), 1), Le = .5, Re = .3, ze = 10, Be = 8, Ve = 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, He));
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() + Ve;
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() + Be;
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 Ie = /* @__PURE__ */ e(ne(), 1), Le = .5, Re = .3, ze = 10, Be = 8, Ve = 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 * Le / this.source.x : Infinity, i > 0 ? i * Re / 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 Ie = /* @__PURE__ */ e(ne(), 1), Le = .5, Re = .3, ze = 10, Be = 8, Ve = 4,
148
148
  };
149
149
  if (!i.containsPoint(o)) return n;
150
150
  let s = 0, c = n;
151
- for (let n = 0; n < ze; 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(M({
154
154
  x: e + l,
@@ -174,7 +174,7 @@ var Ie = /* @__PURE__ */ e(ne(), 1), Le = .5, Re = .3, ze = 10, Be = 8, Ve = 4,
174
174
  }
175
175
  };
176
176
  L.idle = /* @__PURE__ */ new Set(), L.idleScheduled = !1;
177
- function Ue(e) {
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);
@@ -186,7 +186,7 @@ function Ue(e) {
186
186
  y: i
187
187
  });
188
188
  }
189
- function We(e) {
189
+ function Ge(e) {
190
190
  let t = [], n = [];
191
191
  for (let r of e) {
192
192
  let e = t.length;
@@ -209,35 +209,41 @@ function We(e) {
209
209
  }
210
210
  //#endregion
211
211
  //#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
212
- function Ge(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
+ //#region src/components/Map/drawing/config/config-booth-badge-scale.ts
217
+ function qe({ pixelSize: e, fontSize: t, plateFontSize: n, maxScale: r }) {
218
+ let i = e * t / n;
219
+ return Math.min(i, r);
220
+ }
221
+ //#endregion
216
222
  //#region src/components/Map/drawing/config/config-booth-badge.ts
217
- var Ke = 15, qe = 24, Je = 30, Ye = 12, Xe = .8, Ze = document.createElement("canvas").getContext("2d");
218
- function Qe(e) {
219
- 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) + "…";
220
226
  }
221
- function $e(e) {
227
+ function tt(e) {
222
228
  var t, n;
223
229
  if (!((t = e.paths) != null && t.length)) return [];
224
230
  let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
225
231
  for (let t of e.paths) for (let e of D(t.index, r)) i.push(e);
226
232
  return i;
227
233
  }
228
- function R(e) {
234
+ function z(e) {
229
235
  return e && e !== "none" ? e : void 0;
230
236
  }
231
- function et(e) {
237
+ function nt(e) {
232
238
  var t;
233
- let n = R(e.borderColor) || R(w.boothBorderColor) || w.colors.booths.default;
234
- return ((t = e.paths) == null ? void 0 : t.length) > 1 && R(e.paths[e.paths.length - 1].color) || n;
239
+ let n = z(e.borderColor) || z(w.boothBorderColor) || w.colors.booths.default;
240
+ return ((t = e.paths) == null ? void 0 : t.length) > 1 && z(e.paths[e.paths.length - 1].color) || n;
235
241
  }
236
- function tt(e) {
242
+ function rt(e) {
237
243
  var t;
238
- let n = Qe(e.title || e.name), r = et(e), a = Te((0, Ie.default)(r).hex()), o = se();
239
- Ze.font = f(Je, o);
240
- let s = Ze.measureText(n).width, c = Math.ceil(s + Ye * 2), p = (e.borderWidth || l.borderWidth) / 2, m = c * Xe, h = 54 * Xe, g = new L(e, $e(e), p, {
244
+ let n = et(e.title || e.name), r = nt(e), a = Te((0, Le.default)(r).hex()), o = se();
245
+ $e.font = f(Xe, o);
246
+ let s = $e.measureText(n).width, c = Math.ceil(s + Ze * 2), p = (e.borderWidth || l.borderWidth) / 2, m = c * R, h = 38 * R, g = new L(e, tt(e), p, {
241
247
  x: m,
242
248
  y: h
243
249
  }), _ = (t = e.rotate) == null ? 0 : t, y = 0, b = 0, x = 0, S = 0, C = () => {
@@ -278,7 +284,7 @@ function tt(e) {
278
284
  maxScale: S,
279
285
  bg: E,
280
286
  text: D
281
- }, k = new nt(O);
287
+ }, k = new it(O);
282
288
  E.onScale = ({ pixelSize: e }) => k.layOutBg(e), D.onScale = ({ pixelSize: e }) => k.layOutText(e);
283
289
  let A = [];
284
290
  return A.push(i(() => e.skipDim, (e) => {
@@ -292,7 +298,7 @@ function tt(e) {
292
298
  var n;
293
299
  fe(t == null ? 0 : t) && (g.prefetch((n = e.rotate) == null ? 0 : n), E.onRoll = ({ roll: e, pixelSize: t }) => {
294
300
  let n = he(e, _);
295
- if (n !== 0) return _ += n * Math.PI / 2, y = ((y + n) % 4 + 4) % 4, C(), O.anchor.x = b, O.anchor.y = x, O.rotation = _, O.maxScale = S, [...k.layOutBg(t), ...k.layOutText(t)];
301
+ if (n !== 0) return _ += n * Math.PI / 2, y = ((y + n) % 4 + 4) % 4, C(), O.anchor.x = b, O.anchor.y = x, O.rotation = _, O.maxScale = S, k.invalidate(), [...k.layOutBg(t), ...k.layOutText(t)];
296
302
  });
297
303
  }, { fireImmediately: !0 }), () => g.cancelPrefetch()), {
298
304
  bg: E,
@@ -302,26 +308,37 @@ function tt(e) {
302
308
  }
303
309
  };
304
310
  }
305
- var nt = class {
311
+ var it = class {
306
312
  constructor(e) {
307
- this.placement = e;
313
+ this.placement = e, this.bgScale = NaN, this.textScale = NaN;
314
+ }
315
+ invalidate() {
316
+ this.bgScale = NaN, this.textScale = NaN;
308
317
  }
309
318
  layOutBg(e) {
310
- let { bg: t } = this.placement;
311
- return t.shape = this.rectScaled(e), t.hidden = this.isHidden(), t.hidden ? [] : [t];
319
+ let { bg: t } = this.placement, n = this.scaleFor(e);
320
+ return n === this.bgScale ? [] : (this.bgScale = n, t.shape = this.rectAt(n), t.hidden = this.isHidden(), t.hidden ? [] : [t]);
312
321
  }
313
322
  layOutText(e) {
314
- let { text: t, maxScale: n } = this.placement;
315
- return t.lines[0].fontSize = qe * Math.min(e, n), t.bounds = this.rectScaled(e), t.hidden = this.isHidden(), t.hidden ? [] : [t];
323
+ let { text: t } = this.placement, n = this.scaleFor(e);
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
+ }
326
+ scaleFor(e) {
327
+ return qe({
328
+ pixelSize: e,
329
+ fontSize: Ye,
330
+ plateFontSize: Qe,
331
+ maxScale: this.placement.maxScale
332
+ });
316
333
  }
317
- rectScaled(e) {
318
- let { anchor: t, booth: n, source: r, rotation: i, maxScale: a } = this.placement, o = Math.min(e, a), s = r.x * o, c = r.y * o;
334
+ rectAt(e) {
335
+ let { anchor: t, booth: n, source: r, rotation: i } = this.placement, a = r.x * e, o = r.y * e;
319
336
  return new d(M({
320
- x: t.x + s / 2,
321
- y: t.y + c / 2
337
+ x: t.x + a / 2,
338
+ y: t.y + o / 2
322
339
  }, i, t), {
323
- x: s,
324
- y: c
340
+ x: a,
341
+ y: o
325
342
  }, i, n.elevation);
326
343
  }
327
344
  isHidden() {
@@ -329,9 +346,9 @@ var nt = class {
329
346
  return !!(e.layer && !e.layer.visible);
330
347
  }
331
348
  };
332
- function rt(e, t) {
349
+ function at(e, t) {
333
350
  let n = [], r = [], i = [];
334
- for (let e of t) if (e instanceof le && Ge({
351
+ for (let e of t) if (e instanceof le && Ke({
335
352
  hideExhibitorBoothNumber: g.hideExhibitorBoothNumber,
336
353
  hideBoothBadges: g.hideBoothBadges,
337
354
  hideLogoInBooth: u.hideLogoInBooth,
@@ -339,7 +356,7 @@ function rt(e, t) {
339
356
  hasExhibitors: e.exhibitors.length > 0,
340
357
  hasLogoInBooth: e.exhibitors.some((e) => e.logoInBooth && e.logo)
341
358
  })) {
342
- let { bg: t, text: a, dispose: o } = tt(e);
359
+ let { bg: t, text: a, dispose: o } = rt(e);
343
360
  n.push(t), r.push(a), i.push(o);
344
361
  }
345
362
  let a = () => {
@@ -364,17 +381,17 @@ function rt(e, t) {
364
381
  }
365
382
  //#endregion
366
383
  //#region src/components/Map/drawing/config/config-markers.ts
367
- var it = "_selected", at = "markers";
368
- function ot(e, t, n) {
384
+ var ot = "_selected", st = "markers";
385
+ function ct(e, t, n) {
369
386
  let { center: r, rotation: i, elevation: a } = e.bounds, { width: o, height: s } = t;
370
387
  return e.bounds = P(r.x, r.y, o, s, n, i, a), [e];
371
388
  }
372
- function st(e) {
373
- z = e;
389
+ function lt(e) {
390
+ B = e;
374
391
  }
375
- function ct(e) {
376
- let { scene: t } = e, n = [], r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [], l = t.rootLayer.children.find((e) => e.name === at);
377
- l.onScale = ({ pixelSize: e }) => st(e), ae(lt), j(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), ae(dt), j(l);
378
395
  async function d(e) {
379
396
  let t = [];
380
397
  e.forEach((e) => {
@@ -396,7 +413,7 @@ function ct(e) {
396
413
  }), await Promise.all(t);
397
414
  }
398
415
  let f = (e, t) => {
399
- e.onScale = ({ pixelSize: n }) => ot(e, t, n);
416
+ e.onScale = ({ pixelSize: n }) => ct(e, t, n);
400
417
  }, p = (e) => {
401
418
  e.screenSpace || (e.onRoll = ({ roll: t }) => {
402
419
  if (t !== e.bounds.rotation) return e.bounds.rotate(t - e.bounds.rotation, e.bounds), [e];
@@ -445,7 +462,7 @@ function ct(e) {
445
462
  hidden: !(p && e.active),
446
463
  origin: y
447
464
  }),
448
- id: `${e.id}${it}`,
465
+ id: `${e.id}${ot}`,
449
466
  scale: l,
450
467
  screenSpace: t
451
468
  };
@@ -459,7 +476,7 @@ function ct(e) {
459
476
  let e = c.routeStore.markersData.markers;
460
477
  e.length && e.forEach((e) => {
461
478
  var t, n;
462
- let r = o.find((t) => t.id === e.id), i = o.find((t) => t.id === `${e.id}${it}`);
479
+ let r = o.find((t) => t.id === e.id), i = o.find((t) => t.id === `${e.id}${ot}`);
463
480
  if (!r || !i) return;
464
481
  let a = (t = (n = s.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
465
482
  e.active ? (r.hidden = !0, i.hidden = !(a && e.active)) : (r.hidden = !a, i.hidden = !0);
@@ -476,25 +493,25 @@ function ct(e) {
476
493
  h(), j(l);
477
494
  });
478
495
  }, { fireImmediately: !0 })), function() {
479
- n.forEach((e) => e()), n.length = 0, l.onScale = void 0, ae(), z = 1, j(l);
496
+ n.forEach((e) => e()), n.length = 0, l.onScale = void 0, ae(), B = 1, j(l);
480
497
  };
481
498
  }
482
- function lt(e, t) {
483
- return ut(e, t, z);
499
+ function dt(e, t) {
500
+ return ft(e, t, B);
484
501
  }
485
- function ut(e, t, n) {
502
+ function ft(e, t, n) {
486
503
  for (let r of c.routeStore.markersData.markers) {
487
504
  let i = c.routeStore.markersData.icons.find((e) => e.name === r.icon);
488
505
  if (!i) continue;
489
506
  let a = i.width * (i.scale || 1) * n, o = i.height * (i.scale || 1) * n;
490
- if (dt(e, t, r.x, r.y, a, o)) {
507
+ if (pt(e, t, r.x, r.y, a, o)) {
491
508
  let e = c.layerStore.findLayer(r.z);
492
509
  if (!e || e && e.visible) return r;
493
510
  }
494
511
  }
495
512
  return null;
496
513
  }
497
- function dt(e, t, n, r, i, a) {
514
+ function pt(e, t, n, r, i, a) {
498
515
  return A.fromCenter({
499
516
  x: n,
500
517
  y: r
@@ -506,11 +523,11 @@ function dt(e, t, n, r, i, a) {
506
523
  y: t
507
524
  });
508
525
  }
509
- var z = 1, ft = .5, pt = "cubic";
510
- function mt(e, t) {
526
+ var B = 1, mt = .5, ht = "cubic";
527
+ function gt(e, t) {
511
528
  return !e || e.rootLayer.dim === t ? !1 : (e.rootLayer.dim = t, !0);
512
529
  }
513
- function ht(e, t = 300, n = pt) {
530
+ function _t(e, t = 300, n = ht) {
514
531
  let r = null, i = 0, a = 0, o = 0, s = 0, c = Math.max(t, 0);
515
532
  function l() {
516
533
  r === null || typeof cancelAnimationFrame != "function" || (cancelAnimationFrame(r), r = null);
@@ -519,7 +536,7 @@ function ht(e, t = 300, n = pt) {
519
536
  l(), i = t, e(i);
520
537
  }
521
538
  function d(t) {
522
- let l = t - s, u = Math.min(Math.max(l / c, 0), 1), f = gt(u, n);
539
+ let l = t - s, u = Math.min(Math.max(l / c, 0), 1), f = vt(u, n);
523
540
  if (i = a + (o - a) * f, e(i), u < 1) {
524
541
  r = requestAnimationFrame(d);
525
542
  return;
@@ -545,15 +562,15 @@ function ht(e, t = 300, n = pt) {
545
562
  }
546
563
  };
547
564
  }
548
- function gt(e, t) {
549
- return t === "linear" ? e : _t(e);
565
+ function vt(e, t) {
566
+ return t === "linear" ? e : yt(e);
550
567
  }
551
- function _t(e) {
568
+ function yt(e) {
552
569
  return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
553
570
  }
554
571
  //#endregion
555
572
  //#region src/components/Map/drawing/config/config-pins.ts
556
- function vt(e, t, n) {
573
+ function bt(e, t, n) {
557
574
  let a = [], o = [], s = [], c = [];
558
575
  function d() {
559
576
  let e = u.selectedPoiTypeFilters;
@@ -568,15 +585,15 @@ function vt(e, t, n) {
568
585
  o.forEach((e) => e.stop()), o = [];
569
586
  }
570
587
  function m() {
571
- e.children = s.map((e) => Ct(e, f));
588
+ e.children = s.map((e) => Tt(e, f));
572
589
  }
573
590
  function h() {
574
- 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);
591
+ 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);
575
592
  }
576
593
  function g(e, t) {
577
- let n = /* @__PURE__ */ new Set(), r = (e) => e == null ? void 0 : e.forEach((e) => n.add(e)), i = Dt(c, e, Nt * t.pixelSize);
594
+ let n = /* @__PURE__ */ new Set(), r = (e) => e == null ? void 0 : e.forEach((e) => n.add(e)), i = kt(c, e, Ft * t.pixelSize);
578
595
  i.forEach((t, n) => {
579
- kt(t, e[n]) && r([t.image, t.count]), r(t.fader.place(!0));
596
+ jt(t, e[n]) && r([t.image, t.count]), r(t.fader.place(!0));
580
597
  });
581
598
  let a = new Set(i);
582
599
  for (let e of c) a.has(e) || r(e.fader.place(!1));
@@ -585,9 +602,9 @@ function vt(e, t, n) {
585
602
  return e.clustering = {
586
603
  onCluster: (e, t) => g(e, t),
587
604
  marker: {
588
- width: H,
589
- height: U,
590
- origin: V
605
+ width: U,
606
+ height: W,
607
+ origin: H
591
608
  }
592
609
  }, a.push(i(() => d(), (r) => {
593
610
  s = r, p(), m(), h(), j(e, t, n);
@@ -598,7 +615,7 @@ function vt(e, t, n) {
598
615
  a.forEach((e) => e()), a.length = 0, p(), c = [], e.clustering = void 0, e.children = [], t.children = [], n.children = [], j(e, t, n);
599
616
  };
600
617
  }
601
- function yt(e, t, n, r, i) {
618
+ function xt(e, t, n, r, i) {
602
619
  let a, o = i, s = !1, c = !1, l = (r) => {
603
620
  let i = 1 - Math.min(Math.max(r, 0), 1), a = !1;
604
621
  if (n() !== i && (t(i), a = !0), !o && r >= 1 && e.some((e) => !e.hidden)) {
@@ -607,7 +624,7 @@ function yt(e, t, n, r, i) {
607
624
  }
608
625
  a && (s ? c = !0 : j(...e));
609
626
  }, u = () => {
610
- if (!a && (a = ht(l, 300), r(a), !i)) {
627
+ if (!a && (a = _t(l, 300), r(a), !i)) {
611
628
  let e = s;
612
629
  s = !0, a.setTarget(!0, { immediate: !0 }), s = e;
613
630
  }
@@ -624,30 +641,30 @@ function yt(e, t, n, r, i) {
624
641
  return s = !0, c = !1, u().setTarget(!t), s = !1, n || c ? e : void 0;
625
642
  } };
626
643
  }
627
- function bt(e, t, n, r) {
644
+ function St(e, t, n, r) {
628
645
  let { bounds: i } = e, a = t * r, o = t * n * r;
629
646
  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];
630
647
  }
631
- function xt() {
632
- return It || (It = E(B, window.devicePixelRatio)), It;
648
+ function Ct() {
649
+ return G || (G = E(V, window.devicePixelRatio)), G;
633
650
  }
634
- function St() {
635
- return Lt || (Lt = T(H, window.devicePixelRatio)), Lt;
651
+ function wt() {
652
+ return Rt || (Rt = T(U, window.devicePixelRatio)), Rt;
636
653
  }
637
- function Ct(e, t) {
654
+ function Tt(e, t) {
638
655
  let n = new d(e.rect.center, {
639
- x: B,
640
- y: B * x
656
+ x: V,
657
+ y: V * x
641
658
  }, 0, e.elevation * 2), r = {
642
- ...O(xt(), n, {
659
+ ...O(Ct(), n, {
643
660
  hidden: !1,
644
- origin: V
661
+ origin: H
645
662
  }),
646
663
  screenSpace: !0,
647
664
  opacity: 1
648
665
  };
649
- r.onScale = ({ pixelSize: e }) => bt(r, B, x, e);
650
- let i = yt([r], (e) => {
666
+ r.onScale = ({ pixelSize: e }) => St(r, V, x, e);
667
+ let i = xt([r], (e) => {
651
668
  r.opacity = e;
652
669
  }, () => {
653
670
  var e;
@@ -655,42 +672,42 @@ function Ct(e, t) {
655
672
  }, t, !0);
656
673
  return r.placement = { onPlace: (e) => i.place(e) }, r;
657
674
  }
658
- function wt(e) {
659
- return `${Pt}${Math.round(Math.min(Math.max(e, 0), 1) * 255).toString(16).padStart(2, "0")}`;
675
+ function Et(e) {
676
+ return `${It}${Math.round(Math.min(Math.max(e, 0), 1) * 255).toString(16).padStart(2, "0")}`;
660
677
  }
661
- function Tt(e) {
678
+ function Dt(e) {
662
679
  let t = new d({
663
680
  x: 0,
664
681
  y: 0
665
682
  }, {
666
- x: H,
667
- y: U
683
+ x: U,
684
+ y: W
668
685
  }, 0, 0), n = {
669
- ...O(St(), t, {
686
+ ...O(wt(), t, {
670
687
  hidden: !0,
671
- origin: V
688
+ origin: H
672
689
  }),
673
690
  screenSpace: !0,
674
691
  opacity: 0
675
692
  };
676
- n.onScale = ({ pixelSize: e }) => bt(n, H, x, e);
677
- let r = Et(n);
693
+ n.onScale = ({ pixelSize: e }) => St(n, U, x, e);
694
+ let r = Ot(n);
678
695
  return {
679
696
  image: n,
680
697
  count: r,
681
- fader: yt([n, r], (e) => {
682
- n.opacity = e, r.lines[0].color = wt(e);
698
+ fader: xt([n, r], (e) => {
699
+ n.opacity = e, r.lines[0].color = Et(e);
683
700
  }, () => {
684
701
  var e;
685
702
  return (e = n.opacity) == null ? 1 : e;
686
703
  }, e, !1)
687
704
  };
688
705
  }
689
- function Et(e) {
706
+ function Ot(e) {
690
707
  let t = {
691
708
  lines: [{
692
709
  text: m(2),
693
- color: wt(0),
710
+ color: Et(0),
694
711
  fontUrl: k,
695
712
  fontSize: 0
696
713
  }],
@@ -711,11 +728,11 @@ function Et(e) {
711
728
  hidden: !0
712
729
  };
713
730
  return t.onScale = ({ pixelSize: n }) => {
714
- let r = S(Ft.r) * n, i = H * n, a = 2 * ((U - Ft.cy) * n + b * r), { bounds: o } = t, [s] = t.lines;
731
+ let r = S(Lt.r) * n, i = U * n, a = 2 * ((W - Lt.cy) * n + b * r), { bounds: o } = t, [s] = t.lines;
715
732
  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];
716
733
  }, t;
717
734
  }
718
- function Dt(e, t, n) {
735
+ function kt(e, t, n) {
719
736
  let r = Math.min(t.length, e.length), i = [], a = /* @__PURE__ */ new Set(), o = [];
720
737
  e.forEach(({ image: e }, i) => {
721
738
  if (!e.hidden) for (let a = 0; a < r; a++) {
@@ -731,25 +748,25 @@ function Dt(e, t, n) {
731
748
  let s = e.map((e, t) => ({
732
749
  unit: e,
733
750
  index: t
734
- })).filter(({ unit: e }) => !a.has(e)).sort((e, t) => Ot(e.unit) - Ot(t.unit) || e.index - t.index), c = 0;
751
+ })).filter(({ unit: e }) => !a.has(e)).sort((e, t) => At(e.unit) - At(t.unit) || e.index - t.index), c = 0;
735
752
  for (let e = 0; e < r; e++) i[e] || (i[e] = s[c++].unit);
736
753
  return i;
737
754
  }
738
- function Ot({ image: e }) {
755
+ function At({ image: e }) {
739
756
  var t;
740
757
  return e.hidden ? 0 : (t = e.opacity) == null ? 1 : t;
741
758
  }
742
- function kt({ image: e, count: t }, n) {
759
+ function jt({ image: e, count: t }, n) {
743
760
  let { x: r, y: i, elevation: a, unitCount: o } = n, s = m(o), [c] = t.lines, l = e.bounds;
744
761
  if (l.center.x === r && l.center.y === i && l.elevation === a && c.text === s) return !1;
745
762
  l.set(r, i, l.size.x, l.size.y, l.rotation, a);
746
763
  let { bounds: u } = t;
747
764
  return u.set(r, i, u.size.x, u.size.y, u.rotation, a), c.text = s, !0;
748
765
  }
749
- var At = "poiFilterPins", jt = "poiFilterPinClusters", Mt = "poiFilterPinCounts", B = 32, V = [.5, 1], H = 44, Nt = H, Pt = "#000000", Ft = _(H), U = H * x, It, Lt;
766
+ var Mt = "poiFilterPins", Nt = "poiFilterPinClusters", Pt = "poiFilterPinCounts", V = 32, H = [.5, 1], U = 44, Ft = U, It = "#000000", Lt = _(U), W = U * x, G, Rt;
750
767
  //#endregion
751
768
  //#region src/components/Map/drawing/config/config-all.ts
752
- function Rt() {
769
+ function zt() {
753
770
  let { defaultLayer: e } = c.layerStore, { layers: t } = c.layerStore;
754
771
  if (e) {
755
772
  let n = [...t], r = t.indexOf(e);
@@ -758,17 +775,17 @@ function Rt() {
758
775
  let n = t.filter((e) => !e.rootParent).map((e) => de(e));
759
776
  return Promise.all(n).then((e) => {
760
777
  var t;
761
- let n = h(at, []);
778
+ let n = h(st, []);
762
779
  n.overlay = u.is3DView;
763
- let r = u.is3DView ? zt() : void 0, i = Se({ overlay: u.is3DView }), a = [], o = [];
780
+ let r = u.is3DView ? Bt() : void 0, i = Se({ overlay: u.is3DView }), a = [], o = [];
764
781
  for (let t of e.flat()) p(t.name) ? (t.dim = 0, o.push(t)) : a.push(t);
765
- let { layer: s, cleanup: c } = rt("root", l.booths);
782
+ let { layer: s, cleanup: c } = at("root", l.booths);
766
783
  return {
767
784
  layers: [
768
785
  ...a,
769
786
  ...s ? [s] : [],
770
787
  ...o,
771
- ...je(),
788
+ ...Me(),
772
789
  n,
773
790
  ...(t = r == null ? void 0 : r.layers) == null ? [] : t,
774
791
  i
@@ -779,33 +796,33 @@ function Rt() {
779
796
  };
780
797
  });
781
798
  }
782
- function zt() {
799
+ function Bt() {
783
800
  let e = [
784
- At,
785
- jt,
786
- Mt
801
+ Mt,
802
+ Nt,
803
+ Pt
787
804
  ].map((e) => {
788
805
  let t = h(e, []);
789
806
  return t.overlay = !0, t.dim = 0, t;
790
807
  }), [t, n, r] = e;
791
808
  return {
792
809
  layers: e,
793
- cleanup: vt(t, n, r)
810
+ cleanup: bt(t, n, r)
794
811
  };
795
812
  }
796
813
  //#endregion
797
814
  //#region src/components/Map/MapCursorCoords.tsx
798
- var W = /* @__PURE__ */ e(n(), 1), Bt = 2;
799
- function Vt(e) {
800
- let { canvas: t } = e, n = ie(), r = o(), i = (0, W.useCallback)(() => r("cursor", void 0), [r]), a = (0, W.useEffectEvent)((e) => {
815
+ var K = /* @__PURE__ */ e(n(), 1), Vt = 2;
816
+ function Ht(e) {
817
+ let { canvas: t } = e, n = ie(), r = o(), i = (0, K.useCallback)(() => r("cursor", void 0), [r]), a = (0, K.useEffectEvent)((e) => {
801
818
  if (!e.isPrimary) return;
802
819
  let t = n.canvasToPlan({
803
820
  x: e.offsetX,
804
821
  y: e.offsetY
805
822
  });
806
- r("cursor", t ? Ut(t, Ht()) : void 0);
823
+ r("cursor", t ? Wt(t, Ut()) : void 0);
807
824
  });
808
- return (0, W.useEffect)(() => {
825
+ return (0, K.useEffect)(() => {
809
826
  let e = t.current;
810
827
  if (!e) return;
811
828
  let n = (e) => a(e), r = () => i();
@@ -814,25 +831,25 @@ function Vt(e) {
814
831
  };
815
832
  }, [t, i]), null;
816
833
  }
817
- function Ht() {
834
+ function Ut() {
818
835
  let e = c.layerStore.layers.find((e) => e.visible && (e.mode === ge.TurnedOn || e.mode === ge.TurnedOff));
819
836
  return (e == null ? void 0 : e.name) || null;
820
837
  }
821
- function Ut(e, t) {
822
- let n = `[${e.x.toFixed(Bt)}, ${e.y.toFixed(Bt)}]`;
838
+ function Wt(e, t) {
839
+ let n = `[${e.x.toFixed(Vt)}, ${e.y.toFixed(Vt)}]`;
823
840
  return t ? `${n} · layer ${t}` : n;
824
841
  }
825
842
  //#endregion
826
843
  //#region src/components/Map/MapViewport.tsx
827
- function Wt() {
828
- let e = ie(), t = (0, W.useRef)({ api: e }), [n] = (0, W.useState)(() => we(t));
829
- return (0, W.useLayoutEffect)(() => {
844
+ function Gt() {
845
+ let e = ie(), t = (0, K.useRef)({ api: e }), [n] = (0, K.useState)(() => we(t));
846
+ return (0, K.useLayoutEffect)(() => {
830
847
  t.current = { api: e };
831
- }), (0, W.useEffect)(() => (Ce(n), () => Ce(void 0)), [n]), null;
848
+ }), (0, K.useEffect)(() => (Ce(n), () => Ce(void 0)), [n]), null;
832
849
  }
833
850
  //#endregion
834
851
  //#region src/components/Map/traffic/UpdateQueue.ts
835
- var Gt = class {
852
+ var Kt = class {
836
853
  constructor() {
837
854
  this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
838
855
  }
@@ -874,7 +891,7 @@ var Gt = class {
874
891
  destroy() {
875
892
  this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
876
893
  }
877
- }, Kt = 49, qt = `hsl(257, 76%, ${Kt}%)`, Jt = `hsl(339.903, 82%, ${Kt}%)`, Yt = `hsl(257, 76%, ${Math.round(Kt * 1.82)}%)`, G = 4, K = _e(G), Xt = G, Zt = "U", Qt = "R", $t = "S", en = "P", tn = class {
894
+ }, 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 = _e(q), Zt = q, Qt = "U", $t = "R", en = "S", tn = "P", nn = class {
878
895
  constructor() {
879
896
  this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
880
897
  }
@@ -913,10 +930,10 @@ var Gt = class {
913
930
  instruct() {
914
931
  this.log(`How to Build a Route:
915
932
  Add Point: Click on the map.
916
- Apply Smoothing: Press ${Qt}.
917
- Apply Simplification: Press ${$t}.
918
- Undo: Press ${Zt}.
919
- Enable/Disable Preview: Press ${en}.
933
+ Apply Smoothing: Press ${$t}.
934
+ Apply Simplification: Press ${en}.
935
+ Undo: Press ${Qt}.
936
+ Enable/Disable Preview: Press ${tn}.
920
937
  `, 16);
921
938
  }
922
939
  applyChaikinSmoothing(e, t, n) {
@@ -1016,22 +1033,22 @@ Enable/Disable Preview: Press ${en}.
1016
1033
  this._selected = Math.max(0, Math.min(e, this.points.length - 1));
1017
1034
  }
1018
1035
  };
1019
- function nn({ enabled: e, scene: t }) {
1020
- let n = (0, W.useRef)(!1), r = (0, W.useRef)(1), i = (0, W.useMemo)(() => be(G, qt), []), a = (0, W.useMemo)(() => be(G, Jt), []), o = (0, W.useMemo)(() => new tn(), []), s = (0, W.useRef)(new Gt()), c = (0, W.useMemo)(() => {
1036
+ function rn({ enabled: e, scene: t }) {
1037
+ let n = (0, K.useRef)(!1), r = (0, K.useRef)(1), i = (0, K.useMemo)(() => be(q, Jt), []), a = (0, K.useMemo)(() => be(q, Yt), []), o = (0, K.useMemo)(() => new nn(), []), s = (0, K.useRef)(new Kt()), c = (0, K.useMemo)(() => {
1021
1038
  if (!t) return {};
1022
1039
  let e = t.rootLayer.children;
1023
1040
  return {
1024
- linesLayer: e.find((e) => e.name === Oe),
1025
- pointsLayer: e.find((e) => e.name === ke)
1041
+ linesLayer: e.find((e) => e.name === ke),
1042
+ pointsLayer: e.find((e) => e.name === Ae)
1026
1043
  };
1027
- }, [t]), l = (0, W.useCallback)(() => {
1044
+ }, [t]), l = (0, K.useCallback)(() => {
1028
1045
  if (!c || !i || !a) return;
1029
1046
  let { linesLayer: e, pointsLayer: t } = c;
1030
1047
  if (!e || !t) return;
1031
1048
  let l = o.points, u = n.current;
1032
1049
  u ? t.children.length = 0 : t.children = l.map(({ x: e, y: t }, n) => ({
1033
1050
  source: n == o.selected ? a : i,
1034
- bounds: P(e, t, K, K, r.current)
1051
+ bounds: P(e, t, J, J, r.current)
1035
1052
  }));
1036
1053
  let d = [];
1037
1054
  for (let e = 1; e < l.length; e++) {
@@ -1041,8 +1058,8 @@ function nn({ enabled: e, scene: t }) {
1041
1058
  p0: t,
1042
1059
  p1: n
1043
1060
  },
1044
- color: u ? qt : Yt,
1045
- width: Xt
1061
+ color: u ? Jt : Xt,
1062
+ width: Zt
1046
1063
  });
1047
1064
  }
1048
1065
  d.length ? e.children = d : e.children.length = 0, s.current.add(() => j(t, e)), o.instruct(), o.log(JSON.stringify(o.points));
@@ -1051,34 +1068,34 @@ function nn({ enabled: e, scene: t }) {
1051
1068
  c,
1052
1069
  i,
1053
1070
  a
1054
- ]), u = (0, W.useCallback)((e) => {
1071
+ ]), u = (0, K.useCallback)((e) => {
1055
1072
  let t = e.key.toUpperCase();
1056
1073
  o.execute(() => {
1057
1074
  switch (t) {
1058
- case Zt:
1075
+ case Qt:
1059
1076
  e.preventDefault(), o.undo(), n.current = !1, l();
1060
1077
  break;
1061
- case Qt:
1078
+ case $t:
1062
1079
  e.preventDefault(), o.applySmoothing(), n.current = !1, l();
1063
1080
  break;
1064
- case $t:
1081
+ case en:
1065
1082
  e.preventDefault(), o.applySimplification(), n.current = !1, l();
1066
1083
  break;
1067
- case en:
1084
+ case tn:
1068
1085
  e.preventDefault(), n.current = !n.current, l();
1069
1086
  break;
1070
1087
  }
1071
1088
  });
1072
- }, [o, l]), d = (0, W.useCallback)((e) => {
1089
+ }, [o, l]), d = (0, K.useCallback)((e) => {
1073
1090
  r.current = e;
1074
1091
  let { pointsLayer: t } = c;
1075
1092
  if (!t) return [];
1076
1093
  let n = [];
1077
1094
  return o.execute(() => {
1078
1095
  let e = t.children;
1079
- for (let t of e) t.bounds = P(t.bounds.center.x, t.bounds.center.y, K, K, r.current), n.push(t);
1096
+ for (let t of e) t.bounds = P(t.bounds.center.x, t.bounds.center.y, J, J, r.current), n.push(t);
1080
1097
  }), n;
1081
- }, [c, o]), f = (0, W.useCallback)((e) => {
1098
+ }, [c, o]), f = (0, K.useCallback)((e) => {
1082
1099
  o.execute(() => {
1083
1100
  o.add({
1084
1101
  x: e.x,
@@ -1086,7 +1103,7 @@ function nn({ enabled: e, scene: t }) {
1086
1103
  }), o.select(o.points.length - 1), l();
1087
1104
  });
1088
1105
  }, [o, l]);
1089
- (0, W.useEffect)(() => {
1106
+ (0, K.useEffect)(() => {
1090
1107
  var t, n;
1091
1108
  if (!e || !(c != null && c.pointsLayer)) return;
1092
1109
  let { pointsLayer: i } = c;
@@ -1109,10 +1126,10 @@ function nn({ enabled: e, scene: t }) {
1109
1126
  }
1110
1127
  //#endregion
1111
1128
  //#region src/components/Map/traffic/useManageTraffic.ts
1112
- var rn = 2, an = rn * 3.5, q = rn * 12, J = q * .7, on = 8, sn = 2, cn = .6, ln = 8, un = "transport_locations", dn = 150, fn = "#a4aab6", pn = 1e3, mn = 2e4, hn = 500;
1113
- function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1114
- 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), f = (0, W.useRef)(1), p = (0, W.useRef)(new Gt()), m = (0, W.useRef)(/* @__PURE__ */ new Map()), h = (0, W.useRef)(pn), g = (0, W.useRef)(/* @__PURE__ */ new Map()), _ = (0, W.useRef)(void 0);
1115
- (0, W.useEffect)(() => {
1129
+ 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;
1130
+ function _n({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1131
+ 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()), m = (0, K.useRef)(/* @__PURE__ */ new Map()), h = (0, K.useRef)(mn), g = (0, K.useRef)(/* @__PURE__ */ new Map()), _ = (0, K.useRef)(void 0);
1132
+ (0, K.useEffect)(() => {
1116
1133
  if (!e || !n) return;
1117
1134
  let v = !1, y, b = n.rootLayer.children, x = c.current, S = s.current, C = p.current;
1118
1135
  async function w() {
@@ -1130,31 +1147,31 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1130
1147
  console.warn("useManageTraffic failed to get JSON", e);
1131
1148
  }
1132
1149
  if (v || !i || i.disabled || i.error) return;
1133
- o.current = yn((e = (n = F()) == null ? void 0 : n.state().pixelSize) == null ? 1 : e);
1150
+ o.current = bn((e = (n = F()) == null ? void 0 : n.state().pixelSize) == null ? 1 : e);
1134
1151
  let c = new Map(i.routes.map(({ id: e, color: t }) => [e, t])), l = /* @__PURE__ */ new Map();
1135
1152
  c.forEach((e) => {
1136
- l.set(e, xn({
1137
- radius: an,
1153
+ l.set(e, Sn({
1154
+ radius: on,
1138
1155
  color: e,
1139
1156
  scale: window.devicePixelRatio
1140
1157
  }));
1141
1158
  });
1142
- let p = Pe(), h = b.filter((e) => p.test(e.name)), _ = Fe(), y = b.filter((e) => _.test(e.name));
1159
+ let p = Fe(), h = b.filter((e) => p.test(e.name)), _ = Ie(), y = b.filter((e) => _.test(e.name));
1143
1160
  i.routes.slice(0, h.length).forEach(({ id: e, color: t, path: n, stops: r, hiddenPoints: i }, a) => {
1144
1161
  m.current.set(e, n);
1145
1162
  let s = h[a];
1146
1163
  if (s) {
1147
1164
  var c;
1148
- let e = new Map((c = i == null ? void 0 : i.map((e) => [Q(e), e])) == null ? [] : c);
1165
+ let e = new Map((c = i == null ? void 0 : i.map((e) => [jn(e), e])) == null ? [] : c);
1149
1166
  for (let r = 1; r < n.length; r++) {
1150
1167
  let i = n[r - 1], a = n[r];
1151
- e.has(Q(i)) || e.has(Q(a)) || s.children.push({
1168
+ e.has(jn(i)) || e.has(jn(a)) || s.children.push({
1152
1169
  points: {
1153
1170
  p0: i,
1154
1171
  p1: a
1155
1172
  },
1156
1173
  color: t,
1157
- width: rn
1174
+ width: an
1158
1175
  });
1159
1176
  }
1160
1177
  s.children.length && C.add(() => j(s));
@@ -1163,7 +1180,7 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1163
1180
  u && d && r != null && r.length && (r.forEach((e) => {
1164
1181
  u.children.push({
1165
1182
  source: d,
1166
- bounds: P(e.x, e.y, ...Y(d), o.current)
1183
+ bounds: P(e.x, e.y, ...Z(d), o.current)
1167
1184
  });
1168
1185
  }), u.children.length && C.add(() => j(u)));
1169
1186
  });
@@ -1174,41 +1191,41 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1174
1191
  }
1175
1192
  let O = /* @__PURE__ */ new Map();
1176
1193
  w.onScale = ({ pixelSize: e }) => {
1177
- o.current = yn(e);
1194
+ o.current = bn(e);
1178
1195
  let t = [];
1179
1196
  for (let e of y) {
1180
1197
  let n = e.children;
1181
1198
  for (let e of n) {
1182
1199
  let n = e.source;
1183
- e.bounds = P(e.bounds.center.x, e.bounds.center.y, ...Y(n), o.current, e.bounds.rotation), t.push(e);
1200
+ e.bounds = P(e.bounds.center.x, e.bounds.center.y, ...Z(n), o.current, e.bounds.rotation), t.push(e);
1184
1201
  }
1185
1202
  }
1186
1203
  for (let e of s.current.values()) {
1187
1204
  let n = e.source;
1188
- e.bounds = P(e.bounds.center.x, e.bounds.center.y, ...Y(n), o.current, e.bounds.rotation), t.push(e);
1205
+ e.bounds = P(e.bounds.center.x, e.bounds.center.y, ...Z(n), o.current, e.bounds.rotation), t.push(e);
1189
1206
  }
1190
1207
  return t;
1191
1208
  }, C.add(() => j(w)), c.forEach((e, t) => {
1192
- O.set(t, Sn({
1209
+ O.set(t, Cn({
1193
1210
  id: t,
1194
- width: q,
1195
- height: q,
1211
+ width: Y,
1212
+ height: Y,
1196
1213
  color: e,
1197
1214
  scale: window.devicePixelRatio
1198
1215
  }));
1199
1216
  });
1200
- let k = Sn({
1217
+ let k = Cn({
1201
1218
  id: "orphan",
1202
- width: q,
1203
- height: q,
1204
- color: fn,
1219
+ width: Y,
1220
+ height: Y,
1221
+ color: pn,
1205
1222
  scale: window.devicePixelRatio
1206
1223
  }), A = null;
1207
1224
  try {
1208
1225
  let e = await a(`${t}icons/bus-white.svg`);
1209
1226
  if (v) return;
1210
- A = ve(e, J, J, window.devicePixelRatio);
1211
- let { width: n, height: r } = N(e, J, J);
1227
+ A = ve(e, X, X, window.devicePixelRatio);
1228
+ let { width: n, height: r } = N(e, X, X);
1212
1229
  $.set(A, [n, r]);
1213
1230
  } catch (e) {
1214
1231
  console.error(e);
@@ -1217,17 +1234,17 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1217
1234
  try {
1218
1235
  var t;
1219
1236
  let n = JSON.parse(e.data);
1220
- if (n.type !== un) return;
1237
+ if (n.type !== dn) return;
1221
1238
  let r = e.timeStamp || performance.now();
1222
1239
  f.current = Math.round(r - d.current), d.current = r;
1223
- let i = Math.max((t = f.current) == null ? hn : t, hn), a = w.children, s = !1;
1240
+ let i = Math.max((t = f.current) == null ? gn : t, gn), a = w.children, s = !1;
1224
1241
  n.data.forEach(({ id: e, x: t, y: n, route_id: r, hidden: c }) => {
1225
1242
  var l;
1226
1243
  if (x.has(e)) {
1227
1244
  var u;
1228
1245
  (u = x.get(e)) == null || u(), x.delete(e);
1229
1246
  }
1230
- let d = S.get(e), f = (l = S.get(Cn(e))) == null ? null : l;
1247
+ let d = S.get(e), f = (l = S.get(Tn(e))) == null ? null : l;
1231
1248
  if (c && d && f) {
1232
1249
  d.hidden = !0, f.hidden = !0, C.add(() => j(d, f));
1233
1250
  return;
@@ -1236,37 +1253,37 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1236
1253
  var p;
1237
1254
  let i = (p = O.get(r)) == null ? k : p, c = {
1238
1255
  source: i,
1239
- bounds: P(t, n, ...Y(i), o.current, 0)
1256
+ bounds: P(t, n, ...Z(i), o.current, 0)
1240
1257
  };
1241
1258
  if (S.set(e, c), A) {
1242
- let r = Cn(e), i = {
1259
+ let r = Tn(e), i = {
1243
1260
  source: A,
1244
- bounds: P(t, n, ...Y(A), o.current, 0)
1261
+ bounds: P(t, n, ...Z(A), o.current, 0)
1245
1262
  };
1246
1263
  A.setAttribute("id", r), S.set(r, i), a.push(c, i);
1247
1264
  } else a.push(c);
1248
1265
  s = !0;
1249
1266
  return;
1250
1267
  }
1251
- let h = d.bounds.center, _ = Dn(h, {
1268
+ let h = d.bounds.center, _ = kn(h, {
1252
1269
  x: t,
1253
1270
  y: n
1254
1271
  }, m.current.get(r));
1255
- if (_.reduce((e, t, n) => n === 0 ? e : e + X(_[n - 1], t), 0) >= dn || document.hidden) wn({
1272
+ if (_.reduce((e, t, n) => n === 0 ? e : e + wn(_[n - 1], t), 0) >= fn || document.hidden) En({
1256
1273
  updateQueue: C,
1257
1274
  vehicle: d,
1258
1275
  vehicleFinery: f,
1259
1276
  x: t,
1260
1277
  y: n,
1261
1278
  scale: o.current,
1262
- angle: bn(d.bounds.center, {
1279
+ angle: xn(d.bounds.center, {
1263
1280
  x: t,
1264
1281
  y: n
1265
1282
  })
1266
1283
  });
1267
1284
  else {
1268
- let t = On(_, i, (e) => {
1269
- wn({
1285
+ let t = An(_, i, (e) => {
1286
+ En({
1270
1287
  updateQueue: C,
1271
1288
  vehicle: d,
1272
1289
  vehicleFinery: f,
@@ -1282,7 +1299,7 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1282
1299
  } catch (e) {
1283
1300
  console.error("handleSocketMessage", e);
1284
1301
  }
1285
- }, d.current = performance.now(), T(), window.addEventListener("online", E), D(i.config ? (Number(i.config.vehicle_inactive_interval) || 20) * 1e3 : mn);
1302
+ }, d.current = performance.now(), T(), window.addEventListener("online", E), D(i.config ? (Number(i.config.vehicle_inactive_interval) || 20) * 1e3 : hn);
1286
1303
  } catch (e) {
1287
1304
  console.warn(e);
1288
1305
  }
@@ -1291,7 +1308,7 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1291
1308
  function T() {
1292
1309
  var e, t;
1293
1310
  v || ((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 = () => {
1294
- h.current = pn;
1311
+ h.current = mn;
1295
1312
  }, l.current.onclose = () => {
1296
1313
  v || !navigator.onLine || (y = window.setTimeout(T, h.current), h.current = Math.min(h.current * 2, 3e4));
1297
1314
  });
@@ -1306,7 +1323,7 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1306
1323
  if (t - i < e) return;
1307
1324
  let o = S.get(a);
1308
1325
  o && (o.hidden = !0, r.push(o), n.push(a));
1309
- let s = Cn(a), c = S.get(s);
1326
+ let s = Tn(a), c = S.get(s);
1310
1327
  c && (c.hidden = !0, r.push(c), n.push(s));
1311
1328
  }), r.length && C.add(() => j(...r)), n.forEach((e) => g.current.delete(e));
1312
1329
  }, e));
@@ -1325,67 +1342,67 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
1325
1342
  i
1326
1343
  ]);
1327
1344
  }
1328
- function Y(e) {
1345
+ function Z(e) {
1329
1346
  let t = $.get(e);
1330
1347
  if (!t) throw Error("useManageTraffic: an icon was drawn without a recorded CSS size");
1331
1348
  return t;
1332
1349
  }
1333
- function _n(e) {
1350
+ function vn(e) {
1334
1351
  return e * 2;
1335
1352
  }
1336
- function vn(e, t) {
1337
- let n = t * cn, r = ln * 2;
1338
- return [t + sn + n / 2 + r, e + n + sn + r];
1353
+ function yn(e, t) {
1354
+ let n = t * ln, r = un * 2;
1355
+ return [t + cn + n / 2 + r, e + n + cn + r];
1339
1356
  }
1340
- function yn(e) {
1341
- return Math.min(e || 1, on);
1357
+ function bn(e) {
1358
+ return Math.min(e || 1, sn);
1342
1359
  }
1343
- function bn(e, t) {
1360
+ function xn(e, t) {
1344
1361
  return xe(e, t);
1345
1362
  }
1346
- function xn({ radius: e, scale: t, color: n }) {
1363
+ function Sn({ radius: e, scale: t, color: n }) {
1347
1364
  let r = Math.ceil(e * 2 * t), i = oe(r, r, t);
1348
- $.set(i, [_n(e), _n(e)]);
1365
+ $.set(i, [vn(e), vn(e)]);
1349
1366
  let a = i.getContext("2d");
1350
1367
  a.imageSmoothingEnabled = !1;
1351
1368
  let o = r / 2, s = e * .78, c = e * .33;
1352
1369
  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;
1353
1370
  }
1354
- function Sn({ id: e, width: t, height: n, color: r, scale: i }) {
1355
- let a = sn * i, o = t / 2 * i, s = n * i, c = cn, l = .01, u = s * c, d = s, f = ln * i, p = d + a + u / 2 + f * 2, m = o * 2 + u + a + f * 2, h = oe(p, m, i);
1356
- $.set(h, vn(t, n)), h.setAttribute("id", e);
1371
+ function Cn({ id: e, width: t, height: n, color: r, scale: i }) {
1372
+ 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 = oe(p, m, i);
1373
+ $.set(h, yn(t, n)), h.setAttribute("id", e);
1357
1374
  let g = h.getContext("2d"), _ = p / 2, v = m / 2;
1358
1375
  g.save(), g.translate(_, v), g.rotate(-Math.PI / 2), g.translate(-_, -v);
1359
1376
  let y = _, b = v - d / 2 + o, x = b + u;
1360
1377
  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;
1361
1378
  }
1362
- function X(e, t) {
1379
+ function wn(e, t) {
1363
1380
  return pe(e, t);
1364
1381
  }
1365
- function Cn(e) {
1382
+ function Tn(e) {
1366
1383
  return `${e}_finery`;
1367
1384
  }
1368
- function wn({ updateQueue: e, vehicle: t, vehicleFinery: n, x: r, y: i, scale: a, angle: o }) {
1385
+ function En({ updateQueue: e, vehicle: t, vehicleFinery: n, x: r, y: i, scale: a, angle: o }) {
1369
1386
  let s = t.source;
1370
- if (t.bounds = P(r, i, ...Y(s), a, o), t.hidden = !1, n) {
1387
+ if (t.bounds = P(r, i, ...Z(s), a, o), t.hidden = !1, n) {
1371
1388
  var c, l;
1372
1389
  let o = (c = (l = F()) == null ? void 0 : l.state().roll) == null ? 0 : c, s = n.source;
1373
- n.bounds = P(r, i, ...Y(s), a, re(o)), n.hidden = !1, e.add(() => j(n, t));
1390
+ n.bounds = P(r, i, ...Z(s), a, re(o)), n.hidden = !1, e.add(() => j(n, t));
1374
1391
  } else e.add(() => j(t));
1375
1392
  }
1376
- function Z(e, t, n) {
1393
+ function Q(e, t, n) {
1377
1394
  return {
1378
1395
  x: e.x + (t.x - e.x) * n,
1379
1396
  y: e.y + (t.y - e.y) * n
1380
1397
  };
1381
1398
  }
1382
- function Tn(e, t) {
1399
+ function Dn(e, t) {
1383
1400
  let n = Infinity, r = {
1384
1401
  index: 0,
1385
1402
  t: 0
1386
1403
  };
1387
1404
  for (let i = 0; i < t.length - 1; i++) {
1388
- 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 = X(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));
1389
1406
  f < n && (n = f, r = {
1390
1407
  index: i,
1391
1408
  t: d
@@ -1393,22 +1410,22 @@ function Tn(e, t) {
1393
1410
  }
1394
1411
  return r;
1395
1412
  }
1396
- function En(e, t, n) {
1397
- let r = X(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 = [];
1398
1415
  for (let n = 0; n < i; n++) {
1399
- let r = Z(e, t, n / (i - 1));
1416
+ let r = Q(e, t, n / (i - 1));
1400
1417
  a.push(r);
1401
1418
  }
1402
1419
  return a;
1403
1420
  }
1404
- function Dn(e, t, n) {
1405
- if (!n || !n.length) return En(e, t, 10);
1406
- let r = Tn(e, n), i = Tn(t, n), a = [], o = (e) => a.push(e);
1407
- 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]);
1408
1425
  for (let e = r.index + 1; e <= i.index && e < n.length; e++) o(n[e]);
1409
- 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;
1410
1427
  }
1411
- function On(e, t, n, r) {
1428
+ function An(e, t, n, r) {
1412
1429
  if (e.length < 2) return () => {};
1413
1430
  let i = null, a, o = [], s = 0;
1414
1431
  for (let t = 0; t < e.length - 1; t++) {
@@ -1431,20 +1448,20 @@ function On(e, t, n, r) {
1431
1448
  a && cancelAnimationFrame(a);
1432
1449
  };
1433
1450
  }
1434
- function Q(e) {
1451
+ function jn(e) {
1435
1452
  return `${e.x},${e.y}`;
1436
1453
  }
1437
1454
  var $ = /* @__PURE__ */ new WeakMap();
1438
1455
  //#endregion
1439
1456
  //#region src/components/Map/with-kiosk.ts
1440
- function kn(e) {
1457
+ function Mn(e) {
1441
1458
  var t;
1442
1459
  let n = u.kioskData;
1443
1460
  return !n || !(!y() || n.z === ((t = c.routeStore.currentRouteLayer) == null ? void 0 : t.name)) ? e : A.fromUnion(e, new A(n.x, n.y, 1, 1));
1444
1461
  }
1445
1462
  //#endregion
1446
1463
  //#region src/components/Map/framing-rect.ts
1447
- function An() {
1464
+ function Nn() {
1448
1465
  let e = u.canvasVisibleRectPx;
1449
1466
  return u.shouldShiftMapRect ? u.rtl ? A.fromMinMax(e.min, {
1450
1467
  x: e.max.x - u.overlayWidthPx,
@@ -1455,4 +1472,4 @@ function An() {
1455
1472
  }, e.max) : e;
1456
1473
  }
1457
1474
  //#endregion
1458
- export { Wt as a, ft as c, ct as d, nn as i, mt as l, kn as n, Vt as o, gn as r, Rt as s, An 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 };