@devtron-labs/devtron-fe-common-lib 1.6.14 → 1.7.0-beta-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/@code-editor-Cz8XojKH.js +23494 -0
  2. package/dist/{@common-rjsf-Cbw73F_s.js → @common-rjsf-Bjg77bLd.js} +11 -11
  3. package/dist/{@framer-motion-BFqoU0Z7.js → @framer-motion-C88ROIS4.js} +70 -70
  4. package/dist/@monaco-editor-CVagbUeH.js +138960 -0
  5. package/dist/{@react-dates-Dx7AjKDr.js → @react-dates-Ct1VA7V6.js} +14 -14
  6. package/dist/{@react-select-BfYm_1lF.js → @react-select-qU4oRypC.js} +1 -1
  7. package/dist/{@react-virtualized-sticky-tree-BNk-_Tvs.js → @react-virtualized-sticky-tree-DmvoaDNw.js} +1 -1
  8. package/dist/@vendor-C6rSXA7p.js +22734 -0
  9. package/dist/Common/CodeEditor/CodeEditor.d.ts +3 -13
  10. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +47 -3
  11. package/dist/Common/CodeEditor/index.d.ts +1 -1
  12. package/dist/Common/CodeEditor/types.d.ts +81 -83
  13. package/dist/Common/CodeEditor/utils.d.ts +3 -13
  14. package/dist/Common/CodeMirror/CodeEditor.d.ts +14 -0
  15. package/dist/Common/CodeMirror/CodeEditor.reducer.d.ts +4 -0
  16. package/dist/Common/CodeMirror/index.d.ts +2 -0
  17. package/dist/Common/CodeMirror/types.d.ts +107 -0
  18. package/dist/Common/CodeMirror/utils.d.ts +13 -0
  19. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
  20. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -0
  21. package/dist/assets/@code-editor.css +1 -1
  22. package/dist/assets/@monaco-editor.css +1 -0
  23. package/dist/assets/codicon.ecfbfe4b.ttf +0 -0
  24. package/dist/assets/ic-environment.d241eccb.svg +20 -0
  25. package/dist/assets/{ic-github.bb1f1753.svg → ic-github.9d82ed09.svg} +16 -0
  26. package/dist/assets/ic-help-filled.b7ae284e.svg +20 -0
  27. package/dist/index.js +667 -665
  28. package/package.json +7 -1
  29. package/dist/@code-editor-DZHMo1tR.js +0 -42310
  30. package/dist/@vendor-CWh7bjwl.js +0 -42519
  31. package/dist/assets/ic-environment.e639b8f3.svg +0 -4
  32. package/dist/assets/ic-help-filled.4468cdf1.svg +0 -4
  33. package/dist/assets/ic-match-case.702186fe.svg +0 -3
  34. package/dist/assets/ic-match-word.991dea5a.svg +0 -3
  35. package/dist/assets/ic-replace-all-text.7ebbab01.svg +0 -3
  36. package/dist/assets/ic-replace-text.5de817d2.svg +0 -3
  37. /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.components.d.ts +0 -0
  38. /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.constants.d.ts +0 -0
  39. /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.context.d.ts +0 -0
  40. /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditor.theme.d.ts +0 -0
  41. /package/dist/Common/{CodeEditor → CodeMirror}/CodeEditorRenderer.d.ts +0 -0
  42. /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/findAndReplace.d.ts +0 -0
  43. /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/index.d.ts +0 -0
  44. /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/readOnlyTooltip.d.ts +0 -0
  45. /package/dist/Common/{CodeEditor → CodeMirror}/Extensions/yamlParseLinter.d.ts +0 -0
@@ -1,8 +1,8 @@
1
- import { j as t, O as P } from "./@vendor-CWh7bjwl.js";
1
+ import { j as t, J as P } from "./@vendor-C6rSXA7p.js";
2
2
  import R, { forwardRef as $ } from "react";
3
3
  import L, { getDefaultRegistry as D } from "@rjsf/core";
4
- import { T as v, c as H, a as U, i as k, b as y, d as S, S as M } from "./@code-editor-DZHMo1tR.js";
5
- import J, { components as A } from "react-select";
4
+ import { T as v, c as H, a as U, i as k, b as y, d as S, S as J } from "./@code-editor-Cz8XojKH.js";
5
+ import M, { components as A } from "react-select";
6
6
  import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
7
7
  import { getUiOptions as C, getTemplate as B, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as I, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
8
8
  import { ReactComponent as X } from "./assets/ic-add.cfaa779b.svg";
@@ -36,7 +36,7 @@ import './assets/@common-rjsf.css';const N = {
36
36
  a
37
37
  ]
38
38
  }
