@spscommerce/ds-react 7.12.2 → 7.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.es.js CHANGED
@@ -1106,12 +1106,12 @@ function zb(e, t = {}) {
1106
1106
  if (typeof b != "symbol") {
1107
1107
  let M = m.formMeta, L = h;
1108
1108
  if (M) {
1109
- for (const R of I)
1110
- M = M.fields[R], L = L[R], x.has(M) || M.validate(L, tn.ON_CHANGE);
1109
+ for (const P of I)
1110
+ M = M.fields[P], L = L[P], x.has(M) || M.validate(L, tn.ON_CHANGE);
1111
1111
  if (k === Nn.ADDITION || k === Nn.ALTERATION) {
1112
- const R = M.fields[b];
1113
- if (!x.has(R) && (M.fields[b].validate(O[b], tn.ON_CHANGE), k === Nn.ADDITION && R.fields))
1114
- for (const [K, _] of Object.entries(R.fields))
1112
+ const P = M.fields[b];
1113
+ if (!x.has(P) && (M.fields[b].validate(O[b], tn.ON_CHANGE), k === Nn.ADDITION && P.fields))
1114
+ for (const [K, _] of Object.entries(P.fields))
1115
1115
  _.validate(O[b][K], tn.ON_CHANGE);
1116
1116
  }
1117
1117
  }
@@ -1239,10 +1239,10 @@ function Jl(e, t) {
1239
1239
  }
1240
1240
  f != null && f === document.body && Ka(f) && !Ka(document.documentElement) || f != null && Ka(f, c) && m.push(f);
1241
1241
  }
1242
- for (var h = n.visualViewport ? n.visualViewport.width : innerWidth, S = n.visualViewport ? n.visualViewport.height : innerHeight, y = window.scrollX || pageXOffset, w = window.scrollY || pageYOffset, T = e.getBoundingClientRect(), D = T.height, x = T.width, k = T.top, b = T.right, I = T.bottom, O = T.left, M = a === "start" || a === "nearest" ? k : a === "end" ? I : k + D / 2, L = o === "center" ? O + x / 2 : o === "end" ? b : O, R = [], K = 0; K < m.length; K++) {
1242
+ for (var h = n.visualViewport ? n.visualViewport.width : innerWidth, S = n.visualViewport ? n.visualViewport.height : innerHeight, y = window.scrollX || pageXOffset, w = window.scrollY || pageYOffset, T = e.getBoundingClientRect(), D = T.height, x = T.width, k = T.top, b = T.right, I = T.bottom, O = T.left, M = a === "start" || a === "nearest" ? k : a === "end" ? I : k + D / 2, L = o === "center" ? O + x / 2 : o === "end" ? b : O, P = [], K = 0; K < m.length; K++) {
1243
1243
  var _ = m[K], $ = _.getBoundingClientRect(), N = $.height, A = $.width, Q = $.top, q = $.right, W = $.bottom, J = $.left;
1244
1244
  if (r === "if-needed" && k >= 0 && O >= 0 && I <= S && b <= h && k >= Q && I <= W && O >= J && b <= q)
1245
- return R;
1245
+ return P;
1246
1246
  var H = getComputedStyle(_), F = parseInt(H.borderLeftWidth, 10), z = parseInt(H.borderTopWidth, 10), j = parseInt(H.borderRightWidth, 10), te = parseInt(H.borderBottomWidth, 10), X = 0, G = 0, oe = "offsetWidth" in _ ? _.offsetWidth - _.clientWidth - F - j : 0, ne = "offsetHeight" in _ ? _.offsetHeight - _.clientHeight - z - te : 0;
1247
1247
  if (u === _)
1248
1248
  X = a === "start" ? M : a === "end" ? M - S : a === "nearest" ? Ms(w, w + S, S, z, te, w + M, w + M + D, D) : M - S / 2, G = o === "start" ? L : o === "center" ? L - h / 2 : o === "end" ? L - h : Ms(y, y + h, h, F, j, y + L, y + L + x, x), X = Math.max(0, X + w), G = Math.max(0, G + y);
@@ -1251,9 +1251,9 @@ function Jl(e, t) {
1251
1251
  var le = _.scrollLeft, ee = _.scrollTop;
1252
1252
  M += ee - (X = Math.max(0, Math.min(ee + X, _.scrollHeight - N + ne))), L += le - (G = Math.max(0, Math.min(le + G, _.scrollWidth - A + oe)));
1253
1253
  }
1254
- R.push({ el: _, top: X, left: G });
1254
+ P.push({ el: _, top: X, left: G });
1255
1255
  }
1256
- return R;
1256
+ return P;
1257
1257
  }
1258
1258
  function ep(e) {
1259
1259
  return e === Object(e) && Object.keys(e).length !== 0;
@@ -1735,7 +1735,7 @@ const ts = s.forwardRef((e, t) => {
1735
1735
  keepOpen: O,
1736
1736
  keyDown: M,
1737
1737
  nullOption: L,
1738
- onOptionListChanged: R,
1738
+ onOptionListChanged: P,
1739
1739
  onOptionSelected: K,
1740
1740
  onPositionFlip: _,
1741
1741
  onSelfToggle: $,
@@ -2141,11 +2141,11 @@ function Uo({
2141
2141
  const b = a || r, { wrapperId: I, controlId: O } = wt(c, b), [M, L] = sn({
2142
2142
  keyDown: null,
2143
2143
  opensUpward: !1
2144
- }), R = s.useRef(null), K = s.useRef(null), _ = s.useRef(null), {
2144
+ }), P = s.useRef(null), K = s.useRef(null), _ = s.useRef(null), {
2145
2145
  showPopup: $,
2146
2146
  doShowPopup: N,
2147
2147
  doHidePopup: A
2148
- } = ca(R, _);
2148
+ } = ca(P, _);
2149
2149
  function Q(j, te) {
2150
2150
  b && (b.setValue(j), b.markAsDirty()), o && o(te || new Bn({ value: j }));
2151
2151
  }
@@ -2184,7 +2184,7 @@ function Uo({
2184
2184
  formControl: r,
2185
2185
  formMeta: a,
2186
2186
  inputRef: K,
2187
- ref: R,
2187
+ ref: P,
2188
2188
  focusInputOnClick: !0,
2189
2189
  onClick: (j) => j.nativeEvent.stopImmediatePropagation(),
2190
2190
  "data-testId": `${x}`
@@ -2215,7 +2215,7 @@ function Uo({
2215
2215
  }))), /* @__PURE__ */ s.createElement(ts, {
2216
2216
  id: `${I}_options`,
2217
2217
  ref: _,
2218
- attachTo: R,
2218
+ attachTo: P,
2219
2219
  isOpen: $,
2220
2220
  options: u,
2221
2221
  hideInlineSearch: !0,
@@ -2414,7 +2414,7 @@ function br(e) {
2414
2414
  maxHeightOptionListRem: k,
2415
2415
  disableOptionsMemoization: b,
2416
2416
  ...I
2417
- } = e, { t: O } = s.useContext(Be), M = Sr(l), [L, R] = s.useState(!1), [K, _] = s.useState(!1), [$, N] = s.useState(), A = u.map((ee) => typeof ee == "function" ? ee : Object.assign(ee[1], {
2417
+ } = e, { t: O } = s.useContext(Be), M = Sr(l), [L, P] = s.useState(!1), [K, _] = s.useState(!1), [$, N] = s.useState(), A = u.map((ee) => typeof ee == "function" ? ee : Object.assign(ee[1], {
2418
2418
  ...Kd,
2419
2419
  ...ee[0]
2420
2420
  })), Q = `${M.current}-button`, q = `${M.current}-menu`;
@@ -2425,16 +2425,16 @@ function br(e) {
2425
2425
  L && w ? w() : !L && T && T();
2426
2426
  }, [L]);
2427
2427
  function F() {
2428
- R(!1);
2428
+ P(!1);
2429
2429
  }
2430
2430
  function z(ee) {
2431
- ee.stopPropagation(), ee.nativeEvent.stopImmediatePropagation(), ee.preventDefault(), !a && !f && R(!L);
2431
+ ee.stopPropagation(), ee.nativeEvent.stopImmediatePropagation(), ee.preventDefault(), !a && !f && P(!L);
2432
2432
  }
2433
2433
  function j(ee) {
2434
- R(ee);
2434
+ P(ee);
2435
2435
  }
2436
2436
  function te() {
2437
- R(!1);
2437
+ P(!1);
2438
2438
  }
2439
2439
  function X(ee) {
2440
2440
  a || ([
@@ -2445,7 +2445,7 @@ function br(e) {
2445
2445
  ].indexOf(ee.key) > -1 && ee.preventDefault(), ee.persist(), N(ee));
2446
2446
  }
2447
2447
  function G(ee) {
2448
- ee.detail !== M.current && R(!1);
2448
+ ee.detail !== M.current && P(!1);
2449
2449
  }
2450
2450
  s.useEffect(() => (document.addEventListener("click", F), document.addEventListener("DropdownOpened", G), () => {
2451
2451
  document.removeEventListener("click", F), document.removeEventListener("DropdownOpened", G);
@@ -3909,7 +3909,7 @@ function Mv() {
3909
3909
  }
3910
3910
  }
3911
3911
  }
3912
- var I = p, O = u, M = c, L = l, R = t, K = m, _ = r, $ = y, N = S, A = n, Q = o, q = a, W = f, J = !1;
3912
+ var I = p, O = u, M = c, L = l, P = t, K = m, _ = r, $ = y, N = S, A = n, Q = o, q = a, W = f, J = !1;
3913
3913
  function H(re) {
3914
3914
  return J || (J = !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.")), F(re) || b(re) === p;
3915
3915
  }
@@ -3949,7 +3949,7 @@ function Mv() {
3949
3949
  function De(re) {
3950
3950
  return b(re) === f;
3951
3951
  }
3952
- ke.AsyncMode = I, ke.ConcurrentMode = O, ke.ContextConsumer = M, ke.ContextProvider = L, ke.Element = R, ke.ForwardRef = K, ke.Fragment = _, ke.Lazy = $, ke.Memo = N, ke.Portal = A, ke.Profiler = Q, ke.StrictMode = q, ke.Suspense = W, ke.isAsyncMode = H, ke.isConcurrentMode = F, ke.isContextConsumer = z, ke.isContextProvider = j, ke.isElement = te, ke.isForwardRef = X, ke.isFragment = G, ke.isLazy = oe, ke.isMemo = ne, ke.isPortal = le, ke.isProfiler = ee, ke.isStrictMode = Te, ke.isSuspense = De, ke.isValidElementType = k, ke.typeOf = b;
3952
+ ke.AsyncMode = I, ke.ConcurrentMode = O, ke.ContextConsumer = M, ke.ContextProvider = L, ke.Element = P, ke.ForwardRef = K, ke.Fragment = _, ke.Lazy = $, ke.Memo = N, ke.Portal = A, ke.Profiler = Q, ke.StrictMode = q, ke.Suspense = W, ke.isAsyncMode = H, ke.isConcurrentMode = F, ke.isContextConsumer = z, ke.isContextProvider = j, ke.isElement = te, ke.isForwardRef = X, ke.isFragment = G, ke.isLazy = oe, ke.isMemo = ne, ke.isPortal = le, ke.isProfiler = ee, ke.isStrictMode = Te, ke.isSuspense = De, ke.isValidElementType = k, ke.typeOf = b;
3953
3953
  }()), ke;
3954
3954
  }
3955
3955
  (function(e) {
@@ -4106,7 +4106,7 @@ function Ov() {
4106
4106
  node: K(),
4107
4107
  objectOf: L,
4108
4108
  oneOf: M,
4109
- oneOfType: R,
4109
+ oneOfType: P,
4110
4110
  shape: _,
4111
4111
  exact: $
4112
4112
  };
@@ -4237,7 +4237,7 @@ function Ov() {
4237
4237
  }
4238
4238
  return T(F);
4239
4239
  }
4240
- function R(H) {
4240
+ function P(H) {
4241
4241
  if (!Array.isArray(H))
4242
4242
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), l;
4243
4243
  for (var F = 0; F < H.length; F++) {
@@ -4671,13 +4671,13 @@ function ry(e, t) {
4671
4671
  return function(M) {
4672
4672
  if (process.env.NODE_ENV !== "production" && !mr.exports.isValidElementType(M))
4673
4673
  throw new Error("You must pass a component to the function returned by " + (l + ". Instead received " + Xv(M)));
4674
- var L = M.displayName || M.name || "Component", R = a(L), K = ue({}, k, {
4674
+ var L = M.displayName || M.name || "Component", P = a(L), K = ue({}, k, {
4675
4675
  getDisplayName: a,
4676
4676
  methodName: l,
4677
4677
  renderCountProp: p,
4678
4678
  shouldHandleStateChanges: m,
4679
4679
  storeKey: h,
4680
- displayName: R,
4680
+ displayName: P,
4681
4681
  wrappedComponentName: L,
4682
4682
  WrappedComponent: M
4683
4683
  }), _ = k.pure;
@@ -4695,7 +4695,7 @@ function ry(e, t) {
4695
4695
  return H && H.Consumer && mr.exports.isContextConsumer(/* @__PURE__ */ Y.createElement(H.Consumer, null)) ? H : I;
4696
4696
  }, [H, I]), te = rn(j), X = Boolean(W.store) && Boolean(W.store.getState) && Boolean(W.store.dispatch), G = Boolean(te) && Boolean(te.store);
4697
4697
  if (process.env.NODE_ENV !== "production" && !X && !G)
4698
- throw new Error('Could not find "store" in the context of ' + ('"' + R + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + R + " in connect options."));
4698
+ throw new Error('Could not find "store" in the context of ' + ('"' + P + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + P + " in connect options."));
4699
4699
  var oe = X ? W.store : te.store, ne = He(function() {
4700
4700
  return $(oe);
4701
4701
  }, [oe]), le = He(function() {
@@ -4726,13 +4726,13 @@ function ry(e, t) {
4726
4726
  return Ne;
4727
4727
  }
4728
4728
  var Q = _ ? Y.memo(A) : A;
4729
- if (Q.WrappedComponent = M, Q.displayName = A.displayName = R, T) {
4729
+ if (Q.WrappedComponent = M, Q.displayName = A.displayName = P, T) {
4730
4730
  var q = Y.forwardRef(function(J, H) {
4731
4731
  return /* @__PURE__ */ Y.createElement(Q, ue({}, J, {
4732
4732
  reactReduxForwardedRef: H
4733
4733
  }));
4734
4734
  });
4735
- return q.displayName = R, q.WrappedComponent = M, Sc(q, M);
4735
+ return q.displayName = P, q.WrappedComponent = M, Sc(q, M);
4736
4736
  }
4737
4737
  return Sc(Q, M);
4738
4738
  };
@@ -4916,7 +4916,7 @@ function Dy(e) {
4916
4916
  var t = e === void 0 ? {} : e, n = t.connectHOC, r = n === void 0 ? ry : n, a = t.mapStateToPropsFactories, o = a === void 0 ? uy : a, l = t.mapDispatchToPropsFactories, c = l === void 0 ? cy : l, p = t.mergePropsFactories, u = p === void 0 ? Sy : p, m = t.selectorFactory, f = m === void 0 ? Ty : m;
4917
4917
  return function(S, y, w, T) {
4918
4918
  T === void 0 && (T = {});
4919
- var D = T, x = D.pure, k = x === void 0 ? !0 : x, b = D.areStatesEqual, I = b === void 0 ? Cy : b, O = D.areOwnPropsEqual, M = O === void 0 ? za : O, L = D.areStatePropsEqual, R = L === void 0 ? za : L, K = D.areMergedPropsEqual, _ = K === void 0 ? za : K, $ = js(D, wy), N = Ja(S, o, "mapStateToProps"), A = Ja(y, c, "mapDispatchToProps"), Q = Ja(w, u, "mergeProps");
4919
+ var D = T, x = D.pure, k = x === void 0 ? !0 : x, b = D.areStatesEqual, I = b === void 0 ? Cy : b, O = D.areOwnPropsEqual, M = O === void 0 ? za : O, L = D.areStatePropsEqual, P = L === void 0 ? za : L, K = D.areMergedPropsEqual, _ = K === void 0 ? za : K, $ = js(D, wy), N = Ja(S, o, "mapStateToProps"), A = Ja(y, c, "mapDispatchToProps"), Q = Ja(w, u, "mergeProps");
4920
4920
  return r(f, ue({
4921
4921
  methodName: "connect",
4922
4922
  getDisplayName: function(W) {
@@ -4929,7 +4929,7 @@ function Dy(e) {
4929
4929
  pure: k,
4930
4930
  areStatesEqual: I,
4931
4931
  areOwnPropsEqual: M,
4932
- areStatePropsEqual: R,
4932
+ areStatePropsEqual: P,
4933
4933
  areMergedPropsEqual: _
4934
4934
  }, $));
4935
4935
  };
@@ -6661,8 +6661,8 @@ var Pc = {
6661
6661
  if (e.phase === "DROP_PENDING")
6662
6662
  return e;
6663
6663
  Mn(e) || (process.env.NODE_ENV !== "production" ? B(!1, "Attempting to move in an unsupported phase " + e.phase) : B(!1));
6664
- var L = t.payload, R = L.id, K = L.isEnabled, _ = e.dimensions.droppables[R];
6665
- _ || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot find Droppable[id: " + R + "] to toggle its enabled state") : B(!1)), _.isEnabled === K && (process.env.NODE_ENV !== "production" ? B(!1, "Trying to set droppable isEnabled to " + String(K) + `
6664
+ var L = t.payload, P = L.id, K = L.isEnabled, _ = e.dimensions.droppables[P];
6665
+ _ || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot find Droppable[id: " + P + "] to toggle its enabled state") : B(!1)), _.isEnabled === K && (process.env.NODE_ENV !== "production" ? B(!1, "Trying to set droppable isEnabled to " + String(K) + `
6666
6666
  but it is already ` + String(_.isEnabled)) : B(!1));
6667
6667
  var $ = ue({}, _, {
6668
6668
  isEnabled: K
@@ -9019,7 +9019,7 @@ function fC(e) {
9019
9019
  t.release(), h = "COMPLETED";
9020
9020
  }
9021
9021
  h !== "PRE_DRAG" && (M(), h !== "PRE_DRAG" && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot lift in phase " + h) : B(!1))), r.dispatch(QE(O.liftActionArgs)), h = "DRAGGING";
9022
- function L(R, K) {
9022
+ function L(P, K) {
9023
9023
  if (K === void 0 && (K = {
9024
9024
  shouldBlockNextClick: !1
9025
9025
  }), O.cleanup(), K.shouldBlockNextClick) {
@@ -9035,7 +9035,7 @@ function fC(e) {
9035
9035
  setTimeout(_);
9036
9036
  }
9037
9037
  M(), r.dispatch(zp({
9038
- reason: R
9038
+ reason: P
9039
9039
  }));
9040
9040
  }
9041
9041
  return ue({
@@ -9057,10 +9057,10 @@ function fC(e) {
9057
9057
  }, O.actions);
9058
9058
  }
9059
9059
  function x(O) {
9060
- var M = Yr(function(R) {
9060
+ var M = Yr(function(P) {
9061
9061
  T(function() {
9062
9062
  return jp({
9063
- client: R
9063
+ client: P
9064
9064
  });
9065
9065
  });
9066
9066
  }), L = D({
@@ -9204,8 +9204,8 @@ function bC(e) {
9204
9204
  }, [c]), u = Ew(t), m = Dw({
9205
9205
  contextId: t,
9206
9206
  text: o
9207
- }), f = hw(t, a), h = me(function(R) {
9208
- $r(l).dispatch(R);
9207
+ }), f = hw(t, a), h = me(function(P) {
9208
+ $r(l).dispatch(P);
9209
9209
  }, []), S = Ce(function() {
9210
9210
  return sc({
9211
9211
  publishWhileDragging: tT,
@@ -9235,11 +9235,11 @@ function bC(e) {
9235
9235
  }, [u, T, w, D, p, f]);
9236
9236
  process.env.NODE_ENV !== "production" && l.current && l.current !== x && process.env.NODE_ENV !== "production" && Re("unexpected store change"), l.current = x;
9237
9237
  var k = me(function() {
9238
- var R = $r(l), K = R.getState();
9239
- K.phase !== "IDLE" && R.dispatch(ii());
9238
+ var P = $r(l), K = P.getState();
9239
+ K.phase !== "IDLE" && P.dispatch(ii());
9240
9240
  }, []), b = me(function() {
9241
- var R = $r(l).getState();
9242
- return R.isDragging || R.phase === "DROP_ANIMATING";
9241
+ var P = $r(l).getState();
9242
+ return P.isDragging || P.phase === "DROP_ANIMATING";
9243
9243
  }, []), I = Ce(function() {
9244
9244
  return {
9245
9245
  isDragging: b,
@@ -9247,8 +9247,8 @@ function bC(e) {
9247
9247
  };
9248
9248
  }, [b, k]);
9249
9249
  n(I);
9250
- var O = me(function(R) {
9251
- return tu($r(l).getState(), R);
9250
+ var O = me(function(P) {
9251
+ return tu($r(l).getState(), P);
9252
9252
  }, []), M = me(function() {
9253
9253
  return Mn($r(l).getState());
9254
9254
  }, []), L = Ce(function() {
@@ -9505,13 +9505,13 @@ function PC(e) {
9505
9505
  t.current && (process.env.NODE_ENV !== "production" ? B(!1, "Cannot collect a droppable while a drag is occurring") : B(!1));
9506
9506
  var O = l.current, M = O.getDroppableRef();
9507
9507
  M || (process.env.NODE_ENV !== "production" ? B(!1, "Cannot collect without a droppable ref") : B(!1));
9508
- var L = kC(M), R = {
9508
+ var L = kC(M), P = {
9509
9509
  ref: M,
9510
9510
  descriptor: c,
9511
9511
  env: L,
9512
9512
  scrollOptions: I
9513
9513
  };
9514
- t.current = R;
9514
+ t.current = P;
9515
9515
  var K = LC({
9516
9516
  ref: M,
9517
9517
  descriptor: c,
@@ -9522,7 +9522,7 @@ function PC(e) {
9522
9522
  isCombineEnabled: O.isCombineEnabled,
9523
9523
  shouldClipSubject: !O.ignoreContainerClipping
9524
9524
  }), _ = L.closestScrollable;
9525
- return _ && (_.setAttribute(Gc.contextId, n.contextId), _.addEventListener("scroll", S, Jc(R.scrollOptions)), process.env.NODE_ENV !== "production" && xC(_)), K;
9525
+ return _ && (_.setAttribute(Gc.contextId, n.contextId), _.addEventListener("scroll", S, Jc(P.scrollOptions)), process.env.NODE_ENV !== "production" && xC(_)), K;
9526
9526
  }, [n.contextId, c, S, l]), w = me(function() {
9527
9527
  var b = t.current, I = Ps(b);
9528
9528
  return b && I || (process.env.NODE_ENV !== "production" ? B(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : B(!1)), Mo(I);
@@ -9818,8 +9818,8 @@ function tD(e) {
9818
9818
  e.preventDefault();
9819
9819
  }
9820
9820
  function nD(e) {
9821
- var t = pe(null), n = me(function(R) {
9822
- t.current = R;
9821
+ var t = pe(null), n = me(function(P) {
9822
+ t.current = P;
9823
9823
  }, []), r = me(function() {
9824
9824
  return t.current;
9825
9825
  }, []), a = Qs(ha), o = a.contextId, l = a.dragHandleUsageInstructionsId, c = a.registry, p = Qs(Ei), u = p.type, m = p.droppableId, f = Ce(function() {
@@ -9853,15 +9853,15 @@ function nD(e) {
9853
9853
  draggable: !1,
9854
9854
  onDragStart: tD
9855
9855
  } : null;
9856
- }, [o, l, S, y]), O = me(function(R) {
9857
- x.type === "DRAGGING" && (!x.dropping || R.propertyName === "transform" && k());
9856
+ }, [o, l, S, y]), O = me(function(P) {
9857
+ x.type === "DRAGGING" && (!x.dropping || P.propertyName === "transform" && k());
9858
9858
  }, [k, x]), M = Ce(function() {
9859
- var R = JC(x), K = x.type === "DRAGGING" && x.dropping ? O : null, _ = {
9859
+ var P = JC(x), K = x.type === "DRAGGING" && x.dropping ? O : null, _ = {
9860
9860
  innerRef: n,
9861
9861
  draggableProps: {
9862
9862
  "data-rbd-draggable-context-id": o,
9863
9863
  "data-rbd-draggable-id": S,
9864
- style: R,
9864
+ style: P,
9865
9865
  onTransitionEnd: K
9866
9866
  },
9867
9867
  dragHandleProps: I
@@ -10099,13 +10099,13 @@ function uD(e) {
10099
10099
  "data-rbd-droppable-context-id": n
10100
10100
  }
10101
10101
  };
10102
- }, [n, c, M, k]), R = w ? w.dragging.draggableId : null, K = Ce(function() {
10102
+ }, [n, c, M, k]), P = w ? w.dragging.draggableId : null, K = Ce(function() {
10103
10103
  return {
10104
10104
  droppableId: c,
10105
10105
  type: p,
10106
- isUsingCloneFor: R
10106
+ isUsingCloneFor: P
10107
10107
  };
10108
- }, [c, R, p]);
10108
+ }, [c, P, p]);
10109
10109
  function _() {
10110
10110
  if (!w)
10111
10111
  return null;
@@ -11003,42 +11003,42 @@ function xu(e) {
11003
11003
  }), h = { searchSelectedColumn: "" }, S = V(m.isVisible && "sps-button--open", c), { formMeta: y, formValue: w, updateForm: T } = zb(h);
11004
11004
  function D(M) {
11005
11005
  if (M.target.value) {
11006
- const L = [...m.pendingSelectedColumns], R = [];
11006
+ const L = [...m.pendingSelectedColumns], P = [];
11007
11007
  m.pendingUnselectedColumns.forEach((K) => {
11008
11008
  M.target.value === K.name ? (T(h), L.push({
11009
11009
  columnId: ot(),
11010
11010
  name: K.name,
11011
11011
  value: K.value
11012
- })) : R.push(K);
11012
+ })) : P.push(K);
11013
11013
  }), f({
11014
11014
  pendingSelectedColumns: L,
11015
- pendingUnselectedColumns: R
11015
+ pendingUnselectedColumns: P
11016
11016
  });
11017
11017
  }
11018
11018
  }
11019
11019
  function x(M) {
11020
- const L = [], R = [...m.pendingUnselectedColumns];
11020
+ const L = [], P = [...m.pendingUnselectedColumns];
11021
11021
  m.pendingSelectedColumns.forEach((K) => {
11022
- M === K.value ? R.push({
11022
+ M === K.value ? P.push({
11023
11023
  columnId: ot(),
11024
11024
  name: K.name,
11025
11025
  value: K.value
11026
11026
  }) : L.push(K);
11027
11027
  }), f({
11028
11028
  pendingSelectedColumns: L,
11029
- pendingUnselectedColumns: R
11029
+ pendingUnselectedColumns: P
11030
11030
  });
11031
11031
  }
11032
11032
  function k(M) {
11033
11033
  if (!M.destination)
11034
11034
  return;
11035
- const L = [...m.pendingSelectedColumns], [R] = L.splice(M.source.index, 1);
11036
- L.splice(M.destination.index, 0, R), f({ pendingSelectedColumns: L });
11035
+ const L = [...m.pendingSelectedColumns], [P] = L.splice(M.source.index, 1);
11036
+ L.splice(M.destination.index, 0, P), f({ pendingSelectedColumns: L });
11037
11037
  }
11038
11038
  function b() {
11039
11039
  const M = m.pendingSelectedColumns.map((L) => {
11040
- const R = { ...L };
11041
- return R.columnId && delete R.columnId, R;
11040
+ const P = { ...L };
11041
+ return P.columnId && delete P.columnId, P;
11042
11042
  });
11043
11043
  T(h), f({
11044
11044
  isVisible: !1,
@@ -11055,7 +11055,7 @@ function xu(e) {
11055
11055
  const O = s.useCallback(
11056
11056
  (M) => {
11057
11057
  const L = new RegExp(M != null ? M : "", "i");
11058
- return o ? m.pendingUnselectedColumns.filter((R) => L.test(R.name)).map((R) => R.name).slice(0, o) : m.pendingUnselectedColumns.map((R) => R.name);
11058
+ return o ? m.pendingUnselectedColumns.filter((P) => L.test(P.name)).map((P) => P.name).slice(0, o) : m.pendingUnselectedColumns.map((P) => P.name);
11059
11059
  },
11060
11060
  [m.pendingUnselectedColumns, o]
11061
11061
  );
@@ -11138,8 +11138,8 @@ function xu(e) {
11138
11138
  }, (M) => /* @__PURE__ */ s.createElement("div", {
11139
11139
  ...M.droppableProps,
11140
11140
  ref: M.innerRef
11141
- }, m.pendingSelectedColumns.map((L, R) => /* @__PURE__ */ s.createElement(Ti, {
11142
- index: R,
11141
+ }, m.pendingSelectedColumns.map((L, P) => /* @__PURE__ */ s.createElement(Ti, {
11142
+ index: P,
11143
11143
  key: L.columnId,
11144
11144
  columnId: L.columnId,
11145
11145
  name: L.name,
@@ -11332,7 +11332,7 @@ function Iu(e) {
11332
11332
  S && "sps-content-row--selected",
11333
11333
  t && "sps-content-row--alternate-layout",
11334
11334
  r
11335
- ), [R, [K]] = Rt(n, [
11335
+ ), [P, [K]] = Rt(n, [
11336
11336
  { type: ar },
11337
11337
  { type: wi }
11338
11338
  ]);
@@ -11349,7 +11349,7 @@ function Iu(e) {
11349
11349
  widthPx: 44
11350
11350
  }, /* @__PURE__ */ s.createElement(M, null)), K && h && t && /* @__PURE__ */ s.createElement(ar, {
11351
11351
  widthPx: 46
11352
- }, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(O, null)), /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(M, null))), R), K);
11352
+ }, /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(O, null)), /* @__PURE__ */ s.createElement("section", null, /* @__PURE__ */ s.createElement(M, null))), P), K);
11353
11353
  }
11354
11354
  Object.assign(Iu, {
11355
11355
  props: kD,
@@ -11946,7 +11946,7 @@ function Ci(e) {
11946
11946
  function L() {
11947
11947
  y(se.nextMonth({ ...S, date: 15 })), u && T(se.nextMonth({ ...w, date: 15 }));
11948
11948
  }
11949
- function R(N) {
11949
+ function P(N) {
11950
11950
  N.target && N.target.classList.contains(`${at}-day`) ? u && N.target.classList.contains(`${w.month}`) ? O({
11951
11951
  ...w,
11952
11952
  date: Number(N.target.textContent)
@@ -11991,7 +11991,7 @@ function Ci(e) {
11991
11991
  "data-testid": `${m}`,
11992
11992
  className: $,
11993
11993
  ...f,
11994
- onMouseOver: R
11994
+ onMouseOver: P
11995
11995
  }, /* @__PURE__ */ s.createElement("div", {
11996
11996
  className: `${at}-head`
11997
11997
  }, /* @__PURE__ */ s.createElement("button", {
@@ -12039,7 +12039,7 @@ function Ci(e) {
12039
12039
  "data-testid": `${m}`,
12040
12040
  className: $,
12041
12041
  ...f,
12042
- onMouseOver: R
12042
+ onMouseOver: P
12043
12043
  }, /* @__PURE__ */ s.createElement("div", {
12044
12044
  className: `${at}-head`
12045
12045
  }, /* @__PURE__ */ s.createElement("span", {
@@ -12133,33 +12133,44 @@ function ku({
12133
12133
  se.toString(p)
12134
12134
  ), {
12135
12135
  showPopup: x,
12136
- doShowPopup: k
12136
+ doShowPopup: k,
12137
+ doHidePopup: b
12137
12138
  } = ca(S, y);
12138
- function b(R) {
12139
- r && (r.setValue(R), r.markAsDirty()), c && c(R);
12139
+ function I(_) {
12140
+ r && (r.setValue(_), r.markAsDirty()), c && c(_);
12140
12141
  }
12141
- function I(R) {
12142
- b(R), D(se.toString(R)), w && w.current && w.current.focus();
12142
+ function O(_) {
12143
+ I(_), D(se.toString(_)), w && w.current && w.current.focus();
12143
12144
  }
12144
- function O(R) {
12145
- D(R.target.value);
12146
- const K = se.createFrom(R.target.value);
12147
- b(K);
12145
+ function M(_) {
12146
+ D(_.target.value);
12147
+ const $ = se.createFrom(_.target.value);
12148
+ I($);
12148
12149
  }
12149
- function M() {
12150
- D(""), b();
12150
+ function L() {
12151
+ b(), D(""), I();
12151
12152
  }
12152
- const L = V(
12153
+ function P(_) {
12154
+ switch (_.key) {
12155
+ case "Tab":
12156
+ b();
12157
+ break;
12158
+ case "Backspace":
12159
+ _.target.selectionStart === 0 && p && !Array.isArray(p) && L();
12160
+ break;
12161
+ }
12162
+ }
12163
+ const K = V(
12153
12164
  ad,
12154
12165
  "sps-text-input",
12155
12166
  x && `${ad}--open`,
12156
12167
  t
12157
12168
  );
12158
12169
  return s.useEffect(() => {
12159
- (!p || se.isValid(p)) && D(se.toString(p));
12170
+ p ? se.isValid(p) && D(se.toString(p)) : L();
12160
12171
  }, [p]), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ut, {
12161
12172
  id: f,
12162
- className: L,
12173
+ className: K,
12163
12174
  formMeta: r,
12164
12175
  inputRef: w,
12165
12176
  focusInputOnClick: !0,
@@ -12174,16 +12185,17 @@ function ku({
12174
12185
  className: "sps-text-input__input",
12175
12186
  id: h,
12176
12187
  placeholder: la,
12177
- onChange: O,
12188
+ onChange: M,
12178
12189
  onClick: k,
12179
12190
  onFocus: k,
12191
+ onKeyDown: P,
12180
12192
  value: T,
12181
12193
  disabled: n,
12182
12194
  "data-testid": `${u}_date_input`,
12183
12195
  ...m
12184
12196
  }), p && !n && /* @__PURE__ */ s.createElement("i", {
12185
12197
  className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
12186
- onClick: M
12198
+ onClick: L
12187
12199
  }))), /* @__PURE__ */ s.createElement(Di, {
12188
12200
  isOpen: x,
12189
12201
  attachTo: S,
@@ -12191,7 +12203,7 @@ function ku({
12191
12203
  }, /* @__PURE__ */ s.createElement(Ci, {
12192
12204
  "data-testid": `${u}_calendar`,
12193
12205
  selectedDate: p,
12194
- onNewSelection: I,
12206
+ onNewSelection: O,
12195
12207
  minDate: l,
12196
12208
  maxDate: o
12197
12209
  })));
@@ -12314,6 +12326,42 @@ const RD = {
12314
12326
  `
12315
12327
  }
12316
12328
  }
12329
+ },
12330
+ required: {
12331
+ label: "Required",
12332
+ examples: {
12333
+ required: {
12334
+ react: E`
12335
+ import {
12336
+ useSpsForm,
12337
+ SpsLabel,
12338
+ SpsDatepicker,
12339
+ SpsValidators,
12340
+ } from "@spscommerce/ds-react";
12341
+
12342
+ function Component() {
12343
+ const { formValue, formMeta, updateForm } = useSpsForm({
12344
+ date: { year: 2018, month: 10, date: 31 },
12345
+ }, {
12346
+ "date": [SpsValidators.required, SpsValidators.date]
12347
+ });
12348
+
12349
+ return (
12350
+ <div className="sfg-row">
12351
+ <div className="sfg-col-3">
12352
+ <SpsLabel for={formMeta.fields.date}>Date</SpsLabel>
12353
+ <SpsDatepicker
12354
+ value={formValue.date}
12355
+ formMeta={formMeta.fields.date}
12356
+ data-testid="datepicker-required"
12357
+ />
12358
+ </div>
12359
+ </div>
12360
+ );
12361
+ }
12362
+ `
12363
+ }
12364
+ }
12317
12365
  }
12318
12366
  }, PD = {
12319
12367
  disabled: "boolean",
@@ -12352,7 +12400,7 @@ function Mu({
12352
12400
  const { t: S } = s.useContext(Be), { wrapperId: y, controlId: w } = wt(a, r), T = s.useRef(null), D = s.useRef(null), x = s.useRef(null), [k, b] = s.useState(
12353
12401
  Array.isArray(u) ? se.toStringRange(u) : ""
12354
12402
  ), [I, O] = s.useState(null), [M, L] = s.useState(), {
12355
- showPopup: R,
12403
+ showPopup: P,
12356
12404
  doShowPopup: K,
12357
12405
  doHidePopup: _
12358
12406
  } = ca(T, x);
@@ -12426,7 +12474,7 @@ function Mu({
12426
12474
  const H = V(
12427
12475
  od,
12428
12476
  "sps-text-input",
12429
- R && `${od}--open`,
12477
+ P && `${od}--open`,
12430
12478
  t
12431
12479
  );
12432
12480
  return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(ut, {
@@ -12463,7 +12511,7 @@ function Mu({
12463
12511
  className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
12464
12512
  onClick: Q
12465
12513
  }))), /* @__PURE__ */ s.createElement(Di, {
12466
- isOpen: R,
12514
+ isOpen: P,
12467
12515
  attachTo: T,
12468
12516
  ref: x
12469
12517
  }, /* @__PURE__ */ s.createElement("div", {
@@ -12804,26 +12852,26 @@ function an() {
12804
12852
  function L(i) {
12805
12853
  return i instanceof M || i != null && i._isAMomentObject != null;
12806
12854
  }
12807
- function R(i) {
12855
+ function P(i) {
12808
12856
  r.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + i);
12809
12857
  }
12810
12858
  function K(i, d) {
12811
12859
  var g = !0;
12812
12860
  return S(function() {
12813
12861
  if (r.deprecationHandler != null && r.deprecationHandler(null, i), g) {
12814
- var v = [], C, P, U;
12815
- for (P = 0; P < arguments.length; P++) {
12816
- if (C = "", typeof arguments[P] == "object") {
12862
+ var v = [], C, R, U;
12863
+ for (R = 0; R < arguments.length; R++) {
12864
+ if (C = "", typeof arguments[R] == "object") {
12817
12865
  C += `
12818
- [` + P + "] ";
12866
+ [` + R + "] ";
12819
12867
  for (U in arguments[0])
12820
12868
  c(arguments[0], U) && (C += U + ": " + arguments[0][U] + ", ");
12821
12869
  C = C.slice(0, -2);
12822
12870
  } else
12823
- C = arguments[P];
12871
+ C = arguments[R];
12824
12872
  v.push(C);
12825
12873
  }
12826
- R(
12874
+ P(
12827
12875
  i + `
12828
12876
  Arguments: ` + Array.prototype.slice.call(v).join("") + `
12829
12877
  ` + new Error().stack
@@ -12834,7 +12882,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
12834
12882
  }
12835
12883
  var _ = {};
12836
12884
  function $(i, d) {
12837
- r.deprecationHandler != null && r.deprecationHandler(i, d), _[i] || (R(d), _[i] = !0);
12885
+ r.deprecationHandler != null && r.deprecationHandler(i, d), _[i] || (P(d), _[i] = !0);
12838
12886
  }
12839
12887
  r.suppressDeprecationWarnings = !1, r.deprecationHandler = null;
12840
12888
  function N(i) {
@@ -12879,8 +12927,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
12879
12927
  return N(v) ? v.call(d, g) : v;
12880
12928
  }
12881
12929
  function F(i, d, g) {
12882
- var v = "" + Math.abs(i), C = d - v.length, P = i >= 0;
12883
- return (P ? g ? "+" : "" : "-") + Math.pow(10, Math.max(0, C)).toString().substr(1) + v;
12930
+ var v = "" + Math.abs(i), C = d - v.length, R = i >= 0;
12931
+ return (R ? g ? "+" : "" : "-") + Math.pow(10, Math.max(0, C)).toString().substr(1) + v;
12884
12932
  }
12885
12933
  var z = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, j = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, te = {}, X = {};
12886
12934
  function G(i, d, g, v) {
@@ -12904,10 +12952,10 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
12904
12952
  for (g = 0, v = d.length; g < v; g++)
12905
12953
  X[d[g]] ? d[g] = X[d[g]] : d[g] = oe(d[g]);
12906
12954
  return function(C) {
12907
- var P = "", U;
12955
+ var R = "", U;
12908
12956
  for (U = 0; U < v; U++)
12909
- P += N(d[U]) ? d[U].call(C, i) : d[U];
12910
- return P;
12957
+ R += N(d[U]) ? d[U].call(C, i) : d[U];
12958
+ return R;
12911
12959
  };
12912
12960
  }
12913
12961
  function le(i, d) {
@@ -13049,8 +13097,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13049
13097
  }
13050
13098
  function lf(i) {
13051
13099
  return mt(
13052
- i.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(d, g, v, C, P) {
13053
- return g || v || C || P;
13100
+ i.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(d, g, v, C, R) {
13101
+ return g || v || C || R;
13054
13102
  })
13055
13103
  );
13056
13104
  }
@@ -13060,14 +13108,14 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13060
13108
  var Ea = {};
13061
13109
  function _e(i, d) {
13062
13110
  var g, v = d;
13063
- for (typeof i == "string" && (i = [i]), m(d) && (v = function(C, P) {
13064
- P[d] = Se(C);
13111
+ for (typeof i == "string" && (i = [i]), m(d) && (v = function(C, R) {
13112
+ R[d] = Se(C);
13065
13113
  }), g = 0; g < i.length; g++)
13066
13114
  Ea[i[g]] = v;
13067
13115
  }
13068
13116
  function Mr(i, d) {
13069
- _e(i, function(g, v, C, P) {
13070
- C._w = C._w || {}, d(g, C._w, C, P);
13117
+ _e(i, function(g, v, C, R) {
13118
+ C._w = C._w || {}, d(g, C._w, C, R);
13071
13119
  });
13072
13120
  }
13073
13121
  function cf(i, d, g) {
@@ -13119,17 +13167,17 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13119
13167
  return i ? o(this._monthsShort) ? this._monthsShort[i.month()] : this._monthsShort[al.test(d) ? "format" : "standalone"][i.month()] : o(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
13120
13168
  }
13121
13169
  function bf(i, d, g) {
13122
- var v, C, P, U = i.toLocaleLowerCase();
13170
+ var v, C, R, U = i.toLocaleLowerCase();
13123
13171
  if (!this._monthsParse)
13124
13172
  for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], v = 0; v < 12; ++v)
13125
- P = y([2e3, v]), this._shortMonthsParse[v] = this.monthsShort(
13126
- P,
13173
+ R = y([2e3, v]), this._shortMonthsParse[v] = this.monthsShort(
13174
+ R,
13127
13175
  ""
13128
- ).toLocaleLowerCase(), this._longMonthsParse[v] = this.months(P, "").toLocaleLowerCase();
13176
+ ).toLocaleLowerCase(), this._longMonthsParse[v] = this.months(R, "").toLocaleLowerCase();
13129
13177
  return g ? d === "MMM" ? (C = Ue.call(this._shortMonthsParse, U), C !== -1 ? C : null) : (C = Ue.call(this._longMonthsParse, U), C !== -1 ? C : null) : d === "MMM" ? (C = Ue.call(this._shortMonthsParse, U), C !== -1 ? C : (C = Ue.call(this._longMonthsParse, U), C !== -1 ? C : null)) : (C = Ue.call(this._longMonthsParse, U), C !== -1 ? C : (C = Ue.call(this._shortMonthsParse, U), C !== -1 ? C : null));
13130
13178
  }
13131
13179
  function vf(i, d, g) {
13132
- var v, C, P;
13180
+ var v, C, R;
13133
13181
  if (this._monthsParseExact)
13134
13182
  return bf.call(this, i, d, g);
13135
13183
  for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), v = 0; v < 12; v++) {
@@ -13139,7 +13187,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13139
13187
  ), this._shortMonthsParse[v] = new RegExp(
13140
13188
  "^" + this.monthsShort(C, "").replace(".", "") + "$",
13141
13189
  "i"
13142
- )), !g && !this._monthsParse[v] && (P = "^" + this.months(C, "") + "|^" + this.monthsShort(C, ""), this._monthsParse[v] = new RegExp(P.replace(".", ""), "i")), g && d === "MMMM" && this._longMonthsParse[v].test(i))
13190
+ )), !g && !this._monthsParse[v] && (R = "^" + this.months(C, "") + "|^" + this.monthsShort(C, ""), this._monthsParse[v] = new RegExp(R.replace(".", ""), "i")), g && d === "MMMM" && this._longMonthsParse[v].test(i))
13143
13191
  return v;
13144
13192
  if (g && d === "MMM" && this._shortMonthsParse[v].test(i))
13145
13193
  return v;
@@ -13175,9 +13223,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13175
13223
  function i(U, fe) {
13176
13224
  return fe.length - U.length;
13177
13225
  }
13178
- var d = [], g = [], v = [], C, P;
13226
+ var d = [], g = [], v = [], C, R;
13179
13227
  for (C = 0; C < 12; C++)
13180
- P = y([2e3, C]), d.push(this.monthsShort(P, "")), g.push(this.months(P, "")), v.push(this.months(P, "")), v.push(this.monthsShort(P, ""));
13228
+ R = y([2e3, C]), d.push(this.monthsShort(R, "")), g.push(this.months(R, "")), v.push(this.months(R, "")), v.push(this.monthsShort(R, ""));
13181
13229
  for (d.sort(i), g.sort(i), v.sort(i), C = 0; C < 12; C++)
13182
13230
  d[C] = mt(d[C]), g[C] = mt(g[C]);
13183
13231
  for (C = 0; C < 24; C++)
@@ -13212,9 +13260,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13212
13260
  function wf() {
13213
13261
  return Vn(this.year());
13214
13262
  }
13215
- function Cf(i, d, g, v, C, P, U) {
13263
+ function Cf(i, d, g, v, C, R, U) {
13216
13264
  var fe;
13217
- return i < 100 && i >= 0 ? (fe = new Date(i + 400, d, g, v, C, P, U), isFinite(fe.getFullYear()) && fe.setFullYear(i)) : fe = new Date(i, d, g, v, C, P, U), fe;
13265
+ return i < 100 && i >= 0 ? (fe = new Date(i + 400, d, g, v, C, R, U), isFinite(fe.getFullYear()) && fe.setFullYear(i)) : fe = new Date(i, d, g, v, C, R, U), fe;
13218
13266
  }
13219
13267
  function Lr(i) {
13220
13268
  var d, g;
@@ -13225,16 +13273,16 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13225
13273
  return -C + v - 1;
13226
13274
  }
13227
13275
  function dl(i, d, g, v, C) {
13228
- var P = (7 + g - v) % 7, U = gs(i, v, C), fe = 1 + 7 * (d - 1) + P + U, ve, Oe;
13276
+ var R = (7 + g - v) % 7, U = gs(i, v, C), fe = 1 + 7 * (d - 1) + R + U, ve, Oe;
13229
13277
  return fe <= 0 ? (ve = i - 1, Oe = _r(ve) + fe) : fe > _r(i) ? (ve = i + 1, Oe = fe - _r(i)) : (ve = i, Oe = fe), {
13230
13278
  year: ve,
13231
13279
  dayOfYear: Oe
13232
13280
  };
13233
13281
  }
13234
13282
  function Or(i, d, g) {
13235
- var v = gs(i.year(), d, g), C = Math.floor((i.dayOfYear() - v - 1) / 7) + 1, P, U;
13236
- return C < 1 ? (U = i.year() - 1, P = C + Yt(U, d, g)) : C > Yt(i.year(), d, g) ? (P = C - Yt(i.year(), d, g), U = i.year() + 1) : (U = i.year(), P = C), {
13237
- week: P,
13283
+ var v = gs(i.year(), d, g), C = Math.floor((i.dayOfYear() - v - 1) / 7) + 1, R, U;
13284
+ return C < 1 ? (U = i.year() - 1, R = C + Yt(U, d, g)) : C > Yt(i.year(), d, g) ? (R = C - Yt(i.year(), d, g), U = i.year() + 1) : (U = i.year(), R = C), {
13285
+ week: R,
13238
13286
  year: U
13239
13287
  };
13240
13288
  }
@@ -13307,20 +13355,20 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13307
13355
  return i === !0 ? Ta(this._weekdaysMin, this._week.dow) : i ? this._weekdaysMin[i.day()] : this._weekdaysMin;
13308
13356
  }
13309
13357
  function Kf(i, d, g) {
13310
- var v, C, P, U = i.toLocaleLowerCase();
13358
+ var v, C, R, U = i.toLocaleLowerCase();
13311
13359
  if (!this._weekdaysParse)
13312
13360
  for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], v = 0; v < 7; ++v)
13313
- P = y([2e3, 1]).day(v), this._minWeekdaysParse[v] = this.weekdaysMin(
13314
- P,
13361
+ R = y([2e3, 1]).day(v), this._minWeekdaysParse[v] = this.weekdaysMin(
13362
+ R,
13315
13363
  ""
13316
13364
  ).toLocaleLowerCase(), this._shortWeekdaysParse[v] = this.weekdaysShort(
13317
- P,
13365
+ R,
13318
13366
  ""
13319
- ).toLocaleLowerCase(), this._weekdaysParse[v] = this.weekdays(P, "").toLocaleLowerCase();
13367
+ ).toLocaleLowerCase(), this._weekdaysParse[v] = this.weekdays(R, "").toLocaleLowerCase();
13320
13368
  return g ? d === "dddd" ? (C = Ue.call(this._weekdaysParse, U), C !== -1 ? C : null) : d === "ddd" ? (C = Ue.call(this._shortWeekdaysParse, U), C !== -1 ? C : null) : (C = Ue.call(this._minWeekdaysParse, U), C !== -1 ? C : null) : d === "dddd" ? (C = Ue.call(this._weekdaysParse, U), C !== -1 || (C = Ue.call(this._shortWeekdaysParse, U), C !== -1) ? C : (C = Ue.call(this._minWeekdaysParse, U), C !== -1 ? C : null)) : d === "ddd" ? (C = Ue.call(this._shortWeekdaysParse, U), C !== -1 || (C = Ue.call(this._weekdaysParse, U), C !== -1) ? C : (C = Ue.call(this._minWeekdaysParse, U), C !== -1 ? C : null)) : (C = Ue.call(this._minWeekdaysParse, U), C !== -1 || (C = Ue.call(this._weekdaysParse, U), C !== -1) ? C : (C = Ue.call(this._shortWeekdaysParse, U), C !== -1 ? C : null));
13321
13369
  }
13322
13370
  function Hf(i, d, g) {
13323
- var v, C, P;
13371
+ var v, C, R;
13324
13372
  if (this._weekdaysParseExact)
13325
13373
  return Kf.call(this, i, d, g);
13326
13374
  for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), v = 0; v < 7; v++) {
@@ -13333,7 +13381,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13333
13381
  ), this._minWeekdaysParse[v] = new RegExp(
13334
13382
  "^" + this.weekdaysMin(C, "").replace(".", "\\.?") + "$",
13335
13383
  "i"
13336
- )), this._weekdaysParse[v] || (P = "^" + this.weekdays(C, "") + "|^" + this.weekdaysShort(C, "") + "|^" + this.weekdaysMin(C, ""), this._weekdaysParse[v] = new RegExp(P.replace(".", ""), "i")), g && d === "dddd" && this._fullWeekdaysParse[v].test(i))
13384
+ )), this._weekdaysParse[v] || (R = "^" + this.weekdays(C, "") + "|^" + this.weekdaysShort(C, "") + "|^" + this.weekdaysMin(C, ""), this._weekdaysParse[v] = new RegExp(R.replace(".", ""), "i")), g && d === "dddd" && this._fullWeekdaysParse[v].test(i))
13337
13385
  return v;
13338
13386
  if (g && d === "ddd" && this._shortWeekdaysParse[v].test(i))
13339
13387
  return v;
@@ -13377,9 +13425,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13377
13425
  function i(At, Zt) {
13378
13426
  return Zt.length - At.length;
13379
13427
  }
13380
- var d = [], g = [], v = [], C = [], P, U, fe, ve, Oe;
13381
- for (P = 0; P < 7; P++)
13382
- U = y([2e3, 1]).day(P), fe = mt(this.weekdaysMin(U, "")), ve = mt(this.weekdaysShort(U, "")), Oe = mt(this.weekdays(U, "")), d.push(fe), g.push(ve), v.push(Oe), C.push(fe), C.push(ve), C.push(Oe);
13428
+ var d = [], g = [], v = [], C = [], R, U, fe, ve, Oe;
13429
+ for (R = 0; R < 7; R++)
13430
+ U = y([2e3, 1]).day(R), fe = mt(this.weekdaysMin(U, "")), ve = mt(this.weekdaysShort(U, "")), Oe = mt(this.weekdays(U, "")), d.push(fe), g.push(ve), v.push(Oe), C.push(fe), C.push(ve), C.push(Oe);
13383
13431
  d.sort(i), g.sort(i), v.sort(i), C.sort(i), this._weekdaysRegex = new RegExp("^(" + C.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
13384
13432
  "^(" + v.join("|") + ")",
13385
13433
  "i"
@@ -13472,11 +13520,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13472
13520
  return i && i.toLowerCase().replace("_", "-");
13473
13521
  }
13474
13522
  function th(i) {
13475
- for (var d = 0, g, v, C, P; d < i.length; ) {
13476
- for (P = hl(i[d]).split("-"), g = P.length, v = hl(i[d + 1]), v = v ? v.split("-") : null; g > 0; ) {
13477
- if (C = Ss(P.slice(0, g).join("-")), C)
13523
+ for (var d = 0, g, v, C, R; d < i.length; ) {
13524
+ for (R = hl(i[d]).split("-"), g = R.length, v = hl(i[d + 1]), v = v ? v.split("-") : null; g > 0; ) {
13525
+ if (C = Ss(R.slice(0, g).join("-")), C)
13478
13526
  return C;
13479
- if (v && v.length >= g && eh(P, v) >= g - 1)
13527
+ if (v && v.length >= g && eh(R, v) >= g - 1)
13480
13528
  break;
13481
13529
  g--;
13482
13530
  }
@@ -13587,11 +13635,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13587
13635
  PST: -8 * 60
13588
13636
  };
13589
13637
  function gl(i) {
13590
- var d, g, v = i._i, C = sh.exec(v) || ah.exec(v), P, U, fe, ve;
13638
+ var d, g, v = i._i, C = sh.exec(v) || ah.exec(v), R, U, fe, ve;
13591
13639
  if (C) {
13592
13640
  for (T(i).iso = !0, d = 0, g = bs.length; d < g; d++)
13593
13641
  if (bs[d][1].exec(C[1])) {
13594
- U = bs[d][0], P = bs[d][2] !== !1;
13642
+ U = bs[d][0], R = bs[d][2] !== !1;
13595
13643
  break;
13596
13644
  }
13597
13645
  if (U == null) {
@@ -13609,7 +13657,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13609
13657
  return;
13610
13658
  }
13611
13659
  }
13612
- if (!P && fe != null) {
13660
+ if (!R && fe != null) {
13613
13661
  i._isValid = !1;
13614
13662
  return;
13615
13663
  }
@@ -13624,7 +13672,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13624
13672
  } else
13625
13673
  i._isValid = !1;
13626
13674
  }
13627
- function dh(i, d, g, v, C, P) {
13675
+ function dh(i, d, g, v, C, R) {
13628
13676
  var U = [
13629
13677
  ph(i),
13630
13678
  sl.indexOf(d),
@@ -13632,7 +13680,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13632
13680
  parseInt(v, 10),
13633
13681
  parseInt(C, 10)
13634
13682
  ];
13635
- return P && U.push(parseInt(P, 10)), U;
13683
+ return R && U.push(parseInt(R, 10)), U;
13636
13684
  }
13637
13685
  function ph(i) {
13638
13686
  var d = parseInt(i, 10);
@@ -13658,8 +13706,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13658
13706
  return ch[i];
13659
13707
  if (d)
13660
13708
  return 0;
13661
- var v = parseInt(g, 10), C = v % 100, P = (v - C) / 100;
13662
- return P * 60 + C;
13709
+ var v = parseInt(g, 10), C = v % 100, R = (v - C) / 100;
13710
+ return R * 60 + C;
13663
13711
  }
13664
13712
  function Sl(i) {
13665
13713
  var d = lh.exec(uh(i._i)), g;
@@ -13711,7 +13759,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13711
13759
  ] : [d.getFullYear(), d.getMonth(), d.getDate()];
13712
13760
  }
13713
13761
  function Ia(i) {
13714
- var d, g, v = [], C, P, U;
13762
+ var d, g, v = [], C, R, U;
13715
13763
  if (!i._d) {
13716
13764
  for (C = gh(i), i._w && i._a[Bt] == null && i._a[Gt] == null && Sh(i), i._dayOfYear != null && (U = Hn(i._a[et], C[et]), (i._dayOfYear > _r(U) || i._dayOfYear === 0) && (T(i)._overflowDayOfYear = !0), g = Lr(U, 0, i._dayOfYear), i._a[Gt] = g.getUTCMonth(), i._a[Bt] = g.getUTCDate()), d = 0; d < 3 && i._a[d] == null; ++d)
13717
13765
  i._a[d] = v[d] = C[d];
@@ -13720,16 +13768,16 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13720
13768
  i._a[ze] === 24 && i._a[Nt] === 0 && i._a[Ut] === 0 && i._a[Tn] === 0 && (i._nextDay = !0, i._a[ze] = 0), i._d = (i._useUTC ? Lr : Cf).apply(
13721
13769
  null,
13722
13770
  v
13723
- ), P = i._useUTC ? i._d.getUTCDay() : i._d.getDay(), i._tzm != null && i._d.setUTCMinutes(i._d.getUTCMinutes() - i._tzm), i._nextDay && (i._a[ze] = 24), i._w && typeof i._w.d < "u" && i._w.d !== P && (T(i).weekdayMismatch = !0);
13771
+ ), R = i._useUTC ? i._d.getUTCDay() : i._d.getDay(), i._tzm != null && i._d.setUTCMinutes(i._d.getUTCMinutes() - i._tzm), i._nextDay && (i._a[ze] = 24), i._w && typeof i._w.d < "u" && i._w.d !== R && (T(i).weekdayMismatch = !0);
13724
13772
  }
13725
13773
  }
13726
13774
  function Sh(i) {
13727
- var d, g, v, C, P, U, fe, ve, Oe;
13728
- d = i._w, d.GG != null || d.W != null || d.E != null ? (P = 1, U = 4, g = Hn(
13775
+ var d, g, v, C, R, U, fe, ve, Oe;
13776
+ d = i._w, d.GG != null || d.W != null || d.E != null ? (R = 1, U = 4, g = Hn(
13729
13777
  d.GG,
13730
13778
  i._a[et],
13731
13779
  Or(Pe(), 1, 4).year
13732
- ), v = Hn(d.W, 1), C = Hn(d.E, 1), (C < 1 || C > 7) && (ve = !0)) : (P = i._locale._week.dow, U = i._locale._week.doy, Oe = Or(Pe(), P, U), g = Hn(d.gg, i._a[et], Oe.year), v = Hn(d.w, Oe.week), d.d != null ? (C = d.d, (C < 0 || C > 6) && (ve = !0)) : d.e != null ? (C = d.e + P, (d.e < 0 || d.e > 6) && (ve = !0)) : C = P), v < 1 || v > Yt(g, P, U) ? T(i)._overflowWeeks = !0 : ve != null ? T(i)._overflowWeekday = !0 : (fe = dl(g, v, C, P, U), i._a[et] = fe.year, i._dayOfYear = fe.dayOfYear);
13780
+ ), v = Hn(d.W, 1), C = Hn(d.E, 1), (C < 1 || C > 7) && (ve = !0)) : (R = i._locale._week.dow, U = i._locale._week.doy, Oe = Or(Pe(), R, U), g = Hn(d.gg, i._a[et], Oe.year), v = Hn(d.w, Oe.week), d.d != null ? (C = d.d, (C < 0 || C > 6) && (ve = !0)) : d.e != null ? (C = d.e + R, (d.e < 0 || d.e > 6) && (ve = !0)) : C = R), v < 1 || v > Yt(g, R, U) ? T(i)._overflowWeeks = !0 : ve != null ? T(i)._overflowWeekday = !0 : (fe = dl(g, v, C, R, U), i._a[et] = fe.year, i._dayOfYear = fe.dayOfYear);
13733
13781
  }
13734
13782
  r.ISO_8601 = function() {
13735
13783
  }, r.RFC_2822 = function() {
@@ -13744,11 +13792,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13744
13792
  return;
13745
13793
  }
13746
13794
  i._a = [], T(i).empty = !0;
13747
- var d = "" + i._i, g, v, C, P, U, fe = d.length, ve = 0, Oe;
13795
+ var d = "" + i._i, g, v, C, R, U, fe = d.length, ve = 0, Oe;
13748
13796
  for (C = ee(i._f, i._locale).match(z) || [], g = 0; g < C.length; g++)
13749
- P = C[g], v = (d.match(of(P, i)) || [])[0], v && (U = d.substr(0, d.indexOf(v)), U.length > 0 && T(i).unusedInput.push(U), d = d.slice(
13797
+ R = C[g], v = (d.match(of(R, i)) || [])[0], v && (U = d.substr(0, d.indexOf(v)), U.length > 0 && T(i).unusedInput.push(U), d = d.slice(
13750
13798
  d.indexOf(v) + v.length
13751
- ), ve += v.length), X[P] ? (v ? T(i).empty = !1 : T(i).unusedTokens.push(P), cf(P, v, i)) : i._strict && !v && T(i).unusedTokens.push(P);
13799
+ ), ve += v.length), X[R] ? (v ? T(i).empty = !1 : T(i).unusedTokens.push(R), cf(R, v, i)) : i._strict && !v && T(i).unusedTokens.push(R);
13752
13800
  T(i).charsLeftOver = fe - ve, d.length > 0 && T(i).unusedInput.push(d), i._a[ze] <= 12 && T(i).bigHour === !0 && i._a[ze] > 0 && (T(i).bigHour = void 0), T(i).parsedDateParts = i._a.slice(0), T(i).meridiem = i._meridiem, i._a[ze] = bh(
13753
13801
  i._locale,
13754
13802
  i._a[ze],
@@ -13760,13 +13808,13 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13760
13808
  return g == null ? d : i.meridiemHour != null ? i.meridiemHour(d, g) : (i.isPM != null && (v = i.isPM(g), v && d < 12 && (d += 12), !v && d === 12 && (d = 0)), d);
13761
13809
  }
13762
13810
  function vh(i) {
13763
- var d, g, v, C, P, U, fe = !1;
13811
+ var d, g, v, C, R, U, fe = !1;
13764
13812
  if (i._f.length === 0) {
13765
13813
  T(i).invalidFormat = !0, i._d = new Date(NaN);
13766
13814
  return;
13767
13815
  }
13768
13816
  for (C = 0; C < i._f.length; C++)
13769
- P = 0, U = !1, d = O({}, i), i._useUTC != null && (d._useUTC = i._useUTC), d._f = i._f[C], ka(d), x(d) && (U = !0), P += T(d).charsLeftOver, P += T(d).unusedTokens.length * 10, T(d).score = P, fe ? P < v && (v = P, g = d) : (v == null || P < v || U) && (v = P, g = d, U && (fe = !0));
13817
+ R = 0, U = !1, d = O({}, i), i._useUTC != null && (d._useUTC = i._useUTC), d._f = i._f[C], ka(d), x(d) && (U = !0), R += T(d).charsLeftOver, R += T(d).unusedTokens.length * 10, T(d).score = R, fe ? R < v && (v = R, g = d) : (v == null || R < v || U) && (v = R, g = d, U && (fe = !0));
13770
13818
  S(i, g || d);
13771
13819
  }
13772
13820
  function yh(i) {
@@ -13795,8 +13843,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13795
13843
  }), Ia(i)) : l(d) ? yh(i) : m(d) ? i._d = new Date(d) : r.createFromInputFallback(i);
13796
13844
  }
13797
13845
  function vl(i, d, g, v, C) {
13798
- var P = {};
13799
- return (d === !0 || d === !1) && (v = d, d = void 0), (g === !0 || g === !1) && (v = g, g = void 0), (l(i) && p(i) || o(i) && i.length === 0) && (i = void 0), P._isAMomentObject = !0, P._useUTC = P._isUTC = C, P._l = g, P._i = i, P._f = d, P._strict = v, Eh(P);
13846
+ var R = {};
13847
+ return (d === !0 || d === !1) && (v = d, d = void 0), (g === !0 || g === !1) && (v = g, g = void 0), (l(i) && p(i) || o(i) && i.length === 0) && (i = void 0), R._isAMomentObject = !0, R._useUTC = R._isUTC = C, R._l = g, R._i = i, R._f = d, R._strict = v, Eh(R);
13800
13848
  }
13801
13849
  function Pe(i, d, g, v) {
13802
13850
  return vl(i, d, g, v, !1);
@@ -13863,8 +13911,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13863
13911
  return xt(NaN);
13864
13912
  }
13865
13913
  function vs(i) {
13866
- var d = Me(i), g = d.year || 0, v = d.quarter || 0, C = d.month || 0, P = d.week || d.isoWeek || 0, U = d.day || 0, fe = d.hour || 0, ve = d.minute || 0, Oe = d.second || 0, At = d.millisecond || 0;
13867
- this._isValid = Ih(d), this._milliseconds = +At + Oe * 1e3 + ve * 6e4 + fe * 1e3 * 60 * 60, this._days = +U + P * 7, this._months = +C + v * 3 + g * 12, this._data = {}, this._locale = jt(), this._bubble();
13914
+ var d = Me(i), g = d.year || 0, v = d.quarter || 0, C = d.month || 0, R = d.week || d.isoWeek || 0, U = d.day || 0, fe = d.hour || 0, ve = d.minute || 0, Oe = d.second || 0, At = d.millisecond || 0;
13915
+ this._isValid = Ih(d), this._milliseconds = +At + Oe * 1e3 + ve * 6e4 + fe * 1e3 * 60 * 60, this._days = +U + R * 7, this._months = +C + v * 3 + g * 12, this._data = {}, this._locale = jt(), this._bubble();
13868
13916
  }
13869
13917
  function ys(i) {
13870
13918
  return i instanceof vs;
@@ -13873,10 +13921,10 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13873
13921
  return i < 0 ? Math.round(-1 * i) * -1 : Math.round(i);
13874
13922
  }
13875
13923
  function _h(i, d, g) {
13876
- var v = Math.min(i.length, d.length), C = Math.abs(i.length - d.length), P = 0, U;
13924
+ var v = Math.min(i.length, d.length), C = Math.abs(i.length - d.length), R = 0, U;
13877
13925
  for (U = 0; U < v; U++)
13878
- (g && i[U] !== d[U] || !g && Se(i[U]) !== Se(d[U])) && P++;
13879
- return P + C;
13926
+ (g && i[U] !== d[U] || !g && Se(i[U]) !== Se(d[U])) && R++;
13927
+ return R + C;
13880
13928
  }
13881
13929
  function El(i, d) {
13882
13930
  G(i, 0, 0, function() {
@@ -13889,8 +13937,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13889
13937
  });
13890
13938
  var Lh = /([\+\-]|\d\d)/gi;
13891
13939
  function _a(i, d) {
13892
- var g = (d || "").match(i), v, C, P;
13893
- return g === null ? null : (v = g[g.length - 1] || [], C = (v + "").match(Lh) || ["-", 0, 0], P = +(C[1] * 60) + Se(C[2]), P === 0 ? 0 : C[0] === "+" ? P : -P);
13940
+ var g = (d || "").match(i), v, C, R;
13941
+ return g === null ? null : (v = g[g.length - 1] || [], C = (v + "").match(Lh) || ["-", 0, 0], R = +(C[1] * 60) + Se(C[2]), R === 0 ? 0 : C[0] === "+" ? R : -R);
13894
13942
  }
13895
13943
  function La(i, d) {
13896
13944
  var g, v;
@@ -13961,7 +14009,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13961
14009
  }
13962
14010
  var Wh = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Gh = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
13963
14011
  function xt(i, d) {
13964
- var g = i, v = null, C, P, U;
14012
+ var g = i, v = null, C, R, U;
13965
14013
  return ys(i) ? g = {
13966
14014
  ms: i._milliseconds,
13967
14015
  d: i._days,
@@ -13984,7 +14032,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
13984
14032
  }) : g == null ? g = {} : typeof g == "object" && ("from" in g || "to" in g) && (U = Uh(
13985
14033
  Pe(g.from),
13986
14034
  Pe(g.to)
13987
- ), g = {}, g.ms = U.milliseconds, g.M = U.months), P = new vs(g), ys(i) && c(i, "_locale") && (P._locale = i._locale), ys(i) && c(i, "_isValid") && (P._isValid = i._isValid), P;
14035
+ ), g = {}, g.ms = U.milliseconds, g.M = U.months), R = new vs(g), ys(i) && c(i, "_locale") && (R._locale = i._locale), ys(i) && c(i, "_isValid") && (R._isValid = i._isValid), R;
13988
14036
  }
13989
14037
  xt.fn = vs.prototype, xt.invalid = Mh;
13990
14038
  function wn(i, d) {
@@ -14001,16 +14049,16 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14001
14049
  }
14002
14050
  function Cl(i, d) {
14003
14051
  return function(g, v) {
14004
- var C, P;
14052
+ var C, R;
14005
14053
  return v !== null && !isNaN(+v) && ($(
14006
14054
  d,
14007
14055
  "moment()." + d + "(period, number) is deprecated. Please use moment()." + d + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
14008
- ), P = g, g = v, v = P), C = xt(g, v), Dl(this, C, i), this;
14056
+ ), R = g, g = v, v = R), C = xt(g, v), Dl(this, C, i), this;
14009
14057
  };
14010
14058
  }
14011
14059
  function Dl(i, d, g, v) {
14012
- var C = d._milliseconds, P = Ma(d._days), U = Ma(d._months);
14013
- !i.isValid() || (v = v == null ? !0 : v, U && ol(i, Pt(i, "Month") + U * g), P && Cr(i, "Date", Pt(i, "Date") + P * g), C && i._d.setTime(i._d.valueOf() + C * g), v && r.updateOffset(i, P || U));
14060
+ var C = d._milliseconds, R = Ma(d._days), U = Ma(d._months);
14061
+ !i.isValid() || (v = v == null ? !0 : v, U && ol(i, Pt(i, "Month") + U * g), R && Cr(i, "Date", Pt(i, "Date") + R * g), C && i._d.setTime(i._d.valueOf() + C * g), v && r.updateOffset(i, R || U));
14014
14062
  }
14015
14063
  var Yh = Cl(1, "add"), jh = Cl(-1, "subtract");
14016
14064
  function Nl(i) {
@@ -14045,9 +14093,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14045
14093
  "milliseconds",
14046
14094
  "millisecond",
14047
14095
  "ms"
14048
- ], C, P;
14096
+ ], C, R;
14049
14097
  for (C = 0; C < v.length; C += 1)
14050
- P = v[C], g = g || c(i, P);
14098
+ R = v[C], g = g || c(i, R);
14051
14099
  return d && g;
14052
14100
  }
14053
14101
  function Jh(i) {
@@ -14064,9 +14112,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14064
14112
  "nextWeek",
14065
14113
  "lastWeek",
14066
14114
  "sameElse"
14067
- ], C, P;
14115
+ ], C, R;
14068
14116
  for (C = 0; C < v.length; C += 1)
14069
- P = v[C], g = g || c(i, P);
14117
+ R = v[C], g = g || c(i, R);
14070
14118
  return d && g;
14071
14119
  }
14072
14120
  function Xh(i, d) {
@@ -14075,9 +14123,9 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14075
14123
  }
14076
14124
  function Qh(i, d) {
14077
14125
  arguments.length === 1 && (arguments[0] ? zh(arguments[0]) ? (i = arguments[0], d = void 0) : Zh(arguments[0]) && (d = arguments[0], i = void 0) : (i = void 0, d = void 0));
14078
- var g = i || Pe(), v = La(g, this).startOf("day"), C = r.calendarFormat(this, v) || "sameElse", P = d && (N(d[C]) ? d[C].call(this, g) : d[C]);
14126
+ var g = i || Pe(), v = La(g, this).startOf("day"), C = r.calendarFormat(this, v) || "sameElse", R = d && (N(d[C]) ? d[C].call(this, g) : d[C]);
14079
14127
  return this.format(
14080
- P || this.localeData().calendar(C, this, Pe(g))
14128
+ R || this.localeData().calendar(C, this, Pe(g))
14081
14129
  );
14082
14130
  }
14083
14131
  function eg() {
@@ -14092,8 +14140,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14092
14140
  return this.isValid() && g.isValid() ? (d = Ne(d) || "millisecond", d === "millisecond" ? this.valueOf() < g.valueOf() : this.clone().endOf(d).valueOf() < g.valueOf()) : !1;
14093
14141
  }
14094
14142
  function rg(i, d, g, v) {
14095
- var C = L(i) ? i : Pe(i), P = L(d) ? d : Pe(d);
14096
- return this.isValid() && C.isValid() && P.isValid() ? (v = v || "()", (v[0] === "(" ? this.isAfter(C, g) : !this.isBefore(C, g)) && (v[1] === ")" ? this.isBefore(P, g) : !this.isAfter(P, g))) : !1;
14143
+ var C = L(i) ? i : Pe(i), R = L(d) ? d : Pe(d);
14144
+ return this.isValid() && C.isValid() && R.isValid() ? (v = v || "()", (v[0] === "(" ? this.isAfter(C, g) : !this.isBefore(C, g)) && (v[1] === ")" ? this.isBefore(R, g) : !this.isAfter(R, g))) : !1;
14097
14145
  }
14098
14146
  function sg(i, d) {
14099
14147
  var g = L(i) ? i : Pe(i), v;
@@ -14106,46 +14154,46 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14106
14154
  return this.isSame(i, d) || this.isBefore(i, d);
14107
14155
  }
14108
14156
  function ig(i, d, g) {
14109
- var v, C, P;
14157
+ var v, C, R;
14110
14158
  if (!this.isValid())
14111
14159
  return NaN;
14112
14160
  if (v = La(i, this), !v.isValid())
14113
14161
  return NaN;
14114
14162
  switch (C = (v.utcOffset() - this.utcOffset()) * 6e4, d = Ne(d), d) {
14115
14163
  case "year":
14116
- P = Es(this, v) / 12;
14164
+ R = Es(this, v) / 12;
14117
14165
  break;
14118
14166
  case "month":
14119
- P = Es(this, v);
14167
+ R = Es(this, v);
14120
14168
  break;
14121
14169
  case "quarter":
14122
- P = Es(this, v) / 3;
14170
+ R = Es(this, v) / 3;
14123
14171
  break;
14124
14172
  case "second":
14125
- P = (this - v) / 1e3;
14173
+ R = (this - v) / 1e3;
14126
14174
  break;
14127
14175
  case "minute":
14128
- P = (this - v) / 6e4;
14176
+ R = (this - v) / 6e4;
14129
14177
  break;
14130
14178
  case "hour":
14131
- P = (this - v) / 36e5;
14179
+ R = (this - v) / 36e5;
14132
14180
  break;
14133
14181
  case "day":
14134
- P = (this - v - C) / 864e5;
14182
+ R = (this - v - C) / 864e5;
14135
14183
  break;
14136
14184
  case "week":
14137
- P = (this - v - C) / 6048e5;
14185
+ R = (this - v - C) / 6048e5;
14138
14186
  break;
14139
14187
  default:
14140
- P = this - v;
14188
+ R = this - v;
14141
14189
  }
14142
- return g ? P : dt(P);
14190
+ return g ? R : dt(R);
14143
14191
  }
14144
14192
  function Es(i, d) {
14145
14193
  if (i.date() < d.date())
14146
14194
  return -Es(d, i);
14147
- var g = (d.year() - i.year()) * 12 + (d.month() - i.month()), v = i.clone().add(g, "months"), C, P;
14148
- return d - v < 0 ? (C = i.clone().add(g - 1, "months"), P = (d - v) / (v - C)) : (C = i.clone().add(g + 1, "months"), P = (d - v) / (C - v)), -(g + P) || 0;
14195
+ var g = (d.year() - i.year()) * 12 + (d.month() - i.month()), v = i.clone().add(g, "months"), C, R;
14196
+ return d - v < 0 ? (C = i.clone().add(g - 1, "months"), R = (d - v) / (v - C)) : (C = i.clone().add(g + 1, "months"), R = (d - v) / (C - v)), -(g + R) || 0;
14149
14197
  }
14150
14198
  r.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ", r.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
14151
14199
  function lg() {
@@ -14166,8 +14214,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14166
14214
  function dg() {
14167
14215
  if (!this.isValid())
14168
14216
  return "moment.invalid(/* " + this._i + " */)";
14169
- var i = "moment", d = "", g, v, C, P;
14170
- return this.isLocal() || (i = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", d = "Z"), g = "[" + i + '("]', v = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", C = "-MM-DD[T]HH:mm:ss.SSS", P = d + '[")]', this.format(g + v + C + P);
14217
+ var i = "moment", d = "", g, v, C, R;
14218
+ return this.isLocal() || (i = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", d = "Z"), g = "[" + i + '("]', v = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", C = "-MM-DD[T]HH:mm:ss.SSS", R = d + '[")]', this.format(g + v + C + R);
14171
14219
  }
14172
14220
  function pg(i) {
14173
14221
  i || (i = this.isUtc() ? r.defaultFormatUtc : r.defaultFormat);
@@ -14373,46 +14421,46 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14373
14421
  g._locale._eraYearOrdinalRegex && (C = i.match(g._locale._eraYearOrdinalRegex)), g._locale.eraYearOrdinalParse ? d[et] = g._locale.eraYearOrdinalParse(i, C) : d[et] = parseInt(i, 10);
14374
14422
  });
14375
14423
  function Ig(i, d) {
14376
- var g, v, C, P = this._eras || jt("en")._eras;
14377
- for (g = 0, v = P.length; g < v; ++g) {
14378
- switch (typeof P[g].since) {
14424
+ var g, v, C, R = this._eras || jt("en")._eras;
14425
+ for (g = 0, v = R.length; g < v; ++g) {
14426
+ switch (typeof R[g].since) {
14379
14427
  case "string":
14380
- C = r(P[g].since).startOf("day"), P[g].since = C.valueOf();
14428
+ C = r(R[g].since).startOf("day"), R[g].since = C.valueOf();
14381
14429
  break;
14382
14430
  }
14383
- switch (typeof P[g].until) {
14431
+ switch (typeof R[g].until) {
14384
14432
  case "undefined":
14385
- P[g].until = 1 / 0;
14433
+ R[g].until = 1 / 0;
14386
14434
  break;
14387
14435
  case "string":
14388
- C = r(P[g].until).startOf("day").valueOf(), P[g].until = C.valueOf();
14436
+ C = r(R[g].until).startOf("day").valueOf(), R[g].until = C.valueOf();
14389
14437
  break;
14390
14438
  }
14391
14439
  }
14392
- return P;
14440
+ return R;
14393
14441
  }
14394
14442
  function kg(i, d, g) {
14395
- var v, C, P = this.eras(), U, fe, ve;
14396
- for (i = i.toUpperCase(), v = 0, C = P.length; v < C; ++v)
14397
- if (U = P[v].name.toUpperCase(), fe = P[v].abbr.toUpperCase(), ve = P[v].narrow.toUpperCase(), g)
14443
+ var v, C, R = this.eras(), U, fe, ve;
14444
+ for (i = i.toUpperCase(), v = 0, C = R.length; v < C; ++v)
14445
+ if (U = R[v].name.toUpperCase(), fe = R[v].abbr.toUpperCase(), ve = R[v].narrow.toUpperCase(), g)
14398
14446
  switch (d) {
14399
14447
  case "N":
14400
14448
  case "NN":
14401
14449
  case "NNN":
14402
14450
  if (fe === i)
14403
- return P[v];
14451
+ return R[v];
14404
14452
  break;
14405
14453
  case "NNNN":
14406
14454
  if (U === i)
14407
- return P[v];
14455
+ return R[v];
14408
14456
  break;
14409
14457
  case "NNNNN":
14410
14458
  if (ve === i)
14411
- return P[v];
14459
+ return R[v];
14412
14460
  break;
14413
14461
  }
14414
14462
  else if ([U, fe, ve].indexOf(i) >= 0)
14415
- return P[v];
14463
+ return R[v];
14416
14464
  }
14417
14465
  function Mg(i, d) {
14418
14466
  var g = i.since <= i.until ? 1 : -1;
@@ -14468,8 +14516,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14468
14516
  return d._eraYearOrdinalRegex || Kn;
14469
14517
  }
14470
14518
  function Pa() {
14471
- var i = [], d = [], g = [], v = [], C, P, U = this.eras();
14472
- for (C = 0, P = U.length; C < P; ++C)
14519
+ var i = [], d = [], g = [], v = [], C, R, U = this.eras();
14520
+ for (C = 0, R = U.length; C < R; ++C)
14473
14521
  d.push(mt(U[C].name)), i.push(mt(U[C].abbr)), g.push(mt(U[C].narrow)), v.push(mt(U[C].name)), v.push(mt(U[C].abbr)), v.push(mt(U[C].narrow));
14474
14522
  this._erasRegex = new RegExp("^(" + v.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + d.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
14475
14523
  "^(" + g.join("|") + ")",
@@ -14524,11 +14572,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14524
14572
  return Yt(this.weekYear(), i.dow, i.doy);
14525
14573
  }
14526
14574
  function Ol(i, d, g, v, C) {
14527
- var P;
14528
- return i == null ? Or(this, v, C).year : (P = Yt(i, v, C), d > P && (d = P), jg.call(this, i, d, g, v, C));
14575
+ var R;
14576
+ return i == null ? Or(this, v, C).year : (R = Yt(i, v, C), d > R && (d = R), jg.call(this, i, d, g, v, C));
14529
14577
  }
14530
14578
  function jg(i, d, g, v, C) {
14531
- var P = dl(i, d, g, v, C), U = Lr(P.year, 0, P.dayOfYear);
14579
+ var R = dl(i, d, g, v, C), U = Lr(R.year, 0, R.dayOfYear);
14532
14580
  return this.year(U.getUTCFullYear()), this.month(U.getUTCMonth()), this.date(U.getUTCDate()), this;
14533
14581
  }
14534
14582
  G("Q", 0, "Qo", "quarter"), de("quarter", "Q"), we("quarter", 7), ie("Q", ds), _e("Q", function(i, d) {
@@ -14619,8 +14667,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14619
14667
  var xe = q.prototype;
14620
14668
  xe.calendar = H, xe.longDateFormat = De, xe.invalidDate = Ze, xe.ordinal = St, xe.preparse = Bl, xe.postformat = Bl, xe.relativeTime = ge, xe.pastFuture = Ae, xe.set = A, xe.eras = Ig, xe.erasParse = kg, xe.erasConvertYear = Mg, xe.erasAbbrRegex = Bg, xe.erasNameRegex = Pg, xe.erasNarrowRegex = Ag, xe.months = gf, xe.monthsShort = Sf, xe.monthsParse = vf, xe.monthsRegex = Tf, xe.monthsShortRegex = Ef, xe.week = Df, xe.firstDayOfYear = If, xe.firstDayOfWeek = xf, xe.weekdays = Ff, xe.weekdaysMin = Vf, xe.weekdaysShort = $f, xe.weekdaysParse = Hf, xe.weekdaysRegex = Yf, xe.weekdaysShortRegex = jf, xe.weekdaysMinRegex = zf, xe.isPM = Jf, xe.meridiem = Qf;
14621
14669
  function Ds(i, d, g, v) {
14622
- var C = jt(), P = y().set(v, d);
14623
- return C[g](P, i);
14670
+ var C = jt(), R = y().set(v, d);
14671
+ return C[g](R, i);
14624
14672
  }
14625
14673
  function Al(i, d, g) {
14626
14674
  if (m(i) && (d = i, i = void 0), i = i || "", d != null)
@@ -14632,11 +14680,11 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14632
14680
  }
14633
14681
  function Ba(i, d, g, v) {
14634
14682
  typeof i == "boolean" ? (m(d) && (g = d, d = void 0), d = d || "") : (d = i, g = d, i = !1, m(d) && (g = d, d = void 0), d = d || "");
14635
- var C = jt(), P = i ? C._week.dow : 0, U, fe = [];
14683
+ var C = jt(), R = i ? C._week.dow : 0, U, fe = [];
14636
14684
  if (g != null)
14637
- return Ds(d, (g + P) % 7, v, "day");
14685
+ return Ds(d, (g + R) % 7, v, "day");
14638
14686
  for (U = 0; U < 7; U++)
14639
- fe[U] = Ds(d, (U + P) % 7, v, "day");
14687
+ fe[U] = Ds(d, (U + R) % 7, v, "day");
14640
14688
  return fe;
14641
14689
  }
14642
14690
  function rS(i, d) {
@@ -14704,8 +14752,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14704
14752
  return i < 0 ? Math.floor(i) : Math.ceil(i);
14705
14753
  }
14706
14754
  function pS() {
14707
- var i = this._milliseconds, d = this._days, g = this._months, v = this._data, C, P, U, fe, ve;
14708
- return i >= 0 && d >= 0 && g >= 0 || i <= 0 && d <= 0 && g <= 0 || (i += $l(Aa(g) + d) * 864e5, d = 0, g = 0), v.milliseconds = i % 1e3, C = dt(i / 1e3), v.seconds = C % 60, P = dt(C / 60), v.minutes = P % 60, U = dt(P / 60), v.hours = U % 24, d += dt(U / 24), ve = dt(Vl(d)), g += ve, d -= $l(Aa(ve)), fe = dt(g / 12), g %= 12, v.days = d, v.months = g, v.years = fe, this;
14755
+ var i = this._milliseconds, d = this._days, g = this._months, v = this._data, C, R, U, fe, ve;
14756
+ return i >= 0 && d >= 0 && g >= 0 || i <= 0 && d <= 0 && g <= 0 || (i += $l(Aa(g) + d) * 864e5, d = 0, g = 0), v.milliseconds = i % 1e3, C = dt(i / 1e3), v.seconds = C % 60, R = dt(C / 60), v.minutes = R % 60, U = dt(R / 60), v.hours = U % 24, d += dt(U / 24), ve = dt(Vl(d)), g += ve, d -= $l(Aa(ve)), fe = dt(g / 12), g %= 12, v.days = d, v.months = g, v.years = fe, this;
14709
14757
  }
14710
14758
  function Vl(i) {
14711
14759
  return i * 4800 / 146097;
@@ -14781,7 +14829,7 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14781
14829
  return C.relativeTime(d || 1, !!g, i, v);
14782
14830
  }
14783
14831
  function RS(i, d, g, v) {
14784
- var C = xt(i).abs(), P = Jt(C.as("s")), U = Jt(C.as("m")), fe = Jt(C.as("h")), ve = Jt(C.as("d")), Oe = Jt(C.as("M")), At = Jt(C.as("w")), Zt = Jt(C.as("y")), cn = P <= g.ss && ["s", P] || P < g.s && ["ss", P] || U <= 1 && ["m"] || U < g.m && ["mm", U] || fe <= 1 && ["h"] || fe < g.h && ["hh", fe] || ve <= 1 && ["d"] || ve < g.d && ["dd", ve];
14832
+ var C = xt(i).abs(), R = Jt(C.as("s")), U = Jt(C.as("m")), fe = Jt(C.as("h")), ve = Jt(C.as("d")), Oe = Jt(C.as("M")), At = Jt(C.as("w")), Zt = Jt(C.as("y")), cn = R <= g.ss && ["s", R] || R < g.s && ["ss", R] || U <= 1 && ["m"] || U < g.m && ["mm", U] || fe <= 1 && ["h"] || fe < g.h && ["hh", fe] || ve <= 1 && ["d"] || ve < g.d && ["dd", ve];
14785
14833
  return g.w != null && (cn = cn || At <= 1 && ["w"] || At < g.w && ["ww", At]), cn = cn || Oe <= 1 && ["M"] || Oe < g.M && ["MM", Oe] || Zt <= 1 && ["y"] || ["yy", Zt], cn[2] = d, cn[3] = +i > 0, cn[4] = v, OS.apply(null, cn);
14786
14834
  }
14787
14835
  function PS(i) {
@@ -14793,8 +14841,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14793
14841
  function AS(i, d) {
14794
14842
  if (!this.isValid())
14795
14843
  return this.localeData().invalidDate();
14796
- var g = !1, v = Un, C, P;
14797
- return typeof i == "object" && (d = i, i = !1), typeof i == "boolean" && (g = i), typeof d == "object" && (v = Object.assign({}, Un, d), d.s != null && d.ss == null && (v.ss = d.s - 1)), C = this.localeData(), P = RS(this, !g, v, C), g && (P = C.pastFuture(+this, P)), C.postformat(P);
14844
+ var g = !1, v = Un, C, R;
14845
+ return typeof i == "object" && (d = i, i = !1), typeof i == "boolean" && (g = i), typeof d == "object" && (v = Object.assign({}, Un, d), d.s != null && d.ss == null && (v.ss = d.s - 1)), C = this.localeData(), R = RS(this, !g, v, C), g && (R = C.pastFuture(+this, R)), C.postformat(R);
14798
14846
  }
14799
14847
  var Fa = Math.abs;
14800
14848
  function Yn(i) {
@@ -14803,8 +14851,8 @@ Arguments: ` + Array.prototype.slice.call(v).join("") + `
14803
14851
  function Ns() {
14804
14852
  if (!this.isValid())
14805
14853
  return this.localeData().invalidDate();
14806
- var i = Fa(this._milliseconds) / 1e3, d = Fa(this._days), g = Fa(this._months), v, C, P, U, fe = this.asSeconds(), ve, Oe, At, Zt;
14807
- return fe ? (v = dt(i / 60), C = dt(v / 60), i %= 60, v %= 60, P = dt(g / 12), g %= 12, U = i ? i.toFixed(3).replace(/\.?0+$/, "") : "", ve = fe < 0 ? "-" : "", Oe = Yn(this._months) !== Yn(fe) ? "-" : "", At = Yn(this._days) !== Yn(fe) ? "-" : "", Zt = Yn(this._milliseconds) !== Yn(fe) ? "-" : "", ve + "P" + (P ? Oe + P + "Y" : "") + (g ? Oe + g + "M" : "") + (d ? At + d + "D" : "") + (C || v || i ? "T" : "") + (C ? Zt + C + "H" : "") + (v ? Zt + v + "M" : "") + (i ? Zt + U + "S" : "")) : "P0D";
14854
+ var i = Fa(this._milliseconds) / 1e3, d = Fa(this._days), g = Fa(this._months), v, C, R, U, fe = this.asSeconds(), ve, Oe, At, Zt;
14855
+ return fe ? (v = dt(i / 60), C = dt(v / 60), i %= 60, v %= 60, R = dt(g / 12), g %= 12, U = i ? i.toFixed(3).replace(/\.?0+$/, "") : "", ve = fe < 0 ? "-" : "", Oe = Yn(this._months) !== Yn(fe) ? "-" : "", At = Yn(this._days) !== Yn(fe) ? "-" : "", Zt = Yn(this._milliseconds) !== Yn(fe) ? "-" : "", ve + "P" + (R ? Oe + R + "Y" : "") + (g ? Oe + g + "M" : "") + (d ? At + d + "D" : "") + (C || v || i ? "T" : "") + (C ? Zt + C + "H" : "") + (v ? Zt + v + "M" : "") + (i ? Zt + U + "S" : "")) : "P0D";
14808
14856
  }
14809
14857
  var Ee = vs.prototype;
14810
14858
  Ee.isValid = kh, Ee.abs = lS, Ee.add = cS, Ee.subtract = dS, Ee.as = uS, Ee.asMilliseconds = fS, Ee.asSeconds = hS, Ee.asMinutes = gS, Ee.asHours = SS, Ee.asDays = bS, Ee.asWeeks = vS, Ee.asMonths = yS, Ee.asQuarters = ES, Ee.asYears = TS, Ee.valueOf = mS, Ee._bubble = pS, Ee.clone = wS, Ee.get = CS, Ee.milliseconds = DS, Ee.seconds = NS, Ee.minutes = xS, Ee.hours = IS, Ee.days = kS, Ee.weeks = LS, Ee.months = MS, Ee.years = _S, Ee.humanize = AS, Ee.toISOString = Ns, Ee.toString = Ns, Ee.toJSON = Ns, Ee.locale = xl, Ee.localeData = kl, Ee.toIsoString = K(
@@ -15785,7 +15833,7 @@ function Lt({
15785
15833
  return D(!0), !0;
15786
15834
  }, []), L = s.useCallback((J) => {
15787
15835
  J && J.stopPropagation(), D((H) => H ? (O(), !1) : M());
15788
- }, []), R = s.useCallback((J) => {
15836
+ }, []), P = s.useCallback((J) => {
15789
15837
  x.current && !x.current.contains(J.target) && O();
15790
15838
  }, []), K = s.useCallback(() => {
15791
15839
  I(), w.current.hideTimer = window.setTimeout(O, a);
@@ -15831,7 +15879,7 @@ function Lt({
15831
15879
  k.current.addEventListener("mouseenter", M), k.current.addEventListener("mouseleave", K);
15832
15880
  break;
15833
15881
  case it.CLICK:
15834
- k.current.addEventListener("click", L), document.addEventListener("click", R);
15882
+ k.current.addEventListener("click", L), document.addEventListener("click", P);
15835
15883
  break;
15836
15884
  case it.MANUAL:
15837
15885
  break;
@@ -15841,7 +15889,7 @@ function Lt({
15841
15889
  ((J = x.current) == null ? void 0 : J.textContent) === "" && T && (w.current.hideTimer && (clearTimeout(w.current.hideTimer), w.current.hideTimer = null), D(!1));
15842
15890
  }, [e, T]), s.useEffect(
15843
15891
  () => () => {
15844
- In.has(w.current.instanceKey) && In.delete(w.current.instanceKey), k.current && (k.current.removeEventListener("mouseenter", M), k.current.removeEventListener("mouseleave", K), k.current.removeEventListener("click", L), document.removeEventListener("click", R));
15892
+ In.has(w.current.instanceKey) && In.delete(w.current.instanceKey), k.current && (k.current.removeEventListener("mouseenter", M), k.current.removeEventListener("mouseleave", K), k.current.removeEventListener("click", L), document.removeEventListener("click", P));
15845
15893
  },
15846
15894
  []
15847
15895
  );
@@ -16932,7 +16980,7 @@ function Bu({
16932
16980
  u && !O && "sps-fieldset--collapsed",
16933
16981
  p && "sps-fieldset--required-fields"
16934
16982
  );
16935
- function R() {
16983
+ function P() {
16936
16984
  k(x === ye.VISIBLE ? ye.HIDDEN : ye.VISIBLE);
16937
16985
  }
16938
16986
  return /* @__PURE__ */ s.createElement("div", {
@@ -16945,7 +16993,7 @@ function Bu({
16945
16993
  ref: T,
16946
16994
  onMouseEnter: () => k(ye.VISIBLE),
16947
16995
  onMouseLeave: () => k(ye.DELAYED_HIDDEN),
16948
- onClick: R
16996
+ onClick: P
16949
16997
  }, u && /* @__PURE__ */ s.createElement(vr, {
16950
16998
  checked: O,
16951
16999
  className: "d-inline-flex pr-1",
@@ -17508,8 +17556,8 @@ function _i(e) {
17508
17556
  l || (D.current = T());
17509
17557
  }
17510
17558
  function k() {
17511
- for (const R of D.current)
17512
- window.clearTimeout(R);
17559
+ for (const P of D.current)
17560
+ window.clearTimeout(P);
17513
17561
  D.current = [];
17514
17562
  }
17515
17563
  function b() {
@@ -18058,34 +18106,34 @@ function Fu({
18058
18106
  const { t: h } = s.useContext(Be), S = s.useRef(null), y = s.useRef(null), w = s.useRef(null), T = s.useRef(null), [D, x] = s.useState(ye.HIDDEN), [k, b] = s.useState(ye.HIDDEN), [I, O] = s.useState(ye.HIDDEN), [M, L] = s.useState(
18059
18107
  ye.HIDDEN
18060
18108
  );
18061
- function R() {
18109
+ function P() {
18062
18110
  x(ye.HIDDEN), b(ye.HIDDEN), O(ye.HIDDEN), L(ye.HIDDEN);
18063
18111
  }
18064
18112
  function K() {
18065
18113
  x(ye.DELAYED_HIDDEN), b(ye.DELAYED_HIDDEN), O(ye.DELAYED_HIDDEN);
18066
18114
  }
18067
18115
  function _(te) {
18068
- te.preventDefault(), R(), O(po(I));
18116
+ te.preventDefault(), P(), O(po(I));
18069
18117
  }
18070
18118
  function $() {
18071
18119
  return r && (r instanceof rr && r.isVisibilyInvalid() || !(r instanceof rr) && !r.isValid()) ? [k, b] : r && r instanceof rr && r.hasPreventativeErrors() ? [M, L] : o ? [D, x] : a ? [I, O] : [ye.HIDDEN, () => {
18072
18120
  }];
18073
18121
  }
18074
18122
  function N() {
18075
- R();
18123
+ P();
18076
18124
  const [te, X] = $();
18077
18125
  X(po(te));
18078
18126
  }
18079
18127
  function A() {
18080
- R();
18128
+ P();
18081
18129
  const [, te] = $();
18082
18130
  te(ye.VISIBLE);
18083
18131
  }
18084
18132
  function Q(te) {
18085
- te.preventDefault(), R(), x(po(D));
18133
+ te.preventDefault(), P(), x(po(D));
18086
18134
  }
18087
18135
  s.useEffect(() => {
18088
- r && (r.onFocus = A, r.onBlur = R);
18136
+ r && (r.onFocus = A, r.onBlur = P);
18089
18137
  }, [r]);
18090
18138
  const q = V(u || "sps-form-group__label", t), [W, J] = r instanceof rr ? [r, void 0] : [void 0, r];
18091
18139
  function H() {
@@ -18747,9 +18795,9 @@ const fN = ({
18747
18795
  function y() {
18748
18796
  if (e.current && p && (h && (h.style.backgroundColor = yo.blue200), S && f && (S.style.height = `${f.getBoundingClientRect().height}px`, S.style.display = "block"), f)) {
18749
18797
  const L = f.querySelectorAll("thead > tr > th");
18750
- for (let R = 0; R < L.length; R += 1) {
18751
- const K = L[R].querySelector(".sps-table__column-resizer");
18752
- L[R].style.cursor = "col-resize", L[R] !== e.current && K && (L[R].classList.remove("sps-table__header--resizeable"), K.style.display = "none");
18798
+ for (let P = 0; P < L.length; P += 1) {
18799
+ const K = L[P].querySelector(".sps-table__column-resizer");
18800
+ L[P].style.cursor = "col-resize", L[P] !== e.current && K && (L[P].classList.remove("sps-table__header--resizeable"), K.style.display = "none");
18753
18801
  }
18754
18802
  }
18755
18803
  }
@@ -18760,8 +18808,8 @@ const fN = ({
18760
18808
  if (e.current) {
18761
18809
  const L = u ? `${u}px` : "";
18762
18810
  e.current.style.width = L, e.current.style.maxWidth = L, e.current.style.minWidth = L;
18763
- const R = e.current.querySelector(".sps-table__header-cell-body");
18764
- if (R && (R.style.overflow = L ? "hidden" : "", R.style.textOverflow = L ? "ellipsis" : ""), h && S && (h.style.right = "0", h.style.backgroundColor = "", S.style.right = "0", S.style.display = "none"), e.current.classList.contains("sps-table__cell--pinned") || (e.current.style.position = "relative"), f) {
18811
+ const P = e.current.querySelector(".sps-table__header-cell-body");
18812
+ if (P && (P.style.overflow = L ? "hidden" : "", P.style.textOverflow = L ? "ellipsis" : ""), h && S && (h.style.right = "0", h.style.backgroundColor = "", S.style.right = "0", S.style.display = "none"), e.current.classList.contains("sps-table__cell--pinned") || (e.current.style.position = "relative"), f) {
18765
18813
  const K = f.querySelectorAll("thead > tr > th");
18766
18814
  for (let _ = 0; _ < K.length; _ += 1) {
18767
18815
  const $ = K[_].querySelector(".sps-table__header-cell-body"), N = K[_].querySelector(".sps-table__column-resizer");
@@ -18775,8 +18823,8 @@ const fN = ({
18775
18823
  }, x = (L) => {
18776
18824
  if (!p || !e.current)
18777
18825
  return;
18778
- const R = Math.max(Math.min(p - L.clientX, 40), -40);
18779
- R !== 0 && (p = L.clientX, m += R, u = Math.max(u - R, 40), w());
18826
+ const P = Math.max(Math.min(p - L.clientX, 40), -40);
18827
+ P !== 0 && (p = L.clientX, m += P, u = Math.max(u - P, 40), w());
18780
18828
  }, k = () => {
18781
18829
  !e.current || !p || (p = 0, m = 0, T(), o(n, u));
18782
18830
  }, b = () => {
@@ -21030,14 +21078,14 @@ function qu(e) {
21030
21078
  ...x
21031
21079
  } = e, { t: k } = s.useContext(Be);
21032
21080
  let b = null;
21033
- const [I, O] = s.useState(!1), M = s.useRef(null), L = s.useRef(null), R = lb(() => {
21081
+ const [I, O] = s.useState(!1), M = s.useRef(null), L = s.useRef(null), P = lb(() => {
21034
21082
  if (M.current && T) {
21035
21083
  const H = M.current.getBoundingClientRect();
21036
21084
  H && H.height > 0 && H.top <= 60 && (typeof b == "number" ? window.scrollY < b && (b = null, O(!1)) : (b = window.scrollY, O(!0), o && o(!1)));
21037
21085
  }
21038
21086
  });
21039
- s.useEffect(() => (window.addEventListener("scroll", R), () => {
21040
- window.removeEventListener("scroll", R);
21087
+ s.useEffect(() => (window.addEventListener("scroll", P), () => {
21088
+ window.removeEventListener("scroll", P);
21041
21089
  }), []);
21042
21090
  const K = s.useRef();
21043
21091
  s.useLayoutEffect(() => {
@@ -22969,7 +23017,7 @@ function em({
22969
23017
  icon: O,
22970
23018
  maxHeightOptionListPx: M,
22971
23019
  maxHeightOptionListRem: L,
22972
- disableOptionsMemoization: R,
23020
+ disableOptionsMemoization: P,
22973
23021
  "data-testid": K,
22974
23022
  ..._
22975
23023
  }) {
@@ -23178,7 +23226,7 @@ function em({
23178
23226
  loading: I,
23179
23227
  maxHeightPx: M,
23180
23228
  maxHeightRem: L,
23181
- disableOptionsMemoization: R,
23229
+ disableOptionsMemoization: P,
23182
23230
  onSpecialActionSelect: ge
23183
23231
  }));
23184
23232
  }
@@ -23726,7 +23774,7 @@ const GN = {
23726
23774
  unsafelyReplaceClassName: O,
23727
23775
  value: M,
23728
23776
  zeroState: L,
23729
- loading: R,
23777
+ loading: P,
23730
23778
  filterByTextAndCaptionKey: K,
23731
23779
  maxHeightOptionListPx: _,
23732
23780
  maxHeightOptionListRem: $,
@@ -23878,7 +23926,7 @@ const GN = {
23878
23926
  onOptionListChanged: lt,
23879
23927
  zeroState: L,
23880
23928
  ignoreWidthStyles: r,
23881
- loading: R,
23929
+ loading: P,
23882
23930
  maxHeightPx: _,
23883
23931
  maxHeightRem: $,
23884
23932
  disableOptionsMemoization: A,
@@ -24022,23 +24070,23 @@ function tm(e) {
24022
24070
  function T(L = y.pageSize) {
24023
24071
  return c !== void 0 ? Math.ceil(c / L) : NaN;
24024
24072
  }
24025
- function D(L = y.page, R = y.pageSize) {
24026
- const K = T(R), _ = L === K && c !== void 0 && c % R || R, $ = h || (K === 0 ? 0 : _), N = (L - 1) * R;
24073
+ function D(L = y.page, P = y.pageSize) {
24074
+ const K = T(P), _ = L === K && c !== void 0 && c % P || P, $ = h || (K === 0 ? 0 : _), N = (L - 1) * P;
24027
24075
  return K === 0 ? [0, 0] : [N + 1, N + $];
24028
24076
  }
24029
24077
  function x(L) {
24030
- const R = {
24078
+ const P = {
24031
24079
  page: L,
24032
24080
  indices: D(L)
24033
24081
  };
24034
- return w(R), R;
24082
+ return w(P), P;
24035
24083
  }
24036
- function k(L, R) {
24084
+ function k(L, P) {
24037
24085
  const K = {
24038
- page: R,
24086
+ page: P,
24039
24087
  pageSize: L,
24040
24088
  numPages: T(L),
24041
- indices: D(R, L)
24089
+ indices: D(P, L)
24042
24090
  };
24043
24091
  return w(K), K;
24044
24092
  }
@@ -24056,12 +24104,12 @@ function tm(e) {
24056
24104
  return typeof c == "number" ? c : "many";
24057
24105
  }
24058
24106
  function I(L) {
24059
- const R = k(L.target.value, 1);
24060
- n(R.page, R.pageSize, R.indices);
24107
+ const P = k(L.target.value, 1);
24108
+ n(P.page, P.pageSize, P.indices);
24061
24109
  }
24062
24110
  function O(L) {
24063
- const R = x(L);
24064
- n(R.page, y.pageSize, R.indices);
24111
+ const P = x(L);
24112
+ n(P.page, y.pageSize, P.indices);
24065
24113
  }
24066
24114
  const M = V(p || "sps-pagination", t);
24067
24115
  return /* @__PURE__ */ s.createElement("div", {
@@ -26333,8 +26381,8 @@ const nx = {
26333
26381
  )
26334
26382
  },
26335
26383
  activeBranch: f,
26336
- setActiveBranch: (R, K) => {
26337
- D(R, K);
26384
+ setActiveBranch: (P, K) => {
26385
+ D(P, K);
26338
26386
  },
26339
26387
  key: (L = M.key) != null ? L : M.name
26340
26388
  });
@@ -27387,7 +27435,7 @@ function dm({
27387
27435
  altPosition: t,
27388
27436
  ...O
27389
27437
  }
27390
- ) : [{}, !1], L = r.position || be.BOTTOM_RIGHT, R = r.kind || $t.DEFAULT, K = e.filter((F) => F.unread).length, _ = e.filter((F) => F.status === Is.IN_PROGRESS).length, $ = e.some((F) => F.status === Is.COMPLETED || F.status === Is.ERRORED), N = s.useRef(o);
27438
+ ) : [{}, !1], L = r.position || be.BOTTOM_RIGHT, P = r.kind || $t.DEFAULT, K = e.filter((F) => F.unread).length, _ = e.filter((F) => F.status === Is.IN_PROGRESS).length, $ = e.some((F) => F.status === Is.COMPLETED || F.status === Is.ERRORED), N = s.useRef(o);
27391
27439
  N.current = o;
27392
27440
  const A = s.useRef(null), Q = () => {
27393
27441
  S && !y ? (w(!0), a && a()) : y && (w(!1), o && o()), A.current && (A.current.scrollTop = 0);
@@ -27466,7 +27514,7 @@ function dm({
27466
27514
  })), /* @__PURE__ */ s.createElement(Lt, {
27467
27515
  for: x,
27468
27516
  position: L,
27469
- kind: R,
27517
+ kind: P,
27470
27518
  showOn: S ? it.MANUAL : it.MOUSEOVER,
27471
27519
  isShown: T && !y ? ye.VISIBLE : ye.HIDDEN,
27472
27520
  hideDelay: Number(S) && Gl
@@ -27867,8 +27915,8 @@ const mx = {
27867
27915
  ...y
27868
27916
  }, w) => {
27869
27917
  const T = r || n, { wrapperId: D, controlId: x } = wt(o, T), k = s.useRef(null);
27870
- function b(L, R) {
27871
- T && (T.setValue(L), T.markAsDirty()), c && k.current && c(R || new Bn(k.current));
27918
+ function b(L, P) {
27919
+ T && (T.setValue(L), T.markAsDirty()), c && k.current && c(P || new Bn(k.current));
27872
27920
  }
27873
27921
  function I() {
27874
27922
  k.current && (k.current.value = "", b(""));
@@ -28284,9 +28332,9 @@ function mm(e) {
28284
28332
  cv("SpsToggle", um, e);
28285
28333
  const w = l || o, [T, D] = s.useState(t), { wrapperId: x, controlId: k } = wt(c, w), b = `${x}_status-label`, I = `${x}_description`, O = s.useRef(null);
28286
28334
  s.useEffect(() => D(t), [t]);
28287
- function M(R) {
28335
+ function M(P) {
28288
28336
  var K;
28289
- D(R.target.checked), w && (w.setValue(R.target.checked), w.markAsDirty()), m && m(R.target.checked), (K = O.current) == null || K.focus();
28337
+ D(P.target.checked), w && (w.setValue(P.target.checked), w.markAsDirty()), m && m(P.target.checked), (K = O.current) == null || K.focus();
28290
28338
  }
28291
28339
  const L = V(
28292
28340
  S || "sps-toggle",
@@ -29720,7 +29768,7 @@ function Nm({
29720
29768
  const J = (u || []).filter((H, F) => F !== W);
29721
29769
  M(J);
29722
29770
  }
29723
- function R(W) {
29771
+ function P(W) {
29724
29772
  x({ searchText: W.target.value });
29725
29773
  }
29726
29774
  function K(W) {
@@ -29845,7 +29893,7 @@ function Nm({
29845
29893
  placeholder: D.searchText.length === 0 && (!u || u.length === 0) ? c : void 0,
29846
29894
  id: T,
29847
29895
  onBlur: $,
29848
- onChange: R,
29896
+ onChange: P,
29849
29897
  onKeyDown: N,
29850
29898
  disabled: t,
29851
29899
  role: "listbox",
@@ -30983,7 +31031,7 @@ function Vm(e) {
30983
31031
  });
30984
31032
  }, L = (_) => {
30985
31033
  b.isPressed && (b.isOverTarget && O(Qt(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || Fs(b.target));
30986
- }, R = {
31034
+ }, P = {
30987
31035
  onKeyDown(_) {
30988
31036
  mo(_.nativeEvent, _.currentTarget) && _.currentTarget.contains(_.target) ? (Td(_.target, _.key) && _.preventDefault(), _.stopPropagation(), !b.isPressed && !_.repeat && (b.target = _.currentTarget, b.isPressed = !0, I(_, "keyboard"), D(document, "keyup", K, !1))) : _.key === "Enter" && Po(_.currentTarget) && _.stopPropagation();
30989
31037
  },
@@ -31001,7 +31049,7 @@ function Vm(e) {
31001
31049
  }
31002
31050
  };
31003
31051
  if (typeof PointerEvent < "u") {
31004
- R.onPointerDown = (A) => {
31052
+ P.onPointerDown = (A) => {
31005
31053
  if (!(A.button !== 0 || !A.currentTarget.contains(A.target))) {
31006
31054
  if (vI(A.nativeEvent)) {
31007
31055
  b.pointerType = "virtual";
@@ -31009,9 +31057,9 @@ function Vm(e) {
31009
31057
  }
31010
31058
  fo(A.currentTarget) && A.preventDefault(), b.pointerType = A.pointerType, A.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = A.pointerId, b.target = A.currentTarget, !l && !p && ir(A.currentTarget), m || yd(b.target), I(A, b.pointerType), D(document, "pointermove", _, !1), D(document, "pointerup", $, !1), D(document, "pointercancel", N, !1));
31011
31059
  }
31012
- }, R.onMouseDown = (A) => {
31060
+ }, P.onMouseDown = (A) => {
31013
31061
  !A.currentTarget.contains(A.target) || A.button === 0 && (fo(A.currentTarget) && A.preventDefault(), A.stopPropagation());
31014
- }, R.onPointerUp = (A) => {
31062
+ }, P.onPointerUp = (A) => {
31015
31063
  !A.currentTarget.contains(A.target) || b.pointerType === "virtual" || A.button === 0 && qn(A, A.currentTarget) && M(A, b.pointerType || A.pointerType);
31016
31064
  };
31017
31065
  let _ = (A) => {
@@ -31021,17 +31069,17 @@ function Vm(e) {
31021
31069
  }, N = (A) => {
31022
31070
  L(A);
31023
31071
  };
31024
- R.onDragStart = (A) => {
31072
+ P.onDragStart = (A) => {
31025
31073
  !A.currentTarget.contains(A.target) || L(A);
31026
31074
  };
31027
31075
  } else {
31028
- R.onMouseDown = (N) => {
31076
+ P.onMouseDown = (N) => {
31029
31077
  N.button !== 0 || !N.currentTarget.contains(N.target) || (fo(N.currentTarget) && N.preventDefault(), N.stopPropagation(), !b.ignoreEmulatedMouseEvents && (b.isPressed = !0, b.isOverTarget = !0, b.target = N.currentTarget, b.pointerType = na(N.nativeEvent) ? "virtual" : "mouse", !l && !p && ir(N.currentTarget), I(N, b.pointerType), D(document, "mouseup", _, !1)));
31030
- }, R.onMouseEnter = (N) => {
31078
+ }, P.onMouseEnter = (N) => {
31031
31079
  !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !0, I(N, b.pointerType)));
31032
- }, R.onMouseLeave = (N) => {
31080
+ }, P.onMouseLeave = (N) => {
31033
31081
  !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N)));
31034
- }, R.onMouseUp = (N) => {
31082
+ }, P.onMouseUp = (N) => {
31035
31083
  !N.currentTarget.contains(N.target) || !b.ignoreEmulatedMouseEvents && N.button === 0 && M(N, b.pointerType);
31036
31084
  };
31037
31085
  let _ = (N) => {
@@ -31043,23 +31091,23 @@ function Vm(e) {
31043
31091
  qn(N, b.target) ? O(Qt(b.target, N), b.pointerType) : b.isOverTarget && O(Qt(b.target, N), b.pointerType, !1), b.isOverTarget = !1;
31044
31092
  }
31045
31093
  };
31046
- R.onTouchStart = (N) => {
31094
+ P.onTouchStart = (N) => {
31047
31095
  if (!N.currentTarget.contains(N.target))
31048
31096
  return;
31049
31097
  N.stopPropagation();
31050
31098
  let A = EI(N.nativeEvent);
31051
31099
  !A || (b.activePointerId = A.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = N.currentTarget, b.pointerType = "touch", !l && !p && ir(N.currentTarget), m || yd(b.target), I(N, b.pointerType), D(window, "scroll", $, !0));
31052
- }, R.onTouchMove = (N) => {
31100
+ }, P.onTouchMove = (N) => {
31053
31101
  if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
31054
31102
  return;
31055
31103
  let A = Ed(N.nativeEvent, b.activePointerId);
31056
31104
  A && qn(A, N.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(N, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N));
31057
- }, R.onTouchEnd = (N) => {
31105
+ }, P.onTouchEnd = (N) => {
31058
31106
  if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
31059
31107
  return;
31060
31108
  let A = Ed(N.nativeEvent, b.activePointerId);
31061
31109
  A && qn(A, N.currentTarget) ? (M(N, b.pointerType), O(N, b.pointerType)) : b.isOverTarget && O(N, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m || Fs(b.target), x();
31062
- }, R.onTouchCancel = (N) => {
31110
+ }, P.onTouchCancel = (N) => {
31063
31111
  !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && L(N));
31064
31112
  };
31065
31113
  let $ = (N) => {
@@ -31071,11 +31119,11 @@ function Vm(e) {
31071
31119
  altKey: !1
31072
31120
  });
31073
31121
  };
31074
- R.onDragStart = (N) => {
31122
+ P.onDragStart = (N) => {
31075
31123
  !N.currentTarget.contains(N.target) || L(N);
31076
31124
  };
31077
31125
  }
31078
- return R;
31126
+ return P;
31079
31127
  }, [
31080
31128
  D,
31081
31129
  l,
@@ -31519,9 +31567,9 @@ function ZI(e) {
31519
31567
  switch (M.key) {
31520
31568
  case "ArrowDown":
31521
31569
  if (n.getKeyBelow) {
31522
- var R, K;
31570
+ var P, K;
31523
31571
  M.preventDefault();
31524
- let N = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (R = n.getFirstKey) === null || R === void 0 ? void 0 : R.call(n);
31572
+ let N = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (P = n.getFirstKey) === null || P === void 0 ? void 0 : P.call(n);
31525
31573
  N == null && o && (N = (K = n.getFirstKey) === null || K === void 0 ? void 0 : K.call(n, t.focusedKey)), L(N);
31526
31574
  }
31527
31575
  break;
@@ -31617,8 +31665,8 @@ function ZI(e) {
31617
31665
  let K = ($) => {
31618
31666
  $ != null && (t.setFocusedKey($), p && t.replaceSelection($));
31619
31667
  }, _ = M.relatedTarget;
31620
- var L, R;
31621
- _ && M.currentTarget.compareDocumentPosition(_) & Node.DOCUMENT_POSITION_FOLLOWING ? K((L = t.lastSelectedKey) !== null && L !== void 0 ? L : n.getLastKey()) : K((R = t.firstSelectedKey) !== null && R !== void 0 ? R : n.getFirstKey());
31668
+ var L, P;
31669
+ _ && M.currentTarget.compareDocumentPosition(_) & Node.DOCUMENT_POSITION_FOLLOWING ? K((L = t.lastSelectedKey) !== null && L !== void 0 ? L : n.getLastKey()) : K((P = t.firstSelectedKey) !== null && P !== void 0 ? P : n.getFirstKey());
31622
31670
  } else if (!h) {
31623
31671
  S.current.scrollTop = T.current.top, S.current.scrollLeft = T.current.left;
31624
31672
  let K = S.current.querySelector(`[data-key="${t.focusedKey}"]`);
@@ -31711,7 +31759,7 @@ function XI(e) {
31711
31759
  }, O.onPress = ($) => {
31712
31760
  ($.pointerType === "touch" || $.pointerType === "pen" || $.pointerType === "virtual" || $.pointerType === "keyboard" && D && _d() || $.pointerType === "mouse" && I.current) && (D ? u() : f($));
31713
31761
  }), o || (h["data-key"] = n), O.preventFocusOnPress = l;
31714
- let { pressProps: M, isPressed: L } = Vm(O), R = T ? ($) => {
31762
+ let { pressProps: M, isPressed: L } = Vm(O), P = T ? ($) => {
31715
31763
  x.current === "mouse" && ($.stopPropagation(), $.preventDefault(), u());
31716
31764
  } : void 0, { longPressProps: K } = _I({
31717
31765
  isDisabled: !k,
@@ -31721,7 +31769,7 @@ function XI(e) {
31721
31769
  });
31722
31770
  return {
31723
31771
  itemProps: ba(h, S || w ? M : {}, k ? K : {}, {
31724
- onDoubleClick: R,
31772
+ onDoubleClick: P,
31725
31773
  onDragStart: ($) => {
31726
31774
  x.current === "touch" && b.current && $.preventDefault();
31727
31775
  }
@@ -31849,7 +31897,7 @@ function ek(e) {
31849
31897
  });
31850
31898
  }, L = (_) => {
31851
31899
  b.isPressed && (b.isOverTarget && O(en(b.target, _), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, x(), m || $s(b.target));
31852
- }, R = {
31900
+ }, P = {
31853
31901
  onKeyDown(_) {
31854
31902
  ho(_.nativeEvent, _.currentTarget) && _.currentTarget.contains(_.target) ? (Pd(_.target, _.key) && _.preventDefault(), _.stopPropagation(), !b.isPressed && !_.repeat && (b.target = _.currentTarget, b.isPressed = !0, I(_, "keyboard"), D(document, "keyup", K, !1))) : _.key === "Enter" && Vo(_.currentTarget) && _.stopPropagation();
31855
31903
  },
@@ -31867,7 +31915,7 @@ function ek(e) {
31867
31915
  }
31868
31916
  };
31869
31917
  if (typeof PointerEvent < "u") {
31870
- R.onPointerDown = (A) => {
31918
+ P.onPointerDown = (A) => {
31871
31919
  if (!(A.button !== 0 || !A.currentTarget.contains(A.target))) {
31872
31920
  if (ak(A.nativeEvent)) {
31873
31921
  b.pointerType = "virtual";
@@ -31875,9 +31923,9 @@ function ek(e) {
31875
31923
  }
31876
31924
  go(A.currentTarget) && A.preventDefault(), b.pointerType = A.pointerType, A.stopPropagation(), b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = A.pointerId, b.target = A.currentTarget, !l && !p && or(A.currentTarget), m || Od(b.target), I(A, b.pointerType), D(document, "pointermove", _, !1), D(document, "pointerup", $, !1), D(document, "pointercancel", N, !1));
31877
31925
  }
31878
- }, R.onMouseDown = (A) => {
31926
+ }, P.onMouseDown = (A) => {
31879
31927
  !A.currentTarget.contains(A.target) || A.button === 0 && (go(A.currentTarget) && A.preventDefault(), A.stopPropagation());
31880
- }, R.onPointerUp = (A) => {
31928
+ }, P.onPointerUp = (A) => {
31881
31929
  !A.currentTarget.contains(A.target) || b.pointerType === "virtual" || A.button === 0 && Xn(A, A.currentTarget) && M(A, b.pointerType || A.pointerType);
31882
31930
  };
31883
31931
  let _ = (A) => {
@@ -31887,17 +31935,17 @@ function ek(e) {
31887
31935
  }, N = (A) => {
31888
31936
  L(A);
31889
31937
  };
31890
- R.onDragStart = (A) => {
31938
+ P.onDragStart = (A) => {
31891
31939
  !A.currentTarget.contains(A.target) || L(A);
31892
31940
  };
31893
31941
  } else {
31894
- R.onMouseDown = (N) => {
31942
+ P.onMouseDown = (N) => {
31895
31943
  N.button !== 0 || !N.currentTarget.contains(N.target) || (go(N.currentTarget) && N.preventDefault(), N.stopPropagation(), !b.ignoreEmulatedMouseEvents && (b.isPressed = !0, b.isOverTarget = !0, b.target = N.currentTarget, b.pointerType = $o(N.nativeEvent) ? "virtual" : "mouse", !l && !p && or(N.currentTarget), I(N, b.pointerType), D(document, "mouseup", _, !1)));
31896
- }, R.onMouseEnter = (N) => {
31944
+ }, P.onMouseEnter = (N) => {
31897
31945
  !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !0, I(N, b.pointerType)));
31898
- }, R.onMouseLeave = (N) => {
31946
+ }, P.onMouseLeave = (N) => {
31899
31947
  !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && !b.ignoreEmulatedMouseEvents && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N)));
31900
- }, R.onMouseUp = (N) => {
31948
+ }, P.onMouseUp = (N) => {
31901
31949
  !N.currentTarget.contains(N.target) || !b.ignoreEmulatedMouseEvents && N.button === 0 && M(N, b.pointerType);
31902
31950
  };
31903
31951
  let _ = (N) => {
@@ -31909,23 +31957,23 @@ function ek(e) {
31909
31957
  Xn(N, b.target) ? O(en(b.target, N), b.pointerType) : b.isOverTarget && O(en(b.target, N), b.pointerType, !1), b.isOverTarget = !1;
31910
31958
  }
31911
31959
  };
31912
- R.onTouchStart = (N) => {
31960
+ P.onTouchStart = (N) => {
31913
31961
  if (!N.currentTarget.contains(N.target))
31914
31962
  return;
31915
31963
  N.stopPropagation();
31916
31964
  let A = tk(N.nativeEvent);
31917
31965
  !A || (b.activePointerId = A.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = N.currentTarget, b.pointerType = "touch", !l && !p && or(N.currentTarget), m || Od(b.target), I(N, b.pointerType), D(window, "scroll", $, !0));
31918
- }, R.onTouchMove = (N) => {
31966
+ }, P.onTouchMove = (N) => {
31919
31967
  if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
31920
31968
  return;
31921
31969
  let A = Rd(N.nativeEvent, b.activePointerId);
31922
31970
  A && Xn(A, N.currentTarget) ? b.isOverTarget || (b.isOverTarget = !0, I(N, b.pointerType)) : b.isOverTarget && (b.isOverTarget = !1, O(N, b.pointerType, !1), S.current.shouldCancelOnPointerExit && L(N));
31923
- }, R.onTouchEnd = (N) => {
31971
+ }, P.onTouchEnd = (N) => {
31924
31972
  if (!N.currentTarget.contains(N.target) || (N.stopPropagation(), !b.isPressed))
31925
31973
  return;
31926
31974
  let A = Rd(N.nativeEvent, b.activePointerId);
31927
31975
  A && Xn(A, N.currentTarget) ? (M(N, b.pointerType), O(N, b.pointerType)) : b.isOverTarget && O(N, b.pointerType, !1), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, m || $s(b.target), x();
31928
- }, R.onTouchCancel = (N) => {
31976
+ }, P.onTouchCancel = (N) => {
31929
31977
  !N.currentTarget.contains(N.target) || (N.stopPropagation(), b.isPressed && L(N));
31930
31978
  };
31931
31979
  let $ = (N) => {
@@ -31937,11 +31985,11 @@ function ek(e) {
31937
31985
  altKey: !1
31938
31986
  });
31939
31987
  };
31940
- R.onDragStart = (N) => {
31988
+ P.onDragStart = (N) => {
31941
31989
  !N.currentTarget.contains(N.target) || L(N);
31942
31990
  };
31943
31991
  }
31944
- return R;
31992
+ return P;
31945
31993
  }, [
31946
31994
  D,
31947
31995
  l,