@expofp/floorplan 3.40.1 → 3.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/browser/{Button-9o9f45t9.js → Button-K9L6U_YW.js} +5 -5
  2. package/dist/browser/{CookieConsent-CWeOH8NT.js → CookieConsent-aG4WVcPf.js} +7 -7
  3. package/dist/browser/{Debug-gmbYciZv.js → Debug-DHNsq_k3.js} +7 -7
  4. package/dist/browser/{DebugTools-oruKS8k7.js → DebugTools-CSBtUWTk.js} +6 -6
  5. package/dist/browser/{Demo-CpyvYo3V.js → Demo-WXKC1qDV.js} +9 -9
  6. package/dist/browser/{Free-IKJ3oLzl.js → Free-CedmbSy7.js} +13 -13
  7. package/dist/browser/{GalleryContainer-15Ou0a0n.js → GalleryContainer-D868yMxl.js} +10 -10
  8. package/dist/browser/{GpsLoader--3nhCK-c.js → GpsLoader-C_VRRtlH.js} +34 -34
  9. package/dist/browser/{KioskStore-BbCAJ4oG.js → KioskStore-BO6F_rdS.js} +25 -25
  10. package/dist/browser/{MaplibreAdapter-BeGiGIW8.js → MaplibreAdapter-D4X8l71T.js} +158 -158
  11. package/dist/browser/{ModalContainer-BemUU2sd.js → ModalContainer-DPJNLBW5.js} +10 -10
  12. package/dist/browser/{PermissionNotice-CJG0w297.js → PermissionNotice-Dh8Su-MO.js} +6 -6
  13. package/dist/browser/{SetKioskMode-Bxrmnuiq.js → SetKioskMode-CxKai3ap.js} +16 -16
  14. package/dist/browser/{ShowKiosk-DwJOQt_w.js → ShowKiosk-uwExArQg.js} +11 -11
  15. package/dist/browser/{ViewerMenuPanel-C47nSpsy.js → ViewerMenuPanel-Bk2spmZU.js} +10 -10
  16. package/dist/browser/{add-debug-secret-listener-BWJ8vtA3.js → add-debug-secret-listener-eKo78Ruz.js} +1 -1
  17. package/dist/browser/{adopt-global-settings-Bj-xlzbp.js → adopt-global-settings-zQG9zbVX.js} +9 -9
  18. package/dist/browser/{boolean-editor-DYTOuXsX.js → boolean-editor-DNnfBEvN.js} +9 -9
  19. package/dist/browser/{bootIntercom-WmpQrWiy.js → bootIntercom-BuwPFeWn.js} +2 -2
  20. package/dist/browser/bundle.json +71 -71
  21. package/dist/browser/{camera-events-CRGoe0k2.js → camera-events-DMRkWwAT.js} +1 -1
  22. package/dist/browser/{classnames-C-qmEtCK.js → classnames-fpVQFx2H.js} +2 -2
  23. package/dist/browser/{client-CTJK5_Oh.js → client-BqUboGBa.js} +5 -5
  24. package/dist/browser/{components-DIKCSR5i.js → components-BsPJdFtL.js} +1222 -1221
  25. package/dist/browser/{debug-context-Ch7_Qk1K.js → debug-context-DLVjeviW.js} +5 -5
  26. package/dist/browser/{debug-overlay-B0idj84Z.js → debug-overlay-IH41bxrg.js} +10 -10
  27. package/dist/browser/{debug-ui-tNFSVAdI.js → debug-ui-B0G8eOn_.js} +6 -6
  28. package/dist/browser/{dimming-DYB1b3Zt.js → dimming-DHrRSsrL.js} +210 -210
  29. package/dist/browser/{dist-C5yzkFe8.js → dist-DmbZFcZq.js} +3 -3
  30. package/dist/browser/{dist-CXAT6jgb.js → dist-DnevmpEu.js} +6 -6
  31. package/dist/browser/{dist-DCP6ZWPy.js → dist-touQhXFP.js} +5 -5
  32. package/dist/browser/{efp-debug-init-CE5Ljc9U.js → efp-debug-init-p8CA0913.js} +3 -3
  33. package/dist/browser/{enum-editor-BE0z7t9f.js → enum-editor-DrXhpl-j.js} +4 -4
  34. package/dist/browser/{es5-C5XZa-z4.js → es5-D1_ZW7ue.js} +2 -2
  35. package/dist/browser/{event-head-BhuoCM_k.js → event-head-DJVe00oD.js} +1 -1
  36. package/dist/browser/{event-not-found-aWj_d32e.js → event-not-found-BKhAStEZ.js} +3 -3
  37. package/dist/browser/{exports-crwskzmj.js → exports-Q3fzDLLq.js} +1 -1
  38. package/dist/browser/{favicon-C2OW2nO0.js → favicon-CaBmDR3-.js} +1 -1
  39. package/dist/browser/{fetch-retry.umd-Chejd5BI.js → fetch-retry.umd-2CqDnpHe.js} +2 -2
  40. package/dist/browser/{flex-DoBxei71.js → flex-CQRA8z2c.js} +5 -5
  41. package/dist/browser/{floorplan.loader-CBKn9FtO.js → floorplan.loader-BWCO8dkF.js} +10 -10
  42. package/dist/browser/{floorplan.ready-D3PzsyES.js → floorplan.ready-DdYTcZ58.js} +312 -312
  43. package/dist/browser/{fuse-BxDHutUP.js → fuse-BTImEfZQ.js} +2 -2
  44. package/dist/browser/{i18n-Bjh_3zkB.js → i18n-DgOvRShn.js} +5 -5
  45. package/dist/browser/index.js +16 -16
  46. package/dist/browser/{index.module-97oRLysD.js → index.module-CQh0vpct.js} +4 -4
  47. package/dist/browser/{integrateKiosk-BCcSKCn0.js → integrateKiosk-Ce4vspJD.js} +4 -4
  48. package/dist/browser/{is-own-domain-Dk1KFJZC.js → is-own-domain-CIPwBGvm.js} +1 -1
  49. package/dist/browser/{is-webview-CdC6bAd0.js → is-webview-Bv0d76Tl.js} +1 -1
  50. package/dist/browser/{jsx-runtime-CDbvTGLK.js → jsx-runtime-DwH6FSqr.js} +2 -2
  51. package/dist/browser/{kiosk-record-iLz5eObY.js → kiosk-record-DZyT7VVy.js} +1 -1
  52. package/dist/browser/{lib-CZlXFhVm.js → lib-CFNVmPJ0.js} +3 -3
  53. package/dist/browser/{loadImage-DEVcEoNP.js → loadImage-Dj7yrGrq.js} +4 -4
  54. package/dist/browser/{logDeviceInfo-Y4WA-GYD.js → logDeviceInfo-eVwa3ex5.js} +9 -9
  55. package/dist/browser/{mobx-CQjKXs42.js → mobx-CEWiDKqV.js} +4 -4
  56. package/dist/browser/{optional-boolean-editor-DpM8KyHp.js → optional-boolean-editor-D3FAuTWA.js} +3 -3
  57. package/dist/browser/{optional-enum-editor-BeIZM-sT.js → optional-enum-editor-BREZDEcH.js} +4 -4
  58. package/dist/browser/{optional-string-editor-3XfPu2T1.js → optional-string-editor-eYjLcFv3.js} +4 -4
  59. package/dist/browser/{particles.min-wAEMpm2u.js → particles.min-Cy_hVZou.js} +2 -2
  60. package/dist/browser/{react-BFTM_i4k.js → react-C5VW7EYy.js} +2 -2
  61. package/dist/browser/{react-dom-mrVLzrsv.js → react-dom-pbGdFQ3w.js} +3 -3
  62. package/dist/browser/{rolldown-runtime-CYi1BYyj.js → rolldown-runtime-goUnb6t5.js} +1 -1
  63. package/dist/browser/{scheduler-CYiUDKKK.js → scheduler-HpGLW39a.js} +2 -2
  64. package/dist/browser/{select-CEy_pitw.js → select-tYeM6WvT.js} +10 -10
  65. package/dist/browser/{settings-Bxg4mFZl.js → settings-BcG1IUj2.js} +2 -2
  66. package/dist/browser/{settings-item-C7E6otg7.js → settings-item-Ct12OEqw.js} +6 -6
  67. package/dist/browser/{store-CLk5ZuUi.js → store-prn6mdME.js} +4001 -3828
  68. package/dist/browser/{string-editor-BtZPFPoP.js → string-editor-EJg2kQfO.js} +4 -4
  69. package/dist/browser/{text-field-phVYadrq.js → text-field-FXGzpkZC.js} +5 -5
  70. package/dist/browser/{theme-B5pjM96M.js → theme-9bKPRQHa.js} +8 -8
  71. package/dist/browser/{ui-B1AmK_Cl.js → ui-eYxU40vM.js} +8 -8
  72. package/dist/browser/{useRenderTarget-lCNTfxu9.js → useRenderTarget-BMqoDify.js} +4 -4
  73. package/dist/browser/{viewport-ClQ7t1br.js → viewport-CjpGqDaX.js} +3 -3
  74. package/dist/esm/components/LogoOverlay.d.ts +1 -2
  75. package/dist/esm/components/LogoOverlay.js +1 -1
  76. package/dist/esm/components/Map/Map.js +1 -1
  77. package/dist/esm/store/UIState.d.ts +4 -0
  78. package/dist/esm/store/UIState.js +1 -1
  79. package/package.json +10 -10
