@tmf_ciclica/ciclicastorybook 1.2.138 → 1.2.139

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/index.es.js CHANGED
@@ -49,28 +49,28 @@ var uo;
49
49
  function ba() {
50
50
  if (uo) return fe;
51
51
  uo = 1;
52
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
53
- function $(C) {
54
- if (typeof C == "object" && C !== null) {
55
- var w = C.$$typeof;
52
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
53
+ function $(_) {
54
+ if (typeof _ == "object" && _ !== null) {
55
+ var w = _.$$typeof;
56
56
  switch (w) {
57
57
  case t:
58
- switch (C = C.type, C) {
58
+ switch (_ = _.type, _) {
59
59
  case c:
60
60
  case d:
61
61
  case r:
62
62
  case s:
63
63
  case o:
64
64
  case g:
65
- return C;
65
+ return _;
66
66
  default:
67
- switch (C = C && C.$$typeof, C) {
67
+ switch (_ = _ && _.$$typeof, _) {
68
68
  case l:
69
69
  case h:
70
- case y:
70
+ case b:
71
71
  case p:
72
72
  case a:
73
- return C;
73
+ return _;
74
74
  default:
75
75
  return w;
76
76
  }
@@ -80,35 +80,35 @@ function ba() {
80
80
  }
81
81
  }
82
82
  }
83
- function v(C) {
84
- return $(C) === d;
83
+ function v(_) {
84
+ return $(_) === d;
85
85
  }
86
- return fe.AsyncMode = c, fe.ConcurrentMode = d, fe.ContextConsumer = l, fe.ContextProvider = a, fe.Element = t, fe.ForwardRef = h, fe.Fragment = r, fe.Lazy = y, fe.Memo = p, fe.Portal = n, fe.Profiler = s, fe.StrictMode = o, fe.Suspense = g, fe.isAsyncMode = function(C) {
87
- return v(C) || $(C) === c;
88
- }, fe.isConcurrentMode = v, fe.isContextConsumer = function(C) {
89
- return $(C) === l;
90
- }, fe.isContextProvider = function(C) {
91
- return $(C) === a;
92
- }, fe.isElement = function(C) {
93
- return typeof C == "object" && C !== null && C.$$typeof === t;
94
- }, fe.isForwardRef = function(C) {
95
- return $(C) === h;
96
- }, fe.isFragment = function(C) {
97
- return $(C) === r;
98
- }, fe.isLazy = function(C) {
99
- return $(C) === y;
100
- }, fe.isMemo = function(C) {
101
- return $(C) === p;
102
- }, fe.isPortal = function(C) {
103
- return $(C) === n;
104
- }, fe.isProfiler = function(C) {
105
- return $(C) === s;
106
- }, fe.isStrictMode = function(C) {
107
- return $(C) === o;
108
- }, fe.isSuspense = function(C) {
109
- return $(C) === g;
110
- }, fe.isValidElementType = function(C) {
111
- return typeof C == "string" || typeof C == "function" || C === r || C === d || C === s || C === o || C === g || C === b || typeof C == "object" && C !== null && (C.$$typeof === y || C.$$typeof === p || C.$$typeof === a || C.$$typeof === l || C.$$typeof === h || C.$$typeof === _ || C.$$typeof === x || C.$$typeof === k || C.$$typeof === f);
86
+ return fe.AsyncMode = c, fe.ConcurrentMode = d, fe.ContextConsumer = l, fe.ContextProvider = a, fe.Element = t, fe.ForwardRef = h, fe.Fragment = r, fe.Lazy = b, fe.Memo = p, fe.Portal = n, fe.Profiler = s, fe.StrictMode = o, fe.Suspense = g, fe.isAsyncMode = function(_) {
87
+ return v(_) || $(_) === c;
88
+ }, fe.isConcurrentMode = v, fe.isContextConsumer = function(_) {
89
+ return $(_) === l;
90
+ }, fe.isContextProvider = function(_) {
91
+ return $(_) === a;
92
+ }, fe.isElement = function(_) {
93
+ return typeof _ == "object" && _ !== null && _.$$typeof === t;
94
+ }, fe.isForwardRef = function(_) {
95
+ return $(_) === h;
96
+ }, fe.isFragment = function(_) {
97
+ return $(_) === r;
98
+ }, fe.isLazy = function(_) {
99
+ return $(_) === b;
100
+ }, fe.isMemo = function(_) {
101
+ return $(_) === p;
102
+ }, fe.isPortal = function(_) {
103
+ return $(_) === n;
104
+ }, fe.isProfiler = function(_) {
105
+ return $(_) === s;
106
+ }, fe.isStrictMode = function(_) {
107
+ return $(_) === o;
108
+ }, fe.isSuspense = function(_) {
109
+ return $(_) === g;
110
+ }, fe.isValidElementType = function(_) {
111
+ return typeof _ == "string" || typeof _ == "function" || _ === r || _ === d || _ === s || _ === o || _ === g || _ === y || typeof _ == "object" && _ !== null && (_.$$typeof === b || _.$$typeof === p || _.$$typeof === a || _.$$typeof === l || _.$$typeof === h || _.$$typeof === C || _.$$typeof === x || _.$$typeof === k || _.$$typeof === f);
112
112
  }, fe.typeOf = $, fe;
113
113
  }
114
114
  var pe = {};
@@ -123,10 +123,10 @@ var pe = {};
123
123
  var fo;
124
124
  function va() {
125
125
  return fo || (fo = 1, process.env.NODE_ENV !== "production" && function() {
126
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
126
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
127
127
  function $(I) {
128
128
  return typeof I == "string" || typeof I == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
129
- I === r || I === d || I === s || I === o || I === g || I === b || typeof I == "object" && I !== null && (I.$$typeof === y || I.$$typeof === p || I.$$typeof === a || I.$$typeof === l || I.$$typeof === h || I.$$typeof === _ || I.$$typeof === x || I.$$typeof === k || I.$$typeof === f);
129
+ I === r || I === d || I === s || I === o || I === g || I === y || typeof I == "object" && I !== null && (I.$$typeof === b || I.$$typeof === p || I.$$typeof === a || I.$$typeof === l || I.$$typeof === h || I.$$typeof === C || I.$$typeof === x || I.$$typeof === k || I.$$typeof === f);
130
130
  }
131
131
  function v(I) {
132
132
  if (typeof I == "object" && I !== null) {
@@ -147,7 +147,7 @@ function va() {
147
147
  switch (tt) {
148
148
  case l:
149
149
  case h:
150
- case y:
150
+ case b:
151
151
  case p:
152
152
  case a:
153
153
  return tt;
@@ -160,7 +160,7 @@ function va() {
160
160
  }
161
161
  }
162
162
  }
163
- var C = c, w = d, N = l, L = a, E = t, B = h, V = r, m = y, O = p, T = n, z = s, j = o, Y = g, W = !1;
163
+ var _ = c, w = d, N = l, L = a, E = t, F = h, P = r, m = b, O = p, T = n, z = s, j = o, Y = g, W = !1;
164
164
  function ue(I) {
165
165
  return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), D(I) || v(I) === c;
166
166
  }
@@ -176,14 +176,14 @@ function va() {
176
176
  function K(I) {
177
177
  return typeof I == "object" && I !== null && I.$$typeof === t;
178
178
  }
179
- function P(I) {
179
+ function V(I) {
180
180
  return v(I) === h;
181
181
  }
182
182
  function Z(I) {
183
183
  return v(I) === r;
184
184
  }
185
185
  function ne(I) {
186
- return v(I) === y;
186
+ return v(I) === b;
187
187
  }
188
188
  function G(I) {
189
189
  return v(I) === p;
@@ -200,7 +200,7 @@ function va() {
200
200
  function de(I) {
201
201
  return v(I) === g;
202
202
  }
203
- pe.AsyncMode = C, pe.ConcurrentMode = w, pe.ContextConsumer = N, pe.ContextProvider = L, pe.Element = E, pe.ForwardRef = B, pe.Fragment = V, pe.Lazy = m, pe.Memo = O, pe.Portal = T, pe.Profiler = z, pe.StrictMode = j, pe.Suspense = Y, pe.isAsyncMode = ue, pe.isConcurrentMode = D, pe.isContextConsumer = M, pe.isContextProvider = ee, pe.isElement = K, pe.isForwardRef = P, pe.isFragment = Z, pe.isLazy = ne, pe.isMemo = G, pe.isPortal = U, pe.isProfiler = oe, pe.isStrictMode = te, pe.isSuspense = de, pe.isValidElementType = $, pe.typeOf = v;
203
+ pe.AsyncMode = _, pe.ConcurrentMode = w, pe.ContextConsumer = N, pe.ContextProvider = L, pe.Element = E, pe.ForwardRef = F, pe.Fragment = P, pe.Lazy = m, pe.Memo = O, pe.Portal = T, pe.Profiler = z, pe.StrictMode = j, pe.Suspense = Y, pe.isAsyncMode = ue, pe.isConcurrentMode = D, pe.isContextConsumer = M, pe.isContextProvider = ee, pe.isElement = K, pe.isForwardRef = V, pe.isFragment = Z, pe.isLazy = ne, pe.isMemo = G, pe.isPortal = U, pe.isProfiler = oe, pe.isStrictMode = te, pe.isSuspense = de, pe.isValidElementType = $, pe.typeOf = v;
204
204
  }()), pe;
205
205
  }
206
206
  var po;
@@ -251,8 +251,8 @@ function Ca() {
251
251
  t.call(l, g) && (c[g] = l[g]);
252
252
  if (e) {
253
253
  d = e(l);
254
- for (var b = 0; b < d.length; b++)
255
- n.call(l, d[b]) && (c[d[b]] = l[d[b]]);
254
+ for (var y = 0; y < d.length; y++)
255
+ n.call(l, d[y]) && (c[d[y]] = l[d[y]]);
256
256
  }
257
257
  }
258
258
  return c;
@@ -293,14 +293,14 @@ function _a() {
293
293
  var g;
294
294
  try {
295
295
  if (typeof s[h] != "function") {
296
- var b = Error(
296
+ var y = Error(
297
297
  (c || "React class") + ": " + l + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
298
298
  );
299
- throw b.name = "Invariant Violation", b;
299
+ throw y.name = "Invariant Violation", y;
300
300
  }
301
301
  g = s[h](a, h, c, l, null, t);
302
- } catch (y) {
303
- g = y;
302
+ } catch (b) {
303
+ g = b;
304
304
  }
305
305
  if (g && !(g instanceof Error) && e(
306
306
  (c || "React class") + ": type specification of " + l + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
@@ -342,7 +342,7 @@ function xa() {
342
342
  if (typeof M == "function")
343
343
  return M;
344
344
  }
345
- var b = "<<anonymous>>", p = {
345
+ var y = "<<anonymous>>", p = {
346
346
  array: x("array"),
347
347
  bigint: x("bigint"),
348
348
  bool: x("boolean"),
@@ -354,27 +354,27 @@ function xa() {
354
354
  any: k(),
355
355
  arrayOf: $,
356
356
  element: v(),
357
- elementType: C(),
357
+ elementType: _(),
358
358
  instanceOf: w,
359
- node: B(),
359
+ node: F(),
360
360
  objectOf: L,
361
361
  oneOf: N,
362
362
  oneOfType: E,
363
363
  shape: m,
364
364
  exact: O
365
365
  };
366
- function y(D, M) {
366
+ function b(D, M) {
367
367
  return D === M ? D !== 0 || 1 / D === 1 / M : D !== D && M !== M;
368
368
  }
369
369
  function f(D, M) {
370
370
  this.message = D, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
371
371
  }
372
372
  f.prototype = Error.prototype;
373
- function _(D) {
373
+ function C(D) {
374
374
  if (process.env.NODE_ENV !== "production")
375
375
  var M = {}, ee = 0;
376
376
  function K(Z, ne, G, U, oe, te, de) {
377
- if (U = U || b, te = te || G, de !== n) {
377
+ if (U = U || y, te = te || G, de !== n) {
378
378
  if (c) {
379
379
  var I = new Error(
380
380
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -390,109 +390,109 @@ function xa() {
390
390
  }
391
391
  return ne[G] == null ? Z ? ne[G] === null ? new f("The " + oe + " `" + te + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new f("The " + oe + " `" + te + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : D(ne, G, U, oe, te);
392
392
  }
393
- var P = K.bind(null, !1);
394
- return P.isRequired = K.bind(null, !0), P;
393
+ var V = K.bind(null, !1);
394
+ return V.isRequired = K.bind(null, !0), V;
395
395
  }
396
396
  function x(D) {
397
- function M(ee, K, P, Z, ne, G) {
397
+ function M(ee, K, V, Z, ne, G) {
398
398
  var U = ee[K], oe = j(U);
399
399
  if (oe !== D) {
400
400
  var te = Y(U);
401
401
  return new f(
402
- "Invalid " + Z + " `" + ne + "` of type " + ("`" + te + "` supplied to `" + P + "`, expected ") + ("`" + D + "`."),
402
+ "Invalid " + Z + " `" + ne + "` of type " + ("`" + te + "` supplied to `" + V + "`, expected ") + ("`" + D + "`."),
403
403
  { expectedType: D }
404
404
  );
405
405
  }
406
406
  return null;
407
407
  }
408
- return _(M);
408
+ return C(M);
409
409
  }
410
410
  function k() {
411
- return _(a);
411
+ return C(a);
412
412
  }
413
413
  function $(D) {
414
- function M(ee, K, P, Z, ne) {
414
+ function M(ee, K, V, Z, ne) {
415
415
  if (typeof D != "function")
416
- return new f("Property `" + ne + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
416
+ return new f("Property `" + ne + "` of component `" + V + "` has invalid PropType notation inside arrayOf.");
417
417
  var G = ee[K];
418
418
  if (!Array.isArray(G)) {
419
419
  var U = j(G);
420
- return new f("Invalid " + Z + " `" + ne + "` of type " + ("`" + U + "` supplied to `" + P + "`, expected an array."));
420
+ return new f("Invalid " + Z + " `" + ne + "` of type " + ("`" + U + "` supplied to `" + V + "`, expected an array."));
421
421
  }
422
422
  for (var oe = 0; oe < G.length; oe++) {
423
- var te = D(G, oe, P, Z, ne + "[" + oe + "]", n);
423
+ var te = D(G, oe, V, Z, ne + "[" + oe + "]", n);
424
424
  if (te instanceof Error)
425
425
  return te;
426
426
  }
427
427
  return null;
428
428
  }
429
- return _(M);
429
+ return C(M);
430
430
  }
431
431
  function v() {
432
- function D(M, ee, K, P, Z) {
432
+ function D(M, ee, K, V, Z) {
433
433
  var ne = M[ee];
434
434
  if (!l(ne)) {
435
435
  var G = j(ne);
436
- return new f("Invalid " + P + " `" + Z + "` of type " + ("`" + G + "` supplied to `" + K + "`, expected a single ReactElement."));
436
+ return new f("Invalid " + V + " `" + Z + "` of type " + ("`" + G + "` supplied to `" + K + "`, expected a single ReactElement."));
437
437
  }
438
438
  return null;
439
439
  }
440
- return _(D);
440
+ return C(D);
441
441
  }
442
- function C() {
443
- function D(M, ee, K, P, Z) {
442
+ function _() {
443
+ function D(M, ee, K, V, Z) {
444
444
  var ne = M[ee];
445
445
  if (!e.isValidElementType(ne)) {
446
446
  var G = j(ne);
447
- return new f("Invalid " + P + " `" + Z + "` of type " + ("`" + G + "` supplied to `" + K + "`, expected a single ReactElement type."));
447
+ return new f("Invalid " + V + " `" + Z + "` of type " + ("`" + G + "` supplied to `" + K + "`, expected a single ReactElement type."));
448
448
  }
449
449
  return null;
450
450
  }
451
- return _(D);
451
+ return C(D);
452
452
  }
453
453
  function w(D) {
454
- function M(ee, K, P, Z, ne) {
454
+ function M(ee, K, V, Z, ne) {
455
455
  if (!(ee[K] instanceof D)) {
456
- var G = D.name || b, U = ue(ee[K]);
457
- return new f("Invalid " + Z + " `" + ne + "` of type " + ("`" + U + "` supplied to `" + P + "`, expected ") + ("instance of `" + G + "`."));
456
+ var G = D.name || y, U = ue(ee[K]);
457
+ return new f("Invalid " + Z + " `" + ne + "` of type " + ("`" + U + "` supplied to `" + V + "`, expected ") + ("instance of `" + G + "`."));
458
458
  }
459
459
  return null;
460
460
  }
461
- return _(M);
461
+ return C(M);
462
462
  }
463
463
  function N(D) {
464
464
  if (!Array.isArray(D))
465
465
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
466
466
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
467
467
  ) : s("Invalid argument supplied to oneOf, expected an array.")), a;
468
- function M(ee, K, P, Z, ne) {
468
+ function M(ee, K, V, Z, ne) {
469
469
  for (var G = ee[K], U = 0; U < D.length; U++)
470
- if (y(G, D[U]))
470
+ if (b(G, D[U]))
471
471
  return null;
472
472
  var oe = JSON.stringify(D, function(de, I) {
473
473
  var se = Y(I);
474
474
  return se === "symbol" ? String(I) : I;
475
475
  });
476
- return new f("Invalid " + Z + " `" + ne + "` of value `" + String(G) + "` " + ("supplied to `" + P + "`, expected one of " + oe + "."));
476
+ return new f("Invalid " + Z + " `" + ne + "` of value `" + String(G) + "` " + ("supplied to `" + V + "`, expected one of " + oe + "."));
477
477
  }
478
- return _(M);
478
+ return C(M);
479
479
  }
480
480
  function L(D) {
481
- function M(ee, K, P, Z, ne) {
481
+ function M(ee, K, V, Z, ne) {
482
482
  if (typeof D != "function")
483
- return new f("Property `" + ne + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
483
+ return new f("Property `" + ne + "` of component `" + V + "` has invalid PropType notation inside objectOf.");
484
484
  var G = ee[K], U = j(G);
485
485
  if (U !== "object")
486
- return new f("Invalid " + Z + " `" + ne + "` of type " + ("`" + U + "` supplied to `" + P + "`, expected an object."));
486
+ return new f("Invalid " + Z + " `" + ne + "` of type " + ("`" + U + "` supplied to `" + V + "`, expected an object."));
487
487
  for (var oe in G)
488
488
  if (r(G, oe)) {
489
- var te = D(G, oe, P, Z, ne + "." + oe, n);
489
+ var te = D(G, oe, V, Z, ne + "." + oe, n);
490
490
  if (te instanceof Error)
491
491
  return te;
492
492
  }
493
493
  return null;
494
494
  }
495
- return _(M);
495
+ return C(M);
496
496
  }
497
497
  function E(D) {
498
498
  if (!Array.isArray(D))
@@ -504,9 +504,9 @@ function xa() {
504
504
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(ee) + " at index " + M + "."
505
505
  ), a;
506
506
  }
507
- function K(P, Z, ne, G, U) {
507
+ function K(V, Z, ne, G, U) {
508
508
  for (var oe = [], te = 0; te < D.length; te++) {
509
- var de = D[te], I = de(P, Z, ne, G, U, n);
509
+ var de = D[te], I = de(V, Z, ne, G, U, n);
510
510
  if (I == null)
511
511
  return null;
512
512
  I.data && r(I.data, "expectedType") && oe.push(I.data.expectedType);
@@ -514,58 +514,58 @@ function xa() {
514
514
  var se = oe.length > 0 ? ", expected one of type [" + oe.join(", ") + "]" : "";
515
515
  return new f("Invalid " + G + " `" + U + "` supplied to " + ("`" + ne + "`" + se + "."));
516
516
  }
517
- return _(K);
517
+ return C(K);
518
518
  }
519
- function B() {
520
- function D(M, ee, K, P, Z) {
521
- return T(M[ee]) ? null : new f("Invalid " + P + " `" + Z + "` supplied to " + ("`" + K + "`, expected a ReactNode."));
519
+ function F() {
520
+ function D(M, ee, K, V, Z) {
521
+ return T(M[ee]) ? null : new f("Invalid " + V + " `" + Z + "` supplied to " + ("`" + K + "`, expected a ReactNode."));
522
522
  }
523
- return _(D);
523
+ return C(D);
524
524
  }
525
- function V(D, M, ee, K, P) {
525
+ function P(D, M, ee, K, V) {
526
526
  return new f(
527
- (D || "React class") + ": " + M + " type `" + ee + "." + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
527
+ (D || "React class") + ": " + M + " type `" + ee + "." + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + V + "`."
528
528
  );
529
529
  }
530
530
  function m(D) {
531
- function M(ee, K, P, Z, ne) {
531
+ function M(ee, K, V, Z, ne) {
532
532
  var G = ee[K], U = j(G);
533
533
  if (U !== "object")
534
- return new f("Invalid " + Z + " `" + ne + "` of type `" + U + "` " + ("supplied to `" + P + "`, expected `object`."));
534
+ return new f("Invalid " + Z + " `" + ne + "` of type `" + U + "` " + ("supplied to `" + V + "`, expected `object`."));
535
535
  for (var oe in D) {
536
536
  var te = D[oe];
537
537
  if (typeof te != "function")
538
- return V(P, Z, ne, oe, Y(te));
539
- var de = te(G, oe, P, Z, ne + "." + oe, n);
538
+ return P(V, Z, ne, oe, Y(te));
539
+ var de = te(G, oe, V, Z, ne + "." + oe, n);
540
540
  if (de)
541
541
  return de;
542
542
  }
543
543
  return null;
544
544
  }
545
- return _(M);
545
+ return C(M);
546
546
  }
547
547
  function O(D) {
548
- function M(ee, K, P, Z, ne) {
548
+ function M(ee, K, V, Z, ne) {
549
549
  var G = ee[K], U = j(G);
550
550
  if (U !== "object")
551
- return new f("Invalid " + Z + " `" + ne + "` of type `" + U + "` " + ("supplied to `" + P + "`, expected `object`."));
551
+ return new f("Invalid " + Z + " `" + ne + "` of type `" + U + "` " + ("supplied to `" + V + "`, expected `object`."));
552
552
  var oe = t({}, ee[K], D);
553
553
  for (var te in oe) {
554
554
  var de = D[te];
555
555
  if (r(D, te) && typeof de != "function")
556
- return V(P, Z, ne, te, Y(de));
556
+ return P(V, Z, ne, te, Y(de));
557
557
  if (!de)
558
558
  return new f(
559
- "Invalid " + Z + " `" + ne + "` key `" + te + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(ee[K], null, " ") + `
559
+ "Invalid " + Z + " `" + ne + "` key `" + te + "` supplied to `" + V + "`.\nBad object: " + JSON.stringify(ee[K], null, " ") + `
560
560
  Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
561
561
  );
562
- var I = de(G, te, P, Z, ne + "." + te, n);
562
+ var I = de(G, te, V, Z, ne + "." + te, n);
563
563
  if (I)
564
564
  return I;
565
565
  }
566
566
  return null;
567
567
  }
568
- return _(M);
568
+ return C(M);
569
569
  }
570
570
  function T(D) {
571
571
  switch (typeof D) {
@@ -589,8 +589,8 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
589
589
  return !1;
590
590
  } else
591
591
  for (; !(K = ee.next()).done; ) {
592
- var P = K.value;
593
- if (P && !T(P[1]))
592
+ var V = K.value;
593
+ if (V && !T(V[1]))
594
594
  return !1;
595
595
  }
596
596
  } else
@@ -634,7 +634,7 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
634
634
  }
635
635
  }
636
636
  function ue(D) {
637
- return !D.constructor || !D.constructor.name ? b : D.constructor.name;
637
+ return !D.constructor || !D.constructor.name ? y : D.constructor.name;
638
638
  }
639
639
  return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
640
640
  }, _r;
@@ -651,10 +651,10 @@ function wa() {
651
651
  return n.resetWarningCache = t, xr = function() {
652
652
  function r(a, l, c, d, h, g) {
653
653
  if (g !== e) {
654
- var b = new Error(
654
+ var y = new Error(
655
655
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
656
656
  );
657
- throw b.name = "Invariant Violation", b;
657
+ throw y.name = "Invariant Violation", y;
658
658
  }
659
659
  }
660
660
  r.isRequired = r;
@@ -709,7 +709,7 @@ const i = /* @__PURE__ */ ya(ka), ji = ({
709
709
  fontColor: l,
710
710
  moreInfo: c
711
711
  }) => {
712
- const { name: d, created_at: h, id: g, isBeingProcessed: b } = e;
712
+ const { name: d, created_at: h, id: g, isBeingProcessed: y } = e;
713
713
  return /* @__PURE__ */ S(
714
714
  "div",
715
715
  {
@@ -730,7 +730,7 @@ const i = /* @__PURE__ */ ya(ka), ji = ({
730
730
  /* @__PURE__ */ u("div", { className: en.ambitDate, children: h ? new Date(h).toLocaleDateString() : "" })
731
731
  ] }),
732
732
  /* @__PURE__ */ S("div", { className: en.ambitButtons, children: [
733
- b && /* @__PURE__ */ u("img", { src: ma }),
733
+ y && /* @__PURE__ */ u("img", { src: ma }),
734
734
  /* @__PURE__ */ u("button", { onClick: () => r(g), disabled: e.is_default, children: /* @__PURE__ */ u("img", { src: pa }) }),
735
735
  /* @__PURE__ */ u("button", { onClick: () => t(g), children: /* @__PURE__ */ u("img", { src: fa }) }),
736
736
  /* @__PURE__ */ u("button", { onClick: () => n(g), disabled: e.is_default, children: /* @__PURE__ */ u("img", { src: da }) })
@@ -794,19 +794,19 @@ const _o = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
794
794
  buttonContainerStyles: l = {},
795
795
  containerStyles: c = {},
796
796
  onCLickNewAmbit: d = () => console.log("New ambit clicked"),
797
- onClickCopy: h = (y) => console.log(`Copy ambit: ${y}`),
798
- onCLickDelete: g = (y) => console.log(`Delete ambit: ${y}`),
799
- onClickFilters: b = (y) => console.log(`Filters clicked: ${y}`),
800
- onClickAmbit: p = (y) => console.log(`OnCLickAmbit: ${y}`)
797
+ onClickCopy: h = (b) => console.log(`Copy ambit: ${b}`),
798
+ onCLickDelete: g = (b) => console.log(`Delete ambit: ${b}`),
799
+ onClickFilters: y = (b) => console.log(`Filters clicked: ${b}`),
800
+ onClickAmbit: p = (b) => console.log(`OnCLickAmbit: ${b}`)
801
801
  }) => {
802
- const { t: y } = ce(), [f, _] = le(e);
802
+ const { t: b } = ce(), [f, C] = le(e);
803
803
  J(() => {
804
- e && _(e);
804
+ e && C(e);
805
805
  }, [e]);
806
806
  const x = (k) => {
807
807
  if (f && f.length > 0) {
808
808
  let $ = [...f];
809
- $.sort((v, C) => v[k].localeCompare(C[k])), _($);
809
+ $.sort((v, _) => v[k].localeCompare(_[k])), C($);
810
810
  }
811
811
  };
812
812
  return /* @__PURE__ */ S(
@@ -823,11 +823,11 @@ const _o = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
823
823
  children: [
824
824
  /* @__PURE__ */ S("div", { className: ft.nameDateContainer, children: [
825
825
  /* @__PURE__ */ u("div", { className: ft.ambitName, children: /* @__PURE__ */ S("button", { onClick: () => x("name"), children: [
826
- /* @__PURE__ */ u("span", { children: y(o) }),
826
+ /* @__PURE__ */ u("span", { children: b(o) }),
827
827
  /* @__PURE__ */ u("img", { src: _o })
828
828
  ] }) }),
829
829
  /* @__PURE__ */ u("div", { className: ft.ambitDate, children: /* @__PURE__ */ S("button", { onClick: () => x("date"), children: [
830
- /* @__PURE__ */ u("span", { children: y(s) }),
830
+ /* @__PURE__ */ u("span", { children: b(s) }),
831
831
  /* @__PURE__ */ u("img", { src: _o })
832
832
  ] }) })
833
833
  ] }),
@@ -844,7 +844,7 @@ const _o = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
844
844
  activeColor: r,
845
845
  onClickCopy: h,
846
846
  onClickDelete: g,
847
- onClickFilters: b,
847
+ onClickFilters: y,
848
848
  onClickAmbit: p
849
849
  },
850
850
  `ambitKey${k.id}`
@@ -855,7 +855,7 @@ const _o = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
855
855
  style: { ...l },
856
856
  onClick: d,
857
857
  borderColor: "grey",
858
- children: y(a)
858
+ children: b(a)
859
859
  }
860
860
  ) })
861
861
  ]
@@ -924,13 +924,13 @@ const Ba = ({
924
924
  icon: d,
925
925
  activeIcon: h,
926
926
  isActive: g,
927
- name: b,
927
+ name: y,
928
928
  onClick: p,
929
- disabled: y
929
+ disabled: b
930
930
  } = l, f = /* @__PURE__ */ S(pn, { children: [
931
- n && r === "left" && /* @__PURE__ */ u("span", { className: _t.buttonName, children: a(b) }),
932
- /* @__PURE__ */ u("img", { src: g ? h : d, alt: a(b) }),
933
- n && r === "right" && /* @__PURE__ */ u("span", { className: _t.buttonName, children: a(b) })
931
+ n && r === "left" && /* @__PURE__ */ u("span", { className: _t.buttonName, children: a(y) }),
932
+ /* @__PURE__ */ u("img", { src: g ? h : d, alt: a(y) }),
933
+ n && r === "right" && /* @__PURE__ */ u("span", { className: _t.buttonName, children: a(y) })
934
934
  ] });
935
935
  return /* @__PURE__ */ S("div", { className: "tooltip-parent", children: [
936
936
  /* @__PURE__ */ u(
@@ -939,11 +939,11 @@ const Ba = ({
939
939
  onClick: p,
940
940
  className: `${_t.button}
941
941
  ${g && _t.active}`,
942
- disabled: y,
942
+ disabled: b,
943
943
  children: f
944
944
  }
945
945
  ),
946
- o && /* @__PURE__ */ u(lt, { text: b, position: s })
946
+ o && /* @__PURE__ */ u(lt, { text: y, position: s })
947
947
  ] }, c);
948
948
  })
949
949
  }
@@ -1043,10 +1043,10 @@ const Kp = () => /* @__PURE__ */ u("div", { children: "EditAmbit" }), Wa = "data
1043
1043
  inputsColor: "#605B56",
1044
1044
  activeFiltersType: null
1045
1045
  })), qi = ({ title: e, onClick: t, isOpen: n = !0, textColor: r = "#ffffff", backgroundColor: o = "#605B5680", activeColor: s, fontColor: a = "#605B56" }) => {
1046
- const { t: l } = ce(), { tematicalFiltersSelected: c, activeFiltersType: d } = ve((b) => b), h = (b) => {
1046
+ const { t: l } = ce(), { tematicalFiltersSelected: c, activeFiltersType: d } = ve((y) => y), h = (y) => {
1047
1047
  ve.setState((p) => ({
1048
1048
  tematicalFiltersSelected: p.tematicalFiltersSelected.filter(
1049
- (y) => y.code !== b
1049
+ (b) => b.code !== y
1050
1050
  )
1051
1051
  }));
1052
1052
  };
@@ -1061,9 +1061,9 @@ const Kp = () => /* @__PURE__ */ u("div", { children: "EditAmbit" }), Wa = "data
1061
1061
  activeColor: s,
1062
1062
  mainTitle: !0,
1063
1063
  color: a,
1064
- children: /* @__PURE__ */ u("div", { className: xo.AppliedFiltersContainer, children: c == null ? void 0 : c.map((b, p) => /* @__PURE__ */ S("div", { className: xo.AppliedFilterContent, style: { color: r, background: o }, children: [
1065
- l(b.name),
1066
- /* @__PURE__ */ u("img", { src: Wa, alt: "CloseIcon", onClick: () => h(b.code), style: { cursor: "pointer" } })
1064
+ children: /* @__PURE__ */ u("div", { className: xo.AppliedFiltersContainer, children: c == null ? void 0 : c.map((y, p) => /* @__PURE__ */ S("div", { className: xo.AppliedFilterContent, style: { color: r, background: o }, children: [
1065
+ l(y.name),
1066
+ /* @__PURE__ */ u("img", { src: Wa, alt: "CloseIcon", onClick: () => h(y.code), style: { cursor: "pointer" } })
1067
1067
  ] }, p)) })
1068
1068
  }
1069
1069
  );
@@ -1097,11 +1097,11 @@ const Ha = "_layersList_cn837_25", Ka = "_layerName_cn837_34", wo = {
1097
1097
  const { t: l } = ce(), { activeFiltersType: c } = ve((g) => g), d = () => {
1098
1098
  c === "geographical" ? ve.setState({ activeFiltersType: null }) : ve.setState({ activeFiltersType: "geographical" });
1099
1099
  }, h = (g) => {
1100
- const b = s.map((p) => ({
1100
+ const y = s.map((p) => ({
1101
1101
  ...p,
1102
1102
  active: p.name === g.name
1103
1103
  }));
1104
- a == null || a(b);
1104
+ a == null || a(y);
1105
1105
  };
1106
1106
  return /* @__PURE__ */ u(
1107
1107
  Lt,
@@ -1236,8 +1236,8 @@ let Fr = function(e) {
1236
1236
  o.setState({ pending: !0 });
1237
1237
  const c = o.getTouchPosition(l);
1238
1238
  if (o.isScrolling === void 0) {
1239
- const g = c[0] - o.startPosition[0], b = c[1] - o.startPosition[1];
1240
- o.isScrolling = Math.abs(b) > Math.abs(g);
1239
+ const g = c[0] - o.startPosition[0], y = c[1] - o.startPosition[1];
1240
+ o.isScrolling = Math.abs(y) > Math.abs(g);
1241
1241
  }
1242
1242
  if (o.isScrolling) return void o.setState({ index: -1 });
1243
1243
  const d = o.getDiffPosition(c[0]), h = o.getValueFromPosition(d);
@@ -1303,8 +1303,8 @@ let Fr = function(e) {
1303
1303
  }, 0);
1304
1304
  o.pendingResizeTimeouts.push(l);
1305
1305
  }, o.renderThumb = (l, c) => {
1306
- const d = o.props.thumbClassName + " " + o.props.thumbClassName + "-" + c + " " + (o.state.index === c ? o.props.thumbActiveClassName : ""), h = { ref: (b) => {
1307
- o["thumb" + c] = b;
1306
+ const d = o.props.thumbClassName + " " + o.props.thumbClassName + "-" + c + " " + (o.state.index === c ? o.props.thumbActiveClassName : ""), h = { ref: (y) => {
1307
+ o["thumb" + c] = y;
1308
1308
  }, key: o.props.thumbClassName + "-" + c, className: d, style: l, onMouseDown: o.createOnMouseDown(c), onTouchStart: o.createOnTouchStart(c), onFocus: o.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": o.props.orientation, "aria-valuenow": o.state.value[c], "aria-valuemin": o.props.min, "aria-valuemax": o.props.max, "aria-label": Array.isArray(o.props.ariaLabel) ? o.props.ariaLabel[c] : o.props.ariaLabel, "aria-labelledby": Array.isArray(o.props.ariaLabelledby) ? o.props.ariaLabelledby[c] : o.props.ariaLabelledby, "aria-disabled": o.props.disabled }, g = { index: c, value: kn(o.state.value), valueNow: o.state.value[c] };
1309
1309
  return o.props.ariaValuetext && (h["aria-valuetext"] = typeof o.props.ariaValuetext == "string" ? o.props.ariaValuetext : o.props.ariaValuetext(g)), o.props.renderThumb(h, g);
1310
1310
  }, o.renderTrack = (l, c, d) => {
@@ -1364,8 +1364,8 @@ let Fr = function(e) {
1364
1364
  }, n.resize = function() {
1365
1365
  const { slider: r, thumb0: o } = this;
1366
1366
  if (!r || !o) return;
1367
- const s = this.sizeKey(), a = r.getBoundingClientRect(), l = r[s], c = a[this.posMaxKey()], d = a[this.posMinKey()], h = o.getBoundingClientRect()[s.replace("client", "").toLowerCase()], g = l - h, b = Math.abs(c - d);
1368
- this.state.upperBound === g && this.state.sliderLength === b && this.state.thumbSize === h || this.setState({ upperBound: g, sliderLength: b, thumbSize: h });
1367
+ const s = this.sizeKey(), a = r.getBoundingClientRect(), l = r[s], c = a[this.posMaxKey()], d = a[this.posMinKey()], h = o.getBoundingClientRect()[s.replace("client", "").toLowerCase()], g = l - h, y = Math.abs(c - d);
1368
+ this.state.upperBound === g && this.state.sliderLength === y && this.state.thumbSize === h || this.setState({ upperBound: g, sliderLength: y, thumbSize: h });
1369
1369
  }, n.calcOffset = function(r) {
1370
1370
  const o = this.props.max - this.props.min;
1371
1371
  return o === 0 ? 0 : (r - this.props.min) / o * this.state.upperBound;
@@ -1407,23 +1407,23 @@ let Fr = function(e) {
1407
1407
  const { pearling: c, max: d, min: h, minDistance: g } = this.props;
1408
1408
  if (!c) {
1409
1409
  if (s > 0) {
1410
- const b = o[s - 1];
1411
- r < b + g && (r = b + g);
1410
+ const y = o[s - 1];
1411
+ r < y + g && (r = y + g);
1412
1412
  }
1413
1413
  if (s < a - 1) {
1414
- const b = o[s + 1];
1415
- r > b - g && (r = b - g);
1414
+ const y = o[s + 1];
1415
+ r > y - g && (r = y - g);
1416
1416
  }
1417
1417
  }
1418
- o[s] = r, c && a > 1 && (r > l ? (this.pushSucceeding(o, g, s), function(b, p, y, f) {
1419
- for (let _ = 0; _ < b; _ += 1) {
1420
- const x = f - _ * y;
1421
- p[b - 1 - _] > x && (p[b - 1 - _] = x);
1418
+ o[s] = r, c && a > 1 && (r > l ? (this.pushSucceeding(o, g, s), function(y, p, b, f) {
1419
+ for (let C = 0; C < y; C += 1) {
1420
+ const x = f - C * b;
1421
+ p[y - 1 - C] > x && (p[y - 1 - C] = x);
1422
1422
  }
1423
- }(a, o, g, d)) : r < l && (this.pushPreceding(o, g, s), function(b, p, y, f) {
1424
- for (let _ = 0; _ < b; _ += 1) {
1425
- const x = f + _ * y;
1426
- p[_] < x && (p[_] = x);
1423
+ }(a, o, g, d)) : r < l && (this.pushPreceding(o, g, s), function(y, p, b, f) {
1424
+ for (let C = 0; C < y; C += 1) {
1425
+ const x = f + C * b;
1426
+ p[C] < x && (p[C] = x);
1427
1427
  }
1428
1428
  }(a, o, g, h))), this.setState({ value: o }, this.fireChangeEvent.bind(this, "onChange"));
1429
1429
  }, n.pushSucceeding = function(r, o, s) {
@@ -1499,7 +1499,7 @@ const Qa = "_container_4u41i_2", Ja = "_unitLabel_4u41i_8", el = "_slider_4u41i_
1499
1499
  defaultValue: l,
1500
1500
  isDate: c
1501
1501
  }) => {
1502
- const { t: d } = ce(), h = c ? new Date(e).getTime() : null, g = c ? new Date(t).getTime() : null, [b, p] = le(c ? [h, g] : [e, t]), y = (f) => {
1502
+ const { t: d } = ce(), h = c ? new Date(e).getTime() : null, g = c ? new Date(t).getTime() : null, [y, p] = le(c ? [h, g] : [e, t]), b = (f) => {
1503
1503
  p(f), r == null || r({ min: f[0], max: f[1] });
1504
1504
  };
1505
1505
  return J(() => {
@@ -1520,24 +1520,24 @@ const Qa = "_container_4u41i_2", Ja = "_unitLabel_4u41i_8", el = "_slider_4u41i_
1520
1520
  min: c ? h : e,
1521
1521
  max: c ? g : t,
1522
1522
  step: c ? (g - h) / 30 : n,
1523
- value: b,
1524
- onAfterChange: y,
1523
+ value: y,
1524
+ onAfterChange: b,
1525
1525
  withTracks: !0,
1526
1526
  pearling: !c,
1527
1527
  minDistance: c ? 0 : 0.1
1528
1528
  }
1529
1529
  ),
1530
1530
  /* @__PURE__ */ S("div", { className: Dt.labels, children: [
1531
- /* @__PURE__ */ u("span", { children: c ? new Date(b[0]).toLocaleDateString("en-EN", {
1531
+ /* @__PURE__ */ u("span", { children: c ? new Date(y[0]).toLocaleDateString("en-EN", {
1532
1532
  day: "2-digit",
1533
1533
  month: "short",
1534
1534
  year: "numeric"
1535
- }) : b[0] }),
1536
- /* @__PURE__ */ u("span", { children: c ? new Date(b[1]).toLocaleDateString("en-EN", {
1535
+ }) : y[0] }),
1536
+ /* @__PURE__ */ u("span", { children: c ? new Date(y[1]).toLocaleDateString("en-EN", {
1537
1537
  day: "2-digit",
1538
1538
  month: "short",
1539
1539
  year: "numeric"
1540
- }) : b[1] })
1540
+ }) : y[1] })
1541
1541
  ] })
1542
1542
  ]
1543
1543
  }
@@ -1574,23 +1574,23 @@ const ol = "_tematicalFiltersInputContainer_1vm1r_2", il = "_inputTypeContainer_
1574
1574
  unit: d,
1575
1575
  step: h,
1576
1576
  disabled: g,
1577
- isDate: b
1577
+ isDate: y
1578
1578
  } = e || {}, p = je(
1579
1579
  () => o == "cat" || n == "cat",
1580
1580
  [n, o]
1581
- ), y = je(
1581
+ ), b = je(
1582
1582
  () => o == "abs" || n == "abs",
1583
1583
  [n, o]
1584
1584
  ), {
1585
1585
  tematicalFiltersSelected: f,
1586
- selectedIndicator: _,
1586
+ selectedIndicator: C,
1587
1587
  fontColor: x,
1588
1588
  inputsColor: k
1589
- } = ve((C) => C), $ = (C) => {
1590
- if (C) {
1591
- const { min: w, max: N, valueClicked: L, allValues: E } = C || {}, { code: B, type: V, source: m } = e || {}, O = y ? "abs" : p ? "cat" : "both";
1592
- let T = B[0];
1593
- V == "both" && (T = O == "cat" ? B[1] : B[0]), O == "cat" ? ve.setState((z) => {
1589
+ } = ve((_) => _), $ = (_) => {
1590
+ if (_) {
1591
+ const { min: w, max: N, valueClicked: L, allValues: E } = _ || {}, { code: F, type: P, source: m } = e || {}, O = b ? "abs" : p ? "cat" : "both";
1592
+ let T = F[0];
1593
+ P == "both" && (T = O == "cat" ? F[1] : F[0]), O == "cat" ? ve.setState((z) => {
1594
1594
  let j = z.tematicalFiltersSelected.find(
1595
1595
  (Y) => Y.code === T
1596
1596
  );
@@ -1618,7 +1618,7 @@ const ol = "_tematicalFiltersInputContainer_1vm1r_2", il = "_inputTypeContainer_
1618
1618
  values: Y.filter((W) => W !== L),
1619
1619
  name: e.name,
1620
1620
  source: m,
1621
- isDate: b
1621
+ isDate: y
1622
1622
  }
1623
1623
  ]
1624
1624
  };
@@ -1634,7 +1634,7 @@ const ol = "_tematicalFiltersInputContainer_1vm1r_2", il = "_inputTypeContainer_
1634
1634
  )
1635
1635
  };
1636
1636
  if (j) {
1637
- let Y = { ...j, min: w, max: N, type: O, isDate: b };
1637
+ let Y = { ...j, min: w, max: N, type: O, isDate: y };
1638
1638
  return {
1639
1639
  tematicalFiltersSelected: z.tematicalFiltersSelected.map(
1640
1640
  (W) => W.code === T ? Y : W
@@ -1657,11 +1657,11 @@ const ol = "_tematicalFiltersInputContainer_1vm1r_2", il = "_inputTypeContainer_
1657
1657
  });
1658
1658
  }
1659
1659
  }, v = je(() => {
1660
- const C = {};
1660
+ const _ = {};
1661
1661
  if ((f == null ? void 0 : f.length) > 0)
1662
1662
  for (const w of f)
1663
- w.type === "cat" ? C[w.code] = new Set(w.values) : C[w.code] = [w.min, w.max];
1664
- return C;
1663
+ w.type === "cat" ? _[w.code] = new Set(w.values) : _[w.code] = [w.min, w.max];
1664
+ return _;
1665
1665
  }, [f]);
1666
1666
  return /* @__PURE__ */ u("div", { className: $n.tematicalFiltersInputContainer, children: /* @__PURE__ */ S(
1667
1667
  Lt,
@@ -1672,10 +1672,10 @@ const ol = "_tematicalFiltersInputContainer_1vm1r_2", il = "_inputTypeContainer_
1672
1672
  opacity: g ? 0.5 : 1
1673
1673
  },
1674
1674
  title: s,
1675
- isOpen: _ == `id${s}`,
1675
+ isOpen: C == `id${s}`,
1676
1676
  onClick: () => {
1677
1677
  g || ve.setState(() => ({
1678
- selectedIndicator: _ == `id${s}` ? "" : `id${s}`
1678
+ selectedIndicator: C == `id${s}` ? "" : `id${s}`
1679
1679
  }));
1680
1680
  },
1681
1681
  showBottomBar: !1,
@@ -1732,19 +1732,19 @@ const ol = "_tematicalFiltersInputContainer_1vm1r_2", il = "_inputTypeContainer_
1732
1732
  ]
1733
1733
  }
1734
1734
  ),
1735
- p && /* @__PURE__ */ u("div", { className: $n.checkboxContainer, children: (a || []).map((C, w) => {
1735
+ p && /* @__PURE__ */ u("div", { className: $n.checkboxContainer, children: (a || []).map((_, w) => {
1736
1736
  var N;
1737
1737
  return /* @__PURE__ */ u(
1738
1738
  Ui,
1739
1739
  {
1740
1740
  onClick: () => $({ valueClicked: w, allValues: a }),
1741
- indicator: C,
1741
+ indicator: _,
1742
1742
  value: ((N = v[e.code[o == "both" ? 1 : 0]]) == null ? void 0 : N.has(w)) || !v[e.code[o == "both" ? 1 : 0]]
1743
1743
  },
1744
1744
  `checkbox-${w}`
1745
1745
  );
1746
1746
  }) }),
1747
- (y || o == "glb") && /* @__PURE__ */ u("div", { className: $n.absoluteSliderContainer, children: /* @__PURE__ */ u(
1747
+ (b || o == "glb") && /* @__PURE__ */ u("div", { className: $n.absoluteSliderContainer, children: /* @__PURE__ */ u(
1748
1748
  Zi,
1749
1749
  {
1750
1750
  onChange: $,
@@ -1752,7 +1752,7 @@ const ol = "_tematicalFiltersInputContainer_1vm1r_2", il = "_inputTypeContainer_
1752
1752
  max: c,
1753
1753
  unit: d,
1754
1754
  defaultValue: v[e.code[0]] ? v[e.code[0]] : "",
1755
- isDate: b,
1755
+ isDate: y,
1756
1756
  step: h
1757
1757
  }
1758
1758
  ) })
@@ -1902,14 +1902,14 @@ const zr = ({
1902
1902
  activeColor: s,
1903
1903
  onClick: h,
1904
1904
  mainTitle: !0,
1905
- children: e == null ? void 0 : e.map((g, b) => /* @__PURE__ */ u(
1905
+ children: e == null ? void 0 : e.map((g, y) => /* @__PURE__ */ u(
1906
1906
  Ki,
1907
1907
  {
1908
1908
  category: g,
1909
1909
  fontColor: r,
1910
1910
  activeColor: s
1911
1911
  },
1912
- `category-${b}`
1912
+ `category-${y}`
1913
1913
  ))
1914
1914
  }
1915
1915
  );
@@ -1945,18 +1945,18 @@ const ll = "_FiltersAmbitContainer_1hv16_2", cl = "_FiltersContainer_1hv16_15",
1945
1945
  namePlaceholder: d,
1946
1946
  descPlaceholder: h,
1947
1947
  filtersTypes: g = ["geographical", "tematical"],
1948
- nameRequiredText: b,
1948
+ nameRequiredText: y,
1949
1949
  geoLayers: p = [],
1950
- onGeoLayersChange: y,
1950
+ onGeoLayersChange: b,
1951
1951
  onlyFilters: f = !1,
1952
1952
  //usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
1953
- descriptionRequired: _ = !1,
1953
+ descriptionRequired: C = !1,
1954
1954
  //campo descripción required
1955
1955
  extraLists: x = !1
1956
1956
  }) => {
1957
1957
  const { t: k } = ce(), { tematicalFiltersSelected: $, activeFiltersType: v } = ve(
1958
1958
  (m) => m
1959
- ), [C, w] = le(e || null), [N, L] = le(t || null), [E, B] = le(!1);
1959
+ ), [_, w] = le(e || null), [N, L] = le(t || null), [E, F] = le(!1);
1960
1960
  J(() => {
1961
1961
  ve.setState({
1962
1962
  tematicalFiltersSelected: n || []
@@ -1964,8 +1964,8 @@ const ll = "_FiltersAmbitContainer_1hv16_2", cl = "_FiltersContainer_1hv16_15",
1964
1964
  }, [n]), Se(!1), J(() => {
1965
1965
  l($);
1966
1966
  }, [$]);
1967
- const V = () => {
1968
- _ ? C && N ? c({ name: C, description: N }) : B(!0) : C ? c({ name: C, description: N }) : B(!0);
1967
+ const P = () => {
1968
+ C ? _ && N ? c({ name: _, description: N }) : F(!0) : _ ? c({ name: _, description: N }) : F(!0);
1969
1969
  };
1970
1970
  return J(() => {
1971
1971
  if (g.includes("geographical") && v != "geographical" && p.length > 0) {
@@ -1973,7 +1973,7 @@ const ll = "_FiltersAmbitContainer_1hv16_2", cl = "_FiltersContainer_1hv16_15",
1973
1973
  ...O,
1974
1974
  active: !1
1975
1975
  }));
1976
- y == null || y(m);
1976
+ b == null || b(m);
1977
1977
  }
1978
1978
  }, [v]), /* @__PURE__ */ S("div", { className: pt.FiltersAmbitContainer, children: [
1979
1979
  /* @__PURE__ */ S("div", { className: pt.FiltersContainer, children: [
@@ -1983,9 +1983,9 @@ const ll = "_FiltersAmbitContainer_1hv16_2", cl = "_FiltersContainer_1hv16_15",
1983
1983
  {
1984
1984
  type: "text",
1985
1985
  onChange: (m) => {
1986
- B(!1), w(m.target.value);
1986
+ F(!1), w(m.target.value);
1987
1987
  },
1988
- value: C,
1988
+ value: _,
1989
1989
  placeholder: k(d)
1990
1990
  }
1991
1991
  ) }),
@@ -1994,7 +1994,7 @@ const ll = "_FiltersAmbitContainer_1hv16_2", cl = "_FiltersContainer_1hv16_15",
1994
1994
  {
1995
1995
  value: N,
1996
1996
  onChange: (m) => {
1997
- _ && B(!1), L(m.target.value);
1997
+ C && F(!1), L(m.target.value);
1998
1998
  },
1999
1999
  placeholder: k(h)
2000
2000
  }
@@ -2016,7 +2016,7 @@ const ll = "_FiltersAmbitContainer_1hv16_2", cl = "_FiltersContainer_1hv16_15",
2016
2016
  title: "geo_filters",
2017
2017
  activeColor: o,
2018
2018
  geoLayers: p,
2019
- onGeoLayersChange: y
2019
+ onGeoLayersChange: b
2020
2020
  }
2021
2021
  ),
2022
2022
  g.includes("extra") && x.map((m) => /* @__PURE__ */ u(
@@ -2043,8 +2043,8 @@ const ll = "_FiltersAmbitContainer_1hv16_2", cl = "_FiltersContainer_1hv16_15",
2043
2043
  )
2044
2044
  ] }),
2045
2045
  !f && /* @__PURE__ */ S("div", { className: pt.buttonContainer, children: [
2046
- E && /* @__PURE__ */ u("div", { className: pt.warning, children: k(b) }),
2047
- /* @__PURE__ */ u(Xn, { onClick: () => V(), children: k("save_ambit") })
2046
+ E && /* @__PURE__ */ u("div", { className: pt.warning, children: k(y) }),
2047
+ /* @__PURE__ */ u(Xn, { onClick: () => P(), children: k("save_ambit") })
2048
2048
  ] })
2049
2049
  ] });
2050
2050
  };
@@ -2085,50 +2085,50 @@ const yl = "_barChartContainer_1ly7h_2", So = {
2085
2085
  verticalPadding: d = 10,
2086
2086
  xLabelPadding: h = l == "vertical" ? 50 : 40,
2087
2087
  containerWidth: g = 700,
2088
- containerHeight: b = 500,
2088
+ containerHeight: y = 500,
2089
2089
  mainColor: p = "#000"
2090
2090
  }) => {
2091
2091
  const {
2092
- xScale: y,
2092
+ xScale: b,
2093
2093
  yScale: f,
2094
- ticks: _,
2094
+ ticks: C,
2095
2095
  height: x,
2096
2096
  chartWidth: k,
2097
2097
  svgWidth: $,
2098
2098
  svgHeight: v,
2099
- contentWidth: C
2099
+ contentWidth: _
2100
2100
  } = je(() => {
2101
2101
  if (e && e.length > 0) {
2102
2102
  const w = hr.max(e, (L) => L.value) || 1, N = a || w;
2103
2103
  if (l === "vertical") {
2104
- const L = e.length * (t + n) + c * 2, E = Math.max(L, g || 0), B = b, m = hr.scaleLinear().domain([0, N]).range([B - 100, d]), O = Array.from(
2104
+ const L = e.length * (t + n) + c * 2, E = Math.max(L, g || 0), F = y, m = hr.scaleLinear().domain([0, N]).range([F - 100, d]), O = Array.from(
2105
2105
  { length: s + 1 },
2106
2106
  (T, z) => N / s * z
2107
2107
  );
2108
2108
  return {
2109
2109
  yScale: m,
2110
2110
  ticks: O,
2111
- height: B,
2111
+ height: F,
2112
2112
  chartWidth: E,
2113
2113
  svgWidth: E,
2114
- svgHeight: B,
2114
+ svgHeight: F,
2115
2115
  contentWidth: L
2116
2116
  };
2117
2117
  } else {
2118
2118
  const L = e.length * (t + n);
2119
2119
  console.log("barsHeight: ", L);
2120
- const E = L + d * 2 + h + 30, B = g + o + c * 2, V = hr.scaleLinear().domain([0, N]).range([0, g - c * 2]), m = Array.from(
2120
+ const E = L + d * 2 + h + 30, F = g + o + c * 2, P = hr.scaleLinear().domain([0, N]).range([0, g - c * 2]), m = Array.from(
2121
2121
  { length: s + 1 },
2122
2122
  (O, T) => N / s * T
2123
2123
  );
2124
2124
  return {
2125
- xScale: V,
2125
+ xScale: P,
2126
2126
  ticks: m,
2127
2127
  height: E,
2128
2128
  chartWidth: g,
2129
- svgWidth: B,
2129
+ svgWidth: F,
2130
2130
  svgHeight: E,
2131
- contentWidth: B
2131
+ contentWidth: F
2132
2132
  };
2133
2133
  }
2134
2134
  } else
@@ -2150,7 +2150,7 @@ const yl = "_barChartContainer_1ly7h_2", So = {
2150
2150
  l,
2151
2151
  o,
2152
2152
  g,
2153
- b
2153
+ y
2154
2154
  ]);
2155
2155
  return l === "vertical" ? /* @__PURE__ */ u(
2156
2156
  "div",
@@ -2158,7 +2158,7 @@ const yl = "_barChartContainer_1ly7h_2", So = {
2158
2158
  style: {
2159
2159
  //width: containerWidth ? `${containerWidth}px` : "100%",
2160
2160
  width: "100%",
2161
- height: b ? `${b}px` : "100%",
2161
+ height: y ? `${y}px` : "100%",
2162
2162
  "--main-color": p
2163
2163
  },
2164
2164
  className: So.barChartContainer,
@@ -2175,7 +2175,7 @@ const yl = "_barChartContainer_1ly7h_2", So = {
2175
2175
  "--main-color": p
2176
2176
  },
2177
2177
  children: /* @__PURE__ */ S("g", { transform: `translate(${c}, 0)`, children: [
2178
- /* @__PURE__ */ u("g", { children: _.map((w, N) => {
2178
+ /* @__PURE__ */ u("g", { children: C.map((w, N) => {
2179
2179
  const L = f(w);
2180
2180
  return /* @__PURE__ */ S("g", { children: [
2181
2181
  /* @__PURE__ */ u(
@@ -2202,13 +2202,13 @@ const yl = "_barChartContainer_1ly7h_2", So = {
2202
2202
  ] }, N);
2203
2203
  }) }),
2204
2204
  e && e.length > 0 && e.map((w, N) => {
2205
- const L = f(0) - f(w.value), E = N * (t + n), B = f(w.value);
2205
+ const L = f(0) - f(w.value), E = N * (t + n), F = f(w.value);
2206
2206
  return /* @__PURE__ */ S("g", { children: [
2207
2207
  /* @__PURE__ */ u(
2208
2208
  "rect",
2209
2209
  {
2210
2210
  x: E,
2211
- y: B,
2211
+ y: F,
2212
2212
  width: t,
2213
2213
  height: L,
2214
2214
  fill: w.color,
@@ -2239,7 +2239,7 @@ const yl = "_barChartContainer_1ly7h_2", So = {
2239
2239
  style: {
2240
2240
  width: "100%",
2241
2241
  //width: containerWidth ? `${containerWidth}px` : "100%",
2242
- height: b ? `${b}px` : "100%",
2242
+ height: y ? `${y}px` : "100%",
2243
2243
  "--main-color": p
2244
2244
  },
2245
2245
  className: So.barChartContainer,
@@ -2251,12 +2251,12 @@ const yl = "_barChartContainer_1ly7h_2", So = {
2251
2251
  style: {
2252
2252
  minWidth: "100%",
2253
2253
  height: v,
2254
- width: C,
2254
+ width: _,
2255
2255
  maxWidth: "none"
2256
2256
  },
2257
2257
  children: /* @__PURE__ */ S("g", { transform: `translate(0,${d})`, children: [
2258
- /* @__PURE__ */ u("g", { transform: `translate(${o + c}, 0)`, children: _.map((w, N) => {
2259
- const L = y(w);
2258
+ /* @__PURE__ */ u("g", { transform: `translate(${o + c}, 0)`, children: C.map((w, N) => {
2259
+ const L = b(w);
2260
2260
  return /* @__PURE__ */ S("g", { transform: `translate(${L}, 0)`, children: [
2261
2261
  /* @__PURE__ */ u(
2262
2262
  "line",
@@ -2279,7 +2279,7 @@ const yl = "_barChartContainer_1ly7h_2", So = {
2279
2279
  ] }, N);
2280
2280
  }) }),
2281
2281
  e && e.length > 0 && e.map((w, N) => {
2282
- const L = y(w.value), E = N * (t + n);
2282
+ const L = b(w.value), E = N * (t + n);
2283
2283
  return console.log("y: ", E), /* @__PURE__ */ S(
2284
2284
  "g",
2285
2285
  {
@@ -2356,7 +2356,7 @@ const bl = "_graphicContainer_1ozwp_2", vl = "_titleContainer_1ozwp_13", ko = {
2356
2356
  xLabelPadding: h = 0,
2357
2357
  mainColor: g
2358
2358
  }) => {
2359
- const { t: b } = ce();
2359
+ const { t: y } = ce();
2360
2360
  return /* @__PURE__ */ S(
2361
2361
  "div",
2362
2362
  {
@@ -2366,7 +2366,7 @@ const bl = "_graphicContainer_1ozwp_2", vl = "_titleContainer_1ozwp_13", ko = {
2366
2366
  paddingBottom: 40
2367
2367
  },
2368
2368
  children: [
2369
- /* @__PURE__ */ u("div", { className: ko.titleContainer, children: /* @__PURE__ */ u("h2", { children: b(o) }) }),
2369
+ /* @__PURE__ */ u("div", { className: ko.titleContainer, children: /* @__PURE__ */ u("h2", { children: y(o) }) }),
2370
2370
  /* @__PURE__ */ u(
2371
2371
  Gi,
2372
2372
  {
@@ -2430,9 +2430,9 @@ const _l = "_indicatorsCategory_arwy3_2", xl = "_title_arwy3_5", wl = "_list_arw
2430
2430
  multiple: l = !1,
2431
2431
  onChangeType: c
2432
2432
  }) => {
2433
- const { t: d } = ce(), { name: h, type: g, disabled: b } = e, [p, y] = le(!1);
2433
+ const { t: d } = ce(), { name: h, type: g, disabled: y } = e, [p, b] = le(!1);
2434
2434
  J(() => {
2435
- o && y(
2435
+ o && b(
2436
2436
  l ? o.some(
2437
2437
  (x) => x.name == String(h)
2438
2438
  ) : o.name == h
@@ -2497,7 +2497,7 @@ const _l = "_indicatorsCategory_arwy3_2", xl = "_title_arwy3_5", wl = "_list_arw
2497
2497
  ]
2498
2498
  }
2499
2499
  )
2500
- ] }) }) }), _ = () => /* @__PURE__ */ u("div", { className: Re.switchExternalContainer, children: /* @__PURE__ */ u("div", { className: Re.switchType, children: /* @__PURE__ */ u("div", { className: Re.switchTypeOptions, children: t.map((x, k) => /* @__PURE__ */ S(
2500
+ ] }) }) }), C = () => /* @__PURE__ */ u("div", { className: Re.switchExternalContainer, children: /* @__PURE__ */ u("div", { className: Re.switchType, children: /* @__PURE__ */ u("div", { className: Re.switchTypeOptions, children: t.map((x, k) => /* @__PURE__ */ S(
2501
2501
  "div",
2502
2502
  {
2503
2503
  className: Re.optionContainer,
@@ -2518,14 +2518,14 @@ const _l = "_indicatorsCategory_arwy3_2", xl = "_title_arwy3_5", wl = "_list_arw
2518
2518
  "div",
2519
2519
  {
2520
2520
  className: Re.indicatorNameContainer,
2521
- onClick: () => !b && a({ indicator: e }),
2521
+ onClick: () => !y && a({ indicator: e }),
2522
2522
  children: [
2523
2523
  /* @__PURE__ */ u(
2524
2524
  "div",
2525
2525
  {
2526
2526
  style: {
2527
2527
  border: p ? `1px solid ${n}` : `1px solid ${r}`,
2528
- opacity: b ? 0.5 : 1,
2528
+ opacity: y ? 0.5 : 1,
2529
2529
  backgroundColor: p ? n : "transparent"
2530
2530
  },
2531
2531
  className: Re.dot,
@@ -2538,7 +2538,7 @@ const _l = "_indicatorsCategory_arwy3_2", xl = "_title_arwy3_5", wl = "_list_arw
2538
2538
  className: Re.indicatorName,
2539
2539
  style: {
2540
2540
  color: p ? n : r,
2541
- opacity: b ? 0.5 : 1
2541
+ opacity: y ? 0.5 : 1
2542
2542
  },
2543
2543
  children: /* @__PURE__ */ u(
2544
2544
  Gr,
@@ -2554,7 +2554,7 @@ const _l = "_indicatorsCategory_arwy3_2", xl = "_title_arwy3_5", wl = "_list_arw
2554
2554
  }
2555
2555
  ),
2556
2556
  (o == null ? void 0 : o.name) === h && g === "both" && /* @__PURE__ */ u("div", { children: f() }),
2557
- (o == null ? void 0 : o.name) === h && g === "twoUnits" && /* @__PURE__ */ u("div", { children: _() })
2557
+ (o == null ? void 0 : o.name) === h && g === "twoUnits" && /* @__PURE__ */ u("div", { children: C() })
2558
2558
  ] });
2559
2559
  };
2560
2560
  Jr.propTypes = {
@@ -2586,9 +2586,9 @@ const Il = "_indicatorsSubCategory_1nuug_2", Pl = "_list_1nuug_11", To = {
2586
2586
  activeIndicatorType: h,
2587
2587
  onChangeType: g
2588
2588
  }) => {
2589
- const { t: b } = ce(), [p, y] = le(!1);
2589
+ const { t: y } = ce(), [p, b] = le(!1);
2590
2590
  return J(() => {
2591
- y(o == a);
2591
+ b(o == a);
2592
2592
  }, [o, a]), /* @__PURE__ */ S(
2593
2593
  Yr.div,
2594
2594
  {
@@ -2603,11 +2603,11 @@ const Il = "_indicatorsSubCategory_1nuug_2", Pl = "_list_1nuug_11", To = {
2603
2603
  "span",
2604
2604
  {
2605
2605
  style: { color: p ? r : n },
2606
- children: b(e)
2606
+ children: y(e)
2607
2607
  }
2608
2608
  )
2609
2609
  ] }) }),
2610
- t && /* @__PURE__ */ u("div", { className: To.list, children: t == null ? void 0 : t.map((f, _) => /* @__PURE__ */ u(
2610
+ t && /* @__PURE__ */ u("div", { className: To.list, children: t == null ? void 0 : t.map((f, C) => /* @__PURE__ */ u(
2611
2611
  Jr,
2612
2612
  {
2613
2613
  indicator: f,
@@ -2619,7 +2619,7 @@ const Il = "_indicatorsSubCategory_1nuug_2", Pl = "_list_1nuug_11", To = {
2619
2619
  activeIndicatorType: h,
2620
2620
  onChangeType: g
2621
2621
  },
2622
- "indicator" + _
2622
+ "indicator" + C
2623
2623
  )) })
2624
2624
  ]
2625
2625
  }
@@ -2650,10 +2650,10 @@ const Xi = ({
2650
2650
  onClickIndicator: d,
2651
2651
  multiple: h,
2652
2652
  activeIndicatorType: g,
2653
- onChangeType: b
2653
+ onChangeType: y
2654
2654
  }) => {
2655
- var _;
2656
- const { t: p } = ce(), [y, f] = le(!1);
2655
+ var C;
2656
+ const { t: p } = ce(), [b, f] = le(!1);
2657
2657
  return J(() => {
2658
2658
  f(s === t);
2659
2659
  }, [s, t]), /* @__PURE__ */ S(
@@ -2661,20 +2661,20 @@ const Xi = ({
2661
2661
  {
2662
2662
  className: Nn.indicatorsCategory,
2663
2663
  initial: { height: "53px" },
2664
- animate: { height: y ? "auto" : "53px" },
2664
+ animate: { height: b ? "auto" : "53px" },
2665
2665
  transition: { duration: 0.4 },
2666
2666
  style: {
2667
2667
  backgroundColor: "white",
2668
- borderBottom: y ? `1px solid ${n}` : "0px",
2669
- marginBottom: y ? "20px" : "0px"
2668
+ borderBottom: b ? `1px solid ${n}` : "0px",
2669
+ marginBottom: b ? "20px" : "0px"
2670
2670
  },
2671
2671
  children: [
2672
2672
  /* @__PURE__ */ S("h2", { className: `${Nn.title}`, onClick: () => o(t), children: [
2673
- /* @__PURE__ */ u("span", { className: Nn.plus, style: { color: y ? n : r }, children: y ? "-" : "+" }),
2673
+ /* @__PURE__ */ u("span", { className: Nn.plus, style: { color: b ? n : r }, children: b ? "-" : "+" }),
2674
2674
  /* @__PURE__ */ u(
2675
2675
  "span",
2676
2676
  {
2677
- style: { color: y ? n : r },
2677
+ style: { color: b ? n : r },
2678
2678
  children: p(e.name)
2679
2679
  }
2680
2680
  )
@@ -2694,11 +2694,11 @@ const Xi = ({
2694
2694
  defaultColor: r,
2695
2695
  indicators: $,
2696
2696
  activeIndicatorType: g,
2697
- onChangeType: b
2697
+ onChangeType: y
2698
2698
  },
2699
2699
  `subcKey ${v}`
2700
2700
  )
2701
- ) : /* @__PURE__ */ u("div", { className: Nn.list, children: (_ = e.indicators) == null ? void 0 : _.map((x, k) => /* @__PURE__ */ u(
2701
+ ) : /* @__PURE__ */ u("div", { className: Nn.list, children: (C = e.indicators) == null ? void 0 : C.map((x, k) => /* @__PURE__ */ u(
2702
2702
  Jr,
2703
2703
  {
2704
2704
  indicator: x,
@@ -2709,7 +2709,7 @@ const Xi = ({
2709
2709
  onClickIndicator: d,
2710
2710
  multiple: h,
2711
2711
  activeIndicatorType: g,
2712
- onChangeType: b
2712
+ onChangeType: y
2713
2713
  },
2714
2714
  `indicator${k}`
2715
2715
  )) })
@@ -2748,25 +2748,25 @@ const Vl = "_indicatorsList_13b3m_2", Fl = "_title_13b3m_6", $o = {
2748
2748
  changeIndType: a,
2749
2749
  activeIndicatorType: l
2750
2750
  }) => {
2751
- const { t: c } = ce(), [d, h] = le(), [g, b] = le(), [p, y] = le(), f = (v) => {
2751
+ const { t: c } = ce(), [d, h] = le(), [g, y] = le(), [p, b] = le(), f = (v) => {
2752
2752
  h(d == v ? null : v);
2753
- }, _ = (v) => {
2754
- b(g == v ? null : v);
2753
+ }, C = (v) => {
2754
+ y(g == v ? null : v);
2755
2755
  }, x = ({ indicator: v }) => {
2756
2756
  k(v);
2757
2757
  }, k = (v) => {
2758
2758
  if (!o)
2759
- y(
2759
+ b(
2760
2760
  (p == null ? void 0 : p.name) == v.name ? null : v
2761
2761
  );
2762
2762
  else {
2763
- let C = p && p.length > 0 ? [...p] : [];
2764
- y(
2765
- C != null && C.some(
2763
+ let _ = p && p.length > 0 ? [...p] : [];
2764
+ b(
2765
+ _ != null && _.some(
2766
2766
  (w) => w.name == v.name
2767
- ) ? C.filter(
2767
+ ) ? _.filter(
2768
2768
  (w) => w.name != String(v.name)
2769
- ) : [...C, v]
2769
+ ) : [..._, v]
2770
2770
  ), v.type == "both" && a("cat");
2771
2771
  }
2772
2772
  };
@@ -2776,40 +2776,40 @@ const Vl = "_indicatorsList_13b3m_2", Fl = "_title_13b3m_6", $o = {
2776
2776
  if (s && !p)
2777
2777
  if (o && s && Array.isArray(s)) {
2778
2778
  let v = p && p.length > 0 ? [...p] : [];
2779
- y([...v, ...s]), $(s[0].name);
2779
+ b([...v, ...s]), $(s[0].name);
2780
2780
  } else
2781
2781
  k(s), $(s.name);
2782
2782
  }, []), J(() => {
2783
2783
  if (s != p)
2784
2784
  if (o && s && Array.isArray(s)) {
2785
2785
  let v = p && p.length > 0 ? [...p] : [];
2786
- y([...v, ...s]), $(s[0].name);
2786
+ b([...v, ...s]), $(s[0].name);
2787
2787
  } else
2788
2788
  k(s), $(s.name);
2789
2789
  }, [s]);
2790
2790
  const $ = (v) => {
2791
- const C = e.find((w) => {
2791
+ const _ = e.find((w) => {
2792
2792
  if (w.subcategories) {
2793
2793
  let N = w.subcategories.find(
2794
2794
  (L) => L.indicators.find((E) => E.name == v)
2795
2795
  );
2796
2796
  if (N)
2797
- return b(N.subcategory), N;
2797
+ return y(N.subcategory), N;
2798
2798
  } else
2799
2799
  return w.indicators.some((N) => N.name == v);
2800
2800
  });
2801
- C && h(C.category);
2801
+ _ && h(_.category);
2802
2802
  };
2803
2803
  return /* @__PURE__ */ S("div", { className: $o.indicatorsList, children: [
2804
2804
  /* @__PURE__ */ u("h2", { className: $o.title, style: { color: n }, children: c("indicators.indicators") }),
2805
- e.map((v, C) => /* @__PURE__ */ u(
2805
+ e.map((v, _) => /* @__PURE__ */ u(
2806
2806
  Xi,
2807
2807
  {
2808
2808
  id: v.category,
2809
2809
  cat: v,
2810
2810
  onClickCategory: f,
2811
2811
  activeCategory: d,
2812
- onClickSubCategory: _,
2812
+ onClickSubCategory: C,
2813
2813
  activeSubCategory: g,
2814
2814
  onClickIndicator: x,
2815
2815
  activeIndicator: p,
@@ -2820,7 +2820,7 @@ const Vl = "_indicatorsList_13b3m_2", Fl = "_title_13b3m_6", $o = {
2820
2820
  onChangeType: a,
2821
2821
  activeIndicatorType: l
2822
2822
  },
2823
- `categoryKey${C}`
2823
+ `categoryKey${_}`
2824
2824
  ))
2825
2825
  ] });
2826
2826
  };
@@ -2993,7 +2993,7 @@ const Hl = "_legendContainer_1l2pz_3", Kl = "_closeButton_1l2pz_43", Gl = "_titl
2993
2993
  ] })
2994
2994
  ] })
2995
2995
  ] }) : c.categories && c.categories.length > 0 && /* @__PURE__ */ u("div", { className: Ae.gridContainer, children: c.categories.map(
2996
- ({ title: h, color: g }, b) => /* @__PURE__ */ S(
2996
+ ({ title: h, color: g }, y) => /* @__PURE__ */ S(
2997
2997
  "div",
2998
2998
  {
2999
2999
  className: Ae.elementLegendContainer,
@@ -3011,7 +3011,7 @@ const Hl = "_legendContainer_1l2pz_3", Kl = "_closeButton_1l2pz_43", Gl = "_titl
3011
3011
  ] })
3012
3012
  ]
3013
3013
  },
3014
- b
3014
+ y
3015
3015
  )
3016
3016
  ) }),
3017
3017
  c.absolute && c.absolute.noDataColor && /* @__PURE__ */ S("div", { className: Ae.noDataContainer, children: [
@@ -3584,29 +3584,29 @@ function Sc(e, t, n) {
3584
3584
  const r = Yt(dc), [o, s] = le(null), a = Se(), { current: l } = Se({ mapLib: null, map: null });
3585
3585
  J(() => {
3586
3586
  const h = e.mapLib;
3587
- let g = !0, b;
3587
+ let g = !0, y;
3588
3588
  return Promise.resolve(h || n).then((p) => {
3589
3589
  if (!g)
3590
3590
  return;
3591
3591
  if (!p)
3592
3592
  throw new Error("Invalid mapLib");
3593
- const y = "Map" in p ? p : p.default;
3594
- if (!y.Map)
3593
+ const b = "Map" in p ? p : p.default;
3594
+ if (!b.Map)
3595
3595
  throw new Error("Invalid mapLib");
3596
- if (wc(y, e), !y.supported || y.supported(e))
3597
- e.reuseMaps && (b = Kt.reuse(e, a.current)), b || (b = new Kt(y.Map, e, a.current)), l.map = vc(b), l.mapLib = y, s(b), r == null || r.onMapMount(l.map, e.id);
3596
+ if (wc(b, e), !b.supported || b.supported(e))
3597
+ e.reuseMaps && (y = Kt.reuse(e, a.current)), y || (y = new Kt(b.Map, e, a.current)), l.map = vc(y), l.mapLib = b, s(y), r == null || r.onMapMount(l.map, e.id);
3598
3598
  else
3599
3599
  throw new Error("Map is not supported by this browser");
3600
3600
  }).catch((p) => {
3601
- const { onError: y } = e;
3602
- y ? y({
3601
+ const { onError: b } = e;
3602
+ b ? b({
3603
3603
  type: "error",
3604
3604
  target: null,
3605
3605
  originalEvent: null,
3606
3606
  error: p
3607
3607
  }) : console.error(p);
3608
3608
  }), () => {
3609
- g = !1, b && (r == null || r.onMapUnmount(e.id), e.reuseMaps ? b.recycle() : b.destroy());
3609
+ g = !1, y && (r == null || r.onMapUnmount(e.id), e.reuseMaps ? y.recycle() : y.destroy());
3610
3610
  };
3611
3611
  }, []), _c(() => {
3612
3612
  o && o.setProps(e);
@@ -3643,10 +3643,10 @@ function Tc(e, t) {
3643
3643
  Q.Children.forEach(e.children, (k) => {
3644
3644
  k && (f = !0);
3645
3645
  });
3646
- const _ = {
3646
+ const C = {
3647
3647
  ...e,
3648
3648
  element: f ? document.createElement("div") : null
3649
- }, x = new r.Marker(_);
3649
+ }, x = new r.Marker(C);
3650
3650
  return x.setLngLat([e.longitude, e.latitude]), x.getElement().addEventListener("click", (k) => {
3651
3651
  var $, v;
3652
3652
  (v = ($ = o.current.props).onClick) === null || v === void 0 || v.call($, {
@@ -3656,25 +3656,25 @@ function Tc(e, t) {
3656
3656
  });
3657
3657
  }), x.on("dragstart", (k) => {
3658
3658
  var $, v;
3659
- const C = k;
3660
- C.lngLat = s.getLngLat(), (v = ($ = o.current.props).onDragStart) === null || v === void 0 || v.call($, C);
3659
+ const _ = k;
3660
+ _.lngLat = s.getLngLat(), (v = ($ = o.current.props).onDragStart) === null || v === void 0 || v.call($, _);
3661
3661
  }), x.on("drag", (k) => {
3662
3662
  var $, v;
3663
- const C = k;
3664
- C.lngLat = s.getLngLat(), (v = ($ = o.current.props).onDrag) === null || v === void 0 || v.call($, C);
3663
+ const _ = k;
3664
+ _.lngLat = s.getLngLat(), (v = ($ = o.current.props).onDrag) === null || v === void 0 || v.call($, _);
3665
3665
  }), x.on("dragend", (k) => {
3666
3666
  var $, v;
3667
- const C = k;
3668
- C.lngLat = s.getLngLat(), (v = ($ = o.current.props).onDragEnd) === null || v === void 0 || v.call($, C);
3667
+ const _ = k;
3668
+ _.lngLat = s.getLngLat(), (v = ($ = o.current.props).onDragEnd) === null || v === void 0 || v.call($, _);
3669
3669
  }), x;
3670
3670
  }, []);
3671
3671
  J(() => (s.addTo(n.getMap()), () => {
3672
3672
  s.remove();
3673
3673
  }), []);
3674
- const { longitude: a, latitude: l, offset: c, style: d, draggable: h = !1, popup: g = null, rotation: b = 0, rotationAlignment: p = "auto", pitchAlignment: y = "auto" } = e;
3674
+ const { longitude: a, latitude: l, offset: c, style: d, draggable: h = !1, popup: g = null, rotation: y = 0, rotationAlignment: p = "auto", pitchAlignment: b = "auto" } = e;
3675
3675
  return J(() => {
3676
3676
  Mt(s.getElement(), d);
3677
- }, [d]), Yn(t, () => s, []), (s.getLngLat().lng !== a || s.getLngLat().lat !== l) && s.setLngLat([a, l]), c && !fc(s.getOffset(), c) && s.setOffset(c), s.isDraggable() !== h && s.setDraggable(h), s.getRotation() !== b && s.setRotation(b), s.getRotationAlignment() !== p && s.setRotationAlignment(p), s.getPitchAlignment() !== y && s.setPitchAlignment(y), s.getPopup() !== g && s.setPopup(g), Vi(e.children, s.getElement());
3677
+ }, [d]), Yn(t, () => s, []), (s.getLngLat().lng !== a || s.getLngLat().lat !== l) && s.setLngLat([a, l]), c && !fc(s.getOffset(), c) && s.setOffset(c), s.isDraggable() !== h && s.setDraggable(h), s.getRotation() !== y && s.setRotation(y), s.getRotationAlignment() !== p && s.setRotationAlignment(p), s.getPitchAlignment() !== b && s.setPitchAlignment(b), s.getPopup() !== g && s.setPopup(g), Vi(e.children, s.getElement());
3678
3678
  }
3679
3679
  At(Kr(Tc));
3680
3680
  function Io(e) {
@@ -3897,15 +3897,15 @@ const Zc = ({
3897
3897
  sources: d = [],
3898
3898
  layers: h = []
3899
3899
  }) => {
3900
- const g = Se(), [b, p] = le(null), y = Us((f) => f.mapState.showTexts);
3900
+ const g = Se(), [y, p] = le(null), b = Us((f) => f.mapState.showTexts);
3901
3901
  return J(() => {
3902
3902
  if (g.current) {
3903
3903
  const f = g.current.getMap();
3904
3904
  f.getStyle().layers.map((x) => {
3905
- x.type == "symbol" && x.id != "professionals" && (y ? f.setLayoutProperty(x.id, "visibility", "visible") : f.setLayoutProperty(x.id, "visibility", "none"));
3905
+ x.type == "symbol" && x.id != "professionals" && (b ? f.setLayoutProperty(x.id, "visibility", "visible") : f.setLayoutProperty(x.id, "visibility", "none"));
3906
3906
  });
3907
3907
  }
3908
- }, [y]), /* @__PURE__ */ u("div", { className: `${Uc.mapContainer}`, style: s, children: /* @__PURE__ */ S(
3908
+ }, [b]), /* @__PURE__ */ u("div", { className: `${Uc.mapContainer}`, style: s, children: /* @__PURE__ */ S(
3909
3909
  Qi,
3910
3910
  {
3911
3911
  initialViewState: e,
@@ -3917,7 +3917,7 @@ const Zc = ({
3917
3917
  onClick: a,
3918
3918
  interactiveLayerIds: l,
3919
3919
  children: [
3920
- d.length && d.map((f, _) => /* @__PURE__ */ u(ns, { ...f, children: h.length && h.map((x, k) => {
3920
+ d.length && d.map((f, C) => /* @__PURE__ */ u(ns, { ...f, children: h.length && h.map((x, k) => {
3921
3921
  if (x.sourceId == f.id)
3922
3922
  return /* @__PURE__ */ u(
3923
3923
  ts,
@@ -3927,9 +3927,9 @@ const Zc = ({
3927
3927
  },
3928
3928
  k
3929
3929
  );
3930
- }) }, _)),
3930
+ }) }, C)),
3931
3931
  /* @__PURE__ */ u(es, { position: "bottom-right", visualizePitch: !0 }),
3932
- c && b && /* @__PURE__ */ u(
3932
+ c && y && /* @__PURE__ */ u(
3933
3933
  Ji,
3934
3934
  {
3935
3935
  longitude: c.longitude,
@@ -4019,18 +4019,18 @@ const Hc = "_mapContainer_b0pyr_3", Kc = {
4019
4019
  layers: d = [],
4020
4020
  popUpParams: h,
4021
4021
  onClosePopUp: g,
4022
- showTexts: b,
4022
+ showTexts: y,
4023
4023
  hash: p = !1
4024
4024
  }) => {
4025
- const y = Se();
4025
+ const b = Se();
4026
4026
  return J(() => {
4027
- if (y.current) {
4028
- const f = y.current.getMap();
4027
+ if (b.current) {
4028
+ const f = b.current.getMap();
4029
4029
  f.getStyle().layers.map((x) => {
4030
- x.type == "symbol" && x.id != "professionals" && (b ? f.setLayoutProperty(x.id, "visibility", "visible") : f.setLayoutProperty(x.id, "visibility", "none"));
4030
+ x.type == "symbol" && x.id != "professionals" && (y ? f.setLayoutProperty(x.id, "visibility", "visible") : f.setLayoutProperty(x.id, "visibility", "none"));
4031
4031
  });
4032
4032
  }
4033
- }, [b]), J(() => {
4033
+ }, [y]), J(() => {
4034
4034
  let f = new Zs();
4035
4035
  return gr.addProtocol("pmtiles", f.tile), () => {
4036
4036
  gr.removeProtocol("pmtiles");
@@ -4040,7 +4040,7 @@ const Hc = "_mapContainer_b0pyr_3", Kc = {
4040
4040
  {
4041
4041
  mapLib: gr,
4042
4042
  initialViewState: e,
4043
- ref: y,
4043
+ ref: b,
4044
4044
  hash: p,
4045
4045
  maxZoom: t,
4046
4046
  minZoom: n,
@@ -4048,7 +4048,7 @@ const Hc = "_mapContainer_b0pyr_3", Kc = {
4048
4048
  onClick: a,
4049
4049
  interactiveLayerIds: l,
4050
4050
  children: [
4051
- c.length && c.map((f, _) => /* @__PURE__ */ u(ns, { ...f, children: d.length && d.map((x, k) => {
4051
+ c.length && c.map((f, C) => /* @__PURE__ */ u(ns, { ...f, children: d.length && d.map((x, k) => {
4052
4052
  if (x.sourceId == f.id)
4053
4053
  return /* @__PURE__ */ u(
4054
4054
  ts,
@@ -4062,7 +4062,7 @@ const Hc = "_mapContainer_b0pyr_3", Kc = {
4062
4062
  },
4063
4063
  k
4064
4064
  );
4065
- }) }, _)),
4065
+ }) }, C)),
4066
4066
  /* @__PURE__ */ u(es, { position: "bottom-right", visualizePitch: !0 }),
4067
4067
  h && /* @__PURE__ */ u(
4068
4068
  Ji,
@@ -4297,7 +4297,7 @@ function p0(e) {
4297
4297
  className: s
4298
4298
  } = e;
4299
4299
  if (!t) {
4300
- const p = bt(n == null ? void 0 : n.className, s, o == null ? void 0 : o.className, r == null ? void 0 : r.className), y = {
4300
+ const p = bt(n == null ? void 0 : n.className, s, o == null ? void 0 : o.className, r == null ? void 0 : r.className), b = {
4301
4301
  ...n == null ? void 0 : n.style,
4302
4302
  ...o == null ? void 0 : o.style,
4303
4303
  ...r == null ? void 0 : r.style
@@ -4306,7 +4306,7 @@ function p0(e) {
4306
4306
  ...o,
4307
4307
  ...r
4308
4308
  };
4309
- return p.length > 0 && (f.className = p), Object.keys(y).length > 0 && (f.style = y), {
4309
+ return p.length > 0 && (f.className = p), Object.keys(b).length > 0 && (f.style = b), {
4310
4310
  props: f,
4311
4311
  internalRef: void 0
4312
4312
  };
@@ -4319,14 +4319,14 @@ function p0(e) {
4319
4319
  ...n == null ? void 0 : n.style,
4320
4320
  ...o == null ? void 0 : o.style,
4321
4321
  ...r == null ? void 0 : r.style
4322
- }, b = {
4322
+ }, y = {
4323
4323
  ...d,
4324
4324
  ...n,
4325
4325
  ...c,
4326
4326
  ...l
4327
4327
  };
4328
- return h.length > 0 && (b.className = h), Object.keys(g).length > 0 && (b.style = g), {
4329
- props: b,
4328
+ return h.length > 0 && (y.className = h), Object.keys(g).length > 0 && (y.style = g), {
4329
+ props: y,
4330
4330
  internalRef: d.ref
4331
4331
  };
4332
4332
  }
@@ -4537,41 +4537,41 @@ function S0(e) {
4537
4537
  name: d,
4538
4538
  onChange: h,
4539
4539
  onChangeCommitted: g,
4540
- orientation: b = "horizontal",
4540
+ orientation: y = "horizontal",
4541
4541
  rootRef: p,
4542
- scale: y = w0,
4542
+ scale: b = w0,
4543
4543
  step: f = 1,
4544
- shiftStep: _ = 10,
4544
+ shiftStep: C = 10,
4545
4545
  tabIndex: x,
4546
4546
  value: k
4547
- } = e, $ = Q.useRef(void 0), [v, C] = Q.useState(-1), [w, N] = Q.useState(-1), [L, E] = Q.useState(!1), B = Q.useRef(0), V = Q.useRef(null), [m, O] = h0({
4547
+ } = e, $ = Q.useRef(void 0), [v, _] = Q.useState(-1), [w, N] = Q.useState(-1), [L, E] = Q.useState(!1), F = Q.useRef(0), P = Q.useRef(null), [m, O] = h0({
4548
4548
  controlled: k,
4549
4549
  default: n ?? c,
4550
4550
  name: "Slider"
4551
- }), T = h && ((R, F, H) => {
4551
+ }), T = h && ((R, B, H) => {
4552
4552
  const ae = R.nativeEvent || R, be = new ae.constructor(ae.type, ae);
4553
4553
  Object.defineProperty(be, "target", {
4554
4554
  writable: !0,
4555
4555
  value: {
4556
- value: F,
4556
+ value: B,
4557
4557
  name: d
4558
4558
  }
4559
- }), V.current = F, h(be, F, H);
4559
+ }), P.current = B, h(be, B, H);
4560
4560
  }), z = Array.isArray(m);
4561
4561
  let j = z ? m.slice().sort(ss) : [m];
4562
4562
  j = j.map((R) => R == null ? c : Zt(R, c, l));
4563
- const Y = a === !0 && f !== null ? [...Array(Math.floor((l - c) / f) + 1)].map((R, F) => ({
4564
- value: c + f * F
4565
- })) : a || [], W = Y.map((R) => R.value), [ue, D] = Q.useState(-1), M = Q.useRef(null), ee = os(p, M), K = (R) => (F) => {
4563
+ const Y = a === !0 && f !== null ? [...Array(Math.floor((l - c) / f) + 1)].map((R, B) => ({
4564
+ value: c + f * B
4565
+ })) : a || [], W = Y.map((R) => R.value), [ue, D] = Q.useState(-1), M = Q.useRef(null), ee = os(p, M), K = (R) => (B) => {
4566
4566
  var ae;
4567
- const H = Number(F.currentTarget.getAttribute("data-index"));
4568
- Bo(F.target) && D(H), N(H), (ae = R == null ? void 0 : R.onFocus) == null || ae.call(R, F);
4569
- }, P = (R) => (F) => {
4567
+ const H = Number(B.currentTarget.getAttribute("data-index"));
4568
+ Bo(B.target) && D(H), N(H), (ae = R == null ? void 0 : R.onFocus) == null || ae.call(R, B);
4569
+ }, V = (R) => (B) => {
4570
4570
  var H;
4571
- Bo(F.target) || D(-1), N(-1), (H = R == null ? void 0 : R.onBlur) == null || H.call(R, F);
4572
- }, Z = (R, F) => {
4571
+ Bo(B.target) || D(-1), N(-1), (H = R == null ? void 0 : R.onBlur) == null || H.call(R, B);
4572
+ }, Z = (R, B) => {
4573
4573
  const H = Number(R.currentTarget.getAttribute("data-index")), ae = j[H], be = W.indexOf(ae);
4574
- let X = F;
4574
+ let X = B;
4575
4575
  if (Y && f == null) {
4576
4576
  const Me = W[W.length - 1];
4577
4577
  X >= Me ? X = Me : X <= W[0] ? X = W[0] : X = X < ae ? W[be - 1] : W[be + 1];
@@ -4590,16 +4590,16 @@ function S0(e) {
4590
4590
  activeIndex: Ve
4591
4591
  });
4592
4592
  }
4593
- O(X), D(H), T && !An(X, m) && T(R, X, H), g && g(R, V.current ?? X);
4594
- }, ne = (R) => (F) => {
4593
+ O(X), D(H), T && !An(X, m) && T(R, X, H), g && g(R, P.current ?? X);
4594
+ }, ne = (R) => (B) => {
4595
4595
  var H;
4596
- if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(F.key)) {
4597
- F.preventDefault();
4598
- const ae = Number(F.currentTarget.getAttribute("data-index")), be = j[ae];
4596
+ if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(B.key)) {
4597
+ B.preventDefault();
4598
+ const ae = Number(B.currentTarget.getAttribute("data-index")), be = j[ae];
4599
4599
  let X = null;
4600
4600
  if (f != null) {
4601
- const Me = F.shiftKey ? _ : f;
4602
- switch (F.key) {
4601
+ const Me = B.shiftKey ? C : f;
4602
+ switch (B.key) {
4603
4603
  case "ArrowUp":
4604
4604
  X = Pt(be, Me, 1, c, l);
4605
4605
  break;
@@ -4613,10 +4613,10 @@ function S0(e) {
4613
4613
  X = Pt(be, Me, s ? 1 : -1, c, l);
4614
4614
  break;
4615
4615
  case "PageUp":
4616
- X = Pt(be, _, 1, c, l);
4616
+ X = Pt(be, C, 1, c, l);
4617
4617
  break;
4618
4618
  case "PageDown":
4619
- X = Pt(be, _, -1, c, l);
4619
+ X = Pt(be, C, -1, c, l);
4620
4620
  break;
4621
4621
  case "Home":
4622
4622
  X = c;
@@ -4627,25 +4627,25 @@ function S0(e) {
4627
4627
  }
4628
4628
  } else if (Y) {
4629
4629
  const Me = W[W.length - 1], Ve = W.indexOf(be), Oe = [s ? "ArrowRight" : "ArrowLeft", "ArrowDown", "PageDown", "Home"], Ke = [s ? "ArrowLeft" : "ArrowRight", "ArrowUp", "PageUp", "End"];
4630
- Oe.includes(F.key) ? Ve === 0 ? X = W[0] : X = W[Ve - 1] : Ke.includes(F.key) && (Ve === W.length - 1 ? X = Me : X = W[Ve + 1]);
4630
+ Oe.includes(B.key) ? Ve === 0 ? X = W[0] : X = W[Ve - 1] : Ke.includes(B.key) && (Ve === W.length - 1 ? X = Me : X = W[Ve + 1]);
4631
4631
  }
4632
- X != null && Z(F, X);
4632
+ X != null && Z(B, X);
4633
4633
  }
4634
- (H = R == null ? void 0 : R.onKeyDown) == null || H.call(R, F);
4634
+ (H = R == null ? void 0 : R.onKeyDown) == null || H.call(R, B);
4635
4635
  };
4636
4636
  is(() => {
4637
4637
  var R;
4638
4638
  r && M.current.contains(document.activeElement) && ((R = document.activeElement) == null || R.blur());
4639
- }, [r]), r && v !== -1 && C(-1), r && ue !== -1 && D(-1);
4640
- const G = (R) => (F) => {
4639
+ }, [r]), r && v !== -1 && _(-1), r && ue !== -1 && D(-1);
4640
+ const G = (R) => (B) => {
4641
4641
  var H;
4642
- (H = R.onChange) == null || H.call(R, F), Z(F, F.target.valueAsNumber);
4642
+ (H = R.onChange) == null || H.call(R, B), Z(B, B.target.valueAsNumber);
4643
4643
  }, U = Q.useRef(void 0);
4644
- let oe = b;
4645
- s && b === "horizontal" && (oe += "-reverse");
4644
+ let oe = y;
4645
+ s && y === "horizontal" && (oe += "-reverse");
4646
4646
  const te = ({
4647
4647
  finger: R,
4648
- move: F = !1
4648
+ move: B = !1
4649
4649
  }) => {
4650
4650
  const {
4651
4651
  current: H
@@ -4667,23 +4667,23 @@ function S0(e) {
4667
4667
  Oe = Zt(Oe, c, l);
4668
4668
  let Ke = 0;
4669
4669
  if (z) {
4670
- F ? Ke = U.current : Ke = zo(j, Oe), o && (Oe = Zt(Oe, j[Ke - 1] || -1 / 0, j[Ke + 1] || 1 / 0));
4670
+ B ? Ke = U.current : Ke = zo(j, Oe), o && (Oe = Zt(Oe, j[Ke - 1] || -1 / 0, j[Ke + 1] || 1 / 0));
4671
4671
  const Jt = Oe;
4672
4672
  Oe = jo({
4673
4673
  values: j,
4674
4674
  newValue: Oe,
4675
4675
  index: Ke
4676
- }), o && F || (Ke = Oe.indexOf(Jt), U.current = Ke);
4676
+ }), o && B || (Ke = Oe.indexOf(Jt), U.current = Ke);
4677
4677
  }
4678
4678
  return {
4679
4679
  newValue: Oe,
4680
4680
  activeIndex: Ke
4681
4681
  };
4682
4682
  }, de = Tr((R) => {
4683
- const F = En(R, $);
4684
- if (!F)
4683
+ const B = En(R, $);
4684
+ if (!B)
4685
4685
  return;
4686
- if (B.current += 1, R.type === "mousemove" && R.buttons === 0) {
4686
+ if (F.current += 1, R.type === "mousemove" && R.buttons === 0) {
4687
4687
  I(R);
4688
4688
  return;
4689
4689
  }
@@ -4691,31 +4691,31 @@ function S0(e) {
4691
4691
  newValue: H,
4692
4692
  activeIndex: ae
4693
4693
  } = te({
4694
- finger: F,
4694
+ finger: B,
4695
4695
  move: !0
4696
4696
  });
4697
4697
  On({
4698
4698
  sliderRef: M,
4699
4699
  activeIndex: ae,
4700
- setActive: C
4701
- }), O(H), !L && B.current > b0 && E(!0), T && !An(H, m) && T(R, H, ae);
4700
+ setActive: _
4701
+ }), O(H), !L && F.current > b0 && E(!0), T && !An(H, m) && T(R, H, ae);
4702
4702
  }), I = Tr((R) => {
4703
- const F = En(R, $);
4704
- if (E(!1), !F)
4703
+ const B = En(R, $);
4704
+ if (E(!1), !B)
4705
4705
  return;
4706
4706
  const {
4707
4707
  newValue: H
4708
4708
  } = te({
4709
- finger: F,
4709
+ finger: B,
4710
4710
  move: !0
4711
4711
  });
4712
- C(-1), R.type === "touchend" && N(-1), g && g(R, V.current ?? H), $.current = void 0, Ie();
4712
+ _(-1), R.type === "touchend" && N(-1), g && g(R, P.current ?? H), $.current = void 0, Ie();
4713
4713
  }), se = Tr((R) => {
4714
4714
  if (r)
4715
4715
  return;
4716
4716
  qo() || R.preventDefault();
4717
- const F = R.changedTouches[0];
4718
- F != null && ($.current = F.identifier);
4717
+ const B = R.changedTouches[0];
4718
+ B != null && ($.current = B.identifier);
4719
4719
  const H = En(R, $);
4720
4720
  if (H !== !1) {
4721
4721
  const {
@@ -4727,10 +4727,10 @@ function S0(e) {
4727
4727
  On({
4728
4728
  sliderRef: M,
4729
4729
  activeIndex: X,
4730
- setActive: C
4730
+ setActive: _
4731
4731
  }), O(be), T && !An(be, m) && T(R, be, X);
4732
4732
  }
4733
- B.current = 0;
4733
+ F.current = 0;
4734
4734
  const ae = Bn(M.current);
4735
4735
  ae.addEventListener("touchmove", de, {
4736
4736
  passive: !0
@@ -4753,12 +4753,12 @@ function S0(e) {
4753
4753
  }, [Ie, se]), Q.useEffect(() => {
4754
4754
  r && Ie();
4755
4755
  }, [r, Ie]);
4756
- const tt = (R) => (F) => {
4756
+ const tt = (R) => (B) => {
4757
4757
  var be;
4758
- if ((be = R.onMouseDown) == null || be.call(R, F), r || F.defaultPrevented || F.button !== 0)
4758
+ if ((be = R.onMouseDown) == null || be.call(R, B), r || B.defaultPrevented || B.button !== 0)
4759
4759
  return;
4760
- F.preventDefault();
4761
- const H = En(F, $);
4760
+ B.preventDefault();
4761
+ const H = En(B, $);
4762
4762
  if (H !== !1) {
4763
4763
  const {
4764
4764
  newValue: X,
@@ -4769,19 +4769,19 @@ function S0(e) {
4769
4769
  On({
4770
4770
  sliderRef: M,
4771
4771
  activeIndex: Me,
4772
- setActive: C
4773
- }), O(X), T && !An(X, m) && T(F, X, Me);
4772
+ setActive: _
4773
+ }), O(X), T && !An(X, m) && T(B, X, Me);
4774
4774
  }
4775
- B.current = 0;
4775
+ F.current = 0;
4776
4776
  const ae = Bn(M.current);
4777
4777
  ae.addEventListener("mousemove", de, {
4778
4778
  passive: !0
4779
4779
  }), ae.addEventListener("mouseup", I);
4780
4780
  }, q = Zn(z ? j[0] : c, c, l), re = Zn(j[j.length - 1], c, l) - q, we = (R = {}) => {
4781
- const F = Fn(R), H = {
4782
- onMouseDown: tt(F || {})
4781
+ const B = Fn(R), H = {
4782
+ onMouseDown: tt(B || {})
4783
4783
  }, ae = {
4784
- ...F,
4784
+ ...B,
4785
4785
  ...H
4786
4786
  };
4787
4787
  return {
@@ -4789,22 +4789,22 @@ function S0(e) {
4789
4789
  ref: ee,
4790
4790
  ...ae
4791
4791
  };
4792
- }, Ce = (R) => (F) => {
4792
+ }, Ce = (R) => (B) => {
4793
4793
  var ae;
4794
- (ae = R.onMouseOver) == null || ae.call(R, F);
4795
- const H = Number(F.currentTarget.getAttribute("data-index"));
4794
+ (ae = R.onMouseOver) == null || ae.call(R, B);
4795
+ const H = Number(B.currentTarget.getAttribute("data-index"));
4796
4796
  N(H);
4797
- }, Le = (R) => (F) => {
4797
+ }, Le = (R) => (B) => {
4798
4798
  var H;
4799
- (H = R.onMouseLeave) == null || H.call(R, F), N(-1);
4799
+ (H = R.onMouseLeave) == null || H.call(R, B), N(-1);
4800
4800
  }, qe = (R = {}) => {
4801
- const F = Fn(R), H = {
4802
- onMouseOver: Ce(F || {}),
4803
- onMouseLeave: Le(F || {})
4801
+ const B = Fn(R), H = {
4802
+ onMouseOver: Ce(B || {}),
4803
+ onMouseLeave: Le(B || {})
4804
4804
  };
4805
4805
  return {
4806
4806
  ...R,
4807
- ...F,
4807
+ ...B,
4808
4808
  ...H
4809
4809
  };
4810
4810
  }, Je = (R) => ({
@@ -4812,28 +4812,28 @@ function S0(e) {
4812
4812
  pointerEvents: v !== -1 && v !== R ? "none" : void 0
4813
4813
  });
4814
4814
  let _e;
4815
- return b === "vertical" && (_e = s ? "vertical-rl" : "vertical-lr"), {
4815
+ return y === "vertical" && (_e = s ? "vertical-rl" : "vertical-lr"), {
4816
4816
  active: v,
4817
4817
  axis: oe,
4818
4818
  axisProps: x0,
4819
4819
  dragging: L,
4820
4820
  focusedThumbIndex: ue,
4821
4821
  getHiddenInputProps: (R = {}) => {
4822
- const F = Fn(R), H = {
4823
- onChange: G(F || {}),
4824
- onFocus: K(F || {}),
4825
- onBlur: P(F || {}),
4826
- onKeyDown: ne(F || {})
4822
+ const B = Fn(R), H = {
4823
+ onChange: G(B || {}),
4824
+ onFocus: K(B || {}),
4825
+ onBlur: V(B || {}),
4826
+ onKeyDown: ne(B || {})
4827
4827
  }, ae = {
4828
- ...F,
4828
+ ...B,
4829
4829
  ...H
4830
4830
  };
4831
4831
  return {
4832
4832
  tabIndex: x,
4833
4833
  "aria-labelledby": t,
4834
- "aria-orientation": b,
4835
- "aria-valuemax": y(l),
4836
- "aria-valuemin": y(c),
4834
+ "aria-orientation": y,
4835
+ "aria-valuemax": b(l),
4836
+ "aria-valuemin": b(c),
4837
4837
  name: d,
4838
4838
  type: "range",
4839
4839
  min: e.min,
@@ -4887,11 +4887,11 @@ var Wo;
4887
4887
  function k0() {
4888
4888
  if (Wo) return ge;
4889
4889
  Wo = 1;
4890
- var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), b = Symbol.for("react.view_transition"), p = Symbol.for("react.client.reference");
4891
- function y(f) {
4890
+ var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), y = Symbol.for("react.view_transition"), p = Symbol.for("react.client.reference");
4891
+ function b(f) {
4892
4892
  if (typeof f == "object" && f !== null) {
4893
- var _ = f.$$typeof;
4894
- switch (_) {
4893
+ var C = f.$$typeof;
4894
+ switch (C) {
4895
4895
  case e:
4896
4896
  switch (f = f.type, f) {
4897
4897
  case n:
@@ -4899,7 +4899,7 @@ function k0() {
4899
4899
  case r:
4900
4900
  case c:
4901
4901
  case d:
4902
- case b:
4902
+ case y:
4903
4903
  return f;
4904
4904
  default:
4905
4905
  switch (f = f && f.$$typeof, f) {
@@ -4911,41 +4911,41 @@ function k0() {
4911
4911
  case s:
4912
4912
  return f;
4913
4913
  default:
4914
- return _;
4914
+ return C;
4915
4915
  }
4916
4916
  }
4917
4917
  case t:
4918
- return _;
4918
+ return C;
4919
4919
  }
4920
4920
  }
4921
4921
  }
4922
4922
  return ge.ContextConsumer = s, ge.ContextProvider = a, ge.Element = e, ge.ForwardRef = l, ge.Fragment = n, ge.Lazy = g, ge.Memo = h, ge.Portal = t, ge.Profiler = o, ge.StrictMode = r, ge.Suspense = c, ge.SuspenseList = d, ge.isContextConsumer = function(f) {
4923
- return y(f) === s;
4923
+ return b(f) === s;
4924
4924
  }, ge.isContextProvider = function(f) {
4925
- return y(f) === a;
4925
+ return b(f) === a;
4926
4926
  }, ge.isElement = function(f) {
4927
4927
  return typeof f == "object" && f !== null && f.$$typeof === e;
4928
4928
  }, ge.isForwardRef = function(f) {
4929
- return y(f) === l;
4929
+ return b(f) === l;
4930
4930
  }, ge.isFragment = function(f) {
4931
- return y(f) === n;
4931
+ return b(f) === n;
4932
4932
  }, ge.isLazy = function(f) {
4933
- return y(f) === g;
4933
+ return b(f) === g;
4934
4934
  }, ge.isMemo = function(f) {
4935
- return y(f) === h;
4935
+ return b(f) === h;
4936
4936
  }, ge.isPortal = function(f) {
4937
- return y(f) === t;
4937
+ return b(f) === t;
4938
4938
  }, ge.isProfiler = function(f) {
4939
- return y(f) === o;
4939
+ return b(f) === o;
4940
4940
  }, ge.isStrictMode = function(f) {
4941
- return y(f) === r;
4941
+ return b(f) === r;
4942
4942
  }, ge.isSuspense = function(f) {
4943
- return y(f) === c;
4943
+ return b(f) === c;
4944
4944
  }, ge.isSuspenseList = function(f) {
4945
- return y(f) === d;
4945
+ return b(f) === d;
4946
4946
  }, ge.isValidElementType = function(f) {
4947
4947
  return typeof f == "string" || typeof f == "function" || f === n || f === o || f === r || f === c || f === d || typeof f == "object" && f !== null && (f.$$typeof === g || f.$$typeof === h || f.$$typeof === a || f.$$typeof === s || f.$$typeof === l || f.$$typeof === p || f.getModuleId !== void 0);
4948
- }, ge.typeOf = y, ge;
4948
+ }, ge.typeOf = b, ge;
4949
4949
  }
4950
4950
  var ye = {};
4951
4951
  /**
@@ -4962,8 +4962,8 @@ function T0() {
4962
4962
  return Uo || (Uo = 1, process.env.NODE_ENV !== "production" && function() {
4963
4963
  function e(f) {
4964
4964
  if (typeof f == "object" && f !== null) {
4965
- var _ = f.$$typeof;
4966
- switch (_) {
4965
+ var C = f.$$typeof;
4966
+ switch (C) {
4967
4967
  case t:
4968
4968
  switch (f = f.type, f) {
4969
4969
  case r:
@@ -4977,22 +4977,22 @@ function T0() {
4977
4977
  switch (f = f && f.$$typeof, f) {
4978
4978
  case l:
4979
4979
  case c:
4980
- case b:
4980
+ case y:
4981
4981
  case g:
4982
4982
  return f;
4983
4983
  case a:
4984
4984
  return f;
4985
4985
  default:
4986
- return _;
4986
+ return C;
4987
4987
  }
4988
4988
  }
4989
4989
  case n:
4990
- return _;
4990
+ return C;
4991
4991
  }
4992
4992
  }
4993
4993
  }
4994
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition"), y = Symbol.for("react.client.reference");
4995
- ye.ContextConsumer = a, ye.ContextProvider = l, ye.Element = t, ye.ForwardRef = c, ye.Fragment = r, ye.Lazy = b, ye.Memo = g, ye.Portal = n, ye.Profiler = s, ye.StrictMode = o, ye.Suspense = d, ye.SuspenseList = h, ye.isContextConsumer = function(f) {
4994
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
4995
+ ye.ContextConsumer = a, ye.ContextProvider = l, ye.Element = t, ye.ForwardRef = c, ye.Fragment = r, ye.Lazy = y, ye.Memo = g, ye.Portal = n, ye.Profiler = s, ye.StrictMode = o, ye.Suspense = d, ye.SuspenseList = h, ye.isContextConsumer = function(f) {
4996
4996
  return e(f) === a;
4997
4997
  }, ye.isContextProvider = function(f) {
4998
4998
  return e(f) === l;
@@ -5003,7 +5003,7 @@ function T0() {
5003
5003
  }, ye.isFragment = function(f) {
5004
5004
  return e(f) === r;
5005
5005
  }, ye.isLazy = function(f) {
5006
- return e(f) === b;
5006
+ return e(f) === y;
5007
5007
  }, ye.isMemo = function(f) {
5008
5008
  return e(f) === g;
5009
5009
  }, ye.isPortal = function(f) {
@@ -5017,7 +5017,7 @@ function T0() {
5017
5017
  }, ye.isSuspenseList = function(f) {
5018
5018
  return e(f) === h;
5019
5019
  }, ye.isValidElementType = function(f) {
5020
- return typeof f == "string" || typeof f == "function" || f === r || f === s || f === o || f === d || f === h || typeof f == "object" && f !== null && (f.$$typeof === b || f.$$typeof === g || f.$$typeof === l || f.$$typeof === a || f.$$typeof === c || f.$$typeof === y || f.getModuleId !== void 0);
5020
+ return typeof f == "string" || typeof f == "function" || f === r || f === s || f === o || f === d || f === h || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === g || f.$$typeof === l || f.$$typeof === a || f.$$typeof === c || f.$$typeof === b || f.getModuleId !== void 0);
5021
5021
  }, ye.typeOf = e;
5022
5022
  }()), ye;
5023
5023
  }
@@ -5190,9 +5190,9 @@ function $e(e) {
5190
5190
  return null;
5191
5191
  const l = a[t], c = a.theme, d = Jn(c, r) || {};
5192
5192
  return dt(a, l, (g) => {
5193
- let b = Kn(d, o, g);
5194
- return g === b && typeof g == "string" && (b = Kn(d, o, `${t}${g === "default" ? "" : et(g)}`, g)), n === !1 ? b : {
5195
- [n]: b
5193
+ let y = Kn(d, o, g);
5194
+ return g === y && typeof g == "string" && (y = Kn(d, o, `${t}${g === "default" ? "" : et(g)}`, g)), n === !1 ? y : {
5195
+ [n]: y
5196
5196
  };
5197
5197
  });
5198
5198
  };
@@ -5748,10 +5748,10 @@ function b2() {
5748
5748
  return {
5749
5749
  [n]: r
5750
5750
  };
5751
- const b = Jn(o, d) || {};
5752
- return g ? g(a) : dt(a, r, (y) => {
5753
- let f = Kn(b, h, y);
5754
- return y === f && typeof y == "string" && (f = Kn(b, h, `${n}${y === "default" ? "" : et(y)}`, y)), c === !1 ? f : {
5751
+ const y = Jn(o, d) || {};
5752
+ return g ? g(a) : dt(a, r, (b) => {
5753
+ let f = Kn(y, h, b);
5754
+ return b === f && typeof b == "string" && (f = Kn(y, h, `${n}${b === "default" ? "" : et(b)}`, b)), c === !1 ? f : {
5755
5755
  [c]: f
5756
5756
  };
5757
5757
  });
@@ -5774,30 +5774,30 @@ function b2() {
5774
5774
  if (!d)
5775
5775
  return null;
5776
5776
  const h = L0(o.breakpoints), g = Object.keys(h);
5777
- let b = h;
5777
+ let y = h;
5778
5778
  return Object.keys(d).forEach((p) => {
5779
- const y = y2(d[p], o);
5780
- if (y != null)
5781
- if (typeof y == "object")
5779
+ const b = y2(d[p], o);
5780
+ if (b != null)
5781
+ if (typeof b == "object")
5782
5782
  if (a[p])
5783
- b = fn(b, e(p, y, o, a));
5783
+ y = fn(y, e(p, b, o, a));
5784
5784
  else {
5785
5785
  const f = dt({
5786
5786
  theme: o
5787
- }, y, (_) => ({
5788
- [p]: _
5787
+ }, b, (C) => ({
5788
+ [p]: C
5789
5789
  }));
5790
- g2(f, y) ? b[p] = t({
5791
- sx: y,
5790
+ g2(f, b) ? y[p] = t({
5791
+ sx: b,
5792
5792
  theme: o,
5793
5793
  nested: !0
5794
- }) : b = fn(b, f);
5794
+ }) : y = fn(y, f);
5795
5795
  }
5796
5796
  else
5797
- b = fn(b, e(p, y, o, a));
5797
+ y = fn(y, e(p, b, o, a));
5798
5798
  }), !s && o.modularCssLayers ? {
5799
- "@layer sx": Ho(o, Go(g, b))
5800
- } : Ho(o, Go(g, b));
5799
+ "@layer sx": Ho(o, Go(g, y))
5800
+ } : Ho(o, Go(g, y));
5801
5801
  }
5802
5802
  return Array.isArray(r) ? r.map(l) : l(r);
5803
5803
  }
@@ -6046,22 +6046,22 @@ function E2(e) {
6046
6046
  step: r = 5,
6047
6047
  ...o
6048
6048
  } = e, s = N2(t), a = Object.keys(s);
6049
- function l(b) {
6050
- return `@media (min-width:${typeof t[b] == "number" ? t[b] : b}${n})`;
6049
+ function l(y) {
6050
+ return `@media (min-width:${typeof t[y] == "number" ? t[y] : y}${n})`;
6051
6051
  }
6052
- function c(b) {
6053
- return `@media (max-width:${(typeof t[b] == "number" ? t[b] : b) - r / 100}${n})`;
6052
+ function c(y) {
6053
+ return `@media (max-width:${(typeof t[y] == "number" ? t[y] : y) - r / 100}${n})`;
6054
6054
  }
6055
- function d(b, p) {
6056
- const y = a.indexOf(p);
6057
- return `@media (min-width:${typeof t[b] == "number" ? t[b] : b}${n}) and (max-width:${(y !== -1 && typeof t[a[y]] == "number" ? t[a[y]] : p) - r / 100}${n})`;
6055
+ function d(y, p) {
6056
+ const b = a.indexOf(p);
6057
+ return `@media (min-width:${typeof t[y] == "number" ? t[y] : y}${n}) and (max-width:${(b !== -1 && typeof t[a[b]] == "number" ? t[a[b]] : p) - r / 100}${n})`;
6058
6058
  }
6059
- function h(b) {
6060
- return a.indexOf(b) + 1 < a.length ? d(b, a[a.indexOf(b) + 1]) : l(b);
6059
+ function h(y) {
6060
+ return a.indexOf(y) + 1 < a.length ? d(y, a[a.indexOf(y) + 1]) : l(y);
6061
6061
  }
6062
- function g(b) {
6063
- const p = a.indexOf(b);
6064
- return p === 0 ? l(a[1]) : p === a.length - 1 ? c(a[p]) : d(b, a[a.indexOf(b) + 1]).replace("@media", "@media not all and");
6062
+ function g(y) {
6063
+ const p = a.indexOf(y);
6064
+ return p === 0 ? l(a[1]) : p === a.length - 1 ? c(a[p]) : d(y, a[a.indexOf(y) + 1]).replace("@media", "@media not all and");
6065
6065
  }
6066
6066
  return {
6067
6067
  keys: a,
@@ -6281,22 +6281,22 @@ function B2(e = {}) {
6281
6281
  name: d,
6282
6282
  slot: h,
6283
6283
  skipVariantsResolver: g,
6284
- skipSx: b,
6284
+ skipSx: y,
6285
6285
  // TODO v6: remove `lowercaseFirstLetter()` in the next major release
6286
6286
  // For more details: https://github.com/mui/material-ui/pull/37908
6287
6287
  overridesResolver: p = V2(hs(h)),
6288
- ...y
6289
- } = c, f = d && d.startsWith("Mui") || h ? "components" : "custom", _ = g !== void 0 ? g : (
6288
+ ...b
6289
+ } = c, f = d && d.startsWith("Mui") || h ? "components" : "custom", C = g !== void 0 ? g : (
6290
6290
  // TODO v6: remove `Root` in the next major release
6291
6291
  // For more details: https://github.com/mui/material-ui/pull/37908
6292
6292
  h && h !== "Root" && h !== "root" || !1
6293
- ), x = b || !1;
6293
+ ), x = y || !1;
6294
6294
  let k = Nr;
6295
6295
  h === "Root" || h === "root" ? k = r : h ? k = o : W2(l) && (k = void 0);
6296
6296
  const $ = T2(l, {
6297
6297
  shouldForwardProp: k,
6298
6298
  label: j2(d, h),
6299
- ...y
6299
+ ...b
6300
6300
  }), v = (w) => {
6301
6301
  if (w.__emotion_real === w)
6302
6302
  return w;
@@ -6311,7 +6311,7 @@ function B2(e = {}) {
6311
6311
  };
6312
6312
  }
6313
6313
  return w;
6314
- }, C = (...w) => {
6314
+ }, _ = (...w) => {
6315
6315
  const N = [], L = w.map(v), E = [];
6316
6316
  if (N.push(s), d && p && E.push(function(O) {
6317
6317
  var Y, W;
@@ -6322,7 +6322,7 @@ function B2(e = {}) {
6322
6322
  for (const ue in z)
6323
6323
  j[ue] = zn(O, z[ue], O.theme.modularCssLayers ? "theme" : void 0);
6324
6324
  return p(O, j);
6325
- }), d && !_ && E.push(function(O) {
6325
+ }), d && !C && E.push(function(O) {
6326
6326
  var j, Y;
6327
6327
  const T = O.theme, z = (Y = (j = T == null ? void 0 : T.components) == null ? void 0 : j[d]) == null ? void 0 : Y.variants;
6328
6328
  return z ? ms(O, z, [], O.theme.modularCssLayers ? "theme" : void 0) : null;
@@ -6331,10 +6331,10 @@ function B2(e = {}) {
6331
6331
  let z;
6332
6332
  z = [...O, ...m, ...T], z.raw = [...O, ...m.raw, ...T], N.unshift(z);
6333
6333
  }
6334
- const B = [...N, ...L, ...E], V = $(...B);
6335
- return l.muiName && (V.muiName = l.muiName), process.env.NODE_ENV !== "production" && (V.displayName = z2(d, h, l)), V;
6334
+ const F = [...N, ...L, ...E], P = $(...F);
6335
+ return l.muiName && (P.muiName = l.muiName), process.env.NODE_ENV !== "production" && (P.displayName = z2(d, h, l)), P;
6336
6336
  };
6337
- return $.withConfig && (C.withConfig = $.withConfig), C;
6337
+ return $.withConfig && (_.withConfig = $.withConfig), _;
6338
6338
  };
6339
6339
  }
6340
6340
  function z2(e, t, n) {
@@ -6613,42 +6613,42 @@ function t1(e, t = {}) {
6613
6613
  } = e, {
6614
6614
  vars: h,
6615
6615
  css: g,
6616
- varsWithDefaults: b
6616
+ varsWithDefaults: y
6617
6617
  } = Er(d, t);
6618
- let p = b;
6619
- const y = {}, {
6618
+ let p = y;
6619
+ const b = {}, {
6620
6620
  [c]: f,
6621
- ..._
6621
+ ...C
6622
6622
  } = a;
6623
- if (Object.entries(_ || {}).forEach(([v, C]) => {
6623
+ if (Object.entries(C || {}).forEach(([v, _]) => {
6624
6624
  const {
6625
6625
  vars: w,
6626
6626
  css: N,
6627
6627
  varsWithDefaults: L
6628
- } = Er(C, t);
6629
- p = He(p, L), y[v] = {
6628
+ } = Er(_, t);
6629
+ p = He(p, L), b[v] = {
6630
6630
  css: N,
6631
6631
  vars: w
6632
6632
  };
6633
6633
  }), f) {
6634
6634
  const {
6635
6635
  css: v,
6636
- vars: C,
6636
+ vars: _,
6637
6637
  varsWithDefaults: w
6638
6638
  } = Er(f, t);
6639
- p = He(p, w), y[c] = {
6639
+ p = He(p, w), b[c] = {
6640
6640
  css: v,
6641
- vars: C
6641
+ vars: _
6642
6642
  };
6643
6643
  }
6644
- function x(v, C) {
6644
+ function x(v, _) {
6645
6645
  var N, L;
6646
6646
  let w = o;
6647
6647
  if (o === "class" && (w = ".%s"), o === "data" && (w = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (w = `[${o}="%s"]`), v) {
6648
6648
  if (w === "media")
6649
6649
  return e.defaultColorScheme === v ? ":root" : {
6650
6650
  [`@media (prefers-color-scheme: ${((L = (N = a[v]) == null ? void 0 : N.palette) == null ? void 0 : L.mode) || v})`]: {
6651
- ":root": C
6651
+ ":root": _
6652
6652
  }
6653
6653
  };
6654
6654
  if (w)
@@ -6662,53 +6662,53 @@ function t1(e, t = {}) {
6662
6662
  let v = {
6663
6663
  ...h
6664
6664
  };
6665
- return Object.entries(y).forEach(([, {
6666
- vars: C
6665
+ return Object.entries(b).forEach(([, {
6666
+ vars: _
6667
6667
  }]) => {
6668
- v = He(v, C);
6668
+ v = He(v, _);
6669
6669
  }), v;
6670
6670
  },
6671
6671
  generateStyleSheets: () => {
6672
- var E, B;
6673
- const v = [], C = e.defaultColorScheme || "light";
6674
- function w(V, m) {
6675
- Object.keys(m).length && v.push(typeof V == "string" ? {
6676
- [V]: {
6672
+ var E, F;
6673
+ const v = [], _ = e.defaultColorScheme || "light";
6674
+ function w(P, m) {
6675
+ Object.keys(m).length && v.push(typeof P == "string" ? {
6676
+ [P]: {
6677
6677
  ...m
6678
6678
  }
6679
- } : V);
6679
+ } : P);
6680
6680
  }
6681
6681
  w(n(void 0, {
6682
6682
  ...g
6683
6683
  }), g);
6684
6684
  const {
6685
- [C]: N,
6685
+ [_]: N,
6686
6686
  ...L
6687
- } = y;
6687
+ } = b;
6688
6688
  if (N) {
6689
6689
  const {
6690
- css: V
6691
- } = N, m = (B = (E = a[C]) == null ? void 0 : E.palette) == null ? void 0 : B.mode, O = !r && m ? {
6690
+ css: P
6691
+ } = N, m = (F = (E = a[_]) == null ? void 0 : E.palette) == null ? void 0 : F.mode, O = !r && m ? {
6692
6692
  colorScheme: m,
6693
- ...V
6693
+ ...P
6694
6694
  } : {
6695
- ...V
6695
+ ...P
6696
6696
  };
6697
- w(n(C, {
6697
+ w(n(_, {
6698
6698
  ...O
6699
6699
  }), O);
6700
6700
  }
6701
- return Object.entries(L).forEach(([V, {
6701
+ return Object.entries(L).forEach(([P, {
6702
6702
  css: m
6703
6703
  }]) => {
6704
6704
  var z, j;
6705
- const O = (j = (z = a[V]) == null ? void 0 : z.palette) == null ? void 0 : j.mode, T = !r && O ? {
6705
+ const O = (j = (z = a[P]) == null ? void 0 : z.palette) == null ? void 0 : j.mode, T = !r && O ? {
6706
6706
  colorScheme: O,
6707
6707
  ...m
6708
6708
  } : {
6709
6709
  ...m
6710
6710
  };
6711
- w(n(V, {
6711
+ w(n(P, {
6712
6712
  ...T
6713
6713
  }), T);
6714
6714
  }), s && v.push({
@@ -6941,32 +6941,32 @@ function oo(e) {
6941
6941
  colorSpace: o,
6942
6942
  ...s
6943
6943
  } = e, a = e.primary || o1(t), l = e.secondary || i1(t), c = e.error || s1(t), d = e.info || a1(t), h = e.success || l1(t), g = e.warning || c1(t);
6944
- function b(_) {
6944
+ function y(C) {
6945
6945
  if (o)
6946
- return u1(_);
6947
- const x = ri(_, Wr.text.primary) >= n ? Wr.text.primary : vs.text.primary;
6946
+ return u1(C);
6947
+ const x = ri(C, Wr.text.primary) >= n ? Wr.text.primary : vs.text.primary;
6948
6948
  if (process.env.NODE_ENV !== "production") {
6949
- const k = ri(_, x);
6950
- k < 3 && console.error([`MUI: The contrast ratio of ${k}:1 for ${x} on ${_}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
6949
+ const k = ri(C, x);
6950
+ k < 3 && console.error([`MUI: The contrast ratio of ${k}:1 for ${x} on ${C}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
6951
6951
  `));
6952
6952
  }
6953
6953
  return x;
6954
6954
  }
6955
6955
  const p = ({
6956
- color: _,
6956
+ color: C,
6957
6957
  name: x,
6958
6958
  mainShade: k = 500,
6959
6959
  lightShade: $ = 300,
6960
6960
  darkShade: v = 700
6961
6961
  }) => {
6962
- if (_ = {
6963
- ..._
6964
- }, !_.main && _[k] && (_.main = _[k]), !_.hasOwnProperty("main"))
6962
+ if (C = {
6963
+ ...C
6964
+ }, !C.main && C[k] && (C.main = C[k]), !C.hasOwnProperty("main"))
6965
6965
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
6966
6966
  The color object needs to have a \`main\` property or a \`${k}\` property.` : Et(11, x ? ` (${x})` : "", k));
6967
- if (typeof _.main != "string")
6967
+ if (typeof C.main != "string")
6968
6968
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
6969
- \`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
6969
+ \`color.main\` should be a string, but \`${JSON.stringify(C.main)}\` was provided instead.
6970
6970
 
6971
6971
  Did you intend to use one of the following approaches?
6972
6972
 
@@ -6978,11 +6978,11 @@ const theme1 = createTheme({ palette: {
6978
6978
 
6979
6979
  const theme2 = createTheme({ palette: {
6980
6980
  primary: { main: green[500] },
6981
- } });` : Et(12, x ? ` (${x})` : "", JSON.stringify(_.main)));
6982
- return o ? (ai(o, _, "light", $, r), ai(o, _, "dark", v, r)) : (si(_, "light", $, r), si(_, "dark", v, r)), _.contrastText || (_.contrastText = b(_.main)), _;
6981
+ } });` : Et(12, x ? ` (${x})` : "", JSON.stringify(C.main)));
6982
+ return o ? (ai(o, C, "light", $, r), ai(o, C, "dark", v, r)) : (si(C, "light", $, r), si(C, "dark", v, r)), C.contrastText || (C.contrastText = y(C.main)), C;
6983
6983
  };
6984
- let y;
6985
- return t === "light" ? y = bs() : t === "dark" && (y = Cs()), process.env.NODE_ENV !== "production" && (y || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), He({
6984
+ let b;
6985
+ return t === "light" ? b = bs() : t === "dark" && (b = Cs()), process.env.NODE_ENV !== "production" && (b || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), He({
6986
6986
  // A collection of common colors.
6987
6987
  common: {
6988
6988
  ...mn
@@ -7029,7 +7029,7 @@ const theme2 = createTheme({ palette: {
7029
7029
  // the background and the text.
7030
7030
  contrastThreshold: n,
7031
7031
  // Takes a background color and returns the text color that maximizes the contrast.
7032
- getContrastText: b,
7032
+ getContrastText: y,
7033
7033
  // Generate a rich color object.
7034
7034
  augmentColor: p,
7035
7035
  // Used by the functions below to shift a color's luminance by approximately
@@ -7037,7 +7037,7 @@ const theme2 = createTheme({ palette: {
7037
7037
  // E.g., shift from Red 500 to Red 300 or Red 700.
7038
7038
  tonalOffset: r,
7039
7039
  // The light and dark mode object.
7040
- ...y
7040
+ ...b
7041
7041
  }, s);
7042
7042
  }
7043
7043
  function d1(e) {
@@ -7088,9 +7088,9 @@ function m1(e, t) {
7088
7088
  ...g
7089
7089
  } = typeof t == "function" ? t(e) : t;
7090
7090
  process.env.NODE_ENV !== "production" && (typeof r != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof c != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
7091
- const b = r / 14, p = h || ((_) => `${_ / c * b}rem`), y = (_, x, k, $, v) => ({
7091
+ const y = r / 14, p = h || ((C) => `${C / c * y}rem`), b = (C, x, k, $, v) => ({
7092
7092
  fontFamily: n,
7093
- fontWeight: _,
7093
+ fontWeight: C,
7094
7094
  fontSize: p(x),
7095
7095
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
7096
7096
  lineHeight: k,
@@ -7102,19 +7102,19 @@ function m1(e, t) {
7102
7102
  ...v,
7103
7103
  ...d
7104
7104
  }), f = {
7105
- h1: y(o, 96, 1.167, -1.5),
7106
- h2: y(o, 60, 1.2, -0.5),
7107
- h3: y(s, 48, 1.167, 0),
7108
- h4: y(s, 34, 1.235, 0.25),
7109
- h5: y(s, 24, 1.334, 0),
7110
- h6: y(a, 20, 1.6, 0.15),
7111
- subtitle1: y(s, 16, 1.75, 0.15),
7112
- subtitle2: y(a, 14, 1.57, 0.1),
7113
- body1: y(s, 16, 1.5, 0.15),
7114
- body2: y(s, 14, 1.43, 0.15),
7115
- button: y(a, 14, 1.75, 0.4, li),
7116
- caption: y(s, 12, 1.66, 0.4),
7117
- overline: y(s, 12, 2.66, 1, li),
7105
+ h1: b(o, 96, 1.167, -1.5),
7106
+ h2: b(o, 60, 1.2, -0.5),
7107
+ h3: b(s, 48, 1.167, 0),
7108
+ h4: b(s, 34, 1.235, 0.25),
7109
+ h5: b(s, 24, 1.334, 0),
7110
+ h6: b(a, 20, 1.6, 0.15),
7111
+ subtitle1: b(s, 16, 1.75, 0.15),
7112
+ subtitle2: b(a, 14, 1.57, 0.1),
7113
+ body1: b(s, 16, 1.5, 0.15),
7114
+ body2: b(s, 14, 1.43, 0.15),
7115
+ button: b(a, 14, 1.75, 0.4, li),
7116
+ caption: b(s, 12, 1.66, 0.4),
7117
+ overline: b(s, 12, 2.66, 1, li),
7118
7118
  // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
7119
7119
  inherit: {
7120
7120
  fontFamily: "inherit",
@@ -7193,7 +7193,7 @@ function x1(e) {
7193
7193
  ...d
7194
7194
  } = s;
7195
7195
  if (process.env.NODE_ENV !== "production") {
7196
- const h = (b) => typeof b == "string", g = (b) => !Number.isNaN(parseFloat(b));
7196
+ const h = (y) => typeof y == "string", g = (y) => !Number.isNaN(parseFloat(y));
7197
7197
  !h(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !g(a) && !h(a) && console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`), h(l) || console.error('MUI: Argument "easing" must be a string.'), !g(c) && !h(c) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof s != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
7198
7198
  `)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
7199
7199
  }
@@ -7288,9 +7288,9 @@ function Ur(e = {}, ...t) {
7288
7288
  const g = oo({
7289
7289
  ...s,
7290
7290
  colorSpace: d
7291
- }), b = ds(e);
7292
- let p = He(b, {
7293
- mixins: f1(b.breakpoints, r),
7291
+ }), y = ds(e);
7292
+ let p = He(y, {
7293
+ mixins: f1(y.breakpoints, r),
7294
7294
  palette: g,
7295
7295
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
7296
7296
  shadows: b1.slice(),
@@ -7300,28 +7300,28 @@ function Ur(e = {}, ...t) {
7300
7300
  ...w1
7301
7301
  }
7302
7302
  });
7303
- if (p = He(p, h), p = t.reduce((y, f) => He(y, f), p), process.env.NODE_ENV !== "production") {
7304
- const y = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (_, x) => {
7303
+ if (p = He(p, h), p = t.reduce((b, f) => He(b, f), p), process.env.NODE_ENV !== "production") {
7304
+ const b = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (C, x) => {
7305
7305
  let k;
7306
- for (k in _) {
7307
- const $ = _[k];
7308
- if (y.includes(k) && Object.keys($).length > 0) {
7306
+ for (k in C) {
7307
+ const $ = C[k];
7308
+ if (b.includes(k) && Object.keys($).length > 0) {
7309
7309
  if (process.env.NODE_ENV !== "production") {
7310
7310
  const v = no("", k);
7311
- console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${k}\` internal state.`, "You can not override it like this: ", JSON.stringify(_, null, 2), "", `Instead, you need to use the '&.${v}' syntax:`, JSON.stringify({
7311
+ console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${k}\` internal state.`, "You can not override it like this: ", JSON.stringify(C, null, 2), "", `Instead, you need to use the '&.${v}' syntax:`, JSON.stringify({
7312
7312
  root: {
7313
7313
  [`&.${v}`]: $
7314
7314
  }
7315
7315
  }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
7316
7316
  `));
7317
7317
  }
7318
- _[k] = {};
7318
+ C[k] = {};
7319
7319
  }
7320
7320
  }
7321
7321
  };
7322
- Object.keys(p.components).forEach((_) => {
7323
- const x = p.components[_].styleOverrides;
7324
- x && _.startsWith("Mui") && f(x, _);
7322
+ Object.keys(p.components).forEach((C) => {
7323
+ const x = p.components[C].styleOverrides;
7324
+ x && C.startsWith("Mui") && f(x, C);
7325
7325
  });
7326
7326
  }
7327
7327
  return p.unstable_sxConfig = {
@@ -7495,37 +7495,37 @@ function I1(e = {}, ...t) {
7495
7495
  colorSchemeSelector: c = n.light && n.dark ? "media" : void 0,
7496
7496
  rootSelector: d = ":root",
7497
7497
  ...h
7498
- } = e, g = Object.keys(n)[0], b = r || (n.light && g !== "light" ? "light" : g), p = D1(s), {
7499
- [b]: y,
7498
+ } = e, g = Object.keys(n)[0], y = r || (n.light && g !== "light" ? "light" : g), p = D1(s), {
7499
+ [y]: b,
7500
7500
  light: f,
7501
- dark: _,
7501
+ dark: C,
7502
7502
  ...x
7503
7503
  } = n, k = {
7504
7504
  ...x
7505
7505
  };
7506
- let $ = y;
7507
- if ((b === "dark" && !("dark" in n) || b === "light" && !("light" in n)) && ($ = !0), !$)
7508
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${b}\` option is either missing or invalid.` : Et(21, b));
7506
+ let $ = b;
7507
+ if ((y === "dark" && !("dark" in n) || y === "light" && !("light" in n)) && ($ = !0), !$)
7508
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${y}\` option is either missing or invalid.` : Et(21, y));
7509
7509
  let v;
7510
7510
  a && (v = "oklch");
7511
- const C = Or(v, k, $, h, b);
7512
- f && !k.light && Or(v, k, f, void 0, "light"), _ && !k.dark && Or(v, k, _, void 0, "dark");
7511
+ const _ = Or(v, k, $, h, y);
7512
+ f && !k.light && Or(v, k, f, void 0, "light"), C && !k.dark && Or(v, k, C, void 0, "dark");
7513
7513
  let w = {
7514
- defaultColorScheme: b,
7515
- ...C,
7514
+ defaultColorScheme: y,
7515
+ ..._,
7516
7516
  cssVarPrefix: s,
7517
7517
  colorSchemeSelector: c,
7518
7518
  rootSelector: d,
7519
7519
  getCssVar: p,
7520
7520
  colorSchemes: k,
7521
7521
  font: {
7522
- ...d1(C.typography),
7523
- ...C.font
7522
+ ...d1(_.typography),
7523
+ ..._.font
7524
7524
  },
7525
7525
  spacing: R1(h.spacing)
7526
7526
  };
7527
- Object.keys(w.colorSchemes).forEach((V) => {
7528
- const m = w.colorSchemes[V].palette, O = (z) => {
7527
+ Object.keys(w.colorSchemes).forEach((P) => {
7528
+ const m = w.colorSchemes[P].palette, O = (z) => {
7529
7529
  const j = z.split("-"), Y = j[1], W = j[2];
7530
7530
  return p(z, m[Y][W]);
7531
7531
  };
@@ -7551,7 +7551,7 @@ function I1(e = {}, ...t) {
7551
7551
  const j = m[z];
7552
7552
  z !== "tonalOffset" && !a && j && typeof j == "object" && (j.main && A(m[z], "mainChannel", ln(cn(j.main))), j.light && A(m[z], "lightChannel", ln(cn(j.light))), j.dark && A(m[z], "darkChannel", ln(cn(j.dark))), j.contrastText && A(m[z], "contrastTextChannel", ln(cn(j.contrastText))), z === "text" && (it(m[z], "primary"), it(m[z], "secondary")), z === "action" && (j.active && it(m[z], "active"), j.selected && it(m[z], "selected")));
7553
7553
  });
7554
- }), w = t.reduce((V, m) => He(V, m), w);
7554
+ }), w = t.reduce((P, m) => He(P, m), w);
7555
7555
  const N = {
7556
7556
  prefix: s,
7557
7557
  disableCssColorScheme: o,
@@ -7561,11 +7561,11 @@ function I1(e = {}, ...t) {
7561
7561
  }, {
7562
7562
  vars: L,
7563
7563
  generateThemeVars: E,
7564
- generateStyleSheets: B
7564
+ generateStyleSheets: F
7565
7565
  } = t1(w, N);
7566
- return w.vars = L, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([V, m]) => {
7567
- w[V] = m;
7568
- }), w.generateThemeVars = E, w.generateStyleSheets = B, w.generateSpacing = function() {
7566
+ return w.vars = L, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([P, m]) => {
7567
+ w[P] = m;
7568
+ }), w.generateThemeVars = E, w.generateStyleSheets = F, w.generateSpacing = function() {
7569
7569
  return us(h.spacing, eo(this));
7570
7570
  }, w.getColorSchemeSelector = n1(c), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = {
7571
7571
  ...ar,
@@ -8228,22 +8228,22 @@ const X1 = Rt("span", {
8228
8228
  components: d = {},
8229
8229
  componentsProps: h = {},
8230
8230
  color: g = "primary",
8231
- classes: b,
8231
+ classes: y,
8232
8232
  className: p,
8233
- disableSwap: y = !1,
8233
+ disableSwap: b = !1,
8234
8234
  disabled: f = !1,
8235
- getAriaLabel: _,
8235
+ getAriaLabel: C,
8236
8236
  getAriaValueText: x,
8237
8237
  marks: k = !1,
8238
8238
  max: $ = 100,
8239
8239
  min: v = 0,
8240
- name: C,
8240
+ name: _,
8241
8241
  onChange: w,
8242
8242
  onChangeCommitted: N,
8243
8243
  orientation: L = "horizontal",
8244
8244
  shiftStep: E = 10,
8245
- size: B = "medium",
8246
- step: V = 1,
8245
+ size: F = "medium",
8246
+ step: P = 1,
8247
8247
  scale: m = pi,
8248
8248
  slotProps: O,
8249
8249
  slots: T,
@@ -8258,14 +8258,14 @@ const X1 = Rt("span", {
8258
8258
  isRtl: o,
8259
8259
  max: $,
8260
8260
  min: v,
8261
- classes: b,
8261
+ classes: y,
8262
8262
  disabled: f,
8263
- disableSwap: y,
8263
+ disableSwap: b,
8264
8264
  orientation: L,
8265
8265
  marks: k,
8266
8266
  color: g,
8267
- size: B,
8268
- step: V,
8267
+ size: F,
8268
+ step: P,
8269
8269
  shiftStep: E,
8270
8270
  scale: m,
8271
8271
  track: j,
@@ -8274,7 +8274,7 @@ const X1 = Rt("span", {
8274
8274
  }, {
8275
8275
  axisProps: ee,
8276
8276
  getRootProps: K,
8277
- getHiddenInputProps: P,
8277
+ getHiddenInputProps: V,
8278
8278
  getThumbProps: Z,
8279
8279
  open: ne,
8280
8280
  active: G,
@@ -8292,10 +8292,10 @@ const X1 = Rt("span", {
8292
8292
  rootRef: n
8293
8293
  });
8294
8294
  M.marked = I.length > 0 && I.some((Ne) => Ne.label), M.dragging = de, M.focusedThumbIndex = oe;
8295
- const re = J1(M), we = (T == null ? void 0 : T.root) ?? d.Root ?? H1, Ce = (T == null ? void 0 : T.rail) ?? d.Rail ?? K1, Le = (T == null ? void 0 : T.track) ?? d.Track ?? G1, qe = (T == null ? void 0 : T.thumb) ?? d.Thumb ?? Y1, Je = (T == null ? void 0 : T.valueLabel) ?? d.ValueLabel ?? ks, _e = (T == null ? void 0 : T.mark) ?? d.Mark ?? X1, We = (T == null ? void 0 : T.markLabel) ?? d.MarkLabel ?? Q1, R = (T == null ? void 0 : T.input) ?? d.Input ?? "input", F = (O == null ? void 0 : O.root) ?? h.root, H = (O == null ? void 0 : O.rail) ?? h.rail, ae = (O == null ? void 0 : O.track) ?? h.track, be = (O == null ? void 0 : O.thumb) ?? h.thumb, X = (O == null ? void 0 : O.valueLabel) ?? h.valueLabel, Me = (O == null ? void 0 : O.mark) ?? h.mark, Ve = (O == null ? void 0 : O.markLabel) ?? h.markLabel, Oe = (O == null ? void 0 : O.input) ?? h.input, Ke = mt({
8295
+ const re = J1(M), we = (T == null ? void 0 : T.root) ?? d.Root ?? H1, Ce = (T == null ? void 0 : T.rail) ?? d.Rail ?? K1, Le = (T == null ? void 0 : T.track) ?? d.Track ?? G1, qe = (T == null ? void 0 : T.thumb) ?? d.Thumb ?? Y1, Je = (T == null ? void 0 : T.valueLabel) ?? d.ValueLabel ?? ks, _e = (T == null ? void 0 : T.mark) ?? d.Mark ?? X1, We = (T == null ? void 0 : T.markLabel) ?? d.MarkLabel ?? Q1, R = (T == null ? void 0 : T.input) ?? d.Input ?? "input", B = (O == null ? void 0 : O.root) ?? h.root, H = (O == null ? void 0 : O.rail) ?? h.rail, ae = (O == null ? void 0 : O.track) ?? h.track, be = (O == null ? void 0 : O.thumb) ?? h.thumb, X = (O == null ? void 0 : O.valueLabel) ?? h.valueLabel, Me = (O == null ? void 0 : O.mark) ?? h.mark, Ve = (O == null ? void 0 : O.markLabel) ?? h.markLabel, Oe = (O == null ? void 0 : O.input) ?? h.input, Ke = mt({
8296
8296
  elementType: we,
8297
8297
  getSlotProps: K,
8298
- externalSlotProps: F,
8298
+ externalSlotProps: B,
8299
8299
  externalForwardedProps: D,
8300
8300
  additionalProps: {
8301
8301
  ...j1(we) && {
@@ -8304,7 +8304,7 @@ const X1 = Rt("span", {
8304
8304
  },
8305
8305
  ownerState: {
8306
8306
  ...M,
8307
- ...F == null ? void 0 : F.ownerState
8307
+ ...B == null ? void 0 : B.ownerState
8308
8308
  },
8309
8309
  className: [re.root, p]
8310
8310
  }), Jt = mt({
@@ -8355,7 +8355,7 @@ const X1 = Rt("span", {
8355
8355
  className: re.markLabel
8356
8356
  }), Bs = mt({
8357
8357
  elementType: R,
8358
- getSlotProps: P,
8358
+ getSlotProps: V,
8359
8359
  externalSlotProps: Oe,
8360
8360
  ownerState: M
8361
8361
  });
@@ -8420,7 +8420,7 @@ const X1 = Rt("span", {
8420
8420
  },
8421
8421
  children: /* @__PURE__ */ u(R, {
8422
8422
  "data-index": De,
8423
- "aria-label": _ ? _(De) : s,
8423
+ "aria-label": C ? C(De) : s,
8424
8424
  "aria-valuenow": m(Ne),
8425
8425
  "aria-labelledby": l,
8426
8426
  "aria-valuetext": x ? x(m(Ne), De) : a,
@@ -8717,31 +8717,31 @@ const tu = "_slider_1prh1_2", nu = "_playButton_1prh1_14", ru = "_sliderOpen_1pr
8717
8717
  console.log("year changed to ", d);
8718
8718
  }
8719
8719
  }) => {
8720
- const h = o || ((v, C) => {
8720
+ const h = o || ((v, _) => {
8721
8721
  const w = [];
8722
8722
  w.push({ label: "", value: v });
8723
8723
  const N = Math.ceil(v / 10) * 10;
8724
- for (let L = N; L < C; L += 10)
8724
+ for (let L = N; L < _; L += 10)
8725
8725
  w.push({ label: "", value: L });
8726
- return w[w.length - 1].value !== C && w.push({ label: "", value: C }), w;
8727
- })(n, r), [g, b] = le(t);
8726
+ return w[w.length - 1].value !== _ && w.push({ label: "", value: _ }), w;
8727
+ })(n, r), [g, y] = le(t);
8728
8728
  J(() => {
8729
- b(t);
8729
+ y(t);
8730
8730
  }, [t]);
8731
- const p = (v, C) => {
8732
- b(C), c(C);
8733
- }, [y, f] = le(!1);
8731
+ const p = (v, _) => {
8732
+ y(_), c(_);
8733
+ }, [b, f] = le(!1);
8734
8734
  J(() => {
8735
- t && console.log("defaultYear changed:", t), t && b(t);
8735
+ t && console.log("defaultYear changed:", t), t && y(t);
8736
8736
  }, [t]), J(() => {
8737
8737
  l === !1 && f(!1);
8738
8738
  }, [l]);
8739
- const _ = () => {
8739
+ const C = () => {
8740
8740
  f(!0);
8741
8741
  }, x = () => {
8742
8742
  f(!1);
8743
8743
  };
8744
- ((v, C, w = []) => {
8744
+ ((v, _, w = []) => {
8745
8745
  const N = Se();
8746
8746
  J(() => {
8747
8747
  N.current = v;
@@ -8750,19 +8750,19 @@ const tu = "_slider_1prh1_2", nu = "_playButton_1prh1_14", ru = "_sliderOpen_1pr
8750
8750
  N.current();
8751
8751
  }
8752
8752
  {
8753
- let E = setInterval(L, C);
8753
+ let E = setInterval(L, _);
8754
8754
  return () => clearInterval(E);
8755
8755
  }
8756
- }, [C, ...w]);
8756
+ }, [_, ...w]);
8757
8757
  })(
8758
8758
  () => {
8759
- y && b((v) => {
8760
- const C = v + 1;
8761
- return C > r ? (c(n), n) : (c(C), C);
8759
+ b && y((v) => {
8760
+ const _ = v + 1;
8761
+ return _ > r ? (c(n), n) : (c(_), _);
8762
8762
  });
8763
8763
  },
8764
8764
  1e3,
8765
- [n, r, y]
8765
+ [n, r, b]
8766
8766
  );
8767
8767
  const $ = Ks({
8768
8768
  palette: {
@@ -8811,8 +8811,8 @@ const tu = "_slider_1prh1_2", nu = "_playButton_1prh1_14", ru = "_sliderOpen_1pr
8811
8811
  }
8812
8812
  ),
8813
8813
  r,
8814
- !y && /* @__PURE__ */ u("button", { className: nn.playButton, onClick: _, children: /* @__PURE__ */ u("img", { src: a0, alt: "Play" }) }),
8815
- y && /* @__PURE__ */ u("button", { className: nn.playButton, onClick: x, children: /* @__PURE__ */ u("img", { src: l0, alt: "Pause" }) })
8814
+ !b && /* @__PURE__ */ u("button", { className: nn.playButton, onClick: C, children: /* @__PURE__ */ u("img", { src: a0, alt: "Play" }) }),
8815
+ b && /* @__PURE__ */ u("button", { className: nn.playButton, onClick: x, children: /* @__PURE__ */ u("img", { src: l0, alt: "Pause" }) })
8816
8816
  ]
8817
8817
  }
8818
8818
  ) });
@@ -8964,7 +8964,7 @@ const Vu = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
8964
8964
  defaultTooltip: d,
8965
8965
  showEye: h = !0
8966
8966
  }) => {
8967
- const { name: g, created_at: b, id: p, isBeingProcessed: y } = e, [f, _] = le(!1), { t: x } = ce();
8967
+ const { name: g, created_at: y, id: p, isBeingProcessed: b } = e, [f, C] = le(!1), { t: x } = ce();
8968
8968
  J(() => {
8969
8969
  console.log("elementButtons: ", l);
8970
8970
  }, [l]);
@@ -8975,7 +8975,7 @@ const Vu = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
8975
8975
  className: Ge.listElement,
8976
8976
  style: { borderBottom: `1px solid ${o}` },
8977
8977
  children: [
8978
- /* @__PURE__ */ u("div", { className: Ge.elementNameDate, onClick: () => t(p), children: Object.keys(a).map((v, C) => v === "name" ? /* @__PURE__ */ u("div", { className: Ge.elementNameContainer, children: /* @__PURE__ */ S(
8978
+ /* @__PURE__ */ u("div", { className: Ge.elementNameDate, onClick: () => t(p), children: Object.keys(a).map((v, _) => v === "name" ? /* @__PURE__ */ u("div", { className: Ge.elementNameContainer, children: /* @__PURE__ */ S(
8979
8979
  "div",
8980
8980
  {
8981
8981
  className: `${Ge.elementName} ${h && Ge.nameAndEye}`,
@@ -8996,7 +8996,7 @@ const Vu = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
8996
8996
  /* @__PURE__ */ u("span", { style: { color: n ? r : o }, children: g })
8997
8997
  ]
8998
8998
  }
8999
- ) }, `col${C}`) : v == "data" ? /* @__PURE__ */ u("div", { className: Ge.elementDate, children: b ? new Date(b).toLocaleDateString() : "" }, `col${C}data`) : /* @__PURE__ */ u("div", { className: Ge.elementDate, children: e[v] }, `col${C}other`)) }),
8999
+ ) }, `col${_}`) : v == "data" ? /* @__PURE__ */ u("div", { className: Ge.elementDate, children: y ? new Date(y).toLocaleDateString() : "" }, `col${_}data`) : /* @__PURE__ */ u("div", { className: Ge.elementDate, children: e[v] }, `col${_}other`)) }),
9000
9000
  /* @__PURE__ */ S("div", { className: Ge.elementButtons, children: [
9001
9001
  e.processing && /* @__PURE__ */ S("div", { className: "tooltip-parent", children: [
9002
9002
  /* @__PURE__ */ u("img", { src: Mu }),
@@ -9080,7 +9080,7 @@ const Vu = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
9080
9080
  "div",
9081
9081
  {
9082
9082
  className: Ge.moreInfo,
9083
- onClick: () => _(!f),
9083
+ onClick: () => C(!f),
9084
9084
  children: [
9085
9085
  /* @__PURE__ */ u("span", { children: f ? "-" : "+" }),
9086
9086
  x(s.label)
@@ -9138,7 +9138,7 @@ const hi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
9138
9138
  containerStyles: s = {},
9139
9139
  newElementButton: a,
9140
9140
  //{label: 'text', onClick: function(), disabled}/null
9141
- onClickElement: l = (y) => console.log(`OnCLickElement: ${y}`),
9141
+ onClickElement: l = (b) => console.log(`OnCLickElement: ${b}`),
9142
9142
  columns: c,
9143
9143
  // {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
9144
9144
  elementButtons: d,
@@ -9147,39 +9147,39 @@ const hi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
9147
9147
  //{label: 'x'}
9148
9148
  processTooltip: g,
9149
9149
  //texto para el tooltip del simbolo "En proceso"
9150
- defaultTooltip: b,
9150
+ defaultTooltip: y,
9151
9151
  //texto para el tooltip del símbolo de candado para los elementos default
9152
9152
  showEye: p = !0
9153
9153
  }) => {
9154
- const { t: y } = ce(), [f, _] = le(e);
9154
+ const { t: b } = ce(), [f, C] = le(e);
9155
9155
  J(() => {
9156
- e && _(e);
9156
+ e && C(e);
9157
9157
  }, [e]);
9158
9158
  const x = (v) => {
9159
9159
  if (typeof v != "string") return null;
9160
9160
  if (/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(v))
9161
9161
  return new Date(v);
9162
- const C = /^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(v);
9163
- if (C)
9164
- return /* @__PURE__ */ new Date(`${C[3]}-${C[2]}-${C[1]}`);
9162
+ const _ = /^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(v);
9163
+ if (_)
9164
+ return /* @__PURE__ */ new Date(`${_[3]}-${_[2]}-${_[1]}`);
9165
9165
  const w = /^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(v);
9166
9166
  return w ? parseInt(w[1]) > 12 ? /* @__PURE__ */ new Date(`${w[3]}-${w[2]}-${w[1]}`) : /* @__PURE__ */ new Date(`${w[3]}-${w[1]}-${w[2]}`) : null;
9167
9167
  }, k = (v) => x(v) !== null, $ = (v) => {
9168
9168
  if (!f || f.length === 0) return;
9169
- let C = [...f];
9170
- const w = C.find((L) => L[v] !== null && L[v] !== void 0), N = w ? k(w[v]) : !1;
9171
- C.sort((L, E) => {
9172
- const B = L[v], V = E[v];
9173
- if (B == null && V == null) return 0;
9174
- if (B == null) return 1;
9175
- if (V == null) return -1;
9169
+ let _ = [...f];
9170
+ const w = _.find((L) => L[v] !== null && L[v] !== void 0), N = w ? k(w[v]) : !1;
9171
+ _.sort((L, E) => {
9172
+ const F = L[v], P = E[v];
9173
+ if (F == null && P == null) return 0;
9174
+ if (F == null) return 1;
9175
+ if (P == null) return -1;
9176
9176
  if (N) {
9177
- const T = x(B), z = x(V);
9177
+ const T = x(F), z = x(P);
9178
9178
  return !T && !z ? 0 : T ? z ? T - z : -1 : 1;
9179
9179
  }
9180
- const m = String(B || "").trim(), O = String(V || "").trim();
9180
+ const m = String(F || "").trim(), O = String(P || "").trim();
9181
9181
  return m.localeCompare(O);
9182
- }), _(C);
9182
+ }), C(_);
9183
9183
  };
9184
9184
  return /* @__PURE__ */ S(
9185
9185
  "div",
@@ -9194,12 +9194,12 @@ const hi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
9194
9194
  style: { borderBottom: `1px solid ${n}` },
9195
9195
  children: [
9196
9196
  /* @__PURE__ */ u("div", { className: st.nameDateContainer, children: Object.keys(c).map((v) => v === "name" ? /* @__PURE__ */ u("div", { className: st.elementName, children: /* @__PURE__ */ S("button", { onClick: () => $("name"), children: [
9197
- /* @__PURE__ */ u("span", { children: y(c.name) }),
9197
+ /* @__PURE__ */ u("span", { children: b(c.name) }),
9198
9198
  /* @__PURE__ */ u("img", { src: hi, alt: "order arrow" })
9199
9199
  ] }) }, v) : v === "data" ? /* @__PURE__ */ u("div", { className: st.elementDate, children: /* @__PURE__ */ S("button", { onClick: () => $("created_at"), children: [
9200
- /* @__PURE__ */ u("span", { children: y(c.data) }),
9200
+ /* @__PURE__ */ u("span", { children: b(c.data) }),
9201
9201
  /* @__PURE__ */ u("img", { src: hi, alt: "order arrow" })
9202
- ] }) }, v) : /* @__PURE__ */ u("div", { className: st.elementDate, children: /* @__PURE__ */ u("span", { children: y(c[v]) }) }, v)) }),
9202
+ ] }) }, v) : /* @__PURE__ */ u("div", { className: st.elementDate, children: /* @__PURE__ */ u("span", { children: b(c[v]) }) }, v)) }),
9203
9203
  /* @__PURE__ */ u("div", { className: st.buttonsContainer })
9204
9204
  ]
9205
9205
  }
@@ -9216,7 +9216,7 @@ const hi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
9216
9216
  elementButtons: d,
9217
9217
  moreInfo: h,
9218
9218
  processTooltip: g,
9219
- defaultTooltip: b,
9219
+ defaultTooltip: y,
9220
9220
  showEye: p
9221
9221
  },
9222
9222
  `elementKey${v.id}`
@@ -9228,7 +9228,7 @@ const hi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
9228
9228
  onClick: a.onClick,
9229
9229
  borderColor: "grey",
9230
9230
  disabled: a.disabled || !1,
9231
- children: y(a.label)
9231
+ children: b(a.label)
9232
9232
  }
9233
9233
  ) })
9234
9234
  ]
@@ -9407,35 +9407,35 @@ function jn(e, t, n = /* @__PURE__ */ new WeakSet()) {
9407
9407
  return !0;
9408
9408
  }
9409
9409
  function Ju(e) {
9410
- const t = lo(), { control: n = t, name: r, defaultValue: o, disabled: s, exact: a, compute: l } = e || {}, c = ie.useRef(o), d = ie.useRef(l), h = ie.useRef(void 0), g = ie.useRef(n), b = ie.useRef(r);
9410
+ const t = lo(), { control: n = t, name: r, defaultValue: o, disabled: s, exact: a, compute: l } = e || {}, c = ie.useRef(o), d = ie.useRef(l), h = ie.useRef(void 0), g = ie.useRef(n), y = ie.useRef(r);
9411
9411
  d.current = l;
9412
- const [p, y] = ie.useState(() => {
9412
+ const [p, b] = ie.useState(() => {
9413
9413
  const v = n._getWatch(r, c.current);
9414
9414
  return d.current ? d.current(v) : v;
9415
9415
  }), f = ie.useCallback((v) => {
9416
- const C = vi(r, n._names, v || n._formValues, !1, c.current);
9417
- return d.current ? d.current(C) : C;
9418
- }, [n._formValues, n._names, r]), _ = ie.useCallback((v) => {
9416
+ const _ = vi(r, n._names, v || n._formValues, !1, c.current);
9417
+ return d.current ? d.current(_) : _;
9418
+ }, [n._formValues, n._names, r]), C = ie.useCallback((v) => {
9419
9419
  if (!s) {
9420
- const C = vi(r, n._names, v || n._formValues, !1, c.current);
9420
+ const _ = vi(r, n._names, v || n._formValues, !1, c.current);
9421
9421
  if (d.current) {
9422
- const w = d.current(C);
9423
- jn(w, h.current) || (y(w), h.current = w);
9422
+ const w = d.current(_);
9423
+ jn(w, h.current) || (b(w), h.current = w);
9424
9424
  } else
9425
- y(C);
9425
+ b(_);
9426
9426
  }
9427
9427
  }, [n._formValues, n._names, s, r]);
9428
- Ms(() => ((g.current !== n || !jn(b.current, r)) && (g.current = n, b.current = r, _()), n._subscribe({
9428
+ Ms(() => ((g.current !== n || !jn(y.current, r)) && (g.current = n, y.current = r, C()), n._subscribe({
9429
9429
  name: r,
9430
9430
  formState: {
9431
9431
  values: !0
9432
9432
  },
9433
9433
  exact: a,
9434
9434
  callback: (v) => {
9435
- _(v.values);
9435
+ C(v.values);
9436
9436
  }
9437
- })), [n, a, r, _]), ie.useEffect(() => n._removeUnmounted());
9438
- const x = g.current !== n, k = b.current, $ = ie.useMemo(() => {
9437
+ })), [n, a, r, C]), ie.useEffect(() => n._removeUnmounted());
9438
+ const x = g.current !== n, k = y.current, $ = ie.useMemo(() => {
9439
9439
  if (s)
9440
9440
  return null;
9441
9441
  const v = !x && !jn(k, r);
@@ -9453,12 +9453,12 @@ function ed(e) {
9453
9453
  control: o,
9454
9454
  name: n,
9455
9455
  exact: l
9456
- }), b = ie.useRef(e), p = ie.useRef(void 0), y = ie.useRef(o.register(n, {
9456
+ }), y = ie.useRef(e), p = ie.useRef(void 0), b = ie.useRef(o.register(n, {
9457
9457
  ...e.rules,
9458
9458
  value: h,
9459
9459
  ...Lr(e.disabled) ? { disabled: e.disabled } : {}
9460
9460
  }));
9461
- b.current = e;
9461
+ y.current = e;
9462
9462
  const f = ie.useMemo(() => Object.defineProperties({}, {
9463
9463
  invalid: {
9464
9464
  enumerable: !0,
@@ -9480,21 +9480,21 @@ function ed(e) {
9480
9480
  enumerable: !0,
9481
9481
  get: () => ze(g.errors, n)
9482
9482
  }
9483
- }), [g, n]), _ = ie.useCallback((v) => y.current.onChange({
9483
+ }), [g, n]), C = ie.useCallback((v) => b.current.onChange({
9484
9484
  target: {
9485
9485
  value: Uu(v),
9486
9486
  name: n
9487
9487
  },
9488
9488
  type: yi.CHANGE
9489
- }), [n]), x = ie.useCallback(() => y.current.onBlur({
9489
+ }), [n]), x = ie.useCallback(() => b.current.onBlur({
9490
9490
  target: {
9491
9491
  value: ze(o._formValues, n),
9492
9492
  name: n
9493
9493
  },
9494
9494
  type: yi.BLUR
9495
9495
  }), [n, o._formValues]), k = ie.useCallback((v) => {
9496
- const C = ze(o._fields, n);
9497
- C && C._f && v && (C._f.ref = {
9496
+ const _ = ze(o._fields, n);
9497
+ _ && _._f && v && (_._f.ref = {
9498
9498
  focus: () => Dn(v.focus) && v.focus(),
9499
9499
  select: () => Dn(v.select) && v.select(),
9500
9500
  setCustomValidity: (w) => Dn(v.setCustomValidity) && v.setCustomValidity(w),
@@ -9504,22 +9504,22 @@ function ed(e) {
9504
9504
  name: n,
9505
9505
  value: h,
9506
9506
  ...Lr(r) || g.disabled ? { disabled: g.disabled || r } : {},
9507
- onChange: _,
9507
+ onChange: C,
9508
9508
  onBlur: x,
9509
9509
  ref: k
9510
- }), [n, r, g.disabled, _, x, k, h]);
9510
+ }), [n, r, g.disabled, C, x, k, h]);
9511
9511
  return ie.useEffect(() => {
9512
- const v = o._options.shouldUnregister || s, C = p.current;
9513
- C && C !== n && !c && o.unregister(C), o.register(n, {
9514
- ...b.current.rules,
9515
- ...Lr(b.current.disabled) ? { disabled: b.current.disabled } : {}
9512
+ const v = o._options.shouldUnregister || s, _ = p.current;
9513
+ _ && _ !== n && !c && o.unregister(_), o.register(n, {
9514
+ ...y.current.rules,
9515
+ ...Lr(y.current.disabled) ? { disabled: y.current.disabled } : {}
9516
9516
  });
9517
9517
  const w = (N, L) => {
9518
9518
  const E = ze(o._fields, N);
9519
9519
  E && E._f && (E._f.mount = L);
9520
9520
  };
9521
9521
  if (w(n, !0), v) {
9522
- const N = Es(ze(o._options.defaultValues, n, b.current.defaultValue));
9522
+ const N = Es(ze(o._options.defaultValues, n, y.current.defaultValue));
9523
9523
  gi(o._defaultValues, n, N), Hr(ze(o._formValues, n)) && gi(o._formValues, n, N);
9524
9524
  }
9525
9525
  return !c && o.register(n), p.current = n, () => {
@@ -9576,31 +9576,31 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9576
9576
  onClickForgotPass: g = () => {
9577
9577
  console.log("Click on forgot password");
9578
9578
  },
9579
- forgotPassLabel: b = "forgot-password",
9579
+ forgotPassLabel: y = "forgot-password",
9580
9580
  //Lógica extra al onChange además de actualizar el valor en RHF
9581
9581
  onChangeExtraFunction: p = () => {
9582
9582
  }
9583
- } = e, { t: y } = ce(), { control: f, trigger: _, clearErrors: x } = t, { errorColor: k } = Cn((w) => w), [$, v] = le(!1);
9583
+ } = e, { t: b } = ce(), { control: f, trigger: C, clearErrors: x } = t, { errorColor: k } = Cn((w) => w), [$, v] = le(!1);
9584
9584
  Se(a);
9585
- const C = () => r ? r === "password" && $ ? "text" : r : "text";
9585
+ const _ = () => r ? r === "password" && $ ? "text" : r : "text";
9586
9586
  return /* @__PURE__ */ u(
9587
9587
  bn,
9588
9588
  {
9589
9589
  name: n,
9590
9590
  control: f,
9591
9591
  rules: {
9592
- required: a ? `${y(o)} ${y("errorMessages.required")}` : !1,
9592
+ required: a ? `${b(o)} ${b("errorMessages.required")}` : !1,
9593
9593
  maxLength: s || void 0,
9594
9594
  validate: l || void 0
9595
9595
  },
9596
9596
  render: ({ field: w, fieldState: N }) => {
9597
- var V;
9598
- const { onChange: L, ...E } = w, B = (m) => {
9597
+ var P;
9598
+ const { onChange: L, ...E } = w, F = (m) => {
9599
9599
  L(m), p && p(m);
9600
9600
  };
9601
9601
  return /* @__PURE__ */ S("div", { className: on.textInputContainer, children: [
9602
9602
  /* @__PURE__ */ S("h3", { className: on.labelContainer, children: [
9603
- y(o),
9603
+ b(o),
9604
9604
  " ",
9605
9605
  a && /* @__PURE__ */ u("label", { style: { color: N.error ? d : "" }, children: "*" })
9606
9606
  ] }),
@@ -9614,9 +9614,9 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9614
9614
  "input",
9615
9615
  {
9616
9616
  ...E,
9617
- type: C(),
9618
- onChange: B,
9619
- placeholder: c ? y(c) : "",
9617
+ type: _(),
9618
+ onChange: F,
9619
+ placeholder: c ? b(c) : "",
9620
9620
  maxLength: s || void 0
9621
9621
  }
9622
9622
  ),
@@ -9630,7 +9630,7 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9630
9630
  "img",
9631
9631
  {
9632
9632
  src: $ ? ud : cd,
9633
- alt: y("show-password")
9633
+ alt: b("show-password")
9634
9634
  }
9635
9635
  )
9636
9636
  }
@@ -9638,11 +9638,11 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9638
9638
  ]
9639
9639
  }
9640
9640
  ),
9641
- r == "password" && /* @__PURE__ */ u("div", { className: on.forgotPassButton, children: /* @__PURE__ */ u("button", { onClick: g, children: y(b) }) }),
9641
+ r == "password" && /* @__PURE__ */ u("div", { className: on.forgotPassButton, children: /* @__PURE__ */ u("button", { onClick: g, children: b(y) }) }),
9642
9642
  /* @__PURE__ */ u(
9643
9643
  vn,
9644
9644
  {
9645
- errorMessage: (V = N.error) == null ? void 0 : V.message,
9645
+ errorMessage: (P = N.error) == null ? void 0 : P.message,
9646
9646
  errorColor: k || d
9647
9647
  }
9648
9648
  )
@@ -9671,9 +9671,9 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9671
9671
  placeholder: d,
9672
9672
  errorColor: h = "red",
9673
9673
  width: g = 325,
9674
- options: b = []
9674
+ options: y = []
9675
9675
  //Used if we dont use react hook form
9676
- } = e, { t: p } = ce(), { control: y, trigger: f, clearErrors: _ } = t || {}, { errorColor: x } = Cn((v) => v);
9676
+ } = e, { t: p } = ce(), { control: b, trigger: f, clearErrors: C } = t || {}, { errorColor: x } = Cn((v) => v);
9677
9677
  Se(l);
9678
9678
  const [k, $] = le(null);
9679
9679
  return J(() => {
@@ -9682,24 +9682,24 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9682
9682
  bn,
9683
9683
  {
9684
9684
  name: r,
9685
- control: y,
9685
+ control: b,
9686
9686
  rules: {
9687
9687
  required: l ? `${p(s)} ${p("errorMessages.required")}` : !1,
9688
9688
  validate: c ? (v) => {
9689
- let C = t.getValues();
9690
- return c(v, C);
9689
+ let _ = t.getValues();
9690
+ return c(v, _);
9691
9691
  } : void 0
9692
9692
  },
9693
- render: ({ field: v, fieldState: C }) => {
9693
+ render: ({ field: v, fieldState: _ }) => {
9694
9694
  var N;
9695
- const w = b.find(
9695
+ const w = y.find(
9696
9696
  (L) => L.value === v.value
9697
9697
  );
9698
9698
  return /* @__PURE__ */ S("div", { className: Fe.selectInputContainer, children: [
9699
9699
  s && /* @__PURE__ */ S("h3", { className: Fe.labelContainer, children: [
9700
9700
  p(s),
9701
9701
  " ",
9702
- l && /* @__PURE__ */ u("label", { style: { color: C.error ? h : "" }, children: "*" })
9702
+ l && /* @__PURE__ */ u("label", { style: { color: _.error ? h : "" }, children: "*" })
9703
9703
  ] }),
9704
9704
  /* @__PURE__ */ S("div", { className: Fe.selectWrapper, children: [
9705
9705
  /* @__PURE__ */ S("div", { className: Fe.inputContainer, style: { width: g }, children: [
@@ -9709,13 +9709,13 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9709
9709
  ...v,
9710
9710
  value: v.value ?? "",
9711
9711
  onChange: (L) => {
9712
- const E = L.target.value, B = b.every((V) => typeof V.value == "number") ? Number(E) : E;
9713
- v.onChange(B);
9712
+ const E = L.target.value, F = y.every((P) => typeof P.value == "number") ? Number(E) : E;
9713
+ v.onChange(F);
9714
9714
  },
9715
9715
  className: Fe.selectInput,
9716
9716
  children: [
9717
9717
  /* @__PURE__ */ u("option", { value: "", disabled: !0, hidden: !0, children: p(d || "selectOption") }),
9718
- b.map((L, E) => /* @__PURE__ */ u(
9718
+ y.map((L, E) => /* @__PURE__ */ u(
9719
9719
  "option",
9720
9720
  {
9721
9721
  value: L.value,
@@ -9741,7 +9741,7 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9741
9741
  /* @__PURE__ */ u(
9742
9742
  vn,
9743
9743
  {
9744
- errorMessage: (N = C.error) == null ? void 0 : N.message,
9744
+ errorMessage: (N = _.error) == null ? void 0 : N.message,
9745
9745
  errorColor: x || h
9746
9746
  }
9747
9747
  )
@@ -9760,20 +9760,20 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9760
9760
  {
9761
9761
  value: k ?? "",
9762
9762
  onChange: (v) => {
9763
- const C = v.target.value, w = b.every((N) => typeof N.value == "number") ? Number(C) : C;
9763
+ const _ = v.target.value, w = y.every((N) => typeof N.value == "number") ? Number(_) : _;
9764
9764
  $(w);
9765
9765
  },
9766
9766
  className: Fe.selectInput,
9767
9767
  children: [
9768
9768
  /* @__PURE__ */ u("option", { value: "", disabled: !0, hidden: !0, children: p(d || "selectOption") }),
9769
- b.map((v, C) => /* @__PURE__ */ u(
9769
+ y.map((v, _) => /* @__PURE__ */ u(
9770
9770
  "option",
9771
9771
  {
9772
9772
  value: v.value,
9773
9773
  className: Fe.option,
9774
9774
  children: p(v.label)
9775
9775
  },
9776
- C
9776
+ _
9777
9777
  ))
9778
9778
  ]
9779
9779
  }
@@ -9781,8 +9781,8 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9781
9781
  /* @__PURE__ */ u("img", { src: xi, alt: "Open", className: Fe.dropdownArrow })
9782
9782
  ] }),
9783
9783
  (() => {
9784
- const v = b.find(
9785
- (C) => C.value === k
9784
+ const v = y.find(
9785
+ (_) => _.value === k
9786
9786
  );
9787
9787
  return v && v.description ? /* @__PURE__ */ u("div", { className: Fe.optionDescription, children: p(v.description) }) : null;
9788
9788
  })()
@@ -9803,13 +9803,13 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9803
9803
  errorColor: a = "red",
9804
9804
  options: l = [],
9805
9805
  multi: c = !1
9806
- } = e, { t: d } = ce(), { control: h, trigger: g, clearErrors: b } = t, { errorColor: p } = Cn((_) => _), y = ({ options: _, onChange: x, actualValue: k }) => {
9806
+ } = e, { t: d } = ce(), { control: h, trigger: g, clearErrors: y } = t, { errorColor: p } = Cn((C) => C), b = ({ options: C, onChange: x, actualValue: k }) => {
9807
9807
  if (c && k && k.length > 0) {
9808
- let $ = k.filter((v) => v !== _);
9808
+ let $ = k.filter((v) => v !== C);
9809
9809
  x($);
9810
9810
  }
9811
- }, f = ({ options: _, onChange: x, actualValue: k }) => {
9812
- c ? k && k.length > 0 ? x([...k, _]) : x([_]) : x(_);
9811
+ }, f = ({ options: C, onChange: x, actualValue: k }) => {
9812
+ c ? k && k.length > 0 ? x([...k, C]) : x([C]) : x(C);
9813
9813
  };
9814
9814
  return Se(o), /* @__PURE__ */ u(
9815
9815
  bn,
@@ -9817,12 +9817,12 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9817
9817
  control: h,
9818
9818
  name: n,
9819
9819
  rules: {
9820
- validate: (_) => o && (_ == null || _ === "") ? `${d(r)} ${d("errorMessages.required")}` : null
9820
+ validate: (C) => o && (C == null || C === "") ? `${d(r)} ${d("errorMessages.required")}` : null
9821
9821
  },
9822
9822
  render: ({
9823
- formState: { errors: _ },
9823
+ formState: { errors: C },
9824
9824
  field: { onChange: x, onBlur: k, value: $, ref: v },
9825
- fieldState: C
9825
+ fieldState: _
9826
9826
  }) => {
9827
9827
  var w;
9828
9828
  return /* @__PURE__ */ u("div", { id: n + "id", className: kt.radioButtonContainer, children: /* @__PURE__ */ S("div", { className: kt.wholeInputContainer, children: [
@@ -9837,7 +9837,7 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9837
9837
  o && /* @__PURE__ */ u(
9838
9838
  "label",
9839
9839
  {
9840
- style: { color: C.error ? a : "" },
9840
+ style: { color: _.error ? a : "" },
9841
9841
  children: "*"
9842
9842
  }
9843
9843
  )
@@ -9850,8 +9850,8 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9850
9850
  label: N,
9851
9851
  value: L,
9852
9852
  disabled: E = !1,
9853
- italicLabel: B
9854
- }, V) => {
9853
+ italicLabel: F
9854
+ }, P) => {
9855
9855
  const m = $ && c ? $.isArray && ($ == null ? void 0 : $.length) > 0 && $.some((O) => O === L) : $ === L;
9856
9856
  return /* @__PURE__ */ S("label", { children: [
9857
9857
  /* @__PURE__ */ u(
@@ -9860,7 +9860,7 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9860
9860
  type: "radio",
9861
9861
  checked: m,
9862
9862
  onChange: () => {
9863
- c ? m ? y({
9863
+ c ? m ? b({
9864
9864
  actualValue: $,
9865
9865
  options: l,
9866
9866
  onChange: x
@@ -9875,13 +9875,13 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9875
9875
  ),
9876
9876
  /* @__PURE__ */ u("span", { className: "radio-custom" }),
9877
9877
  d(N)
9878
- ] }, `inputRadio ${V}`);
9878
+ ] }, `inputRadio ${P}`);
9879
9879
  }
9880
9880
  ),
9881
9881
  /* @__PURE__ */ u(
9882
9882
  vn,
9883
9883
  {
9884
- errorMessage: (w = C.error) == null ? void 0 : w.message,
9884
+ errorMessage: (w = _.error) == null ? void 0 : w.message,
9885
9885
  errorColor: p || a
9886
9886
  }
9887
9887
  )
@@ -9911,16 +9911,16 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9911
9911
  required: d,
9912
9912
  errorColor: h = "red",
9913
9913
  labelWidth: g = "300px",
9914
- sliderWidth: b = "300px",
9914
+ sliderWidth: y = "300px",
9915
9915
  minText: p,
9916
- maxText: y,
9916
+ maxText: b,
9917
9917
  disabled: f = !1,
9918
- marks: _ = Array.from(
9918
+ marks: C = Array.from(
9919
9919
  { length: a - s + 1 },
9920
- (E, B) => s + B
9920
+ (E, F) => s + F
9921
9921
  ),
9922
9922
  showMarksNumber: x = !0
9923
- } = e, { t: k } = ce(), { control: $, trigger: v, clearErrors: C } = t || {};
9923
+ } = e, { t: k } = ce(), { control: $, trigger: v, clearErrors: _ } = t || {};
9924
9924
  Se(d);
9925
9925
  const { errorColorForm: w } = Cn((E) => E), [N, L] = le(l);
9926
9926
  return t ? /* @__PURE__ */ u(
@@ -9932,14 +9932,14 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9932
9932
  rules: {
9933
9933
  required: d ? `${k(o)} ${k("errorMessages.required")}` : !1
9934
9934
  },
9935
- render: ({ field: E, fieldState: B }) => {
9936
- var V;
9935
+ render: ({ field: E, fieldState: F }) => {
9936
+ var P;
9937
9937
  return /* @__PURE__ */ S(
9938
9938
  "div",
9939
9939
  {
9940
9940
  className: Ee.rankingSliderContainer,
9941
9941
  style: {
9942
- gridTemplateColumns: `${o && g} ${b}`
9942
+ gridTemplateColumns: `${o && g} ${y}`
9943
9943
  },
9944
9944
  children: [
9945
9945
  o && /* @__PURE__ */ u(
@@ -9982,14 +9982,14 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
9982
9982
  disabled: f
9983
9983
  }
9984
9984
  ),
9985
- _ && /* @__PURE__ */ u("div", { className: Ee.labels, children: _.map((m) => /* @__PURE__ */ u("span", { children: x && m }, m)) })
9985
+ C && /* @__PURE__ */ u("div", { className: Ee.labels, children: C.map((m) => /* @__PURE__ */ u("span", { children: x && m }, m)) })
9986
9986
  ] }),
9987
- y && /* @__PURE__ */ u("div", { className: Ee.maxLabel, children: k(y) })
9987
+ b && /* @__PURE__ */ u("div", { className: Ee.maxLabel, children: k(b) })
9988
9988
  ] }),
9989
9989
  /* @__PURE__ */ u(
9990
9990
  vn,
9991
9991
  {
9992
- errorMessage: (V = B.error) == null ? void 0 : V.message,
9992
+ errorMessage: (P = F.error) == null ? void 0 : P.message,
9993
9993
  errorColor: w || h
9994
9994
  }
9995
9995
  )
@@ -10002,7 +10002,7 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
10002
10002
  "div",
10003
10003
  {
10004
10004
  className: Ee.rankingSliderContainer,
10005
- style: { gridTemplateColumns: `${o && g} ${b}` },
10005
+ style: { gridTemplateColumns: `${o && g} ${y}` },
10006
10006
  children: [
10007
10007
  o && /* @__PURE__ */ u(
10008
10008
  "p",
@@ -10044,9 +10044,9 @@ const nd = "_textInputContainer_1o3iy_2", rd = "_labelContainer_1o3iy_5", od = "
10044
10044
  disabled: f
10045
10045
  }
10046
10046
  ),
10047
- _ && /* @__PURE__ */ u("div", { className: Ee.labels, children: _.map((E) => /* @__PURE__ */ u("span", { children: x && E }, E)) })
10047
+ C && /* @__PURE__ */ u("div", { className: Ee.labels, children: C.map((E) => /* @__PURE__ */ u("span", { children: x && E }, E)) })
10048
10048
  ] }),
10049
- y && /* @__PURE__ */ u("div", { className: Ee.maxLabel, children: k(y) })
10049
+ b && /* @__PURE__ */ u("div", { className: Ee.maxLabel, children: k(b) })
10050
10050
  ] })
10051
10051
  ]
10052
10052
  }
@@ -10210,18 +10210,18 @@ const Dd = "_textDescriptionContainer_163pc_2", Id = "_textDescriptionText_163pc
10210
10210
  className: an.categorySelector,
10211
10211
  style: o ? { ...o } : {},
10212
10212
  children: e.map((c, d) => {
10213
- const { id: h, label: g } = c, b = n == h, p = s.includes(h);
10213
+ const { id: h, label: g } = c, y = n == h, p = s.includes(h);
10214
10214
  return /* @__PURE__ */ u(
10215
10215
  "button",
10216
10216
  {
10217
- className: `${an.sectionItem} ${b ? an.sectionItemActive : ""} ${p ? an.sectionItemError : ""}`,
10217
+ className: `${an.sectionItem} ${y ? an.sectionItemActive : ""} ${p ? an.sectionItemError : ""}`,
10218
10218
  type: "button",
10219
- style: { backgroundColor: b ? r : "inherit" },
10219
+ style: { backgroundColor: y ? r : "inherit" },
10220
10220
  onClick: () => l(h),
10221
10221
  children: /* @__PURE__ */ u(
10222
10222
  "span",
10223
10223
  {
10224
- style: { color: b ? "white" : "inherit" },
10224
+ style: { color: y ? "white" : "inherit" },
10225
10225
  className: an.sectionLabel,
10226
10226
  children: a(g)
10227
10227
  }
@@ -10245,36 +10245,36 @@ const Dd = "_textDescriptionContainer_163pc_2", Id = "_textDescriptionText_163pc
10245
10245
  defaultCategory: d = null,
10246
10246
  categoryLabel: h = "Select Category",
10247
10247
  activeCategory: g = null,
10248
- activeCategoryColor: b = "#b32f5d",
10248
+ activeCategoryColor: y = "#b32f5d",
10249
10249
  categoriesWithErrors: p = [],
10250
- onSubmit: y = (f) => console.log("Form submitted with: ", f)
10250
+ onSubmit: b = (f) => console.log("Form submitted with: ", f)
10251
10251
  }) => {
10252
- const { t: f } = ce(), { handleSubmit: _, control: x } = e;
10252
+ const { t: f } = ce(), { handleSubmit: C, control: x } = e;
10253
10253
  J(() => {
10254
10254
  s && Cn.setState(() => ({ errorColor: s }));
10255
10255
  }, [s]);
10256
10256
  const k = je(() => t ? t.filter((E) => E.category).map((E) => {
10257
- var B;
10257
+ var F;
10258
10258
  return {
10259
10259
  id: E.categoryId,
10260
10260
  label: E.category,
10261
- hasSubcategories: ((B = E.subcategories) == null ? void 0 : B.length) > 0
10261
+ hasSubcategories: ((F = E.subcategories) == null ? void 0 : F.length) > 0
10262
10262
  };
10263
10263
  }) : [], [t]), $ = (E) => {
10264
- const B = t == null ? void 0 : t.find((V) => V.categoryId === E);
10265
- return (B == null ? void 0 : B.subcategories) || [];
10266
- }, [v, C] = le(
10264
+ const F = t == null ? void 0 : t.find((P) => P.categoryId === E);
10265
+ return (F == null ? void 0 : F.subcategories) || [];
10266
+ }, [v, _] = le(
10267
10267
  g || d || null
10268
10268
  ), [w, N] = le(null);
10269
10269
  J(() => {
10270
- !v && k.length > 0 && C(k[0].id);
10270
+ !v && k.length > 0 && _(k[0].id);
10271
10271
  }, [k, v]), J(() => {
10272
10272
  const E = $(v);
10273
10273
  !w && (E == null ? void 0 : E.length) > 0 && N(E[0].id);
10274
10274
  }, [v, w, t]);
10275
- const L = (E, B) => {
10276
- var V;
10277
- if (((V = E.subcategories) == null ? void 0 : V.length) > 0) {
10275
+ const L = (E, F) => {
10276
+ var P;
10277
+ if (((P = E.subcategories) == null ? void 0 : P.length) > 0) {
10278
10278
  const m = E.subcategories;
10279
10279
  return /* @__PURE__ */ S("div", { children: [
10280
10280
  /* @__PURE__ */ u(
@@ -10288,7 +10288,7 @@ const Dd = "_textDescriptionContainer_163pc_2", Id = "_textDescriptionText_163pc
10288
10288
  categories: m,
10289
10289
  categoriesWithErrors: p,
10290
10290
  onChange: (O) => N(O),
10291
- activeColor: b
10291
+ activeColor: y
10292
10292
  }
10293
10293
  )
10294
10294
  },
@@ -10364,7 +10364,7 @@ const Dd = "_textDescriptionContainer_163pc_2", Id = "_textDescriptionText_163pc
10364
10364
  )
10365
10365
  ] }, E.categoryId);
10366
10366
  };
10367
- return /* @__PURE__ */ S("form", { className: rn.formContainer, onSubmit: _(y), children: [
10367
+ return /* @__PURE__ */ S("form", { className: rn.formContainer, onSubmit: C(b), children: [
10368
10368
  c && k.length > 0 && /* @__PURE__ */ u("div", { className: rn.categorySelectorContainer, children: /* @__PURE__ */ u(
10369
10369
  Si,
10370
10370
  {
@@ -10372,19 +10372,19 @@ const Dd = "_textDescriptionContainer_163pc_2", Id = "_textDescriptionText_163pc
10372
10372
  categories: k,
10373
10373
  categoriesWithErrors: p,
10374
10374
  onChange: (E) => {
10375
- C(E), N(null);
10375
+ _(E), N(null);
10376
10376
  },
10377
- activeColor: b
10377
+ activeColor: y
10378
10378
  }
10379
10379
  ) }),
10380
- /* @__PURE__ */ u("div", { className: rn.formObjectContainer, children: t == null ? void 0 : t.map((E, B) => {
10381
- const V = E.categoryId === v;
10380
+ /* @__PURE__ */ u("div", { className: rn.formObjectContainer, children: t == null ? void 0 : t.map((E, F) => {
10381
+ const P = E.categoryId === v;
10382
10382
  return E.category ? /* @__PURE__ */ u(
10383
10383
  "div",
10384
10384
  {
10385
10385
  style: {
10386
10386
  width: "100%",
10387
- display: V ? "block" : "none"
10387
+ display: P ? "block" : "none"
10388
10388
  },
10389
10389
  children: L(E)
10390
10390
  },
@@ -10398,7 +10398,7 @@ const Dd = "_textDescriptionContainer_163pc_2", Id = "_textDescriptionText_163pc
10398
10398
  errorColor: s,
10399
10399
  reactHookFormInstance: e
10400
10400
  },
10401
- `no-category-${B}`
10401
+ `no-category-${F}`
10402
10402
  );
10403
10403
  }) }),
10404
10404
  /* @__PURE__ */ S("div", { className: rn.buttonContainer, children: [
@@ -10565,9 +10565,9 @@ const pf = "_switchContainer_194wl_2", mf = "_labelRight_194wl_9", hf = "_labelL
10565
10565
  colorOn: c = "#5A514D",
10566
10566
  disabled: d = !1,
10567
10567
  width: h = 240
10568
- } = e, { t: g } = ce(), { control: b } = t || {}, [p, y] = le(l), f = (x) => {
10569
- y(x), n && n(x);
10570
- }, _ = (x, k) => /* @__PURE__ */ S("div", { className: Ut.switchContainer, style: { width: `${h}px` }, children: [
10568
+ } = e, { t: g } = ce(), { control: y } = t || {}, [p, b] = le(l), f = (x) => {
10569
+ b(x), n && n(x);
10570
+ }, C = (x, k) => /* @__PURE__ */ S("div", { className: Ut.switchContainer, style: { width: `${h}px` }, children: [
10571
10571
  s && /* @__PURE__ */ u(
10572
10572
  "span",
10573
10573
  {
@@ -10602,11 +10602,11 @@ const pf = "_switchContainer_194wl_2", mf = "_labelRight_194wl_9", hf = "_labelL
10602
10602
  bn,
10603
10603
  {
10604
10604
  name: o,
10605
- control: b,
10605
+ control: y,
10606
10606
  defaultValue: l,
10607
- render: ({ field: x }) => _(x.value, x.onChange)
10607
+ render: ({ field: x }) => C(x.value, x.onChange)
10608
10608
  }
10609
- ) : _(p, f);
10609
+ ) : C(p, f);
10610
10610
  };
10611
10611
  bf.propTypes = {
10612
10612
  input: i.shape({
@@ -10655,7 +10655,7 @@ const Sf = "_container_1pl8d_3", kf = "_burger_1pl8d_10", Tf = "_menu_1pl8d_21",
10655
10655
  textColor: n,
10656
10656
  iconColor: r
10657
10657
  }) => {
10658
- const [o, s] = le(!1), a = () => s((y) => !y), l = () => s(!1), c = 7, d = o ? 11 : 0, h = o ? 13 : 0, g = o ? -11.51666 : 0, b = o ? -13 : 0, p = "0.35s";
10658
+ const [o, s] = le(!1), a = () => s((b) => !b), l = () => s(!1), c = 7, d = o ? 11 : 0, h = o ? 13 : 0, g = o ? -11.51666 : 0, y = o ? -13 : 0, p = "0.35s";
10659
10659
  return /* @__PURE__ */ S("div", { className: rt.container, children: [
10660
10660
  /* @__PURE__ */ u("button", { onClick: a, className: rt.burger, children: /* @__PURE__ */ S(
10661
10661
  "svg",
@@ -10690,7 +10690,7 @@ const Sf = "_container_1pl8d_3", kf = "_burger_1pl8d_10", Tf = "_menu_1pl8d_21",
10690
10690
  "g",
10691
10691
  {
10692
10692
  style: {
10693
- transform: `translate(${b}px, ${g}px)`,
10693
+ transform: `translate(${y}px, ${g}px)`,
10694
10694
  transition: `transform ${p} cubic-bezier(0.42, 0, 0.58, 1)`
10695
10695
  },
10696
10696
  children: /* @__PURE__ */ u("circle", { cx: "33", cy: "31.51666", r: c, fill: r })
@@ -10730,28 +10730,28 @@ const Sf = "_container_1pl8d_3", kf = "_burger_1pl8d_10", Tf = "_menu_1pl8d_21",
10730
10730
  {
10731
10731
  className: `${rt.menu} ${o ? rt.menuOpen : rt.menuClose}`,
10732
10732
  style: { backgroundColor: t, color: n },
10733
- children: /* @__PURE__ */ u("ul", { className: rt.list, children: e.map((y, f) => /* @__PURE__ */ S("li", { className: rt.item, children: [
10734
- y.url && /* @__PURE__ */ u(
10733
+ children: /* @__PURE__ */ u("ul", { className: rt.list, children: e.map((b, f) => /* @__PURE__ */ S("li", { className: rt.item, children: [
10734
+ b.url && /* @__PURE__ */ u(
10735
10735
  Fi,
10736
10736
  {
10737
- to: y.url,
10738
- className: ({ isActive: _ }) => `${rt.link} ${_ ? rt.active : ""}`,
10737
+ to: b.url,
10738
+ className: ({ isActive: C }) => `${rt.link} ${C ? rt.active : ""}`,
10739
10739
  onClick: l,
10740
10740
  style: { color: n },
10741
- children: y.name
10741
+ children: b.name
10742
10742
  }
10743
10743
  ),
10744
- y.onclick && /* @__PURE__ */ u(
10744
+ b.onclick && /* @__PURE__ */ u(
10745
10745
  "button",
10746
10746
  {
10747
10747
  className: rt.button,
10748
10748
  onClick: () => {
10749
- y.onclick(), l();
10749
+ b.onclick(), l();
10750
10750
  },
10751
- children: y.name
10751
+ children: b.name
10752
10752
  }
10753
10753
  ),
10754
- y.component && y.component
10754
+ b.component && b.component
10755
10755
  ] }, f)) })
10756
10756
  }
10757
10757
  )
@@ -10784,20 +10784,20 @@ const Lf = "_svgContainer_1rxoe_2", Mf = "_svg_1rxoe_2", ki = {
10784
10784
  showGrid: d = !0,
10785
10785
  xAxisTickRotation: h = -90,
10786
10786
  yAxisTickFormat: g = (v) => v.toLocaleString("es-ES"),
10787
- barPadding: b = 0.1,
10787
+ barPadding: y = 0.1,
10788
10788
  groupPadding: p = 0.05,
10789
- animationDuration: y = 750,
10789
+ animationDuration: b = 750,
10790
10790
  onBarHover: f,
10791
- onBarClick: _,
10791
+ onBarClick: C,
10792
10792
  title: x,
10793
10793
  xAxisLabel: k,
10794
10794
  yAxisLabel: $
10795
10795
  }) => {
10796
- const v = Se(), C = Se(), [w, N] = le({ width: 0, height: 0 });
10796
+ const v = Se(), _ = Se(), [w, N] = le({ width: 0, height: 0 });
10797
10797
  return J(() => {
10798
10798
  const L = () => {
10799
- if (C.current) {
10800
- const E = C.current.getBoundingClientRect().width;
10799
+ if (_.current) {
10800
+ const E = _.current.getBoundingClientRect().width;
10801
10801
  N({
10802
10802
  width: typeof r == "number" ? r : E,
10803
10803
  height: o
@@ -10807,50 +10807,50 @@ const Lf = "_svgContainer_1rxoe_2", Mf = "_svg_1rxoe_2", ki = {
10807
10807
  return L(), window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
10808
10808
  }, [r, o]), J(() => {
10809
10809
  if (!e || e.length === 0 || w.width === 0) return;
10810
- const L = gt(v.current), E = w.width, B = w.height, V = E - s.left - s.right, m = B - s.top - s.bottom;
10811
- if (V <= 0 || m <= 0) return;
10812
- const O = e.map((P) => P.anyo || P.year || P.x), T = t, z = qn(e, (P) => qn(T, (Z) => P[Z])) || 0, j = Wn(e, (P) => Wn(T, (Z) => P[Z])) || 0, Y = Dr().domain(O).rangeRound([0, V]).paddingInner(b), W = Dr().domain(T).rangeRound([0, Y.bandwidth()]).padding(p), ue = Di().domain([Math.min(0, z), j]).nice().rangeRound([m, 0]), D = Ii().domain(T).range(Array.isArray(n) ? n : Object.values(n || {}));
10810
+ const L = gt(v.current), E = w.width, F = w.height, P = E - s.left - s.right, m = F - s.top - s.bottom;
10811
+ if (P <= 0 || m <= 0) return;
10812
+ const O = e.map((V) => V.anyo || V.year || V.x), T = t, z = qn(e, (V) => qn(T, (Z) => V[Z])) || 0, j = Wn(e, (V) => Wn(T, (Z) => V[Z])) || 0, Y = Dr().domain(O).rangeRound([0, P]).paddingInner(y), W = Dr().domain(T).rangeRound([0, Y.bandwidth()]).padding(p), ue = Di().domain([Math.min(0, z), j]).nice().rangeRound([m, 0]), D = Ii().domain(T).range(Array.isArray(n) ? n : Object.values(n || {}));
10813
10813
  L.selectAll("*").remove();
10814
10814
  const M = L.append("g").attr("transform", `translate(${s.left},${s.top})`);
10815
- x && L.append("text").attr("x", E / 2).attr("y", s.top / 2).attr("text-anchor", "middle").style("font-size", "16px").style("font-weight", "bold").style("fill", "#333").text(x), d && M.append("g").attr("class", "grid").selectAll("line").data(ue.ticks()).enter().append("line").attr("x1", 0).attr("x2", V).attr("y1", (P) => ue(P)).attr("y2", (P) => ue(P)).style("stroke", "#e0e0e0").style("stroke-width", 0.5), l && (M.append("g").attr("transform", `translate(0,${m})`).call(Pi(Y).tickSizeOuter(0)).attr("class", "x-axis").selectAll("text").attr("transform", `translate(0,10)rotate(${h})`).style("text-anchor", h < 0 ? "end" : "middle").style("font-size", "12px").style("fill", "#605B56"), k && M.append("text").attr(
10815
+ x && L.append("text").attr("x", E / 2).attr("y", s.top / 2).attr("text-anchor", "middle").style("font-size", "16px").style("font-weight", "bold").style("fill", "#333").text(x), d && M.append("g").attr("class", "grid").selectAll("line").data(ue.ticks()).enter().append("line").attr("x1", 0).attr("x2", P).attr("y1", (V) => ue(V)).attr("y2", (V) => ue(V)).style("stroke", "#e0e0e0").style("stroke-width", 0.5), l && (M.append("g").attr("transform", `translate(0,${m})`).call(Pi(Y).tickSizeOuter(0)).attr("class", "x-axis").selectAll("text").attr("transform", `translate(0,10)rotate(${h})`).style("text-anchor", h < 0 ? "end" : "middle").style("font-size", "12px").style("fill", "#605B56"), k && M.append("text").attr(
10816
10816
  "transform",
10817
- `translate(${V / 2}, ${m + s.bottom - 5})`
10818
- ).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(k)), c && (M.append("g").call(Ir(ue).ticks(6).tickFormat(g)).attr("class", "y-axis").call((P) => P.select(".domain").remove()), $ && M.append("text").attr("transform", "rotate(-90)").attr("y", 0 - s.left).attr("x", 0 - m / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text($));
10819
- const K = M.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class", "bar-group").attr("transform", (P) => `translate(${Y(P.anyo || P.year || P.x)},0)`).selectAll(".bar").data(
10820
- (P) => T.map((Z) => ({
10817
+ `translate(${P / 2}, ${m + s.bottom - 5})`
10818
+ ).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(k)), c && (M.append("g").call(Ir(ue).ticks(6).tickFormat(g)).attr("class", "y-axis").call((V) => V.select(".domain").remove()), $ && M.append("text").attr("transform", "rotate(-90)").attr("y", 0 - s.left).attr("x", 0 - m / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text($));
10819
+ const K = M.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class", "bar-group").attr("transform", (V) => `translate(${Y(V.anyo || V.year || V.x)},0)`).selectAll(".bar").data(
10820
+ (V) => T.map((Z) => ({
10821
10821
  key: Z,
10822
- value: P[Z],
10823
- data: P
10822
+ value: V[Z],
10823
+ data: V
10824
10824
  }))
10825
- ).enter().append("rect").attr("class", "bar").attr("x", (P) => W(P.key)).attr("y", m).attr("width", W.bandwidth()).attr("height", 0).attr("fill", (P) => D(P.key)).style("cursor", f || _ ? "pointer" : "default");
10826
- K.transition().duration(y).attr("y", (P) => ue(Math.max(0, P.value))).attr("height", (P) => Math.abs(ue(P.value) - ue(0))), f && K.on("mouseover", function(P, Z) {
10827
- gt(this).style("opacity", 0.8), f(P, Z);
10828
- }).on("mouseout", function(P, Z) {
10825
+ ).enter().append("rect").attr("class", "bar").attr("x", (V) => W(V.key)).attr("y", m).attr("width", W.bandwidth()).attr("height", 0).attr("fill", (V) => D(V.key)).style("cursor", f || C ? "pointer" : "default");
10826
+ K.transition().duration(b).attr("y", (V) => ue(Math.max(0, V.value))).attr("height", (V) => Math.abs(ue(V.value) - ue(0))), f && K.on("mouseover", function(V, Z) {
10827
+ gt(this).style("opacity", 0.8), f(V, Z);
10828
+ }).on("mouseout", function(V, Z) {
10829
10829
  gt(this).style("opacity", 1);
10830
- }), _ && K.on("click", _);
10830
+ }), C && K.on("click", C);
10831
10831
  }, [
10832
10832
  e,
10833
10833
  t,
10834
10834
  n,
10835
10835
  w,
10836
10836
  s,
10837
- b,
10837
+ y,
10838
10838
  p,
10839
10839
  l,
10840
10840
  c,
10841
10841
  d,
10842
10842
  h,
10843
10843
  g,
10844
- y,
10844
+ b,
10845
10845
  f,
10846
- _,
10846
+ C,
10847
10847
  x,
10848
10848
  k,
10849
10849
  $
10850
10850
  ]), /* @__PURE__ */ u(
10851
10851
  "div",
10852
10852
  {
10853
- ref: C,
10853
+ ref: _,
10854
10854
  className: `${ki.svgContainer} ${a}`,
10855
10855
  style: { width: r, height: o + s.top + s.bottom },
10856
10856
  children: /* @__PURE__ */ u(
@@ -10912,31 +10912,31 @@ const Df = "_svgContainer_7fkic_2", If = "_svg_7fkic_2", Ti = {
10912
10912
  showYAxisLabels: d = !0,
10913
10913
  showGrid: h = !0,
10914
10914
  xAxisTickRotation: g = -90,
10915
- yAxisTickFormat: b = (E) => E.toLocaleString("es-ES"),
10915
+ yAxisTickFormat: y = (E) => E.toLocaleString("es-ES"),
10916
10916
  barPadding: p = 0.4,
10917
- animationDuration: y = 750,
10917
+ animationDuration: b = 750,
10918
10918
  onBarHover: f,
10919
- onBarClick: _,
10919
+ onBarClick: C,
10920
10920
  title: x,
10921
10921
  xAxisLabel: k,
10922
10922
  yAxisLabel: $,
10923
10923
  stackOrder: v = "reverse",
10924
10924
  // "reverse", "ascending", "descending", "insideOut", "none"
10925
- showTooltip: C = !0,
10925
+ showTooltip: _ = !0,
10926
10926
  reverseKeys: w = !0,
10927
10927
  minBarSlotWidth: N = 60,
10928
10928
  wrapXAxisLabels: L = !0
10929
10929
  }) => {
10930
- const E = Se(), B = Se();
10930
+ const E = Se(), F = Se();
10931
10931
  Se();
10932
- const [V, m] = le({
10932
+ const [P, m] = le({
10933
10933
  containerWidth: 0,
10934
10934
  height: 0
10935
10935
  }), { t: O } = ce();
10936
10936
  return J(() => {
10937
10937
  const T = () => {
10938
- if (B.current) {
10939
- const z = B.current.getBoundingClientRect().width;
10938
+ if (F.current) {
10939
+ const z = F.current.getBoundingClientRect().width;
10940
10940
  m({
10941
10941
  containerWidth: typeof o == "number" ? o : z,
10942
10942
  height: s
@@ -10945,8 +10945,8 @@ const Df = "_svgContainer_7fkic_2", If = "_svg_7fkic_2", Ti = {
10945
10945
  };
10946
10946
  return T(), window.addEventListener("resize", T), () => window.removeEventListener("resize", T);
10947
10947
  }, [o, s]), J(() => {
10948
- if (!e || e.length === 0 || V.containerWidth === 0) return;
10949
- const T = gt(E.current), { containerWidth: z, height: j } = V, Y = z - a.left - a.right, W = e.length * N, ue = Math.max(Y, W), D = ue + a.left + a.right, M = j - a.top - a.bottom;
10948
+ if (!e || e.length === 0 || P.containerWidth === 0) return;
10949
+ const T = gt(E.current), { containerWidth: z, height: j } = P, Y = z - a.left - a.right, W = e.length * N, ue = Math.max(Y, W), D = ue + a.left + a.right, M = j - a.top - a.bottom;
10950
10950
  if (ue <= 0 || M <= 0) return;
10951
10951
  T.attr("width", D).attr("height", j);
10952
10952
  const ee = w ? [...t].reverse() : t, K = [];
@@ -10958,7 +10958,7 @@ const Df = "_svgContainer_7fkic_2", If = "_svg_7fkic_2", Ti = {
10958
10958
  })), Ce = we.filter((_e) => _e.value < 0), Le = we.filter((_e) => _e.value >= 0);
10959
10959
  let qe = 0;
10960
10960
  Ce.forEach((_e) => {
10961
- const We = qe, R = qe + _e.value, F = Math.abs(R - We);
10961
+ const We = qe, R = qe + _e.value, B = Math.abs(R - We);
10962
10962
  K.push({
10963
10963
  key: _e.key,
10964
10964
  value: _e.value,
@@ -10966,34 +10966,34 @@ const Df = "_svgContainer_7fkic_2", If = "_svg_7fkic_2", Ti = {
10966
10966
  // El punto más alto
10967
10967
  y1: Math.min(We, R),
10968
10968
  // El punto más bajo
10969
- height: F,
10969
+ height: B,
10970
10970
  data: _e.data,
10971
10971
  xKey: re
10972
10972
  }), qe = R;
10973
10973
  });
10974
10974
  let Je = 0;
10975
10975
  Le.forEach((_e) => {
10976
- const We = Je, R = Je + _e.value, F = R - We;
10976
+ const We = Je, R = Je + _e.value, B = R - We;
10977
10977
  K.push({
10978
10978
  key: _e.key,
10979
10979
  value: _e.value,
10980
10980
  y0: Math.min(We, R),
10981
10981
  y1: Math.max(We, R),
10982
- height: F,
10982
+ height: B,
10983
10983
  data: _e.data,
10984
10984
  xKey: re
10985
10985
  }), Je = R;
10986
10986
  });
10987
10987
  });
10988
- const P = [
10988
+ const V = [
10989
10989
  qn(K, (q) => Math.min(q.y0, q.y1)) || 0,
10990
10990
  Wn(K, (q) => Math.max(q.y0, q.y1)) || 0
10991
10991
  ];
10992
10992
  let Z = [0, 0];
10993
10993
  r && r.length > 0 && (Z = [qn(r) || 0, Wn(r) || 0]);
10994
10994
  const ne = [
10995
- Math.min(P[0], Z[0]),
10996
- Math.max(P[1], Z[1])
10995
+ Math.min(V[0], Z[0]),
10996
+ Math.max(V[1], Z[1])
10997
10997
  ], G = Dr().domain(e.map((q) => q.any || q.year || q.x)).range([0, ue]).padding(p), U = Di().domain([ne[0], ne[1]]).nice(6).range([M, 0]), oe = Ii().domain(t).range(Array.isArray(n) ? n : Object.values(n || {})), te = r && r.length > 0 ? e.map((q, re) => {
10998
10998
  const we = G(q.any || q.year || q.x) + G.bandwidth() / 2, Ce = U(r[re] || 0);
10999
10999
  return { x: we, y: Ce };
@@ -11034,43 +11034,43 @@ const Df = "_svgContainer_7fkic_2", If = "_svg_7fkic_2", Ti = {
11034
11034
  ).text(qe[0]);
11035
11035
  else {
11036
11036
  const R = -(qe.length * 14 / 2) + 14 / 2;
11037
- qe.forEach((F, H) => {
11037
+ qe.forEach((B, H) => {
11038
11038
  Je.append("text").attr("x", R + H * 14).attr("y", 19).style("text-anchor", "end").style("font-size", "11px").style("fill", "#605B56").attr(
11039
11039
  "transform",
11040
11040
  `rotate(${g} ${R + H * 14} 15)`
11041
- ).text(F);
11041
+ ).text(B);
11042
11042
  });
11043
11043
  }
11044
11044
  }), k && de.append("text").attr(
11045
11045
  "transform",
11046
11046
  `translate(${ue / 2}, ${M + a.bottom - 5})`
11047
- ).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(k)), d && (de.append("g").attr("class", "y-axis").call(Ir(U).ticks(6).tickFormat(b)).call((q) => q.select(".domain").remove()), de.append("g").attr("class", "y-ticks").attr("transform", `translate(${ue}, 0)`).call(Ir(U).ticks(6).tickSizeInner(ue)).call((q) => q.select(".domain").remove()).call((q) => q.selectAll(".tick text").remove()), $ && de.append("text").attr("transform", "rotate(-90)").attr("y", 0 - a.left).attr("x", 0 - M / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text($));
11047
+ ).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(k)), d && (de.append("g").attr("class", "y-axis").call(Ir(U).ticks(6).tickFormat(y)).call((q) => q.select(".domain").remove()), de.append("g").attr("class", "y-ticks").attr("transform", `translate(${ue}, 0)`).call(Ir(U).ticks(6).tickSizeInner(ue)).call((q) => q.select(".domain").remove()).call((q) => q.selectAll(".tick text").remove()), $ && de.append("text").attr("transform", "rotate(-90)").attr("y", 0 - a.left).attr("x", 0 - M / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text($));
11048
11048
  let se;
11049
- C && (se = gt("body").append("div").attr("class", "chart-tooltip").style("position", "absolute").style("visibility", "hidden").style("background", "rgba(0, 0, 0, 0.8)").style("color", "white").style("padding", "8px").style("border-radius", "4px").style("font-size", "12px").style("pointer-events", "none").style("z-index", "1000"));
11049
+ _ && (se = gt("body").append("div").attr("class", "chart-tooltip").style("position", "absolute").style("visibility", "hidden").style("background", "rgba(0, 0, 0, 0.8)").style("color", "white").style("padding", "8px").style("border-radius", "4px").style("font-size", "12px").style("pointer-events", "none").style("z-index", "1000"));
11050
11050
  const Ie = de.selectAll(".segment").data(K, (q) => `${q.xKey}-${q.key}`);
11051
11051
  Ie.exit().remove();
11052
11052
  const tt = Ie.enter().append("rect").attr("class", "segment").attr("x", (q) => G(q.xKey)).attr("width", G.bandwidth()).attr("y", (q) => U(0)).attr("height", 0).attr("fill", (q) => oe(q.key)).style(
11053
11053
  "cursor",
11054
- f || _ || C ? "pointer" : "default"
11054
+ f || C || _ ? "pointer" : "default"
11055
11055
  ).merge(Ie);
11056
- if (tt.transition().duration(y).attr("x", (q) => G(q.xKey)).attr("y", (q) => Math.min(U(q.y0), U(q.y1))).attr("height", (q) => Math.abs(U(q.y1) - U(q.y0))), (C || f) && tt.on("mouseover", function(q, re) {
11056
+ if (tt.transition().duration(b).attr("x", (q) => G(q.xKey)).attr("y", (q) => Math.min(U(q.y0), U(q.y1))).attr("height", (q) => Math.abs(U(q.y1) - U(q.y0))), (_ || f) && tt.on("mouseover", function(q, re) {
11057
11057
  const we = re.value;
11058
- C && se && se.style("visibility", "visible").html(`
11058
+ _ && se && se.style("visibility", "visible").html(`
11059
11059
  <strong>${O(re.key)}</strong><br/>
11060
11060
  ${re.xKey}<br/>
11061
- ${b(we)}
11061
+ ${y(we)}
11062
11062
  `), gt(this).style("opacity", 0.8), f && f(q, {
11063
11063
  key: re.key,
11064
11064
  value: we,
11065
11065
  data: re.data
11066
11066
  });
11067
11067
  }).on("mousemove", function(q) {
11068
- C && se && se.style("top", q.pageY - 10 + "px").style("left", q.pageX + 10 + "px");
11068
+ _ && se && se.style("top", q.pageY - 10 + "px").style("left", q.pageX + 10 + "px");
11069
11069
  }).on("mouseout", function() {
11070
- C && se && se.style("visibility", "hidden"), gt(this).style("opacity", 1);
11071
- }), _ && tt.on("click", function(q, re) {
11070
+ _ && se && se.style("visibility", "hidden"), gt(this).style("opacity", 1);
11071
+ }), C && tt.on("click", function(q, re) {
11072
11072
  const we = re.value;
11073
- _(q, {
11073
+ C(q, {
11074
11074
  key: re.key,
11075
11075
  value: we,
11076
11076
  data: re.data
@@ -11087,28 +11087,28 @@ const Df = "_svgContainer_7fkic_2", If = "_svg_7fkic_2", Ti = {
11087
11087
  t,
11088
11088
  n,
11089
11089
  r,
11090
- V,
11090
+ P,
11091
11091
  a,
11092
11092
  p,
11093
11093
  c,
11094
11094
  d,
11095
11095
  h,
11096
11096
  g,
11097
- b,
11098
11097
  y,
11098
+ b,
11099
11099
  f,
11100
- _,
11100
+ C,
11101
11101
  x,
11102
11102
  k,
11103
11103
  $,
11104
11104
  v,
11105
- C,
11105
+ _,
11106
11106
  w,
11107
11107
  L
11108
11108
  ]), /* @__PURE__ */ u(
11109
11109
  "div",
11110
11110
  {
11111
- ref: B,
11111
+ ref: F,
11112
11112
  className: `${Ti.svgContainer} ${l}`,
11113
11113
  style: {
11114
11114
  width: o,
@@ -11203,7 +11203,7 @@ const Vf = "_externalContainer_1er0i_2", Ff = "_externalSintetic_1er0i_9", Bf =
11203
11203
  getTotal: d = Qf,
11204
11204
  columnWidth: h = 50
11205
11205
  }) => {
11206
- const g = c || ((p) => p), b = (p) => p === "demanda_red" || p === "reduccio_demanda_red" ? (l.demanda || "").replace("(", "").replace(")", "") : l[p] || "";
11206
+ const g = c || ((p) => p), y = (p) => p === "demanda_red" || p === "reduccio_demanda_red" ? (l.demanda || "").replace("(", "").replace(")", "") : l[p] || "";
11207
11207
  return /* @__PURE__ */ S(
11208
11208
  "div",
11209
11209
  {
@@ -11211,9 +11211,9 @@ const Vf = "_externalContainer_1er0i_2", Ff = "_externalSintetic_1er0i_9", Bf =
11211
11211
  children: [
11212
11212
  s === !0 && /* @__PURE__ */ S(pn, { children: [
11213
11213
  /* @__PURE__ */ u("div", {}),
11214
- /* @__PURE__ */ u("div", { className: Be.yearTitles, children: e.map((p, y) => /* @__PURE__ */ u("div", { className: Be.yearTitle, style: { width: h }, children: p.anyo }, y)) })
11214
+ /* @__PURE__ */ u("div", { className: Be.yearTitles, children: e.map((p, b) => /* @__PURE__ */ u("div", { className: Be.yearTitle, style: { width: h }, children: p.anyo }, b)) })
11215
11215
  ] }),
11216
- /* @__PURE__ */ u("div", { className: Be.titles, children: t.map((p, y) => /* @__PURE__ */ S("div", { className: Be.titleContainer, children: [
11216
+ /* @__PURE__ */ u("div", { className: Be.titles, children: t.map((p, b) => /* @__PURE__ */ S("div", { className: Be.titleContainer, children: [
11217
11217
  g(r[p]),
11218
11218
  a !== "sin" && /* @__PURE__ */ u(
11219
11219
  "span",
@@ -11222,8 +11222,8 @@ const Vf = "_externalContainer_1er0i_2", Ff = "_externalSintetic_1er0i_9", Bf =
11222
11222
  style: { background: n[p] }
11223
11223
  }
11224
11224
  )
11225
- ] }, y)) }),
11226
- o === !0 && /* @__PURE__ */ u("div", { className: Be.totalContainer, children: t.map((p, y) => {
11225
+ ] }, b)) }),
11226
+ o === !0 && /* @__PURE__ */ u("div", { className: Be.totalContainer, children: t.map((p, b) => {
11227
11227
  var f;
11228
11228
  return /* @__PURE__ */ S(
11229
11229
  "div",
@@ -11232,14 +11232,14 @@ const Vf = "_externalContainer_1er0i_2", Ff = "_externalSintetic_1er0i_9", Bf =
11232
11232
  children: [
11233
11233
  (f = d(p, e)) == null ? void 0 : f.toLocaleString("es-ES"),
11234
11234
  " ",
11235
- b(p)
11235
+ y(p)
11236
11236
  ]
11237
11237
  },
11238
- y
11238
+ b
11239
11239
  );
11240
11240
  }) }),
11241
- /* @__PURE__ */ u("div", { className: Be.yearDatas, children: e.map((p, y) => /* @__PURE__ */ u("div", { className: Be.yearDataContainer, style: { width: h }, children: t.map(
11242
- (f, _) => {
11241
+ /* @__PURE__ */ u("div", { className: Be.yearDatas, children: e.map((p, b) => /* @__PURE__ */ u("div", { className: Be.yearDataContainer, style: { width: h }, children: t.map(
11242
+ (f, C) => {
11243
11243
  var x, k;
11244
11244
  return isNaN(p[f]) ? null : /* @__PURE__ */ u(
11245
11245
  "div",
@@ -11247,10 +11247,10 @@ const Vf = "_externalContainer_1er0i_2", Ff = "_externalSintetic_1er0i_9", Bf =
11247
11247
  className: `${Be.yearDataContent} ${p[f] > 9999 || p[f] < -9999 ? Be.bigNumber : ""}`,
11248
11248
  children: p[f] < 1e4 || p[f] > -1e4 ? (x = Xf(p[f])) == null ? void 0 : x.toLocaleString("es-ES") : (k = p[f]) == null ? void 0 : k.toLocaleString("es-ES")
11249
11249
  },
11250
- _
11250
+ C
11251
11251
  );
11252
11252
  }
11253
- ) }, y)) })
11253
+ ) }, b)) })
11254
11254
  ]
11255
11255
  }
11256
11256
  );
@@ -11472,7 +11472,7 @@ const op = ({
11472
11472
  containerStyles: h = {},
11473
11473
  alignLeft: g = !1
11474
11474
  }) => {
11475
- const [b, p] = le(null), y = r / 2, f = r / 2, _ = r / 2 - 14, x = e === "donut" ? _ - o : 0, k = e === "donut" ? _ - o / 2 : _ * 0.62, $ = je(() => rp(t), [t]), v = b !== null ? $[b] : null, C = $.some((N) => N.ea - N.sa >= 359.99), w = a || (l === "transparent" ? np : l);
11475
+ const [y, p] = le(null), b = r / 2, f = r / 2, C = r / 2 - 14, x = e === "donut" ? C - o : 0, k = e === "donut" ? C - o / 2 : C * 0.62, $ = je(() => rp(t), [t]), v = y !== null ? $[y] : null, _ = $.some((N) => N.ea - N.sa >= 359.99), w = a || (l === "transparent" ? np : l);
11476
11476
  return /* @__PURE__ */ S(
11477
11477
  "div",
11478
11478
  {
@@ -11576,11 +11576,11 @@ const op = ({
11576
11576
  style: { overflow: "visible" },
11577
11577
  children: [
11578
11578
  $.map((N, L) => {
11579
- const E = b === L, { tx: B, ty: V } = E && !C ? Ni(y, f, N.sa, N.ea, 10) : { tx: 0, ty: 0 };
11579
+ const E = y === L, { tx: F, ty: P } = E && !_ ? Ni(b, f, N.sa, N.ea, 10) : { tx: 0, ty: 0 };
11580
11580
  return /* @__PURE__ */ u(
11581
11581
  "g",
11582
11582
  {
11583
- transform: `translate(${B}, ${V})`,
11583
+ transform: `translate(${F}, ${P})`,
11584
11584
  style: {
11585
11585
  transition: "transform 0.18s ease",
11586
11586
  pointerEvents: "none"
@@ -11588,7 +11588,7 @@ const op = ({
11588
11588
  children: /* @__PURE__ */ u(
11589
11589
  "path",
11590
11590
  {
11591
- d: $i(y, f, x, _, N.sa, N.ea),
11591
+ d: $i(b, f, x, C, N.sa, N.ea),
11592
11592
  fill: N.color || Rr,
11593
11593
  style: {
11594
11594
  filter: E ? "brightness(1.25)" : "brightness(1)",
@@ -11600,13 +11600,13 @@ const op = ({
11600
11600
  L
11601
11601
  );
11602
11602
  }),
11603
- !C && $.map((N, L) => {
11604
- const E = ut(y, f, _, N.sa), B = e === "cheese" ? y : ut(y, f, x, N.sa).x, V = e === "cheese" ? f : ut(y, f, x, N.sa).y;
11603
+ !_ && $.map((N, L) => {
11604
+ const E = ut(b, f, C, N.sa), F = e === "cheese" ? b : ut(b, f, x, N.sa).x, P = e === "cheese" ? f : ut(b, f, x, N.sa).y;
11605
11605
  return /* @__PURE__ */ u(
11606
11606
  "line",
11607
11607
  {
11608
- x1: B,
11609
- y1: V,
11608
+ x1: F,
11609
+ y1: P,
11610
11610
  x2: E.x,
11611
11611
  y2: E.y,
11612
11612
  stroke: w,
@@ -11619,12 +11619,12 @@ const op = ({
11619
11619
  }),
11620
11620
  $.map((N, L) => {
11621
11621
  if (N.ea - N.sa < 20) return null;
11622
- const E = b === L, { tx: B, ty: V } = E && !C ? Ni(y, f, N.sa, N.ea, 10) : { tx: 0, ty: 0 }, m = N.sa + (N.ea - N.sa) / 2, O = ut(y, f, k, m);
11622
+ const E = y === L, { tx: F, ty: P } = E && !_ ? Ni(b, f, N.sa, N.ea, 10) : { tx: 0, ty: 0 }, m = N.sa + (N.ea - N.sa) / 2, O = ut(b, f, k, m);
11623
11623
  return /* @__PURE__ */ S(
11624
11624
  "text",
11625
11625
  {
11626
- x: O.x + B,
11627
- y: O.y + V,
11626
+ x: O.x + F,
11627
+ y: O.y + P,
11628
11628
  textAnchor: "middle",
11629
11629
  dominantBaseline: "middle",
11630
11630
  fill: d,
@@ -11644,7 +11644,7 @@ const op = ({
11644
11644
  $.map((N, L) => /* @__PURE__ */ u(
11645
11645
  "path",
11646
11646
  {
11647
- d: $i(y, f, x, _, N.sa, N.ea),
11647
+ d: $i(b, f, x, C, N.sa, N.ea),
11648
11648
  fill: "transparent",
11649
11649
  style: { cursor: "pointer" },
11650
11650
  onMouseEnter: () => p(L),
@@ -11672,7 +11672,7 @@ const op = ({
11672
11672
  alignItems: "center",
11673
11673
  gap: "8px",
11674
11674
  cursor: "pointer",
11675
- opacity: b === null || b === L ? 1 : 0.4,
11675
+ opacity: y === null || y === L ? 1 : 0.4,
11676
11676
  transition: "opacity 0.15s"
11677
11677
  },
11678
11678
  onMouseEnter: () => p(L),
@@ -11755,10 +11755,10 @@ const Ei = [
11755
11755
  const [h, g] = le(s ? 0 : 1);
11756
11756
  J(() => {
11757
11757
  if (!s) return;
11758
- const y = requestAnimationFrame(() => g(1));
11759
- return () => cancelAnimationFrame(y);
11758
+ const b = requestAnimationFrame(() => g(1));
11759
+ return () => cancelAnimationFrame(b);
11760
11760
  }, [s]);
11761
- const b = Math.max(...e.map((y) => y.value), 1), p = a ?? "6px";
11761
+ const y = Math.max(...e.map((b) => b.value), 1), p = a ?? "6px";
11762
11762
  return /* @__PURE__ */ S(
11763
11763
  "div",
11764
11764
  {
@@ -11786,8 +11786,8 @@ const Ei = [
11786
11786
  children: t
11787
11787
  }
11788
11788
  ),
11789
- /* @__PURE__ */ u("div", { style: { display: "flex", flexDirection: "column", gap: "18px" }, children: e.map((y, f) => {
11790
- const _ = y.color || Ei[f % Ei.length], x = y.value / b * 100 * h;
11789
+ /* @__PURE__ */ u("div", { style: { display: "flex", flexDirection: "column", gap: "18px" }, children: e.map((b, f) => {
11790
+ const C = b.color || Ei[f % Ei.length], x = b.value / y * 100 * h;
11791
11791
  return /* @__PURE__ */ S(
11792
11792
  "div",
11793
11793
  {
@@ -11802,7 +11802,7 @@ const Ei = [
11802
11802
  fontWeight: "400",
11803
11803
  opacity: 0.9
11804
11804
  },
11805
- children: y.title
11805
+ children: b.title
11806
11806
  }
11807
11807
  ),
11808
11808
  /* @__PURE__ */ S(
@@ -11825,7 +11825,7 @@ const Ei = [
11825
11825
  top: 0,
11826
11826
  height: "100%",
11827
11827
  width: `${x}%`,
11828
- background: _,
11828
+ background: C,
11829
11829
  borderRadius: p,
11830
11830
  transition: s ? "width 0.8s cubic-bezier(0.16, 1, 0.3, 1)" : "none"
11831
11831
  }
@@ -11850,7 +11850,7 @@ const Ei = [
11850
11850
  paintOrder: "stroke fill"
11851
11851
  } : {}
11852
11852
  },
11853
- children: y.value
11853
+ children: b.value
11854
11854
  }
11855
11855
  )
11856
11856
  ]
@@ -11902,15 +11902,15 @@ const Oi = [
11902
11902
  separatorColor: d,
11903
11903
  containerStyles: h = {}
11904
11904
  }) => {
11905
- const [g, b] = le(c ? 0 : 1);
11905
+ const [g, y] = le(c ? 0 : 1);
11906
11906
  J(() => {
11907
11907
  if (!c) return;
11908
- const _ = requestAnimationFrame(
11909
- () => requestAnimationFrame(() => b(1))
11908
+ const C = requestAnimationFrame(
11909
+ () => requestAnimationFrame(() => y(1))
11910
11910
  );
11911
- return () => cancelAnimationFrame(_);
11911
+ return () => cancelAnimationFrame(C);
11912
11912
  }, [c]);
11913
- const p = Math.max(...e.map((_) => _.value), 1), y = d || (r === "#ffffff" ? "rgba(255,255,255,0.25)" : "rgba(0,0,0,0.15)"), f = {
11913
+ const p = Math.max(...e.map((C) => C.value), 1), b = d || (r === "#ffffff" ? "rgba(255,255,255,0.25)" : "rgba(0,0,0,0.15)"), f = {
11914
11914
  fontSize: "15px",
11915
11915
  fontWeight: "700",
11916
11916
  letterSpacing: "-0.3px",
@@ -11955,8 +11955,8 @@ const Oi = [
11955
11955
  gap: "12px",
11956
11956
  height: `${l}px`
11957
11957
  },
11958
- children: e.map((_, x) => {
11959
- const k = _.color || Oi[x % Oi.length], $ = _.value === 0, v = $ ? 0 : _.value / p * l * g;
11958
+ children: e.map((C, x) => {
11959
+ const k = C.color || Oi[x % Oi.length], $ = C.value === 0, v = $ ? 0 : C.value / p * l * g;
11960
11960
  return /* @__PURE__ */ u(
11961
11961
  "div",
11962
11962
  {
@@ -11970,7 +11970,7 @@ const Oi = [
11970
11970
  },
11971
11971
  children: $ ? (
11972
11972
  // Value sits just above the separator, no bar rendered
11973
- /* @__PURE__ */ u("span", { style: { ...f, color: o, marginBottom: "6px" }, children: _.value })
11973
+ /* @__PURE__ */ u("span", { style: { ...f, color: o, marginBottom: "6px" }, children: C.value })
11974
11974
  ) : /* @__PURE__ */ u(
11975
11975
  "div",
11976
11976
  {
@@ -11986,7 +11986,7 @@ const Oi = [
11986
11986
  justifyContent: "center",
11987
11987
  paddingTop: "10px"
11988
11988
  },
11989
- children: /* @__PURE__ */ u("span", { style: { ...f, color: o }, children: _.value })
11989
+ children: /* @__PURE__ */ u("span", { style: { ...f, color: o }, children: C.value })
11990
11990
  }
11991
11991
  )
11992
11992
  },
@@ -12000,12 +12000,12 @@ const Oi = [
12000
12000
  {
12001
12001
  style: {
12002
12002
  height: "1.5px",
12003
- background: y,
12003
+ background: b,
12004
12004
  borderRadius: "1px"
12005
12005
  }
12006
12006
  }
12007
12007
  ),
12008
- /* @__PURE__ */ u("div", { style: { display: "flex", gap: "12px", marginTop: "10px" }, children: e.map((_, x) => /* @__PURE__ */ u(
12008
+ /* @__PURE__ */ u("div", { style: { display: "flex", gap: "12px", marginTop: "10px" }, children: e.map((C, x) => /* @__PURE__ */ u(
12009
12009
  "div",
12010
12010
  {
12011
12011
  style: {
@@ -12019,7 +12019,7 @@ const Oi = [
12019
12019
  overflow: "hidden",
12020
12020
  textOverflow: "ellipsis"
12021
12021
  },
12022
- children: _.title
12022
+ children: C.title
12023
12023
  },
12024
12024
  x
12025
12025
  )) })
@@ -12059,10 +12059,7 @@ const ap = "_percentageBarContainer_lgkme_3", lp = "_barContainer_lgkme_10", cp
12059
12059
  labelText: hp,
12060
12060
  labelValue: gp,
12061
12061
  labelTranslation: yp
12062
- }, bp = 2, Ai = (e) => {
12063
- const t = e.reduce((n, r) => n + r.value, 0);
12064
- return t === 0 ? e.map(() => 100 / e.length) : e.map((n) => n.value / t * 100);
12065
- }, Li = (e, t) => {
12062
+ }, bp = 2, Ai = (e, t = 100) => e.map((n) => n.value / t * 100), Li = (e, t) => {
12066
12063
  try {
12067
12064
  const r = new Function("x", `return (${t})`)(e);
12068
12065
  return isNaN(r) ? "N/A" : r.toFixed(2);
@@ -12075,100 +12072,101 @@ const ap = "_percentageBarContainer_lgkme_3", lp = "_barContainer_lgkme_10", cp
12075
12072
  showTranslations: n = !0,
12076
12073
  onChange: r,
12077
12074
  minPercentage: o = bp,
12078
- labelTextColor: s,
12079
- labelValueColor: a
12075
+ maxValue: s = 100,
12076
+ labelTextColor: a,
12077
+ labelValueColor: l
12080
12078
  }) => {
12081
- const [l, c] = le(() => Ai(e)), d = Se(null), h = Se(null);
12079
+ const [c, d] = le(() => Ai(e, s)), h = Se(null), g = Se(null);
12082
12080
  J(() => {
12083
- e && e.length > 0 && c(Ai(e));
12084
- }, [e]);
12085
- const g = co(
12086
- (y) => {
12087
- if (!d.current || !h.current) return;
12088
- const { dividerIndex: f } = d.current, _ = h.current.getBoundingClientRect(), x = (y.touches ? y.touches[0].clientX : y.clientX) - _.left, k = Math.max(0, Math.min(100, x / _.width * 100));
12089
- c(($) => {
12090
- const v = [...$], C = $.slice(0, f).reduce((E, B) => E + B, 0), w = C + $[f] + $[f + 1];
12091
- let N = k - C, L = w - k;
12092
- if (N < o && (N = o, L = w - C - o), L < o && (L = o, N = w - C - o), v[f] = N, v[f + 1] = L, r)
12081
+ e && e.length > 0 && d(Ai(e, s));
12082
+ }, [e, s]);
12083
+ const y = co(
12084
+ (f) => {
12085
+ if (!h.current || !g.current) return;
12086
+ const { dividerIndex: C } = h.current, x = g.current.getBoundingClientRect(), k = (f.touches ? f.touches[0].clientX : f.clientX) - x.left, $ = Math.max(0, Math.min(100, k / x.width * 100));
12087
+ d((v) => {
12088
+ const _ = [...v], w = v.slice(0, C).reduce((F, P) => F + P, 0), N = w + v[C] + v[C + 1];
12089
+ let L = $ - w, E = N - $;
12090
+ if (L < o && (L = o, E = N - w - o), E < o && (E = o, L = N - w - o), _[C] = L, _[C + 1] = E, r)
12093
12091
  try {
12094
12092
  r(
12095
- e.map((E, B) => ({
12096
- ...E,
12097
- value: v[B]
12093
+ e.map((F, P) => ({
12094
+ ...F,
12095
+ value: _[P] / 100 * s
12098
12096
  }))
12099
12097
  );
12100
- } catch (E) {
12101
- console.error("PercentageBar onChange error:", E);
12098
+ } catch (F) {
12099
+ console.error("PercentageBar onChange error:", F);
12102
12100
  }
12103
- return v;
12101
+ return _;
12104
12102
  });
12105
12103
  },
12106
- [o, r, e]
12107
- ), b = co(() => {
12108
- d.current && (d.current = null, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", b), document.removeEventListener("touchmove", g), document.removeEventListener("touchend", b), c((y) => (r && r(
12109
- e.map((f, _) => ({
12110
- ...f,
12111
- value: y[_]
12104
+ [o, r, e, s]
12105
+ ), p = co(() => {
12106
+ h.current && (h.current = null, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", p), document.removeEventListener("touchmove", y), document.removeEventListener("touchend", p), d((f) => (r && r(
12107
+ e.map((C, x) => ({
12108
+ ...C,
12109
+ value: f[x] / 100 * s
12112
12110
  }))
12113
- ), y)));
12114
- }, [g, r, e]), p = (y, f) => {
12115
- f.preventDefault(), d.current = { dividerIndex: y }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", b), document.addEventListener("touchmove", g, { passive: !1 }), document.addEventListener("touchend", b);
12111
+ ), f)));
12112
+ }, [y, r, e, s]), b = (f, C) => {
12113
+ C.preventDefault(), h.current = { dividerIndex: f }, document.addEventListener("mousemove", y), document.addEventListener("mouseup", p), document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", p);
12116
12114
  };
12117
12115
  return /* @__PURE__ */ S("div", { className: Pe.percentageBarContainer, children: [
12118
- /* @__PURE__ */ u("div", { className: Pe.barContainer, ref: h, children: e.map((y, f) => {
12119
- var _;
12116
+ /* @__PURE__ */ u("div", { className: Pe.barContainer, ref: g, children: e.map((f, C) => {
12117
+ var x;
12120
12118
  return /* @__PURE__ */ u(
12121
12119
  "div",
12122
12120
  {
12123
12121
  className: Pe.segment,
12124
12122
  style: {
12125
- width: `${l[f]}%`,
12126
- backgroundColor: y.color || "#ccc"
12123
+ width: `${c[C]}%`,
12124
+ backgroundColor: f.color || "#ccc"
12127
12125
  },
12128
- children: f > 0 && /* @__PURE__ */ u(
12126
+ children: C > 0 && /* @__PURE__ */ u(
12129
12127
  "div",
12130
12128
  {
12131
12129
  className: Pe.handle,
12132
- onMouseDown: (x) => p(f - 1, x),
12133
- onTouchStart: (x) => p(f - 1, x),
12130
+ onMouseDown: (k) => b(C - 1, k),
12131
+ onTouchStart: (k) => b(C - 1, k),
12134
12132
  role: "slider",
12135
- "aria-label": `Divisor entre ${(_ = e[f - 1]) == null ? void 0 : _.title} y ${y.title}`,
12136
- "aria-valuenow": Math.round(l[f]),
12133
+ "aria-label": `Divisor entre ${(x = e[C - 1]) == null ? void 0 : x.title} y ${f.title}`,
12134
+ "aria-valuenow": Math.round(c[C]),
12137
12135
  tabIndex: 0
12138
12136
  }
12139
12137
  )
12140
12138
  },
12141
- y.id ?? f
12139
+ f.id ?? C
12142
12140
  );
12143
12141
  }) }),
12144
- t === "bar" && /* @__PURE__ */ u("div", { className: Pe.labelsContainer, children: e.map((y, f) => /* @__PURE__ */ S(
12142
+ t === "bar" && /* @__PURE__ */ u("div", { className: Pe.labelsContainer, children: e.map((f, C) => /* @__PURE__ */ S(
12145
12143
  "div",
12146
12144
  {
12147
12145
  className: Pe.labelItem,
12148
- style: { width: `${l[f]}%` },
12146
+ style: { width: `${c[C]}%` },
12149
12147
  children: [
12150
12148
  /* @__PURE__ */ u(
12151
12149
  "span",
12152
12150
  {
12153
12151
  className: Pe.labelColor,
12154
- style: { backgroundColor: y.color }
12152
+ style: { backgroundColor: f.color }
12155
12153
  }
12156
12154
  ),
12157
- /* @__PURE__ */ u("span", { className: Pe.labelText, style: { color: s || "#fff" }, children: y.title }),
12158
- /* @__PURE__ */ S("span", { className: Pe.labelValue, style: { color: a || "#fff" }, children: [
12159
- l[f].toFixed(1),
12155
+ /* @__PURE__ */ u("span", { className: Pe.labelText, style: { color: a || "#fff" }, children: f.title }),
12156
+ /* @__PURE__ */ S("span", { className: Pe.labelValue, style: { color: l || "#fff" }, children: [
12157
+ c[C].toFixed(1),
12160
12158
  "%"
12161
12159
  ] }),
12162
- n && y.translationFormula && /* @__PURE__ */ S("span", { className: Pe.labelTranslation, children: [
12160
+ n && f.translationFormula && /* @__PURE__ */ S("span", { className: Pe.labelTranslation, children: [
12163
12161
  "(",
12164
- Li(l[f], y.translationFormula),
12162
+ Li(c[C], f.translationFormula),
12165
12163
  ")"
12166
12164
  ] })
12167
12165
  ]
12168
12166
  },
12169
- y.id ?? f
12167
+ f.id ?? C
12170
12168
  )) }),
12171
- t === "list" && /* @__PURE__ */ u("div", { className: Pe.labelsListContainer, children: e.map((y, f) => /* @__PURE__ */ S(
12169
+ t === "list" && /* @__PURE__ */ u("div", { className: Pe.labelsListContainer, children: e.map((f, C) => /* @__PURE__ */ S(
12172
12170
  "div",
12173
12171
  {
12174
12172
  className: Pe.labelItem,
@@ -12177,22 +12175,22 @@ const ap = "_percentageBarContainer_lgkme_3", lp = "_barContainer_lgkme_10", cp
12177
12175
  "span",
12178
12176
  {
12179
12177
  className: Pe.labelColor,
12180
- style: { backgroundColor: y.color }
12178
+ style: { backgroundColor: f.color }
12181
12179
  }
12182
12180
  ),
12183
- /* @__PURE__ */ u("span", { className: Pe.labelText, children: y.title }),
12181
+ /* @__PURE__ */ u("span", { className: Pe.labelText, children: f.title }),
12184
12182
  /* @__PURE__ */ S("span", { className: Pe.labelValue, children: [
12185
- l[f].toFixed(1),
12183
+ c[C].toFixed(1),
12186
12184
  "%"
12187
12185
  ] }),
12188
- n && y.translationFormula && /* @__PURE__ */ S("span", { className: Pe.labelTranslation, children: [
12186
+ n && f.translationFormula && /* @__PURE__ */ S("span", { className: Pe.labelTranslation, children: [
12189
12187
  "(",
12190
- Li(l[f], y.translationFormula),
12188
+ Li(c[C], f.translationFormula),
12191
12189
  ")"
12192
12190
  ] })
12193
12191
  ]
12194
12192
  },
12195
- y.id ?? f
12193
+ f.id ?? C
12196
12194
  )) })
12197
12195
  ] });
12198
12196
  };
@@ -12209,7 +12207,10 @@ vp.propTypes = {
12209
12207
  showLabels: i.string,
12210
12208
  showTranslations: i.bool,
12211
12209
  onChange: i.func,
12212
- minPercentage: i.number
12210
+ minPercentage: i.number,
12211
+ maxValue: i.number,
12212
+ labelTextColor: i.string,
12213
+ labelValueColor: i.string
12213
12214
  };
12214
12215
  const Cp = "_header_13kbt_2", _p = "_leftComponents_13kbt_13", xp = "_centerComponents_13kbt_14", wp = "_rightComponents_13kbt_15", Sp = "_componentsContainer_13kbt_32", Tt = {
12215
12216
  header: Cp,