@sme.up/ketchup2 2.0.0-SNAPSHOT-20250702074628 → 2.0.0-SNAPSHOT-20250702100417

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.
@@ -1,6 +1,6 @@
1
1
  import * as Ke from "react";
2
- import st, { useState as H, useRef as ce, useEffect as re, useCallback as ue, useLayoutEffect as Fr, useId as Te, useMemo as Vr, createElement as Yr } from "react";
3
- import { createPortal as Ur } from "react-dom";
2
+ import st, { useState as H, useRef as ce, useEffect as re, useCallback as ue, useLayoutEffect as Fr, useId as Te, useMemo as Vr, createElement as Wr } from "react";
3
+ import { createPortal as Yr } from "react-dom";
4
4
  var ze = { exports: {} }, Fe = {};
5
5
  /**
6
6
  * @license React
@@ -12,7 +12,7 @@ var ze = { exports: {} }, Fe = {};
12
12
  * LICENSE file in the root directory of this source tree.
13
13
  */
14
14
  var Nt;
15
- function Wr() {
15
+ function Ur() {
16
16
  if (Nt) return Fe;
17
17
  Nt = 1;
18
18
  var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
@@ -58,9 +58,9 @@ function Br() {
58
58
  return "Profiler";
59
59
  case S:
60
60
  return "StrictMode";
61
- case v:
61
+ case y:
62
62
  return "Suspense";
63
- case $:
63
+ case R:
64
64
  return "SuspenseList";
65
65
  case L:
66
66
  return "Activity";
@@ -73,17 +73,17 @@ function Br() {
73
73
  return "Portal";
74
74
  case T:
75
75
  return (h.displayName || "Context") + ".Provider";
76
- case E:
77
- return (h._context.displayName || "Context") + ".Consumer";
78
- case x:
79
- var y = h.render;
80
- return h = h.displayName, h || (h = y.displayName || y.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
81
76
  case w:
82
- return y = h.displayName || null, y !== null ? y : r(h.type) || "Memo";
83
- case R:
84
- y = h._payload, h = h._init;
77
+ return (h._context.displayName || "Context") + ".Consumer";
78
+ case v:
79
+ var x = h.render;
80
+ return h = h.displayName, h || (h = x.displayName || x.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
81
+ case E:
82
+ return x = h.displayName || null, x !== null ? x : r(h.type) || "Memo";
83
+ case D:
84
+ x = h._payload, h = h._init;
85
85
  try {
86
- return r(h(y));
86
+ return r(h(x));
87
87
  } catch {
88
88
  }
89
89
  }
@@ -95,27 +95,27 @@ function Br() {
95
95
  function t(h) {
96
96
  try {
97
97
  e(h);
98
- var y = !1;
98
+ var x = !1;
99
99
  } catch {
100
- y = !0;
100
+ x = !0;
101
101
  }
102
- if (y) {
103
- y = console;
104
- var _ = y.error, j = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
102
+ if (x) {
103
+ x = console;
104
+ var _ = x.error, $ = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
105
105
  return _.call(
106
- y,
106
+ x,
107
107
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
- j
108
+ $
109
109
  ), e(h);
110
110
  }
111
111
  }
112
112
  function n(h) {
113
113
  if (h === b) return "<>";
114
- if (typeof h == "object" && h !== null && h.$$typeof === R)
114
+ if (typeof h == "object" && h !== null && h.$$typeof === D)
115
115
  return "<...>";
116
116
  try {
117
- var y = r(h);
118
- return y ? "<" + y + ">" : "<...>";
117
+ var x = r(h);
118
+ return x ? "<" + x + ">" : "<...>";
119
119
  } catch {
120
120
  return "<...>";
121
121
  }
@@ -129,16 +129,16 @@ function Br() {
129
129
  }
130
130
  function i(h) {
131
131
  if (k.call(h, "key")) {
132
- var y = Object.getOwnPropertyDescriptor(h, "key").get;
133
- if (y && y.isReactWarning) return !1;
132
+ var x = Object.getOwnPropertyDescriptor(h, "key").get;
133
+ if (x && x.isReactWarning) return !1;
134
134
  }
135
135
  return h.key !== void 0;
136
136
  }
137
- function o(h, y) {
137
+ function o(h, x) {
138
138
  function _() {
139
139
  B || (B = !0, console.error(
140
140
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
141
- y
141
+ x
142
142
  ));
143
143
  }
144
144
  _.isReactWarning = !0, Object.defineProperty(h, "key", {
@@ -152,13 +152,13 @@ function Br() {
152
152
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
153
153
  )), h = this.props.ref, h !== void 0 ? h : null;
154
154
  }
155
- function c(h, y, _, j, D, P, Y, U) {
155
+ function c(h, x, _, $, j, P, W, Y) {
156
156
  return _ = P.ref, h = {
157
157
  $$typeof: g,
158
158
  type: h,
159
- key: y,
159
+ key: x,
160
160
  props: P,
161
- _owner: D
161
+ _owner: j
162
162
  }, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(h, "ref", {
163
163
  enumerable: !1,
164
164
  get: l
@@ -176,50 +176,50 @@ function Br() {
176
176
  configurable: !1,
177
177
  enumerable: !1,
178
178
  writable: !0,
179
- value: Y
179
+ value: W
180
180
  }), Object.defineProperty(h, "_debugTask", {
181
181
  configurable: !1,
182
182
  enumerable: !1,
183
183
  writable: !0,
184
- value: U
184
+ value: Y
185
185
  }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
186
186
  }
187
- function f(h, y, _, j, D, P, Y, U) {
188
- var V = y.children;
187
+ function f(h, x, _, $, j, P, W, Y) {
188
+ var V = x.children;
189
189
  if (V !== void 0)
190
- if (j)
190
+ if ($)
191
191
  if (N(V)) {
192
- for (j = 0; j < V.length; j++)
193
- u(V[j]);
192
+ for ($ = 0; $ < V.length; $++)
193
+ u(V[$]);
194
194
  Object.freeze && Object.freeze(V);
195
195
  } else
196
196
  console.error(
197
197
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
198
198
  );
199
199
  else u(V);
200
- if (k.call(y, "key")) {
200
+ if (k.call(x, "key")) {
201
201
  V = r(h);
202
- var J = Object.keys(y).filter(function(se) {
202
+ var J = Object.keys(x).filter(function(se) {
203
203
  return se !== "key";
204
204
  });
205
- j = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", F[V + j] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ $ = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", F[V + $] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
206
206
  `A props object containing a "key" prop is being spread into JSX:
207
207
  let props = %s;
208
208
  <%s {...props} />
209
209
  React keys must be passed directly to JSX without using spread:
210
210
  let props = %s;
211
211
  <%s key={someKey} {...props} />`,
212
- j,
212
+ $,
213
213
  V,
214
214
  J,
215
215
  V
216
- ), F[V + j] = !0);
216
+ ), F[V + $] = !0);
217
217
  }
218
- if (V = null, _ !== void 0 && (t(_), V = "" + _), i(y) && (t(y.key), V = "" + y.key), "key" in y) {
218
+ if (V = null, _ !== void 0 && (t(_), V = "" + _), i(x) && (t(x.key), V = "" + x.key), "key" in x) {
219
219
  _ = {};
220
- for (var K in y)
221
- K !== "key" && (_[K] = y[K]);
222
- } else _ = y;
220
+ for (var K in x)
221
+ K !== "key" && (_[K] = x[K]);
222
+ } else _ = x;
223
223
  return V && o(
224
224
  _,
225
225
  typeof h == "function" ? h.displayName || h.name || "Unknown" : h
@@ -227,17 +227,17 @@ React keys must be passed directly to JSX without using spread:
227
227
  h,
228
228
  V,
229
229
  P,
230
- D,
230
+ j,
231
231
  s(),
232
232
  _,
233
- Y,
234
- U
233
+ W,
234
+ Y
235
235
  );
236
236
  }
237
237
  function u(h) {
238
238
  typeof h == "object" && h !== null && h.$$typeof === g && h._store && (h._store.validated = 1);
239
239
  }
240
- var d = st, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), T = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), A = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, N = Array.isArray, I = console.createTask ? console.createTask : function() {
240
+ var d = st, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), T = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), A = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, N = Array.isArray, I = console.createTask ? console.createTask : function() {
241
241
  return null;
242
242
  };
243
243
  d = {
@@ -249,27 +249,27 @@ React keys must be passed directly to JSX without using spread:
249
249
  d,
250
250
  a
251
251
  )(), Z = I(n(a)), F = {};
252
- Ve.Fragment = b, Ve.jsx = function(h, y, _, j, D) {
252
+ Ve.Fragment = b, Ve.jsx = function(h, x, _, $, j) {
253
253
  var P = 1e4 > A.recentlyCreatedOwnerStacks++;
254
254
  return f(
255
255
  h,
256
- y,
256
+ x,
257
257
  _,
258
258
  !1,
259
+ $,
259
260
  j,
260
- D,
261
261
  P ? Error("react-stack-top-frame") : q,
262
262
  P ? I(n(h)) : Z
263
263
  );
264
- }, Ve.jsxs = function(h, y, _, j, D) {
264
+ }, Ve.jsxs = function(h, x, _, $, j) {
265
265
  var P = 1e4 > A.recentlyCreatedOwnerStacks++;
266
266
  return f(
267
267
  h,
268
- y,
268
+ x,
269
269
  _,
270
270
  !0,
271
+ $,
271
272
  j,
272
- D,
273
273
  P ? Error("react-stack-top-frame") : q,
274
274
  P ? I(n(h)) : Z
275
275
  );
@@ -278,7 +278,7 @@ React keys must be passed directly to JSX without using spread:
278
278
  }
279
279
  var Ft;
280
280
  function Hr() {
281
- return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? ze.exports = Wr() : ze.exports = Br()), ze.exports;
281
+ return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? ze.exports = Ur() : ze.exports = Br()), ze.exports;
282
282
  }
283
283
  var m = Hr();
284
284
  const Re = ({ label: r, disabled: e, htmlFor: t }) => {
@@ -335,7 +335,7 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
335
335
  return {
336
336
  [e]: t
337
337
  };
338
- }, Yt = (r) => r.some((e) => e.dim && !e.dim.endsWith("%"));
338
+ }, Wt = (r) => r.some((e) => e.dim && !e.dim.endsWith("%"));
339
339
  function Kr(r, e) {
340
340
  if (r == null) return {};
341
341
  var t = {};
@@ -373,10 +373,10 @@ var qe = {};
373
373
  * Copyright(c) 2015 Douglas Christopher Wilson
374
374
  * MIT Licensed
375
375
  */
376
- var Ut;
376
+ var Yt;
377
377
  function qr() {
378
- if (Ut) return qe;
379
- Ut = 1;
378
+ if (Yt) return qe;
379
+ Yt = 1;
380
380
  var r = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
381
381
  qe.format = i, qe.parse = o;
382
382
  function i(u) {
@@ -405,11 +405,11 @@ function qr() {
405
405
  throw new TypeError("invalid media type");
406
406
  var b = new f(p.toLowerCase());
407
407
  if (g !== -1) {
408
- var S, O, E;
408
+ var S, O, w;
409
409
  for (r.lastIndex = g; O = r.exec(d); ) {
410
410
  if (O.index !== g)
411
411
  throw new TypeError("invalid parameter format");
412
- g += O[0].length, S = O[1].toLowerCase(), E = O[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(n, "$1"))), b.parameters[S] = E;
412
+ g += O[0].length, S = O[1].toLowerCase(), w = O[2], w.charCodeAt(0) === 34 && (w = w.slice(1, -1), w.indexOf("\\") !== -1 && (w = w.replace(n, "$1"))), b.parameters[S] = w;
413
413
  }
414
414
  if (g !== d.length)
415
415
  throw new TypeError("invalid parameter format");
@@ -437,7 +437,7 @@ function qr() {
437
437
  }
438
438
  var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
439
439
  return e.cloneNode(!0);
440
- }, Wt = function() {
440
+ }, Ut = function() {
441
441
  return window.location.protocol === "file:";
442
442
  }, Rr = function(e, t, n) {
443
443
  var s = new XMLHttpRequest();
@@ -453,8 +453,8 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
453
453
  }
454
454
  if (s.readyState === 4) {
455
455
  if (s.status === 404 || s.responseXML === null)
456
- throw new Error(Wt() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
457
- if (s.status === 200 || Wt() && s.status === 0)
456
+ throw new Error(Ut() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
457
+ if (s.status === 200 || Ut() && s.status === 0)
458
458
  n(null, s);
459
459
  else
460
460
  throw new Error("There was a problem injecting the SVG: " + s.status + " " + s.statusText);
@@ -530,10 +530,10 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
530
530
  u.setAttribute("class", S);
531
531
  var O = e.getAttribute("style");
532
532
  O && u.setAttribute("style", O), u.setAttribute("data-src", l);
533
- var E = [].filter.call(e.attributes, function(Z) {
533
+ var w = [].filter.call(e.attributes, function(Z) {
534
534
  return /^data-\w[\w-]*$/.test(Z.name);
535
535
  });
536
- if (Array.prototype.forEach.call(E, function(Z) {
536
+ if (Array.prototype.forEach.call(w, function(Z) {
537
537
  Z.name && Z.value && u.setAttribute(Z.name, Z.value);
538
538
  }), n) {
539
539
  var T = {
@@ -547,27 +547,27 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
547
547
  path: [],
548
548
  pattern: ["fill", "stroke"],
549
549
  radialGradient: ["fill", "stroke"]
550
- }, x, v, $, w, R;
550
+ }, v, y, R, E, D;
551
551
  Object.keys(T).forEach(function(Z) {
552
- x = Z, $ = T[Z], v = u.querySelectorAll(x + "[id]");
553
- for (var F = function(j, D) {
554
- w = v[j].id, R = w + "-" + tn();
552
+ v = Z, R = T[Z], y = u.querySelectorAll(v + "[id]");
553
+ for (var F = function($, j) {
554
+ E = y[$].id, D = E + "-" + tn();
555
555
  var P;
556
- Array.prototype.forEach.call($, function(W) {
557
- P = u.querySelectorAll("[" + W + '*="' + w + '"]');
556
+ Array.prototype.forEach.call(R, function(U) {
557
+ P = u.querySelectorAll("[" + U + '*="' + E + '"]');
558
558
  for (var X = 0, ne = P.length; X < ne; X++) {
559
- var ae = P[X].getAttribute(W);
560
- ae && !ae.match(new RegExp('url\\("?#' + w + '"?\\)')) || P[X].setAttribute(W, "url(#" + R + ")");
559
+ var ae = P[X].getAttribute(U);
560
+ ae && !ae.match(new RegExp('url\\("?#' + E + '"?\\)')) || P[X].setAttribute(U, "url(#" + D + ")");
561
561
  }
562
562
  });
563
- for (var Y = u.querySelectorAll("[*|href]"), U = [], V = 0, J = Y.length; V < J; V++) {
564
- var K = Y[V].getAttributeNS(bt, "href");
565
- K && K.toString() === "#" + v[j].id && U.push(Y[V]);
563
+ for (var W = u.querySelectorAll("[*|href]"), Y = [], V = 0, J = W.length; V < J; V++) {
564
+ var K = W[V].getAttributeNS(bt, "href");
565
+ K && K.toString() === "#" + y[$].id && Y.push(W[V]);
566
566
  }
567
- for (var se = 0, M = U.length; se < M; se++)
568
- U[se].setAttributeNS(bt, "href", "#" + R);
569
- v[j].id = R;
570
- }, h = 0, y = v.length; h < y; h++)
567
+ for (var se = 0, M = Y.length; se < M; se++)
568
+ Y[se].setAttributeNS(bt, "href", "#" + D);
569
+ y[$].id = D;
570
+ }, h = 0, x = y.length; h < x; h++)
571
571
  F(h);
572
572
  });
573
573
  }
@@ -594,12 +594,12 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
594
594
  } : i, l = n.beforeEach, c = l === void 0 ? function() {
595
595
  } : l, f = n.cacheRequests, u = f === void 0 ? !0 : f, d = n.evalScripts, g = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, b = p === void 0 ? !1 : p, S = n.renumerateIRIElements, O = S === void 0 ? !0 : S;
596
596
  if (e && "length" in e)
597
- for (var E = 0, T = 0, x = e.length; T < x; T++)
598
- Gt(e[T], g, O, u, b, c, function(v, $) {
599
- o(v, $), e && "length" in e && e.length === ++E && a(E);
597
+ for (var w = 0, T = 0, v = e.length; T < v; T++)
598
+ Gt(e[T], g, O, u, b, c, function(y, R) {
599
+ o(y, R), e && "length" in e && e.length === ++w && a(w);
600
600
  });
601
- else e ? Gt(e, g, O, u, b, c, function(v, $) {
602
- o(v, $), a(1), e = null;
601
+ else e ? Gt(e, g, O, u, b, c, function(y, R) {
602
+ o(y, R), a(1), e = null;
603
603
  }) : a(0);
604
604
  }, Je = { exports: {} }, Xe = { exports: {} }, Q = {};
605
605
  /** @license React v16.13.1
@@ -614,66 +614,66 @@ var Kt;
614
614
  function sn() {
615
615
  if (Kt) return Q;
616
616
  Kt = 1;
617
- var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, O = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
618
- function T(v) {
619
- if (typeof v == "object" && v !== null) {
620
- var $ = v.$$typeof;
621
- switch ($) {
617
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, O = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
618
+ function T(y) {
619
+ if (typeof y == "object" && y !== null) {
620
+ var R = y.$$typeof;
621
+ switch (R) {
622
622
  case e:
623
- switch (v = v.type, v) {
623
+ switch (y = y.type, y) {
624
624
  case l:
625
625
  case c:
626
626
  case n:
627
627
  case a:
628
628
  case s:
629
629
  case u:
630
- return v;
630
+ return y;
631
631
  default:
632
- switch (v = v && v.$$typeof, v) {
632
+ switch (y = y && y.$$typeof, y) {
633
633
  case o:
634
634
  case f:
635
635
  case p:
636
636
  case g:
637
637
  case i:
638
- return v;
638
+ return y;
639
639
  default:
640
- return $;
640
+ return R;
641
641
  }
642
642
  }
643
643
  case t:
644
- return $;
644
+ return R;
645
645
  }
646
646
  }
647
647
  }
648
- function x(v) {
649
- return T(v) === c;
650
- }
651
- return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = p, Q.Memo = g, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(v) {
652
- return x(v) || T(v) === l;
653
- }, Q.isConcurrentMode = x, Q.isContextConsumer = function(v) {
654
- return T(v) === o;
655
- }, Q.isContextProvider = function(v) {
656
- return T(v) === i;
657
- }, Q.isElement = function(v) {
658
- return typeof v == "object" && v !== null && v.$$typeof === e;
659
- }, Q.isForwardRef = function(v) {
660
- return T(v) === f;
661
- }, Q.isFragment = function(v) {
662
- return T(v) === n;
663
- }, Q.isLazy = function(v) {
664
- return T(v) === p;
665
- }, Q.isMemo = function(v) {
666
- return T(v) === g;
667
- }, Q.isPortal = function(v) {
668
- return T(v) === t;
669
- }, Q.isProfiler = function(v) {
670
- return T(v) === a;
671
- }, Q.isStrictMode = function(v) {
672
- return T(v) === s;
673
- }, Q.isSuspense = function(v) {
674
- return T(v) === u;
675
- }, Q.isValidElementType = function(v) {
676
- return typeof v == "string" || typeof v == "function" || v === n || v === c || v === a || v === s || v === u || v === d || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === g || v.$$typeof === i || v.$$typeof === o || v.$$typeof === f || v.$$typeof === S || v.$$typeof === O || v.$$typeof === E || v.$$typeof === b);
648
+ function v(y) {
649
+ return T(y) === c;
650
+ }
651
+ return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = p, Q.Memo = g, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(y) {
652
+ return v(y) || T(y) === l;
653
+ }, Q.isConcurrentMode = v, Q.isContextConsumer = function(y) {
654
+ return T(y) === o;
655
+ }, Q.isContextProvider = function(y) {
656
+ return T(y) === i;
657
+ }, Q.isElement = function(y) {
658
+ return typeof y == "object" && y !== null && y.$$typeof === e;
659
+ }, Q.isForwardRef = function(y) {
660
+ return T(y) === f;
661
+ }, Q.isFragment = function(y) {
662
+ return T(y) === n;
663
+ }, Q.isLazy = function(y) {
664
+ return T(y) === p;
665
+ }, Q.isMemo = function(y) {
666
+ return T(y) === g;
667
+ }, Q.isPortal = function(y) {
668
+ return T(y) === t;
669
+ }, Q.isProfiler = function(y) {
670
+ return T(y) === a;
671
+ }, Q.isStrictMode = function(y) {
672
+ return T(y) === s;
673
+ }, Q.isSuspense = function(y) {
674
+ return T(y) === u;
675
+ }, Q.isValidElementType = function(y) {
676
+ return typeof y == "string" || typeof y == "function" || y === n || y === c || y === a || y === s || y === u || y === d || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === g || y.$$typeof === i || y.$$typeof === o || y.$$typeof === f || y.$$typeof === S || y.$$typeof === O || y.$$typeof === w || y.$$typeof === b);
677
677
  }, Q.typeOf = T, Q;
678
678
  }
679
679
  var ee = {};
@@ -688,15 +688,15 @@ var ee = {};
688
688
  var zt;
689
689
  function an() {
690
690
  return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
691
- var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, O = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
691
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, O = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
692
692
  function T(M) {
693
693
  return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
694
- M === n || M === c || M === a || M === s || M === u || M === d || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === g || M.$$typeof === i || M.$$typeof === o || M.$$typeof === f || M.$$typeof === S || M.$$typeof === O || M.$$typeof === E || M.$$typeof === b);
694
+ M === n || M === c || M === a || M === s || M === u || M === d || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === g || M.$$typeof === i || M.$$typeof === o || M.$$typeof === f || M.$$typeof === S || M.$$typeof === O || M.$$typeof === w || M.$$typeof === b);
695
695
  }
696
- function x(M) {
696
+ function v(M) {
697
697
  if (typeof M == "object" && M !== null) {
698
- var W = M.$$typeof;
699
- switch (W) {
698
+ var U = M.$$typeof;
699
+ switch (U) {
700
700
  case e:
701
701
  var X = M.type;
702
702
  switch (X) {
@@ -717,55 +717,55 @@ function an() {
717
717
  case i:
718
718
  return ne;
719
719
  default:
720
- return W;
720
+ return U;
721
721
  }
722
722
  }
723
723
  case t:
724
- return W;
724
+ return U;
725
725
  }
726
726
  }
727
727
  }
728
- var v = l, $ = c, w = o, R = i, L = e, C = f, A = n, k = p, N = g, I = t, B = a, G = s, q = u, Z = !1;
728
+ var y = l, R = c, E = o, D = i, L = e, C = f, A = n, k = p, N = g, I = t, B = a, G = s, q = u, Z = !1;
729
729
  function F(M) {
730
- return Z || (Z = !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.")), h(M) || x(M) === l;
730
+ return Z || (Z = !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.")), h(M) || v(M) === l;
731
731
  }
732
732
  function h(M) {
733
- return x(M) === c;
733
+ return v(M) === c;
734
734
  }
735
- function y(M) {
736
- return x(M) === o;
735
+ function x(M) {
736
+ return v(M) === o;
737
737
  }
738
738
  function _(M) {
739
- return x(M) === i;
739
+ return v(M) === i;
740
740
  }
741
- function j(M) {
741
+ function $(M) {
742
742
  return typeof M == "object" && M !== null && M.$$typeof === e;
743
743
  }
744
- function D(M) {
745
- return x(M) === f;
744
+ function j(M) {
745
+ return v(M) === f;
746
746
  }
747
747
  function P(M) {
748
- return x(M) === n;
748
+ return v(M) === n;
749
749
  }
750
- function Y(M) {
751
- return x(M) === p;
750
+ function W(M) {
751
+ return v(M) === p;
752
752
  }
753
- function U(M) {
754
- return x(M) === g;
753
+ function Y(M) {
754
+ return v(M) === g;
755
755
  }
756
756
  function V(M) {
757
- return x(M) === t;
757
+ return v(M) === t;
758
758
  }
759
759
  function J(M) {
760
- return x(M) === a;
760
+ return v(M) === a;
761
761
  }
762
762
  function K(M) {
763
- return x(M) === s;
763
+ return v(M) === s;
764
764
  }
765
765
  function se(M) {
766
- return x(M) === u;
766
+ return v(M) === u;
767
767
  }
768
- ee.AsyncMode = v, ee.ConcurrentMode = $, ee.ContextConsumer = w, ee.ContextProvider = R, ee.Element = L, ee.ForwardRef = C, ee.Fragment = A, ee.Lazy = k, ee.Memo = N, ee.Portal = I, ee.Profiler = B, ee.StrictMode = G, ee.Suspense = q, ee.isAsyncMode = F, ee.isConcurrentMode = h, ee.isContextConsumer = y, ee.isContextProvider = _, ee.isElement = j, ee.isForwardRef = D, ee.isFragment = P, ee.isLazy = Y, ee.isMemo = U, ee.isPortal = V, ee.isProfiler = J, ee.isStrictMode = K, ee.isSuspense = se, ee.isValidElementType = T, ee.typeOf = x;
768
+ ee.AsyncMode = y, ee.ConcurrentMode = R, ee.ContextConsumer = E, ee.ContextProvider = D, ee.Element = L, ee.ForwardRef = C, ee.Fragment = A, ee.Lazy = k, ee.Memo = N, ee.Portal = I, ee.Profiler = B, ee.StrictMode = G, ee.Suspense = q, ee.isAsyncMode = F, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = _, ee.isElement = $, ee.isForwardRef = j, ee.isFragment = P, ee.isLazy = W, ee.isMemo = Y, ee.isPortal = V, ee.isProfiler = J, ee.isStrictMode = K, ee.isSuspense = se, ee.isValidElementType = T, ee.typeOf = v;
769
769
  }()), ee;
770
770
  }
771
771
  var qt;
@@ -903,9 +903,9 @@ function cn() {
903
903
  return Et = function(o, l) {
904
904
  var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
905
905
  function u(h) {
906
- var y = h && (c && h[c] || h[f]);
907
- if (typeof y == "function")
908
- return y;
906
+ var x = h && (c && h[c] || h[f]);
907
+ if (typeof x == "function")
908
+ return x;
909
909
  }
910
910
  var d = "<<anonymous>>", g = {
911
911
  array: O("array"),
@@ -916,221 +916,221 @@ function cn() {
916
916
  object: O("object"),
917
917
  string: O("string"),
918
918
  symbol: O("symbol"),
919
- any: E(),
919
+ any: w(),
920
920
  arrayOf: T,
921
- element: x(),
922
- elementType: v(),
923
- instanceOf: $,
921
+ element: v(),
922
+ elementType: y(),
923
+ instanceOf: R,
924
924
  node: C(),
925
- objectOf: R,
926
- oneOf: w,
925
+ objectOf: D,
926
+ oneOf: E,
927
927
  oneOfType: L,
928
928
  shape: k,
929
929
  exact: N
930
930
  };
931
- function p(h, y) {
932
- return h === y ? h !== 0 || 1 / h === 1 / y : h !== h && y !== y;
931
+ function p(h, x) {
932
+ return h === x ? h !== 0 || 1 / h === 1 / x : h !== h && x !== x;
933
933
  }
934
- function b(h, y) {
935
- this.message = h, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
934
+ function b(h, x) {
935
+ this.message = h, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
936
936
  }
937
937
  b.prototype = Error.prototype;
938
938
  function S(h) {
939
939
  if (process.env.NODE_ENV !== "production")
940
- var y = {}, _ = 0;
941
- function j(P, Y, U, V, J, K, se) {
942
- if (V = V || d, K = K || U, se !== t) {
940
+ var x = {}, _ = 0;
941
+ function $(P, W, Y, V, J, K, se) {
942
+ if (V = V || d, K = K || Y, se !== t) {
943
943
  if (l) {
944
944
  var M = new Error(
945
945
  "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"
946
946
  );
947
947
  throw M.name = "Invariant Violation", M;
948
948
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
949
- var W = V + ":" + U;
950
- !y[W] && // Avoid spamming the console because they are often not actionable except for lib authors
949
+ var U = V + ":" + Y;
950
+ !x[U] && // Avoid spamming the console because they are often not actionable except for lib authors
951
951
  _ < 3 && (a(
952
952
  "You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + V + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
953
- ), y[W] = !0, _++);
953
+ ), x[U] = !0, _++);
954
954
  }
955
955
  }
956
- return Y[U] == null ? P ? Y[U] === null ? new b("The " + J + " `" + K + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new b("The " + J + " `" + K + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : h(Y, U, V, J, K);
956
+ return W[Y] == null ? P ? W[Y] === null ? new b("The " + J + " `" + K + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new b("The " + J + " `" + K + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : h(W, Y, V, J, K);
957
957
  }
958
- var D = j.bind(null, !1);
959
- return D.isRequired = j.bind(null, !0), D;
958
+ var j = $.bind(null, !1);
959
+ return j.isRequired = $.bind(null, !0), j;
960
960
  }
961
961
  function O(h) {
962
- function y(_, j, D, P, Y, U) {
963
- var V = _[j], J = G(V);
962
+ function x(_, $, j, P, W, Y) {
963
+ var V = _[$], J = G(V);
964
964
  if (J !== h) {
965
965
  var K = q(V);
966
966
  return new b(
967
- "Invalid " + P + " `" + Y + "` of type " + ("`" + K + "` supplied to `" + D + "`, expected ") + ("`" + h + "`."),
967
+ "Invalid " + P + " `" + W + "` of type " + ("`" + K + "` supplied to `" + j + "`, expected ") + ("`" + h + "`."),
968
968
  { expectedType: h }
969
969
  );
970
970
  }
971
971
  return null;
972
972
  }
973
- return S(y);
973
+ return S(x);
974
974
  }
975
- function E() {
975
+ function w() {
976
976
  return S(i);
977
977
  }
978
978
  function T(h) {
979
- function y(_, j, D, P, Y) {
979
+ function x(_, $, j, P, W) {
980
980
  if (typeof h != "function")
981
- return new b("Property `" + Y + "` of component `" + D + "` has invalid PropType notation inside arrayOf.");
982
- var U = _[j];
983
- if (!Array.isArray(U)) {
984
- var V = G(U);
985
- return new b("Invalid " + P + " `" + Y + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected an array."));
981
+ return new b("Property `" + W + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
982
+ var Y = _[$];
983
+ if (!Array.isArray(Y)) {
984
+ var V = G(Y);
985
+ return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected an array."));
986
986
  }
987
- for (var J = 0; J < U.length; J++) {
988
- var K = h(U, J, D, P, Y + "[" + J + "]", t);
987
+ for (var J = 0; J < Y.length; J++) {
988
+ var K = h(Y, J, j, P, W + "[" + J + "]", t);
989
989
  if (K instanceof Error)
990
990
  return K;
991
991
  }
992
992
  return null;
993
993
  }
994
- return S(y);
995
- }
996
- function x() {
997
- function h(y, _, j, D, P) {
998
- var Y = y[_];
999
- if (!o(Y)) {
1000
- var U = G(Y);
1001
- return new b("Invalid " + D + " `" + P + "` of type " + ("`" + U + "` supplied to `" + j + "`, expected a single ReactElement."));
994
+ return S(x);
995
+ }
996
+ function v() {
997
+ function h(x, _, $, j, P) {
998
+ var W = x[_];
999
+ if (!o(W)) {
1000
+ var Y = G(W);
1001
+ return new b("Invalid " + j + " `" + P + "` of type " + ("`" + Y + "` supplied to `" + $ + "`, expected a single ReactElement."));
1002
1002
  }
1003
1003
  return null;
1004
1004
  }
1005
1005
  return S(h);
1006
1006
  }
1007
- function v() {
1008
- function h(y, _, j, D, P) {
1009
- var Y = y[_];
1010
- if (!r.isValidElementType(Y)) {
1011
- var U = G(Y);
1012
- return new b("Invalid " + D + " `" + P + "` of type " + ("`" + U + "` supplied to `" + j + "`, expected a single ReactElement type."));
1007
+ function y() {
1008
+ function h(x, _, $, j, P) {
1009
+ var W = x[_];
1010
+ if (!r.isValidElementType(W)) {
1011
+ var Y = G(W);
1012
+ return new b("Invalid " + j + " `" + P + "` of type " + ("`" + Y + "` supplied to `" + $ + "`, expected a single ReactElement type."));
1013
1013
  }
1014
1014
  return null;
1015
1015
  }
1016
1016
  return S(h);
1017
1017
  }
1018
- function $(h) {
1019
- function y(_, j, D, P, Y) {
1020
- if (!(_[j] instanceof h)) {
1021
- var U = h.name || d, V = F(_[j]);
1022
- return new b("Invalid " + P + " `" + Y + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected ") + ("instance of `" + U + "`."));
1018
+ function R(h) {
1019
+ function x(_, $, j, P, W) {
1020
+ if (!(_[$] instanceof h)) {
1021
+ var Y = h.name || d, V = F(_[$]);
1022
+ return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected ") + ("instance of `" + Y + "`."));
1023
1023
  }
1024
1024
  return null;
1025
1025
  }
1026
- return S(y);
1026
+ return S(x);
1027
1027
  }
1028
- function w(h) {
1028
+ function E(h) {
1029
1029
  if (!Array.isArray(h))
1030
1030
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
1031
1031
  "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])."
1032
1032
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
1033
- function y(_, j, D, P, Y) {
1034
- for (var U = _[j], V = 0; V < h.length; V++)
1035
- if (p(U, h[V]))
1033
+ function x(_, $, j, P, W) {
1034
+ for (var Y = _[$], V = 0; V < h.length; V++)
1035
+ if (p(Y, h[V]))
1036
1036
  return null;
1037
1037
  var J = JSON.stringify(h, function(se, M) {
1038
- var W = q(M);
1039
- return W === "symbol" ? String(M) : M;
1038
+ var U = q(M);
1039
+ return U === "symbol" ? String(M) : M;
1040
1040
  });
1041
- return new b("Invalid " + P + " `" + Y + "` of value `" + String(U) + "` " + ("supplied to `" + D + "`, expected one of " + J + "."));
1041
+ return new b("Invalid " + P + " `" + W + "` of value `" + String(Y) + "` " + ("supplied to `" + j + "`, expected one of " + J + "."));
1042
1042
  }
1043
- return S(y);
1043
+ return S(x);
1044
1044
  }
1045
- function R(h) {
1046
- function y(_, j, D, P, Y) {
1045
+ function D(h) {
1046
+ function x(_, $, j, P, W) {
1047
1047
  if (typeof h != "function")
1048
- return new b("Property `" + Y + "` of component `" + D + "` has invalid PropType notation inside objectOf.");
1049
- var U = _[j], V = G(U);
1048
+ return new b("Property `" + W + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
1049
+ var Y = _[$], V = G(Y);
1050
1050
  if (V !== "object")
1051
- return new b("Invalid " + P + " `" + Y + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected an object."));
1052
- for (var J in U)
1053
- if (n(U, J)) {
1054
- var K = h(U, J, D, P, Y + "." + J, t);
1051
+ return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected an object."));
1052
+ for (var J in Y)
1053
+ if (n(Y, J)) {
1054
+ var K = h(Y, J, j, P, W + "." + J, t);
1055
1055
  if (K instanceof Error)
1056
1056
  return K;
1057
1057
  }
1058
1058
  return null;
1059
1059
  }
1060
- return S(y);
1060
+ return S(x);
1061
1061
  }
1062
1062
  function L(h) {
1063
1063
  if (!Array.isArray(h))
1064
1064
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
1065
- for (var y = 0; y < h.length; y++) {
1066
- var _ = h[y];
1065
+ for (var x = 0; x < h.length; x++) {
1066
+ var _ = h[x];
1067
1067
  if (typeof _ != "function")
1068
1068
  return a(
1069
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(_) + " at index " + y + "."
1069
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(_) + " at index " + x + "."
1070
1070
  ), i;
1071
1071
  }
1072
- function j(D, P, Y, U, V) {
1072
+ function $(j, P, W, Y, V) {
1073
1073
  for (var J = [], K = 0; K < h.length; K++) {
1074
- var se = h[K], M = se(D, P, Y, U, V, t);
1074
+ var se = h[K], M = se(j, P, W, Y, V, t);
1075
1075
  if (M == null)
1076
1076
  return null;
1077
1077
  M.data && n(M.data, "expectedType") && J.push(M.data.expectedType);
1078
1078
  }
1079
- var W = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
1080
- return new b("Invalid " + U + " `" + V + "` supplied to " + ("`" + Y + "`" + W + "."));
1079
+ var U = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
1080
+ return new b("Invalid " + Y + " `" + V + "` supplied to " + ("`" + W + "`" + U + "."));
1081
1081
  }
1082
- return S(j);
1082
+ return S($);
1083
1083
  }
1084
1084
  function C() {
1085
- function h(y, _, j, D, P) {
1086
- return I(y[_]) ? null : new b("Invalid " + D + " `" + P + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
1085
+ function h(x, _, $, j, P) {
1086
+ return I(x[_]) ? null : new b("Invalid " + j + " `" + P + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
1087
1087
  }
1088
1088
  return S(h);
1089
1089
  }
1090
- function A(h, y, _, j, D) {
1090
+ function A(h, x, _, $, j) {
1091
1091
  return new b(
1092
- (h || "React class") + ": " + y + " type `" + _ + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + D + "`."
1092
+ (h || "React class") + ": " + x + " type `" + _ + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
1093
1093
  );
1094
1094
  }
1095
1095
  function k(h) {
1096
- function y(_, j, D, P, Y) {
1097
- var U = _[j], V = G(U);
1096
+ function x(_, $, j, P, W) {
1097
+ var Y = _[$], V = G(Y);
1098
1098
  if (V !== "object")
1099
- return new b("Invalid " + P + " `" + Y + "` of type `" + V + "` " + ("supplied to `" + D + "`, expected `object`."));
1099
+ return new b("Invalid " + P + " `" + W + "` of type `" + V + "` " + ("supplied to `" + j + "`, expected `object`."));
1100
1100
  for (var J in h) {
1101
1101
  var K = h[J];
1102
1102
  if (typeof K != "function")
1103
- return A(D, P, Y, J, q(K));
1104
- var se = K(U, J, D, P, Y + "." + J, t);
1103
+ return A(j, P, W, J, q(K));
1104
+ var se = K(Y, J, j, P, W + "." + J, t);
1105
1105
  if (se)
1106
1106
  return se;
1107
1107
  }
1108
1108
  return null;
1109
1109
  }
1110
- return S(y);
1110
+ return S(x);
1111
1111
  }
1112
1112
  function N(h) {
1113
- function y(_, j, D, P, Y) {
1114
- var U = _[j], V = G(U);
1113
+ function x(_, $, j, P, W) {
1114
+ var Y = _[$], V = G(Y);
1115
1115
  if (V !== "object")
1116
- return new b("Invalid " + P + " `" + Y + "` of type `" + V + "` " + ("supplied to `" + D + "`, expected `object`."));
1117
- var J = e({}, _[j], h);
1116
+ return new b("Invalid " + P + " `" + W + "` of type `" + V + "` " + ("supplied to `" + j + "`, expected `object`."));
1117
+ var J = e({}, _[$], h);
1118
1118
  for (var K in J) {
1119
1119
  var se = h[K];
1120
1120
  if (n(h, K) && typeof se != "function")
1121
- return A(D, P, Y, K, q(se));
1121
+ return A(j, P, W, K, q(se));
1122
1122
  if (!se)
1123
1123
  return new b(
1124
- "Invalid " + P + " `" + Y + "` key `" + K + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(_[j], null, " ") + `
1124
+ "Invalid " + P + " `" + W + "` key `" + K + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(_[$], null, " ") + `
1125
1125
  Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1126
1126
  );
1127
- var M = se(U, K, D, P, Y + "." + K, t);
1127
+ var M = se(Y, K, j, P, W + "." + K, t);
1128
1128
  if (M)
1129
1129
  return M;
1130
1130
  }
1131
1131
  return null;
1132
1132
  }
1133
- return S(y);
1133
+ return S(x);
1134
1134
  }
1135
1135
  function I(h) {
1136
1136
  switch (typeof h) {
@@ -1145,17 +1145,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1145
1145
  return h.every(I);
1146
1146
  if (h === null || o(h))
1147
1147
  return !0;
1148
- var y = u(h);
1149
- if (y) {
1150
- var _ = y.call(h), j;
1151
- if (y !== h.entries) {
1152
- for (; !(j = _.next()).done; )
1153
- if (!I(j.value))
1148
+ var x = u(h);
1149
+ if (x) {
1150
+ var _ = x.call(h), $;
1151
+ if (x !== h.entries) {
1152
+ for (; !($ = _.next()).done; )
1153
+ if (!I($.value))
1154
1154
  return !1;
1155
1155
  } else
1156
- for (; !(j = _.next()).done; ) {
1157
- var D = j.value;
1158
- if (D && !I(D[1]))
1156
+ for (; !($ = _.next()).done; ) {
1157
+ var j = $.value;
1158
+ if (j && !I(j[1]))
1159
1159
  return !1;
1160
1160
  }
1161
1161
  } else
@@ -1165,37 +1165,37 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
1165
1165
  return !1;
1166
1166
  }
1167
1167
  }
1168
- function B(h, y) {
1169
- return h === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
1168
+ function B(h, x) {
1169
+ return h === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
1170
1170
  }
1171
1171
  function G(h) {
1172
- var y = typeof h;
1173
- return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : B(y, h) ? "symbol" : y;
1172
+ var x = typeof h;
1173
+ return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : B(x, h) ? "symbol" : x;
1174
1174
  }
1175
1175
  function q(h) {
1176
1176
  if (typeof h > "u" || h === null)
1177
1177
  return "" + h;
1178
- var y = G(h);
1179
- if (y === "object") {
1178
+ var x = G(h);
1179
+ if (x === "object") {
1180
1180
  if (h instanceof Date)
1181
1181
  return "date";
1182
1182
  if (h instanceof RegExp)
1183
1183
  return "regexp";
1184
1184
  }
1185
- return y;
1185
+ return x;
1186
1186
  }
1187
1187
  function Z(h) {
1188
- var y = q(h);
1189
- switch (y) {
1188
+ var x = q(h);
1189
+ switch (x) {
1190
1190
  case "array":
1191
1191
  case "object":
1192
- return "an " + y;
1192
+ return "an " + x;
1193
1193
  case "boolean":
1194
1194
  case "date":
1195
1195
  case "regexp":
1196
- return "a " + y;
1196
+ return "a " + x;
1197
1197
  default:
1198
- return y;
1198
+ return x;
1199
1199
  }
1200
1200
  }
1201
1201
  function F(h) {
@@ -1289,11 +1289,11 @@ var ie = /* @__PURE__ */ fn(), dn = function(e) {
1289
1289
  return t.renderSVG = function() {
1290
1290
  var s = this;
1291
1291
  if (this.reactWrapper instanceof dn(this.reactWrapper).Node) {
1292
- var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, g = this.props.onError, p = this.props.beforeInjection, b = this.props.afterInjection, S = this.props.wrapper, O, E;
1293
- S === "svg" ? (O = document.createElementNS(Ze, S), O.setAttribute("xmlns", Ze), O.setAttribute("xmlns:xlink", nr), E = document.createElementNS(Ze, S)) : (O = document.createElement(S), E = document.createElement(S)), O.appendChild(E), E.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(O);
1294
- var T = function(w) {
1292
+ var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, g = this.props.onError, p = this.props.beforeInjection, b = this.props.afterInjection, S = this.props.wrapper, O, w;
1293
+ S === "svg" ? (O = document.createElementNS(Ze, S), O.setAttribute("xmlns", Ze), O.setAttribute("xmlns:xlink", nr), w = document.createElementNS(Ze, S)) : (O = document.createElement(S), w = document.createElement(S)), O.appendChild(w), w.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(O);
1294
+ var T = function(E) {
1295
1295
  if (s.removeSVG(), !s._isMounted) {
1296
- g(w);
1296
+ g(E);
1297
1297
  return;
1298
1298
  }
1299
1299
  s.setState(function() {
@@ -1302,11 +1302,11 @@ var ie = /* @__PURE__ */ fn(), dn = function(e) {
1302
1302
  isLoading: !1
1303
1303
  };
1304
1304
  }, function() {
1305
- g(w);
1305
+ g(E);
1306
1306
  });
1307
- }, x = function(w, R) {
1308
- if (w) {
1309
- T(w);
1307
+ }, v = function(E, D) {
1308
+ if (E) {
1309
+ T(E);
1310
1310
  return;
1311
1311
  }
1312
1312
  s._isMounted && s.setState(function() {
@@ -1315,33 +1315,33 @@ var ie = /* @__PURE__ */ fn(), dn = function(e) {
1315
1315
  };
1316
1316
  }, function() {
1317
1317
  try {
1318
- b(R);
1318
+ b(D);
1319
1319
  } catch (L) {
1320
1320
  T(L);
1321
1321
  }
1322
1322
  });
1323
- }, v = function(w) {
1324
- if (w.setAttribute("role", "img"), i) {
1325
- var R = w.querySelector(":scope > desc");
1326
- R && w.removeChild(R);
1323
+ }, y = function(E) {
1324
+ if (E.setAttribute("role", "img"), i) {
1325
+ var D = E.querySelector(":scope > desc");
1326
+ D && E.removeChild(D);
1327
1327
  var L = document.createElement("desc");
1328
- L.innerHTML = i, w.prepend(L);
1328
+ L.innerHTML = i, E.prepend(L);
1329
1329
  }
1330
1330
  if (u) {
1331
- var C = w.querySelector(":scope > title");
1332
- C && w.removeChild(C);
1331
+ var C = E.querySelector(":scope > title");
1332
+ C && E.removeChild(C);
1333
1333
  var A = document.createElement("title");
1334
- A.innerHTML = u, w.prepend(A);
1334
+ A.innerHTML = u, E.prepend(A);
1335
1335
  }
1336
1336
  try {
1337
- p(w);
1337
+ p(E);
1338
1338
  } catch (k) {
1339
1339
  T(k);
1340
1340
  }
1341
1341
  };
1342
- nn(E, {
1343
- afterEach: x,
1344
- beforeEach: v,
1342
+ nn(w, {
1343
+ afterEach: v,
1344
+ beforeEach: y,
1345
1345
  cacheRequests: d,
1346
1346
  evalScripts: o,
1347
1347
  httpRequestWithCredentials: l,
@@ -1432,21 +1432,21 @@ const Qs = (r) => {
1432
1432
  title: u,
1433
1433
  tabIndex: d
1434
1434
  }) => {
1435
- const [g, p] = H(r), b = r?.startsWith("http") || r?.startsWith("/"), S = b && r?.toLowerCase().endsWith(".svg"), O = sr(`assets/svg/${r}.svg`), E = sr(
1435
+ const [g, p] = H(r), b = r?.startsWith("http") || r?.startsWith("/"), S = b && r?.toLowerCase().endsWith(".svg"), O = sr(`assets/svg/${r}.svg`), w = sr(
1436
1436
  `assets/svg/${n}.svg`
1437
1437
  ), T = {
1438
1438
  img: `${c ? "smp-image-interactable" : ""}`,
1439
1439
  svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
1440
- }, x = () => {
1440
+ }, v = () => {
1441
1441
  !a && c && l && l();
1442
- }, v = ($) => {
1443
- !a && c && ($.key === "Enter" || $.key === " ") && ($.preventDefault(), x());
1442
+ }, y = (R) => {
1443
+ !a && c && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), v());
1444
1444
  };
1445
1445
  return /* @__PURE__ */ m.jsx(m.Fragment, { children: S ? /* @__PURE__ */ m.jsx(
1446
1446
  Ie,
1447
1447
  {
1448
1448
  src: r,
1449
- fallback: () => /* @__PURE__ */ m.jsx(Ie, { src: E, wrapper: "svg" }),
1449
+ fallback: () => /* @__PURE__ */ m.jsx(Ie, { src: w, wrapper: "svg" }),
1450
1450
  width: e || "1rem",
1451
1451
  height: t || "1rem",
1452
1452
  wrapper: "svg",
@@ -1455,8 +1455,8 @@ const Qs = (r) => {
1455
1455
  fill: s,
1456
1456
  "aria-disabled": a,
1457
1457
  className: T.svg,
1458
- onClick: x,
1459
- onKeyDown: v,
1458
+ onClick: v,
1459
+ onKeyDown: y,
1460
1460
  tabIndex: d
1461
1461
  }
1462
1462
  ) : b ? (
@@ -1468,12 +1468,12 @@ const Qs = (r) => {
1468
1468
  width: e || "16px",
1469
1469
  height: t || "auto",
1470
1470
  alt: u,
1471
- onError: () => p(E),
1472
- onClick: x,
1471
+ onError: () => p(w),
1472
+ onClick: v,
1473
1473
  className: T.img,
1474
1474
  title: u,
1475
- onKeyDown: ($) => {
1476
- ($.key === "Enter" || $.key === " ") && x();
1475
+ onKeyDown: (R) => {
1476
+ (R.key === "Enter" || R.key === " ") && v();
1477
1477
  }
1478
1478
  }
1479
1479
  )
@@ -1481,7 +1481,7 @@ const Qs = (r) => {
1481
1481
  Ie,
1482
1482
  {
1483
1483
  src: O,
1484
- fallback: () => /* @__PURE__ */ m.jsx(Ie, { src: E, wrapper: "svg" }),
1484
+ fallback: () => /* @__PURE__ */ m.jsx(Ie, { src: w, wrapper: "svg" }),
1485
1485
  width: e || "1rem",
1486
1486
  height: t || "1rem",
1487
1487
  wrapper: "svg",
@@ -1490,8 +1490,8 @@ const Qs = (r) => {
1490
1490
  fill: s,
1491
1491
  "aria-disabled": a,
1492
1492
  className: T.svg,
1493
- onClick: x,
1494
- onKeyDown: v,
1493
+ onClick: v,
1494
+ onKeyDown: y,
1495
1495
  tabIndex: d
1496
1496
  }
1497
1497
  ) });
@@ -1605,9 +1605,9 @@ const Qs = (r) => {
1605
1605
  const T = d.current;
1606
1606
  if (!T) return;
1607
1607
  S();
1608
- const x = () => S();
1609
- return T.addEventListener("scroll", x), window.addEventListener("resize", S), () => {
1610
- T.removeEventListener("scroll", x), window.removeEventListener("resize", S);
1608
+ const v = () => S();
1609
+ return T.addEventListener("scroll", v), window.addEventListener("resize", S), () => {
1610
+ T.removeEventListener("scroll", v), window.removeEventListener("resize", S);
1611
1611
  };
1612
1612
  }, []), !r.children || r.children.length === 0)
1613
1613
  return /* @__PURE__ */ m.jsx("div", { className: "tab-bar-empty", children: "No tabs available" });
@@ -1626,7 +1626,7 @@ const Qs = (r) => {
1626
1626
  ));
1627
1627
  }, O = () => {
1628
1628
  d.current?.scrollBy({ left: -p, behavior: "smooth" });
1629
- }, E = () => {
1629
+ }, w = () => {
1630
1630
  d.current?.scrollBy({ left: p, behavior: "smooth" });
1631
1631
  };
1632
1632
  return /* @__PURE__ */ m.jsxs(
@@ -1646,16 +1646,16 @@ const Qs = (r) => {
1646
1646
  sizing: e
1647
1647
  }
1648
1648
  ) }),
1649
- /* @__PURE__ */ m.jsx("div", { className: g.listWrapper, children: /* @__PURE__ */ m.jsx("div", { className: g.list, ref: d, role: "tablist", children: r.children.map((T, x) => /* @__PURE__ */ m.jsxs(
1649
+ /* @__PURE__ */ m.jsx("div", { className: g.listWrapper, children: /* @__PURE__ */ m.jsx("div", { className: g.list, ref: d, role: "tablist", children: r.children.map((T, v) => /* @__PURE__ */ m.jsxs(
1650
1650
  "button",
1651
1651
  {
1652
1652
  type: "button",
1653
- className: `${x === a ? g.active : ""} ${g.tab} `,
1653
+ className: `${v === a ? g.active : ""} ${g.tab} `,
1654
1654
  role: "tab",
1655
- "aria-selected": x === o,
1656
- tabIndex: x === o ? 0 : -1,
1655
+ "aria-selected": v === o,
1656
+ tabIndex: v === o ? 0 : -1,
1657
1657
  onClick: () => {
1658
- s && s(x), i(x);
1658
+ s && s(v), i(v);
1659
1659
  },
1660
1660
  children: [
1661
1661
  T.icon && /* @__PURE__ */ m.jsx(
@@ -1672,7 +1672,7 @@ const Qs = (r) => {
1672
1672
  bindValue: T.decode || "Tab[object Object]"
1673
1673
  }
1674
1674
  ),
1675
- t && (o === x ? /* @__PURE__ */ m.jsx(
1675
+ t && (o === v ? /* @__PURE__ */ m.jsx(
1676
1676
  le,
1677
1677
  {
1678
1678
  icon: "more_vert",
@@ -1684,14 +1684,14 @@ const Qs = (r) => {
1684
1684
  ) : /* @__PURE__ */ m.jsx(le, { icon: "empty" }))
1685
1685
  ]
1686
1686
  },
1687
- x
1687
+ v
1688
1688
  )) }) }),
1689
1689
  f && /* @__PURE__ */ m.jsx("div", { className: g.scrollButtonRight, children: /* @__PURE__ */ m.jsx(
1690
1690
  Ce,
1691
1691
  {
1692
1692
  bindValue: "",
1693
1693
  optionalDisplayValue: ">",
1694
- onClick: E,
1694
+ onClick: w,
1695
1695
  variant: "base",
1696
1696
  sizing: e
1697
1697
  }
@@ -1726,21 +1726,21 @@ const Qs = (r) => {
1726
1726
  e.sections ?? [],
1727
1727
  Object.keys(s)
1728
1728
  ), l = (p) => p.reduce((b, S) => {
1729
- let O = "", E = {}, T = {}, x = "";
1730
- return S.sections?.length ? (O = he["smp-layout-section-grid"], E = l(S.sections), S.gridCols === void 0 && (x = he[S.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (S.horizontal || Yt(S.sections)) && (T = Vt(
1729
+ let O = "", w = {}, T = {}, v = "";
1730
+ return S.sections?.length ? (O = he["smp-layout-section-grid"], w = l(S.sections), S.gridCols === void 0 && (v = he[S.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (S.horizontal || Wt(S.sections)) && (T = Vt(
1731
1731
  S.sections,
1732
1732
  S.horizontal ? a : i
1733
- )))) : S.content?.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (O = he["smp-layout-section-grid"], x = he["smp-grid-template-cols"], T = {
1733
+ )))) : S.content?.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (O = he["smp-layout-section-grid"], v = he["smp-grid-template-cols"], T = {
1734
1734
  [a]: `repeat(${S.gridCols}, 1fr)`
1735
1735
  }) : O = he["smp-layout-section-flex"]), {
1736
1736
  ...b,
1737
- ...E,
1737
+ ...w,
1738
1738
  [S.id]: {
1739
- classes: `${O} ${he[S.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${x} ${S.justify ? `smp-justifyContent-${S.justify}` : ""} ${S.align ? `smp-alignItems-${S.align}` : ""}`,
1739
+ classes: `${O} ${he[S.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${v} ${S.justify ? `smp-justifyContent-${S.justify}` : ""} ${S.align ? `smp-alignItems-${S.align}` : ""}`,
1740
1740
  styles: T
1741
1741
  }
1742
1742
  };
1743
- }, {}), c = l(o), f = `${he["smp-layout"]} ${e.horizontal ? he["smp-layout-horizontal"] : he["smp-layout-vertical"]}`, u = e.horizontal || Yt(e.sections || []) ? Vt(
1743
+ }, {}), c = l(o), f = `${he["smp-layout"]} ${e.horizontal ? he["smp-layout-horizontal"] : he["smp-layout-vertical"]}`, u = e.horizontal || Wt(e.sections || []) ? Vt(
1744
1744
  o,
1745
1745
  e.horizontal ? a : i
1746
1746
  ) : {}, d = (p, b) => {
@@ -1779,11 +1779,11 @@ const Qs = (r) => {
1779
1779
  const T = {
1780
1780
  gridColumnStart: (p.colSpan && p.colSpan > 0 ? `span ${p.colSpan}` : p.colStart && p.colStart < 1 ? "1" : void 0) ?? p.colStart,
1781
1781
  gridColumnEnd: p.colEnd && p.colEnd > 0 ? p.colEnd : void 0
1782
- }, x = `${he["smp-layout-cell-container"]} ${b ? `smp-justifyContent-${b}` : ""} ${S ? `smp-alignItems-${S}` : ""}`;
1782
+ }, v = `${he["smp-layout-cell-container"]} ${b ? `smp-justifyContent-${b}` : ""} ${S ? `smp-alignItems-${S}` : ""}`;
1783
1783
  return /* @__PURE__ */ m.jsx(
1784
1784
  "div",
1785
1785
  {
1786
- className: x,
1786
+ className: v,
1787
1787
  style: T,
1788
1788
  "smp-id": p.id,
1789
1789
  children: O
@@ -2002,23 +2002,50 @@ function pt({
2002
2002
  requestAnimationFrame(i);
2003
2003
  return;
2004
2004
  }
2005
- let b = c + window.scrollY, S = f + window.scrollX;
2005
+ const b = window.scrollY, S = window.scrollX, O = window.innerWidth, w = window.innerHeight;
2006
+ let T = c + b, v = f + S, y = r;
2007
+ const R = {
2008
+ top: c - g < 0,
2009
+ bottom: c + d + g > w,
2010
+ left: f - p < 0,
2011
+ right: f + u + p > O
2012
+ };
2006
2013
  switch (r) {
2007
2014
  case "top":
2008
- b -= g;
2015
+ R.top && !R.bottom && (y = "bottom");
2009
2016
  break;
2010
2017
  case "bottom":
2011
- b += d;
2018
+ R.bottom && !R.top && (y = "top");
2012
2019
  break;
2013
2020
  case "left":
2014
- S -= p;
2021
+ R.left && !R.right && (y = "right");
2015
2022
  break;
2016
2023
  case "right":
2017
- S += u;
2024
+ R.right && !R.left && (y = "left");
2018
2025
  break;
2019
2026
  }
2020
- requestAnimationFrame(() => {
2021
- l.style.transform = `translate(${S}px, ${b}px)`, l.style.opacity = "1";
2027
+ switch (y) {
2028
+ case "top":
2029
+ T = c + b - g;
2030
+ break;
2031
+ case "bottom":
2032
+ T = c + b + d;
2033
+ break;
2034
+ case "left":
2035
+ v = f + S - p;
2036
+ break;
2037
+ case "right":
2038
+ v = f + S + u;
2039
+ break;
2040
+ }
2041
+ T = Math.max(
2042
+ b,
2043
+ Math.min(T, b + w - g)
2044
+ ), v = Math.max(
2045
+ S,
2046
+ Math.min(v, S + O - p)
2047
+ ), requestAnimationFrame(() => {
2048
+ l.style.transform = `translate(${v}px, ${T}px)`, l.style.opacity = "1";
2022
2049
  });
2023
2050
  }, [r]);
2024
2051
  return Fr(() => {
@@ -2095,13 +2122,13 @@ const Ne = (r, e, t) => {
2095
2122
  label: b,
2096
2123
  helperText: S = !1,
2097
2124
  error: O,
2098
- appearance: E = "base",
2125
+ appearance: w = "base",
2099
2126
  fullWidth: T = !1,
2100
- _dataComponent: x = "textfield",
2101
- min: v,
2102
- max: $,
2103
- step: w,
2104
- inputMode: R = "text",
2127
+ _dataComponent: v = "textfield",
2128
+ min: y,
2129
+ max: R,
2130
+ step: E,
2131
+ inputMode: D = "text",
2105
2132
  width: L,
2106
2133
  autocomplete: C,
2107
2134
  size: A,
@@ -2112,26 +2139,26 @@ const Ne = (r, e, t) => {
2112
2139
  onShapeIconClick: G,
2113
2140
  onClick: q
2114
2141
  }) => {
2115
- const Z = Te(), F = `${Z}-helper`, h = O ? "danger" : o, y = S || !!O, _ = (P) => {
2142
+ const Z = Te(), F = `${Z}-helper`, h = O ? "danger" : o, x = S || !!O, _ = (P) => {
2116
2143
  I?.(P.target.value);
2117
- }, j = {
2144
+ }, $ = {
2118
2145
  wrapper: `${me["smp-textfield-wrapper"]} ${T ? me["smp-textfield-fullWidth"] : ""}`,
2119
- container: `${me["smp-textfield"]} ${r ? me["smp-textfield-disabled"] : ""} ${n ? me["smp-textfield-placeholder"] : ""} ${i ? me[`smp-textfield-${i}`] : ""} ${h ? me[`smp-textfield-${h}`] : ""} ${E ? me[`smp-textfield-${E}`] : ""} ${s ? "" : me["smp-textfield-readOnly"]} ${c ? me["smp-textfield-top-right-indicator"] : ""}`,
2146
+ container: `${me["smp-textfield"]} ${r ? me["smp-textfield-disabled"] : ""} ${n ? me["smp-textfield-placeholder"] : ""} ${i ? me[`smp-textfield-${i}`] : ""} ${h ? me[`smp-textfield-${h}`] : ""} ${w ? me[`smp-textfield-${w}`] : ""} ${s ? "" : me["smp-textfield-readOnly"]} ${c ? me["smp-textfield-top-right-indicator"] : ""}`,
2120
2147
  input: `${me["smp-textfield-input"]}`
2121
2148
  };
2122
2149
  if (l && (l !== "notSelectable" || s)) {
2123
2150
  const P = me[`smp-textfield-variant-${l}`];
2124
- P && (j.container += ` ${P}`);
2151
+ P && ($.container += ` ${P}`);
2125
2152
  }
2126
- const D = L ? { "--smp-textField-width-base": L } : void 0;
2127
- return /* @__PURE__ */ m.jsxs("div", { className: j.wrapper, "data-component": x, children: [
2153
+ const j = L ? { "--smp-textField-width-base": L } : void 0;
2154
+ return /* @__PURE__ */ m.jsxs("div", { className: $.wrapper, "data-component": v, children: [
2128
2155
  b && /* @__PURE__ */ m.jsx(Re, { label: b, disabled: r, htmlFor: Z }),
2129
2156
  /* @__PURE__ */ m.jsxs(
2130
2157
  "div",
2131
2158
  {
2132
- className: j.container,
2159
+ className: $.container,
2133
2160
  ref: u,
2134
- style: D,
2161
+ style: j,
2135
2162
  children: [
2136
2163
  t && /* @__PURE__ */ m.jsx(le, { icon: t, disabled: r }),
2137
2164
  /* @__PURE__ */ m.jsx(
@@ -2143,17 +2170,17 @@ const Ne = (r, e, t) => {
2143
2170
  placeholder: n,
2144
2171
  onChange: _,
2145
2172
  onBlur: N,
2146
- className: j.input,
2173
+ className: $.input,
2147
2174
  disabled: r,
2148
2175
  readOnly: !s,
2149
2176
  onKeyDown: B,
2150
2177
  "aria-label": p,
2151
2178
  ref: d,
2152
- "aria-describedby": y ? F : void 0,
2153
- min: v,
2154
- max: $,
2155
- step: w,
2156
- inputMode: R,
2179
+ "aria-describedby": x ? F : void 0,
2180
+ min: y,
2181
+ max: R,
2182
+ step: E,
2183
+ inputMode: D,
2157
2184
  autoComplete: C,
2158
2185
  size: A,
2159
2186
  maxLength: k,
@@ -2174,7 +2201,7 @@ const Ne = (r, e, t) => {
2174
2201
  ]
2175
2202
  }
2176
2203
  ),
2177
- y && /* @__PURE__ */ m.jsx(
2204
+ x && /* @__PURE__ */ m.jsx(
2178
2205
  $r,
2179
2206
  {
2180
2207
  helperText: O,
@@ -2206,8 +2233,8 @@ function kr({
2206
2233
  a(p);
2207
2234
  }, []), d = (g) => {
2208
2235
  if (!i.current) return;
2209
- const p = g * e, b = p + e, S = i.current, O = S.scrollTop, E = O + t;
2210
- p < O ? S.scrollTop = p : b > E && (S.scrollTop = b - t);
2236
+ const p = g * e, b = p + e, S = i.current, O = S.scrollTop, w = O + t;
2237
+ p < O ? S.scrollTop = p : b > w && (S.scrollTop = b - t);
2211
2238
  };
2212
2239
  return {
2213
2240
  virtualItems: f,
@@ -2271,12 +2298,12 @@ const Cn = 10, Lr = ({
2271
2298
  }) => {
2272
2299
  const [u, d] = H(""), g = 40, [p, b] = H(
2273
2300
  a !== null ? a : -1
2274
- ), [S, O] = H(o || 200), E = ce(null), T = s !== void 0 ? s : e.length > Cn, x = u ? e.filter(
2301
+ ), [S, O] = H(o || 200), w = ce(null), T = s !== void 0 ? s : e.length > Cn, v = u ? e.filter(
2275
2302
  (I) => I.label.toLowerCase().includes(u.toLowerCase())
2276
- ) : e, v = (I) => {
2303
+ ) : e, y = (I) => {
2277
2304
  d(I);
2278
- }, { virtualItems: $, containerProps: w, innerProps: R, scrollToIndex: L } = kr({
2279
- items: x,
2305
+ }, { virtualItems: R, containerProps: E, innerProps: D, scrollToIndex: L } = kr({
2306
+ items: v,
2280
2307
  itemHeight: g,
2281
2308
  containerHeight: 200,
2282
2309
  overscan: 5
@@ -2284,10 +2311,10 @@ const Cn = 10, Lr = ({
2284
2311
  re(() => {
2285
2312
  a !== null && a !== p && b(a);
2286
2313
  }, [a]), re(() => {
2287
- p >= 0 && p < x.length && L(p);
2288
- }, [p, x]), re(() => {
2289
- f && E?.current && E.current.focus();
2290
- }, [f, E]), re(() => {
2314
+ p >= 0 && p < v.length && L(p);
2315
+ }, [p, v]), re(() => {
2316
+ f && w?.current && w.current.focus();
2317
+ }, [f, w]), re(() => {
2291
2318
  const I = Tn(e, t);
2292
2319
  O(I);
2293
2320
  }, [e, t]);
@@ -2295,8 +2322,8 @@ const Cn = 10, Lr = ({
2295
2322
  if (I.key === "ArrowDown" || I.key === "ArrowUp") {
2296
2323
  I.preventDefault();
2297
2324
  let B = p;
2298
- I.key === "ArrowDown" ? B = p < x.length - 1 ? p + 1 : 0 : I.key === "ArrowUp" && (B = p > 0 ? p - 1 : x.length - 1), b(B);
2299
- } else I.key === "Enter" ? p >= 0 && p < x.length && l?.(x[p]) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
2325
+ I.key === "ArrowDown" ? B = p < v.length - 1 ? p + 1 : 0 : I.key === "ArrowUp" && (B = p > 0 ? p - 1 : v.length - 1), b(B);
2326
+ } else I.key === "Enter" ? p >= 0 && p < v.length && l?.(v[p]) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
2300
2327
  c && c(I);
2301
2328
  }, A = (I) => {
2302
2329
  C(I);
@@ -2326,22 +2353,22 @@ const Cn = 10, Lr = ({
2326
2353
  bindValue: u,
2327
2354
  placeholder: "Search...",
2328
2355
  fullWidth: !0,
2329
- onChange: v,
2356
+ onChange: y,
2330
2357
  onKeyDown: A,
2331
- inputRef: E
2358
+ inputRef: w
2332
2359
  }
2333
2360
  ),
2334
2361
  /* @__PURE__ */ m.jsx(
2335
2362
  "div",
2336
2363
  {
2337
- ...w,
2364
+ ...E,
2338
2365
  className: N.container,
2339
2366
  tabIndex: 0,
2340
2367
  role: "listbox",
2341
2368
  "aria-label": "List",
2342
2369
  onKeyDown: k,
2343
- "aria-activedescendant": p >= 0 && p < x.length ? x[p]?.id : void 0,
2344
- children: /* @__PURE__ */ m.jsx("div", { ...R, className: N.virtualScroll, children: $.map(({ item: I, index: B, offsetTop: G }) => {
2370
+ "aria-activedescendant": p >= 0 && p < v.length ? v[p]?.id : void 0,
2371
+ children: /* @__PURE__ */ m.jsx("div", { ...D, className: N.virtualScroll, children: R.map(({ item: I, index: B, offsetTop: G }) => {
2345
2372
  const q = i.includes(I.id);
2346
2373
  return (
2347
2374
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -2409,7 +2436,7 @@ function ht({
2409
2436
  const [e, t] = H(!1);
2410
2437
  return re(() => {
2411
2438
  t(!0);
2412
- }, []), e ? Ur(r, document.body) : null;
2439
+ }, []), e ? Yr(r, document.body) : null;
2413
2440
  }
2414
2441
  const mt = (r, e, t) => {
2415
2442
  re(() => {
@@ -2426,7 +2453,7 @@ const mt = (r, e, t) => {
2426
2453
  document.removeEventListener("mousedown", n);
2427
2454
  };
2428
2455
  }, [r, t, e]);
2429
- }, z = (r) => typeof r == "string", Ye = () => {
2456
+ }, z = (r) => typeof r == "string", We = () => {
2430
2457
  let r, e;
2431
2458
  const t = new Promise((n, s) => {
2432
2459
  r = n, e = s;
@@ -2436,7 +2463,7 @@ const mt = (r, e, t) => {
2436
2463
  r.forEach((n) => {
2437
2464
  e[n] && (t[n] = e[n]);
2438
2465
  });
2439
- }, Rn = /###/g, cr = (r) => r && r.indexOf("###") > -1 ? r.replace(Rn, ".") : r, ur = (r) => !r || z(r), We = (r, e, t) => {
2466
+ }, Rn = /###/g, cr = (r) => r && r.indexOf("###") > -1 ? r.replace(Rn, ".") : r, ur = (r) => !r || z(r), Ue = (r, e, t) => {
2440
2467
  const n = z(e) ? e.split(".") : e;
2441
2468
  let s = 0;
2442
2469
  for (; s < n.length - 1; ) {
@@ -2452,26 +2479,26 @@ const mt = (r, e, t) => {
2452
2479
  const {
2453
2480
  obj: n,
2454
2481
  k: s
2455
- } = We(r, e, Object);
2482
+ } = Ue(r, e, Object);
2456
2483
  if (n !== void 0 || e.length === 1) {
2457
2484
  n[s] = t;
2458
2485
  return;
2459
2486
  }
2460
- let a = e[e.length - 1], i = e.slice(0, e.length - 1), o = We(r, i, Object);
2487
+ let a = e[e.length - 1], i = e.slice(0, e.length - 1), o = Ue(r, i, Object);
2461
2488
  for (; o.obj === void 0 && i.length; )
2462
- a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o = We(r, i, Object), o?.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
2489
+ a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o = Ue(r, i, Object), o?.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
2463
2490
  o.obj[`${o.k}.${a}`] = t;
2464
2491
  }, Dn = (r, e, t, n) => {
2465
2492
  const {
2466
2493
  obj: s,
2467
2494
  k: a
2468
- } = We(r, e, Object);
2495
+ } = Ue(r, e, Object);
2469
2496
  s[a] = s[a] || [], s[a].push(t);
2470
2497
  }, ct = (r, e) => {
2471
2498
  const {
2472
2499
  obj: t,
2473
2500
  k: n
2474
- } = We(r, e);
2501
+ } = Ue(r, e);
2475
2502
  if (t && Object.prototype.hasOwnProperty.call(t, n))
2476
2503
  return t[n];
2477
2504
  }, jn = (r, e, t) => {
@@ -2762,13 +2789,13 @@ class ft extends gt {
2762
2789
  } : o;
2763
2790
  const g = this.resolve(e, s);
2764
2791
  let p = g?.res;
2765
- const b = g?.usedKey || o, S = g?.exactUsedKey || o, O = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, T = !this.i18nFormat || this.i18nFormat.handleAsObject, x = s.count !== void 0 && !z(s.count), v = ft.hasDefaultValue(s), $ = x ? this.pluralResolver.getSuffix(u, s.count, s) : "", w = s.ordinal && x ? this.pluralResolver.getSuffix(u, s.count, {
2792
+ const b = g?.usedKey || o, S = g?.exactUsedKey || o, O = ["[object Number]", "[object Function]", "[object RegExp]"], w = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, T = !this.i18nFormat || this.i18nFormat.handleAsObject, v = s.count !== void 0 && !z(s.count), y = ft.hasDefaultValue(s), R = v ? this.pluralResolver.getSuffix(u, s.count, s) : "", E = s.ordinal && v ? this.pluralResolver.getSuffix(u, s.count, {
2766
2793
  ordinal: !1
2767
- }) : "", R = x && !s.ordinal && s.count === 0, L = R && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${$}`] || s[`defaultValue${w}`] || s.defaultValue;
2794
+ }) : "", D = v && !s.ordinal && s.count === 0, L = D && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${R}`] || s[`defaultValue${E}`] || s.defaultValue;
2768
2795
  let C = p;
2769
- T && !p && v && (C = L);
2796
+ T && !p && y && (C = L);
2770
2797
  const A = hr(C), k = Object.prototype.toString.apply(C);
2771
- if (T && C && A && O.indexOf(k) < 0 && !(z(E) && Array.isArray(C))) {
2798
+ if (T && C && A && O.indexOf(k) < 0 && !(z(w) && Array.isArray(C))) {
2772
2799
  if (!s.returnObjects && !this.options.returnObjects) {
2773
2800
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2774
2801
  const N = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, C, {
@@ -2782,7 +2809,7 @@ class ft extends gt {
2782
2809
  for (const G in C)
2783
2810
  if (Object.prototype.hasOwnProperty.call(C, G)) {
2784
2811
  const q = `${B}${i}${G}`;
2785
- v && !p ? I[G] = this.translate(q, {
2812
+ y && !p ? I[G] = this.translate(q, {
2786
2813
  ...s,
2787
2814
  defaultValue: hr(L) ? L[G] : void 0,
2788
2815
  joinArrays: !1,
@@ -2795,34 +2822,34 @@ class ft extends gt {
2795
2822
  }
2796
2823
  p = I;
2797
2824
  }
2798
- } else if (T && z(E) && Array.isArray(p))
2799
- p = p.join(E), p && (p = this.extendTranslation(p, e, s, n));
2825
+ } else if (T && z(w) && Array.isArray(p))
2826
+ p = p.join(w), p && (p = this.extendTranslation(p, e, s, n));
2800
2827
  else {
2801
2828
  let N = !1, I = !1;
2802
- !this.isValidLookup(p) && v && (N = !0, p = L), this.isValidLookup(p) || (I = !0, p = o);
2803
- const G = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : p, q = v && L !== p && this.options.updateMissing;
2829
+ !this.isValidLookup(p) && y && (N = !0, p = L), this.isValidLookup(p) || (I = !0, p = o);
2830
+ const G = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : p, q = y && L !== p && this.options.updateMissing;
2804
2831
  if (I || N || q) {
2805
2832
  if (this.logger.log(q ? "updateKey" : "missingKey", u, c, o, q ? L : p), i) {
2806
- const y = this.resolve(o, {
2833
+ const x = this.resolve(o, {
2807
2834
  ...s,
2808
2835
  keySeparator: !1
2809
2836
  });
2810
- y && y.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2837
+ x && x.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2811
2838
  }
2812
2839
  let Z = [];
2813
2840
  const F = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
2814
2841
  if (this.options.saveMissingTo === "fallback" && F && F[0])
2815
- for (let y = 0; y < F.length; y++)
2816
- Z.push(F[y]);
2842
+ for (let x = 0; x < F.length; x++)
2843
+ Z.push(F[x]);
2817
2844
  else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(s.lng || this.language) : Z.push(s.lng || this.language);
2818
- const h = (y, _, j) => {
2819
- const D = v && j !== p ? j : G;
2820
- this.options.missingKeyHandler ? this.options.missingKeyHandler(y, c, _, D, q, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(y, c, _, D, q, s), this.emit("missingKey", y, c, _, p);
2845
+ const h = (x, _, $) => {
2846
+ const j = y && $ !== p ? $ : G;
2847
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c, _, j, q, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(x, c, _, j, q, s), this.emit("missingKey", x, c, _, p);
2821
2848
  };
2822
- this.options.saveMissing && (this.options.saveMissingPlurals && x ? Z.forEach((y) => {
2823
- const _ = this.pluralResolver.getSuffixes(y, s);
2824
- R && s[`defaultValue${this.options.pluralSeparator}zero`] && _.indexOf(`${this.options.pluralSeparator}zero`) < 0 && _.push(`${this.options.pluralSeparator}zero`), _.forEach((j) => {
2825
- h([y], o + j, s[`defaultValue${j}`] || L);
2849
+ this.options.saveMissing && (this.options.saveMissingPlurals && v ? Z.forEach((x) => {
2850
+ const _ = this.pluralResolver.getSuffixes(x, s);
2851
+ D && s[`defaultValue${this.options.pluralSeparator}zero`] && _.indexOf(`${this.options.pluralSeparator}zero`) < 0 && _.push(`${this.options.pluralSeparator}zero`), _.forEach(($) => {
2852
+ h([x], o + $, s[`defaultValue${$}`] || L);
2826
2853
  });
2827
2854
  }) : h(Z, o, L));
2828
2855
  }
@@ -2884,20 +2911,20 @@ class ft extends gt {
2884
2911
  this.isValidLookup(n) || (o = S, !pr[`${b[0]}-${S}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (pr[`${b[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${b.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), b.forEach((O) => {
2885
2912
  if (this.isValidLookup(n)) return;
2886
2913
  i = O;
2887
- const E = [f];
2914
+ const w = [f];
2888
2915
  if (this.i18nFormat?.addLookupKeys)
2889
- this.i18nFormat.addLookupKeys(E, f, O, S, t);
2916
+ this.i18nFormat.addLookupKeys(w, f, O, S, t);
2890
2917
  else {
2891
- let x;
2892
- d && (x = this.pluralResolver.getSuffix(O, t.count, t));
2893
- const v = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2894
- if (d && (E.push(f + x), t.ordinal && x.indexOf($) === 0 && E.push(f + x.replace($, this.options.pluralSeparator)), g && E.push(f + v)), p) {
2895
- const w = `${f}${this.options.contextSeparator}${t.context}`;
2896
- E.push(w), d && (E.push(w + x), t.ordinal && x.indexOf($) === 0 && E.push(w + x.replace($, this.options.pluralSeparator)), g && E.push(w + v));
2918
+ let v;
2919
+ d && (v = this.pluralResolver.getSuffix(O, t.count, t));
2920
+ const y = `${this.options.pluralSeparator}zero`, R = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2921
+ if (d && (w.push(f + v), t.ordinal && v.indexOf(R) === 0 && w.push(f + v.replace(R, this.options.pluralSeparator)), g && w.push(f + y)), p) {
2922
+ const E = `${f}${this.options.contextSeparator}${t.context}`;
2923
+ w.push(E), d && (w.push(E + v), t.ordinal && v.indexOf(R) === 0 && w.push(E + v.replace(R, this.options.pluralSeparator)), g && w.push(E + y));
2897
2924
  }
2898
2925
  }
2899
2926
  let T;
2900
- for (; T = E.pop(); )
2927
+ for (; T = w.pop(); )
2901
2928
  this.isValidLookup(n) || (a = T, n = this.getResource(O, S, T, t));
2902
2929
  }));
2903
2930
  });
@@ -3091,9 +3118,9 @@ class Fn {
3091
3118
  nestingSuffixEscaped: b,
3092
3119
  nestingOptionsSeparator: S,
3093
3120
  maxReplaces: O,
3094
- alwaysFormat: E
3121
+ alwaysFormat: w
3095
3122
  } = e.interpolation;
3096
- this.escape = t !== void 0 ? t : kn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Le(a) : i || "{{", this.suffix = o ? Le(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Le(d) : g || Le("$t("), this.nestingSuffix = p ? Le(p) : b || Le(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
3123
+ this.escape = t !== void 0 ? t : kn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Le(a) : i || "{{", this.suffix = o ? Le(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Le(d) : g || Le("$t("), this.nestingSuffix = p ? Le(p) : b || Le(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
3097
3124
  }
3098
3125
  reset() {
3099
3126
  this.options && this.init(this.options);
@@ -3218,8 +3245,8 @@ const Vn = (r) => {
3218
3245
  let o = e[i];
3219
3246
  return o || (o = r(Be(n), s), e[i] = o), o(t);
3220
3247
  };
3221
- }, Yn = (r) => (e, t, n) => r(Be(t), n)(e);
3222
- class Un {
3248
+ }, Wn = (r) => (e, t, n) => r(Be(t), n)(e);
3249
+ class Yn {
3223
3250
  constructor(e = {}) {
3224
3251
  this.logger = ve.create("formatter"), this.options = e, this.init(e);
3225
3252
  }
@@ -3227,7 +3254,7 @@ class Un {
3227
3254
  interpolation: {}
3228
3255
  }) {
3229
3256
  this.formatSeparator = t.interpolation.formatSeparator || ",";
3230
- const n = t.cacheInBuiltFormats ? vr : Yn;
3257
+ const n = t.cacheInBuiltFormats ? vr : Wn;
3231
3258
  this.formats = {
3232
3259
  number: n((s, a) => {
3233
3260
  const i = new Intl.NumberFormat(s, {
@@ -3298,7 +3325,7 @@ class Un {
3298
3325
  }, e);
3299
3326
  }
3300
3327
  }
3301
- const Wn = (r, e) => {
3328
+ const Un = (r, e) => {
3302
3329
  r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
3303
3330
  };
3304
3331
  class Bn extends gt {
@@ -3333,7 +3360,7 @@ class Bn extends gt {
3333
3360
  }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
3334
3361
  const o = {};
3335
3362
  this.queue.forEach((l) => {
3336
- Dn(l.loaded, [a], i), Wn(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
3363
+ Dn(l.loaded, [a], i), Un(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
3337
3364
  o[c] || (o[c] = {});
3338
3365
  const f = l.loaded[c];
3339
3366
  f.length && f.forEach((u) => {
@@ -3521,7 +3548,7 @@ class He extends gt {
3521
3548
  if (!this.options.isClone) {
3522
3549
  this.modules.logger ? ve.init(s(this.modules.logger), this.options) : ve.init(null, this.options);
3523
3550
  let c;
3524
- this.modules.formatter ? c = this.modules.formatter : c = Un;
3551
+ this.modules.formatter ? c = this.modules.formatter : c = Yn;
3525
3552
  const f = new mr(this.options);
3526
3553
  this.store = new dr(this.options.resources, this.options);
3527
3554
  const u = this.services;
@@ -3547,7 +3574,7 @@ class He extends gt {
3547
3574
  }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
3548
3575
  this[c] = (...f) => (this.store[c](...f), this);
3549
3576
  });
3550
- const o = Ye(), l = () => {
3577
+ const o = We(), l = () => {
3551
3578
  const c = (f, u) => {
3552
3579
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(u), t(f, u);
3553
3580
  };
@@ -3574,7 +3601,7 @@ class He extends gt {
3574
3601
  n(null);
3575
3602
  }
3576
3603
  reloadResources(e, t, n) {
3577
- const s = Ye();
3604
+ const s = We();
3578
3605
  return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), n || (n = tt), this.services.backendConnector.reload(e, t, (a) => {
3579
3606
  s.resolve(), n(a);
3580
3607
  }), s;
@@ -3598,7 +3625,7 @@ class He extends gt {
3598
3625
  }
3599
3626
  changeLanguage(e, t) {
3600
3627
  this.isLanguageChangingTo = e;
3601
- const n = Ye();
3628
+ const n = We();
3602
3629
  this.emit("languageChanging", e);
3603
3630
  const s = (o) => {
3604
3631
  this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
@@ -3652,7 +3679,7 @@ class He extends gt {
3652
3679
  return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || i(n, e) && (!s || i(a, e)));
3653
3680
  }
3654
3681
  loadNamespaces(e, t) {
3655
- const n = Ye();
3682
+ const n = We();
3656
3683
  return this.options.ns ? (z(e) && (e = [e]), e.forEach((s) => {
3657
3684
  this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
3658
3685
  }), this.loadResources((s) => {
@@ -3660,7 +3687,7 @@ class He extends gt {
3660
3687
  }), n) : (t && t(), Promise.resolve());
3661
3688
  }
3662
3689
  loadLanguages(e, t) {
3663
- const n = Ye();
3690
+ const n = We();
3664
3691
  z(e) && (e = [e]);
3665
3692
  const s = this.options.preload || [], a = e.filter((i) => s.indexOf(i) < 0 && this.services.languageUtils.isSupportedCode(i));
3666
3693
  return a.length ? (this.options.preload = s.concat(a), this.loadResources((i) => {
@@ -3867,34 +3894,34 @@ const Ir = ({
3867
3894
  _multiActiveIndex: d,
3868
3895
  ...g
3869
3896
  }) => {
3870
- const p = ce(null), [b, S] = H(r), [O, E] = H(e), { translate: T } = je(), [x, v] = H(!1), [$, w] = H(t || []), [R, L] = H(0), [C, A] = H([r]), { anchorRef: k, targetRef: N, anchorWidth: I } = pt({
3897
+ const p = ce(null), [b, S] = H(r), [O, w] = H(e), { translate: T } = je(), [v, y] = H(!1), [R, E] = H(t || []), [D, L] = H(0), [C, A] = H([r]), { anchorRef: k, targetRef: N, anchorWidth: I } = pt({
3871
3898
  position: "bottom",
3872
- enabled: x
3899
+ enabled: v
3873
3900
  }), B = ue(() => {
3874
- v(!1), p?.current?.focus();
3901
+ y(!1), p?.current?.focus();
3875
3902
  }, []);
3876
- mt([N], x, () => B());
3903
+ mt([N], v, () => B());
3877
3904
  const G = On(400), q = (_) => {
3878
3905
  _.length >= a ? o && f && G(async () => {
3879
- const j = await f(o, _);
3880
- w(j), L(j.length > 0 ? 0 : -1), v(!0);
3881
- }) : B(), S(_), E(e), l || c?.(_, e);
3906
+ const $ = await f(o, _);
3907
+ E($), L($.length > 0 ? 0 : -1), y(!0);
3908
+ }) : B(), S(_), w(e), l || c?.(_, e);
3882
3909
  }, Z = () => {
3883
- x || u?.();
3910
+ v || u?.();
3884
3911
  }, F = (_) => {
3885
- l ? (S(""), E("")) : (S(_.id), E(_.label)), c?.(_.id, _.label);
3886
- const j = $.findIndex((D) => D.id === _.id);
3887
- L(j), A([_.id]), B();
3912
+ l ? (S(""), w("")) : (S(_.id), w(_.label)), c?.(_.id, _.label);
3913
+ const $ = R.findIndex((j) => j.id === _.id);
3914
+ L($), A([_.id]), B();
3888
3915
  }, h = (_) => {
3889
3916
  _.key === "Escape" && (B(), L(-1));
3890
- }, y = (_) => {
3891
- if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), x)) {
3892
- const j = _.key === "ArrowDown" ? (R + 1) % $.length : (R - 1 + $.length) % $.length;
3893
- L(j);
3917
+ }, x = (_) => {
3918
+ if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), v)) {
3919
+ const $ = _.key === "ArrowDown" ? (D + 1) % R.length : (D - 1 + R.length) % R.length;
3920
+ L($);
3894
3921
  }
3895
3922
  switch (_.key) {
3896
3923
  case "Enter":
3897
- R >= 0 && R < $.length ? F($[R]) : l && (c?.(b, ""), B(), S(""), E(""));
3924
+ D >= 0 && D < R.length ? F(R[D]) : l && (c?.(b, ""), B(), S(""), w(""));
3898
3925
  break;
3899
3926
  case "Escape":
3900
3927
  B(), L(-1);
@@ -3917,24 +3944,24 @@ const Ir = ({
3917
3944
  ref: k,
3918
3945
  inputRef: p,
3919
3946
  onChange: q,
3920
- onKeyDown: y,
3947
+ onKeyDown: x,
3921
3948
  onBlur: Z,
3922
3949
  "aria-autocomplete": "list"
3923
3950
  }
3924
3951
  ),
3925
- x && /* @__PURE__ */ m.jsx(ht, { children: /* @__PURE__ */ m.jsx(
3952
+ v && /* @__PURE__ */ m.jsx(ht, { children: /* @__PURE__ */ m.jsx(
3926
3953
  Lr,
3927
3954
  {
3928
- options: $,
3955
+ options: R,
3929
3956
  displayMode: s,
3930
3957
  onClick: F,
3931
3958
  ref: N,
3932
- selectedIndex: R,
3959
+ selectedIndex: D,
3933
3960
  activeIndex: d || C,
3934
3961
  width: I,
3935
3962
  showFilter: !1,
3936
3963
  onKeyDown: h,
3937
- isOpen: x
3964
+ isOpen: v
3938
3965
  }
3939
3966
  ) })
3940
3967
  ] });
@@ -3966,8 +3993,8 @@ const Ir = ({
3966
3993
  }, [b, e, p]);
3967
3994
  const O = {
3968
3995
  container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
3969
- }, E = b?.map((T, x) => {
3970
- const v = {
3996
+ }, w = b?.map((T, v) => {
3997
+ const y = {
3971
3998
  bindValue: T.id,
3972
3999
  optionalDisplayValue: T.label,
3973
4000
  fun: T.fun,
@@ -3985,9 +4012,9 @@ const Ir = ({
3985
4012
  g?.(T.id, T.fun);
3986
4013
  }
3987
4014
  };
3988
- return /* @__PURE__ */ m.jsx(Ce, { ...v }, `button-${x}`);
4015
+ return /* @__PURE__ */ m.jsx(Ce, { ...y }, `button-${v}`);
3989
4016
  });
3990
- return /* @__PURE__ */ m.jsx("div", { role: "list", "data-component": "button-list", className: O.container, children: E });
4017
+ return /* @__PURE__ */ m.jsx("div", { role: "list", "data-component": "button-list", className: O.container, children: w });
3991
4018
  }, fs = {
3992
4019
  "smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
3993
4020
  }, ds = ({
@@ -4053,7 +4080,7 @@ const Ir = ({
4053
4080
  role: "listitem",
4054
4081
  draggable: i,
4055
4082
  onDragStart: () => u(p),
4056
- onDragOver: (E) => i && E.preventDefault(),
4083
+ onDragOver: (w) => i && w.preventDefault(),
4057
4084
  onDrop: () => i && d(p),
4058
4085
  style: {
4059
4086
  "--smp-chips-backgroundColor-base": a
@@ -4135,19 +4162,19 @@ const ps = ({
4135
4162
  multiActiveIndex: c,
4136
4163
  ...f
4137
4164
  }) => {
4138
- const u = ce(null), [d, g] = H(!1), [p, b] = H(t), [S, O] = H(-1), [E, T] = H([r]), x = Te(), { anchorRef: v, targetRef: $, anchorWidth: w } = pt({
4165
+ const u = ce(null), [d, g] = H(!1), [p, b] = H(t), [S, O] = H(-1), [w, T] = H([r]), v = Te(), { anchorRef: y, targetRef: R, anchorWidth: E } = pt({
4139
4166
  position: "bottom",
4140
4167
  enabled: d
4141
- }), R = ue(() => {
4168
+ }), D = ue(() => {
4142
4169
  g(!1), u?.current?.focus();
4143
4170
  }, []);
4144
- mt([$, v], d, () => R()), It(d, $);
4171
+ mt([R, y], d, () => D()), It(d, R);
4145
4172
  const L = (N) => {
4146
4173
  e?.(N.id, N.label);
4147
4174
  const I = p.findIndex((B) => B.id === N.id);
4148
- O(I), T([N.id]), R();
4175
+ O(I), T([N.id]), D();
4149
4176
  }, C = (N) => {
4150
- N.key === "Escape" && (R(), O(-1));
4177
+ N.key === "Escape" && (D(), O(-1));
4151
4178
  }, A = (N) => {
4152
4179
  (N.key === "ArrowDown" || N.key === "ArrowUp") && (N.preventDefault(), k());
4153
4180
  }, k = () => {
@@ -4160,8 +4187,8 @@ const ps = ({
4160
4187
  {
4161
4188
  role: "combobox",
4162
4189
  "aria-expanded": d,
4163
- "aria-controls": x,
4164
- "aria-owns": x,
4190
+ "aria-controls": v,
4191
+ "aria-owns": v,
4165
4192
  "data-component": "combobox",
4166
4193
  children: [
4167
4194
  /* @__PURE__ */ m.jsx(
@@ -4177,7 +4204,7 @@ const ps = ({
4177
4204
  shapeIcon: "arrow_drop_down",
4178
4205
  rotatedShapeIcon: d,
4179
4206
  isEditable: s,
4180
- ref: v,
4207
+ ref: y,
4181
4208
  inputRef: u,
4182
4209
  "aria-autocomplete": "list",
4183
4210
  variant: "notSelectable"
@@ -4186,14 +4213,14 @@ const ps = ({
4186
4213
  d && /* @__PURE__ */ m.jsx(ht, { children: /* @__PURE__ */ m.jsx(
4187
4214
  Lr,
4188
4215
  {
4189
- id: x,
4216
+ id: v,
4190
4217
  options: p,
4191
4218
  displayMode: i,
4192
- ref: $,
4219
+ ref: R,
4193
4220
  isOpen: d,
4194
4221
  selectedIndex: S,
4195
- activeIndex: c || E,
4196
- width: w,
4222
+ activeIndex: c || w,
4223
+ width: E,
4197
4224
  onClick: L,
4198
4225
  onKeyDown: C
4199
4226
  }
@@ -4223,7 +4250,7 @@ function ms({
4223
4250
  l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
4224
4251
  ), [p, b] = H(
4225
4252
  l ? l.getDate() : null
4226
- ), S = ce(null), O = ce([]), E = [
4253
+ ), S = ce(null), O = ce([]), w = [
4227
4254
  a(pe.JANUARY),
4228
4255
  a(pe.FEBRUARY),
4229
4256
  a(pe.MARCH),
@@ -4265,37 +4292,37 @@ function ms({
4265
4292
  value: a(fe.SATURDAY_SHORT),
4266
4293
  full: a(fe.SATURDAY)
4267
4294
  }
4268
- ], x = (F) => t.some((h) => {
4269
- const y = h.start.getTime(), _ = h.end.getTime(), j = F.getTime();
4270
- return j >= y && j <= _;
4271
- }), v = (F) => {
4272
- x(F) || (c(F), b(F.getDate()), e && e(En(F)));
4273
- }, $ = () => {
4295
+ ], v = (F) => t.some((h) => {
4296
+ const x = h.start.getTime(), _ = h.end.getTime(), $ = F.getTime();
4297
+ return $ >= x && $ <= _;
4298
+ }), y = (F) => {
4299
+ v(F) || (c(F), b(F.getDate()), e && e(En(F)));
4300
+ }, R = () => {
4274
4301
  f === 0 ? (u(11), g(d - 1)) : u(f - 1), b(1);
4275
- }, w = () => {
4302
+ }, E = () => {
4276
4303
  f === 11 ? (u(0), g(d + 1)) : u(f + 1), b(1);
4277
- }, R = (F, h) => new Date(F, h + 1, 0).getDate(), L = (F, h) => new Date(F, h, 1).getDay(), C = (F) => {
4304
+ }, D = (F, h) => new Date(F, h + 1, 0).getDate(), L = (F, h) => new Date(F, h, 1).getDay(), C = (F) => {
4278
4305
  const h = I.findIndex(
4279
- (y) => y !== null && y.getDate() === F
4306
+ (x) => x !== null && x.getDate() === F
4280
4307
  );
4281
4308
  h !== -1 && O.current[h] && (O.current[h]?.focus(), b(F));
4282
4309
  }, A = (F, h) => {
4283
- const y = I[h];
4284
- if (!y) return;
4285
- const _ = R(d, f), j = y.getDate();
4310
+ const x = I[h];
4311
+ if (!x) return;
4312
+ const _ = D(d, f), $ = x.getDate();
4286
4313
  switch (F.key) {
4287
4314
  case "ArrowRight":
4288
4315
  F.preventDefault();
4289
4316
  {
4290
- let D = j + 1, P = new Date(d, f, D);
4291
- if (D > _) {
4292
- const Y = f === 11 ? d + 1 : d, U = f === 11 ? 0 : f + 1;
4293
- D = 1, P = new Date(Y, U, D), w(), setTimeout(() => {
4317
+ let j = $ + 1, P = new Date(d, f, j);
4318
+ if (j > _) {
4319
+ const W = f === 11 ? d + 1 : d, Y = f === 11 ? 0 : f + 1;
4320
+ j = 1, P = new Date(W, Y, j), E(), setTimeout(() => {
4294
4321
  k(1, "forward");
4295
4322
  }, 0);
4296
4323
  return;
4297
4324
  }
4298
- x(P) ? k(D, "forward") : C(D);
4325
+ v(P) ? k(j, "forward") : C(j);
4299
4326
  }
4300
4327
  break;
4301
4328
  case "Tab":
@@ -4303,43 +4330,43 @@ function ms({
4303
4330
  case "ArrowLeft":
4304
4331
  F.preventDefault();
4305
4332
  {
4306
- let D = j - 1, P = new Date(d, f, D);
4307
- if (D < 1) {
4308
- const Y = f === 0 ? d - 1 : d, U = f === 0 ? 11 : f - 1, V = R(Y, U);
4309
- D = V, P = new Date(Y, U, D), $(), setTimeout(() => {
4333
+ let j = $ - 1, P = new Date(d, f, j);
4334
+ if (j < 1) {
4335
+ const W = f === 0 ? d - 1 : d, Y = f === 0 ? 11 : f - 1, V = D(W, Y);
4336
+ j = V, P = new Date(W, Y, j), R(), setTimeout(() => {
4310
4337
  k(V, "backward");
4311
4338
  }, 0);
4312
4339
  return;
4313
4340
  }
4314
- x(P) ? k(D, "backward") : C(D);
4341
+ v(P) ? k(j, "backward") : C(j);
4315
4342
  }
4316
4343
  break;
4317
4344
  case "ArrowUp":
4318
4345
  F.preventDefault();
4319
4346
  {
4320
- let D = j - 7, P = new Date(d, f, D);
4321
- if (D < 1) {
4322
- const Y = f === 0 ? d - 1 : d, U = f === 0 ? 11 : f - 1;
4323
- D = R(Y, U) + D, P = new Date(Y, U, D), $(), setTimeout(() => {
4324
- k(D, "backward");
4347
+ let j = $ - 7, P = new Date(d, f, j);
4348
+ if (j < 1) {
4349
+ const W = f === 0 ? d - 1 : d, Y = f === 0 ? 11 : f - 1;
4350
+ j = D(W, Y) + j, P = new Date(W, Y, j), R(), setTimeout(() => {
4351
+ k(j, "backward");
4325
4352
  }, 0);
4326
4353
  return;
4327
4354
  }
4328
- x(P) ? k(D, "backward") : C(D);
4355
+ v(P) ? k(j, "backward") : C(j);
4329
4356
  }
4330
4357
  break;
4331
4358
  case "ArrowDown":
4332
4359
  F.preventDefault();
4333
4360
  {
4334
- let D = j + 7, P = new Date(d, f, D);
4335
- if (D > _) {
4336
- const Y = f === 11 ? d + 1 : d, U = f === 11 ? 0 : f + 1;
4337
- D = D - _, P = new Date(Y, U, D), w(), setTimeout(() => {
4338
- k(D, "forward");
4361
+ let j = $ + 7, P = new Date(d, f, j);
4362
+ if (j > _) {
4363
+ const W = f === 11 ? d + 1 : d, Y = f === 11 ? 0 : f + 1;
4364
+ j = j - _, P = new Date(W, Y, j), E(), setTimeout(() => {
4365
+ k(j, "forward");
4339
4366
  }, 0);
4340
4367
  return;
4341
4368
  }
4342
- x(P) ? k(D, "forward") : C(D);
4369
+ v(P) ? k(j, "forward") : C(j);
4343
4370
  }
4344
4371
  break;
4345
4372
  case "Home":
@@ -4349,67 +4376,67 @@ function ms({
4349
4376
  F.preventDefault(), k(_, "backward");
4350
4377
  break;
4351
4378
  case "PageUp":
4352
- F.preventDefault(), $(), setTimeout(() => {
4353
- const D = R(
4379
+ F.preventDefault(), R(), setTimeout(() => {
4380
+ const j = D(
4354
4381
  f === 0 ? d - 1 : d,
4355
4382
  f === 0 ? 11 : f - 1
4356
- ), P = Math.min(j, D);
4383
+ ), P = Math.min($, j);
4357
4384
  k(P, "forward");
4358
4385
  }, 0);
4359
4386
  break;
4360
4387
  case "PageDown":
4361
- F.preventDefault(), w(), setTimeout(() => {
4362
- const D = R(
4388
+ F.preventDefault(), E(), setTimeout(() => {
4389
+ const j = D(
4363
4390
  f === 11 ? d + 1 : d,
4364
4391
  f === 11 ? 0 : f + 1
4365
- ), P = Math.min(j, D);
4392
+ ), P = Math.min($, j);
4366
4393
  k(P, "forward");
4367
4394
  }, 0);
4368
4395
  break;
4369
4396
  case " ":
4370
4397
  case "Space":
4371
- if (x(y)) return;
4372
- b(y.getDate()), c(y);
4398
+ if (v(x)) return;
4399
+ b(x.getDate()), c(x);
4373
4400
  break;
4374
4401
  case "Enter":
4375
- F.preventDefault(), v(y);
4402
+ F.preventDefault(), y(x);
4376
4403
  break;
4377
4404
  }
4378
4405
  }, k = (F, h) => {
4379
- const y = R(d, f);
4406
+ const x = D(d, f);
4380
4407
  if (h === "forward") {
4381
- for (let _ = F; _ <= y; _++) {
4382
- const j = new Date(d, f, _);
4383
- if (!x(j)) {
4408
+ for (let _ = F; _ <= x; _++) {
4409
+ const $ = new Date(d, f, _);
4410
+ if (!v($)) {
4384
4411
  C(_);
4385
4412
  return;
4386
4413
  }
4387
4414
  }
4388
- w(), setTimeout(() => {
4415
+ E(), setTimeout(() => {
4389
4416
  k(1, "forward");
4390
4417
  }, 0);
4391
4418
  } else {
4392
4419
  for (let P = F; P >= 1; P--) {
4393
- const Y = new Date(d, f, P);
4394
- if (!x(Y)) {
4420
+ const W = new Date(d, f, P);
4421
+ if (!v(W)) {
4395
4422
  C(P);
4396
4423
  return;
4397
4424
  }
4398
4425
  }
4399
- const _ = f === 0 ? d - 1 : d, j = f === 0 ? 11 : f - 1, D = R(_, j);
4400
- $(), setTimeout(() => {
4401
- k(D, "backward");
4426
+ const _ = f === 0 ? d - 1 : d, $ = f === 0 ? 11 : f - 1, j = D(_, $);
4427
+ R(), setTimeout(() => {
4428
+ k(j, "backward");
4402
4429
  }, 0);
4403
4430
  }
4404
4431
  }, I = (() => {
4405
- const F = R(d, f), h = L(d, f), y = [];
4432
+ const F = D(d, f), h = L(d, f), x = [];
4406
4433
  for (let _ = 0; _ < h; _++)
4407
- y.push(null);
4434
+ x.push(null);
4408
4435
  for (let _ = 1; _ <= F; _++) {
4409
- const j = new Date(d, f, _);
4410
- y.push(j);
4436
+ const $ = new Date(d, f, _);
4437
+ x.push($);
4411
4438
  }
4412
- return y;
4439
+ return x;
4413
4440
  })(), B = [];
4414
4441
  let G = [];
4415
4442
  I.forEach((F, h) => {
@@ -4432,12 +4459,12 @@ function ms({
4432
4459
  calendar: "smp-datepickercalendar",
4433
4460
  table: "smp-datepickercalendar-table",
4434
4461
  th: "smp-datepickercalendar-th",
4435
- td: (F, h, y, _) => `smp-datepickercalendar-td
4462
+ td: (F, h, x, _) => `smp-datepickercalendar-td
4436
4463
  ${F ? "smp-datepickercalendar-td-today" : ""}
4437
4464
  ${h ? "smp-datepickercalendar-td-selected" : ""}
4438
- ${y ? "smp-datepickercalendar-td-focused" : ""}
4465
+ ${x ? "smp-datepickercalendar-td-focused" : ""}
4439
4466
  ${_ ? "smp-datepickercalendar-td-disabled" : ""}`
4440
- }, Z = () => `${E[f]} ${d.toString()}`;
4467
+ }, Z = () => `${w[f]} ${d.toString()}`;
4441
4468
  return /* @__PURE__ */ m.jsxs(
4442
4469
  "div",
4443
4470
  {
@@ -4461,7 +4488,7 @@ function ms({
4461
4488
  /* @__PURE__ */ m.jsx(
4462
4489
  Ce,
4463
4490
  {
4464
- onClick: $,
4491
+ onClick: R,
4465
4492
  ariaLabel: a(jt.PREVIOUS_MONTH),
4466
4493
  optionalDisplayValue: "<",
4467
4494
  appearance: "ghost",
@@ -4480,7 +4507,7 @@ function ms({
4480
4507
  /* @__PURE__ */ m.jsx(
4481
4508
  Ce,
4482
4509
  {
4483
- onClick: w,
4510
+ onClick: E,
4484
4511
  ariaLabel: a(jt.NEXT_MONTH),
4485
4512
  bindValue: ">",
4486
4513
  optionalDisplayValue: ">",
@@ -4496,7 +4523,7 @@ function ms({
4496
4523
  {
4497
4524
  ref: S,
4498
4525
  role: "grid",
4499
- "aria-label": `${a(we.CALENDAR_FOR)} ${E[f]} ${d}`,
4526
+ "aria-label": `${a(we.CALENDAR_FOR)} ${w[f]} ${d}`,
4500
4527
  className: q.table,
4501
4528
  children: [
4502
4529
  /* @__PURE__ */ m.jsx("thead", { children: /* @__PURE__ */ m.jsx("tr", { children: T.map((F) => /* @__PURE__ */ m.jsx(
@@ -4509,9 +4536,9 @@ function ms({
4509
4536
  },
4510
4537
  F.value
4511
4538
  )) }) }),
4512
- /* @__PURE__ */ m.jsx("tbody", { children: B.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((y, _) => {
4513
- const j = h * 7 + _;
4514
- if (y === null)
4539
+ /* @__PURE__ */ m.jsx("tbody", { children: B.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((x, _) => {
4540
+ const $ = h * 7 + _;
4541
+ if (x === null)
4515
4542
  return /* @__PURE__ */ m.jsx(
4516
4543
  "td",
4517
4544
  {
@@ -4524,28 +4551,28 @@ function ms({
4524
4551
  },
4525
4552
  `empty-${_}`
4526
4553
  );
4527
- const D = y.getDate() === o.getDate() && y.getMonth() === o.getMonth() && y.getFullYear() === o.getFullYear(), P = l && y.getDate() === l.getDate() && y.getMonth() === l.getMonth() && y.getFullYear() === l.getFullYear(), Y = p === y.getDate(), U = x(y);
4554
+ const j = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), P = l && x.getDate() === l.getDate() && x.getMonth() === l.getMonth() && x.getFullYear() === l.getFullYear(), W = p === x.getDate(), Y = v(x);
4528
4555
  return /* @__PURE__ */ m.jsx(
4529
4556
  "td",
4530
4557
  {
4531
4558
  role: "gridcell",
4532
4559
  "aria-selected": P,
4533
- tabIndex: Y ? 0 : -1,
4534
- onClick: () => v(y),
4535
- onKeyDown: (V) => A(V, j),
4536
- "aria-label": `${y.getDate()} ${E[y.getMonth()]} ${y.getFullYear()}`,
4560
+ tabIndex: W ? 0 : -1,
4561
+ onClick: () => y(x),
4562
+ onKeyDown: (V) => A(V, $),
4563
+ "aria-label": `${x.getDate()} ${w[x.getMonth()]} ${x.getFullYear()}`,
4537
4564
  "data-selected": P,
4538
- "aria-disabled": U,
4565
+ "aria-disabled": Y,
4539
4566
  ref: (V) => {
4540
- O.current[j] = V;
4567
+ O.current[$] = V;
4541
4568
  },
4542
4569
  className: q.td(
4543
- D,
4570
+ j,
4544
4571
  P,
4545
- Y,
4546
- U
4572
+ W,
4573
+ Y
4547
4574
  ),
4548
- children: y.getDate()
4575
+ children: x.getDate()
4549
4576
  },
4550
4577
  `day-${_}`
4551
4578
  );
@@ -4574,7 +4601,7 @@ const gs = ({
4574
4601
  mt([p, g], o, () => {
4575
4602
  b();
4576
4603
  }), It(o, p);
4577
- const { format: S, getCurrentLanguage: O } = je(), E = ue(
4604
+ const { format: S, getCurrentLanguage: O } = je(), w = ue(
4578
4605
  (L) => {
4579
4606
  const C = L.length > 5 && xn(L, O()) || L, A = S(C, void 0, void 0, {
4580
4607
  type: "date"
@@ -4589,20 +4616,20 @@ const gs = ({
4589
4616
  [O, S]
4590
4617
  );
4591
4618
  re(() => {
4592
- const { formattedDate: L, isoDate: C, isValid: A } = E(r);
4619
+ const { formattedDate: L, isoDate: C, isValid: A } = w(r);
4593
4620
  f(A && C || r), d(A && L || r);
4594
- }, [r, S, E]);
4595
- const T = () => l((L) => !L), x = () => {
4596
- $(u);
4597
- }, v = (L) => {
4598
- $(L), b();
4599
- }, $ = (L) => {
4600
- const { isoDate: C, isValid: A } = E(L);
4621
+ }, [r, S, w]);
4622
+ const T = () => l((L) => !L), v = () => {
4623
+ R(u);
4624
+ }, y = (L) => {
4625
+ R(L), b();
4626
+ }, R = (L) => {
4627
+ const { isoDate: C, isValid: A } = w(L);
4601
4628
  t && t(A && C || L);
4602
- }, w = (L) => {
4629
+ }, E = (L) => {
4603
4630
  d(L);
4604
- }, R = (L) => {
4605
- L.key === "Enter" && (L.preventDefault(), $(u));
4631
+ }, D = (L) => {
4632
+ L.key === "Enter" && (L.preventDefault(), R(u));
4606
4633
  };
4607
4634
  return /* @__PURE__ */ m.jsxs("div", { "data-component": "date-picker", children: [
4608
4635
  /* @__PURE__ */ m.jsx(
@@ -4611,9 +4638,9 @@ const gs = ({
4611
4638
  ...a,
4612
4639
  bindValue: u,
4613
4640
  placeholder: e,
4614
- onBlur: x,
4615
- onChange: w,
4616
- onKeyDown: R,
4641
+ onBlur: v,
4642
+ onChange: E,
4643
+ onKeyDown: D,
4617
4644
  shapeIcon: "calendar",
4618
4645
  onShapeIconClick: T,
4619
4646
  ref: g,
@@ -4627,7 +4654,7 @@ const gs = ({
4627
4654
  ms,
4628
4655
  {
4629
4656
  disabledDateRanges: n,
4630
- onDateChange: v,
4657
+ onDateChange: y,
4631
4658
  initialValue: Lt(c) && c || "",
4632
4659
  targetRef: p
4633
4660
  }
@@ -4649,19 +4676,19 @@ const gs = ({
4649
4676
  onBlur: d
4650
4677
  }) => {
4651
4678
  const g = r.map((S) => S.bindValue), p = (S, O) => {
4652
- const E = [...r];
4679
+ const w = [...r];
4653
4680
  if (S == "")
4654
- E.pop();
4681
+ w.pop();
4655
4682
  else {
4656
- const T = E.findIndex(
4657
- (x) => x.bindValue === S && x.optionalDisplayValue === O
4683
+ const T = w.findIndex(
4684
+ (v) => v.bindValue === S && v.optionalDisplayValue === O
4658
4685
  );
4659
- T >= 0 ? E.splice(T, 1) : E.push({
4686
+ T >= 0 ? w.splice(T, 1) : w.push({
4660
4687
  bindValue: S,
4661
4688
  optionalDisplayValue: O
4662
4689
  });
4663
4690
  }
4664
- u?.(E);
4691
+ u?.(w);
4665
4692
  }, b = {
4666
4693
  container: "smp-multipleAutocomplete-container"
4667
4694
  };
@@ -4841,30 +4868,30 @@ const Pe = (r, e, t) => ({
4841
4868
  useGrouping: !0
4842
4869
  }).format(k),
4843
4870
  [u]
4844
- ), b = ue(as, [d, g]), S = ue(ts, [r, e]), O = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [E, T] = H(O), [x, v] = H(
4845
- a != null ? p(a, E) : ""
4846
- ), $ = ce(a ?? null);
4871
+ ), b = ue(as, [d, g]), S = ue(ts, [r, e]), O = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [w, T] = H(O), [v, y] = H(
4872
+ a != null ? p(a, w) : ""
4873
+ ), R = ce(a ?? null);
4847
4874
  re(() => {
4848
4875
  if (a == null) {
4849
- v(""), $.current = null;
4876
+ y(""), R.current = null;
4850
4877
  return;
4851
4878
  }
4852
- const k = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, N = k === 0 ? E : k;
4853
- N !== E && T(N), v(p(a, N)), $.current = a;
4879
+ const k = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, N = k === 0 ? w : k;
4880
+ N !== w && T(N), y(p(a, N)), R.current = a;
4854
4881
  }, [a, p]);
4855
- const w = ue(
4882
+ const E = ue(
4856
4883
  (k, N = !1) => {
4857
4884
  if (k.trim() === "") {
4858
- v(""), $.current = null, i?.(void 0, ""), N && o?.(void 0);
4885
+ y(""), R.current = null, i?.(void 0, ""), N && o?.(void 0);
4859
4886
  return;
4860
4887
  }
4861
4888
  const I = b(k, d, g);
4862
4889
  if (isNaN(I))
4863
- if ($.current != null) {
4864
- const B = p($.current, E);
4865
- v(B);
4890
+ if (R.current != null) {
4891
+ const B = p(R.current, w);
4892
+ y(B);
4866
4893
  } else
4867
- v("");
4894
+ y("");
4868
4895
  else {
4869
4896
  const B = S(I, r, e), G = ss(
4870
4897
  k,
@@ -4873,7 +4900,7 @@ const Pe = (r, e, t) => ({
4873
4900
  );
4874
4901
  T(G);
4875
4902
  const q = p(B, G);
4876
- v(q), $.current = B, i?.(B, q), N && o?.(B);
4903
+ y(q), R.current = B, i?.(B, q), N && o?.(B);
4877
4904
  }
4878
4905
  },
4879
4906
  [
@@ -4886,23 +4913,23 @@ const Pe = (r, e, t) => ({
4886
4913
  p,
4887
4914
  i,
4888
4915
  o,
4889
- E
4916
+ w
4890
4917
  ]
4891
- ), R = (k) => v(k), L = () => w(x), C = (k) => {
4918
+ ), D = (k) => y(k), L = () => E(v), C = (k) => {
4892
4919
  if (k.key === "Enter") {
4893
- k.preventDefault(), w(x, !0);
4920
+ k.preventDefault(), E(v, !0);
4894
4921
  return;
4895
4922
  }
4896
4923
  if (k.key === "ArrowUp" || k.key === "ArrowDown") {
4897
4924
  k.preventDefault();
4898
- const N = k.key === "ArrowUp" ? 1 : -1, I = $.current ?? 0, B = S(I + N * t, r, e);
4899
- w(p(B, E));
4925
+ const N = k.key === "ArrowUp" ? 1 : -1, I = R.current ?? 0, B = S(I + N * t, r, e);
4926
+ E(p(B, w));
4900
4927
  }
4901
4928
  }, A = (k) => {
4902
4929
  if (!k.currentTarget.contains(document.activeElement)) return;
4903
4930
  k.preventDefault();
4904
- const N = k.deltaY < 0 ? 1 : -1, I = $.current ?? 0, B = S(I + N * t, r, e);
4905
- w(p(B, E));
4931
+ const N = k.deltaY < 0 ? 1 : -1, I = R.current ?? 0, B = S(I + N * t, r, e);
4932
+ E(p(B, w));
4906
4933
  };
4907
4934
  return /* @__PURE__ */ m.jsx("div", { ref: f, "data-component": "input-number", onWheel: A, children: /* @__PURE__ */ m.jsx(
4908
4935
  De,
@@ -4910,14 +4937,14 @@ const Pe = (r, e, t) => ({
4910
4937
  ...l,
4911
4938
  "aria-valuemin": r,
4912
4939
  "aria-valuemax": e,
4913
- "aria-valuenow": $.current ?? void 0,
4914
- bindValue: x,
4940
+ "aria-valuenow": R.current ?? void 0,
4941
+ bindValue: v,
4915
4942
  inputType: "text",
4916
4943
  inputMode: n,
4917
4944
  min: r,
4918
4945
  max: e,
4919
4946
  step: t,
4920
- onChange: R,
4947
+ onChange: D,
4921
4948
  onBlur: L,
4922
4949
  onKeyDown: C
4923
4950
  }
@@ -4983,13 +5010,13 @@ const Ts = ({
4983
5010
  rows: g = 10,
4984
5011
  cols: p = 35
4985
5012
  }) => {
4986
- const b = Te(), S = `${b}-helper`, O = f ? "danger" : s, E = c || !!f, T = (v) => {
4987
- t?.(v.target.value);
4988
- }, x = {
5013
+ const b = Te(), S = `${b}-helper`, O = f ? "danger" : s, w = c || !!f, T = (y) => {
5014
+ t?.(y.target.value);
5015
+ }, v = {
4989
5016
  wrapper: "smp-textarea-wrapper",
4990
5017
  container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${O ? `smp-textarea-${O}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
4991
5018
  };
4992
- return /* @__PURE__ */ m.jsxs("div", { className: x.wrapper, "data-component": "textarea", children: [
5019
+ return /* @__PURE__ */ m.jsxs("div", { className: v.wrapper, "data-component": "textarea", children: [
4993
5020
  o && /* @__PURE__ */ m.jsx(Re, { htmlFor: b, label: o, disabled: r }),
4994
5021
  /* @__PURE__ */ m.jsx(
4995
5022
  "textarea",
@@ -4999,18 +5026,18 @@ const Ts = ({
4999
5026
  placeholder: n,
5000
5027
  onChange: T,
5001
5028
  onBlur: u,
5002
- className: x.container,
5029
+ className: v.container,
5003
5030
  disabled: r,
5004
5031
  readOnly: !i,
5005
5032
  onKeyDown: d,
5006
5033
  "aria-label": o ? void 0 : l,
5007
5034
  "aria-labelledby": o ? b : void 0,
5008
- "aria-describedby": E ? S : void 0,
5035
+ "aria-describedby": w ? S : void 0,
5009
5036
  rows: g,
5010
5037
  cols: p
5011
5038
  }
5012
5039
  ),
5013
- E && /* @__PURE__ */ m.jsx(
5040
+ w && /* @__PURE__ */ m.jsx(
5014
5041
  $r,
5015
5042
  {
5016
5043
  id: S,
@@ -5022,7 +5049,7 @@ const Ts = ({
5022
5049
  ] });
5023
5050
  };
5024
5051
  var $t = /* @__PURE__ */ ((r) => (r.PAGE_DIRECTION = "pageDirection", r.LINE_DIRECTION = "lineDirection", r))($t || {});
5025
- const Ue = {
5052
+ const Ye = {
5026
5053
  "smp-radio": "_smp-radio_1wj31_1",
5027
5054
  "smp-radio-options-container": "_smp-radio-options-container_1wj31_10",
5028
5055
  "smp-radio-horizontal": "_smp-radio-horizontal_1wj31_16",
@@ -5045,9 +5072,9 @@ const Ue = {
5045
5072
  });
5046
5073
  }, [l, s, a]);
5047
5074
  const u = {
5048
- container: Ue["smp-radio"],
5049
- optionsContainer: `${Ue["smp-radio-options-container"]} ${t == $t.LINE_DIRECTION ? Ue["smp-radio-horizontal"] : ""}`,
5050
- option: `${Ue["smp-radio-element"]} ${r ? Ue["smp-radio-disabled"] : ""}`
5075
+ container: Ye["smp-radio"],
5076
+ optionsContainer: `${Ye["smp-radio-options-container"]} ${t == $t.LINE_DIRECTION ? Ye["smp-radio-horizontal"] : ""}`,
5077
+ option: `${Ye["smp-radio-element"]} ${r ? Ye["smp-radio-disabled"] : ""}`
5051
5078
  }, d = () => {
5052
5079
  r || o.onBlur?.();
5053
5080
  }, g = (b) => {
@@ -5156,33 +5183,33 @@ const Ue = {
5156
5183
  o(!1), a?.current?.focus();
5157
5184
  }, []);
5158
5185
  mt([g, d], i, () => o(!1)), It(i, g), re(() => {
5159
- const v = r || "", $ = Tr(v) ? v : r || "";
5160
- c(v), u($);
5186
+ const y = r || "", R = Tr(y) ? y : r || "";
5187
+ c(y), u(R);
5161
5188
  }, [r]), re(() => {
5162
- const v = ($) => {
5163
- $.key === "Escape" && o(!1);
5189
+ const y = (R) => {
5190
+ R.key === "Escape" && o(!1);
5164
5191
  };
5165
- return i && document.addEventListener("keydown", v), () => {
5166
- document.removeEventListener("keydown", v);
5192
+ return i && document.addEventListener("keydown", y), () => {
5193
+ document.removeEventListener("keydown", y);
5167
5194
  };
5168
5195
  }, [i]);
5169
5196
  const b = () => {
5170
- n && o((v) => !v);
5171
- }, S = (v) => {
5172
- u(v);
5173
- }, O = (v, $, w) => {
5174
- const R = Rs(v, $, w);
5175
- c(R), u(R), t?.(R), p();
5176
- }, E = () => {
5177
- x(f);
5178
- }, T = (v) => {
5179
- v.key === "Enter" && (v.preventDefault(), x(f));
5180
- }, x = (v) => {
5181
- if (v.trim() === "") {
5197
+ n && o((y) => !y);
5198
+ }, S = (y) => {
5199
+ u(y);
5200
+ }, O = (y, R, E) => {
5201
+ const D = Rs(y, R, E);
5202
+ c(D), u(D), t?.(D), p();
5203
+ }, w = () => {
5204
+ v(f);
5205
+ }, T = (y) => {
5206
+ y.key === "Enter" && (y.preventDefault(), v(f));
5207
+ }, v = (y) => {
5208
+ if (y.trim() === "") {
5182
5209
  c(""), u(""), t?.("");
5183
5210
  return;
5184
5211
  }
5185
- Tr(v) ? (c(v), u(v), t?.(v)) : u(v);
5212
+ Tr(y) ? (c(y), u(y), t?.(y)) : u(y);
5186
5213
  };
5187
5214
  return /* @__PURE__ */ m.jsxs("div", { "data-component": "time-picker", children: [
5188
5215
  /* @__PURE__ */ m.jsx(
@@ -5192,7 +5219,7 @@ const Ue = {
5192
5219
  bindValue: f,
5193
5220
  placeholder: e,
5194
5221
  onChange: S,
5195
- onBlur: E,
5222
+ onBlur: w,
5196
5223
  onKeyDown: T,
5197
5224
  shapeIcon: "clock",
5198
5225
  onShapeIconClick: b,
@@ -5273,7 +5300,7 @@ const Cr = /* @__PURE__ */ new Map([
5273
5300
  isEditable: S,
5274
5301
  dSep: O = "."
5275
5302
  }) => {
5276
- const E = {
5303
+ const w = {
5277
5304
  obj: t,
5278
5305
  shape: e,
5279
5306
  decode: r,
@@ -5288,12 +5315,12 @@ const Cr = /* @__PURE__ */ new Map([
5288
5315
  tooltip: l,
5289
5316
  label: o,
5290
5317
  isEditable: S,
5291
- size: E.data && E.data.size ? E.data.size : E.data?.displayMode && ws(E.data.displayMode || "CodeOnly"),
5318
+ size: w.data && w.data.size ? w.data.size : w.data?.displayMode && ws(w.data.displayMode || "CodeOnly"),
5292
5319
  ...n
5293
- }, x = (C, A, k) => yn(t) ? Pe(C, new lt(t, A).getLegacyValue()) : bn(t) ? Pe(C, new dt(t, A).getLegacyValue()) : Pe(C, A, k), v = (C, A) => Pe(
5320
+ }, v = (C, A, k) => yn(t) ? Pe(C, new lt(t, A).getLegacyValue()) : bn(t) ? Pe(C, new dt(t, A).getLegacyValue()) : Pe(C, A, k), y = (C, A) => Pe(
5294
5321
  C,
5295
5322
  new Ge(t, A, O).getLegacyValue()
5296
- ), $ = (C) => Pe(E, new it(t, C).getLegacyValue()), w = (C) => Ss(E, C), R = () => {
5323
+ ), R = (C) => Pe(w, new it(t, C).getLegacyValue()), E = (C) => Ss(w, C), D = () => {
5297
5324
  switch (e) {
5298
5325
  case te.AUTOCOMPLETE: {
5299
5326
  const C = {
@@ -5301,7 +5328,7 @@ const Cr = /* @__PURE__ */ new Map([
5301
5328
  bindValue: t.k,
5302
5329
  optionalDisplayValue: r,
5303
5330
  onChange: (A, k) => {
5304
- f?.(x(E, A, k));
5331
+ f?.(v(w, A, k));
5305
5332
  }
5306
5333
  };
5307
5334
  return /* @__PURE__ */ m.jsx(Ir, { ...C });
@@ -5313,7 +5340,7 @@ const Cr = /* @__PURE__ */ new Map([
5313
5340
  optionalDisplayValue: n?.label && typeof n.label == "string" ? n.label : void 0,
5314
5341
  title: r,
5315
5342
  onClick: () => {
5316
- u?.(x(E, t.k));
5343
+ u?.(v(w, t.k));
5317
5344
  }
5318
5345
  };
5319
5346
  return /* @__PURE__ */ m.jsx(Ce, { ...C });
@@ -5323,8 +5350,8 @@ const Cr = /* @__PURE__ */ new Map([
5323
5350
  ...T,
5324
5351
  options: c,
5325
5352
  onClick: (A, k) => {
5326
- const N = { ...E, fun: k };
5327
- u?.(x(N, A));
5353
+ const N = { ...w, fun: k };
5354
+ u?.(v(N, A));
5328
5355
  }
5329
5356
  };
5330
5357
  return /* @__PURE__ */ m.jsx(us, { ...C });
@@ -5332,7 +5359,7 @@ const Cr = /* @__PURE__ */ new Map([
5332
5359
  case te.CHIP: {
5333
5360
  const C = {
5334
5361
  ...T,
5335
- elements: Er(E)
5362
+ elements: Er(w)
5336
5363
  };
5337
5364
  return /* @__PURE__ */ m.jsx(Pt, { ...C });
5338
5365
  }
@@ -5343,7 +5370,7 @@ const Cr = /* @__PURE__ */ new Map([
5343
5370
  bindValue: it.fromDataObj(t).getValue(),
5344
5371
  optionalDisplayValue: r,
5345
5372
  onChange: (k) => {
5346
- f?.($(k));
5373
+ f?.(R(k));
5347
5374
  },
5348
5375
  ...C && { variant: "switch" }
5349
5376
  };
@@ -5355,7 +5382,7 @@ const Cr = /* @__PURE__ */ new Map([
5355
5382
  bindValue: t.k,
5356
5383
  optionalDisplayValue: r,
5357
5384
  onChange: (A, k) => {
5358
- f?.(x(E, A, k));
5385
+ f?.(v(w, A, k));
5359
5386
  }
5360
5387
  };
5361
5388
  return /* @__PURE__ */ m.jsx(ps, { ...C });
@@ -5365,7 +5392,7 @@ const Cr = /* @__PURE__ */ new Map([
5365
5392
  ...T,
5366
5393
  bindValue: lt.fromDataObj(t).getValue(),
5367
5394
  onChange: (A) => {
5368
- f?.(x(E, A));
5395
+ f?.(v(w, A));
5369
5396
  }
5370
5397
  };
5371
5398
  return /* @__PURE__ */ m.jsx(gs, { ...C });
@@ -5378,7 +5405,7 @@ const Cr = /* @__PURE__ */ new Map([
5378
5405
  placeholderIcon: i,
5379
5406
  isInteractable: !!T.fun,
5380
5407
  onClick: () => {
5381
- u?.(x(E, t.k));
5408
+ u?.(v(w, t.k));
5382
5409
  }
5383
5410
  };
5384
5411
  return /* @__PURE__ */ m.jsx(le, { ...C });
@@ -5388,7 +5415,7 @@ const Cr = /* @__PURE__ */ new Map([
5388
5415
  ...T,
5389
5416
  bindValue: Ge.fromDataObj(t, O).getValue(),
5390
5417
  onChange: (A) => {
5391
- f?.(v(E, A));
5418
+ f?.(y(w, A));
5392
5419
  }
5393
5420
  };
5394
5421
  return /* @__PURE__ */ m.jsx(Es, { ...C });
@@ -5400,7 +5427,7 @@ const Cr = /* @__PURE__ */ new Map([
5400
5427
  bindValue: t.k,
5401
5428
  optionalDisplayValue: r,
5402
5429
  onChange: (A) => {
5403
- f?.(x(E, A));
5430
+ f?.(v(w, A));
5404
5431
  }
5405
5432
  };
5406
5433
  return /* @__PURE__ */ m.jsx(Ts, { ...C });
@@ -5408,9 +5435,9 @@ const Cr = /* @__PURE__ */ new Map([
5408
5435
  case te.MULTI_AUTOCOMPLETE: {
5409
5436
  const C = {
5410
5437
  ...T,
5411
- elements: Er(E),
5438
+ elements: Er(w),
5412
5439
  onChange: (A) => {
5413
- f?.(w(A));
5440
+ f?.(E(A));
5414
5441
  }
5415
5442
  };
5416
5443
  return /* @__PURE__ */ m.jsx(ys, { ...C });
@@ -5420,7 +5447,7 @@ const Cr = /* @__PURE__ */ new Map([
5420
5447
  ...T,
5421
5448
  bindValue: t.k,
5422
5449
  onChange: (A) => {
5423
- f?.(x(E, A));
5450
+ f?.(v(w, A));
5424
5451
  }
5425
5452
  };
5426
5453
  return /* @__PURE__ */ m.jsx(bs, { ...C });
@@ -5430,7 +5457,7 @@ const Cr = /* @__PURE__ */ new Map([
5430
5457
  ...T,
5431
5458
  bindValue: t.k,
5432
5459
  onChange: (A, k) => {
5433
- f?.(x(E, A, k));
5460
+ f?.(v(w, A, k));
5434
5461
  }
5435
5462
  };
5436
5463
  return /* @__PURE__ */ m.jsx(Cs, { ...C });
@@ -5440,7 +5467,7 @@ const Cr = /* @__PURE__ */ new Map([
5440
5467
  ...T,
5441
5468
  bindValue: t.k,
5442
5469
  onEnter: (A) => {
5443
- d?.(x(E, A));
5470
+ d?.(v(w, A));
5444
5471
  }
5445
5472
  };
5446
5473
  return /* @__PURE__ */ m.jsx(vs, { ...C });
@@ -5451,7 +5478,7 @@ const Cr = /* @__PURE__ */ new Map([
5451
5478
  bindValue: t.k,
5452
5479
  optionalDisplayValue: r,
5453
5480
  onChange: (A) => {
5454
- f?.(x(E, A));
5481
+ f?.(v(w, A));
5455
5482
  }
5456
5483
  };
5457
5484
  return /* @__PURE__ */ m.jsx(De, { ...C });
@@ -5461,7 +5488,7 @@ const Cr = /* @__PURE__ */ new Map([
5461
5488
  ...T,
5462
5489
  bindValue: dt.fromDataObj(t).getValue(),
5463
5490
  onChange: (A) => {
5464
- f?.(x(E, A));
5491
+ f?.(v(w, A));
5465
5492
  }
5466
5493
  };
5467
5494
  return /* @__PURE__ */ m.jsx(Ds, { ...C });
@@ -5483,9 +5510,9 @@ const Cr = /* @__PURE__ */ new Map([
5483
5510
  {
5484
5511
  className: L.wrapper,
5485
5512
  onContextMenu: (C) => {
5486
- b && l && (C.preventDefault(), b(E, C.currentTarget));
5513
+ b && l && (C.preventDefault(), b(w, C.currentTarget));
5487
5514
  },
5488
- children: R()
5515
+ children: D()
5489
5516
  }
5490
5517
  );
5491
5518
  }, ea = ({
@@ -5556,21 +5583,21 @@ const Cr = /* @__PURE__ */ new Map([
5556
5583
  onContextMenu: c
5557
5584
  }) => {
5558
5585
  const [f, u] = H(), [d, g] = H(t ?? !0), p = ce(null), b = s.trim() ? s : "100vh", S = ue(
5559
- (x) => {
5560
- if (!x?.rows?.length || !x?.columns?.length)
5586
+ (v) => {
5587
+ if (!v?.rows?.length || !v?.columns?.length)
5561
5588
  return {};
5562
- const v = x.rows[0];
5563
- return x.columns.filter(($) => $.visible ?? !0).reduce(($, w) => {
5564
- const R = v.cells[w.name];
5565
- if (!R || !d && de(n) && R.shape !== te.BUTTON && R.shape !== te.BUTTON_LIST)
5566
- return $;
5589
+ const y = v.rows[0];
5590
+ return v.columns.filter((R) => R.visible ?? !0).reduce((R, E) => {
5591
+ const D = y.cells[E.name];
5592
+ if (!D || !d && de(n) && D.shape !== te.BUTTON && D.shape !== te.BUTTON_LIST)
5593
+ return R;
5567
5594
  const L = {
5568
- ...R,
5569
- id: w.name,
5595
+ ...D,
5596
+ id: E.name,
5570
5597
  onChange: (C) => {
5571
5598
  u((A) => {
5572
5599
  const k = { ...A };
5573
- return k?.[w.name] && (k[w.name].obj.k = C.obj.k), k;
5600
+ return k?.[E.name] && (k[E.name].obj.k = C.obj.k), k;
5574
5601
  });
5575
5602
  },
5576
5603
  onClick: (C) => {
@@ -5583,7 +5610,7 @@ const Cr = /* @__PURE__ */ new Map([
5583
5610
  c && c(C, A);
5584
5611
  }
5585
5612
  };
5586
- return l && R.shape == te.BUTTON_LIST && (L.onOptionsRequest = (C, A) => l(C, A).then(
5613
+ return l && D.shape == te.BUTTON_LIST && (L.onOptionsRequest = (C, A) => l(C, A).then(
5587
5614
  (k) => ks(k)
5588
5615
  )), !d && de(n) && (L.data = {
5589
5616
  ...L.data,
@@ -5591,16 +5618,16 @@ const Cr = /* @__PURE__ */ new Map([
5591
5618
  justify: "center",
5592
5619
  squared: !0
5593
5620
  }), {
5594
- ...$,
5595
- [w.name]: L
5621
+ ...R,
5622
+ [E.name]: L
5596
5623
  };
5597
5624
  }, {});
5598
5625
  },
5599
5626
  [d, n, a, i, l, c]
5600
5627
  ), O = ue(() => {
5601
5628
  o?.();
5602
- }, [o]), E = () => {
5603
- de(n) ? g((x) => !x) : (g(!1), o?.());
5629
+ }, [o]), w = () => {
5630
+ de(n) ? g((v) => !v) : (g(!1), o?.());
5604
5631
  };
5605
5632
  if (re(() => {
5606
5633
  u(S(r));
@@ -5611,13 +5638,13 @@ const Cr = /* @__PURE__ */ new Map([
5611
5638
  u(S(r));
5612
5639
  return;
5613
5640
  }
5614
- const x = getComputedStyle(p.current).getPropertyValue(
5641
+ const v = getComputedStyle(p.current).getPropertyValue(
5615
5642
  "--smp-drawer-slide-transition"
5616
5643
  );
5617
- let v = Number(x);
5618
- x.endsWith("ms") ? v = parseFloat(x) : x.endsWith("s") && (v = parseFloat(x) * 1e3), setTimeout(() => {
5644
+ let y = Number(v);
5645
+ v.endsWith("ms") ? y = parseFloat(v) : v.endsWith("s") && (y = parseFloat(v) * 1e3), setTimeout(() => {
5619
5646
  u(S(r));
5620
- }, v / 2);
5647
+ }, y / 2);
5621
5648
  }, [d, n]), re(() => {
5622
5649
  t !== void 0 && !de(n) && g(t);
5623
5650
  }, [n, t]), !r?.rows?.length || !r.columns?.length)
@@ -5667,13 +5694,13 @@ const Cr = /* @__PURE__ */ new Map([
5667
5694
  title: "drawer_icon",
5668
5695
  rotated: !d,
5669
5696
  isInteractable: !0,
5670
- onClick: E,
5697
+ onClick: w,
5671
5698
  width: 20,
5672
5699
  height: 20
5673
5700
  }
5674
5701
  ) })
5675
5702
  ] }),
5676
- /* @__PURE__ */ m.jsx("div", { className: T.containerLayout, children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(f).map((x) => /* @__PURE__ */ m.jsx(Ee, { ...x })) }) })
5703
+ /* @__PURE__ */ m.jsx("div", { className: T.containerLayout, children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(f).map((v) => /* @__PURE__ */ m.jsx(Ee, { ...v })) }) })
5677
5704
  ] })
5678
5705
  }
5679
5706
  )
@@ -5697,12 +5724,12 @@ const Cr = /* @__PURE__ */ new Map([
5697
5724
  ForceValue: b,
5698
5725
  ValueColName: S,
5699
5726
  ValueColor: O = "var(--smp-dashList-color-base)",
5700
- SelectLayout: E = "1",
5727
+ SelectLayout: w = "1",
5701
5728
  onClick: T
5702
5729
  }) => {
5703
- const x = "N/A", v = e?.columns || [], $ = e?.rows || [], w = $.length > 0, R = "--smp-dashList-color", L = "smp-layout", C = "descr", A = "icon", k = "um", N = "value", I = i || "1em", B = "18px", G = "--smp-dashList-columns", q = "--smp-dashList-fontSize", Z = {
5704
- dash: (W = "1") => {
5705
- const X = h(W), ne = X, ae = y(X, C), $e = y(X, A), Me = y(X, k), ge = y(X, N);
5730
+ const v = "N/A", y = e?.columns || [], R = e?.rows || [], E = R.length > 0, D = "--smp-dashList-color", L = "smp-layout", C = "descr", A = "icon", k = "um", N = "value", I = i || "1em", B = "18px", G = "--smp-dashList-columns", q = "--smp-dashList-fontSize", Z = {
5731
+ dash: (U = "1") => {
5732
+ const X = h(U), ne = X, ae = x(X, C), $e = x(X, A), Me = x(X, k), ge = x(X, N);
5706
5733
  return {
5707
5734
  container: ne,
5708
5735
  descr: ae,
@@ -5713,29 +5740,29 @@ const Cr = /* @__PURE__ */ new Map([
5713
5740
  },
5714
5741
  dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
5715
5742
  ${de(o) ? "smp-dash-list-horizontal" : ""}`
5716
- }, { format: F } = je(), h = (W) => `${L}-${W}`, y = (W, X) => `${W}__${X}`, _ = (W) => `${R}-${W}`, j = (W) => {
5743
+ }, { format: F } = je(), h = (U) => `${L}-${U}`, x = (U, X) => `${U}__${X}`, _ = (U) => `${D}-${U}`, $ = (U) => {
5717
5744
  const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
5718
- if (X.test(W)) {
5719
- const ae = W.match(X) || [];
5745
+ if (X.test(U)) {
5746
+ const ae = U.match(X) || [];
5720
5747
  if (ae?.length > 3)
5721
5748
  return "rgb(" + ae[1] + "," + ae[2] + "," + ae[3] + ")";
5722
5749
  }
5723
- return W;
5724
- }, D = (W) => {
5725
- if (!u) return W;
5750
+ return U;
5751
+ }, j = (U) => {
5752
+ if (!u) return U;
5726
5753
  const [X, ne] = P(u).map(
5727
5754
  (ke) => parseInt(ke || "0")
5728
- ), ae = "0,0" + (ne ? "." + "0".repeat(ne) : ""), $e = F(W, ae, "it");
5755
+ ), ae = "0,0" + (ne ? "." + "0".repeat(ne) : ""), $e = F(U, ae, "it");
5729
5756
  if (!X) return $e;
5730
5757
  const [Me, ge] = $e.split(",");
5731
5758
  return Me + (ge ? `,${ge}` : "");
5732
- }, P = (W) => W.includes(";") ? W.split(";") : [W], Y = (W) => {
5759
+ }, P = (U) => U.includes(";") ? U.split(";") : [U], W = (U) => {
5733
5760
  const X = (ae) => {
5734
5761
  if (ae)
5735
- return W?.cells[ae]?.obj.k;
5762
+ return U?.cells[ae]?.obj.k;
5736
5763
  }, ne = (ae) => {
5737
- if (!(v.length <= ae))
5738
- return W?.cells[v[ae].name]?.obj?.k;
5764
+ if (!(y.length <= ae))
5765
+ return U?.cells[y[ae].name]?.obj?.k;
5739
5766
  };
5740
5767
  return {
5741
5768
  descr: t || X(n) || ne(2) || "",
@@ -5743,15 +5770,15 @@ const Cr = /* @__PURE__ */ new Map([
5743
5770
  um: d || X(g) || ne(1) || "",
5744
5771
  value: b || X(S) || ne(0) || ""
5745
5772
  };
5746
- }, U = (W) => {
5747
- T?.(W);
5748
- }, V = (W, X) => {
5749
- (W.key === "Enter" || W.key === " ") && (W.preventDefault(), W.stopPropagation(), U(X));
5750
- }, K = ((W) => {
5751
- const X = Z.dash(W);
5773
+ }, Y = (U) => {
5774
+ T?.(U);
5775
+ }, V = (U, X) => {
5776
+ (U.key === "Enter" || U.key === " ") && (U.preventDefault(), U.stopPropagation(), Y(X));
5777
+ }, K = ((U) => {
5778
+ const X = Z.dash(U);
5752
5779
  return {
5753
5780
  className: X,
5754
- descr: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.descr, children: ne }, `${W}-${C}`),
5781
+ descr: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.descr, children: ne }, `${U}-${C}`),
5755
5782
  icon: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.icon, children: /* @__PURE__ */ m.jsx(
5756
5783
  le,
5757
5784
  {
@@ -5760,17 +5787,17 @@ const Cr = /* @__PURE__ */ new Map([
5760
5787
  icon: ne,
5761
5788
  width: B
5762
5789
  }
5763
- ) }, `${W}-${A}`),
5764
- um: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.um, children: ne }, `${W}-${k}`),
5765
- value: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.value, children: ne }, `${W}-${N}`)
5790
+ ) }, `${U}-${A}`),
5791
+ um: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.um, children: ne }, `${U}-${k}`),
5792
+ value: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.value, children: ne }, `${U}-${N}`)
5766
5793
  };
5767
- })(E), se = (W) => {
5768
- const { descr: X, icon: ne, um: ae, value: $e } = Y(W), Me = {
5769
- [_(C)]: j(s),
5770
- [_(k)]: j(p),
5771
- [_(N)]: j(O)
5772
- }, ge = [], ke = D($e);
5773
- switch (E) {
5794
+ })(w), se = (U) => {
5795
+ const { descr: X, icon: ne, um: ae, value: $e } = W(U), Me = {
5796
+ [_(C)]: $(s),
5797
+ [_(k)]: $(p),
5798
+ [_(N)]: $(O)
5799
+ }, ge = [], ke = j($e);
5800
+ switch (w) {
5774
5801
  case "2":
5775
5802
  ne && ge.push(K.icon(ne)), ge.push(K.descr(X)), ge.push(
5776
5803
  K.value(ae ? ke + " " + ae : ke)
@@ -5789,17 +5816,17 @@ const Cr = /* @__PURE__ */ new Map([
5789
5816
  role: "button",
5790
5817
  style: Me,
5791
5818
  tabIndex: 0,
5792
- onClick: () => U(W),
5793
- onKeyDown: (Mr) => V(Mr, W),
5819
+ onClick: () => Y(U),
5820
+ onKeyDown: (Mr) => V(Mr, U),
5794
5821
  children: ge
5795
5822
  },
5796
- W.rowId
5823
+ U.rowId
5797
5824
  );
5798
5825
  }, M = {
5799
5826
  [G]: String(r),
5800
5827
  [q]: I
5801
5828
  };
5802
- return /* @__PURE__ */ m.jsx("div", { className: Z.dashList, style: M, children: w ? $.map((W) => se(W)) : x });
5829
+ return /* @__PURE__ */ m.jsx("div", { className: Z.dashList, style: M, children: E ? R.map((U) => se(U)) : v });
5803
5830
  }, rt = {
5804
5831
  "smp-table": "_smp-table_1qmju_1",
5805
5832
  "smp-headerCell": "_smp-headerCell_1qmju_35",
@@ -5840,7 +5867,7 @@ const Nr = ({
5840
5867
  toggle: `${Se.toggle}`,
5841
5868
  indent: `${Se.indent}`,
5842
5869
  cell: `${Se.cell}`
5843
- }, g = (E) => /* @__PURE__ */ m.jsx(Ee, { ...E }), p = () => /* @__PURE__ */ m.jsx("span", { className: d.toggle, children: c && /* @__PURE__ */ m.jsx(
5870
+ }, g = (w) => /* @__PURE__ */ m.jsx(Ee, { ...w }), p = () => /* @__PURE__ */ m.jsx("span", { className: d.toggle, children: c && /* @__PURE__ */ m.jsx(
5844
5871
  le,
5845
5872
  {
5846
5873
  icon: a ? "arrow_drop_right" : "arrow_drop_down",
@@ -5854,7 +5881,7 @@ const Nr = ({
5854
5881
  "aria-hidden": "true"
5855
5882
  }
5856
5883
  ), S = () => {
5857
- const E = Fs(r) ? "" : r.decode || (l ? "" : "Untitled"), T = s ?? n * t;
5884
+ const w = Fs(r) ? "" : r.decode || (l ? "" : "Untitled"), T = s ?? n * t;
5858
5885
  return /* @__PURE__ */ m.jsxs(
5859
5886
  "tr",
5860
5887
  {
@@ -5878,35 +5905,35 @@ const Nr = ({
5878
5905
  children: [
5879
5906
  b(),
5880
5907
  p(),
5881
- /* @__PURE__ */ m.jsx("span", { className: Se.rowLabel, children: E })
5908
+ /* @__PURE__ */ m.jsx("span", { className: Se.rowLabel, children: w })
5882
5909
  ]
5883
5910
  }
5884
5911
  ),
5885
- r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([x, v]) => /* @__PURE__ */ m.jsx(
5912
+ r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([v, y]) => /* @__PURE__ */ m.jsx(
5886
5913
  "td",
5887
5914
  {
5888
5915
  className: d.cell,
5889
5916
  style: {
5890
- width: e[x],
5891
- minWidth: e[x],
5917
+ width: e[v],
5918
+ minWidth: e[v],
5892
5919
  height: `${n}px`
5893
5920
  },
5894
5921
  children: g({
5895
- ...v,
5896
- id: x
5922
+ ...y,
5923
+ id: v
5897
5924
  })
5898
5925
  },
5899
- Vs(v) || x
5926
+ Vs(y) || v
5900
5927
  ))
5901
5928
  ]
5902
5929
  }
5903
5930
  );
5904
- }, O = () => a || !o ? null : /* @__PURE__ */ m.jsx(m.Fragment, { children: nt(r) && r.children?.map((E, T) => /* @__PURE__ */ m.jsx(Nr, { row: E, level: t + 1 }, `child-${T}`)) });
5931
+ }, O = () => a || !o ? null : /* @__PURE__ */ m.jsx(m.Fragment, { children: nt(r) && r.children?.map((w, T) => /* @__PURE__ */ m.jsx(Nr, { row: w, level: t + 1 }, `child-${T}`)) });
5905
5932
  return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
5906
5933
  S(),
5907
5934
  O()
5908
5935
  ] });
5909
- }, Ys = ({
5936
+ }, Ws = ({
5910
5937
  label: r,
5911
5938
  rowHeight: e = 28,
5912
5939
  offsetTop: t = 0,
@@ -5950,11 +5977,11 @@ const Nr = ({
5950
5977
  }
5951
5978
  );
5952
5979
  };
5953
- function Us(r, e) {
5980
+ function Ys(r, e) {
5954
5981
  const t = new Set(r);
5955
5982
  return t.has(e) ? t.delete(e) : t.add(e), t;
5956
5983
  }
5957
- function Ws(r, e) {
5984
+ function Us(r, e) {
5958
5985
  return r.map((t) => {
5959
5986
  const n = e.find((s) => s.column === t.bindValue);
5960
5987
  return {
@@ -5974,8 +6001,8 @@ function Bs(r, e, t, n) {
5974
6001
  }
5975
6002
  const p = e[d].column, b = o(u, p);
5976
6003
  for (const [S, O] of b) {
5977
- const E = [...g, S], T = l(E, d), x = n.has(T);
5978
- s.push(c(S, T, d, x)), a += t, x && i(O, d + 1, E);
6004
+ const w = [...g, S], T = l(w, d), v = n.has(T);
6005
+ s.push(c(S, T, d, v)), a += t, v && i(O, d + 1, w);
5979
6006
  }
5980
6007
  }
5981
6008
  function o(u, d) {
@@ -6103,44 +6130,44 @@ const Hs = ({
6103
6130
  });
6104
6131
  re(() => {
6105
6132
  if (l?.length && r.rows) {
6106
- const { flatRows: w } = Bs(
6133
+ const { flatRows: E } = Bs(
6107
6134
  r.rows,
6108
6135
  l,
6109
6136
  e,
6110
6137
  f
6111
6138
  );
6112
- o({ ...r, rows: w });
6139
+ o({ ...r, rows: E });
6113
6140
  } else
6114
6141
  o(r);
6115
6142
  }, [r, l, f, e]);
6116
- const b = (w) => {
6117
- c(Ws(w, l));
6118
- }, S = (w) => {
6119
- w.preventDefault();
6120
- const R = w.dataTransfer.getData("text/plain");
6121
- if (!R || l.some((A) => A.column === R))
6143
+ const b = (E) => {
6144
+ c(Us(E, l));
6145
+ }, S = (E) => {
6146
+ E.preventDefault();
6147
+ const D = E.dataTransfer.getData("text/plain");
6148
+ if (!D || l.some((A) => A.column === D))
6122
6149
  return;
6123
- const C = [...l, { column: R, visible: !0 }];
6150
+ const C = [...l, { column: D, visible: !0 }];
6124
6151
  c(C);
6125
- }, O = (w) => {
6126
- w.preventDefault();
6127
- }, { virtualItems: E, containerProps: T, innerProps: x } = kr({
6152
+ }, O = (E) => {
6153
+ E.preventDefault();
6154
+ }, { virtualItems: w, containerProps: T, innerProps: v } = kr({
6128
6155
  items: i?.rows ?? [],
6129
6156
  itemHeight: e,
6130
6157
  containerHeight: t,
6131
6158
  overscan: 5
6132
- }), v = (w, R) => {
6133
- const L = w.clientX, C = g[R], A = (N) => {
6159
+ }), y = (E, D) => {
6160
+ const L = E.clientX, C = g[D], A = (N) => {
6134
6161
  const I = N.clientX - L, B = Math.max(50, C + I);
6135
6162
  p((G) => ({
6136
6163
  ...G,
6137
- [R]: B
6164
+ [D]: B
6138
6165
  }));
6139
6166
  }, k = () => {
6140
6167
  window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", k);
6141
6168
  };
6142
6169
  window.addEventListener("mousemove", A), window.addEventListener("mouseup", k);
6143
- }, $ = {
6170
+ }, R = {
6144
6171
  smpTable: `${rt["smp-table"]}`,
6145
6172
  headerCell: `${rt["smp-headerCell"]}`,
6146
6173
  resizer: `${rt["smp-resizer"]}`
@@ -6148,7 +6175,7 @@ const Hs = ({
6148
6175
  return i && /* @__PURE__ */ m.jsx(
6149
6176
  "div",
6150
6177
  {
6151
- className: $.smpTable,
6178
+ className: R.smpTable,
6152
6179
  ...T,
6153
6180
  ref: d,
6154
6181
  children: /* @__PURE__ */ m.jsxs("table", { children: [
@@ -6163,61 +6190,61 @@ const Hs = ({
6163
6190
  }
6164
6191
  ),
6165
6192
  /* @__PURE__ */ m.jsx("tr", { children: i.columns && i.columns?.map(
6166
- (w) => w.visible && /* @__PURE__ */ m.jsxs(
6193
+ (E) => E.visible && /* @__PURE__ */ m.jsxs(
6167
6194
  "th",
6168
6195
  {
6169
- className: $.headerCell,
6196
+ className: R.headerCell,
6170
6197
  draggable: !0,
6171
- onDragStart: (R) => {
6172
- R.dataTransfer.setData("text/plain", w.name);
6198
+ onDragStart: (D) => {
6199
+ D.dataTransfer.setData("text/plain", E.name);
6173
6200
  },
6174
6201
  style: {
6175
- width: g[w.name],
6176
- minWidth: g[w.name],
6177
- maxWidth: g[w.name]
6202
+ width: g[E.name],
6203
+ minWidth: g[E.name],
6204
+ maxWidth: g[E.name]
6178
6205
  },
6179
6206
  children: [
6180
6207
  /* @__PURE__ */ m.jsx(
6181
6208
  Oe,
6182
6209
  {
6183
6210
  variant: "title",
6184
- bindValue: w.title
6211
+ bindValue: E.title
6185
6212
  }
6186
6213
  ),
6187
6214
  /* @__PURE__ */ m.jsx(
6188
6215
  "div",
6189
6216
  {
6190
- className: $.resizer,
6191
- onMouseDown: (R) => v(R, w.name),
6217
+ className: R.resizer,
6218
+ onMouseDown: (D) => y(D, E.name),
6192
6219
  role: "region"
6193
6220
  }
6194
6221
  )
6195
6222
  ]
6196
6223
  },
6197
- w.name
6224
+ E.name
6198
6225
  )
6199
6226
  ) })
6200
6227
  ] }),
6201
- /* @__PURE__ */ m.jsx("tbody", { ...x, children: E.map(({ item: w, index: R, offsetTop: L }) => {
6202
- const C = w.rowId || w.value || `${w.isGroup ? "group" : "row"}-${R}`;
6203
- return w.isGroup ? /* @__PURE__ */ m.jsx(
6204
- Ys,
6228
+ /* @__PURE__ */ m.jsx("tbody", { ...v, children: w.map(({ item: E, index: D, offsetTop: L }) => {
6229
+ const C = E.rowId || E.value || `${E.isGroup ? "group" : "row"}-${D}`;
6230
+ return E.isGroup ? /* @__PURE__ */ m.jsx(
6231
+ Ws,
6205
6232
  {
6206
- label: w.value || "",
6233
+ label: E.value || "",
6207
6234
  rowHeight: e,
6208
6235
  offsetTop: L,
6209
- level: w.level,
6236
+ level: E.level,
6210
6237
  onClick: () => {
6211
- const A = w.rowId;
6212
- A && u((k) => Us(k, A));
6238
+ const A = E.rowId;
6239
+ A && u((k) => Ys(k, A));
6213
6240
  },
6214
- isExpanded: w.isExpanded
6241
+ isExpanded: E.isExpanded
6215
6242
  },
6216
6243
  `group-${C}`
6217
6244
  ) : /* @__PURE__ */ m.jsx(
6218
6245
  Nr,
6219
6246
  {
6220
- row: w,
6247
+ row: E,
6221
6248
  columnWidths: g,
6222
6249
  rowHeight: e,
6223
6250
  offsetTop: L,
@@ -6319,41 +6346,41 @@ const Hs = ({
6319
6346
  }) => {
6320
6347
  const [d, g] = H({}), { translate: p } = je(), b = Te();
6321
6348
  re(() => {
6322
- g(x(r));
6349
+ g(v(r));
6323
6350
  }, [r]);
6324
- const S = (w, R) => {
6351
+ const S = (E, D) => {
6325
6352
  if (g((L) => ({
6326
6353
  ...L,
6327
- [w]: {
6328
- ...L[w],
6354
+ [E]: {
6355
+ ...L[E],
6329
6356
  obj: {
6330
- ...L[w].obj,
6331
- k: R.obj.k
6357
+ ...L[E].obj,
6358
+ k: D.obj.k
6332
6359
  },
6333
- decode: R.decode,
6360
+ decode: D.decode,
6334
6361
  data: {
6335
- ...L[w].data,
6362
+ ...L[E].data,
6336
6363
  error: void 0
6337
6364
  },
6338
6365
  // FIXME: remove this when webup.js will not use value
6339
- value: R.obj.k
6366
+ value: D.obj.k
6340
6367
  }
6341
- })), s && (R.shape == te.CHECKBOX || R.shape == te.SWITCH)) {
6368
+ })), s && (D.shape == te.CHECKBOX || D.shape == te.SWITCH)) {
6342
6369
  const L = structuredClone(d);
6343
- L[w].obj.k = R.obj.k, L[w].value = R.obj.k, o({
6344
- value: v(L),
6345
- cell: w
6370
+ L[E].obj.k = D.obj.k, L[E].value = D.obj.k, o({
6371
+ value: y(L),
6372
+ cell: E
6346
6373
  });
6347
6374
  }
6348
- }, O = (w) => {
6349
- const R = v(d);
6375
+ }, O = (E) => {
6376
+ const D = y(d);
6350
6377
  o({
6351
- value: R,
6352
- cell: w
6378
+ value: D,
6379
+ cell: E
6353
6380
  });
6354
- }, E = (w, R) => {
6381
+ }, w = (E, D) => {
6355
6382
  u?.({
6356
- cellId: w,
6383
+ cellId: E,
6357
6384
  currentState: {
6358
6385
  type: "SmeupDataTable",
6359
6386
  columns: r.columns,
@@ -6363,41 +6390,41 @@ const Hs = ({
6363
6390
  }
6364
6391
  ]
6365
6392
  },
6366
- fun: R || ""
6393
+ fun: D || ""
6367
6394
  });
6368
- }, T = async (w) => {
6369
- if (d[w].obj.k != r.rows[0].cells[w].obj.k && (d[w].inputSettings?.checkObject && c && ((await c({
6370
- obj: d[w].obj,
6371
- fun: d[w].fun,
6372
- cellId: w
6395
+ }, T = async (E) => {
6396
+ if (d[E].obj.k != r.rows[0].cells[E].obj.k && (d[E].inputSettings?.checkObject && c && ((await c({
6397
+ obj: d[E].obj,
6398
+ fun: d[E].fun,
6399
+ cellId: E
6373
6400
  })).valid || g((L) => ({
6374
6401
  ...L,
6375
- [w]: {
6376
- ...L[w],
6402
+ [E]: {
6403
+ ...L[E],
6377
6404
  data: {
6378
- ...L[w].data,
6405
+ ...L[E].data,
6379
6406
  error: p(we.CHECK_OBJECT_WRONG_VALIDATION)
6380
6407
  }
6381
6408
  }
6382
- }))), d[w].inputSettings?.checkValueOnExit)) {
6383
- const R = v(d);
6409
+ }))), d[E].inputSettings?.checkValueOnExit)) {
6410
+ const D = y(d);
6384
6411
  l?.({
6385
- value: R,
6386
- cell: w
6412
+ value: D,
6413
+ cell: E
6387
6414
  });
6388
6415
  }
6389
- }, x = (w) => {
6390
- if (!w.rows?.length || !w.columns?.length)
6416
+ }, v = (E) => {
6417
+ if (!E.rows?.length || !E.columns?.length)
6391
6418
  return {};
6392
- const R = w.rows?.[0];
6393
- return w.columns.filter((L) => L.visible ?? !0).reduce((L, C) => {
6419
+ const D = E.rows?.[0];
6420
+ return E.columns.filter((L) => L.visible ?? !0).reduce((L, C) => {
6394
6421
  const A = {
6395
- ...R.cells[C.name],
6422
+ ...D.cells[C.name],
6396
6423
  id: C.name,
6397
6424
  label: C.title,
6398
6425
  dSep: a,
6399
6426
  data: {
6400
- ...R.cells[C.name].data,
6427
+ ...D.cells[C.name].data,
6401
6428
  dSep: a
6402
6429
  }
6403
6430
  };
@@ -6406,32 +6433,32 @@ const Hs = ({
6406
6433
  [C.name]: A
6407
6434
  };
6408
6435
  }, {});
6409
- }, v = (w) => ({
6436
+ }, y = (E) => ({
6410
6437
  before: r,
6411
6438
  after: {
6412
6439
  type: "SmeupDataTable",
6413
6440
  columns: JSON.parse(JSON.stringify(r.columns)),
6414
6441
  rows: [
6415
6442
  {
6416
- cells: JSON.parse(JSON.stringify(w))
6443
+ cells: JSON.parse(JSON.stringify(E))
6417
6444
  }
6418
6445
  ]
6419
6446
  }
6420
- }), $ = r.setup?.commands?.map((w, R) => /* @__PURE__ */ Yr(
6447
+ }), R = r.setup?.commands?.map((E, D) => /* @__PURE__ */ Wr(
6421
6448
  Ee,
6422
6449
  {
6423
- ...w,
6424
- decode: w.value,
6450
+ ...E,
6451
+ decode: E.value,
6425
6452
  data: {
6426
- label: w.value
6453
+ label: E.value
6427
6454
  },
6428
- id: `command-${R}`,
6429
- key: `command-${R}`,
6455
+ id: `command-${D}`,
6456
+ key: `command-${D}`,
6430
6457
  shape: te.BUTTON,
6431
- onClick: () => O(w.obj.k)
6458
+ onClick: () => O(E.obj.k)
6432
6459
  }
6433
6460
  )) || [];
6434
- return n || $.unshift(
6461
+ return n || R.unshift(
6435
6462
  /* @__PURE__ */ m.jsx(
6436
6463
  Ee,
6437
6464
  {
@@ -6455,8 +6482,8 @@ const Hs = ({
6455
6482
  {
6456
6483
  "data-component": "input-panel",
6457
6484
  id: e || b,
6458
- onSubmit: (w) => {
6459
- w.preventDefault(), O();
6485
+ onSubmit: (E) => {
6486
+ E.preventDefault(), O();
6460
6487
  },
6461
6488
  children: [
6462
6489
  /* @__PURE__ */ m.jsx(
@@ -6465,28 +6492,28 @@ const Hs = ({
6465
6492
  style: {
6466
6493
  padding: "1em 0"
6467
6494
  },
6468
- children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(d).map((w) => /* @__PURE__ */ m.jsx(
6495
+ children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(d).map((E) => /* @__PURE__ */ m.jsx(
6469
6496
  Ee,
6470
6497
  {
6471
- ...w,
6472
- onOptionsRequest: w.fun ? async (R, L) => Js(
6473
- await i(R, L, r, w.id)
6498
+ ...E,
6499
+ onOptionsRequest: E.fun ? async (D, L) => Js(
6500
+ await i(D, L, r, E.id)
6474
6501
  ) : void 0,
6475
- onChange: (R) => S(w.id, R),
6476
- onBlur: () => T(w.id),
6502
+ onChange: (D) => S(E.id, D),
6503
+ onBlur: () => T(E.id),
6477
6504
  onContextMenu: f,
6478
6505
  onClick: () => {
6479
- w.shape == "BTN" && E(w.id, w.fun);
6506
+ E.shape == "BTN" && w(E.id, E.fun);
6480
6507
  },
6481
6508
  data: {
6482
- ...w.data,
6509
+ ...E.data,
6483
6510
  autocomplete: "off"
6484
6511
  }
6485
6512
  }
6486
6513
  )) })
6487
6514
  }
6488
6515
  ),
6489
- $.length > 0 && /* @__PURE__ */ m.jsx(
6516
+ R.length > 0 && /* @__PURE__ */ m.jsx(
6490
6517
  ot,
6491
6518
  {
6492
6519
  layout: {
@@ -6495,13 +6522,13 @@ const Hs = ({
6495
6522
  id: "1",
6496
6523
  horizontal: !0,
6497
6524
  justify: "start",
6498
- content: $.map((w) => ({
6499
- id: w.props.id
6525
+ content: R.map((E) => ({
6526
+ id: E.props.id
6500
6527
  }))
6501
6528
  }
6502
6529
  ]
6503
6530
  },
6504
- children: $
6531
+ children: R
6505
6532
  }
6506
6533
  )
6507
6534
  ]