@@ -1,18 +1,18 @@
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.40.1" };
4
+ e.SENTRY_RELEASE = { id: "3.41.0" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "2625f088-ed85-4ae2-84e2-7c34c42fa851", e._sentryDebugIdIdentifier = "sentry-dbid-2625f088-ed85-4ae2-84e2-7c34c42fa851");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e685a89c-682e-4605-81dd-902c8ac663b2", e._sentryDebugIdIdentifier = "sentry-dbid-e685a89c-682e-4605-81dd-902c8ac663b2");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-CYi1BYyj.js";
10
- import { j as t, v as n } from "./i18n-Bjh_3zkB.js";
11
- import { t as r } from "./react-BFTM_i4k.js";
12
- import { t as i } from "./loadImage-DEVcEoNP.js";
13
- import { r as a } from "./debug-context-Ch7_Qk1K.js";
14
- import { $t as o, A as s, An as c, Ct as l, Dn as u, En as d, Fn as f, Ft as p, In as m, It as h, Kt as g, Mn as _, Nn as v, On as y, Ot as b, Pn as x, Pt as S, Qt as C, Ut as w, Xt as T, Yt as E, Zt as D, a as O, bt as k, c as A, en as j, in as M, jn as N, kt as P, l as F, on as ee, pn as I, qt as L, t as te, tn as R, vt as z, wn as B, wt as ne, x as re, xn as ie, z as V } from "./store-CLk5ZuUi.js";
15
- import { i as ae, n as oe } from "./viewport-ClQ7t1br.js";
9
+ import { r as e } from "./rolldown-runtime-goUnb6t5.js";
10
+ import { j as t, v as n } from "./i18n-DgOvRShn.js";
11
+ import { t as r } from "./react-C5VW7EYy.js";
12
+ import { t as i } from "./loadImage-Dj7yrGrq.js";
13
+ import { r as a } from "./debug-context-DLVjeviW.js";
14
+ import { $t as o, At as s, B as c, Dn as l, Fn as u, Ft as d, In as f, It as p, Jt as m, Ln as h, Lt as g, Mn as _, Nn as v, On as y, Pn as b, Qt as x, S, Sn as C, Tn as w, Tt as T, Wt as E, Xt as D, Zt as O, a as k, an as A, c as j, en as M, j as N, jn as P, kn as F, kt as I, l as L, mn as R, nn as z, qt as B, sn as ee, t as te, tn as V, wt as ne, xt as re, yt as ie } from "./store-prn6mdME.js";
15
+ import { i as ae, n as oe } from "./viewport-CjpGqDaX.js";
16
16
  //#region src/components/Map/traffic/trafficLayers.ts
17
17
  var se = "traffic_route", ce = "traffic_route_stop", H = "traffic_vehicles", le = "build_route_lines", ue = "build_route_dots", de = 5;