39
- ), O = ({ label: n, canAdd: e, onAddClick: s, disabled: a, readonly: r, uiSchema: o, registry: i }) => {
39
+ ), F = ({ label: n, canAdd: e, onAddClick: s, disabled: a, readonly: r, uiSchema: o, registry: i }) => {
40
40
  const {
41
41
  ButtonTemplates: { AddButton: c }
42
42
  } = i.templates;
@@ -75,7 +75,7 @@ import './assets/@common-rjsf.css';const N = {
75
75
  return /* @__PURE__ */ t.jsx(h, { ..._, children: m }, j);
76
76
  }),
77
77
  /* @__PURE__ */ t.jsx(
78
- O,
78
+ F,
79
79
  {
80
80
  label: u,
81
81
  canAdd: n,
@@ -87,7 +87,7 @@ import './assets/@common-rjsf.css';const N = {
87
87
  }
88
88
  )
89
89
  ] }) : /* @__PURE__ */ t.jsx(b, { label: u, required: d, showLabel: !0, id: a.$id, children: /* @__PURE__ */ t.jsx(
90
- O,
90
+ F,
91
91
  {
92
92
  label: u,
93
93
  canAdd: n,
@@ -261,7 +261,7 @@ import './assets/@common-rjsf.css';const N = {
261
261
  return "";
262
262
  const e = n.trim();
263
263
  return e.match(/^\w+(\/\w+)*$/g) ? `/${e}` : e.match(/^\w+(\.\w+)*$/g) ? `/${e.replaceAll(/\./g, "/")}` : e;
264
- }, F = {
264
+ }, O = {
265
265
  value: !1,
266
266
  path: ""
267
267
  }, pe = (n) => {
@@ -271,13 +271,13 @@ import './assets/@common-rjsf.css';const N = {
271
271
  return typeof e == "string" ? {
272
272
  value: !0,
273
273
  path: T(e)
274
- } : typeof e != "object" ? structuredClone(F) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
274
+ } : typeof e != "object" ? structuredClone(O) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
275
275
  value: e.condition,
276
276
  path: T(e.value)
277
277
  } : Object.hasOwn(e, "value") && "value" in e && Object.hasOwn(e, "path") && "path" in e ? {
278
278
  value: e.value,
279
279
  path: T(e.path)
280
- } : structuredClone(F);
280
+ } : structuredClone(O);
281
281
  }, me = ({
282
282
  disabled: n,
283
283
  formData: e,
@@ -447,7 +447,7 @@ import './assets/@common-rjsf.css';const N = {
447
447
  l(s ? f.map((m) => m.value) : f.value);
448
448
  }, _ = (f) => s ? h.filter((m) => f.some((g) => S(g, m.value))) : h.find((m) => S(f, m.value));
449
449
  return /* @__PURE__ */ t.jsx(
450
- J,
450
+ M,
451
451
  {
452
452
  id: e,
453
453
  name: e,
@@ -492,7 +492,7 @@ import './assets/@common-rjsf.css';const N = {
492
492
  ObjectFieldTemplate: ue,
493
493
  TitleFieldTemplate: w,
494
494
  WrapIfAdditionalTemplate: he
495
- }, ye = L, Te = M, Le = $((n, e) => /* @__PURE__ */ t.jsx(
495
+ }, ye = L, Te = J, Le = $((n, e) => /* @__PURE__ */ t.jsx(
496
496
  ye,
497
497
  {
498
498
  noHtml5Validate: !0,
@@ -1,6 +1,6 @@
1
- import { Y as ct, Z as m, $ as I, a0 as Yr, a1 as we, a2 as T, a3 as at, a4 as zt, a5 as ae, a6 as Xe, a7 as J, a8 as kr, a9 as Qn, aa as Xr, ab as ti, ac as ei, ad as ri, ae as ni, af as ii, ag as Wr, ah as ai, ai as oi, aj as si, ak as ui, al as li, am as fi, an as ci, ao as yt, ap as k, aq as pe, ar as Zr, as as vi, at as di, au as W, av as $, aw as pi, ax as he, ay as Dt, az as hi, aA as mi, aB as $r, aC as Mt, aD as O, aE as me, aF as gi, aG as oe, aH as yi } from "./@vendor-CWh7bjwl.js";
2
- import * as G from "react";
3
- import Ee, { createContext as bt, useContext as F, useLayoutEffect as Pi, useEffect as K, useState as qr, useRef as q, useCallback as ge, useMemo as It, forwardRef as bi, createElement as Vi, cloneElement as Ti, Children as Si, isValidElement as xi } from "react";
1
+ import { g as ct, l as m, o as I, p as Yr, q as we, r as T, t as at, v as zt, w as ae, x as Xe, y as J, z as kr, B as Qn, C as Xr, E as ti, F as ei, G as ri, H as ni, I as ii, K as Wr, L as ai, M as oi, N as si, O as ui, P as li, S as fi, T as ci, U as yt, V as k, W as pe, X as Zr, Y as vi, Z as di, $ as W, a0 as $, a1 as pi, a2 as he, a3 as Dt, a4 as hi, a5 as mi, a6 as $r, a7 as Mt, a8 as O, a9 as me, aa as gi, ab as oe, ac as yi } from "./@vendor-C6rSXA7p.js";
2
+ import * as K from "react";
3
+ import Ee, { createContext as bt, useContext as F, useLayoutEffect as Pi, useEffect as G, useState as qr, useRef as q, useCallback as ge, useMemo as It, forwardRef as bi, createElement as Vi, cloneElement as Ti, Children as Si, isValidElement as xi } from "react";
4
4
  var We = "production", Le = typeof process > "u" || process.env === void 0 ? We : process.env.NODE_ENV || We, Q = function(t) {
5
5
  return {
6
6
  isEnabled: function(e) {
@@ -50,7 +50,7 @@ function wi(t, e, r) {
50
50
  Le !== "production" && r && i.strict && ct(!1, "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");
51
51
  for (var s = 0; s < Ai; s++) {
52
52
  var o = Qr[s], a = Ot[o], u = a.isEnabled, l = a.Component;
53
- u(t) && l && n.push(G.createElement(l, m({ key: o }, t, { visualElement: e })));
53
+ u(t) && l && n.push(K.createElement(l, m({ key: o }, t, { visualElement: e })));
54
54
  }
55
55
  return n;
56
56
  }
@@ -64,7 +64,7 @@ var Re = bt({
64
64
  function Ei() {
65
65
  return F(te).visualElement;
66
66
  }
67
- var Bt = bt(null), Vt = typeof document < "u", Wt = Vt ? Pi : K, ye = { current: null }, tn = !1;
67
+ var Bt = bt(null), Vt = typeof document < "u", Wt = Vt ? Pi : G, ye = { current: null }, tn = !1;
68
68
  function Li() {
69
69
  if (tn = !0, !!Vt)
70
70
  if (window.matchMedia) {
@@ -97,7 +97,7 @@ function Mi(t, e, r, n) {
97
97
  var l = u.current;
98
98
  return Wt(function() {
99
99
  l?.syncRender();
100
- }), K(function() {
100
+ }), G(function() {
101
101
  var f;
102
102
  (f = l?.animationState) === null || f === void 0 || f.animateChanges();
103
103
  }), Wt(function() {
@@ -242,23 +242,23 @@ function zi(t) {
242
242
  var e = t.preloadedFeatures, r = t.createVisualElement, n = t.projectionNodeConstructor, i = t.useRender, s = t.useVisualState, o = t.Component;
243
243
  e && Ci(e);
244
244
  function a(u, l) {
245
- var f = Gi(u);
245
+ var f = Ki(u);
246
246
  u = m(m({}, u), { layoutId: f });
247
247
  var v = F(Re), c = null, d = Bi(u), p = v.isStatic ? void 0 : Ui(), h = s(u, v.isStatic);
248
- return !v.isStatic && Vt && (d.visualElement = Mi(o, h, m(m({}, v), u), r), Ni(p, u, d.visualElement, n || Ot.projectionNodeConstructor), c = wi(u, d.visualElement, e)), G.createElement(
248
+ return !v.isStatic && Vt && (d.visualElement = Mi(o, h, m(m({}, v), u), r), Ni(p, u, d.visualElement, n || Ot.projectionNodeConstructor), c = wi(u, d.visualElement, e)), K.createElement(
249
249
  Hi,
250
250
  { visualElement: d.visualElement, props: m(m({}, v), u) },
251
251
  c,
252
- G.createElement(te.Provider, { value: d }, i(o, u, p, Ii(h, d.visualElement, l), h, v.isStatic, d.visualElement))
252
+ K.createElement(te.Provider, { value: d }, i(o, u, p, Ii(h, d.visualElement, l), h, v.isStatic, d.visualElement))
253
253
  );
254
254
  }
255
255
  return bi(a);
256
256
  }
257
- function Gi(t) {
257
+ function Ki(t) {
258
258
  var e, r = t.layoutId, n = (e = F(De)) === null || e === void 0 ? void 0 : e.id;
259
259
  return n && r !== void 0 ? n + "-" + r : r;
260
260
  }
261
- function Ki(t) {
261
+ function Gi(t) {
262
262
  function e(n, i) {
263
263
  return i === void 0 && (i = {}), zi(t(n, i));
264
264
  }
@@ -766,7 +766,7 @@ function ne(t, e, r, n) {
766
766
  };
767
767
  }
768
768
  function be(t, e, r, n) {
769
- K(function() {
769
+ G(function() {
770
770
  var i = t.current;
771
771
  if (r && i)
772
772
  return ne(i, e, r, n);
@@ -893,7 +893,7 @@ var wn = function(t, e) {
893
893
  return e ? t === e ? !0 : wn(t, e.parentElement) : !1;
894
894
  };
895
895
  function Ue(t) {
896
- return K(function() {
896
+ return G(function() {
897
897
  return function() {
898
898
  return t();
899
899
  };
@@ -960,7 +960,7 @@ var ja = {
960
960
  };
961
961
  function Ba(t, e, r, n) {
962
962
  var i = n.root, s = n.margin, o = n.amount, a = o === void 0 ? "some" : o, u = n.once;
963
- K(function() {
963
+ G(function() {
964
964
  if (t) {
965
965
  var l = {
966
966
  root: i?.current,
@@ -980,7 +980,7 @@ function Ba(t, e, r, n) {
980
980
  }
981
981
  function _a(t, e, r, n) {
982
982
  var i = n.fallback, s = i === void 0 ? !0 : i;
983
- K(function() {
983
+ G(function() {
984
984
  !t || !s || (Le !== "production" && En(!1, "IntersectionObserver not available on this device. whileInView animations will trigger on mount."), requestAnimationFrame(function() {
985
985
  var o;
986
986
  e.hasEnteredView = !0;
@@ -1008,7 +1008,7 @@ function Rn() {
1008
1008
  if (t === null)
1009
1009
  return [!0, null];
1010
1010
  var e = t.isPresent, r = t.onExitComplete, n = t.register, i = Ln();
1011
- K(function() {
1011
+ G(function() {
1012
1012
  return n(i);
1013
1013
  }, []);
1014
1014
  var s = function() {
@@ -1065,7 +1065,7 @@ var Jt = function(t) {
1065
1065
  damping: 25,
1066
1066
  restSpeed: 10
1067
1067
  };
1068
- }, Gt = function(t) {
1068
+ }, Kt = function(t) {
1069
1069
  return {
1070
1070
  type: "spring",
1071
1071
  stiffness: 550,
@@ -1078,7 +1078,7 @@ var Jt = function(t) {
1078
1078
  ease: "linear",
1079
1079
  duration: 0.3
1080
1080
  };
1081
- }, Ga = function(t) {
1081
+ }, Ka = function(t) {
1082
1082
  return {
1083
1083
  type: "keyframes",
1084
1084
  duration: 0.8,
@@ -1092,16 +1092,16 @@ var Jt = function(t) {
1092
1092
  rotateX: lt,
1093
1093
  rotateY: lt,
1094
1094
  rotateZ: lt,
1095
- scaleX: Gt,
1096
- scaleY: Gt,
1097
- scale: Gt,
1095
+ scaleX: Kt,
1096
+ scaleY: Kt,
1097
+ scale: Kt,
1098
1098
  opacity: ue,
1099
1099
  backgroundColor: ue,
1100
1100
  color: ue,
1101
- default: Gt
1102
- }, Ka = function(t, e) {
1101
+ default: Kt
1102
+ }, Ga = function(t, e) {
1103
1103
  var r;
1104
- return jt(e) ? r = Ga : r = or[t] || or.default, m({ to: e }, r(e));
1104
+ return jt(e) ? r = Ka : r = or[t] || or.default, m({ to: e }, r(e));
1105
1105
  }, Ya = m(m({}, ln), {
1106
1106
  // Color props
1107
1107
  color: k,
@@ -1143,7 +1143,7 @@ function Za(t) {
1143
1143
  }
1144
1144
  function $a(t, e, r) {
1145
1145
  var n;
1146
- return Array.isArray(e.to) && ((n = t.duration) !== null && n !== void 0 || (t.duration = 0.8)), Za(e), ka(t) || (t = m(m({}, t), Ka(r, e.to))), m(m({}, e), Xa(t));
1146
+ return Array.isArray(e.to) && ((n = t.duration) !== null && n !== void 0 || (t.duration = 0.8)), Za(e), ka(t) || (t = m(m({}, t), Ga(r, e.to))), m(m({}, e), Xa(t));
1147
1147
  }
1148
1148
  function qa(t, e, r, n, i) {
1149
1149
  var s, o = ze(n, t), a = (s = o.from) !== null && s !== void 0 ? s : e.get(), u = ar(t, r);
@@ -1184,7 +1184,7 @@ function lr(t) {
1184
1184
  function ze(t, e) {
1185
1185
  return t[e] || t.default || t;
1186
1186
  }
1187
- function Ge(t, e, r, n) {
1187
+ function Ke(t, e, r, n) {
1188
1188
  return n === void 0 && (n = {}), e.start(function(i) {
1189
1189
  var s, o, a = qa(t, e, r, n, i), u = Wa(n, t), l = function() {
1190
1190
  return o = a();
@@ -1199,7 +1199,7 @@ var Ja = function(t) {
1199
1199
  }, Qa = function(t) {
1200
1200
  return /^0[^.\s]+$/.test(t);
1201
1201
  };
1202
- function Ke(t, e) {
1202
+ function Ge(t, e) {
1203
1203
  t.indexOf(e) === -1 && t.push(e);
1204
1204
  }
1205
1205
  function Ye(t, e) {
@@ -1214,7 +1214,7 @@ var wt = (
1214
1214
  }
1215
1215
  return t.prototype.add = function(e) {
1216
1216
  var r = this;
1217
- return Ke(this.subscriptions, e), function() {
1217
+ return Ge(this.subscriptions, e), function() {
1218
1218
  return Ye(r.subscriptions, e);
1219
1219
  };
1220
1220
  }, t.prototype.notify = function(e, r, n) {
@@ -1391,7 +1391,7 @@ function On(t, e, r) {
1391
1391
  if (!(!P || b === void 0 || h && po(h, g))) {
1392
1392
  var S = m({ delay: o }, v);
1393
1393
  t.shouldReduceMotion && Ut(g) && (S = m(m({}, S), { type: !1, delay: 0 }));
1394
- var C = Ge(g, P, b, S);
1394
+ var C = Ke(g, P, b, S);
1395
1395
  p.push(C);
1396
1396
  }
1397
1397
  }
@@ -1532,13 +1532,13 @@ function bo() {
1532
1532
  var Vo = {
1533
1533
  animation: ut(function(t) {
1534
1534
  var e = t.visualElement, r = t.animate;
1535
- e.animationState || (e.animationState = yo(e)), Be(r) && K(function() {
1535
+ e.animationState || (e.animationState = yo(e)), Be(r) && G(function() {
1536
1536
  return r.subscribe(e);
1537
1537
  }, [r]);
1538
1538
  }),
1539
1539
  exit: ut(function(t) {
1540
1540
  var e = t.custom, r = t.visualElement, n = I(Rn(), 2), i = n[0], s = n[1], o = F(Bt);
1541
- K(function() {
1541
+ G(function() {
1542
1542
  var a, u;
1543
1543
  r.isPresent = i;
1544
1544
  var l = (a = r.animationState) === null || a === void 0 ? void 0 : a.setActive(L.Exit, !i, { custom: (u = o?.custom) !== null && u !== void 0 ? u : e });
@@ -1857,7 +1857,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1857
1857
  !n && this.openGlobalLock && (this.openGlobalLock(), this.openGlobalLock = null), (r = this.visualElement.animationState) === null || r === void 0 || r.setActive(L.Drag, !1);
1858
1858
  }, t.prototype.updateAxis = function(e, r, n) {
1859
1859
  var i = this.getProps().drag;
1860
- if (!(!n || !Kt(e, i, this.currentDirection))) {
1860
+ if (!(!n || !Gt(e, i, this.currentDirection))) {
1861
1861
  var s = this.getAxisMotionValue(e), o = this.originPoint[e] + n[e];
1862
1862
  this.constraints && this.constraints[e] && (o = Co(o, this.constraints[e], this.elastic[e])), s.set(o);
1863
1863
  }
@@ -1884,7 +1884,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1884
1884
  }, t.prototype.startAnimation = function(e) {
1885
1885
  var r = this, n = this.getProps(), i = n.drag, s = n.dragMomentum, o = n.dragElastic, a = n.dragTransition, u = n.dragSnapToOrigin, l = n.onDragTransitionEnd, f = this.constraints || {}, v = Z(function(c) {
1886
1886
  var d;
1887
- if (Kt(c, i, r.currentDirection)) {
1887
+ if (Gt(c, i, r.currentDirection)) {
1888
1888
  var p = (d = f?.[c]) !== null && d !== void 0 ? d : {};
1889
1889
  u && (p = { min: 0, max: 0 });
1890
1890
  var h = o ? 200 : 1e6, g = o ? 40 : 1e7, P = m(m({ type: "inertia", velocity: s ? e[c] : 0, bounceStiffness: h, bounceDamping: g, timeConstant: 750, restDelta: 1, restSpeed: 10 }, a), p);
@@ -1894,7 +1894,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1894
1894
  return Promise.all(v).then(l);
1895
1895
  }, t.prototype.startAxisValueAnimation = function(e, r) {
1896
1896
  var n = this.getAxisMotionValue(e);
1897
- return Ge(e, n, 0, r);
1897
+ return Ke(e, n, 0, r);
1898
1898
  }, t.prototype.stopAnimation = function() {
1899
1899
  var e = this;
1900
1900
  Z(function(r) {
@@ -1907,7 +1907,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1907
1907
  var r = this;
1908
1908
  Z(function(n) {
1909
1909
  var i = r.getProps().drag;
1910
- if (Kt(n, i, r.currentDirection)) {
1910
+ if (Gt(n, i, r.currentDirection)) {
1911
1911
  var s = r.visualElement.projection, o = r.getAxisMotionValue(n);
1912
1912
  if (s && s.layout) {
1913
1913
  var a = s.layout.actual[n], u = a.min, l = a.max;
@@ -1929,7 +1929,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1929
1929
  });
1930
1930
  var u = this.visualElement.getProps().transformTemplate;
1931
1931
  this.visualElement.getInstance().style.transform = u ? u({}, "") : "none", (r = o.root) === null || r === void 0 || r.updateScroll(), o.updateLayout(), this.resolveConstraints(), Z(function(l) {
1932
- if (Kt(l, i, null)) {
1932
+ if (Gt(l, i, null)) {
1933
1933
  var f = e.getAxisMotionValue(l), v = e.constraints[l], c = v.min, d = v.max;
1934
1934
  f.set(O(c, d, a[l]));
1935
1935
  }
@@ -1964,7 +1964,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1964
1964
  }, t;
1965
1965
  }()
1966
1966
  );
1967
- function Kt(t, e, r) {
1967
+ function Gt(t, e, r) {
1968
1968
  return (e === !0 || e === t) && (r === null || r === t);
1969
1969
  }
1970
1970
  function Uo(t, e) {
@@ -1976,9 +1976,9 @@ function No(t) {
1976
1976
  var e = t.dragControls, r = t.visualElement, n = _t(function() {
1977
1977
  return new _o(r);
1978
1978
  });
1979
- K(function() {
1979
+ G(function() {
1980
1980
  return e && e.subscribe(n);
1981
- }, [n, e]), K(function() {
1981
+ }, [n, e]), G(function() {
1982
1982
  return n.addListeners();
1983
1983
  }, [n]);
1984
1984
  }
@@ -1991,7 +1991,7 @@ function Ho(t) {
1991
1991
  a.current = null, n && n(v, c);
1992
1992
  }
1993
1993
  };
1994
- K(function() {
1994
+ G(function() {
1995
1995
  a.current !== null && a.current.updateHandlers(l);
1996
1996
  });
1997
1997
  function f(v) {
@@ -2020,7 +2020,7 @@ var zo = {
2020
2020
  "SetAxisTarget",
2021
2021
  "Unmount"
2022
2022
  ];
2023
- function Go() {
2023
+ function Ko() {
2024
2024
  var t = Yt.map(function() {
2025
2025
  return new wt();
2026
2026
  }), e = {}, r = {
@@ -2046,7 +2046,7 @@ function Go() {
2046
2046
  };
2047
2047
  }), r;
2048
2048
  }
2049
- function Ko(t, e, r) {
2049
+ function Go(t, e, r) {
2050
2050
  var n;
2051
2051
  for (var i in e) {
2052
2052
  var s = e[i], o = r[i];
@@ -2070,7 +2070,7 @@ var Hn = function(t) {
2070
2070
  return function(c, d) {
2071
2071
  var p = c.parent, h = c.props, g = c.presenceId, P = c.blockInitialAnimation, b = c.visualState, S = c.shouldReduceMotion;
2072
2072
  d === void 0 && (d = {});
2073
- var C = !1, A = b.latestValues, M = b.renderState, R, x = Go(), w = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), H = {}, B = m({}, A), N;
2073
+ var C = !1, A = b.latestValues, M = b.renderState, R, x = Ko(), w = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), H = {}, B = m({}, A), N;
2074
2074
  function rt() {
2075
2075
  !R || !C || (nt(), a(R, M, h.style, E.projection));
2076
2076
  }
@@ -2321,7 +2321,7 @@ var Hn = function(t) {
2321
2321
  * added to our map, old ones removed, and listeners updated.
2322
2322
  */
2323
2323
  setProps: function(y) {
2324
- (y.transformTemplate || h.transformTemplate) && E.scheduleRender(), h = y, x.updatePropListeners(y), H = Ko(E, v(h), H);
2324
+ (y.transformTemplate || h.transformTemplate) && E.scheduleRender(), h = y, x.updatePropListeners(y), H = Go(E, v(h), H);
2325
2325
  },
2326
2326
  getProps: function() {
2327
2327
  return h;
@@ -2366,9 +2366,9 @@ var Hn = function(t) {
2366
2366
  function Ce(t) {
2367
2367
  return typeof t == "string" && t.startsWith("var(--");
2368
2368
  }
2369
- var Gn = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
2369
+ var Kn = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
2370
2370
  function ko(t) {
2371
- var e = Gn.exec(t);
2371
+ var e = Kn.exec(t);
2372
2372
  if (!e)
2373
2373
  return [,];
2374
2374
  var r = I(e, 3), n = r[1], i = r[2];
@@ -2412,10 +2412,10 @@ var Zo = /* @__PURE__ */ new Set([
2412
2412
  "bottom",
2413
2413
  "x",
2414
2414
  "y"
2415
- ]), Kn = function(t) {
2415
+ ]), Gn = function(t) {
2416
2416
  return Zo.has(t);
2417
2417
  }, $o = function(t) {
2418
- return Object.keys(t).some(Kn);
2418
+ return Object.keys(t).some(Gn);
2419
2419
  }, Yn = function(t, e) {
2420
2420
  t.set(e, !1), t.set(e);
2421
2421
  }, kt = function(t) {
@@ -2488,7 +2488,7 @@ var wr = {
2488
2488
  }), t;
2489
2489
  }, es = function(t, e, r, n) {
2490
2490
  r === void 0 && (r = {}), n === void 0 && (n = {}), e = m({}, e), n = m({}, n);
2491
- var i = Object.keys(e).filter(Kn), s = [], o = !1, a = [];
2491
+ var i = Object.keys(e).filter(Gn), s = [], o = !1, a = [];
2492
2492
  if (i.forEach(function(f) {
2493
2493
  var v = t.getValue(f);
2494
2494
  if (t.hasValue(f)) {
@@ -2613,7 +2613,7 @@ var Ct = {
2613
2613
  }, Lr = "_$css", us = {
2614
2614
  correct: function(t, e) {
2615
2615
  var r = e.treeScale, n = e.projectionDelta, i = t, s = t.includes("var("), o = [];
2616
- s && (t = t.replace(Gn, function(h) {
2616
+ s && (t = t.replace(Kn, function(h) {
2617
2617
  return o.push(h), Lr;
2618
2618
  }));
2619
2619
  var a = yt.parse(t);
@@ -2689,7 +2689,7 @@ var cs = {
2689
2689
  function ds(t, e, r) {
2690
2690
  r === void 0 && (r = {});
2691
2691
  var n = tt(t) ? t : Pt(t);
2692
- return Ge("", n, e, r), {
2692
+ return Ke("", n, e, r), {
2693
2693
  stop: function() {
2694
2694
  return n.stop();
2695
2695
  },
@@ -2776,7 +2776,7 @@ var Vs = (
2776
2776
  this.members = [];
2777
2777
  }
2778
2778
  return t.prototype.add = function(e) {
2779
- Ke(this.members, e), e.scheduleRender();
2779
+ Ge(this.members, e), e.scheduleRender();
2780
2780
  }, t.prototype.remove = function(e) {
2781
2781
  if (Ye(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
2782
2782
  var r = this.members[this.members.length - 1];
@@ -2835,7 +2835,7 @@ var Ss = function(t, e) {
2835
2835
  this.children = [], this.isDirty = !1;
2836
2836
  }
2837
2837
  return t.prototype.add = function(e) {
2838
- Ke(this.children, e), this.isDirty = !0;
2838
+ Ge(this.children, e), this.isDirty = !0;
2839
2839
  }, t.prototype.remove = function(e) {
2840
2840
  Ye(this.children, e), this.isDirty = !0;
2841
2841
  }, t.prototype.forEach = function(e) {
@@ -2951,7 +2951,7 @@ function qn(t) {
2951
2951
  }, o.prototype.updateSnapshot = function() {
2952
2952
  if (!(this.snapshot || !this.instance)) {
2953
2953
  var a = this.measure(), u = this.removeTransform(this.removeElementScroll(a));
2954
- Kr(u), this.snapshot = {
2954
+ Gr(u), this.snapshot = {
2955
2955
  measured: a,
2956
2956
  layout: u,
2957
2957
  latestValues: {}
@@ -2966,7 +2966,7 @@ function qn(t) {
2966
2966
  l.updateScroll();
2967
2967
  }
2968
2968
  var f = this.measure();
2969
- Kr(f);
2969
+ Gr(f);
2970
2970
  var v = this.layout;
2971
2971
  this.layout = {
2972
2972
  measured: f,
@@ -3261,11 +3261,11 @@ function Bs(t, e) {
3261
3261
  var i = r && r !== t.root ? r.instance : document, s = i.querySelector('[data-projection-id="'.concat(e, '"]'));
3262
3262
  s && t.mount(s, !0);
3263
3263
  }
3264
- function Gr(t) {
3264
+ function Kr(t) {
3265
3265
  t.min = Math.round(t.min), t.max = Math.round(t.max);
3266
3266
  }
3267
- function Kr(t) {
3268
- Gr(t.x), Gr(t.y);
3267
+ function Gr(t) {
3268
+ Kr(t.x), Kr(t.y);
3269
3269
  }
3270
3270
  var _s = qn({
3271
3271
  attachResizeListener: function(t, e) {
@@ -3302,7 +3302,7 @@ var _s = qn({
3302
3302
  checkIsScrollRoot: function(t) {
3303
3303
  return window.getComputedStyle(t).position === "fixed";
3304
3304
  }
3305
- }), Ns = m(m(m(m({}, Vo), Ua), zo), vs), Xs = /* @__PURE__ */ Ki(function(t, e) {
3305
+ }), Ns = m(m(m(m({}, Vo), Ua), zo), vs), Xs = /* @__PURE__ */ Gi(function(t, e) {
3306
3306
  return ya(t, e, Ns, ss, Us);
3307
3307
  });
3308
3308
  function Jn() {
@@ -3367,9 +3367,9 @@ var de = function(t) {
3367
3367
  a.forEach(function(f, v) {
3368
3368
  return a.set(v, !1);
3369
3369
  });
3370
- }, [n]), G.useEffect(function() {
3370
+ }, [n]), K.useEffect(function() {
3371
3371
  !n && !a.size && i?.();
3372
- }, [n]), G.createElement(Bt.Provider, { value: l }, e);
3372
+ }, [n]), K.createElement(Bt.Provider, { value: l }, e);
3373
3373
  };
3374
3374
  function zs() {
3375
3375
  return /* @__PURE__ */ new Map();
@@ -3377,13 +3377,13 @@ function zs() {
3377
3377
  var pt = function(t) {
3378
3378
  return t.key || "";
3379
3379
  };
3380
- function Gs(t, e) {
3380
+ function Ks(t, e) {
3381
3381
  t.forEach(function(r) {
3382
3382
  var n = pt(r);
3383
3383
  e.set(n, r);
3384
3384
  });
3385
3385
  }
3386
- function Ks(t) {
3386
+ function Gs(t) {
3387
3387
  var e = [];
3388
3388
  return Si.forEach(t, function(r) {
3389
3389
  xi(r) && e.push(r);
@@ -3392,14 +3392,14 @@ function Ks(t) {
3392
3392
  var Ws = function(t) {
3393
3393
  var e = t.children, r = t.custom, n = t.initial, i = n === void 0 ? !0 : n, s = t.onExitComplete, o = t.exitBeforeEnter, a = t.presenceAffectsLayout, u = a === void 0 ? !0 : a, l = I(Hs(), 1), f = l[0], v = F(De).forceRender;
3394
3394
  v && (f = v);
3395
- var c = Jn(), d = Ks(e), p = d, h = /* @__PURE__ */ new Set(), g = q(p), P = q(/* @__PURE__ */ new Map()).current, b = q(!0);
3395
+ var c = Jn(), d = Gs(e), p = d, h = /* @__PURE__ */ new Set(), g = q(p), P = q(/* @__PURE__ */ new Map()).current, b = q(!0);
3396
3396
  if (Wt(function() {
3397
- b.current = !1, Gs(d, P), g.current = p;
3397
+ b.current = !1, Ks(d, P), g.current = p;
3398
3398
  }), Ue(function() {
3399
3399
  b.current = !0, P.clear(), h.clear();
3400
3400
  }), b.current)
3401
- return G.createElement(G.Fragment, null, p.map(function(x) {
3402
- return G.createElement(de, { key: pt(x), isPresent: !0, initial: i ? void 0 : !1, presenceAffectsLayout: u }, x);
3401
+ return K.createElement(K.Fragment, null, p.map(function(x) {
3402
+ return K.createElement(de, { key: pt(x), isPresent: !0, initial: i ? void 0 : !1, presenceAffectsLayout: u }, x);
3403
3403
  }));
3404
3404
  p = W([], I(p), !1);
3405
3405
  for (var S = g.current.map(pt), C = d.map(pt), A = S.length, M = 0; M < A; M++) {
@@ -3421,13 +3421,13 @@ var Ws = function(t) {
3421
3421
  f(), s && s();
3422
3422
  }
3423
3423
  };
3424
- p.splice(D, 0, G.createElement(de, { key: pt(w), isPresent: !1, onExitComplete: H, custom: r, presenceAffectsLayout: u }, w));
3424
+ p.splice(D, 0, K.createElement(de, { key: pt(w), isPresent: !1, onExitComplete: H, custom: r, presenceAffectsLayout: u }, w));
3425
3425
  }
3426
3426
  }
3427
3427
  }), p = p.map(function(x) {
3428
3428
  var w = x.key;
3429
- return h.has(w) ? x : G.createElement(de, { key: pt(x), isPresent: !0, presenceAffectsLayout: u }, x);
3430
- }), Le !== "production" && o && p.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."), G.createElement(G.Fragment, null, h.size ? p : p.map(function(x) {
3429
+ return h.has(w) ? x : K.createElement(de, { key: pt(x), isPresent: !0, presenceAffectsLayout: u }, x);
3430
+ }), Le !== "production" && o && p.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."), K.createElement(K.Fragment, null, h.size ? p : p.map(function(x) {
3431
3431
  return Ti(x);
3432
3432
  }));
3433
3433
  };