@smart-factor/gem-ui-map-component 0.0.19 → 0.0.21

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.
package/dist/main.js CHANGED
@@ -16,7 +16,7 @@ var Yn = (t, e, r, n) => ({
16
16
  import { jsx as v, jsxs as re, Fragment as at } from "react/jsx-runtime";
17
17
  import * as B from "react";
18
18
  import ge, { useState as Y, forwardRef as rl, useEffect as Oe, createContext as nl, useContext as sl, useRef as Xs, useMemo as fs, useCallback as sn } from "react";
19
- import { a as cn, b as al, r as Ca, i as Bi, c as qi, t as il, d as ol, e as ll, u as cl, P as l, f as Wi, g as et, h as Ba, j as qs, k as ul, l as dl, m as fl, n as Zt, o as Bt, p as hl, q as qa, s as qt, v as Wt, w as ze, x as _t, y as hs, z as yt, A as Ls, B as Gi, C as Ta, D as pl, T as ml, E as Ea, F as yl, G as Wa, H as gl, I as vl, J as Ga, K as Tt, L as un, N as Mr, O as Aa, Q as bl, V as Qa, R as _l, S as oe, U as xl, W as wl, X as Jn, Y as Ka, Z as Xn, _ as Me, $ as Ha, a0 as Sl, a1 as kl, a2 as is, a3 as Cl, a4 as ea, a5 as Tl, a6 as mn, a7 as El, a8 as Ws, a9 as os, aa as Gs, ab as Ya, ac as Al, ad as Kt, ae as Ja, af as Xa, ag as Qi, ah as $e, ai as ps, aj as Ot, ak as Nr, al as $t, am as Ki, an as Zn, ao as Ol, ap as Rl, aq as Vt, ar as Hi, as as ms, at as Il, au as Pl, av as Yi, aw as Ll, ax as Ml, ay as Sn, az as Nl, aA as ls, aB as Vl, aC as Fl, aD as Dl, aE as jl, aF as zl, aG as $l, aH as Ul, aI as Zl, aJ as Bl, aK as ql, aL as Wl, aM as Gl, M as Ql, aN as Kl, aO as Hl, aP as Yl, aQ as Jl } from "./MapButtons-CcIHdsKh.js";
19
+ import { a as cn, b as al, r as Ca, i as Bi, c as qi, t as il, d as ol, e as ll, u as cl, P as l, f as Wi, g as et, h as Ba, j as qs, k as ul, l as dl, m as fl, n as Zt, o as Bt, p as hl, q as qa, s as qt, v as Wt, w as ze, x as _t, y as hs, z as yt, A as Ls, B as Gi, C as Ta, D as pl, T as ml, E as Ea, F as yl, G as Wa, H as gl, I as vl, J as Ga, K as Tt, L as un, N as Mr, O as Aa, Q as bl, V as Qa, R as _l, S as oe, U as xl, W as wl, X as Jn, Y as Ka, Z as Xn, _ as Me, $ as Ha, a0 as Sl, a1 as kl, a2 as is, a3 as Cl, a4 as ea, a5 as Tl, a6 as mn, a7 as El, a8 as Ws, a9 as os, aa as Gs, ab as Ya, ac as Al, ad as Kt, ae as Ja, af as Xa, ag as Qi, ah as $e, ai as ps, aj as Ot, ak as Nr, al as $t, am as Ki, an as Zn, ao as Ol, ap as Rl, aq as Vt, ar as Hi, as as ms, at as Il, au as Pl, av as Yi, aw as Ll, ax as Ml, ay as Sn, az as Nl, aA as ls, aB as Vl, aC as Fl, aD as Dl, aE as jl, aF as zl, aG as $l, aH as Ul, aI as Zl, aJ as Bl, aK as ql, aL as Wl, aM as Gl, M as Ql, aN as Kl, aO as Hl, aP as Yl, aQ as Jl } from "./MapButtons-S-jADkgq.js";
20
20
  var dn = class {
21
21
  constructor() {
22
22
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
@@ -107,8 +107,8 @@ function ra(t, e) {
107
107
  const n = r ? t : Object.keys(t), s = n.length, a = r ? e : Object.keys(e), i = a.length, o = r ? [] : {};
108
108
  let c = 0;
109
109
  for (let u = 0; u < i; u++) {
110
- const m = r ? u : a[u];
111
- (!r && n.includes(m) || r) && t[m] === void 0 && e[m] === void 0 ? (o[m] = void 0, c++) : (o[m] = ra(t[m], e[m]), o[m] === t[m] && t[m] !== void 0 && c++);
110
+ const p = r ? u : a[u];
111
+ (!r && n.includes(p) || r) && t[p] === void 0 && e[p] === void 0 ? (o[p] = void 0, c++) : (o[p] = ra(t[p], e[p]), o[p] === t[p] && t[p] !== void 0 && c++);
112
112
  }
113
113
  return s === i && c === s ? t : o;
114
114
  }
@@ -288,15 +288,15 @@ function ro(t) {
288
288
  let e = !1, r = 0, n = !1, s;
289
289
  const a = aa(), i = (w) => {
290
290
  var C;
291
- n || (_(new to(w)), (C = t.abort) == null || C.call(t));
291
+ n || (x(new to(w)), (C = t.abort) == null || C.call(t));
292
292
  }, o = () => {
293
293
  e = !0;
294
294
  }, c = () => {
295
295
  e = !1;
296
- }, u = () => Ra.isFocused() && (t.networkMode === "always" || vs.isOnline()) && t.canRun(), m = () => eo(t.networkMode) && t.canRun(), h = (w) => {
296
+ }, u = () => Ra.isFocused() && (t.networkMode === "always" || vs.isOnline()) && t.canRun(), p = () => eo(t.networkMode) && t.canRun(), h = (w) => {
297
297
  var C;
298
298
  n || (n = !0, (C = t.onSuccess) == null || C.call(t, w), s == null || s(), a.resolve(w));
299
- }, _ = (w) => {
299
+ }, x = (w) => {
300
300
  var C;
301
301
  n || (n = !0, (C = t.onError) == null || C.call(t, w), s == null || s(), a.reject(w));
302
302
  }, S = () => new Promise((w) => {
@@ -321,13 +321,13 @@ function ro(t) {
321
321
  var G;
322
322
  if (n)
323
323
  return;
324
- const T = t.retry ?? (Ar ? 0 : 3), V = t.retryDelay ?? ac, M = typeof V == "function" ? V(r, I) : V, U = T === !0 || typeof T == "number" && r < T || typeof T == "function" && T(r, I);
324
+ const T = t.retry ?? (Ar ? 0 : 3), M = t.retryDelay ?? ac, N = typeof M == "function" ? M(r, I) : M, U = T === !0 || typeof T == "number" && r < T || typeof T == "function" && T(r, I);
325
325
  if (e || !U) {
326
- _(I);
326
+ x(I);
327
327
  return;
328
328
  }
329
- r++, (G = t.onFail) == null || G.call(t, r, I), ec(M).then(() => u() ? void 0 : S()).then(() => {
330
- e ? _(I) : E();
329
+ r++, (G = t.onFail) == null || G.call(t, r, I), ec(N).then(() => u() ? void 0 : S()).then(() => {
330
+ e ? x(I) : E();
331
331
  });
332
332
  });
333
333
  };
@@ -337,8 +337,8 @@ function ro(t) {
337
337
  continue: () => (s == null || s(), a),
338
338
  cancelRetry: o,
339
339
  continueRetry: c,
340
- canStart: m,
341
- start: () => (m() ? E() : S().then(E), a)
340
+ canStart: p,
341
+ start: () => (p() ? E() : S().then(E), a)
342
342
  };
343
343
  }
344
344
  var ic = (t) => setTimeout(t, 0);
@@ -510,7 +510,7 @@ var Ne = oc(), _r, Vi, no = (Vi = class {
510
510
  this.state.isInvalidated || ae(this, dt, Mt).call(this, { type: "invalidate" });
511
511
  }
512
512
  fetch(e, r) {
513
- var c, u, m;
513
+ var c, u, p;
514
514
  if (this.state.fetchStatus !== "idle") {
515
515
  if (this.state.data !== void 0 && (r != null && r.cancelRefetch))
516
516
  this.cancel({ silent: !0 });
@@ -518,7 +518,7 @@ var Ne = oc(), _r, Vi, no = (Vi = class {
518
518
  return f(this, Ze).continueRetry(), f(this, Ze).promise;
519
519
  }
520
520
  if (e && this.setOptions(e), !this.options.queryFn) {
521
- const h = this.observers.find((_) => _.options.queryFn);
521
+ const h = this.observers.find((x) => x.options.queryFn);
522
522
  h && this.setOptions(h.options);
523
523
  }
524
524
  process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
@@ -530,16 +530,16 @@ var Ne = oc(), _r, Vi, no = (Vi = class {
530
530
  get: () => (z(this, wr, !0), n.signal)
531
531
  });
532
532
  }, a = () => {
533
- const h = Xi(this.options, r), _ = {
533
+ const h = Xi(this.options, r), x = {
534
534
  client: f(this, xr),
535
535
  queryKey: this.queryKey,
536
536
  meta: this.meta
537
537
  };
538
- return s(_), z(this, wr, !1), this.options.persister ? this.options.persister(
538
+ return s(x), z(this, wr, !1), this.options.persister ? this.options.persister(
539
539
  h,
540
- _,
540
+ x,
541
541
  this
542
- ) : h(_);
542
+ ) : h(x);
543
543
  }, i = {
544
544
  fetchOptions: r,
545
545
  options: this.options,
@@ -551,14 +551,14 @@ var Ne = oc(), _r, Vi, no = (Vi = class {
551
551
  s(i), (c = this.options.behavior) == null || c.onFetch(
552
552
  i,
553
553
  this
554
- ), z(this, Kr, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = i.fetchOptions) == null ? void 0 : u.meta)) && ae(this, dt, Mt).call(this, { type: "fetch", meta: (m = i.fetchOptions) == null ? void 0 : m.meta });
554
+ ), z(this, Kr, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = i.fetchOptions) == null ? void 0 : u.meta)) && ae(this, dt, Mt).call(this, { type: "fetch", meta: (p = i.fetchOptions) == null ? void 0 : p.meta });
555
555
  const o = (h) => {
556
- var _, S, E, w;
556
+ var x, S, E, w;
557
557
  Qs(h) && h.silent || ae(this, dt, Mt).call(this, {
558
558
  type: "error",
559
559
  error: h
560
- }), Qs(h) || ((S = (_ = f(this, ot).config).onError) == null || S.call(
561
- _,
560
+ }), Qs(h) || ((S = (x = f(this, ot).config).onError) == null || S.call(
561
+ x,
562
562
  h,
563
563
  this
564
564
  ), (w = (E = f(this, ot).config).onSettled) == null || w.call(
@@ -573,7 +573,7 @@ var Ne = oc(), _r, Vi, no = (Vi = class {
573
573
  fn: i.fetchFn,
574
574
  abort: n.abort.bind(n),
575
575
  onSuccess: (h) => {
576
- var _, S, E, w;
576
+ var x, S, E, w;
577
577
  if (h === void 0) {
578
578
  process.env.NODE_ENV !== "production" && console.error(
579
579
  `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
@@ -586,7 +586,7 @@ var Ne = oc(), _r, Vi, no = (Vi = class {
586
586
  o(C);
587
587
  return;
588
588
  }
589
- (S = (_ = f(this, ot).config).onSuccess) == null || S.call(_, h, this), (w = (E = f(this, ot).config).onSettled) == null || w.call(
589
+ (S = (x = f(this, ot).config).onSuccess) == null || S.call(x, h, this), (w = (E = f(this, ot).config).onSettled) == null || w.call(
590
590
  E,
591
591
  h,
592
592
  this.state.error,
@@ -594,8 +594,8 @@ var Ne = oc(), _r, Vi, no = (Vi = class {
594
594
  ), this.scheduleGc();
595
595
  },
596
596
  onError: o,
597
- onFail: (h, _) => {
598
- ae(this, dt, Mt).call(this, { type: "failed", failureCount: h, error: _ });
597
+ onFail: (h, x) => {
598
+ ae(this, dt, Mt).call(this, { type: "failed", failureCount: h, error: x });
599
599
  },
600
600
  onPause: () => {
601
601
  ae(this, dt, Mt).call(this, { type: "pause" });
@@ -817,7 +817,7 @@ var St, Di, ao = (Di = class extends dn {
817
817
  this.execute(this.state.variables);
818
818
  }
819
819
  async execute(e) {
820
- var a, i, o, c, u, m, h, _, S, E, w, C, I, T, V, M, U, G, pe, X;
820
+ var a, i, o, c, u, p, h, x, S, E, w, C, I, T, M, N, U, G, pe, X;
821
821
  const r = () => {
822
822
  ae(this, Ct, Ht).call(this, { type: "continue" });
823
823
  };
@@ -854,13 +854,13 @@ var St, Di, ao = (Di = class extends dn {
854
854
  });
855
855
  }
856
856
  const Q = await f(this, Sr).start();
857
- return await ((m = (u = f(this, We).config).onSuccess) == null ? void 0 : m.call(
857
+ return await ((p = (u = f(this, We).config).onSuccess) == null ? void 0 : p.call(
858
858
  u,
859
859
  Q,
860
860
  e,
861
861
  this.state.context,
862
862
  this
863
- )), await ((_ = (h = this.options).onSuccess) == null ? void 0 : _.call(h, Q, e, this.state.context)), await ((E = (S = f(this, We).config).onSettled) == null ? void 0 : E.call(
863
+ )), await ((x = (h = this.options).onSuccess) == null ? void 0 : x.call(h, Q, e, this.state.context)), await ((E = (S = f(this, We).config).onSettled) == null ? void 0 : E.call(
864
864
  S,
865
865
  Q,
866
866
  null,
@@ -876,8 +876,8 @@ var St, Di, ao = (Di = class extends dn {
876
876
  e,
877
877
  this.state.context,
878
878
  this
879
- )), await ((M = (V = this.options).onError) == null ? void 0 : M.call(
880
- V,
879
+ )), await ((N = (M = this.options).onError) == null ? void 0 : N.call(
880
+ M,
881
881
  Q,
882
882
  e,
883
883
  this.state.context
@@ -1080,27 +1080,27 @@ function es(t) {
1080
1080
  function si(t) {
1081
1081
  return {
1082
1082
  onFetch: (e, r) => {
1083
- var m, h, _, S, E;
1084
- const n = e.options, s = (_ = (h = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : h.fetchMore) == null ? void 0 : _.direction, a = ((S = e.state.data) == null ? void 0 : S.pages) || [], i = ((E = e.state.data) == null ? void 0 : E.pageParams) || [];
1083
+ var p, h, x, S, E;
1084
+ const n = e.options, s = (x = (h = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : h.fetchMore) == null ? void 0 : x.direction, a = ((S = e.state.data) == null ? void 0 : S.pages) || [], i = ((E = e.state.data) == null ? void 0 : E.pageParams) || [];
1085
1085
  let o = { pages: [], pageParams: [] }, c = 0;
1086
1086
  const u = async () => {
1087
1087
  let w = !1;
1088
- const C = (V) => {
1089
- Object.defineProperty(V, "signal", {
1088
+ const C = (M) => {
1089
+ Object.defineProperty(M, "signal", {
1090
1090
  enumerable: !0,
1091
1091
  get: () => (e.signal.aborted ? w = !0 : e.signal.addEventListener("abort", () => {
1092
1092
  w = !0;
1093
1093
  }), e.signal)
1094
1094
  });
1095
- }, I = Xi(e.options, e.fetchOptions), T = async (V, M, U) => {
1095
+ }, I = Xi(e.options, e.fetchOptions), T = async (M, N, U) => {
1096
1096
  if (w)
1097
1097
  return Promise.reject();
1098
- if (M == null && V.pages.length)
1099
- return Promise.resolve(V);
1098
+ if (N == null && M.pages.length)
1099
+ return Promise.resolve(M);
1100
1100
  const G = {
1101
1101
  client: e.client,
1102
1102
  queryKey: e.queryKey,
1103
- pageParam: M,
1103
+ pageParam: N,
1104
1104
  direction: U ? "backward" : "forward",
1105
1105
  meta: e.options.meta
1106
1106
  };
@@ -1109,24 +1109,24 @@ function si(t) {
1109
1109
  G
1110
1110
  ), { maxPages: X } = e.options, Q = U ? rc : tc;
1111
1111
  return {
1112
- pages: Q(V.pages, pe, X),
1113
- pageParams: Q(V.pageParams, M, X)
1112
+ pages: Q(M.pages, pe, X),
1113
+ pageParams: Q(M.pageParams, N, X)
1114
1114
  };
1115
1115
  };
1116
1116
  if (s && a.length) {
1117
- const V = s === "backward", M = V ? fc : ai, U = {
1117
+ const M = s === "backward", N = M ? fc : ai, U = {
1118
1118
  pages: a,
1119
1119
  pageParams: i
1120
- }, G = M(n, U);
1121
- o = await T(U, G, V);
1120
+ }, G = N(n, U);
1121
+ o = await T(U, G, M);
1122
1122
  } else {
1123
- const V = t ?? a.length;
1123
+ const M = t ?? a.length;
1124
1124
  do {
1125
- const M = c === 0 ? i[0] ?? n.initialPageParam : ai(n, o);
1126
- if (c > 0 && M == null)
1125
+ const N = c === 0 ? i[0] ?? n.initialPageParam : ai(n, o);
1126
+ if (c > 0 && N == null)
1127
1127
  break;
1128
- o = await T(o, M), c++;
1129
- } while (c < V);
1128
+ o = await T(o, N), c++;
1129
+ } while (c < M);
1130
1130
  }
1131
1131
  return o;
1132
1132
  };
@@ -1473,13 +1473,13 @@ var Ce, er, tr, Hr, Yr, rr, Jr, Xr, $i, hc = ($i = class {
1473
1473
  }
1474
1474
  createResult(e, r) {
1475
1475
  var Q;
1476
- const n = f(this, le), s = this.options, a = f(this, Ge), i = f(this, kr), o = f(this, en), u = e !== n ? e.state : f(this, $n), { state: m } = e;
1477
- let h = { ...m }, _ = !1, S;
1476
+ const n = f(this, le), s = this.options, a = f(this, Ge), i = f(this, kr), o = f(this, en), u = e !== n ? e.state : f(this, $n), { state: p } = e;
1477
+ let h = { ...p }, x = !1, S;
1478
1478
  if (r._optimisticResults) {
1479
1479
  const ee = this.hasListeners(), fe = !ee && ii(e, r), j = ee && oi(e, n, r, s);
1480
1480
  (fe || j) && (h = {
1481
1481
  ...h,
1482
- ...so(m.data, e.options)
1482
+ ...so(p.data, e.options)
1483
1483
  }), r._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
1484
1484
  }
1485
1485
  let { error: E, errorUpdatedAt: w, status: C } = h;
@@ -1494,7 +1494,7 @@ var Ce, er, tr, Hr, Yr, rr, Jr, Xr, $i, hc = ($i = class {
1494
1494
  a == null ? void 0 : a.data,
1495
1495
  ee,
1496
1496
  r
1497
- ), _ = !0);
1497
+ ), x = !0);
1498
1498
  }
1499
1499
  if (r.select && S !== void 0 && !I)
1500
1500
  if (a && S === (i == null ? void 0 : i.data) && r.select === f(this, Un))
@@ -1506,12 +1506,12 @@ var Ce, er, tr, Hr, Yr, rr, Jr, Xr, $i, hc = ($i = class {
1506
1506
  z(this, sr, ee);
1507
1507
  }
1508
1508
  f(this, sr) && (E = f(this, sr), S = f(this, tn), w = Date.now(), C = "error");
1509
- const T = h.fetchStatus === "fetching", V = C === "pending", M = C === "error", U = V && T, G = S !== void 0, X = {
1509
+ const T = h.fetchStatus === "fetching", M = C === "pending", N = C === "error", U = M && T, G = S !== void 0, X = {
1510
1510
  status: C,
1511
1511
  fetchStatus: h.fetchStatus,
1512
- isPending: V,
1512
+ isPending: M,
1513
1513
  isSuccess: C === "success",
1514
- isError: M,
1514
+ isError: N,
1515
1515
  isInitialLoading: U,
1516
1516
  isLoading: U,
1517
1517
  data: S,
@@ -1524,11 +1524,11 @@ var Ce, er, tr, Hr, Yr, rr, Jr, Xr, $i, hc = ($i = class {
1524
1524
  isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
1525
1525
  isFetchedAfterMount: h.dataUpdateCount > u.dataUpdateCount || h.errorUpdateCount > u.errorUpdateCount,
1526
1526
  isFetching: T,
1527
- isRefetching: T && !V,
1528
- isLoadingError: M && !G,
1527
+ isRefetching: T && !M,
1528
+ isLoadingError: N && !G,
1529
1529
  isPaused: h.fetchStatus === "paused",
1530
- isPlaceholderData: _,
1531
- isRefetchError: M && G,
1530
+ isPlaceholderData: x,
1531
+ isRefetchError: N && G,
1532
1532
  isStale: Ia(e, r),
1533
1533
  refetch: this.refetch,
1534
1534
  promise: f(this, nr)
@@ -1703,17 +1703,17 @@ var ir, or, Xe, jt, zt, cs, pa, Zi, gc = (Zi = class extends dn {
1703
1703
  Ne.batch(() => {
1704
1704
  var r, n, s, a, i, o, c, u;
1705
1705
  if (f(this, jt) && this.hasListeners()) {
1706
- const m = f(this, or).variables, h = f(this, or).context;
1707
- (e == null ? void 0 : e.type) === "success" ? ((n = (r = f(this, jt)).onSuccess) == null || n.call(r, e.data, m, h), (a = (s = f(this, jt)).onSettled) == null || a.call(s, e.data, null, m, h)) : (e == null ? void 0 : e.type) === "error" && ((o = (i = f(this, jt)).onError) == null || o.call(i, e.error, m, h), (u = (c = f(this, jt)).onSettled) == null || u.call(
1706
+ const p = f(this, or).variables, h = f(this, or).context;
1707
+ (e == null ? void 0 : e.type) === "success" ? ((n = (r = f(this, jt)).onSuccess) == null || n.call(r, e.data, p, h), (a = (s = f(this, jt)).onSettled) == null || a.call(s, e.data, null, p, h)) : (e == null ? void 0 : e.type) === "error" && ((o = (i = f(this, jt)).onError) == null || o.call(i, e.error, p, h), (u = (c = f(this, jt)).onSettled) == null || u.call(
1708
1708
  c,
1709
1709
  void 0,
1710
1710
  e.error,
1711
- m,
1711
+ p,
1712
1712
  h
1713
1713
  ));
1714
1714
  }
1715
- this.listeners.forEach((m) => {
1716
- m(f(this, or));
1715
+ this.listeners.forEach((p) => {
1716
+ p(f(this, or));
1717
1717
  });
1718
1718
  });
1719
1719
  }, Zi), lo = B.createContext(
@@ -1767,13 +1767,13 @@ var Sc = (t, e) => {
1767
1767
  r.clearReset();
1768
1768
  });
1769
1769
  function Oc(t, e, r) {
1770
- var h, _, S, E, w;
1770
+ var h, x, S, E, w;
1771
1771
  if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
1772
1772
  throw new Error(
1773
1773
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
1774
1774
  );
1775
1775
  const n = co(), s = bc(), a = wc(), i = n.defaultQueryOptions(t);
1776
- (_ = (h = n.getDefaultOptions().queries) == null ? void 0 : h._experimental_beforeQuery) == null || _.call(
1776
+ (x = (h = n.getDefaultOptions().queries) == null ? void 0 : h._experimental_beforeQuery) == null || x.call(
1777
1777
  h,
1778
1778
  i
1779
1779
  ), process.env.NODE_ENV !== "production" && (i.queryFn || console.error(
@@ -1784,14 +1784,14 @@ function Oc(t, e, r) {
1784
1784
  n,
1785
1785
  i
1786
1786
  )
1787
- ), u = c.getOptimisticResult(i), m = !s && t.subscribed !== !1;
1787
+ ), u = c.getOptimisticResult(i), p = !s && t.subscribed !== !1;
1788
1788
  if (B.useSyncExternalStore(
1789
1789
  B.useCallback(
1790
1790
  (C) => {
1791
- const I = m ? c.subscribe(Ne.batchCalls(C)) : ma;
1791
+ const I = p ? c.subscribe(Ne.batchCalls(C)) : ma;
1792
1792
  return c.updateResult(), I;
1793
1793
  },
1794
- [c, m]
1794
+ [c, p]
1795
1795
  ),
1796
1796
  () => c.getCurrentResult(),
1797
1797
  () => c.getCurrentResult()
@@ -2163,13 +2163,13 @@ function Hu(t, e, r) {
2163
2163
  c = e ? [] : o;
2164
2164
  e:
2165
2165
  for (; ++n < a; ) {
2166
- var m = t[n], h = e ? e(m) : m;
2167
- if (m = m !== 0 ? m : 0, i && h === h) {
2168
- for (var _ = c.length; _--; )
2169
- if (c[_] === h)
2166
+ var p = t[n], h = e ? e(p) : p;
2167
+ if (p = p !== 0 ? p : 0, i && h === h) {
2168
+ for (var x = c.length; x--; )
2169
+ if (c[x] === h)
2170
2170
  continue e;
2171
- e && c.push(h), o.push(m);
2172
- } else s(c, h, r) || (c !== o && c.push(h), o.push(m));
2171
+ e && c.push(h), o.push(p);
2172
+ } else s(c, h, r) || (c !== o && c.push(h), o.push(p));
2173
2173
  }
2174
2174
  return o;
2175
2175
  }
@@ -2263,10 +2263,10 @@ const id = (t) => ({
2263
2263
  values: t.spacing,
2264
2264
  base: s
2265
2265
  });
2266
- typeof a == "object" && Object.keys(a).forEach((c, u, m) => {
2266
+ typeof a == "object" && Object.keys(a).forEach((c, u, p) => {
2267
2267
  if (!a[c]) {
2268
- const _ = u > 0 ? a[m[u - 1]] : "column";
2269
- a[c] = _;
2268
+ const x = u > 0 ? a[p[u - 1]] : "column";
2269
+ a[c] = x;
2270
2270
  }
2271
2271
  }), r = dl(r, Ba({
2272
2272
  theme: e
@@ -2294,26 +2294,26 @@ function ld(t = {}) {
2294
2294
  } = t, s = () => Zt({
2295
2295
  root: ["root"]
2296
2296
  }, (c) => Bt(n, c), {}), a = e(od), i = /* @__PURE__ */ B.forwardRef(function(c, u) {
2297
- const m = r(c), h = Wi(m), {
2298
- component: _ = "div",
2297
+ const p = r(c), h = Wi(p), {
2298
+ component: x = "div",
2299
2299
  direction: S = "column",
2300
2300
  spacing: E = 0,
2301
2301
  divider: w,
2302
2302
  children: C,
2303
2303
  className: I,
2304
2304
  useFlexGap: T = !1,
2305
- ...V
2306
- } = h, M = {
2305
+ ...M
2306
+ } = h, N = {
2307
2307
  direction: S,
2308
2308
  spacing: E,
2309
2309
  useFlexGap: T
2310
2310
  }, U = s();
2311
2311
  return /* @__PURE__ */ v(a, {
2312
- as: _,
2313
- ownerState: M,
2312
+ as: x,
2313
+ ownerState: N,
2314
2314
  ref: u,
2315
2315
  className: et(U.root, I),
2316
- ...V,
2316
+ ...M,
2317
2317
  children: w ? ad(C, w) : C
2318
2318
  });
2319
2319
  });
@@ -2394,23 +2394,23 @@ const hd = (t) => {
2394
2394
  dense: o = !1,
2395
2395
  disablePadding: c = !1,
2396
2396
  subheader: u,
2397
- ...m
2397
+ ...p
2398
2398
  } = n, h = B.useMemo(() => ({
2399
2399
  dense: o
2400
- }), [o]), _ = {
2400
+ }), [o]), x = {
2401
2401
  ...n,
2402
2402
  component: i,
2403
2403
  dense: o,
2404
2404
  disablePadding: c
2405
- }, S = hd(_);
2405
+ }, S = hd(x);
2406
2406
  return /* @__PURE__ */ v(Zr.Provider, {
2407
2407
  value: h,
2408
2408
  children: /* @__PURE__ */ re(pd, {
2409
2409
  as: i,
2410
2410
  className: et(S.root, a),
2411
2411
  ref: r,
2412
- ownerState: _,
2413
- ...m,
2412
+ ownerState: x,
2413
+ ...p,
2414
2414
  children: [u, s]
2415
2415
  })
2416
2416
  });
@@ -2654,9 +2654,9 @@ const yd = (t) => {
2654
2654
  orientation: o = "horizontal",
2655
2655
  component: c = a || o === "vertical" ? "div" : "hr",
2656
2656
  flexItem: u = !1,
2657
- light: m = !1,
2657
+ light: p = !1,
2658
2658
  role: h = c !== "hr" ? "separator" : void 0,
2659
- textAlign: _ = "center",
2659
+ textAlign: x = "center",
2660
2660
  variant: S = "fullWidth",
2661
2661
  ...E
2662
2662
  } = n, w = {
@@ -2664,10 +2664,10 @@ const yd = (t) => {
2664
2664
  absolute: s,
2665
2665
  component: c,
2666
2666
  flexItem: u,
2667
- light: m,
2667
+ light: p,
2668
2668
  orientation: o,
2669
2669
  role: h,
2670
- textAlign: _,
2670
+ textAlign: x,
2671
2671
  variant: S
2672
2672
  }, C = yd(w);
2673
2673
  return /* @__PURE__ */ v(gd, {
@@ -2879,9 +2879,9 @@ const _d = {
2879
2879
  align: o = "inherit",
2880
2880
  className: c,
2881
2881
  component: u,
2882
- gutterBottom: m = !1,
2882
+ gutterBottom: p = !1,
2883
2883
  noWrap: h = !1,
2884
- paragraph: _ = !1,
2884
+ paragraph: x = !1,
2885
2885
  variant: S = "body1",
2886
2886
  variantMapping: E = ui,
2887
2887
  ...w
@@ -2891,12 +2891,12 @@ const _d = {
2891
2891
  color: n,
2892
2892
  className: c,
2893
2893
  component: u,
2894
- gutterBottom: m,
2894
+ gutterBottom: p,
2895
2895
  noWrap: h,
2896
- paragraph: _,
2896
+ paragraph: x,
2897
2897
  variant: S,
2898
2898
  variantMapping: E
2899
- }, I = u || (_ ? "p" : E[S] || ui[S]) || "span", T = wd(C);
2899
+ }, I = u || (x ? "p" : E[S] || ui[S]) || "span", T = wd(C);
2900
2900
  return /* @__PURE__ */ v(Sd, {
2901
2901
  as: I,
2902
2902
  ref: r,
@@ -3168,23 +3168,23 @@ const Cd = (t) => {
3168
3168
  height: o,
3169
3169
  style: c,
3170
3170
  variant: u = "text",
3171
- width: m,
3171
+ width: p,
3172
3172
  ...h
3173
- } = n, _ = {
3173
+ } = n, x = {
3174
3174
  ...n,
3175
3175
  animation: s,
3176
3176
  component: i,
3177
3177
  variant: u,
3178
3178
  hasChildren: !!h.children
3179
- }, S = Cd(_);
3179
+ }, S = Cd(x);
3180
3180
  return /* @__PURE__ */ v(Ad, {
3181
3181
  as: i,
3182
3182
  ref: r,
3183
3183
  className: et(S.root, a),
3184
- ownerState: _,
3184
+ ownerState: x,
3185
3185
  ...h,
3186
3186
  style: {
3187
- width: m,
3187
+ width: p,
3188
3188
  height: o,
3189
3189
  ...c
3190
3190
  }
@@ -3259,9 +3259,9 @@ const Od = {
3259
3259
  children: o,
3260
3260
  easing: c,
3261
3261
  in: u,
3262
- onEnter: m,
3262
+ onEnter: p,
3263
3263
  onEntered: h,
3264
- onEntering: _,
3264
+ onEntering: x,
3265
3265
  onExit: S,
3266
3266
  onExited: E,
3267
3267
  onExiting: w,
@@ -3269,13 +3269,13 @@ const Od = {
3269
3269
  timeout: I = s,
3270
3270
  // eslint-disable-next-line react/prop-types
3271
3271
  TransitionComponent: T = ml,
3272
- ...V
3273
- } = e, M = B.useRef(null), U = Ea(M, yl(o), r), G = (R) => (ne) => {
3272
+ ...M
3273
+ } = e, N = B.useRef(null), U = Ea(N, yl(o), r), G = (R) => (ne) => {
3274
3274
  if (R) {
3275
- const W = M.current;
3275
+ const W = N.current;
3276
3276
  ne === void 0 ? R(W) : R(W, ne);
3277
3277
  }
3278
- }, pe = G(_), X = G((R, ne) => {
3278
+ }, pe = G(x), X = G((R, ne) => {
3279
3279
  gl(R);
3280
3280
  const W = Wa({
3281
3281
  style: C,
@@ -3284,7 +3284,7 @@ const Od = {
3284
3284
  }, {
3285
3285
  mode: "enter"
3286
3286
  });
3287
- R.style.webkitTransition = n.transitions.create("opacity", W), R.style.transition = n.transitions.create("opacity", W), m && m(R, ne);
3287
+ R.style.webkitTransition = n.transitions.create("opacity", W), R.style.transition = n.transitions.create("opacity", W), p && p(R, ne);
3288
3288
  }), Q = G(h), ee = G(w), fe = G((R) => {
3289
3289
  const ne = Wa({
3290
3290
  style: C,
@@ -3298,7 +3298,7 @@ const Od = {
3298
3298
  return /* @__PURE__ */ v(T, {
3299
3299
  appear: i,
3300
3300
  in: u,
3301
- nodeRef: M,
3301
+ nodeRef: N,
3302
3302
  onEnter: X,
3303
3303
  onEntered: Q,
3304
3304
  onEntering: pe,
@@ -3306,10 +3306,10 @@ const Od = {
3306
3306
  onExited: j,
3307
3307
  onExiting: ee,
3308
3308
  addEndListener: (R) => {
3309
- a && a(M.current, R);
3309
+ a && a(N.current, R);
3310
3310
  },
3311
3311
  timeout: I,
3312
- ...V,
3312
+ ...M,
3313
3313
  children: (R, {
3314
3314
  ownerState: ne,
3315
3315
  ...W
@@ -3452,9 +3452,9 @@ const Id = (t) => {
3452
3452
  invisible: o = !1,
3453
3453
  open: c,
3454
3454
  components: u = {},
3455
- componentsProps: m = {},
3455
+ componentsProps: p = {},
3456
3456
  slotProps: h = {},
3457
- slots: _ = {},
3457
+ slots: x = {},
3458
3458
  TransitionComponent: S,
3459
3459
  transitionDuration: E,
3460
3460
  ...w
@@ -3465,21 +3465,21 @@ const Id = (t) => {
3465
3465
  }, I = Id(C), T = {
3466
3466
  transition: S,
3467
3467
  root: u.Root,
3468
- ..._
3469
- }, V = {
3470
- ...m,
3471
- ...h
3468
+ ...x
3472
3469
  }, M = {
3470
+ ...p,
3471
+ ...h
3472
+ }, N = {
3473
3473
  slots: T,
3474
- slotProps: V
3474
+ slotProps: M
3475
3475
  }, [U, G] = Ga("root", {
3476
3476
  elementType: Pd,
3477
- externalForwardedProps: M,
3477
+ externalForwardedProps: N,
3478
3478
  className: et(I.root, a),
3479
3479
  ownerState: C
3480
3480
  }), [pe, X] = Ga("transition", {
3481
3481
  elementType: _o,
3482
- externalForwardedProps: M,
3482
+ externalForwardedProps: N,
3483
3483
  ownerState: C
3484
3484
  });
3485
3485
  return /* @__PURE__ */ v(pe, {
@@ -3618,33 +3618,33 @@ const Md = new Ld(), Nd = ({
3618
3618
  onError: () => {
3619
3619
  Tt("Błąd podczas przypisywania obiektu mapowego do sprawy");
3620
3620
  }
3621
- }), { showPopup: i, hidePopup: o } = Mr(), { setIsMeasurementHidden: c, setIsAngleHidden: u, setAngleValue: m } = Aa(), {
3621
+ }), { showPopup: i, hidePopup: o } = Mr(), { setIsMeasurementHidden: c, setIsAngleHidden: u, setAngleValue: p } = Aa(), {
3622
3622
  interactions: h,
3623
- interactLayers: _,
3623
+ interactLayers: x,
3624
3624
  persistedGeometry: S,
3625
3625
  snapFeatures: E,
3626
3626
  mapInstance: w,
3627
3627
  isModalAccepted: C,
3628
3628
  selectedLayerId: I,
3629
3629
  prefix: T,
3630
- showInfoLayerEnabledRef: V,
3631
- drawLayer: M,
3630
+ showInfoLayerEnabledRef: M,
3631
+ drawLayer: N,
3632
3632
  currentlySelectedFeatureIdsRef: U,
3633
3633
  initialSelectedFeaturesRef: G
3634
3634
  } = un(), [pe, X] = Y(!1), [Q, ee] = Y(!1), [fe, j] = Y(!1), [P, R] = Y(!1), [ne, W] = Y(!1), [Se, ce] = Y(!1), [ke, Ve] = Y([]), [de, Ye] = Y([]), [ut, xt] = Y(
3635
3635
  e.length === 1 ? { value: e[0].layerId, label: e[0].name } : null
3636
- ), [L, K] = Y(null), he = (x) => {
3637
- x && Fe(!0), C.current = x, localStorage.setItem("isModalAccepted", String(x)), o();
3636
+ ), [L, K] = Y(null), he = (_) => {
3637
+ _ && Fe(!0), C.current = _, localStorage.setItem("isModalAccepted", String(_)), o();
3638
3638
  }, qe = async () => {
3639
3639
  if (ke.length === 0) {
3640
3640
  Tt("No geometries to send");
3641
3641
  return;
3642
3642
  }
3643
- const p = {
3643
+ const m = {
3644
3644
  coordinates: ke.flatMap(
3645
3645
  (k) => k.getCoordinates()
3646
3646
  )
3647
- }, y = new Sl(p.coordinates), g = new kl().writeGeometryObject(
3647
+ }, y = new Sl(m.coordinates), g = new kl().writeGeometryObject(
3648
3648
  y
3649
3649
  );
3650
3650
  try {
@@ -3659,37 +3659,37 @@ const Md = new Ld(), Nd = ({
3659
3659
  }, Re = () => {
3660
3660
  if (h) {
3661
3661
  X(!1);
3662
- const x = h.current.select.getFeatures();
3663
- x.forEach((p) => {
3664
- const y = p.get("originalStyle");
3662
+ const _ = h.current.select.getFeatures();
3663
+ _.forEach((m) => {
3664
+ const y = m.get("originalStyle");
3665
3665
  try {
3666
3666
  if (y)
3667
- p.setStyle(y);
3667
+ m.setStyle(y);
3668
3668
  else {
3669
- const g = oe.getDefaultStyle(p);
3670
- p.setStyle(g);
3669
+ const g = oe.getDefaultStyle(m);
3670
+ m.setStyle(g);
3671
3671
  }
3672
3672
  } catch {
3673
3673
  }
3674
- }), x.clear(), U.current.clear();
3674
+ }), _.clear(), U.current.clear();
3675
3675
  }
3676
3676
  }, tt = () => {
3677
- E.current.clear(), w.current.getLayers().getArray().forEach((x) => {
3678
- x instanceof Qa && E.current.extend(x.getSource().getFeatures());
3677
+ E.current.clear(), w.current.getLayers().getArray().forEach((_) => {
3678
+ _ instanceof Qa && E.current.extend(_.getSource().getFeatures());
3679
3679
  });
3680
3680
  }, rt = async () => {
3681
- const x = () => {
3681
+ const _ = () => {
3682
3682
  S.current = void 0, Jn(h == null ? void 0 : h.current), Re(), h.current.select.getFeatures().clear(), h.current.select.setActive(!0), h.current.hover.setActive(!0), j(!1), R(!1), X(!1);
3683
3683
  };
3684
3684
  if (h) {
3685
- const p = h.current.select.getFeatures().getArray()[0];
3686
- let y = p.getId();
3685
+ const m = h.current.select.getFeatures().getArray()[0];
3686
+ let y = m.getId();
3687
3687
  y = is(y, T);
3688
- const g = p.getProperties().layerId, k = {
3689
- coordinates: p.getGeometry().getCoordinates(),
3690
- type: p.getGeometry().getType()
3688
+ const g = m.getProperties().layerId, k = {
3689
+ coordinates: m.getGeometry().getCoordinates(),
3690
+ type: m.getGeometry().getType()
3691
3691
  };
3692
- if (_ && S)
3692
+ if (x && S)
3693
3693
  if ((await oe.validatePurposeGeometry(k)).response)
3694
3694
  if (y && g && r && r !== -1)
3695
3695
  try {
@@ -3701,40 +3701,40 @@ const Md = new Ld(), Nd = ({
3701
3701
  ), y = `${T}${y}`;
3702
3702
  const O = oe.filterLayersByFeatureId(
3703
3703
  y,
3704
- _.current
3704
+ x.current
3705
3705
  );
3706
3706
  O && O.forEach((te) => {
3707
3707
  te.getSource().getFeatureById(y).getGeometry().setCoordinates(
3708
3708
  k.coordinates
3709
3709
  );
3710
- }), x(), Me.layersEventEmitters.emit("onRestartLayers"), oe.mapEventEmitter.emit("reloadFeatures"), Xn("Zmiany zostały zapisane");
3710
+ }), _(), Me.layersEventEmitters.emit("onRestartLayers"), oe.mapEventEmitter.emit("reloadFeatures"), Xn("Zmiany zostały zapisane");
3711
3711
  } catch {
3712
3712
  Tt("Nie udało się zapisać zmian");
3713
3713
  }
3714
3714
  else {
3715
- const O = Ha(p), te = oe.filterLayersByFeatureUId(
3715
+ const O = Ha(m), te = oe.filterLayersByFeatureUId(
3716
3716
  O,
3717
- _.current
3717
+ x.current
3718
3718
  );
3719
3719
  te && te.forEach((xe) => {
3720
3720
  xe.getSource().getFeatureByUid(O).getGeometry().setCoordinates(
3721
3721
  k.coordinates
3722
3722
  );
3723
- }), x();
3723
+ }), _();
3724
3724
  }
3725
3725
  else
3726
3726
  Tt("Błędna geometria");
3727
3727
  }
3728
- }, Fe = (x, p) => {
3728
+ }, Fe = (_, m) => {
3729
3729
  if (h) {
3730
- if (!x && !C.current)
3730
+ if (!_ && !C.current)
3731
3731
  return i({
3732
3732
  popup: "ConfirmDrawing",
3733
3733
  data: {
3734
3734
  onCollapse: he
3735
3735
  }
3736
3736
  });
3737
- if (!ut && !p)
3737
+ if (!ut && !m)
3738
3738
  return i({
3739
3739
  popup: "ChooseLayer",
3740
3740
  data: {
@@ -3746,14 +3746,14 @@ const Md = new Ld(), Nd = ({
3746
3746
  Re(), j(!0), tt(), Jn(h == null ? void 0 : h.current), h.current.draw.setActive(!0), h.current.snap.setActive(!0);
3747
3747
  }
3748
3748
  }, Ie = () => {
3749
- h.current.select.getFeatures().clear(), j(!1), e.length > 1 && xt(null), h.current.draw.setActive(!1), h.current.select.setActive(!0), h.current.hover.setActive(!0), u(!0), m(null), c(!0);
3749
+ h.current.select.getFeatures().clear(), j(!1), e.length > 1 && xt(null), h.current.draw.setActive(!1), h.current.select.setActive(!0), h.current.hover.setActive(!0), u(!0), p(null), c(!0);
3750
3750
  }, nt = () => {
3751
- h && S && (R(!1), u(!0), m(null), c(!0), j(!1), h.current.select.getFeatures().getArray()[0].setGeometry(S.current), Re(), h.current.select.getFeatures().clear(), Jn(h == null ? void 0 : h.current), h.current.select.setActive(!0), h.current.hover.setActive(!0));
3751
+ h && S && (R(!1), u(!0), p(null), c(!0), j(!1), h.current.select.getFeatures().getArray()[0].setGeometry(S.current), Re(), h.current.select.getFeatures().clear(), Jn(h == null ? void 0 : h.current), h.current.select.setActive(!0), h.current.hover.setActive(!0));
3752
3752
  }, hr = () => {
3753
3753
  h && S && (R(!0), tt(), h.current.modify.setActive(!0), h.current.hover.setActive(!1), S.current = h.current.select.getFeatures().getArray()[0].clone().getGeometry());
3754
- }, wt = async (x) => {
3755
- var p;
3756
- if (!x)
3754
+ }, wt = async (_) => {
3755
+ var m;
3756
+ if (!_)
3757
3757
  i({
3758
3758
  popup: "ConfirmDelete",
3759
3759
  data: {
@@ -3764,16 +3764,16 @@ const Md = new Ld(), Nd = ({
3764
3764
  });
3765
3765
  else {
3766
3766
  Jn(h.current), h.current.select.setActive(!0), h.current.hover.setActive(!0), R(!1), X(!1), j(!1);
3767
- const y = (p = h.current.select) == null ? void 0 : p.getFeatures().getArray()[0];
3767
+ const y = (m = h.current.select) == null ? void 0 : m.getFeatures().getArray()[0];
3768
3768
  let g = y.getId();
3769
- if (g && g.toString().includes(T) && (g = Number(g.toString().split(T)[1])), y && _ && h)
3769
+ if (g && g.toString().includes(T) && (g = Number(g.toString().split(T)[1])), y && x && h)
3770
3770
  if (h.current.select.getFeatures().clear(), typeof g == "number") {
3771
3771
  if (r && r !== -1)
3772
3772
  try {
3773
3773
  await oe.deletePurposeGeometry(r, g), g = `${T}${g}`;
3774
3774
  const k = oe.findLayerByFeatureId(
3775
3775
  g,
3776
- _.current
3776
+ x.current
3777
3777
  );
3778
3778
  if (k) {
3779
3779
  const D = k.getSource().getFeatureById(g), O = k.getSource();
@@ -3784,7 +3784,7 @@ const Md = new Ld(), Nd = ({
3784
3784
  Tt("Nie udało się usunąć obiektu");
3785
3785
  }
3786
3786
  } else {
3787
- const k = Ha(y), D = oe.findLayerByUId(k, _.current);
3787
+ const k = Ha(y), D = oe.findLayerByUId(k, x.current);
3788
3788
  if (D) {
3789
3789
  const O = D.getSource().getFeatureByUid(k), te = D.getSource();
3790
3790
  Ka(te, O);
@@ -3816,7 +3816,7 @@ const Md = new Ld(), Nd = ({
3816
3816
  onDeleteGeometryClicked: wt,
3817
3817
  mapLayers: e,
3818
3818
  onToggleShowInfoLayer: () => {
3819
- P && nt(), ne && (o(), Re()), W(!ne), V.current = !ne;
3819
+ P && nt(), ne && (o(), Re()), W(!ne), M.current = !ne;
3820
3820
  },
3821
3821
  showInfoLayerEnabled: ne,
3822
3822
  onAssignMapRepresentation: async () => {
@@ -3838,9 +3838,9 @@ const Md = new Ld(), Nd = ({
3838
3838
  },
3839
3839
  handleCollectGeometries: () => {
3840
3840
  var k;
3841
- let p = [...M.current.getSource().getFeatures()];
3842
- ((k = p[0].getProperties()) == null ? void 0 : k.isPositionPoint) && (p = p.slice(1));
3843
- const g = p.map((D) => {
3841
+ let m = [...N.current.getSource().getFeatures()];
3842
+ ((k = m[0].getProperties()) == null ? void 0 : k.isPositionPoint) && (m = m.slice(1));
3843
+ const g = m.map((D) => {
3844
3844
  const O = D.getGeometry();
3845
3845
  return {
3846
3846
  coordinates: O == null ? void 0 : O.getCoordinates(),
@@ -3855,19 +3855,19 @@ const Md = new Ld(), Nd = ({
3855
3855
  setOuterSelectedMapObjects: s,
3856
3856
  centerToInitialFeatures: () => {
3857
3857
  if (!(w != null && w.current)) return;
3858
- const x = G.current;
3859
- if (!(x != null && x.length)) return;
3860
- const p = [];
3858
+ const _ = G.current;
3859
+ if (!(_ != null && _.length)) return;
3860
+ const m = [];
3861
3861
  if (w.current.getLayers().forEach((y) => {
3862
3862
  if (y instanceof Qa) {
3863
3863
  const g = y.getSource();
3864
3864
  g instanceof _l && g.getFeatures().forEach((k) => {
3865
3865
  const D = k.getId();
3866
- D && x.some((O) => O.id === Number(D)) && p.push(k);
3866
+ D && _.some((O) => O.id === Number(D)) && m.push(k);
3867
3867
  });
3868
3868
  }
3869
- }), p.length > 0) {
3870
- if (p.forEach((g) => {
3869
+ }), m.length > 0) {
3870
+ if (m.forEach((g) => {
3871
3871
  var xe;
3872
3872
  if ((xe = h.current.select) == null ? void 0 : xe.getFeatures().getArray().includes(g))
3873
3873
  return;
@@ -3884,7 +3884,7 @@ const Md = new Ld(), Nd = ({
3884
3884
  s(g);
3885
3885
  }
3886
3886
  const y = wl();
3887
- p.forEach((g) => {
3887
+ m.forEach((g) => {
3888
3888
  const k = g.getGeometry();
3889
3889
  k && xl(y, k.getExtent());
3890
3890
  }), w.current.getView().fit(y, {
@@ -4112,10 +4112,10 @@ const $d = (t, e) => {
4112
4112
  component: o,
4113
4113
  components: c = {},
4114
4114
  componentsProps: u = {},
4115
- ContainerComponent: m = "li",
4115
+ ContainerComponent: p = "li",
4116
4116
  ContainerProps: {
4117
4117
  className: h,
4118
- ..._
4118
+ ...x
4119
4119
  } = {},
4120
4120
  dense: S = !1,
4121
4121
  disableGutters: E = !1,
@@ -4123,8 +4123,8 @@ const $d = (t, e) => {
4123
4123
  divider: C = !1,
4124
4124
  secondaryAction: I,
4125
4125
  slotProps: T = {},
4126
- slots: V = {},
4127
- ...M
4126
+ slots: M = {},
4127
+ ...N
4128
4128
  } = n, U = B.useContext(Zr), G = B.useMemo(() => ({
4129
4129
  dense: S || U.dense || !1,
4130
4130
  alignItems: s,
@@ -4137,19 +4137,19 @@ const $d = (t, e) => {
4137
4137
  disablePadding: w,
4138
4138
  divider: C,
4139
4139
  hasSecondaryAction: Q
4140
- }, fe = Ud(ee), j = Ea(pe, r), P = V.root || c.Root || Zd, R = T.root || u.root || {}, ne = {
4140
+ }, fe = Ud(ee), j = Ea(pe, r), P = M.root || c.Root || Zd, R = T.root || u.root || {}, ne = {
4141
4141
  className: et(fe.root, R.className, i),
4142
- ...M
4142
+ ...N
4143
4143
  };
4144
4144
  let W = o || "li";
4145
- return Q ? (W = !ne.component && !o ? "div" : W, m === "li" && (W === "li" ? W = "div" : ne.component === "li" && (ne.component = "div")), /* @__PURE__ */ v(Zr.Provider, {
4145
+ return Q ? (W = !ne.component && !o ? "div" : W, p === "li" && (W === "li" ? W = "div" : ne.component === "li" && (ne.component = "div")), /* @__PURE__ */ v(Zr.Provider, {
4146
4146
  value: G,
4147
4147
  children: /* @__PURE__ */ re(Bd, {
4148
- as: m,
4148
+ as: p,
4149
4149
  className: et(fe.container, h),
4150
4150
  ref: j,
4151
4151
  ownerState: ee,
4152
- ..._,
4152
+ ...x,
4153
4153
  children: [/* @__PURE__ */ v(P, {
4154
4154
  ...R,
4155
4155
  ...!Ur(P) && {
@@ -4418,42 +4418,42 @@ function Jd(t) {
4418
4418
  max: o = 100,
4419
4419
  min: c = 0,
4420
4420
  name: u,
4421
- onChange: m,
4421
+ onChange: p,
4422
4422
  onChangeCommitted: h,
4423
- orientation: _ = "horizontal",
4423
+ orientation: x = "horizontal",
4424
4424
  rootRef: S,
4425
4425
  scale: E = Yd,
4426
4426
  step: w = 1,
4427
4427
  shiftStep: C = 10,
4428
4428
  tabIndex: I,
4429
4429
  value: T
4430
- } = t, V = B.useRef(void 0), [M, U] = B.useState(-1), [G, pe] = B.useState(-1), [X, Q] = B.useState(!1), ee = B.useRef(0), fe = B.useRef(null), [j, P] = Tl({
4430
+ } = t, M = B.useRef(void 0), [N, U] = B.useState(-1), [G, pe] = B.useState(-1), [X, Q] = B.useState(!1), ee = B.useRef(0), fe = B.useRef(null), [j, P] = Tl({
4431
4431
  controlled: T,
4432
4432
  default: r ?? c,
4433
4433
  name: "Slider"
4434
- }), R = m && ((p, y, g) => {
4435
- const k = p.nativeEvent || p, D = new k.constructor(k.type, k);
4434
+ }), R = p && ((m, y, g) => {
4435
+ const k = m.nativeEvent || m, D = new k.constructor(k.type, k);
4436
4436
  Object.defineProperty(D, "target", {
4437
4437
  writable: !0,
4438
4438
  value: {
4439
4439
  value: y,
4440
4440
  name: u
4441
4441
  }
4442
- }), fe.current = y, m(D, y, g);
4442
+ }), fe.current = y, p(D, y, g);
4443
4443
  }), ne = Array.isArray(j);
4444
4444
  let W = ne ? j.slice().sort(wo) : [j];
4445
- W = W.map((p) => p == null ? c : mn(p, c, o));
4446
- const Se = i === !0 && w !== null ? [...Array(Math.floor((o - c) / w) + 1)].map((p, y) => ({
4445
+ W = W.map((m) => m == null ? c : mn(m, c, o));
4446
+ const Se = i === !0 && w !== null ? [...Array(Math.floor((o - c) / w) + 1)].map((m, y) => ({
4447
4447
  value: c + w * y
4448
- })) : i || [], ce = Se.map((p) => p.value), [ke, Ve] = B.useState(-1), de = B.useRef(null), Ye = Ea(S, de), ut = (p) => (y) => {
4448
+ })) : i || [], ce = Se.map((m) => m.value), [ke, Ve] = B.useState(-1), de = B.useRef(null), Ye = Ea(S, de), ut = (m) => (y) => {
4449
4449
  var k;
4450
4450
  const g = Number(y.currentTarget.getAttribute("data-index"));
4451
- Ya(y.target) && Ve(g), pe(g), (k = p == null ? void 0 : p.onFocus) == null || k.call(p, y);
4452
- }, xt = (p) => (y) => {
4451
+ Ya(y.target) && Ve(g), pe(g), (k = m == null ? void 0 : m.onFocus) == null || k.call(m, y);
4452
+ }, xt = (m) => (y) => {
4453
4453
  var g;
4454
- Ya(y.target) || Ve(-1), pe(-1), (g = p == null ? void 0 : p.onBlur) == null || g.call(p, y);
4455
- }, L = (p, y) => {
4456
- const g = Number(p.currentTarget.getAttribute("data-index")), k = W[g], D = ce.indexOf(k);
4454
+ Ya(y.target) || Ve(-1), pe(-1), (g = m == null ? void 0 : m.onBlur) == null || g.call(m, y);
4455
+ }, L = (m, y) => {
4456
+ const g = Number(m.currentTarget.getAttribute("data-index")), k = W[g], D = ce.indexOf(k);
4457
4457
  let O = y;
4458
4458
  if (Se && w == null) {
4459
4459
  const te = ce[ce.length - 1];
@@ -4473,8 +4473,8 @@ function Jd(t) {
4473
4473
  activeIndex: xe
4474
4474
  });
4475
4475
  }
4476
- P(O), Ve(g), R && !ns(O, j) && R(p, O, g), h && h(p, fe.current ?? O);
4477
- }, K = (p) => (y) => {
4476
+ P(O), Ve(g), R && !ns(O, j) && R(m, O, g), h && h(m, fe.current ?? O);
4477
+ }, K = (m) => (y) => {
4478
4478
  var g;
4479
4479
  if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(y.key)) {
4480
4480
  y.preventDefault();
@@ -4514,20 +4514,20 @@ function Jd(t) {
4514
4514
  }
4515
4515
  O != null && L(y, O);
4516
4516
  }
4517
- (g = p == null ? void 0 : p.onKeyDown) == null || g.call(p, y);
4517
+ (g = m == null ? void 0 : m.onKeyDown) == null || g.call(m, y);
4518
4518
  };
4519
4519
  El(() => {
4520
- var p;
4521
- n && de.current.contains(document.activeElement) && ((p = document.activeElement) == null || p.blur());
4522
- }, [n]), n && M !== -1 && U(-1), n && ke !== -1 && Ve(-1);
4523
- const he = (p) => (y) => {
4520
+ var m;
4521
+ n && de.current.contains(document.activeElement) && ((m = document.activeElement) == null || m.blur());
4522
+ }, [n]), n && N !== -1 && U(-1), n && ke !== -1 && Ve(-1);
4523
+ const he = (m) => (y) => {
4524
4524
  var g;
4525
- (g = p.onChange) == null || g.call(p, y), L(y, y.target.valueAsNumber);
4525
+ (g = m.onChange) == null || g.call(m, y), L(y, y.target.valueAsNumber);
4526
4526
  }, qe = B.useRef(void 0);
4527
- let Re = _;
4528
- a && _ === "horizontal" && (Re += "-reverse");
4527
+ let Re = x;
4528
+ a && x === "horizontal" && (Re += "-reverse");
4529
4529
  const tt = ({
4530
- finger: p,
4530
+ finger: m,
4531
4531
  move: y = !1
4532
4532
  }) => {
4533
4533
  const {
@@ -4539,7 +4539,7 @@ function Jd(t) {
4539
4539
  left: te
4540
4540
  } = g.getBoundingClientRect();
4541
4541
  let xe;
4542
- Re.startsWith("vertical") ? xe = (O - p.y) / D : xe = (p.x - te) / k, Re.includes("-reverse") && (xe = 1 - xe);
4542
+ Re.startsWith("vertical") ? xe = (O - m.y) / D : xe = (m.x - te) / k, Re.includes("-reverse") && (xe = 1 - xe);
4543
4543
  let ve;
4544
4544
  if (ve = Gd(xe, c, o), w)
4545
4545
  ve = Kd(ve, w, c);
@@ -4562,12 +4562,12 @@ function Jd(t) {
4562
4562
  newValue: ve,
4563
4563
  activeIndex: Ue
4564
4564
  };
4565
- }, rt = Ws((p) => {
4566
- const y = ts(p, V);
4565
+ }, rt = Ws((m) => {
4566
+ const y = ts(m, M);
4567
4567
  if (!y)
4568
4568
  return;
4569
- if (ee.current += 1, p.type === "mousemove" && p.buttons === 0) {
4570
- Fe(p);
4569
+ if (ee.current += 1, m.type === "mousemove" && m.buttons === 0) {
4570
+ Fe(m);
4571
4571
  return;
4572
4572
  }
4573
4573
  const {
@@ -4581,9 +4581,9 @@ function Jd(t) {
4581
4581
  sliderRef: de,
4582
4582
  activeIndex: k,
4583
4583
  setActive: U
4584
- }), P(g), !X && ee.current > Wd && Q(!0), R && !ns(g, j) && R(p, g, k);
4585
- }), Fe = Ws((p) => {
4586
- const y = ts(p, V);
4584
+ }), P(g), !X && ee.current > Wd && Q(!0), R && !ns(g, j) && R(m, g, k);
4585
+ }), Fe = Ws((m) => {
4586
+ const y = ts(m, M);
4587
4587
  if (Q(!1), !y)
4588
4588
  return;
4589
4589
  const {
@@ -4592,14 +4592,14 @@ function Jd(t) {
4592
4592
  finger: y,
4593
4593
  move: !0
4594
4594
  });
4595
- U(-1), p.type === "touchend" && pe(-1), h && h(p, fe.current ?? g), V.current = void 0, nt();
4596
- }), Ie = Ws((p) => {
4595
+ U(-1), m.type === "touchend" && pe(-1), h && h(m, fe.current ?? g), M.current = void 0, nt();
4596
+ }), Ie = Ws((m) => {
4597
4597
  if (n)
4598
4598
  return;
4599
- hi() || p.preventDefault();
4600
- const y = p.changedTouches[0];
4601
- y != null && (V.current = y.identifier);
4602
- const g = ts(p, V);
4599
+ hi() || m.preventDefault();
4600
+ const y = m.changedTouches[0];
4601
+ y != null && (M.current = y.identifier);
4602
+ const g = ts(m, M);
4603
4603
  if (g !== !1) {
4604
4604
  const {
4605
4605
  newValue: D,
@@ -4611,7 +4611,7 @@ function Jd(t) {
4611
4611
  sliderRef: de,
4612
4612
  activeIndex: O,
4613
4613
  setActive: U
4614
- }), P(D), R && !ns(D, j) && R(p, D, O);
4614
+ }), P(D), R && !ns(D, j) && R(m, D, O);
4615
4615
  }
4616
4616
  ee.current = 0;
4617
4617
  const k = os(de.current);
@@ -4621,27 +4621,27 @@ function Jd(t) {
4621
4621
  passive: !0
4622
4622
  });
4623
4623
  }), nt = B.useCallback(() => {
4624
- const p = os(de.current);
4625
- p.removeEventListener("mousemove", rt), p.removeEventListener("mouseup", Fe), p.removeEventListener("touchmove", rt), p.removeEventListener("touchend", Fe);
4624
+ const m = os(de.current);
4625
+ m.removeEventListener("mousemove", rt), m.removeEventListener("mouseup", Fe), m.removeEventListener("touchmove", rt), m.removeEventListener("touchend", Fe);
4626
4626
  }, [Fe, rt]);
4627
4627
  B.useEffect(() => {
4628
4628
  const {
4629
- current: p
4629
+ current: m
4630
4630
  } = de;
4631
- return p.addEventListener("touchstart", Ie, {
4631
+ return m.addEventListener("touchstart", Ie, {
4632
4632
  passive: hi()
4633
4633
  }), () => {
4634
- p.removeEventListener("touchstart", Ie), nt();
4634
+ m.removeEventListener("touchstart", Ie), nt();
4635
4635
  };
4636
4636
  }, [nt, Ie]), B.useEffect(() => {
4637
4637
  n && nt();
4638
4638
  }, [n, nt]);
4639
- const hr = (p) => (y) => {
4639
+ const hr = (m) => (y) => {
4640
4640
  var D;
4641
- if ((D = p.onMouseDown) == null || D.call(p, y), n || y.defaultPrevented || y.button !== 0)
4641
+ if ((D = m.onMouseDown) == null || D.call(m, y), n || y.defaultPrevented || y.button !== 0)
4642
4642
  return;
4643
4643
  y.preventDefault();
4644
- const g = ts(y, V);
4644
+ const g = ts(y, M);
4645
4645
  if (g !== !1) {
4646
4646
  const {
4647
4647
  newValue: O,
@@ -4660,49 +4660,49 @@ function Jd(t) {
4660
4660
  k.addEventListener("mousemove", rt, {
4661
4661
  passive: !0
4662
4662
  }), k.addEventListener("mouseup", Fe);
4663
- }, wt = xs(ne ? W[0] : c, c, o), Pe = xs(W[W.length - 1], c, o) - wt, Gt = (p = {}) => {
4664
- const y = Gs(p), g = {
4663
+ }, wt = xs(ne ? W[0] : c, c, o), Pe = xs(W[W.length - 1], c, o) - wt, Gt = (m = {}) => {
4664
+ const y = Gs(m), g = {
4665
4665
  onMouseDown: hr(y || {})
4666
4666
  }, k = {
4667
4667
  ...y,
4668
4668
  ...g
4669
4669
  };
4670
4670
  return {
4671
- ...p,
4671
+ ...m,
4672
4672
  ref: Ye,
4673
4673
  ...k
4674
4674
  };
4675
- }, pr = (p) => (y) => {
4675
+ }, pr = (m) => (y) => {
4676
4676
  var k;
4677
- (k = p.onMouseOver) == null || k.call(p, y);
4677
+ (k = m.onMouseOver) == null || k.call(m, y);
4678
4678
  const g = Number(y.currentTarget.getAttribute("data-index"));
4679
4679
  pe(g);
4680
- }, Vr = (p) => (y) => {
4680
+ }, Vr = (m) => (y) => {
4681
4681
  var g;
4682
- (g = p.onMouseLeave) == null || g.call(p, y), pe(-1);
4683
- }, Qt = (p = {}) => {
4684
- const y = Gs(p), g = {
4682
+ (g = m.onMouseLeave) == null || g.call(m, y), pe(-1);
4683
+ }, Qt = (m = {}) => {
4684
+ const y = Gs(m), g = {
4685
4685
  onMouseOver: pr(y || {}),
4686
4686
  onMouseLeave: Vr(y || {})
4687
4687
  };
4688
4688
  return {
4689
- ...p,
4689
+ ...m,
4690
4690
  ...y,
4691
4691
  ...g
4692
4692
  };
4693
- }, d = (p) => ({
4693
+ }, d = (m) => ({
4694
4694
  // So the non active thumb doesn't show its label on hover.
4695
- pointerEvents: M !== -1 && M !== p ? "none" : void 0
4695
+ pointerEvents: N !== -1 && N !== m ? "none" : void 0
4696
4696
  });
4697
4697
  let b;
4698
- return _ === "vertical" && (b = a ? "vertical-rl" : "vertical-lr"), {
4699
- active: M,
4698
+ return x === "vertical" && (b = a ? "vertical-rl" : "vertical-lr"), {
4699
+ active: N,
4700
4700
  axis: Re,
4701
4701
  axisProps: Hd,
4702
4702
  dragging: X,
4703
4703
  focusedThumbIndex: ke,
4704
- getHiddenInputProps: (p = {}) => {
4705
- const y = Gs(p), g = {
4704
+ getHiddenInputProps: (m = {}) => {
4705
+ const y = Gs(m), g = {
4706
4706
  onChange: he(y || {}),
4707
4707
  onFocus: ut(y || {}),
4708
4708
  onBlur: xt(y || {}),
@@ -4714,7 +4714,7 @@ function Jd(t) {
4714
4714
  return {
4715
4715
  tabIndex: I,
4716
4716
  "aria-labelledby": e,
4717
- "aria-orientation": _,
4717
+ "aria-orientation": x,
4718
4718
  "aria-valuemax": E(o),
4719
4719
  "aria-valuemin": E(c),
4720
4720
  name: u,
@@ -4723,7 +4723,7 @@ function Jd(t) {
4723
4723
  max: t.max,
4724
4724
  step: t.step === null && t.marks ? "any" : t.step ?? void 0,
4725
4725
  disabled: n,
4726
- ...p,
4726
+ ...m,
4727
4727
  ...k,
4728
4728
  style: {
4729
4729
  ...Ju,
@@ -5323,17 +5323,17 @@ const of = ze("span", {
5323
5323
  // eslint-disable-next-line react/prop-types
5324
5324
  component: c = "span",
5325
5325
  components: u = {},
5326
- componentsProps: m = {},
5326
+ componentsProps: p = {},
5327
5327
  color: h = "primary",
5328
- classes: _,
5328
+ classes: x,
5329
5329
  className: S,
5330
5330
  disableSwap: E = !1,
5331
5331
  disabled: w = !1,
5332
5332
  getAriaLabel: C,
5333
5333
  getAriaValueText: I,
5334
5334
  marks: T = !1,
5335
- max: V = 100,
5336
- min: M = 0,
5335
+ max: M = 100,
5336
+ min: N = 0,
5337
5337
  name: U,
5338
5338
  onChange: G,
5339
5339
  onChangeCommitted: pe,
@@ -5353,9 +5353,9 @@ const of = ze("span", {
5353
5353
  } = n, de = {
5354
5354
  ...n,
5355
5355
  isRtl: s,
5356
- max: V,
5357
- min: M,
5358
- classes: _,
5356
+ max: M,
5357
+ min: N,
5358
+ classes: x,
5359
5359
  disabled: w,
5360
5360
  disableSwap: E,
5361
5361
  orientation: X,
@@ -5389,7 +5389,7 @@ const of = ze("span", {
5389
5389
  rootRef: r
5390
5390
  });
5391
5391
  de.marked = Fe.length > 0 && Fe.some((Ae) => Ae.label), de.dragging = rt, de.focusedThumbIndex = Re;
5392
- const Pe = cf(de), Gt = (R == null ? void 0 : R.root) ?? u.Root ?? rf, pr = (R == null ? void 0 : R.rail) ?? u.Rail ?? nf, Vr = (R == null ? void 0 : R.track) ?? u.Track ?? sf, Qt = (R == null ? void 0 : R.thumb) ?? u.Thumb ?? af, d = (R == null ? void 0 : R.valueLabel) ?? u.ValueLabel ?? ko, b = (R == null ? void 0 : R.mark) ?? u.Mark ?? of, x = (R == null ? void 0 : R.markLabel) ?? u.MarkLabel ?? lf, p = (R == null ? void 0 : R.input) ?? u.Input ?? "input", y = (P == null ? void 0 : P.root) ?? m.root, g = (P == null ? void 0 : P.rail) ?? m.rail, k = (P == null ? void 0 : P.track) ?? m.track, D = (P == null ? void 0 : P.thumb) ?? m.thumb, O = (P == null ? void 0 : P.valueLabel) ?? m.valueLabel, te = (P == null ? void 0 : P.mark) ?? m.mark, xe = (P == null ? void 0 : P.markLabel) ?? m.markLabel, ve = (P == null ? void 0 : P.input) ?? m.input, Ue = Kt({
5392
+ const Pe = cf(de), Gt = (R == null ? void 0 : R.root) ?? u.Root ?? rf, pr = (R == null ? void 0 : R.rail) ?? u.Rail ?? nf, Vr = (R == null ? void 0 : R.track) ?? u.Track ?? sf, Qt = (R == null ? void 0 : R.thumb) ?? u.Thumb ?? af, d = (R == null ? void 0 : R.valueLabel) ?? u.ValueLabel ?? ko, b = (R == null ? void 0 : R.mark) ?? u.Mark ?? of, _ = (R == null ? void 0 : R.markLabel) ?? u.MarkLabel ?? lf, m = (R == null ? void 0 : R.input) ?? u.Input ?? "input", y = (P == null ? void 0 : P.root) ?? p.root, g = (P == null ? void 0 : P.rail) ?? p.rail, k = (P == null ? void 0 : P.track) ?? p.track, D = (P == null ? void 0 : P.thumb) ?? p.thumb, O = (P == null ? void 0 : P.valueLabel) ?? p.valueLabel, te = (P == null ? void 0 : P.mark) ?? p.mark, xe = (P == null ? void 0 : P.markLabel) ?? p.markLabel, ve = (P == null ? void 0 : P.input) ?? p.input, Ue = Kt({
5393
5393
  elementType: Gt,
5394
5394
  getSlotProps: ut,
5395
5395
  externalSlotProps: y,
@@ -5446,12 +5446,12 @@ const of = ze("span", {
5446
5446
  ownerState: de,
5447
5447
  className: Pe.mark
5448
5448
  }), $s = Kt({
5449
- elementType: x,
5449
+ elementType: _,
5450
5450
  externalSlotProps: xe,
5451
5451
  ownerState: de,
5452
5452
  className: Pe.markLabel
5453
5453
  }), Xo = Kt({
5454
- elementType: p,
5454
+ elementType: m,
5455
5455
  getSlotProps: xt,
5456
5456
  externalSlotProps: ve,
5457
5457
  ownerState: de
@@ -5462,8 +5462,8 @@ const of = ze("span", {
5462
5462
  ...mr
5463
5463
  }), /* @__PURE__ */ v(Vr, {
5464
5464
  ...Qn
5465
- }), Fe.filter((Ae) => Ae.value >= M && Ae.value <= V).map((Ae, De) => {
5466
- const Us = xs(Ae.value, M, V), Hn = Ye[qe].offset(Us);
5465
+ }), Fe.filter((Ae) => Ae.value >= N && Ae.value <= M).map((Ae, De) => {
5466
+ const Us = xs(Ae.value, N, M), Hn = Ye[qe].offset(Us);
5467
5467
  let Pt;
5468
5468
  return W === !1 ? Pt = Ie.includes(Ae.value) : Pt = W === "normal" && (tt ? Ae.value >= Ie[0] && Ae.value <= Ie[Ie.length - 1] : Ae.value <= Ie[0]) || W === "inverted" && (tt ? Ae.value <= Ie[0] || Ae.value >= Ie[Ie.length - 1] : Ae.value >= Ie[0]), /* @__PURE__ */ re(B.Fragment, {
5469
5469
  children: [/* @__PURE__ */ v(b, {
@@ -5477,11 +5477,11 @@ const of = ze("span", {
5477
5477
  ...zs.style
5478
5478
  },
5479
5479
  className: et(zs.className, Pt && Pe.markActive)
5480
- }), Ae.label != null ? /* @__PURE__ */ v(x, {
5480
+ }), Ae.label != null ? /* @__PURE__ */ v(_, {
5481
5481
  "aria-hidden": !0,
5482
5482
  "data-index": De,
5483
5483
  ...$s,
5484
- ...!Ur(x) && {
5484
+ ...!Ur(_) && {
5485
5485
  markLabelActive: Pt
5486
5486
  },
5487
5487
  style: {
@@ -5493,7 +5493,7 @@ const of = ze("span", {
5493
5493
  }) : null]
5494
5494
  }, De);
5495
5495
  }), Ie.map((Ae, De) => {
5496
- const Us = xs(Ae, M, V), Hn = Ye[qe].offset(Us), Pt = ce === "off" ? uf : d;
5496
+ const Us = xs(Ae, N, M), Hn = Ye[qe].offset(Us), Pt = ce === "off" ? uf : d;
5497
5497
  return (
5498
5498
  /* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
5499
5499
  /* @__PURE__ */ v(Pt, {
@@ -5515,7 +5515,7 @@ const of = ze("span", {
5515
5515
  ...wt(De),
5516
5516
  ...pn.style
5517
5517
  },
5518
- children: /* @__PURE__ */ v(p, {
5518
+ children: /* @__PURE__ */ v(m, {
5519
5519
  "data-index": De,
5520
5520
  "aria-label": C ? C(De) : a,
5521
5521
  "aria-valuenow": j(Ae),
@@ -6023,24 +6023,24 @@ const ff = $e(_e)`
6023
6023
  popupData: { onCollapse: i }
6024
6024
  } = Mr(), [o, c] = Y(
6025
6025
  {}
6026
- ), [u, m] = Y(!0);
6026
+ ), [u, p] = Y(!0);
6027
6027
  Oe(() => {
6028
6028
  (async () => {
6029
6029
  var S;
6030
- m(!0);
6031
- const _ = {};
6030
+ p(!0);
6031
+ const x = {};
6032
6032
  for (const E of e) {
6033
6033
  const w = is(E.getId(), s), C = E.getProperties().layerId;
6034
6034
  let I = (S = n.find(
6035
6035
  (T) => T.layerId === C
6036
6036
  )) == null ? void 0 : S.name;
6037
- !I && w && (I = (await Rl(Number(w))).title), w && I && (_[w] = `${I} ID: ${is(w, s)}`);
6037
+ !I && w && (I = (await Rl(Number(w))).title), w && I && (x[w] = `${I} ID: ${is(w, s)}`);
6038
6038
  }
6039
- c(_), m(!1);
6039
+ c(x), p(!1);
6040
6040
  })();
6041
6041
  }, [e, n, s, r]);
6042
- const h = (_) => {
6043
- const S = is(_.getId(), s), E = _.getProperties().layerId, w = S ? o[S] : "Nieznany obiekt";
6042
+ const h = (x) => {
6043
+ const S = is(x.getId(), s), E = x.getProperties().layerId, w = S ? o[S] : "Nieznany obiekt";
6044
6044
  return u ? /* @__PURE__ */ v($t, { mb: "15px", children: /* @__PURE__ */ v(bo, { variant: "rounded", width: "100%", height: "110px" }) }) : /* @__PURE__ */ re(
6045
6045
  _e,
6046
6046
  {
@@ -6052,13 +6052,13 @@ const ff = $e(_e)`
6052
6052
  children: [
6053
6053
  /* @__PURE__ */ v(be, { fontWeight: 600, children: w }),
6054
6054
  /* @__PURE__ */ re(_e, { flexDirection: "row", gap: "10px", mt: "20px", justifyContent: "center", children: [
6055
- /* @__PURE__ */ v(Ot, { onClick: () => i(_), variant: "contained", children: "Wybierz" }),
6055
+ /* @__PURE__ */ v(Ot, { onClick: () => i(x), variant: "contained", children: "Wybierz" }),
6056
6056
  /* @__PURE__ */ v(
6057
6057
  Ot,
6058
6058
  {
6059
6059
  disabled: E || !a.current,
6060
6060
  onClick: () => {
6061
- i(_, !0), r();
6061
+ i(x, !0), r();
6062
6062
  },
6063
6063
  variant: "contained",
6064
6064
  children: "Wyświetl informację"
@@ -6250,12 +6250,12 @@ const Eo = nl(
6250
6250
  }, Of = ({
6251
6251
  children: t
6252
6252
  }) => {
6253
- const [e, r] = Y(), [n, s] = Y(), [a, i] = Y(0), [o, c] = Y(0), [u, m] = Y(0), [h, _] = Y(0), [S, E] = Y(0), [w, C] = Y([]), [I, T] = Y([]), [V, M] = Y(), U = {
6253
+ const [e, r] = Y(), [n, s] = Y(), [a, i] = Y(0), [o, c] = Y(0), [u, p] = Y(0), [h, x] = Y(0), [S, E] = Y(0), [w, C] = Y([]), [I, T] = Y([]), [M, N] = Y(), U = {
6254
6254
  setMileageStart: c,
6255
- setMileageEnd: m,
6255
+ setMileageEnd: p,
6256
6256
  setSelectedNet: s,
6257
6257
  setChainageLength: i,
6258
- setChainageValue: _,
6258
+ setChainageValue: x,
6259
6259
  setMileageValue: E,
6260
6260
  setSelectedRoad: r,
6261
6261
  selectedRoad: e,
@@ -6269,8 +6269,8 @@ const Eo = nl(
6269
6269
  roads: I,
6270
6270
  nets: w,
6271
6271
  setNets: C,
6272
- prgAddressValue: V,
6273
- setPrgAddressValue: M
6272
+ prgAddressValue: M,
6273
+ setPrgAddressValue: N
6274
6274
  };
6275
6275
  return /* @__PURE__ */ v(Eo.Provider, { value: U, children: t });
6276
6276
  };
@@ -6314,7 +6314,7 @@ const If = $e(_e)`
6314
6314
  align-items: center;
6315
6315
  justify-content: center;
6316
6316
  `, Lf = ({ onlyGemLayers: t }) => {
6317
- const [e, r] = Y(!0), [n, s] = Y([]), [a, i] = Y([]), [o, c] = Y(""), u = Xs([]), m = Xs([]);
6317
+ const [e, r] = Y(!0), [n, s] = Y([]), [a, i] = Y([]), [o, c] = Y(""), u = Xs([]), p = Xs([]);
6318
6318
  Oe(() => {
6319
6319
  (async () => {
6320
6320
  const E = (await Me.queryGEMLayers()).data.response.data;
@@ -6322,16 +6322,16 @@ const If = $e(_e)`
6322
6322
  const w = await Me.querySelectedLayers("MAP_VIEW"), C = JSON.parse(
6323
6323
  w.data.response.MAP_RLO_VIEW_LAYER_SELECTED
6324
6324
  );
6325
- m.current = C.selected;
6325
+ p.current = C.selected;
6326
6326
  const I = Me.queryLayersByKeys(
6327
6327
  E,
6328
6328
  C.selected
6329
- ), T = I.map((U) => U.id), V = Me.processLayersStructure(
6329
+ ), T = I.map((U) => U.id), M = Me.processLayersStructure(
6330
6330
  E,
6331
6331
  T
6332
6332
  );
6333
- let M = Me.createTreeItems(V);
6334
- t && (M = M.filter((U) => U.id === "LAYER_VIEW_TYPE_GEM")[0].children), Me.setSelectedLayers(I), r(!1), u.current = M, s(M);
6333
+ let N = Me.createTreeItems(M);
6334
+ t && (N = N.filter((U) => U.id === "LAYER_VIEW_TYPE_GEM")[0].children), Me.setSelectedLayers(I), r(!1), u.current = N, s(N);
6335
6335
  })();
6336
6336
  }, [t]), Oe(() => {
6337
6337
  s(o === "" ? u.current : Me.filterTree(u.current, o));
@@ -6339,10 +6339,10 @@ const If = $e(_e)`
6339
6339
  Me.layersEventEmitters.on("onRestartLayers", async () => {
6340
6340
  const S = Me.queryLayersByKeys(
6341
6341
  a,
6342
- m.current
6342
+ p.current
6343
6343
  );
6344
6344
  Me.setSelectedLayers(S);
6345
- const E = _(S);
6345
+ const E = x(S);
6346
6346
  await Me.saveLayersConfig(
6347
6347
  JSON.stringify(E),
6348
6348
  "MAP_RLO_VIEW_LAYER_SELECTED"
@@ -6354,18 +6354,18 @@ const If = $e(_e)`
6354
6354
  const w = Me.onNodeCheck(S, E, n);
6355
6355
  s(w);
6356
6356
  const C = Me.getCheckedLayerIds(w);
6357
- m.current = C;
6357
+ p.current = C;
6358
6358
  const I = Me.queryLayersByKeys(
6359
6359
  a,
6360
6360
  C
6361
6361
  );
6362
6362
  Me.setSelectedLayers(I);
6363
- const T = _(I);
6363
+ const T = x(I);
6364
6364
  await Me.saveLayersConfig(
6365
6365
  JSON.stringify(T),
6366
6366
  "MAP_RLO_VIEW_LAYER_SELECTED"
6367
6367
  ), r(!1);
6368
- }, _ = (S) => ({
6368
+ }, x = (S) => ({
6369
6369
  layers: S,
6370
6370
  selected: S.map((E) => E.id),
6371
6371
  symbols: S.map((E) => {
@@ -6417,7 +6417,7 @@ function je(t) {
6417
6417
  return t;
6418
6418
  return e;
6419
6419
  }
6420
- var Ds = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Te = (t) => t === void 0, N = (t, e, r) => {
6420
+ var Ds = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Te = (t) => t === void 0, V = (t, e, r) => {
6421
6421
  if (!e || !Ee(t))
6422
6422
  return r;
6423
6423
  const n = Ds(e.split(/[,[\].]+?/)).reduce((s, a) => Ke(s) ? s : s[a], t);
@@ -6495,7 +6495,7 @@ function Ff(t) {
6495
6495
  c.current.isValid && r._setValid(!0);
6496
6496
  }, [r]), ge.useMemo(() => Po(i, r, c.current, !1), [i, r]);
6497
6497
  }
6498
- var Et = (t) => typeof t == "string", Lo = (t, e, r, n, s) => Et(t) ? (n && e.watch.add(t), N(r, t, s)) : Array.isArray(t) ? t.map((a) => (n && e.watch.add(a), N(r, a))) : (n && (e.watchAll = !0), r);
6498
+ var Et = (t) => typeof t == "string", Lo = (t, e, r, n, s) => Et(t) ? (n && e.watch.add(t), V(r, t, s)) : Array.isArray(t) ? t.map((a) => (n && e.watch.add(a), V(r, a))) : (n && (e.watchAll = !0), r);
6499
6499
  function Mo(t) {
6500
6500
  const e = Da(), { control: r = e.control, name: n, defaultValue: s, disabled: a, exact: i } = t || {}, o = ge.useRef(s), [c, u] = ge.useState(r._getWatch(n, o.current));
6501
6501
  return ja(() => r._subscribe({
@@ -6504,80 +6504,80 @@ function Mo(t) {
6504
6504
  values: !0
6505
6505
  },
6506
6506
  exact: i,
6507
- callback: (m) => !a && u(Lo(n, r._names, m.values || r._formValues, !1, o.current))
6507
+ callback: (p) => !a && u(Lo(n, r._names, p.values || r._formValues, !1, o.current))
6508
6508
  }), [n, r, a, i]), ge.useEffect(() => r._removeUnmounted()), c;
6509
6509
  }
6510
6510
  function Df(t) {
6511
6511
  const e = Da(), { name: r, disabled: n, control: s = e.control, shouldUnregister: a } = t, i = Ro(s._names.array, r), o = Mo({
6512
6512
  control: s,
6513
6513
  name: r,
6514
- defaultValue: N(s._formValues, r, N(s._defaultValues, r, t.defaultValue)),
6514
+ defaultValue: V(s._formValues, r, V(s._defaultValues, r, t.defaultValue)),
6515
6515
  exact: !0
6516
6516
  }), c = Ff({
6517
6517
  control: s,
6518
6518
  name: r,
6519
6519
  exact: !0
6520
- }), u = ge.useRef(t), m = ge.useRef(s.register(r, {
6520
+ }), u = ge.useRef(t), p = ge.useRef(s.register(r, {
6521
6521
  ...t.rules,
6522
6522
  value: o,
6523
6523
  ...st(t.disabled) ? { disabled: t.disabled } : {}
6524
6524
  })), h = ge.useMemo(() => Object.defineProperties({}, {
6525
6525
  invalid: {
6526
6526
  enumerable: !0,
6527
- get: () => !!N(c.errors, r)
6527
+ get: () => !!V(c.errors, r)
6528
6528
  },
6529
6529
  isDirty: {
6530
6530
  enumerable: !0,
6531
- get: () => !!N(c.dirtyFields, r)
6531
+ get: () => !!V(c.dirtyFields, r)
6532
6532
  },
6533
6533
  isTouched: {
6534
6534
  enumerable: !0,
6535
- get: () => !!N(c.touchedFields, r)
6535
+ get: () => !!V(c.touchedFields, r)
6536
6536
  },
6537
6537
  isValidating: {
6538
6538
  enumerable: !0,
6539
- get: () => !!N(c.validatingFields, r)
6539
+ get: () => !!V(c.validatingFields, r)
6540
6540
  },
6541
6541
  error: {
6542
6542
  enumerable: !0,
6543
- get: () => N(c.errors, r)
6543
+ get: () => V(c.errors, r)
6544
6544
  }
6545
- }), [c, r]), _ = ge.useCallback((C) => m.current.onChange({
6545
+ }), [c, r]), x = ge.useCallback((C) => p.current.onChange({
6546
6546
  target: {
6547
6547
  value: Oo(C),
6548
6548
  name: r
6549
6549
  },
6550
6550
  type: ws.CHANGE
6551
- }), [r]), S = ge.useCallback(() => m.current.onBlur({
6551
+ }), [r]), S = ge.useCallback(() => p.current.onBlur({
6552
6552
  target: {
6553
- value: N(s._formValues, r),
6553
+ value: V(s._formValues, r),
6554
6554
  name: r
6555
6555
  },
6556
6556
  type: ws.BLUR
6557
6557
  }), [r, s._formValues]), E = ge.useCallback((C) => {
6558
- const I = N(s._fields, r);
6558
+ const I = V(s._fields, r);
6559
6559
  I && C && (I._f.ref = C);
6560
6560
  }, [s._fields, r]), w = ge.useMemo(() => ({
6561
6561
  name: r,
6562
6562
  value: o,
6563
6563
  ...st(n) || c.disabled ? { disabled: c.disabled || n } : {},
6564
- onChange: _,
6564
+ onChange: x,
6565
6565
  onBlur: S,
6566
6566
  ref: E
6567
- }), [r, n, c.disabled, _, S, E, o]);
6567
+ }), [r, n, c.disabled, x, S, E, o]);
6568
6568
  return ge.useEffect(() => {
6569
6569
  const C = s._options.shouldUnregister || a;
6570
6570
  s.register(r, {
6571
6571
  ...u.current.rules,
6572
6572
  ...st(u.current.disabled) ? { disabled: u.current.disabled } : {}
6573
6573
  });
6574
- const I = (T, V) => {
6575
- const M = N(s._fields, T);
6576
- M && M._f && (M._f.mount = V);
6574
+ const I = (T, M) => {
6575
+ const N = V(s._fields, T);
6576
+ N && N._f && (N._f.mount = M);
6577
6577
  };
6578
6578
  if (I(r, !0), C) {
6579
- const T = je(N(s._options.defaultValues, r));
6580
- me(s._defaultValues, r, T), Te(N(s._formValues, r)) && me(s._formValues, r, T);
6579
+ const T = je(V(s._options.defaultValues, r));
6580
+ me(s._defaultValues, r, T), Te(V(s._formValues, r)) && me(s._formValues, r, T);
6581
6581
  }
6582
6582
  return !i && s.register(r), () => {
6583
6583
  (i ? C && !s._state.action : C) ? s.unregister(r) : I(r, !1);
@@ -6716,7 +6716,7 @@ function xi(t) {
6716
6716
  var Zf = (t, e, r, n) => {
6717
6717
  const s = {};
6718
6718
  for (const a of t) {
6719
- const i = N(e, a);
6719
+ const i = V(e, a);
6720
6720
  i && me(s, a, i._f);
6721
6721
  }
6722
6722
  return {
@@ -6736,7 +6736,7 @@ const Si = "AsyncFunction";
6736
6736
  var Bf = (t) => !!t && !!t.validate && !!(mt(t.validate) && t.validate.constructor.name === Si || Ee(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Si)), qf = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), ki = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
6737
6737
  const wn = (t, e, r, n) => {
6738
6738
  for (const s of r || Object.keys(t)) {
6739
- const a = N(t, s);
6739
+ const a = V(t, s);
6740
6740
  if (a) {
6741
6741
  const { _f: i, ...o } = a;
6742
6742
  if (i) {
@@ -6752,7 +6752,7 @@ const wn = (t, e, r, n) => {
6752
6752
  }
6753
6753
  };
6754
6754
  function Ci(t, e, r) {
6755
- const n = N(t, r);
6755
+ const n = V(t, r);
6756
6756
  if (n || Fa(r))
6757
6757
  return {
6758
6758
  error: n,
@@ -6760,7 +6760,7 @@ function Ci(t, e, r) {
6760
6760
  };
6761
6761
  const s = r.split(".");
6762
6762
  for (; s.length; ) {
6763
- const a = s.join("."), i = N(e, a), o = N(t, a);
6763
+ const a = s.join("."), i = V(e, a), o = V(t, a);
6764
6764
  if (i && !Array.isArray(i) && r !== a)
6765
6765
  return { name: r };
6766
6766
  if (o && o.type)
@@ -6778,8 +6778,8 @@ var Wf = (t, e, r, n) => {
6778
6778
  r(t);
6779
6779
  const { name: s, ...a } = t;
6780
6780
  return Qe(a) || Object.keys(a).length >= Object.keys(e).length || Object.keys(a).find((i) => e[i] === (!n || pt.all));
6781
- }, Gf = (t, e, r) => !t || !e || t === e || xn(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), Qf = (t, e, r, n, s) => s.isOnAll ? !1 : !r && s.isOnTouch ? !(e || t) : (r ? n.isOnBlur : s.isOnBlur) ? !t : (r ? n.isOnChange : s.isOnChange) ? t : !0, Kf = (t, e) => !Ds(N(t, e)).length && Le(t, e), Hf = (t, e, r) => {
6782
- const n = xn(N(t, r));
6781
+ }, Gf = (t, e, r) => !t || !e || t === e || xn(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), Qf = (t, e, r, n, s) => s.isOnAll ? !1 : !r && s.isOnTouch ? !(e || t) : (r ? n.isOnBlur : s.isOnBlur) ? !t : (r ? n.isOnChange : s.isOnChange) ? t : !0, Kf = (t, e) => !Ds(V(t, e)).length && Le(t, e), Hf = (t, e, r) => {
6782
+ const n = xn(V(t, r));
6783
6783
  return me(n, "root", e[r]), me(t, r, n), t;
6784
6784
  }, ds = (t) => Et(t);
6785
6785
  function Ti(t, e, r = "validate") {
@@ -6794,11 +6794,11 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
6794
6794
  value: t,
6795
6795
  message: ""
6796
6796
  }, Ei = async (t, e, r, n, s, a) => {
6797
- const { ref: i, refs: o, required: c, maxLength: u, minLength: m, min: h, max: _, pattern: S, validate: E, name: w, valueAsNumber: C, mount: I } = t._f, T = N(r, w);
6797
+ const { ref: i, refs: o, required: c, maxLength: u, minLength: p, min: h, max: x, pattern: S, validate: E, name: w, valueAsNumber: C, mount: I } = t._f, T = V(r, w);
6798
6798
  if (!I || e.has(w))
6799
6799
  return {};
6800
- const V = o ? o[0] : i, M = (j) => {
6801
- s && V.reportValidity && (V.setCustomValidity(st(j) ? "" : j || ""), V.reportValidity());
6800
+ const M = o ? o[0] : i, N = (j) => {
6801
+ s && M.reportValidity && (M.setCustomValidity(st(j) ? "" : j || ""), M.reportValidity());
6802
6802
  }, U = {}, G = $a(i), pe = Wn(i), X = G || pe, Q = (C || za(i)) && Te(i.value) && Te(T) || Ss(i) && i.value === "" || T === "" || Array.isArray(T) && !T.length, ee = No.bind(null, w, n, U), fe = (j, P, R, ne = Lt.maxLength, W = Lt.minLength) => {
6803
6803
  const Se = j ? P : R;
6804
6804
  U[w] = {
@@ -6813,14 +6813,14 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
6813
6813
  if (j && (U[w] = {
6814
6814
  type: Lt.required,
6815
6815
  message: P,
6816
- ref: V,
6816
+ ref: M,
6817
6817
  ...ee(Lt.required, P)
6818
6818
  }, !n))
6819
- return M(P), U;
6819
+ return N(P), U;
6820
6820
  }
6821
- if (!Q && (!Ke(h) || !Ke(_))) {
6821
+ if (!Q && (!Ke(h) || !Ke(x))) {
6822
6822
  let j, P;
6823
- const R = Dr(_), ne = Dr(h);
6823
+ const R = Dr(x), ne = Dr(h);
6824
6824
  if (!Ke(T) && !isNaN(T)) {
6825
6825
  const W = i.valueAsNumber || T && +T;
6826
6826
  Ke(R.value) || (j = W > R.value), Ke(ne.value) || (P = W < ne.value);
@@ -6829,12 +6829,12 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
6829
6829
  Et(R.value) && T && (j = ce ? Se(T) > Se(R.value) : ke ? T > R.value : W > new Date(R.value)), Et(ne.value) && T && (P = ce ? Se(T) < Se(ne.value) : ke ? T < ne.value : W < new Date(ne.value));
6830
6830
  }
6831
6831
  if ((j || P) && (fe(!!j, R.message, ne.message, Lt.max, Lt.min), !n))
6832
- return M(U[w].message), U;
6832
+ return N(U[w].message), U;
6833
6833
  }
6834
- if ((u || m) && !Q && (Et(T) || a && Array.isArray(T))) {
6835
- const j = Dr(u), P = Dr(m), R = !Ke(j.value) && T.length > +j.value, ne = !Ke(P.value) && T.length < +P.value;
6834
+ if ((u || p) && !Q && (Et(T) || a && Array.isArray(T))) {
6835
+ const j = Dr(u), P = Dr(p), R = !Ke(j.value) && T.length > +j.value, ne = !Ke(P.value) && T.length < +P.value;
6836
6836
  if ((R || ne) && (fe(R, j.message, P.message), !n))
6837
- return M(U[w].message), U;
6837
+ return N(U[w].message), U;
6838
6838
  }
6839
6839
  if (S && !Q && Et(T)) {
6840
6840
  const { value: j, message: P } = Dr(S);
@@ -6844,35 +6844,35 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
6844
6844
  ref: i,
6845
6845
  ...ee(Lt.pattern, P)
6846
6846
  }, !n))
6847
- return M(P), U;
6847
+ return N(P), U;
6848
6848
  }
6849
6849
  if (E) {
6850
6850
  if (mt(E)) {
6851
- const j = await E(T, r), P = Ti(j, V);
6851
+ const j = await E(T, r), P = Ti(j, M);
6852
6852
  if (P && (U[w] = {
6853
6853
  ...P,
6854
6854
  ...ee(Lt.validate, P.message)
6855
6855
  }, !n))
6856
- return M(P.message), U;
6856
+ return N(P.message), U;
6857
6857
  } else if (Ee(E)) {
6858
6858
  let j = {};
6859
6859
  for (const P in E) {
6860
6860
  if (!Qe(j) && !n)
6861
6861
  break;
6862
- const R = Ti(await E[P](T, r), V, P);
6862
+ const R = Ti(await E[P](T, r), M, P);
6863
6863
  R && (j = {
6864
6864
  ...R,
6865
6865
  ...ee(P, R.message)
6866
- }, M(R.message), n && (U[w] = j));
6866
+ }, N(R.message), n && (U[w] = j));
6867
6867
  }
6868
6868
  if (!Qe(j) && (U[w] = {
6869
- ref: V,
6869
+ ref: M,
6870
6870
  ...j
6871
6871
  }, !n))
6872
6872
  return U;
6873
6873
  }
6874
6874
  }
6875
- return M(!0), U;
6875
+ return N(!0), U;
6876
6876
  };
6877
6877
  const Yf = {
6878
6878
  mode: pt.onSubmit,
@@ -6911,7 +6911,7 @@ function Jf(t = {}) {
6911
6911
  array: /* @__PURE__ */ new Set(),
6912
6912
  watch: /* @__PURE__ */ new Set()
6913
6913
  }, c, u = 0;
6914
- const m = {
6914
+ const p = {
6915
6915
  isDirty: !1,
6916
6916
  dirtyFields: !1,
6917
6917
  validatingFields: !1,
@@ -6921,42 +6921,42 @@ function Jf(t = {}) {
6921
6921
  errors: !1
6922
6922
  };
6923
6923
  let h = {
6924
- ...m
6924
+ ...p
6925
6925
  };
6926
- const _ = {
6926
+ const x = {
6927
6927
  array: gi(),
6928
6928
  state: gi()
6929
6929
  }, S = wi(e.mode), E = wi(e.reValidateMode), w = e.criteriaMode === pt.all, C = (d) => (b) => {
6930
6930
  clearTimeout(u), u = setTimeout(d, b);
6931
6931
  }, I = async (d) => {
6932
- if (!e.disabled && (m.isValid || h.isValid || d)) {
6932
+ if (!e.disabled && (p.isValid || h.isValid || d)) {
6933
6933
  const b = e.resolver ? Qe((await Q()).errors) : await fe(n, !0);
6934
- b !== r.isValid && _.state.next({
6934
+ b !== r.isValid && x.state.next({
6935
6935
  isValid: b
6936
6936
  });
6937
6937
  }
6938
6938
  }, T = (d, b) => {
6939
- !e.disabled && (m.isValidating || m.validatingFields || h.isValidating || h.validatingFields) && ((d || Array.from(o.mount)).forEach((x) => {
6940
- x && (b ? me(r.validatingFields, x, b) : Le(r.validatingFields, x));
6941
- }), _.state.next({
6939
+ !e.disabled && (p.isValidating || p.validatingFields || h.isValidating || h.validatingFields) && ((d || Array.from(o.mount)).forEach((_) => {
6940
+ _ && (b ? me(r.validatingFields, _, b) : Le(r.validatingFields, _));
6941
+ }), x.state.next({
6942
6942
  validatingFields: r.validatingFields,
6943
6943
  isValidating: !Qe(r.validatingFields)
6944
6944
  }));
6945
- }, V = (d, b = [], x, p, y = !0, g = !0) => {
6946
- if (p && x && !e.disabled) {
6947
- if (i.action = !0, g && Array.isArray(N(n, d))) {
6948
- const k = x(N(n, d), p.argA, p.argB);
6945
+ }, M = (d, b = [], _, m, y = !0, g = !0) => {
6946
+ if (m && _ && !e.disabled) {
6947
+ if (i.action = !0, g && Array.isArray(V(n, d))) {
6948
+ const k = _(V(n, d), m.argA, m.argB);
6949
6949
  y && me(n, d, k);
6950
6950
  }
6951
- if (g && Array.isArray(N(r.errors, d))) {
6952
- const k = x(N(r.errors, d), p.argA, p.argB);
6951
+ if (g && Array.isArray(V(r.errors, d))) {
6952
+ const k = _(V(r.errors, d), m.argA, m.argB);
6953
6953
  y && me(r.errors, d, k), Kf(r.errors, d);
6954
6954
  }
6955
- if ((m.touchedFields || h.touchedFields) && g && Array.isArray(N(r.touchedFields, d))) {
6956
- const k = x(N(r.touchedFields, d), p.argA, p.argB);
6955
+ if ((p.touchedFields || h.touchedFields) && g && Array.isArray(V(r.touchedFields, d))) {
6956
+ const k = _(V(r.touchedFields, d), m.argA, m.argB);
6957
6957
  y && me(r.touchedFields, d, k);
6958
6958
  }
6959
- (m.dirtyFields || h.dirtyFields) && (r.dirtyFields = yn(s, a)), _.state.next({
6959
+ (p.dirtyFields || h.dirtyFields) && (r.dirtyFields = yn(s, a)), x.state.next({
6960
6960
  name: d,
6961
6961
  isDirty: P(d, b),
6962
6962
  dirtyFields: r.dirtyFields,
@@ -6965,44 +6965,44 @@ function Jf(t = {}) {
6965
6965
  });
6966
6966
  } else
6967
6967
  me(a, d, b);
6968
- }, M = (d, b) => {
6969
- me(r.errors, d, b), _.state.next({
6968
+ }, N = (d, b) => {
6969
+ me(r.errors, d, b), x.state.next({
6970
6970
  errors: r.errors
6971
6971
  });
6972
6972
  }, U = (d) => {
6973
- r.errors = d, _.state.next({
6973
+ r.errors = d, x.state.next({
6974
6974
  errors: r.errors,
6975
6975
  isValid: !1
6976
6976
  });
6977
- }, G = (d, b, x, p) => {
6978
- const y = N(n, d);
6977
+ }, G = (d, b, _, m) => {
6978
+ const y = V(n, d);
6979
6979
  if (y) {
6980
- const g = N(a, d, Te(x) ? N(s, d) : x);
6981
- Te(g) || p && p.defaultChecked || b ? me(a, d, b ? g : xi(y._f)) : W(d, g), i.mount && I();
6980
+ const g = V(a, d, Te(_) ? V(s, d) : _);
6981
+ Te(g) || m && m.defaultChecked || b ? me(a, d, b ? g : xi(y._f)) : W(d, g), i.mount && I();
6982
6982
  }
6983
- }, pe = (d, b, x, p, y) => {
6983
+ }, pe = (d, b, _, m, y) => {
6984
6984
  let g = !1, k = !1;
6985
6985
  const D = {
6986
6986
  name: d
6987
6987
  };
6988
6988
  if (!e.disabled) {
6989
- if (!x || p) {
6990
- (m.isDirty || h.isDirty) && (k = r.isDirty, r.isDirty = D.isDirty = P(), g = k !== D.isDirty);
6991
- const O = Yt(N(s, d), b);
6992
- k = !!N(r.dirtyFields, d), O ? Le(r.dirtyFields, d) : me(r.dirtyFields, d, !0), D.dirtyFields = r.dirtyFields, g = g || (m.dirtyFields || h.dirtyFields) && k !== !O;
6989
+ if (!_ || m) {
6990
+ (p.isDirty || h.isDirty) && (k = r.isDirty, r.isDirty = D.isDirty = P(), g = k !== D.isDirty);
6991
+ const O = Yt(V(s, d), b);
6992
+ k = !!V(r.dirtyFields, d), O ? Le(r.dirtyFields, d) : me(r.dirtyFields, d, !0), D.dirtyFields = r.dirtyFields, g = g || (p.dirtyFields || h.dirtyFields) && k !== !O;
6993
6993
  }
6994
- if (x) {
6995
- const O = N(r.touchedFields, d);
6996
- O || (me(r.touchedFields, d, x), D.touchedFields = r.touchedFields, g = g || (m.touchedFields || h.touchedFields) && O !== x);
6994
+ if (_) {
6995
+ const O = V(r.touchedFields, d);
6996
+ O || (me(r.touchedFields, d, _), D.touchedFields = r.touchedFields, g = g || (p.touchedFields || h.touchedFields) && O !== _);
6997
6997
  }
6998
- g && y && _.state.next(D);
6998
+ g && y && x.state.next(D);
6999
6999
  }
7000
7000
  return g ? D : {};
7001
- }, X = (d, b, x, p) => {
7002
- const y = N(r.errors, d), g = (m.isValid || h.isValid) && st(b) && r.isValid !== b;
7003
- if (e.delayError && x ? (c = C(() => M(d, x)), c(e.delayError)) : (clearTimeout(u), c = null, x ? me(r.errors, d, x) : Le(r.errors, d)), (x ? !Yt(y, x) : y) || !Qe(p) || g) {
7001
+ }, X = (d, b, _, m) => {
7002
+ const y = V(r.errors, d), g = (p.isValid || h.isValid) && st(b) && r.isValid !== b;
7003
+ if (e.delayError && _ ? (c = C(() => N(d, _)), c(e.delayError)) : (clearTimeout(u), c = null, _ ? me(r.errors, d, _) : Le(r.errors, d)), (_ ? !Yt(y, _) : y) || !Qe(m) || g) {
7004
7004
  const k = {
7005
- ...p,
7005
+ ...m,
7006
7006
  ...g && st(b) ? { isValid: b } : {},
7007
7007
  errors: r.errors,
7008
7008
  name: d
@@ -7010,7 +7010,7 @@ function Jf(t = {}) {
7010
7010
  r = {
7011
7011
  ...r,
7012
7012
  ...k
7013
- }, _.state.next(k);
7013
+ }, x.state.next(k);
7014
7014
  }
7015
7015
  }, Q = async (d) => {
7016
7016
  T(d, !0);
@@ -7019,146 +7019,146 @@ function Jf(t = {}) {
7019
7019
  }, ee = async (d) => {
7020
7020
  const { errors: b } = await Q(d);
7021
7021
  if (d)
7022
- for (const x of d) {
7023
- const p = N(b, x);
7024
- p ? me(r.errors, x, p) : Le(r.errors, x);
7022
+ for (const _ of d) {
7023
+ const m = V(b, _);
7024
+ m ? me(r.errors, _, m) : Le(r.errors, _);
7025
7025
  }
7026
7026
  else
7027
7027
  r.errors = b;
7028
7028
  return b;
7029
- }, fe = async (d, b, x = {
7029
+ }, fe = async (d, b, _ = {
7030
7030
  valid: !0
7031
7031
  }) => {
7032
- for (const p in d) {
7033
- const y = d[p];
7032
+ for (const m in d) {
7033
+ const y = d[m];
7034
7034
  if (y) {
7035
7035
  const { _f: g, ...k } = y;
7036
7036
  if (g) {
7037
7037
  const D = o.array.has(g.name), O = y._f && Bf(y._f);
7038
- O && m.validatingFields && T([p], !0);
7038
+ O && p.validatingFields && T([m], !0);
7039
7039
  const te = await Ei(y, o.disabled, a, w, e.shouldUseNativeValidation && !b, D);
7040
- if (O && m.validatingFields && T([p]), te[g.name] && (x.valid = !1, b))
7040
+ if (O && p.validatingFields && T([m]), te[g.name] && (_.valid = !1, b))
7041
7041
  break;
7042
- !b && (N(te, g.name) ? D ? Hf(r.errors, te, g.name) : me(r.errors, g.name, te[g.name]) : Le(r.errors, g.name));
7042
+ !b && (V(te, g.name) ? D ? Hf(r.errors, te, g.name) : me(r.errors, g.name, te[g.name]) : Le(r.errors, g.name));
7043
7043
  }
7044
- !Qe(k) && await fe(k, b, x);
7044
+ !Qe(k) && await fe(k, b, _);
7045
7045
  }
7046
7046
  }
7047
- return x.valid;
7047
+ return _.valid;
7048
7048
  }, j = () => {
7049
7049
  for (const d of o.unMount) {
7050
- const b = N(n, d);
7051
- b && (b._f.refs ? b._f.refs.every((x) => !Ys(x)) : !Ys(b._f.ref)) && Re(d);
7050
+ const b = V(n, d);
7051
+ b && (b._f.refs ? b._f.refs.every((_) => !Ys(_)) : !Ys(b._f.ref)) && Re(d);
7052
7052
  }
7053
7053
  o.unMount = /* @__PURE__ */ new Set();
7054
- }, P = (d, b) => !e.disabled && (d && b && me(a, d, b), !Yt(Ye(), s)), R = (d, b, x) => Lo(d, o, {
7054
+ }, P = (d, b) => !e.disabled && (d && b && me(a, d, b), !Yt(Ye(), s)), R = (d, b, _) => Lo(d, o, {
7055
7055
  ...i.mount ? a : Te(b) ? s : Et(d) ? { [d]: b } : b
7056
- }, x, b), ne = (d) => Ds(N(i.mount ? a : s, d, e.shouldUnregister ? N(s, d, []) : [])), W = (d, b, x = {}) => {
7057
- const p = N(n, d);
7056
+ }, _, b), ne = (d) => Ds(V(i.mount ? a : s, d, e.shouldUnregister ? V(s, d, []) : [])), W = (d, b, _ = {}) => {
7057
+ const m = V(n, d);
7058
7058
  let y = b;
7059
- if (p) {
7060
- const g = p._f;
7061
- g && (!g.disabled && me(a, d, zo(b, g)), y = Ss(g.ref) && Ke(b) ? "" : b, Vo(g.ref) ? [...g.ref.options].forEach((k) => k.selected = y.includes(k.value)) : g.refs ? Wn(g.ref) ? g.refs.length > 1 ? g.refs.forEach((k) => (!k.defaultChecked || !k.disabled) && (k.checked = Array.isArray(y) ? !!y.find((D) => D === k.value) : y === k.value)) : g.refs[0] && (g.refs[0].checked = !!y) : g.refs.forEach((k) => k.checked = k.value === y) : za(g.ref) ? g.ref.value = "" : (g.ref.value = y, g.ref.type || _.state.next({
7059
+ if (m) {
7060
+ const g = m._f;
7061
+ g && (!g.disabled && me(a, d, zo(b, g)), y = Ss(g.ref) && Ke(b) ? "" : b, Vo(g.ref) ? [...g.ref.options].forEach((k) => k.selected = y.includes(k.value)) : g.refs ? Wn(g.ref) ? g.refs.length > 1 ? g.refs.forEach((k) => (!k.defaultChecked || !k.disabled) && (k.checked = Array.isArray(y) ? !!y.find((D) => D === k.value) : y === k.value)) : g.refs[0] && (g.refs[0].checked = !!y) : g.refs.forEach((k) => k.checked = k.value === y) : za(g.ref) ? g.ref.value = "" : (g.ref.value = y, g.ref.type || x.state.next({
7062
7062
  name: d,
7063
7063
  values: je(a)
7064
7064
  })));
7065
7065
  }
7066
- (x.shouldDirty || x.shouldTouch) && pe(d, y, x.shouldTouch, x.shouldDirty, !0), x.shouldValidate && de(d);
7067
- }, Se = (d, b, x) => {
7068
- for (const p in b) {
7069
- const y = b[p], g = `${d}.${p}`, k = N(n, g);
7070
- (o.array.has(d) || Ee(y) || k && !k._f) && !vr(y) ? Se(g, y, x) : W(g, y, x);
7066
+ (_.shouldDirty || _.shouldTouch) && pe(d, y, _.shouldTouch, _.shouldDirty, !0), _.shouldValidate && de(d);
7067
+ }, Se = (d, b, _) => {
7068
+ for (const m in b) {
7069
+ const y = b[m], g = `${d}.${m}`, k = V(n, g);
7070
+ (o.array.has(d) || Ee(y) || k && !k._f) && !vr(y) ? Se(g, y, _) : W(g, y, _);
7071
7071
  }
7072
- }, ce = (d, b, x = {}) => {
7073
- const p = N(n, d), y = o.array.has(d), g = je(b);
7074
- me(a, d, g), y ? (_.array.next({
7072
+ }, ce = (d, b, _ = {}) => {
7073
+ const m = V(n, d), y = o.array.has(d), g = je(b);
7074
+ me(a, d, g), y ? (x.array.next({
7075
7075
  name: d,
7076
7076
  values: je(a)
7077
- }), (m.isDirty || m.dirtyFields || h.isDirty || h.dirtyFields) && x.shouldDirty && _.state.next({
7077
+ }), (p.isDirty || p.dirtyFields || h.isDirty || h.dirtyFields) && _.shouldDirty && x.state.next({
7078
7078
  name: d,
7079
7079
  dirtyFields: yn(s, a),
7080
7080
  isDirty: P(d, g)
7081
- })) : p && !p._f && !Ke(g) ? Se(d, g, x) : W(d, g, x), ki(d, o) && _.state.next({ ...r }), _.state.next({
7081
+ })) : m && !m._f && !Ke(g) ? Se(d, g, _) : W(d, g, _), ki(d, o) && x.state.next({ ...r }), x.state.next({
7082
7082
  name: i.mount ? d : void 0,
7083
7083
  values: je(a)
7084
7084
  });
7085
7085
  }, ke = async (d) => {
7086
7086
  i.mount = !0;
7087
7087
  const b = d.target;
7088
- let x = b.name, p = !0;
7089
- const y = N(n, x), g = (k) => {
7090
- p = Number.isNaN(k) || vr(k) && isNaN(k.getTime()) || Yt(k, N(a, x, k));
7088
+ let _ = b.name, m = !0;
7089
+ const y = V(n, _), g = (k) => {
7090
+ m = Number.isNaN(k) || vr(k) && isNaN(k.getTime()) || Yt(k, V(a, _, k));
7091
7091
  };
7092
7092
  if (y) {
7093
7093
  let k, D;
7094
- const O = b.type ? xi(y._f) : Oo(d), te = d.type === ws.BLUR || d.type === ws.FOCUS_OUT, xe = !qf(y._f) && !e.resolver && !N(r.errors, x) && !y._f.deps || Qf(te, N(r.touchedFields, x), r.isSubmitted, E, S), ve = ki(x, o, te);
7095
- me(a, x, O), te ? (y._f.onBlur && y._f.onBlur(d), c && c(0)) : y._f.onChange && y._f.onChange(d);
7096
- const Ue = pe(x, O, te), mr = !Qe(Ue) || ve;
7097
- if (!te && _.state.next({
7098
- name: x,
7094
+ const O = b.type ? xi(y._f) : Oo(d), te = d.type === ws.BLUR || d.type === ws.FOCUS_OUT, xe = !qf(y._f) && !e.resolver && !V(r.errors, _) && !y._f.deps || Qf(te, V(r.touchedFields, _), r.isSubmitted, E, S), ve = ki(_, o, te);
7095
+ me(a, _, O), te ? (y._f.onBlur && y._f.onBlur(d), c && c(0)) : y._f.onChange && y._f.onChange(d);
7096
+ const Ue = pe(_, O, te), mr = !Qe(Ue) || ve;
7097
+ if (!te && x.state.next({
7098
+ name: _,
7099
7099
  type: d.type,
7100
7100
  values: je(a)
7101
7101
  }), xe)
7102
- return (m.isValid || h.isValid) && (e.mode === "onBlur" ? te && I() : te || I()), mr && _.state.next({ name: x, ...ve ? {} : Ue });
7103
- if (!te && ve && _.state.next({ ...r }), e.resolver) {
7104
- const { errors: Qn } = await Q([x]);
7105
- if (g(O), p) {
7106
- const pn = Ci(r.errors, n, x), Kn = Ci(Qn, n, pn.name || x);
7107
- k = Kn.error, x = Kn.name, D = Qe(Qn);
7102
+ return (p.isValid || h.isValid) && (e.mode === "onBlur" ? te && I() : te || I()), mr && x.state.next({ name: _, ...ve ? {} : Ue });
7103
+ if (!te && ve && x.state.next({ ...r }), e.resolver) {
7104
+ const { errors: Qn } = await Q([_]);
7105
+ if (g(O), m) {
7106
+ const pn = Ci(r.errors, n, _), Kn = Ci(Qn, n, pn.name || _);
7107
+ k = Kn.error, _ = Kn.name, D = Qe(Qn);
7108
7108
  }
7109
7109
  } else
7110
- T([x], !0), k = (await Ei(y, o.disabled, a, w, e.shouldUseNativeValidation))[x], T([x]), g(O), p && (k ? D = !1 : (m.isValid || h.isValid) && (D = await fe(n, !0)));
7111
- p && (y._f.deps && de(y._f.deps), X(x, D, k, Ue));
7110
+ T([_], !0), k = (await Ei(y, o.disabled, a, w, e.shouldUseNativeValidation))[_], T([_]), g(O), m && (k ? D = !1 : (p.isValid || h.isValid) && (D = await fe(n, !0)));
7111
+ m && (y._f.deps && de(y._f.deps), X(_, D, k, Ue));
7112
7112
  }
7113
7113
  }, Ve = (d, b) => {
7114
- if (N(r.errors, b) && d.focus)
7114
+ if (V(r.errors, b) && d.focus)
7115
7115
  return d.focus(), 1;
7116
7116
  }, de = async (d, b = {}) => {
7117
- let x, p;
7117
+ let _, m;
7118
7118
  const y = xn(d);
7119
7119
  if (e.resolver) {
7120
7120
  const g = await ee(Te(d) ? d : y);
7121
- x = Qe(g), p = d ? !y.some((k) => N(g, k)) : x;
7122
- } else d ? (p = (await Promise.all(y.map(async (g) => {
7123
- const k = N(n, g);
7121
+ _ = Qe(g), m = d ? !y.some((k) => V(g, k)) : _;
7122
+ } else d ? (m = (await Promise.all(y.map(async (g) => {
7123
+ const k = V(n, g);
7124
7124
  return await fe(k && k._f ? { [g]: k } : k);
7125
- }))).every(Boolean), !(!p && !r.isValid) && I()) : p = x = await fe(n);
7126
- return _.state.next({
7127
- ...!Et(d) || (m.isValid || h.isValid) && x !== r.isValid ? {} : { name: d },
7128
- ...e.resolver || !d ? { isValid: x } : {},
7125
+ }))).every(Boolean), !(!m && !r.isValid) && I()) : m = _ = await fe(n);
7126
+ return x.state.next({
7127
+ ...!Et(d) || (p.isValid || h.isValid) && _ !== r.isValid ? {} : { name: d },
7128
+ ...e.resolver || !d ? { isValid: _ } : {},
7129
7129
  errors: r.errors
7130
- }), b.shouldFocus && !p && wn(n, Ve, d ? y : o.mount), p;
7130
+ }), b.shouldFocus && !m && wn(n, Ve, d ? y : o.mount), m;
7131
7131
  }, Ye = (d) => {
7132
7132
  const b = {
7133
7133
  ...i.mount ? a : s
7134
7134
  };
7135
- return Te(d) ? b : Et(d) ? N(b, d) : d.map((x) => N(b, x));
7135
+ return Te(d) ? b : Et(d) ? V(b, d) : d.map((_) => V(b, _));
7136
7136
  }, ut = (d, b) => ({
7137
- invalid: !!N((b || r).errors, d),
7138
- isDirty: !!N((b || r).dirtyFields, d),
7139
- error: N((b || r).errors, d),
7140
- isValidating: !!N(r.validatingFields, d),
7141
- isTouched: !!N((b || r).touchedFields, d)
7137
+ invalid: !!V((b || r).errors, d),
7138
+ isDirty: !!V((b || r).dirtyFields, d),
7139
+ error: V((b || r).errors, d),
7140
+ isValidating: !!V(r.validatingFields, d),
7141
+ isTouched: !!V((b || r).touchedFields, d)
7142
7142
  }), xt = (d) => {
7143
- d && xn(d).forEach((b) => Le(r.errors, b)), _.state.next({
7143
+ d && xn(d).forEach((b) => Le(r.errors, b)), x.state.next({
7144
7144
  errors: d ? r.errors : {}
7145
7145
  });
7146
- }, L = (d, b, x) => {
7147
- const p = (N(n, d, { _f: {} })._f || {}).ref, y = N(r.errors, d) || {}, { ref: g, message: k, type: D, ...O } = y;
7146
+ }, L = (d, b, _) => {
7147
+ const m = (V(n, d, { _f: {} })._f || {}).ref, y = V(r.errors, d) || {}, { ref: g, message: k, type: D, ...O } = y;
7148
7148
  me(r.errors, d, {
7149
7149
  ...O,
7150
7150
  ...b,
7151
- ref: p
7152
- }), _.state.next({
7151
+ ref: m
7152
+ }), x.state.next({
7153
7153
  name: d,
7154
7154
  errors: r.errors,
7155
7155
  isValid: !1
7156
- }), x && x.shouldFocus && p && p.focus && p.focus();
7157
- }, K = (d, b) => mt(d) ? _.state.subscribe({
7158
- next: (x) => d(R(void 0, b), x)
7159
- }) : R(d, b, !0), he = (d) => _.state.subscribe({
7156
+ }), _ && _.shouldFocus && m && m.focus && m.focus();
7157
+ }, K = (d, b) => mt(d) ? x.state.subscribe({
7158
+ next: (_) => d(R(void 0, b), _)
7159
+ }) : R(d, b, !0), he = (d) => x.state.subscribe({
7160
7160
  next: (b) => {
7161
- Gf(d.name, b.name, d.exact) && Wf(b, d.formState || m, pr, d.reRenderRoot) && d.callback({
7161
+ Gf(d.name, b.name, d.exact) && Wf(b, d.formState || p, pr, d.reRenderRoot) && d.callback({
7162
7162
  values: { ...a },
7163
7163
  ...r,
7164
7164
  ...b
@@ -7171,32 +7171,32 @@ function Jf(t = {}) {
7171
7171
  ...d,
7172
7172
  formState: h
7173
7173
  })), Re = (d, b = {}) => {
7174
- for (const x of d ? xn(d) : o.mount)
7175
- o.mount.delete(x), o.array.delete(x), b.keepValue || (Le(n, x), Le(a, x)), !b.keepError && Le(r.errors, x), !b.keepDirty && Le(r.dirtyFields, x), !b.keepTouched && Le(r.touchedFields, x), !b.keepIsValidating && Le(r.validatingFields, x), !e.shouldUnregister && !b.keepDefaultValue && Le(s, x);
7176
- _.state.next({
7174
+ for (const _ of d ? xn(d) : o.mount)
7175
+ o.mount.delete(_), o.array.delete(_), b.keepValue || (Le(n, _), Le(a, _)), !b.keepError && Le(r.errors, _), !b.keepDirty && Le(r.dirtyFields, _), !b.keepTouched && Le(r.touchedFields, _), !b.keepIsValidating && Le(r.validatingFields, _), !e.shouldUnregister && !b.keepDefaultValue && Le(s, _);
7176
+ x.state.next({
7177
7177
  values: je(a)
7178
- }), _.state.next({
7178
+ }), x.state.next({
7179
7179
  ...r,
7180
7180
  ...b.keepDirty ? { isDirty: P() } : {}
7181
7181
  }), !b.keepIsValid && I();
7182
7182
  }, tt = ({ disabled: d, name: b }) => {
7183
7183
  (st(d) && i.mount || d || o.disabled.has(b)) && (d ? o.disabled.add(b) : o.disabled.delete(b));
7184
7184
  }, rt = (d, b = {}) => {
7185
- let x = N(n, d);
7186
- const p = st(b.disabled) || st(e.disabled);
7185
+ let _ = V(n, d);
7186
+ const m = st(b.disabled) || st(e.disabled);
7187
7187
  return me(n, d, {
7188
- ...x || {},
7188
+ ..._ || {},
7189
7189
  _f: {
7190
- ...x && x._f ? x._f : { ref: { name: d } },
7190
+ ..._ && _._f ? _._f : { ref: { name: d } },
7191
7191
  name: d,
7192
7192
  mount: !0,
7193
7193
  ...b
7194
7194
  }
7195
- }), o.mount.add(d), x ? tt({
7195
+ }), o.mount.add(d), _ ? tt({
7196
7196
  disabled: st(b.disabled) ? b.disabled : e.disabled,
7197
7197
  name: d
7198
7198
  }) : G(d, !0, b.value), {
7199
- ...p ? { disabled: b.disabled || e.disabled } : {},
7199
+ ...m ? { disabled: b.disabled || e.disabled } : {},
7200
7200
  ...e.progressive ? {
7201
7201
  required: !!b.required,
7202
7202
  min: gn(b.min),
@@ -7210,39 +7210,39 @@ function Jf(t = {}) {
7210
7210
  onBlur: ke,
7211
7211
  ref: (y) => {
7212
7212
  if (y) {
7213
- rt(d, b), x = N(n, d);
7214
- const g = Te(y.value) && y.querySelectorAll && y.querySelectorAll("input,select,textarea")[0] || y, k = zf(g), D = x._f.refs || [];
7215
- if (k ? D.find((O) => O === g) : g === x._f.ref)
7213
+ rt(d, b), _ = V(n, d);
7214
+ const g = Te(y.value) && y.querySelectorAll && y.querySelectorAll("input,select,textarea")[0] || y, k = zf(g), D = _._f.refs || [];
7215
+ if (k ? D.find((O) => O === g) : g === _._f.ref)
7216
7216
  return;
7217
7217
  me(n, d, {
7218
7218
  _f: {
7219
- ...x._f,
7219
+ ..._._f,
7220
7220
  ...k ? {
7221
7221
  refs: [
7222
7222
  ...D.filter(Ys),
7223
7223
  g,
7224
- ...Array.isArray(N(s, d)) ? [{}] : []
7224
+ ...Array.isArray(V(s, d)) ? [{}] : []
7225
7225
  ],
7226
7226
  ref: { type: g.type, name: d }
7227
7227
  } : { ref: g }
7228
7228
  }
7229
7229
  }), G(d, !1, void 0, g);
7230
7230
  } else
7231
- x = N(n, d, {}), x._f && (x._f.mount = !1), (e.shouldUnregister || b.shouldUnregister) && !(Ro(o.array, d) && i.action) && o.unMount.add(d);
7231
+ _ = V(n, d, {}), _._f && (_._f.mount = !1), (e.shouldUnregister || b.shouldUnregister) && !(Ro(o.array, d) && i.action) && o.unMount.add(d);
7232
7232
  }
7233
7233
  };
7234
7234
  }, Fe = () => e.shouldFocusError && wn(n, Ve, o.mount), Ie = (d) => {
7235
- st(d) && (_.state.next({ disabled: d }), wn(n, (b, x) => {
7236
- const p = N(n, x);
7237
- p && (b.disabled = p._f.disabled || d, Array.isArray(p._f.refs) && p._f.refs.forEach((y) => {
7238
- y.disabled = p._f.disabled || d;
7235
+ st(d) && (x.state.next({ disabled: d }), wn(n, (b, _) => {
7236
+ const m = V(n, _);
7237
+ m && (b.disabled = m._f.disabled || d, Array.isArray(m._f.refs) && m._f.refs.forEach((y) => {
7238
+ y.disabled = m._f.disabled || d;
7239
7239
  }));
7240
7240
  }, 0, !1));
7241
- }, nt = (d, b) => async (x) => {
7242
- let p;
7243
- x && (x.preventDefault && x.preventDefault(), x.persist && x.persist());
7241
+ }, nt = (d, b) => async (_) => {
7242
+ let m;
7243
+ _ && (_.preventDefault && _.preventDefault(), _.persist && _.persist());
7244
7244
  let y = je(a);
7245
- if (_.state.next({
7245
+ if (x.state.next({
7246
7246
  isSubmitting: !0
7247
7247
  }), e.resolver) {
7248
7248
  const { errors: g, values: k } = await Q();
@@ -7253,40 +7253,40 @@ function Jf(t = {}) {
7253
7253
  for (const g of o.disabled)
7254
7254
  me(y, g, void 0);
7255
7255
  if (Le(r.errors, "root"), Qe(r.errors)) {
7256
- _.state.next({
7256
+ x.state.next({
7257
7257
  errors: {}
7258
7258
  });
7259
7259
  try {
7260
- await d(y, x);
7260
+ await d(y, _);
7261
7261
  } catch (g) {
7262
- p = g;
7262
+ m = g;
7263
7263
  }
7264
7264
  } else
7265
- b && await b({ ...r.errors }, x), Fe(), setTimeout(Fe);
7266
- if (_.state.next({
7265
+ b && await b({ ...r.errors }, _), Fe(), setTimeout(Fe);
7266
+ if (x.state.next({
7267
7267
  isSubmitted: !0,
7268
7268
  isSubmitting: !1,
7269
- isSubmitSuccessful: Qe(r.errors) && !p,
7269
+ isSubmitSuccessful: Qe(r.errors) && !m,
7270
7270
  submitCount: r.submitCount + 1,
7271
7271
  errors: r.errors
7272
- }), p)
7273
- throw p;
7272
+ }), m)
7273
+ throw m;
7274
7274
  }, hr = (d, b = {}) => {
7275
- N(n, d) && (Te(b.defaultValue) ? ce(d, je(N(s, d))) : (ce(d, b.defaultValue), me(s, d, je(b.defaultValue))), b.keepTouched || Le(r.touchedFields, d), b.keepDirty || (Le(r.dirtyFields, d), r.isDirty = b.defaultValue ? P(d, je(N(s, d))) : P()), b.keepError || (Le(r.errors, d), m.isValid && I()), _.state.next({ ...r }));
7275
+ V(n, d) && (Te(b.defaultValue) ? ce(d, je(V(s, d))) : (ce(d, b.defaultValue), me(s, d, je(b.defaultValue))), b.keepTouched || Le(r.touchedFields, d), b.keepDirty || (Le(r.dirtyFields, d), r.isDirty = b.defaultValue ? P(d, je(V(s, d))) : P()), b.keepError || (Le(r.errors, d), p.isValid && I()), x.state.next({ ...r }));
7276
7276
  }, wt = (d, b = {}) => {
7277
- const x = d ? je(d) : s, p = je(x), y = Qe(d), g = y ? s : p;
7278
- if (b.keepDefaultValues || (s = x), !b.keepValues) {
7277
+ const _ = d ? je(d) : s, m = je(_), y = Qe(d), g = y ? s : m;
7278
+ if (b.keepDefaultValues || (s = _), !b.keepValues) {
7279
7279
  if (b.keepDirtyValues) {
7280
7280
  const k = /* @__PURE__ */ new Set([
7281
7281
  ...o.mount,
7282
7282
  ...Object.keys(yn(s, a))
7283
7283
  ]);
7284
7284
  for (const D of Array.from(k))
7285
- N(r.dirtyFields, D) ? me(g, D, N(a, D)) : ce(D, N(g, D));
7285
+ V(r.dirtyFields, D) ? me(g, D, V(a, D)) : ce(D, V(g, D));
7286
7286
  } else {
7287
7287
  if (Va && Te(d))
7288
7288
  for (const k of o.mount) {
7289
- const D = N(n, k);
7289
+ const D = V(n, k);
7290
7290
  if (D && D._f) {
7291
7291
  const O = Array.isArray(D._f.refs) ? D._f.refs[0] : D._f.ref;
7292
7292
  if (Ss(O)) {
@@ -7299,11 +7299,11 @@ function Jf(t = {}) {
7299
7299
  }
7300
7300
  }
7301
7301
  for (const k of o.mount)
7302
- ce(k, N(g, k));
7302
+ ce(k, V(g, k));
7303
7303
  }
7304
- a = je(g), _.array.next({
7304
+ a = je(g), x.array.next({
7305
7305
  values: { ...g }
7306
- }), _.state.next({
7306
+ }), x.state.next({
7307
7307
  values: { ...g }
7308
7308
  });
7309
7309
  }
@@ -7315,7 +7315,7 @@ function Jf(t = {}) {
7315
7315
  watch: /* @__PURE__ */ new Set(),
7316
7316
  watchAll: !1,
7317
7317
  focus: ""
7318
- }, i.mount = !m.isValid || !!b.keepIsValid || !!b.keepDirtyValues, i.watch = !!e.shouldUnregister, _.state.next({
7318
+ }, i.mount = !p.isValid || !!b.keepIsValid || !!b.keepDirtyValues, i.watch = !!e.shouldUnregister, x.state.next({
7319
7319
  submitCount: b.keepSubmitCount ? r.submitCount : 0,
7320
7320
  isDirty: y ? !1 : b.keepDirty ? r.isDirty : !!(b.keepDefaultValues && !Yt(d, s)),
7321
7321
  isSubmitted: b.keepIsSubmitted ? r.isSubmitted : !1,
@@ -7326,9 +7326,9 @@ function Jf(t = {}) {
7326
7326
  isSubmitting: !1
7327
7327
  });
7328
7328
  }, Pe = (d, b) => wt(mt(d) ? d(a) : d, b), Gt = (d, b = {}) => {
7329
- const x = N(n, d), p = x && x._f;
7330
- if (p) {
7331
- const y = p.refs ? p.refs[0] : p.ref;
7329
+ const _ = V(n, d), m = _ && _._f;
7330
+ if (m) {
7331
+ const y = m.refs ? m.refs[0] : m.ref;
7332
7332
  y.focus && (y.focus(), b.shouldSelect && mt(y.select) && y.select());
7333
7333
  }
7334
7334
  }, pr = (d) => {
@@ -7348,20 +7348,20 @@ function Jf(t = {}) {
7348
7348
  _getWatch: R,
7349
7349
  _getDirty: P,
7350
7350
  _setValid: I,
7351
- _setFieldArray: V,
7351
+ _setFieldArray: M,
7352
7352
  _setDisabledField: tt,
7353
7353
  _setErrors: U,
7354
7354
  _getFieldArray: ne,
7355
7355
  _reset: wt,
7356
7356
  _resetDefaultValues: () => mt(e.defaultValues) && e.defaultValues().then((d) => {
7357
- Pe(d, e.resetOptions), _.state.next({
7357
+ Pe(d, e.resetOptions), x.state.next({
7358
7358
  isLoading: !1
7359
7359
  });
7360
7360
  }),
7361
7361
  _removeUnmounted: j,
7362
7362
  _disableForm: Ie,
7363
- _subjects: _,
7364
- _proxyFormState: m,
7363
+ _subjects: x,
7364
+ _proxyFormState: p,
7365
7365
  get _fields() {
7366
7366
  return n;
7367
7367
  },
@@ -7822,8 +7822,8 @@ function se(t) {
7822
7822
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
7823
7823
  return e ? { errorMap: e, description: s } : { errorMap: (i, o) => {
7824
7824
  var c, u;
7825
- const { message: m } = t;
7826
- return i.code === "invalid_enum_value" ? { message: m ?? o.defaultError } : typeof o.data > "u" ? { message: (c = m ?? n) !== null && c !== void 0 ? c : o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: (u = m ?? r) !== null && u !== void 0 ? u : o.defaultError };
7825
+ const { message: p } = t;
7826
+ return i.code === "invalid_enum_value" ? { message: p ?? o.defaultError } : typeof o.data > "u" ? { message: (c = p ?? n) !== null && c !== void 0 ? c : o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: (u = p ?? r) !== null && u !== void 0 ? u : o.defaultError };
7827
7827
  }, description: s };
7828
7828
  }
7829
7829
  class ie {
@@ -9094,20 +9094,20 @@ class we extends ie {
9094
9094
  i.includes(u) || o.push(u);
9095
9095
  const c = [];
9096
9096
  for (const u of i) {
9097
- const m = a[u], h = s.data[u];
9097
+ const p = a[u], h = s.data[u];
9098
9098
  c.push({
9099
9099
  key: { status: "valid", value: u },
9100
- value: m._parse(new Rt(s, h, s.path, u)),
9100
+ value: p._parse(new Rt(s, h, s.path, u)),
9101
9101
  alwaysSet: u in s.data
9102
9102
  });
9103
9103
  }
9104
9104
  if (this._def.catchall instanceof Ut) {
9105
9105
  const u = this._def.unknownKeys;
9106
9106
  if (u === "passthrough")
9107
- for (const m of o)
9107
+ for (const p of o)
9108
9108
  c.push({
9109
- key: { status: "valid", value: m },
9110
- value: { status: "valid", value: s.data[m] }
9109
+ key: { status: "valid", value: p },
9110
+ value: { status: "valid", value: s.data[p] }
9111
9111
  });
9112
9112
  else if (u === "strict")
9113
9113
  o.length > 0 && (F(s, {
@@ -9117,26 +9117,26 @@ class we extends ie {
9117
9117
  else if (u !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
9118
9118
  } else {
9119
9119
  const u = this._def.catchall;
9120
- for (const m of o) {
9121
- const h = s.data[m];
9120
+ for (const p of o) {
9121
+ const h = s.data[p];
9122
9122
  c.push({
9123
- key: { status: "valid", value: m },
9123
+ key: { status: "valid", value: p },
9124
9124
  value: u._parse(
9125
- new Rt(s, h, s.path, m)
9125
+ new Rt(s, h, s.path, p)
9126
9126
  //, ctx.child(key), value, getParsedType(value)
9127
9127
  ),
9128
- alwaysSet: m in s.data
9128
+ alwaysSet: p in s.data
9129
9129
  });
9130
9130
  }
9131
9131
  }
9132
9132
  return s.common.async ? Promise.resolve().then(async () => {
9133
9133
  const u = [];
9134
- for (const m of c) {
9135
- const h = await m.key, _ = await m.value;
9134
+ for (const p of c) {
9135
+ const h = await p.key, x = await p.value;
9136
9136
  u.push({
9137
9137
  key: h,
9138
- value: _,
9139
- alwaysSet: m.alwaysSet
9138
+ value: x,
9139
+ alwaysSet: p.alwaysSet
9140
9140
  });
9141
9141
  }
9142
9142
  return u;
@@ -9402,14 +9402,14 @@ class Rn extends ie {
9402
9402
  issues: []
9403
9403
  },
9404
9404
  parent: null
9405
- }, m = c._parseSync({
9405
+ }, p = c._parseSync({
9406
9406
  data: r.data,
9407
9407
  path: r.path,
9408
9408
  parent: u
9409
9409
  });
9410
- if (m.status === "valid")
9411
- return m;
9412
- m.status === "dirty" && !a && (a = { result: m, ctx: u }), u.common.issues.length && i.push(u.common.issues);
9410
+ if (p.status === "valid")
9411
+ return p;
9412
+ p.status === "dirty" && !a && (a = { result: p, ctx: u }), u.common.issues.length && i.push(u.common.issues);
9413
9413
  }
9414
9414
  if (a)
9415
9415
  return r.common.issues.push(...a.ctx.common.issues), a.result;
@@ -9670,20 +9670,20 @@ class Is extends ie {
9670
9670
  const o = /* @__PURE__ */ new Map();
9671
9671
  return Promise.resolve().then(async () => {
9672
9672
  for (const c of i) {
9673
- const u = await c.key, m = await c.value;
9674
- if (u.status === "aborted" || m.status === "aborted")
9673
+ const u = await c.key, p = await c.value;
9674
+ if (u.status === "aborted" || p.status === "aborted")
9675
9675
  return J;
9676
- (u.status === "dirty" || m.status === "dirty") && r.dirty(), o.set(u.value, m.value);
9676
+ (u.status === "dirty" || p.status === "dirty") && r.dirty(), o.set(u.value, p.value);
9677
9677
  }
9678
9678
  return { status: r.value, value: o };
9679
9679
  });
9680
9680
  } else {
9681
9681
  const o = /* @__PURE__ */ new Map();
9682
9682
  for (const c of i) {
9683
- const u = c.key, m = c.value;
9684
- if (u.status === "aborted" || m.status === "aborted")
9683
+ const u = c.key, p = c.value;
9684
+ if (u.status === "aborted" || p.status === "aborted")
9685
9685
  return J;
9686
- (u.status === "dirty" || m.status === "dirty") && r.dirty(), o.set(u.value, m.value);
9686
+ (u.status === "dirty" || p.status === "dirty") && r.dirty(), o.set(u.value, p.value);
9687
9687
  }
9688
9688
  return { status: r.value, value: o };
9689
9689
  }
@@ -9723,10 +9723,10 @@ class Lr extends ie {
9723
9723
  const a = this._def.valueType;
9724
9724
  function i(c) {
9725
9725
  const u = /* @__PURE__ */ new Set();
9726
- for (const m of c) {
9727
- if (m.status === "aborted")
9726
+ for (const p of c) {
9727
+ if (p.status === "aborted")
9728
9728
  return J;
9729
- m.status === "dirty" && r.dirty(), u.add(m.value);
9729
+ p.status === "dirty" && r.dirty(), u.add(p.value);
9730
9730
  }
9731
9731
  return { status: r.value, value: u };
9732
9732
  }
@@ -9807,9 +9807,9 @@ class Br extends ie {
9807
9807
  if (this._def.returns instanceof ln) {
9808
9808
  const o = this;
9809
9809
  return He(async function(...c) {
9810
- const u = new it([]), m = await o._def.args.parseAsync(c, a).catch((S) => {
9810
+ const u = new it([]), p = await o._def.args.parseAsync(c, a).catch((S) => {
9811
9811
  throw u.addIssue(n(c, S)), u;
9812
- }), h = await Reflect.apply(i, this, m);
9812
+ }), h = await Reflect.apply(i, this, p);
9813
9813
  return await o._def.returns._def.type.parseAsync(h, a).catch((S) => {
9814
9814
  throw u.addIssue(s(h, S)), u;
9815
9815
  });
@@ -9820,9 +9820,9 @@ class Br extends ie {
9820
9820
  const u = o._def.args.safeParse(c, a);
9821
9821
  if (!u.success)
9822
9822
  throw new it([n(c, u.error)]);
9823
- const m = Reflect.apply(i, this, u.data), h = o._def.returns.safeParse(m, a);
9823
+ const p = Reflect.apply(i, this, u.data), h = o._def.returns.safeParse(p, a);
9824
9824
  if (!h.success)
9825
- throw new it([s(m, h.error)]);
9825
+ throw new it([s(p, h.error)]);
9826
9826
  return h.data;
9827
9827
  });
9828
9828
  }
@@ -10292,10 +10292,10 @@ function Qo(t, e = {}, r) {
10292
10292
  const o = t(n);
10293
10293
  if (o instanceof Promise)
10294
10294
  return o.then((c) => {
10295
- var u, m;
10295
+ var u, p;
10296
10296
  if (!c) {
10297
- const h = Oi(e, n), _ = (m = (u = h.fatal) !== null && u !== void 0 ? u : r) !== null && m !== void 0 ? m : !0;
10298
- s.addIssue({ code: "custom", ...h, fatal: _ });
10297
+ const h = Oi(e, n), x = (p = (u = h.fatal) !== null && u !== void 0 ? u : r) !== null && p !== void 0 ? p : !0;
10298
+ s.addIssue({ code: "custom", ...h, fatal: x });
10299
10299
  }
10300
10300
  });
10301
10301
  if (!o) {
@@ -10448,7 +10448,7 @@ const lp = async (t, e) => (await cn.rloV2.queryMapRepresentationsByCaseNumber(
10448
10448
  queryFn: () => lp(t, r)
10449
10449
  }), Ii = (t, e, r) => {
10450
10450
  if (t && "reportValidity" in t) {
10451
- const n = N(r, e);
10451
+ const n = V(r, e);
10452
10452
  t.setCustomValidity(n && n.message || ""), t.reportValidity();
10453
10453
  }
10454
10454
  }, Jo = (t, e) => {
@@ -10460,9 +10460,9 @@ const lp = async (t, e) => (await cn.rloV2.queryMapRepresentationsByCaseNumber(
10460
10460
  e.shouldUseNativeValidation && Jo(t, e);
10461
10461
  const r = {};
10462
10462
  for (const n in t) {
10463
- const s = N(e.fields, n), a = Object.assign(t[n] || {}, { ref: s && s.ref });
10463
+ const s = V(e.fields, n), a = Object.assign(t[n] || {}, { ref: s && s.ref });
10464
10464
  if (dp(e.names || Object.keys(t), n)) {
10465
- const i = Object.assign({}, N(r, n));
10465
+ const i = Object.assign({}, V(r, n));
10466
10466
  me(i, "root", a), me(r, n, i);
10467
10467
  } else me(r, n, a);
10468
10468
  }
@@ -10475,8 +10475,8 @@ var fp = function(t, e) {
10475
10475
  var o = n.unionErrors[0].errors[0];
10476
10476
  r[i] = { message: o.message, type: o.code };
10477
10477
  } else r[i] = { message: a, type: s };
10478
- if ("unionErrors" in n && n.unionErrors.forEach(function(m) {
10479
- return m.errors.forEach(function(h) {
10478
+ if ("unionErrors" in n && n.unionErrors.forEach(function(p) {
10479
+ return p.errors.forEach(function(h) {
10480
10480
  return t.push(h);
10481
10481
  });
10482
10482
  }), e) {
@@ -10514,7 +10514,7 @@ const pp = async (t, e) => (await cn.rloV2.search3(t, e)).data.response || [], m
10514
10514
  queryKey: [qn.cases, t],
10515
10515
  queryFn: () => pp(t, r)
10516
10516
  }), yp = (t) => {
10517
- var _;
10517
+ var x;
10518
10518
  const [e, r] = Y(""), n = Na(e, 500), s = (S, E) => {
10519
10519
  r(E);
10520
10520
  }, a = fs(() => ({ size: 20 }), []), [i, o] = Y({
@@ -10538,7 +10538,7 @@ const pp = async (t, e) => (await cn.rloV2.search3(t, e)).data.response || [], m
10538
10538
  enabled: !t.disabledFetch,
10539
10539
  /* Cases can not have data from other contextuals used before */
10540
10540
  gcTime: 0
10541
- }), m = gp((_ = u.data) == null ? void 0 : _.content, n), h = () => {
10541
+ }), p = gp((x = u.data) == null ? void 0 : x.content, n), h = () => {
10542
10542
  var S;
10543
10543
  !((S = u.data) != null && S.last) && !u.isLoading && o((E) => ({
10544
10544
  ...E,
@@ -10546,7 +10546,7 @@ const pp = async (t, e) => (await cn.rloV2.search3(t, e)).data.response || [], m
10546
10546
  }));
10547
10547
  };
10548
10548
  return {
10549
- options: m,
10549
+ options: p,
10550
10550
  isLoading: u.isLoading,
10551
10551
  onGeneralSearchTextChange: s,
10552
10552
  onLastOptionInView: h
@@ -10668,17 +10668,17 @@ const xp = $e(_e)`
10668
10668
  selectedRoad: o,
10669
10669
  selectedNet: c,
10670
10670
  roads: u,
10671
- mileageStart: m,
10671
+ mileageStart: p,
10672
10672
  chainageValue: h,
10673
- mileageValue: _,
10673
+ mileageValue: x,
10674
10674
  chainageLength: S,
10675
10675
  nets: E,
10676
10676
  setNets: w,
10677
10677
  mileageEnd: C
10678
10678
  } = hn(), [I, T] = Y(
10679
10679
  h.toString()
10680
- ), [V, M] = Y(
10681
- _.toString()
10680
+ ), [M, N] = Y(
10681
+ x.toString()
10682
10682
  ), [U, G] = Y(!0), [pe, X] = Y(!0), Q = u.map((L) => ({
10683
10683
  value: L.id,
10684
10684
  label: `[${L.road_number}] ${L.road_name}`
@@ -10695,28 +10695,28 @@ const xp = $e(_e)`
10695
10695
  const {
10696
10696
  data: { response: K }
10697
10697
  } = await Sn.queryRoadNets(L.id), { nets: he, start_mileage: qe, end_mileage: Re } = K;
10698
- w(he), t(qe), e(Re), r(he[0]), n(he[0].length), s(0), T("0"), a(qe), M(qe.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10698
+ w(he), t(qe), e(Re), r(he[0]), n(he[0].length), s(0), T("0"), a(qe), N(qe.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10699
10699
  netId: he[0].id,
10700
10700
  roadId: L.id,
10701
10701
  chainage: 0
10702
10702
  });
10703
10703
  }
10704
10704
  }, R = async (L) => {
10705
- o && (r(L), s(0), T("0"), n(L.length), a(L.from_mileage), M(L.from_mileage.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10705
+ o && (r(L), s(0), T("0"), n(L.length), a(L.from_mileage), N(L.from_mileage.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10706
10706
  netId: L.id,
10707
10707
  roadId: o.id,
10708
10708
  chainage: 0
10709
10709
  }));
10710
10710
  }, ne = () => {
10711
- G(!0), h > 0 && (s(h - 1), T((h - 1).toString()), a(_ - 1), oe.mapEventEmitter.emit("movePointIcon", h - 1));
10711
+ G(!0), h > 0 && (s(h - 1), T((h - 1).toString()), a(x - 1), oe.mapEventEmitter.emit("movePointIcon", h - 1));
10712
10712
  }, W = () => {
10713
- G(!0), c && h < c.length && (s(h + 1), T((h + 1).toString()), a(_ + 1), oe.mapEventEmitter.emit("movePointIcon", h + 1));
10713
+ G(!0), c && h < c.length && (s(h + 1), T((h + 1).toString()), a(x + 1), oe.mapEventEmitter.emit("movePointIcon", h + 1));
10714
10714
  }, Se = (L) => {
10715
10715
  const K = parseInt(L, 10);
10716
10716
  if (c && o && ce(c, K)) {
10717
10717
  s(K), T(K.toString());
10718
10718
  const he = c.from_mileage + K;
10719
- a(he), M(he.toString()), oe.mapEventEmitter.emit("movePointIcon", K);
10719
+ a(he), N(he.toString()), oe.mapEventEmitter.emit("movePointIcon", K);
10720
10720
  }
10721
10721
  }, ce = (L, K) => {
10722
10722
  const he = K >= 0 && K <= L.length;
@@ -10729,7 +10729,7 @@ const xp = $e(_e)`
10729
10729
  );
10730
10730
  if (K) {
10731
10731
  const he = L - K.from_mileage;
10732
- r(K), n(K.length), a(L), s(he), M(L.toString()), T(he.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10732
+ r(K), n(K.length), a(L), s(he), N(L.toString()), T(he.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10733
10733
  netId: K.id,
10734
10734
  roadId: o.id,
10735
10735
  chainage: he
@@ -10737,7 +10737,7 @@ const xp = $e(_e)`
10737
10737
  }
10738
10738
  } else {
10739
10739
  const K = L - c.from_mileage;
10740
- a(L), s(K), M(L.toString()), T(K.toString()), oe.mapEventEmitter.emit("movePointIcon", K);
10740
+ a(L), s(K), N(L.toString()), T(K.toString()), oe.mapEventEmitter.emit("movePointIcon", K);
10741
10741
  }
10742
10742
  }, Ve = (L) => {
10743
10743
  if (!o) return !1;
@@ -10745,22 +10745,22 @@ const xp = $e(_e)`
10745
10745
  return X(K), K;
10746
10746
  }, de = () => {
10747
10747
  if (!o || !c) return;
10748
- const L = _ + 1;
10748
+ const L = x + 1;
10749
10749
  L <= o.end_mileage && ke(L);
10750
10750
  }, Ye = () => {
10751
10751
  if (!o || !c) return;
10752
- const L = _ - 1;
10752
+ const L = x - 1;
10753
10753
  L >= o.start_mileage && ke(L);
10754
10754
  }, ut = (L) => {
10755
10755
  const K = L ? Number(L) : 0;
10756
- Ve(K) && (M(K.toString()), ke(K));
10756
+ Ve(K) && (N(K.toString()), ke(K));
10757
10757
  }, xt = (L) => {
10758
10758
  const K = L ? Number(L) : 0;
10759
10759
  T(K.toString()), Se(K.toString());
10760
10760
  };
10761
10761
  return Oe(() => {
10762
- M(_.toString());
10763
- }, [_]), /* @__PURE__ */ re(at, { children: [
10762
+ N(x.toString());
10763
+ }, [x]), /* @__PURE__ */ re(at, { children: [
10764
10764
  /* @__PURE__ */ v(
10765
10765
  ms,
10766
10766
  {
@@ -10822,11 +10822,11 @@ const xp = $e(_e)`
10822
10822
  /* @__PURE__ */ v(
10823
10823
  ps,
10824
10824
  {
10825
- value: V,
10825
+ value: M,
10826
10826
  label: "Kilometraż",
10827
10827
  sx: { width: "100px" },
10828
10828
  type: "number",
10829
- onChange: (L) => M(L.target.value),
10829
+ onChange: (L) => N(L.target.value),
10830
10830
  onBlur: (L) => ut(L.target.value),
10831
10831
  errorMessage: pe ? "" : "Błędna wartość"
10832
10832
  }
@@ -10834,7 +10834,7 @@ const xp = $e(_e)`
10834
10834
  /* @__PURE__ */ v(va, { className: "pointer", color: "primary", onClick: de }),
10835
10835
  /* @__PURE__ */ re(be, { fontSize: 12, children: [
10836
10836
  "[",
10837
- m,
10837
+ p,
10838
10838
  " - ",
10839
10839
  C,
10840
10840
  "]"
@@ -10869,11 +10869,11 @@ const xp = $e(_e)`
10869
10869
  return;
10870
10870
  i(u[0]);
10871
10871
  const {
10872
- data: { response: m }
10873
- } = await Sn.queryRoadNets((w = u[0]) == null ? void 0 : w.id), { nets: h, start_mileage: _, end_mileage: S } = m;
10872
+ data: { response: p }
10873
+ } = await Sn.queryRoadNets((w = u[0]) == null ? void 0 : w.id), { nets: h, start_mileage: x, end_mileage: S } = p;
10874
10874
  o(h), i(
10875
- (I) => ({ ...I, start_mileage: _, end_mileage: S })
10876
- ), t(_), e(S), r(h[0]), n(h[0].length), s(0), a(_);
10875
+ (I) => ({ ...I, start_mileage: x, end_mileage: S })
10876
+ ), t(x), e(S), r(h[0]), n(h[0].length), s(0), a(x);
10877
10877
  const E = {
10878
10878
  netId: h[0].id,
10879
10879
  roadId: (C = u[0]) == null ? void 0 : C.id,
@@ -10904,9 +10904,9 @@ const xp = $e(_e)`
10904
10904
  setNets: o
10905
10905
  } = hn();
10906
10906
  return sn(
10907
- async (u, m) => {
10908
- if (m.length !== 0) {
10909
- const { net_id: h, road_id: _, position: S } = u, E = m.find((G) => G.id == _);
10907
+ async (u, p) => {
10908
+ if (p.length !== 0) {
10909
+ const { net_id: h, road_id: x, position: S } = u, E = p.find((G) => G.id == x);
10910
10910
  i(E);
10911
10911
  const {
10912
10912
  data: { response: w }
@@ -10916,11 +10916,11 @@ const xp = $e(_e)`
10916
10916
  start_mileage: I,
10917
10917
  end_mileage: T
10918
10918
  }));
10919
- const V = C.find((G) => G.id == h);
10920
- r(V);
10921
- const { from_mileage: M, length: U } = V;
10919
+ const M = C.find((G) => G.id == h);
10920
+ r(M);
10921
+ const { from_mileage: N, length: U } = M;
10922
10922
  t(I), e(T), n(U), s(S), a(
10923
- Number(I) + Number(M) + S
10923
+ Number(I) + Number(N) + S
10924
10924
  );
10925
10925
  }
10926
10926
  },
@@ -11168,19 +11168,19 @@ const Pp = Ta`
11168
11168
  snapConfig: i
11169
11169
  } = un(), [o, c] = Y(
11170
11170
  s.current
11171
- ), [u, m] = Y(
11171
+ ), [u, p] = Y(
11172
11172
  r.current
11173
- ), [h, _] = Y(
11173
+ ), [h, x] = Y(
11174
11174
  n.current
11175
11175
  ), [S, E] = Y(e.current), [w, C] = Y(
11176
11176
  a.current
11177
11177
  ), [I, T] = Y(
11178
11178
  t.current
11179
- ), [V, M] = Y(
11179
+ ), [M, N] = Y(
11180
11180
  i.current
11181
11181
  );
11182
11182
  Oe(() => (oe.snapEventEmitter.on("map:snap:deactivate", () => {
11183
- c(!1), m(!1), _(!1), E(!1), T(!1);
11183
+ c(!1), p(!1), x(!1), E(!1), T(!1);
11184
11184
  }), oe.snapEventEmitter.on("map:snap:angle:disable", () => {
11185
11185
  C(!0);
11186
11186
  }), oe.snapEventEmitter.on("map:snap:angle:enable", () => {
@@ -11188,8 +11188,8 @@ const Pp = Ta`
11188
11188
  }), () => {
11189
11189
  oe.snapEventEmitter.off("map:snap:angle:disable"), oe.snapEventEmitter.off("map:snap:angle:enable");
11190
11190
  }), []), Oe(() => {
11191
- oe.snapEventEmitter.emit("map:snap:update:config", V);
11192
- }, [V]), Oe(() => {
11191
+ oe.snapEventEmitter.emit("map:snap:update:config", M);
11192
+ }, [M]), Oe(() => {
11193
11193
  oe.snapEventEmitter.emit("map:snap:middle:toggle", {
11194
11194
  snapToMiddleOfLine: u
11195
11195
  });
@@ -11205,19 +11205,19 @@ const Pp = Ta`
11205
11205
  const U = () => {
11206
11206
  oe.snapEventEmitter.emit("map:snap:toggle"), c(!o);
11207
11207
  }, G = (j) => {
11208
- M({
11209
- ...V,
11210
- [j]: !V[j]
11208
+ N({
11209
+ ...M,
11210
+ [j]: !M[j]
11211
11211
  });
11212
11212
  }, pe = (j, P) => {
11213
- M({
11214
- ...V,
11213
+ N({
11214
+ ...M,
11215
11215
  [j]: P
11216
11216
  });
11217
11217
  }, X = () => {
11218
- m(!u);
11218
+ p(!u);
11219
11219
  }, Q = () => {
11220
- _(!h);
11220
+ x(!h);
11221
11221
  }, ee = () => {
11222
11222
  E(!S);
11223
11223
  }, fe = () => {
@@ -11240,7 +11240,7 @@ const Pp = Ta`
11240
11240
  Vt,
11241
11241
  {
11242
11242
  size: "medium",
11243
- color: gr(V.edge),
11243
+ color: gr(M.edge),
11244
11244
  onClick: () => G("edge"),
11245
11245
  children: /* @__PURE__ */ v(ba, {})
11246
11246
  }
@@ -11249,7 +11249,7 @@ const Pp = Ta`
11249
11249
  Vt,
11250
11250
  {
11251
11251
  size: "medium",
11252
- color: gr(V.vertex),
11252
+ color: gr(M.vertex),
11253
11253
  onClick: () => G("vertex"),
11254
11254
  children: /* @__PURE__ */ v(pf, {})
11255
11255
  }
@@ -11310,8 +11310,8 @@ const Pp = Ta`
11310
11310
  /* @__PURE__ */ v(
11311
11311
  zp,
11312
11312
  {
11313
- value: V.pixelTolerance,
11314
- defaultValue: V.pixelTolerance,
11313
+ value: M.pixelTolerance,
11314
+ defaultValue: M.pixelTolerance,
11315
11315
  onChange: (j, P) => pe("pixelTolerance", P),
11316
11316
  getAriaValueText: Li,
11317
11317
  valueLabelFormat: Li,
@@ -11320,99 +11320,107 @@ const Pp = Ta`
11320
11320
  )
11321
11321
  ] });
11322
11322
  }, Up = ({
11323
- caseObjectId: t,
11324
- mapButtonsConfig: e,
11325
- mapElementsConfig: r,
11326
- sidebarConfig: n,
11327
- initialSelectedFeatures: s,
11328
- multiSelectEnabled: a
11323
+ id: t,
11324
+ caseObjectId: e,
11325
+ mapButtonsConfig: r,
11326
+ mapElementsConfig: n,
11327
+ sidebarConfig: s,
11328
+ initialSelectedFeatures: a,
11329
+ multiSelectEnabled: i,
11330
+ initialDrawnGeometries: o
11329
11331
  }) => {
11330
- const { isMeasurementHidden: i, angleValue: o, isAngleHidden: c } = Aa(), { mapLayers: u, isDrawing: m, isEditing: h, selectedGeometry: _ } = Zn(), { distanceOverlayElement: S, angleOverlayElement: E, interactions: w } = un();
11332
+ const { isMeasurementHidden: c, angleValue: u, isAngleHidden: p } = Aa(), { mapLayers: h, isDrawing: x, isEditing: S, selectedGeometry: E } = Zn(), { distanceOverlayElement: w, angleOverlayElement: C, interactions: I } = un();
11331
11333
  Bl(
11332
- u,
11333
11334
  t,
11334
- s,
11335
- a
11335
+ h,
11336
+ e,
11337
+ a,
11338
+ i,
11339
+ o
11336
11340
  );
11337
- const C = ql(
11338
- _ == null ? void 0 : _.value,
11339
- u
11341
+ const T = ql(
11342
+ E == null ? void 0 : E.value,
11343
+ h
11340
11344
  );
11341
11345
  return /* @__PURE__ */ re(at, { children: [
11342
- n.sidebarVisible && /* @__PURE__ */ v(Dp, { sidebarConfig: n }),
11346
+ s.sidebarVisible && /* @__PURE__ */ v(Dp, { sidebarConfig: s }),
11343
11347
  /* @__PURE__ */ v(
11344
11348
  $t,
11345
11349
  {
11346
11350
  height: "100%",
11347
11351
  width: "100%",
11348
- ml: n.sidebarVisible ? "12px" : "0",
11352
+ ml: s.sidebarVisible ? "12px" : "0",
11349
11353
  children: /* @__PURE__ */ re(Wl, { children: [
11350
- /* @__PURE__ */ v(Gl, { id: "map" }),
11351
- e.mapButtonsVisible && /* @__PURE__ */ v(Ql, { mapButtonsConfig: e }),
11354
+ /* @__PURE__ */ v(Gl, { id: t || "map" }),
11355
+ r.mapButtonsVisible && /* @__PURE__ */ v(Ql, { mapButtonsConfig: r }),
11352
11356
  /* @__PURE__ */ v(
11353
11357
  Kl,
11354
11358
  {
11355
- ref: S,
11356
- hidden: i
11359
+ ref: w,
11360
+ hidden: c
11357
11361
  }
11358
11362
  ),
11359
11363
  /* @__PURE__ */ v(
11360
11364
  To,
11361
11365
  {
11362
- angle: o ?? 0,
11363
- ref: E,
11364
- hidden: c || typeof o != "number"
11366
+ angle: u ?? 0,
11367
+ ref: C,
11368
+ hidden: p || typeof u != "number"
11365
11369
  }
11366
11370
  ),
11367
11371
  /* @__PURE__ */ v($t, { children: /* @__PURE__ */ v(Cf, {}) }),
11368
- r.mapElementsVisible && /* @__PURE__ */ re(at, { children: [
11369
- C === "LineString" && r.items.drawCreator && /* @__PURE__ */ v(
11372
+ n.mapElementsVisible && /* @__PURE__ */ re(at, { children: [
11373
+ T === "LineString" && n.items.drawCreator && /* @__PURE__ */ v(
11370
11374
  hf,
11371
11375
  {
11372
- addDrawCreatorPoint: (I) => {
11376
+ addDrawCreatorPoint: (M) => {
11373
11377
  Hl({
11374
- ...I,
11375
- drawInteraction: w.current.draw
11378
+ ...M,
11379
+ drawInteraction: I.current.draw
11376
11380
  });
11377
11381
  },
11378
- onDrawEnd: () => w.current.draw.finishDrawing()
11382
+ onDrawEnd: () => I.current.draw.finishDrawing()
11379
11383
  }
11380
11384
  ),
11381
- (m || h) && r.items.snapBar && /* @__PURE__ */ v($p, {})
11385
+ (x || S) && n.items.snapBar && /* @__PURE__ */ v($p, {})
11382
11386
  ] })
11383
11387
  ] })
11384
11388
  }
11385
11389
  )
11386
11390
  ] });
11387
11391
  }, Qp = ({
11388
- mapLayers: t,
11389
- caseObjectId: e,
11390
- sidebarConfig: r,
11391
- mapButtonsConfig: n,
11392
- mapElementsConfig: s,
11393
- setOuterDrawnGeometries: a,
11394
- setOuterSelectedMapObjects: i,
11395
- selectedFeatures: o,
11396
- multiSelectEnabled: c
11392
+ id: t = "map",
11393
+ mapLayers: e,
11394
+ caseObjectId: r,
11395
+ sidebarConfig: n,
11396
+ mapButtonsConfig: s,
11397
+ mapElementsConfig: a,
11398
+ setOuterDrawnGeometries: i,
11399
+ setOuterSelectedMapObjects: o,
11400
+ selectedFeatures: c,
11401
+ multiSelectEnabled: u,
11402
+ initialDrawnGeometries: p
11397
11403
  }) => {
11398
11404
  jl();
11399
- const { initialized: u } = un();
11400
- return /* @__PURE__ */ v(at, { children: u ? /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v($l, { children: /* @__PURE__ */ v(Ul, { children: /* @__PURE__ */ v(
11405
+ const { initialized: h } = un();
11406
+ return /* @__PURE__ */ v(at, { children: h ? /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v($l, { children: /* @__PURE__ */ v(Ul, { children: /* @__PURE__ */ v(
11401
11407
  Nd,
11402
11408
  {
11403
- mapLayers: Zl(t),
11404
- caseObjectId: e || -1,
11405
- setOuterDrawnGeometries: a,
11406
- setOuterSelectedMapObjects: i,
11409
+ mapLayers: Zl(e),
11410
+ caseObjectId: r || -1,
11411
+ setOuterDrawnGeometries: i,
11412
+ setOuterSelectedMapObjects: o,
11407
11413
  children: /* @__PURE__ */ v(Of, { children: /* @__PURE__ */ v(
11408
11414
  Up,
11409
11415
  {
11410
- sidebarConfig: r,
11411
- mapButtonsConfig: n,
11412
- mapElementsConfig: s,
11413
- caseObjectId: e || -1,
11414
- multiSelectEnabled: c,
11415
- initialSelectedFeatures: o
11416
+ id: t,
11417
+ sidebarConfig: n,
11418
+ mapButtonsConfig: s,
11419
+ mapElementsConfig: a,
11420
+ caseObjectId: r || -1,
11421
+ multiSelectEnabled: u,
11422
+ initialSelectedFeatures: c,
11423
+ initialDrawnGeometries: p
11416
11424
  }
11417
11425
  ) })
11418
11426
  }