18
18
  function fe() {
@@ -49,7 +49,7 @@ function ge() {
49
49
  }
50
50
  //#endregion
51
51
  //#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
52
- var _e = /* @__PURE__ */ e(u(), 1);
52
+ var _e = /* @__PURE__ */ e(y(), 1);
53
53
  function ve(e) {
54
54
  return e.hideExhibitorBoothNumber || e.hideBoothBadges || !e.hasExhibitors ? !1 : e.noLabels || !e.hideLogoInBooth && e.hasLogoInBooth;
55
55
  }
@@ -63,12 +63,12 @@ function Oe(e) {
63
63
  var t, n;
64
64
  if (!((t = e.paths) != null && t.length)) return [];
65
65
  let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
66
- for (let t of e.paths) for (let e of ie(t.index, r)) i.push(e);
66
+ for (let t of e.paths) for (let e of C(t.index, r)) i.push(e);
67
67
  return i;
68
68
  }
69
69
  function ke(e) {
70
70
  let t = Oe(e);
71
- return t.length ? c.fromPoints(t.flat().map(([e, t]) => ({
71
+ return t.length ? P.fromPoints(t.flat().map(([e, t]) => ({
72
72
  x: e,
73
73
  y: t
74
74
  }))) : null;
@@ -92,7 +92,7 @@ function Ae(e) {
92
92
  e + 2
93
93
  ]);
94
94
  }
95
- return new v(t, n);
95
+ return new b(t, n);
96
96
  }
97
97
  function U(e, t, n) {
98
98
  return n.containsPoint({
@@ -165,76 +165,76 @@ function W(e) {
165
165
  }
166
166
  function Pe(e) {
167
167
  var t;
168
- let n = W(e.borderColor) || W(B.boothBorderColor) || B.colors.booths.default;
168
+ let n = W(e.borderColor) || W(w.boothBorderColor) || w.colors.booths.default;
169
169
  return ((t = e.paths) == null ? void 0 : t.length) > 1 && W(e.paths[e.paths.length - 1].color) || n;
170
170
  }
171
171
  function Fe(e) {
172
172
  var t;
173
- let r = De(e.title || e.name), i = Pe(e), a = re((0, _e.default)(i).hex()), o = l();
174
- Ee.font = ee(Ce, o);
175
- let s = Ee.measureText(r).width, c = Math.ceil(s + we * 2), u = (e.borderWidth || te.borderWidth) / 2, d = c * Te, m = 54 * Te, h = e.rect.size.width, g = e.rect.size.height, v = (e) => {
176
- let t = e ? g : h, n = e ? h : g;
177
- return Math.min(t > 0 ? t * ye / d : Infinity, n > 0 ? n * be / m : Infinity);
178
- }, y = Oe(e), b = Ae(y), x = (t = e.rotate) == null ? 0 : t, O = 0, k = 0, A = 0, j = 0, M = () => {
179
- let t = Ne(e, y, b, u, O === 0 || O === 3 ? 1 : -1, O === 0 || O === 1 ? 1 : -1);
180
- k = t.x, A = t.y;
181
- let n = v(O === 1 || O === 3);
182
- j = je(y, b, k, A, d, m, n, x);
173
+ let r = De(e.title || e.name), i = Pe(e), a = S((0, _e.default)(i).hex()), s = ne();
174
+ Ee.font = ee(Ce, s);
175
+ let c = Ee.measureText(r).width, l = Math.ceil(c + we * 2), u = (e.borderWidth || te.borderWidth) / 2, m = l * Te, h = 54 * Te, g = e.rect.size.width, _ = e.rect.size.height, y = (e) => {
176
+ let t = e ? _ : g, n = e ? g : _;
177
+ return Math.min(t > 0 ? t * ye / m : Infinity, n > 0 ? n * be / h : Infinity);
178
+ }, b = Oe(e), C = Ae(b), w = (t = e.rotate) == null ? 0 : t, k = 0, A = 0, j = 0, M = 0, N = () => {
179
+ let t = Ne(e, b, C, u, k === 0 || k === 3 ? 1 : -1, k === 0 || k === 1 ? 1 : -1);
180
+ A = t.x, j = t.y;
181
+ let n = y(k === 1 || k === 3);
182
+ M = je(b, C, A, j, m, h, n, w);
183
183
  };
184
- M();
185
- let N = (t, n) => {
184
+ N();
185
+ let P = (t, n) => {
186
186
  let r = t / 2, i = n / 2;
187
- return new _(f({
188
- x: k + r,
189
- y: A + i
190
- }, x, {
191
- x: k,
192
- y: A
187
+ return new v(f({
188
+ x: A + r,
189
+ y: j + i
190
+ }, w, {
191
+ x: A,
192
+ y: j
193
193
  }), {
194
194
  x: t,
195
195
  y: n
196
- }, x, e.elevation);
197
- }, P = ne(o, C()), I = E(N(1, 1), i);
196
+ }, w, e.elevation);
197
+ }, F = T(s, o()), I = D(P(1, 1), i);
198
198
  I.hidden = !0, I.dim = e.skipDim ? 0 : void 0;
199
- let L = T(D([[r], []], a, 0, [P, P]), N(1, 1), [0, 0], {
199
+ let R = O(x([[r], []], a, 0, [F, F]), P(1, 1), [0, 0], {
200
200
  horizontal: "center",
201
201
  vertical: "center"
202
202
  });
203
- L.hidden = !0, L.dim = e.skipDim ? 0 : void 0;
204
- let R = {
203
+ R.hidden = !0, R.dim = e.skipDim ? 0 : void 0;
204
+ let z = {
205
205
  booth: e,
206
206
  anchor: {
207
- x: k,
208
- y: A
207
+ x: A,
208
+ y: j
209
209
  },
210
210
  source: {
211
- x: d,
212
- y: m
211
+ x: m,
212
+ y: h
213
213
  },
214
- rotation: x,
215
- maxScale: j,
214
+ rotation: w,
215
+ maxScale: M,
216
216
  bg: I,
217
- text: L
218
- }, z = new Ie(R);
219
- I.onScale = ({ pixelSize: e }) => z.layOutBg(e), L.onScale = ({ pixelSize: e }) => z.layOutText(e);
220
- let B = [];
221
- return B.push(n(() => e.skipDim, (e) => {
222
- I.dim = e ? 0 : void 0, L.dim = e ? 0 : void 0, w(I, L);
223
- })), B.push(n(() => {
217
+ text: R
218
+ }, B = new Ie(z);
219
+ I.onScale = ({ pixelSize: e }) => B.layOutBg(e), R.onScale = ({ pixelSize: e }) => B.layOutText(e);
220
+ let V = [];
221
+ return V.push(n(() => e.skipDim, (e) => {
222
+ I.dim = e ? 0 : void 0, R.dim = e ? 0 : void 0, E(I, R);
223
+ })), V.push(n(() => {
224
224
  var t, n;
225
225
  return (t = (n = e.layer) == null ? void 0 : n.visible) == null || t;
226
226
  }, (e) => {
227
- I.hidden = !e, L.hidden = !e, w(I, L);
228
- })), B.push(n(() => F.mapSettings, ({ roll: e }) => {
227
+ I.hidden = !e, R.hidden = !e, E(I, R);
228
+ })), V.push(n(() => L.mapSettings, ({ roll: e }) => {
229
229
  p(e == null ? 0 : e) && (I.onRoll = ({ roll: e, pixelSize: t }) => {
230
- let n = S(e, x);
231
- if (n !== 0) return x += n * Math.PI / 2, O = ((O + n) % 4 + 4) % 4, M(), R.anchor.x = k, R.anchor.y = A, R.rotation = x, R.maxScale = j, [...z.layOutBg(t), ...z.layOutText(t)];
230
+ let n = d(e, w);
231
+ if (n !== 0) return w += n * Math.PI / 2, k = ((k + n) % 4 + 4) % 4, N(), z.anchor.x = A, z.anchor.y = j, z.rotation = w, z.maxScale = M, [...B.layOutBg(t), ...B.layOutText(t)];
232
232
  });
233
233
  }, { fireImmediately: !0 })), {
234
234
  bg: I,
235
- text: L,
235
+ text: R,
236
236
  dispose: () => {
237
- B.forEach((e) => e()), B.length = 0;
237
+ V.forEach((e) => e()), V.length = 0;
238
238
  }
239
239
  };
240
240
  }
@@ -252,7 +252,7 @@ var Ie = class {
252
252
  }
253
253
  rectScaled(e) {
254
254
  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;
255
- return new _(f({
255
+ return new v(f({
256
256
  x: t.x + s / 2,
257
257
  y: t.y + c / 2
258
258
  }, i, t), {
@@ -267,10 +267,10 @@ var Ie = class {
267
267
  };
268
268
  function Le(e, t) {
269
269
  let n = [], r = [], i = [];
270
- for (let e of t) if (e instanceof I && ve({
271
- hideExhibitorBoothNumber: d.hideExhibitorBoothNumber,
272
- hideBoothBadges: d.hideBoothBadges,
273
- hideLogoInBooth: F.hideLogoInBooth,
270
+ for (let e of t) if (e instanceof R && ve({
271
+ hideExhibitorBoothNumber: l.hideExhibitorBoothNumber,
272
+ hideBoothBadges: l.hideBoothBadges,
273
+ hideLogoInBooth: L.hideLogoInBooth,
274
274
  noLabels: e.noLabels,
275
275
  hasExhibitors: e.exhibitors.length > 0,
276
276
  hasLogoInBooth: e.exhibitors.some((e) => e.logoInBooth && e.logo)
@@ -303,14 +303,14 @@ function Le(e, t) {
303
303
  var Re = "_selected", ze = "markers";
304
304
  function Be(e, t) {
305
305
  let { center: n, rotation: r, elevation: i } = e.bounds, { width: a, height: o } = e.source;
306
- return e.bounds = j(n.x, n.y, a, o, t, r, i), [e];
306
+ return e.bounds = V(n.x, n.y, a, o, t, r, i), [e];
307
307
  }
308
308
  function Ve(e) {
309
309
  Ke = e;
310
310
  }
311
311
  function He(e) {
312
312
  let { scene: t } = e, r = [], i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [], s = t.rootLayer.children.find((e) => e.name === ze);
313
- s.onScale = ({ pixelSize: e }) => Ve(e), b(Ue), w(s);
313
+ s.onScale = ({ pixelSize: e }) => Ve(e), I(Ue), E(s);
314
314
  async function c(e) {
315
315
  let t = [];
316
316
  e.forEach((e) => {
@@ -341,21 +341,21 @@ function He(e) {
341
341
  function d(e, t, n) {
342
342
  let r = a.get(e);
343
343
  if (r) return r;
344
- let i = M(t.img, t.width, t.height, n);
344
+ let i = A(t.img, t.width, t.height, n);
345
345
  return a.set(e, i), i;
346
346
  }
347
347
  function f() {
348
- let e = A.routeStore.markersData.markers;
348
+ let e = j.routeStore.markersData.markers;
349
349
  if (!e.length) return;
350
350
  o = [];
351
- let t = F.is3DView;
351
+ let t = L.is3DView;
352
352
  e.forEach((e) => {
353
353
  var n, r;
354
354
  let a = i.get(e.icon);
355
355
  if (!a) return;
356
356
  let s = i.get(e.selectedIcon);
357
357
  if (!s) return;
358
- let c = a.scale || window.devicePixelRatio, l = d(e.icon, a, c), u = d(e.selectedIcon, s, c), f = (n = (r = O.findLayer(e.z)) == null ? void 0 : r.visible) == null || n, p = j(e.x, e.y, l.width, l.height, 1, 0), m = j(e.x, e.y, u.width, u.height, 1, 0), h;
358
+ let c = a.scale || window.devicePixelRatio, l = d(e.icon, a, c), u = d(e.selectedIcon, s, c), f = (n = (r = k.findLayer(e.z)) == null ? void 0 : r.visible) == null || n, p = V(e.x, e.y, l.width, l.height, 1, 0), m = V(e.x, e.y, u.width, u.height, 1, 0), h;
359
359
  switch (e.position) {
360
360
  case "lefttop":
361
361
  h = [0, 0];
@@ -368,16 +368,16 @@ function He(e) {
368
368
  break;
369
369
  default: h = [.5, .5];
370
370
  }
371
- let _ = {
372
- ...g(l, p, {
371
+ let g = {
372
+ ...B(l, p, {
373
373
  hidden: !f,
374
374
  origin: h
375
375
  }),
376
376
  id: e.id,
377
377
  scale: c,
378
378
  screenSpace: t
379
- }, v = {
380
- ...g(u, m, {
379
+ }, _ = {
380
+ ...B(u, m, {
381
381
  hidden: !(f && e.active),
382
382
  origin: h
383
383
  }),
@@ -385,7 +385,7 @@ function He(e) {
385
385
  scale: c,
386
386
  screenSpace: t
387
387
  };
388
- o.push(_, v);
388
+ o.push(g, _);
389
389
  }), s.children = o, o.forEach((e) => {
390
390
  l(e), u(e);
391
391
  });
@@ -394,46 +394,46 @@ function He(e) {
394
394
  s.children = [], o = [];
395
395
  }
396
396
  function m() {
397
- let e = A.routeStore.markersData.markers;
397
+ let e = j.routeStore.markersData.markers;
398
398
  e.length && e.forEach((e) => {
399
399
  var t, n;
400
400
  let r = o.find((t) => t.id === e.id), i = o.find((t) => t.id === `${e.id}${Re}`);
401
401
  if (!r || !i) return;
402
- let a = (t = (n = O.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
402
+ let a = (t = (n = k.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
403
403
  e.active ? (r.hidden = !0, i.hidden = !(a && e.active)) : (r.hidden = !a, i.hidden = !0);
404
404
  });
405
405
  }
406
- return r.push(n(() => [A.routeStore.selectedMarkers, A.layerStore.visible], () => {
407
- if (!A.routeStore.markersData.markers.length) {
408
- p(), w(s);
406
+ return r.push(n(() => [j.routeStore.selectedMarkers, j.layerStore.visible], () => {
407
+ if (!j.routeStore.markersData.markers.length) {
408
+ p(), E(s);
409
409
  return;
410
410
  }
411
- m(), w(...o);
412
- })), r.push(n(() => A.routeStore.markersData.markers, () => {
413
- c(A.routeStore.markersData.icons).then(() => {
414
- f(), w(s);
411
+ m(), E(...o);
412
+ })), r.push(n(() => j.routeStore.markersData.markers, () => {
413
+ c(j.routeStore.markersData.icons).then(() => {
414
+ f(), E(s);
415
415
  });
416
416
  }, { fireImmediately: !0 })), function() {
417
- r.forEach((e) => e()), r.length = 0, s.onScale = void 0, b(), w(s);
417
+ r.forEach((e) => e()), r.length = 0, s.onScale = void 0, I(), E(s);
418
418
  };
419
419
  }
420
420
  function Ue(e, t) {
421
421
  return We(e, t, Ke);
422
422
  }
423
423
  function We(e, t, n) {
424
- for (let r of A.routeStore.markersData.markers) {
425
- let i = A.routeStore.markersData.icons.find((e) => e.name === r.icon);
424
+ for (let r of j.routeStore.markersData.markers) {
425
+ let i = j.routeStore.markersData.icons.find((e) => e.name === r.icon);
426
426
  if (!i) continue;
427
427
  let a = i.width * n * devicePixelRatio, o = i.height * n * devicePixelRatio;
428
428
  if (Ge(e, t, r.x, r.y, a, o)) {
429
- let e = A.layerStore.findLayer(r.z);
429
+ let e = j.layerStore.findLayer(r.z);
430
430
  if (!e || e && e.visible) return r;
431
431
  }
432
432
  }
433
433
  return null;
434
434
  }
435
435
  function Ge(e, t, n, r, i, a) {
436
- return c.fromCenter({
436
+ return P.fromCenter({
437
437
  x: n,
438
438
  y: r
439
439
  }, {
@@ -448,17 +448,17 @@ var Ke = 1;
448
448
  //#endregion
449
449
  //#region src/components/Map/drawing/config/config-all.ts
450
450
  function qe() {
451
- let { defaultLayer: e } = A.layerStore, { layers: t } = A.layerStore;
451
+ let { defaultLayer: e } = j.layerStore, { layers: t } = j.layerStore;
452
452
  if (e) {
453
453
  let n = [...t], r = t.indexOf(e);
454
454
  n.splice(r, 1), t = [e, ...n];
455
455
  }
456
- let n = t.filter((e) => !e.rootParent).map((e) => k(e));
456
+ let n = t.filter((e) => !e.rootParent).map((e) => re(e));
457
457
  return Promise.all(n).then((e) => {
458
- let t = L(ze, []);
459
- t.overlay = F.is3DView;
460
- let n = s({ overlay: F.is3DView }), r = [], i = [];
461
- for (let t of e.flat()) R(t.name) ? (t.dim = 0, i.push(t)) : r.push(t);
458
+ let t = m(ze, []);
459
+ t.overlay = L.is3DView;
460
+ let n = N({ overlay: L.is3DView }), r = [], i = [];
461
+ for (let t of e.flat()) z(t.name) ? (t.dim = 0, i.push(t)) : r.push(t);
462
462
  let { layer: a, cleanup: o } = Le("root", te.booths);
463
463
  return {
464
464
  layers: [
@@ -477,7 +477,7 @@ function qe() {
477
477
  //#region src/components/Map/MapCursorCoords.tsx
478
478
  var G = /* @__PURE__ */ e(r(), 1), Je = 2;
479
479
  function Ye(e) {
480
- let { canvas: t } = e, n = h(), r = a(), i = (0, G.useCallback)(() => r("cursor", void 0), [r]), o = (0, G.useEffectEvent)((e) => {
480
+ let { canvas: t } = e, n = g(), r = a(), i = (0, G.useCallback)(() => r("cursor", void 0), [r]), o = (0, G.useEffectEvent)((e) => {
481
481
  if (!e.isPrimary) return;
482
482
  let t = n.canvasToPlan({
483
483
  x: e.offsetX,
@@ -495,7 +495,7 @@ function Ye(e) {
495
495
  }, [t, i]), null;
496
496
  }
497
497
  function Xe() {
498
- let e = A.layerStore.layers.find((e) => e.visible && (e.mode === z.TurnedOn || e.mode === z.TurnedOff));
498
+ let e = j.layerStore.layers.find((e) => e.visible && (e.mode === ie.TurnedOn || e.mode === ie.TurnedOff));
499
499
  return (e == null ? void 0 : e.name) || null;
500
500
  }
501
501
  function Ze(e, t) {
@@ -505,7 +505,7 @@ function Ze(e, t) {
505
505
  //#endregion
506
506
  //#region src/components/Map/MapViewport.tsx
507
507
  function Qe() {
508
- let e = h(), t = (0, G.useRef)({ api: e }), [n] = (0, G.useState)(() => oe(t));
508
+ let e = g(), t = (0, G.useRef)({ api: e }), [n] = (0, G.useState)(() => oe(t));
509
509
  return (0, G.useLayoutEffect)(() => {
510
510
  t.current = { api: e };
511
511
  }), (0, G.useEffect)(() => (ae(n), () => ae(void 0)), [n]), null;
@@ -658,7 +658,7 @@ Enable/Disable Preview: Press ${st}.
658
658
  let r = e.x, i = e.y, a = t.x, o = t.y, s = n.x, c = n.y;
659
659
  return Math.abs((c - o) * r - (s - a) * i + s * o - c * a) / (Math.sqrt((c - o) ** 2 + (s - a) ** 2) || 1e-10);
660
660
  }, r = (e, t, n, r) => {
661
- let i = N({
661
+ let i = _({
662
662
  p0: e,
663
663
  p1: t
664
664
  }, {
@@ -697,105 +697,105 @@ Enable/Disable Preview: Press ${st}.
697
697
  }
698
698
  };
699
699
  function lt({ enabled: e, scene: t }) {
700
- let n = (0, G.useRef)(!1), r = (0, G.useRef)(), i = (0, G.useMemo)(() => o(q, et), []), a = (0, G.useMemo)(() => o(q, tt), []), s = (0, G.useMemo)(() => new ct(), []), c = (0, G.useRef)(new $e()), l = (0, G.useMemo)(() => {
700
+ let n = (0, G.useRef)(!1), r = (0, G.useRef)(), i = (0, G.useMemo)(() => M(q, et), []), a = (0, G.useMemo)(() => M(q, tt), []), o = (0, G.useMemo)(() => new ct(), []), l = (0, G.useRef)(new $e()), u = (0, G.useMemo)(() => {
701
701
  if (!t) return {};
702
702
  let e = t.rootLayer.children;
703
703
  return {
704
704
  linesLayer: e.find((e) => e.name === le),
705
705
  pointsLayer: e.find((e) => e.name === ue)
706
706
  };
707
- }, [t]), u = (0, G.useCallback)(() => {
708
- if (!l || !i || !a) return;
709
- let { linesLayer: e, pointsLayer: t } = l;
707
+ }, [t]), d = (0, G.useCallback)(() => {
708
+ if (!u || !i || !a) return;
709
+ let { linesLayer: e, pointsLayer: t } = u;
710
710
  if (!e || !t) return;
711
- let o = s.points, u = n.current;
712
- u ? t.children.length = 0 : t.children = o.map(({ x: e, y: t }, n) => {
713
- let o = n == s.selected ? a : i;
711
+ let s = o.points, c = n.current;
712
+ c ? t.children.length = 0 : t.children = s.map(({ x: e, y: t }, n) => {
713
+ let s = n == o.selected ? a : i;
714
714
  return {
715
- source: o,
716
- bounds: j(e, t, o.width, o.height, r.current)
715
+ source: s,
716
+ bounds: V(e, t, s.width, s.height, r.current)
717
717
  };
718
718
  });
719
719
  let d = [];
720
- for (let e = 1; e < o.length; e++) {
721
- let t = o[e - 1], n = o[e];
720
+ for (let e = 1; e < s.length; e++) {
721
+ let t = s[e - 1], n = s[e];
722
722
  d.push({
723
723
  points: {
724
724
  p0: t,
725
725
  p1: n
726
726
  },
727
- color: u ? et : nt,
727
+ color: c ? et : nt,
728
728
  width: rt
729
729
  });
730
730
  }
731
- d.length ? e.children = d : e.children.length = 0, c.current.add(() => w(t, e)), s.instruct(), s.log(JSON.stringify(s.points));
731
+ d.length ? e.children = d : e.children.length = 0, l.current.add(() => E(t, e)), o.instruct(), o.log(JSON.stringify(o.points));
732
732
  }, [
733
- s,
734
- l,
733
+ o,
734
+ u,
735
735
  i,
736
736
  a
737
- ]), d = (0, G.useCallback)((e) => {
737
+ ]), f = (0, G.useCallback)((e) => {
738
738
  let t = e.key.toUpperCase();
739
- s.execute(() => {
739
+ o.execute(() => {
740
740
  switch (t) {
741
741
  case it:
742
- e.preventDefault(), s.undo(), n.current = !1, u();
742
+ e.preventDefault(), o.undo(), n.current = !1, d();
743
743
  break;
744
744
  case at:
745
- e.preventDefault(), s.applySmoothing(), n.current = !1, u();
745
+ e.preventDefault(), o.applySmoothing(), n.current = !1, d();
746
746
  break;
747
747
  case ot:
748
- e.preventDefault(), s.applySimplification(), n.current = !1, u();
748
+ e.preventDefault(), o.applySimplification(), n.current = !1, d();
749
749
  break;
750
750
  case st:
751
- e.preventDefault(), n.current = !n.current, u();
751
+ e.preventDefault(), n.current = !n.current, d();
752
752
  break;
753
753
  }
754
754
  });
755
- }, [s, u]), f = (0, G.useCallback)((e) => {
755
+ }, [o, d]), p = (0, G.useCallback)((e) => {
756
756
  r.current = e;
757
- let { pointsLayer: t } = l;
757
+ let { pointsLayer: t } = u;
758
758
  if (!t) return [];
759
759
  let n = [];
760
- return s.execute(() => {
760
+ return o.execute(() => {
761
761
  let e = t.children;
762
- for (let t of e) t.bounds = j(t.bounds.center.x, t.bounds.center.y, t.source.width, t.source.height, r.current), n.push(t);
762
+ for (let t of e) t.bounds = V(t.bounds.center.x, t.bounds.center.y, t.source.width, t.source.height, r.current), n.push(t);
763
763
  }), n;
764
- }, [l, s]), p = (0, G.useCallback)((e) => {
765
- s.execute(() => {
766
- s.add({
764
+ }, [u, o]), m = (0, G.useCallback)((e) => {
765
+ o.execute(() => {
766
+ o.add({
767
767
  x: e.x,
768
768
  y: e.y
769
- }), s.select(s.points.length - 1), u();
769
+ }), o.select(o.points.length - 1), d();
770
770
  });
771
- }, [s, u]);
771
+ }, [o, d]);
772
772
  (0, G.useEffect)(() => {
773
773
  var t, n;
774
- if (!e || !(l != null && l.pointsLayer)) return;
775
- let { pointsLayer: i } = l;
776
- return r.current = (t = (n = V()) == null ? void 0 : n.state().pixelSize) == null ? 1 : t, s.execute(() => {
777
- s.restore(), u();
778
- }), i.onScale = ({ pixelSize: e }) => f(e), c.current.add(() => w(i)), P(p), window.addEventListener("keyup", d), () => {
779
- window.removeEventListener("keyup", d), P(), i.onScale = void 0, c.current.destroy();
774
+ if (!e || !(u != null && u.pointsLayer)) return;
775
+ let { pointsLayer: i } = u;
776
+ return r.current = (t = (n = c()) == null ? void 0 : n.state().pixelSize) == null ? 1 : t, o.execute(() => {
777
+ o.restore(), d();
778
+ }), i.onScale = ({ pixelSize: e }) => p(e), l.current.add(() => E(i)), s(m), window.addEventListener("keyup", f), () => {
779
+ window.removeEventListener("keyup", f), s(), i.onScale = void 0, l.current.destroy();
780
780
  };
781
781
  }, [
782
782
  e,
783
- l,
784
- s,
785
783
  u,
784
+ o,
785
+ d,
786
+ m,
786
787
  p,
787
- f,
788
- d
788
+ f
789
789
  ]);
790
790
  }
791
791
  //#endregion
792
792
  //#region src/components/Map/traffic/useManageTraffic.ts
793
793
  var J = 2, ut = J * 3.5, Y = J * 12, dt = Y * .7, ft = 8, pt = "transport_locations", mt = 150, ht = "#a4aab6", gt = 1e3, _t = 2e4, vt = 500;
794
794
  function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
795
- let o = (0, G.useRef)(window.devicePixelRatio), s = (0, G.useRef)(/* @__PURE__ */ new Map()), c = (0, G.useRef)(/* @__PURE__ */ new Map()), l = (0, G.useRef)(null), u = (0, G.useRef)(null), d = (0, G.useRef)(0), f = (0, G.useRef)(1), p = (0, G.useRef)(new $e()), m = (0, G.useRef)(/* @__PURE__ */ new Map()), h = (0, G.useRef)(gt), g = (0, G.useRef)(/* @__PURE__ */ new Map()), _ = (0, G.useRef)(void 0);
795
+ let o = (0, G.useRef)(window.devicePixelRatio), s = (0, G.useRef)(/* @__PURE__ */ new Map()), l = (0, G.useRef)(/* @__PURE__ */ new Map()), u = (0, G.useRef)(null), d = (0, G.useRef)(null), f = (0, G.useRef)(0), p = (0, G.useRef)(1), m = (0, G.useRef)(new $e()), h = (0, G.useRef)(/* @__PURE__ */ new Map()), g = (0, G.useRef)(gt), _ = (0, G.useRef)(/* @__PURE__ */ new Map()), v = (0, G.useRef)(void 0);
796
796
  (0, G.useEffect)(() => {
797
797
  if (!e || !n) return;
798
- let v = !1, y, b = n.rootLayer.children, x = c.current, S = s.current, C = p.current;
798
+ let y = !1, b, x = n.rootLayer.children, S = l.current, C = s.current, w = m.current;
799
799
  async function T() {
800
800
  try {
801
801
  var e, n;
@@ -811,19 +811,19 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
811
811
  console.warn("useManageTraffic failed to get JSON", e);
812
812
  }
813
813
  if (!a || a.disabled || a.error) return;
814
- o.current = bt((e = (n = V()) == null ? void 0 : n.state().pixelSize) == null ? window.devicePixelRatio : e);
815
- let c = new Map(a.routes.map(({ id: e, color: t }) => [e, t])), l = /* @__PURE__ */ new Map();
816
- c.forEach((e) => {
817
- l.set(e, St({
814
+ o.current = bt((e = (n = c()) == null ? void 0 : n.state().pixelSize) == null ? window.devicePixelRatio : e);
815
+ let l = new Map(a.routes.map(({ id: e, color: t }) => [e, t])), u = /* @__PURE__ */ new Map();
816
+ l.forEach((e) => {
817
+ u.set(e, St({
818
818
  radius: ut,
819
819
  color: e,
820
820
  scale: window.devicePixelRatio
821
821
  }));
822
822
  });
823
- let p = he(), h = b.filter((e) => p.test(e.name)), _ = ge(), v = b.filter((e) => _.test(e.name));
824
- a.routes.slice(0, h.length).forEach(({ id: e, color: t, path: n, stops: r, hiddenPoints: i }, a) => {
825
- m.current.set(e, n);
826
- let s = h[a];
823
+ let m = he(), g = x.filter((e) => m.test(e.name)), v = ge(), y = x.filter((e) => v.test(e.name));
824
+ a.routes.slice(0, g.length).forEach(({ id: e, color: t, path: n, stops: r, hiddenPoints: i }, a) => {
825
+ h.current.set(e, n);
826
+ let s = g[a];
827
827
  if (s) {
828
828
  var c;
829
829
  let e = new Map((c = i == null ? void 0 : i.map((e) => [$(e), e])) == null ? [] : c);
@@ -838,38 +838,38 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
838
838
  width: J
839
839
  });
840
840
  }
841
- s.children.length && C.add(() => w(s));
841
+ s.children.length && w.add(() => E(s));
842
842
  }
843
- let u = v[a], d = l.get(t);
844
- u && d && r != null && r.length && (r.forEach((e) => {
845
- u.children.push({
843
+ let l = y[a], d = u.get(t);
844
+ l && d && r != null && r.length && (r.forEach((e) => {
845
+ l.children.push({
846
846
  source: d,
847
- bounds: j(e.x, e.y, d.width, d.height, o.current)
847
+ bounds: V(e.x, e.y, d.width, d.height, o.current)
848
848
  });
849
- }), u.children.length && C.add(() => w(u)));
849
+ }), l.children.length && w.add(() => E(l)));
850
850
  });
851
- let y = b.find((e) => e.name === H);
852
- if (!y) {
851
+ let b = x.find((e) => e.name === H);
852
+ if (!b) {
853
853
  console.warn(`useManageTraffic: the scene has no "${H}" layer`);
854
854
  return;
855
855
  }
856
856
  let T = /* @__PURE__ */ new Map();
857
- y.onScale = ({ pixelSize: e }) => {
857
+ b.onScale = ({ pixelSize: e }) => {
858
858
  o.current = bt(e);
859
859
  let t = [];
860
- for (let e of v) {
860
+ for (let e of y) {
861
861
  let n = e.children;
862
862
  for (let e of n) {
863
863
  let n = e.source;
864
- e.bounds = j(e.bounds.center.x, e.bounds.center.y, n.width, n.height, o.current, e.bounds.rotation), t.push(e);
864
+ e.bounds = V(e.bounds.center.x, e.bounds.center.y, n.width, n.height, o.current, e.bounds.rotation), t.push(e);
865
865
  }
866
866
  }
867
867
  for (let e of s.current.values()) {
868
868
  let n = e.source;
869
- e.bounds = j(e.bounds.center.x, e.bounds.center.y, n.width, n.height, o.current, e.bounds.rotation), t.push(e);
869
+ e.bounds = V(e.bounds.center.x, e.bounds.center.y, n.width, n.height, o.current, e.bounds.rotation), t.push(e);
870
870
  }
871
871
  return t;
872
- }, C.add(() => w(y)), c.forEach((e, t) => {
872
+ }, w.add(() => E(b)), l.forEach((e, t) => {
873
873
  T.set(t, Ct({
874
874
  id: t,
875
875
  width: Y,
@@ -878,59 +878,59 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
878
878
  scale: window.devicePixelRatio
879
879
  }));
880
880
  });
881
- let k = Ct({
881
+ let j = Ct({
882
882
  id: "orphan",
883
883
  width: Y,
884
884
  height: Y,
885
885
  color: ht,
886
886
  scale: window.devicePixelRatio
887
- }), A = null;
887
+ }), M = null;
888
888
  try {
889
- A = M(await i(`${t}icons/bus-white.svg`), dt, dt, window.devicePixelRatio);
889
+ M = A(await i(`${t}icons/bus-white.svg`), dt, dt, window.devicePixelRatio);
890
890
  } catch (e) {
891
891
  console.error(e);
892
892
  }
893
- u.current = (e) => {
893
+ d.current = (e) => {
894
894
  try {
895
895
  var t;
896
896
  let n = JSON.parse(e.data);
897
897
  if (n.type !== pt) return;
898
898
  let r = e.timeStamp || performance.now();
899
- f.current = Math.round(r - d.current), d.current = r;
900
- let i = Math.max((t = f.current) == null ? vt : t, vt), a = y.children, s = !1;
899
+ p.current = Math.round(r - f.current), f.current = r;
900
+ let i = Math.max((t = p.current) == null ? vt : t, vt), a = b.children, s = !1;
901
901
  n.data.forEach(({ id: e, x: t, y: n, route_id: r, hidden: c }) => {
902
902
  var l;
903
- if (x.has(e)) {
903
+ if (S.has(e)) {
904
904
  var u;
905
- (u = x.get(e)) == null || u(), x.delete(e);
905
+ (u = S.get(e)) == null || u(), S.delete(e);
906
906
  }
907
- let d = S.get(e), f = (l = S.get(Z(e))) == null ? null : l;
907
+ let d = C.get(e), f = (l = C.get(Z(e))) == null ? null : l;
908
908
  if (c && d && f) {
909
- d.hidden = !0, f.hidden = !0, C.add(() => w(d, f));
909
+ d.hidden = !0, f.hidden = !0, w.add(() => E(d, f));
910
910
  return;
911
911
  }
912
- if (g.current.set(e, performance.now()), !d) {
912
+ if (_.current.set(e, performance.now()), !d) {
913
913
  var p;
914
- let i = (p = T.get(r)) == null ? k : p, c = {
914
+ let i = (p = T.get(r)) == null ? j : p, c = {
915
915
  source: i,
916
- bounds: j(t, n, i.width, i.height, o.current, 0)
916
+ bounds: V(t, n, i.width, i.height, o.current, 0)
917
917
  };
918
- if (S.set(e, c), A) {
918
+ if (C.set(e, c), M) {
919
919
  let r = Z(e), i = {
920
- source: A,
921
- bounds: j(t, n, A.width, A.height, o.current, 0)
920
+ source: M,
921
+ bounds: V(t, n, M.width, M.height, o.current, 0)
922
922
  };
923
- A.setAttribute("id", r), S.set(r, i), a.push(c, i);
923
+ M.setAttribute("id", r), C.set(r, i), a.push(c, i);
924
924
  } else a.push(c);
925
925
  s = !0;
926
926
  return;
927
927
  }
928
- let h = d.bounds.center, _ = Dt(h, {
928
+ let m = d.bounds.center, g = Dt(m, {
929
929
  x: t,
930
930
  y: n
931
- }, m.current.get(r));
932
- if (_.reduce((e, t, n) => n === 0 ? e : e + X(_[n - 1], t), 0) >= mt || document.hidden) wt({
933
- updateQueue: C,
931
+ }, h.current.get(r));
932
+ if (g.reduce((e, t, n) => n === 0 ? e : e + X(g[n - 1], t), 0) >= mt || document.hidden) wt({
933
+ updateQueue: w,
934
934
  vehicle: d,
935
935
  vehicleFinery: f,
936
936
  x: t,
@@ -942,9 +942,9 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
942
942
  })
943
943
  });
944
944
  else {
945
- let t = Ot(_, i, (e) => {
945
+ let t = Ot(g, i, (e) => {
946
946
  wt({
947
- updateQueue: C,
947
+ updateQueue: w,
948
948
  vehicle: d,
949
949
  vehicleFinery: f,
950
950
  x: e.x,
@@ -953,46 +953,46 @@ function yt({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: a }) {
953
953
  angle: e.angle
954
954
  });
955
955
  });
956
- x.set(e, t);
956
+ S.set(e, t);
957
957
  }
958
- }), s && C.add(() => w(y));
958
+ }), s && w.add(() => E(b));
959
959
  } catch (e) {
960
960
  console.error("handleSocketMessage", e);
961
961
  }
962
- }, d.current = performance.now(), E(), window.addEventListener("online", D), O(a.config ? (Number(a.config.vehicle_inactive_interval) || 20) * 1e3 : _t);
962
+ }, f.current = performance.now(), D(), window.addEventListener("online", O), k(a.config ? (Number(a.config.vehicle_inactive_interval) || 20) * 1e3 : _t);
963
963
  } catch (e) {
964
964
  console.warn(e);
965
965
  }
966
966
  }
967
967
  T();
968
- function E() {
968
+ function D() {
969
969
  var e, t;
970
- 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(a), l.current.onmessage = u.current, l.current.onopen = () => {
971
- h.current = gt;
972
- }, l.current.onclose = () => {
973
- v || !navigator.onLine || (y = window.setTimeout(E, h.current), h.current = Math.min(h.current * 2, 3e4));
970
+ y || ((e = u.current) == null ? void 0 : e.readyState) === WebSocket.OPEN || ((t = u.current) == null ? void 0 : t.readyState) === WebSocket.CONNECTING || (u.current = new WebSocket(a), u.current.onmessage = d.current, u.current.onopen = () => {
971
+ g.current = gt;
972
+ }, u.current.onclose = () => {
973
+ y || !navigator.onLine || (b = window.setTimeout(D, g.current), g.current = Math.min(g.current * 2, 3e4));
974
974
  });
975
975
  }
976
- function D() {
977
- E();
976
+ function O() {
977
+ D();
978
978
  }
979
- function O(e) {
980
- clearInterval(_.current), _.current = window.setInterval(() => {
979
+ function k(e) {
980
+ clearInterval(v.current), v.current = window.setInterval(() => {
981
981
  let t = performance.now(), n = [], r = [];
982
- g.current.forEach((i, a) => {
982
+ _.current.forEach((i, a) => {
983
983
  if (t - i < e) return;
984
- let o = S.get(a);
984
+ let o = C.get(a);
985
985
  o && (o.hidden = !0, r.push(o), n.push(a));
986
- let s = Z(a), c = S.get(s);
986
+ let s = Z(a), c = C.get(s);
987
987
  c && (c.hidden = !0, r.push(c), n.push(s));
988
- }), r.length && C.add(() => w(...r)), n.forEach((e) => g.current.delete(e));
988
+ }), r.length && w.add(() => E(...r)), n.forEach((e) => _.current.delete(e));
989
989
  }, e);
990
990
  }
991
991
  return () => {
992
992
  var e;
993
- v = !0, clearTimeout(y), (e = l.current) == null || e.close(), l.current = null;
994
- let t = b.find((e) => e.name === H);
995
- t && (t.onScale = void 0), x.forEach((e) => e == null ? void 0 : e()), x.clear(), S.clear(), C.destroy(), window.removeEventListener("online", D), clearInterval(_.current);
993
+ y = !0, clearTimeout(b), (e = u.current) == null || e.close(), u.current = null;
994
+ let t = x.find((e) => e.name === H);
995
+ t && (t.onScale = void 0), S.forEach((e) => e == null ? void 0 : e()), S.clear(), C.clear(), w.destroy(), window.removeEventListener("online", O), clearInterval(v.current);
996
996
  };
997
997
  }, [
998
998
  e,
@@ -1005,7 +1005,7 @@ function bt(e) {
1005
1005
  return Math.min(e || window.devicePixelRatio, ft);
1006
1006
  }
1007
1007
  function xt(e, t) {
1008
- return y(e, t);
1008
+ return F(e, t);
1009
1009
  }
1010
1010
  function St({ radius: e, scale: t, color: n }) {
1011
1011
  let r = document.createElement("canvas"), i = r.getContext("2d");
@@ -1022,18 +1022,18 @@ function Ct({ id: e, width: t, height: n, color: r, scale: i }) {
1022
1022
  return h.shadowColor = "rgba(16, 24, 40, 0.2)", h.shadowBlur = d / 2, h.beginPath(), h.arc(v, y, o, Math.PI, 0, !1), h.bezierCurveTo(v + o, y + s * .3, v + c * o, b, v, b), h.bezierCurveTo(v - c * o, b, v - o, y + s * .3, v - o, y), h.closePath(), h.fillStyle = r, h.fill(), h.strokeStyle = "#FFFFFF", h.lineWidth = a, h.stroke(), h.restore(), m;
1023
1023
  }
1024
1024
  function X(e, t) {
1025
- return x(e, t);
1025
+ return u(e, t);
1026
1026
  }
1027
1027
  function Z(e) {
1028
1028
  return `${e}_finery`;
1029
1029
  }
1030
1030
  function wt({ updateQueue: e, vehicle: t, vehicleFinery: n, x: r, y: i, scale: a, angle: o }) {
1031
1031
  let s = t.source;
1032
- if (t.bounds = j(r, i, s.width, s.height, a, o), t.hidden = !1, n) {
1033
- var c, l;
1034
- let o = (c = (l = V()) == null ? void 0 : l.state().roll) == null ? 0 : c, s = n.source;
1035
- n.bounds = j(r, i, s.width, s.height, a, m(o)), n.hidden = !1, e.add(() => w(n, t));
1036
- } else e.add(() => w(t));
1032
+ if (t.bounds = V(r, i, s.width, s.height, a, o), t.hidden = !1, n) {
1033
+ var l, u;
1034
+ let o = (l = (u = c()) == null ? void 0 : u.state().roll) == null ? 0 : l, s = n.source;
1035
+ n.bounds = V(r, i, s.width, s.height, a, h(o)), n.hidden = !1, e.add(() => E(n, t));
1036
+ } else e.add(() => E(t));
1037
1037
  }
1038
1038
  function Q(e, t, n) {
1039
1039
  return {
@@ -1074,7 +1074,7 @@ function Ot(e, t, n, r) {
1074
1074
  if (e.length < 2) return () => {};
1075
1075
  let i = null, a, o = [], s = 0;
1076
1076
  for (let t = 0; t < e.length - 1; t++) {
1077
- let n = x(e[t], e[t + 1]);
1077
+ let n = u(e[t], e[t + 1]);
1078
1078
  o.push(n), s += n;
1079
1079
  }
1080
1080
  let c = (l) => {
@@ -1086,7 +1086,7 @@ function Ot(e, t, n, r) {
1086
1086
  n({
1087
1087
  x: h.x + (g.x - h.x) * v,
1088
1088
  y: h.y + (g.y - h.y) * v,
1089
- angle: y(h, g)
1089
+ angle: F(h, g)
1090
1090
  }), d < 1 ? a = requestAnimationFrame(c) : r && r();
1091
1091
  };
1092
1092
  return a = requestAnimationFrame(c), () => {