@modelcontextprotocol/inspector-client 0.6.0 → 0.7.0

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.
@@ -77,7 +77,7 @@ function A$2(a) {
77
77
  a = z$3 && a[z$3] || a["@@iterator"];
78
78
  return "function" === typeof a ? a : null;
79
79
  }
80
- var B$3 = { isMounted: function() {
80
+ var B$4 = { isMounted: function() {
81
81
  return false;
82
82
  }, enqueueForceUpdate: function() {
83
83
  }, enqueueReplaceState: function() {
@@ -87,7 +87,7 @@ function E$2(a, b2, e) {
87
87
  this.props = a;
88
88
  this.context = b2;
89
89
  this.refs = D$3;
90
- this.updater = e || B$3;
90
+ this.updater = e || B$4;
91
91
  }
92
92
  E$2.prototype.isReactComponent = {};
93
93
  E$2.prototype.setState = function(a, b2) {
@@ -100,20 +100,20 @@ E$2.prototype.forceUpdate = function(a) {
100
100
  function F() {
101
101
  }
102
102
  F.prototype = E$2.prototype;
103
- function G$3(a, b2, e) {
103
+ function G$2(a, b2, e) {
104
104
  this.props = a;
105
105
  this.context = b2;
106
106
  this.refs = D$3;
107
- this.updater = e || B$3;
107
+ this.updater = e || B$4;
108
108
  }
109
- var H$3 = G$3.prototype = new F();
110
- H$3.constructor = G$3;
109
+ var H$3 = G$2.prototype = new F();
110
+ H$3.constructor = G$2;
111
111
  C$2(H$3, E$2.prototype);
112
112
  H$3.isPureReactComponent = true;
113
- var I$3 = Array.isArray, J$1 = Object.prototype.hasOwnProperty, K$3 = { current: null }, L$2 = { key: true, ref: true, __self: true, __source: true };
114
- function M$3(a, b2, e) {
113
+ var I$2 = Array.isArray, J$1 = Object.prototype.hasOwnProperty, K$3 = { current: null }, L$3 = { key: true, ref: true, __self: true, __source: true };
114
+ function M$2(a, b2, e) {
115
115
  var d2, c2 = {}, k2 = null, h2 = null;
116
- if (null != b2) for (d2 in void 0 !== b2.ref && (h2 = b2.ref), void 0 !== b2.key && (k2 = "" + b2.key), b2) J$1.call(b2, d2) && !L$2.hasOwnProperty(d2) && (c2[d2] = b2[d2]);
116
+ if (null != b2) for (d2 in void 0 !== b2.ref && (h2 = b2.ref), void 0 !== b2.key && (k2 = "" + b2.key), b2) J$1.call(b2, d2) && !L$3.hasOwnProperty(d2) && (c2[d2] = b2[d2]);
117
117
  var g2 = arguments.length - 2;
118
118
  if (1 === g2) c2.children = e;
119
119
  else if (1 < g2) {
@@ -135,8 +135,8 @@ function escape(a) {
135
135
  return b2[a2];
136
136
  });
137
137
  }
138
- var P$2 = /\/+/g;
139
- function Q$3(a, b2) {
138
+ var P$3 = /\/+/g;
139
+ function Q$2(a, b2) {
140
140
  return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b2.toString(36);
141
141
  }
142
142
  function R$2(a, b2, e, d2, c2) {
@@ -156,17 +156,17 @@ function R$2(a, b2, e, d2, c2) {
156
156
  h2 = true;
157
157
  }
158
158
  }
159
- if (h2) return h2 = a, c2 = c2(h2), a = "" === d2 ? "." + Q$3(h2, 0) : d2, I$3(c2) ? (e = "", null != a && (e = a.replace(P$2, "$&/") + "/"), R$2(c2, b2, e, "", function(a2) {
159
+ if (h2) return h2 = a, c2 = c2(h2), a = "" === d2 ? "." + Q$2(h2, 0) : d2, I$2(c2) ? (e = "", null != a && (e = a.replace(P$3, "$&/") + "/"), R$2(c2, b2, e, "", function(a2) {
160
160
  return a2;
161
- })) : null != c2 && (O$2(c2) && (c2 = N$3(c2, e + (!c2.key || h2 && h2.key === c2.key ? "" : ("" + c2.key).replace(P$2, "$&/") + "/") + a)), b2.push(c2)), 1;
161
+ })) : null != c2 && (O$2(c2) && (c2 = N$3(c2, e + (!c2.key || h2 && h2.key === c2.key ? "" : ("" + c2.key).replace(P$3, "$&/") + "/") + a)), b2.push(c2)), 1;
162
162
  h2 = 0;
163
163
  d2 = "" === d2 ? "." : d2 + ":";
164
- if (I$3(a)) for (var g2 = 0; g2 < a.length; g2++) {
164
+ if (I$2(a)) for (var g2 = 0; g2 < a.length; g2++) {
165
165
  k2 = a[g2];
166
- var f2 = d2 + Q$3(k2, g2);
166
+ var f2 = d2 + Q$2(k2, g2);
167
167
  h2 += R$2(k2, b2, e, f2, c2);
168
168
  }
169
- else if (f2 = A$2(a), "function" === typeof f2) for (a = f2.call(a), g2 = 0; !(k2 = a.next()).done; ) k2 = k2.value, f2 = d2 + Q$3(k2, g2++), h2 += R$2(k2, b2, e, f2, c2);
169
+ else if (f2 = A$2(a), "function" === typeof f2) for (a = f2.call(a), g2 = 0; !(k2 = a.next()).done; ) k2 = k2.value, f2 = d2 + Q$2(k2, g2++), h2 += R$2(k2, b2, e, f2, c2);
170
170
  else if ("object" === k2) throw b2 = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b2 ? "object with keys {" + Object.keys(a).join(", ") + "}" : b2) + "). If you meant to render a collection of children, use an array instead.");
171
171
  return h2;
172
172
  }
@@ -217,7 +217,7 @@ react_production_min.Children = { map: S$2, forEach: function(a, b2, e) {
217
217
  react_production_min.Component = E$2;
218
218
  react_production_min.Fragment = p$4;
219
219
  react_production_min.Profiler = r$1;
220
- react_production_min.PureComponent = G$3;
220
+ react_production_min.PureComponent = G$2;
221
221
  react_production_min.StrictMode = q$2;
222
222
  react_production_min.Suspense = w$1;
223
223
  react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W$2;
@@ -229,7 +229,7 @@ react_production_min.cloneElement = function(a, b2, e) {
229
229
  void 0 !== b2.ref && (k2 = b2.ref, h2 = K$3.current);
230
230
  void 0 !== b2.key && (c2 = "" + b2.key);
231
231
  if (a.type && a.type.defaultProps) var g2 = a.type.defaultProps;
232
- for (f2 in b2) J$1.call(b2, f2) && !L$2.hasOwnProperty(f2) && (d2[f2] = void 0 === b2[f2] && void 0 !== g2 ? g2[f2] : b2[f2]);
232
+ for (f2 in b2) J$1.call(b2, f2) && !L$3.hasOwnProperty(f2) && (d2[f2] = void 0 === b2[f2] && void 0 !== g2 ? g2[f2] : b2[f2]);
233
233
  }
234
234
  var f2 = arguments.length - 2;
235
235
  if (1 === f2) d2.children = e;
@@ -245,9 +245,9 @@ react_production_min.createContext = function(a) {
245
245
  a.Provider = { $$typeof: t, _context: a };
246
246
  return a.Consumer = a;
247
247
  };
248
- react_production_min.createElement = M$3;
248
+ react_production_min.createElement = M$2;
249
249
  react_production_min.createFactory = function(a) {
250
- var b2 = M$3.bind(null, a);
250
+ var b2 = M$2.bind(null, a);
251
251
  b2.type = a;
252
252
  return b2;
253
253
  };
@@ -323,10 +323,10 @@ react_production_min.version = "18.3.1";
323
323
  react.exports = react_production_min;
324
324
  }
325
325
  var reactExports = react.exports;
326
- const React$2 = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
327
- const React$3 = /* @__PURE__ */ _mergeNamespaces({
326
+ const React$1 = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
327
+ const React$2 = /* @__PURE__ */ _mergeNamespaces({
328
328
  __proto__: null,
329
- default: React$2
329
+ default: React$1
330
330
  }, [reactExports]);
331
331
  /**
332
332
  * @license React
@@ -1406,7 +1406,7 @@ function $b(a) {
1406
1406
  }
1407
1407
  return null;
1408
1408
  }
1409
- var ac = ca.unstable_scheduleCallback, bc = ca.unstable_cancelCallback, cc = ca.unstable_shouldYield, dc = ca.unstable_requestPaint, B$2 = ca.unstable_now, ec = ca.unstable_getCurrentPriorityLevel, fc = ca.unstable_ImmediatePriority, gc = ca.unstable_UserBlockingPriority, hc = ca.unstable_NormalPriority, ic = ca.unstable_LowPriority, jc = ca.unstable_IdlePriority, kc = null, lc = null;
1409
+ var ac = ca.unstable_scheduleCallback, bc = ca.unstable_cancelCallback, cc = ca.unstable_shouldYield, dc = ca.unstable_requestPaint, B$3 = ca.unstable_now, ec = ca.unstable_getCurrentPriorityLevel, fc = ca.unstable_ImmediatePriority, gc = ca.unstable_UserBlockingPriority, hc = ca.unstable_NormalPriority, ic = ca.unstable_LowPriority, jc = ca.unstable_IdlePriority, kc = null, lc = null;
1410
1410
  function mc(a) {
1411
1411
  if (lc && "function" === typeof lc.onCommitFiberRoot) try {
1412
1412
  lc.onCommitFiberRoot(kc, a, void 0, 128 === (a.current.flags & 128));
@@ -1986,7 +1986,7 @@ var Qd = A$1({}, ud, { key: function(a) {
1986
1986
  deltaMode: 0
1987
1987
  }), Zd = rd(Yd), $d = [9, 13, 27, 32], ae = ia && "CompositionEvent" in window, be$1 = null;
1988
1988
  ia && "documentMode" in document && (be$1 = document.documentMode);
1989
- var ce = ia && "TextEvent" in window && !be$1, de$1 = ia && (!ae || be$1 && 8 < be$1 && 11 >= be$1), ee$1 = String.fromCharCode(32), fe$1 = false;
1989
+ var ce$1 = ia && "TextEvent" in window && !be$1, de$1 = ia && (!ae || be$1 && 8 < be$1 && 11 >= be$1), ee$1 = String.fromCharCode(32), fe$1 = false;
1990
1990
  function ge(a, b2) {
1991
1991
  switch (a) {
1992
1992
  case "keyup":
@@ -2135,8 +2135,8 @@ function Ke(a, b2) {
2135
2135
  c2 = Je(c2);
2136
2136
  }
2137
2137
  }
2138
- function Le$1(a, b2) {
2139
- return a && b2 ? a === b2 ? true : a && 3 === a.nodeType ? false : b2 && 3 === b2.nodeType ? Le$1(a, b2.parentNode) : "contains" in a ? a.contains(b2) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b2) & 16) : false : false;
2138
+ function Le(a, b2) {
2139
+ return a && b2 ? a === b2 ? true : a && 3 === a.nodeType ? false : b2 && 3 === b2.nodeType ? Le(a, b2.parentNode) : "contains" in a ? a.contains(b2) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b2) & 16) : false : false;
2140
2140
  }
2141
2141
  function Me$1() {
2142
2142
  for (var a = window, b2 = Xa(); b2 instanceof a.HTMLIFrameElement; ) {
@@ -2157,7 +2157,7 @@ function Ne(a) {
2157
2157
  }
2158
2158
  function Oe(a) {
2159
2159
  var b2 = Me$1(), c2 = a.focusedElem, d2 = a.selectionRange;
2160
- if (b2 !== c2 && c2 && c2.ownerDocument && Le$1(c2.ownerDocument.documentElement, c2)) {
2160
+ if (b2 !== c2 && c2 && c2.ownerDocument && Le(c2.ownerDocument.documentElement, c2)) {
2161
2161
  if (null !== d2 && Ne(c2)) {
2162
2162
  if (b2 = d2.start, a = d2.end, void 0 === a && (a = b2), "selectionStart" in c2) c2.selectionStart = b2, c2.selectionEnd = Math.min(a, c2.value.length);
2163
2163
  else if (a = (b2 = c2.ownerDocument || document) && b2.defaultView || window, a.getSelection) {
@@ -2179,19 +2179,19 @@ function Oe(a) {
2179
2179
  for (c2 = 0; c2 < b2.length; c2++) a = b2[c2], a.element.scrollLeft = a.left, a.element.scrollTop = a.top;
2180
2180
  }
2181
2181
  }
2182
- var Pe$1 = ia && "documentMode" in document && 11 >= document.documentMode, Qe = null, Re = null, Se$1 = null, Te$1 = false;
2182
+ var Pe$1 = ia && "documentMode" in document && 11 >= document.documentMode, Qe = null, Re$1 = null, Se$1 = null, Te$1 = false;
2183
2183
  function Ue(a, b2, c2) {
2184
2184
  var d2 = c2.window === c2 ? c2.document : 9 === c2.nodeType ? c2 : c2.ownerDocument;
2185
- Te$1 || null == Qe || Qe !== Xa(d2) || (d2 = Qe, "selectionStart" in d2 && Ne(d2) ? d2 = { start: d2.selectionStart, end: d2.selectionEnd } : (d2 = (d2.ownerDocument && d2.ownerDocument.defaultView || window).getSelection(), d2 = { anchorNode: d2.anchorNode, anchorOffset: d2.anchorOffset, focusNode: d2.focusNode, focusOffset: d2.focusOffset }), Se$1 && Ie$1(Se$1, d2) || (Se$1 = d2, d2 = oe(Re, "onSelect"), 0 < d2.length && (b2 = new td("onSelect", "select", null, b2, c2), a.push({ event: b2, listeners: d2 }), b2.target = Qe)));
2185
+ Te$1 || null == Qe || Qe !== Xa(d2) || (d2 = Qe, "selectionStart" in d2 && Ne(d2) ? d2 = { start: d2.selectionStart, end: d2.selectionEnd } : (d2 = (d2.ownerDocument && d2.ownerDocument.defaultView || window).getSelection(), d2 = { anchorNode: d2.anchorNode, anchorOffset: d2.anchorOffset, focusNode: d2.focusNode, focusOffset: d2.focusOffset }), Se$1 && Ie$1(Se$1, d2) || (Se$1 = d2, d2 = oe(Re$1, "onSelect"), 0 < d2.length && (b2 = new td("onSelect", "select", null, b2, c2), a.push({ event: b2, listeners: d2 }), b2.target = Qe)));
2186
2186
  }
2187
- function Ve$1(a, b2) {
2187
+ function Ve(a, b2) {
2188
2188
  var c2 = {};
2189
2189
  c2[a.toLowerCase()] = b2.toLowerCase();
2190
2190
  c2["Webkit" + a] = "webkit" + b2;
2191
2191
  c2["Moz" + a] = "moz" + b2;
2192
2192
  return c2;
2193
2193
  }
2194
- var We = { animationend: Ve$1("Animation", "AnimationEnd"), animationiteration: Ve$1("Animation", "AnimationIteration"), animationstart: Ve$1("Animation", "AnimationStart"), transitionend: Ve$1("Transition", "TransitionEnd") }, Xe = {}, Ye = {};
2194
+ var We = { animationend: Ve("Animation", "AnimationEnd"), animationiteration: Ve("Animation", "AnimationIteration"), animationstart: Ve("Animation", "AnimationStart"), transitionend: Ve("Transition", "TransitionEnd") }, Xe = {}, Ye = {};
2195
2195
  ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition);
2196
2196
  function Ze(a) {
2197
2197
  if (Xe[a]) return Xe[a];
@@ -2486,10 +2486,10 @@ function hd(a, b2, c2, d2, e) {
2486
2486
  xa = d3 ? ue$1(d3) : window;
2487
2487
  switch (a) {
2488
2488
  case "focusin":
2489
- if (me$1(xa) || "true" === xa.contentEditable) Qe = xa, Re = d3, Se$1 = null;
2489
+ if (me$1(xa) || "true" === xa.contentEditable) Qe = xa, Re$1 = d3, Se$1 = null;
2490
2490
  break;
2491
2491
  case "focusout":
2492
- Se$1 = Re = Qe = null;
2492
+ Se$1 = Re$1 = Qe = null;
2493
2493
  break;
2494
2494
  case "mousedown":
2495
2495
  Te$1 = true;
@@ -2523,7 +2523,7 @@ function hd(a, b2, c2, d2, e) {
2523
2523
  }
2524
2524
  else ie ? ge(a, c2) && (ba = "onCompositionEnd") : "keydown" === a && 229 === c2.keyCode && (ba = "onCompositionStart");
2525
2525
  ba && (de$1 && "ko" !== c2.locale && (ie || "onCompositionStart" !== ba ? "onCompositionEnd" === ba && ie && ($a = nd()) : (kd = e2, ld = "value" in kd ? kd.value : kd.textContent, ie = true)), xa = oe(d3, ba), 0 < xa.length && (ba = new Ld(ba, a, null, c2, e2), g3.push({ event: ba, listeners: xa }), $a ? ba.data = $a : ($a = he$1(c2), null !== $a && (ba.data = $a))));
2526
- if ($a = ce ? je(a, c2) : ke$1(a, c2)) d3 = oe(d3, "onBeforeInput"), 0 < d3.length && (e2 = new Ld("onBeforeInput", "beforeinput", null, c2, e2), g3.push({ event: e2, listeners: d3 }), e2.data = $a);
2526
+ if ($a = ce$1 ? je(a, c2) : ke$1(a, c2)) d3 = oe(d3, "onBeforeInput"), 0 < d3.length && (e2 = new Ld("onBeforeInput", "beforeinput", null, c2, e2), g3.push({ event: e2, listeners: d3 }), e2.data = $a);
2527
2527
  }
2528
2528
  se(g3, b2);
2529
2529
  });
@@ -2656,7 +2656,7 @@ function Uf(a) {
2656
2656
  function E$1(a) {
2657
2657
  0 > Tf || (a.current = Sf[Tf], Sf[Tf] = null, Tf--);
2658
2658
  }
2659
- function G$2(a, b2) {
2659
+ function G$1(a, b2) {
2660
2660
  Tf++;
2661
2661
  Sf[Tf] = a.current;
2662
2662
  a.current = b2;
@@ -2682,8 +2682,8 @@ function $f() {
2682
2682
  }
2683
2683
  function ag(a, b2, c2) {
2684
2684
  if (H$2.current !== Vf) throw Error(p$2(168));
2685
- G$2(H$2, b2);
2686
- G$2(Wf, c2);
2685
+ G$1(H$2, b2);
2686
+ G$1(Wf, c2);
2687
2687
  }
2688
2688
  function bg(a, b2, c2) {
2689
2689
  var d2 = a.stateNode;
@@ -2696,15 +2696,15 @@ function bg(a, b2, c2) {
2696
2696
  function cg(a) {
2697
2697
  a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Vf;
2698
2698
  Xf = H$2.current;
2699
- G$2(H$2, a);
2700
- G$2(Wf, Wf.current);
2699
+ G$1(H$2, a);
2700
+ G$1(Wf, Wf.current);
2701
2701
  return true;
2702
2702
  }
2703
2703
  function dg(a, b2, c2) {
2704
2704
  var d2 = a.stateNode;
2705
2705
  if (!d2) throw Error(p$2(169));
2706
- c2 ? (a = bg(a, b2, Xf), d2.__reactInternalMemoizedMergedChildContext = a, E$1(Wf), E$1(H$2), G$2(H$2, a)) : E$1(Wf);
2707
- G$2(Wf, c2);
2706
+ c2 ? (a = bg(a, b2, Xf), d2.__reactInternalMemoizedMergedChildContext = a, E$1(Wf), E$1(H$2), G$1(H$2, a)) : E$1(Wf);
2707
+ G$1(Wf, c2);
2708
2708
  }
2709
2709
  var eg = null, fg = false, gg = false;
2710
2710
  function hg(a) {
@@ -2770,7 +2770,7 @@ function wg(a) {
2770
2770
  for (; a === mg; ) mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null;
2771
2771
  for (; a === qg; ) qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null;
2772
2772
  }
2773
- var xg = null, yg = null, I$2 = false, zg = null;
2773
+ var xg = null, yg = null, I$1 = false, zg = null;
2774
2774
  function Ag(a, b2) {
2775
2775
  var c2 = Bg(5, null, null, 0);
2776
2776
  c2.elementType = "DELETED";
@@ -2797,7 +2797,7 @@ function Dg(a) {
2797
2797
  return 0 !== (a.mode & 1) && 0 === (a.flags & 128);
2798
2798
  }
2799
2799
  function Eg(a) {
2800
- if (I$2) {
2800
+ if (I$1) {
2801
2801
  var b2 = yg;
2802
2802
  if (b2) {
2803
2803
  var c2 = b2;
@@ -2805,12 +2805,12 @@ function Eg(a) {
2805
2805
  if (Dg(a)) throw Error(p$2(418));
2806
2806
  b2 = Lf(c2.nextSibling);
2807
2807
  var d2 = xg;
2808
- b2 && Cg(a, b2) ? Ag(d2, c2) : (a.flags = a.flags & -4097 | 2, I$2 = false, xg = a);
2808
+ b2 && Cg(a, b2) ? Ag(d2, c2) : (a.flags = a.flags & -4097 | 2, I$1 = false, xg = a);
2809
2809
  }
2810
2810
  } else {
2811
2811
  if (Dg(a)) throw Error(p$2(418));
2812
2812
  a.flags = a.flags & -4097 | 2;
2813
- I$2 = false;
2813
+ I$1 = false;
2814
2814
  xg = a;
2815
2815
  }
2816
2816
  }
@@ -2821,7 +2821,7 @@ function Fg(a) {
2821
2821
  }
2822
2822
  function Gg(a) {
2823
2823
  if (a !== xg) return false;
2824
- if (!I$2) return Fg(a), I$2 = true, false;
2824
+ if (!I$1) return Fg(a), I$1 = true, false;
2825
2825
  var b2;
2826
2826
  (b2 = 3 !== a.tag) && !(b2 = 5 !== a.tag) && (b2 = a.type, b2 = "head" !== b2 && "body" !== b2 && !Ef(a.type, a.memoizedProps));
2827
2827
  if (b2 && (b2 = yg)) {
@@ -2858,7 +2858,7 @@ function Hg() {
2858
2858
  }
2859
2859
  function Ig() {
2860
2860
  yg = xg = null;
2861
- I$2 = false;
2861
+ I$1 = false;
2862
2862
  }
2863
2863
  function Jg(a) {
2864
2864
  null === zg ? zg = [a] : zg.push(a);
@@ -3027,17 +3027,17 @@ function Og(a) {
3027
3027
  m3 = n3;
3028
3028
  u2 = x2;
3029
3029
  }
3030
- if (w2 === h3.length) return c2(e2, u2), I$2 && tg(e2, w2), l3;
3030
+ if (w2 === h3.length) return c2(e2, u2), I$1 && tg(e2, w2), l3;
3031
3031
  if (null === u2) {
3032
3032
  for (; w2 < h3.length; w2++) u2 = q2(e2, h3[w2], k3), null !== u2 && (g3 = f2(u2, g3, w2), null === m3 ? l3 = u2 : m3.sibling = u2, m3 = u2);
3033
- I$2 && tg(e2, w2);
3033
+ I$1 && tg(e2, w2);
3034
3034
  return l3;
3035
3035
  }
3036
3036
  for (u2 = d2(e2, u2); w2 < h3.length; w2++) x2 = y2(u2, e2, w2, h3[w2], k3), null !== x2 && (a && null !== x2.alternate && u2.delete(null === x2.key ? w2 : x2.key), g3 = f2(x2, g3, w2), null === m3 ? l3 = x2 : m3.sibling = x2, m3 = x2);
3037
3037
  a && u2.forEach(function(a2) {
3038
3038
  return b2(e2, a2);
3039
3039
  });
3040
- I$2 && tg(e2, w2);
3040
+ I$1 && tg(e2, w2);
3041
3041
  return l3;
3042
3042
  }
3043
3043
  function t2(e2, g3, h3, k3) {
@@ -3061,17 +3061,17 @@ function Og(a) {
3061
3061
  if (n3.done) return c2(
3062
3062
  e2,
3063
3063
  m3
3064
- ), I$2 && tg(e2, w2), l3;
3064
+ ), I$1 && tg(e2, w2), l3;
3065
3065
  if (null === m3) {
3066
3066
  for (; !n3.done; w2++, n3 = h3.next()) n3 = q2(e2, n3.value, k3), null !== n3 && (g3 = f2(n3, g3, w2), null === u2 ? l3 = n3 : u2.sibling = n3, u2 = n3);
3067
- I$2 && tg(e2, w2);
3067
+ I$1 && tg(e2, w2);
3068
3068
  return l3;
3069
3069
  }
3070
3070
  for (m3 = d2(e2, m3); !n3.done; w2++, n3 = h3.next()) n3 = y2(m3, e2, w2, n3.value, k3), null !== n3 && (a && null !== n3.alternate && m3.delete(null === n3.key ? w2 : n3.key), g3 = f2(n3, g3, w2), null === u2 ? l3 = n3 : u2.sibling = n3, u2 = n3);
3071
3071
  a && m3.forEach(function(a2) {
3072
3072
  return b2(e2, a2);
3073
3073
  });
3074
- I$2 && tg(e2, w2);
3074
+ I$1 && tg(e2, w2);
3075
3075
  return l3;
3076
3076
  }
3077
3077
  function J2(a2, d3, f3, h3) {
@@ -3341,9 +3341,9 @@ function xh(a) {
3341
3341
  return a;
3342
3342
  }
3343
3343
  function yh(a, b2) {
3344
- G$2(wh, b2);
3345
- G$2(vh, a);
3346
- G$2(uh, th);
3344
+ G$1(wh, b2);
3345
+ G$1(vh, a);
3346
+ G$1(uh, th);
3347
3347
  a = b2.nodeType;
3348
3348
  switch (a) {
3349
3349
  case 9:
@@ -3354,7 +3354,7 @@ function yh(a, b2) {
3354
3354
  a = 8 === a ? b2.parentNode : b2, b2 = a.namespaceURI || null, a = a.tagName, b2 = lb(b2, a);
3355
3355
  }
3356
3356
  E$1(uh);
3357
- G$2(uh, b2);
3357
+ G$1(uh, b2);
3358
3358
  }
3359
3359
  function zh() {
3360
3360
  E$1(uh);
@@ -3365,12 +3365,12 @@ function Ah(a) {
3365
3365
  xh(wh.current);
3366
3366
  var b2 = xh(uh.current);
3367
3367
  var c2 = lb(b2, a.type);
3368
- b2 !== c2 && (G$2(vh, a), G$2(uh, c2));
3368
+ b2 !== c2 && (G$1(vh, a), G$1(uh, c2));
3369
3369
  }
3370
3370
  function Bh(a) {
3371
3371
  vh.current === a && (E$1(uh), E$1(vh));
3372
3372
  }
3373
- var L$1 = Uf(0);
3373
+ var L$2 = Uf(0);
3374
3374
  function Ch(a) {
3375
3375
  for (var b2 = a; null !== b2; ) {
3376
3376
  if (13 === b2.tag) {
@@ -3398,8 +3398,8 @@ function Eh() {
3398
3398
  for (var a = 0; a < Dh.length; a++) Dh[a]._workInProgressVersionPrimary = null;
3399
3399
  Dh.length = 0;
3400
3400
  }
3401
- var Fh = ua.ReactCurrentDispatcher, Gh = ua.ReactCurrentBatchConfig, Hh = 0, M$2 = null, N$2 = null, O$1 = null, Ih = false, Jh = false, Kh = 0, Lh = 0;
3402
- function P$1() {
3401
+ var Fh = ua.ReactCurrentDispatcher, Gh = ua.ReactCurrentBatchConfig, Hh = 0, M$1 = null, N$2 = null, O$1 = null, Ih = false, Jh = false, Kh = 0, Lh = 0;
3402
+ function P$2() {
3403
3403
  throw Error(p$2(321));
3404
3404
  }
3405
3405
  function Mh(a, b2) {
@@ -3409,7 +3409,7 @@ function Mh(a, b2) {
3409
3409
  }
3410
3410
  function Nh(a, b2, c2, d2, e, f2) {
3411
3411
  Hh = f2;
3412
- M$2 = b2;
3412
+ M$1 = b2;
3413
3413
  b2.memoizedState = null;
3414
3414
  b2.updateQueue = null;
3415
3415
  b2.lanes = 0;
@@ -3431,7 +3431,7 @@ function Nh(a, b2, c2, d2, e, f2) {
3431
3431
  Fh.current = Rh;
3432
3432
  b2 = null !== N$2 && null !== N$2.next;
3433
3433
  Hh = 0;
3434
- O$1 = N$2 = M$2 = null;
3434
+ O$1 = N$2 = M$1 = null;
3435
3435
  Ih = false;
3436
3436
  if (b2) throw Error(p$2(300));
3437
3437
  return a;
@@ -3443,21 +3443,21 @@ function Sh() {
3443
3443
  }
3444
3444
  function Th() {
3445
3445
  var a = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
3446
- null === O$1 ? M$2.memoizedState = O$1 = a : O$1 = O$1.next = a;
3446
+ null === O$1 ? M$1.memoizedState = O$1 = a : O$1 = O$1.next = a;
3447
3447
  return O$1;
3448
3448
  }
3449
3449
  function Uh() {
3450
3450
  if (null === N$2) {
3451
- var a = M$2.alternate;
3451
+ var a = M$1.alternate;
3452
3452
  a = null !== a ? a.memoizedState : null;
3453
3453
  } else a = N$2.next;
3454
- var b2 = null === O$1 ? M$2.memoizedState : O$1.next;
3454
+ var b2 = null === O$1 ? M$1.memoizedState : O$1.next;
3455
3455
  if (null !== b2) O$1 = b2, N$2 = a;
3456
3456
  else {
3457
3457
  if (null === a) throw Error(p$2(310));
3458
3458
  N$2 = a;
3459
3459
  a = { memoizedState: N$2.memoizedState, baseState: N$2.baseState, baseQueue: N$2.baseQueue, queue: N$2.queue, next: null };
3460
- null === O$1 ? M$2.memoizedState = O$1 = a : O$1 = O$1.next = a;
3460
+ null === O$1 ? M$1.memoizedState = O$1 = a : O$1 = O$1.next = a;
3461
3461
  }
3462
3462
  return O$1;
3463
3463
  }
@@ -3494,7 +3494,7 @@ function Wh(a) {
3494
3494
  next: null
3495
3495
  };
3496
3496
  null === k2 ? (h2 = k2 = q2, g2 = d2) : k2 = k2.next = q2;
3497
- M$2.lanes |= m2;
3497
+ M$1.lanes |= m2;
3498
3498
  rh |= m2;
3499
3499
  }
3500
3500
  l2 = l2.next;
@@ -3510,7 +3510,7 @@ function Wh(a) {
3510
3510
  if (null !== a) {
3511
3511
  e = a;
3512
3512
  do
3513
- f2 = e.lane, M$2.lanes |= f2, rh |= f2, e = e.next;
3513
+ f2 = e.lane, M$1.lanes |= f2, rh |= f2, e = e.next;
3514
3514
  while (e !== a);
3515
3515
  } else null === e && (c2.lanes = 0);
3516
3516
  return [b2.memoizedState, c2.dispatch];
@@ -3536,14 +3536,14 @@ function Xh(a) {
3536
3536
  function Yh() {
3537
3537
  }
3538
3538
  function Zh(a, b2) {
3539
- var c2 = M$2, d2 = Uh(), e = b2(), f2 = !He(d2.memoizedState, e);
3539
+ var c2 = M$1, d2 = Uh(), e = b2(), f2 = !He(d2.memoizedState, e);
3540
3540
  f2 && (d2.memoizedState = e, dh = true);
3541
3541
  d2 = d2.queue;
3542
3542
  $h(ai.bind(null, c2, d2, a), [a]);
3543
3543
  if (d2.getSnapshot !== b2 || f2 || null !== O$1 && O$1.memoizedState.tag & 1) {
3544
3544
  c2.flags |= 2048;
3545
3545
  bi(9, ci.bind(null, c2, d2, e, b2), void 0, null);
3546
- if (null === Q$2) throw Error(p$2(349));
3546
+ if (null === Q$1) throw Error(p$2(349));
3547
3547
  0 !== (Hh & 30) || di(c2, b2, e);
3548
3548
  }
3549
3549
  return e;
@@ -3551,8 +3551,8 @@ function Zh(a, b2) {
3551
3551
  function di(a, b2, c2) {
3552
3552
  a.flags |= 16384;
3553
3553
  a = { getSnapshot: b2, value: c2 };
3554
- b2 = M$2.updateQueue;
3555
- null === b2 ? (b2 = { lastEffect: null, stores: null }, M$2.updateQueue = b2, b2.stores = [a]) : (c2 = b2.stores, null === c2 ? b2.stores = [a] : c2.push(a));
3554
+ b2 = M$1.updateQueue;
3555
+ null === b2 ? (b2 = { lastEffect: null, stores: null }, M$1.updateQueue = b2, b2.stores = [a]) : (c2 = b2.stores, null === c2 ? b2.stores = [a] : c2.push(a));
3556
3556
  }
3557
3557
  function ci(a, b2, c2, d2) {
3558
3558
  b2.value = c2;
@@ -3584,13 +3584,13 @@ function hi(a) {
3584
3584
  b2.memoizedState = b2.baseState = a;
3585
3585
  a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Vh, lastRenderedState: a };
3586
3586
  b2.queue = a;
3587
- a = a.dispatch = ii.bind(null, M$2, a);
3587
+ a = a.dispatch = ii.bind(null, M$1, a);
3588
3588
  return [b2.memoizedState, a];
3589
3589
  }
3590
3590
  function bi(a, b2, c2, d2) {
3591
3591
  a = { tag: a, create: b2, destroy: c2, deps: d2, next: null };
3592
- b2 = M$2.updateQueue;
3593
- null === b2 ? (b2 = { lastEffect: null, stores: null }, M$2.updateQueue = b2, b2.lastEffect = a.next = a) : (c2 = b2.lastEffect, null === c2 ? b2.lastEffect = a.next = a : (d2 = c2.next, c2.next = a, a.next = d2, b2.lastEffect = a));
3592
+ b2 = M$1.updateQueue;
3593
+ null === b2 ? (b2 = { lastEffect: null, stores: null }, M$1.updateQueue = b2, b2.lastEffect = a.next = a) : (c2 = b2.lastEffect, null === c2 ? b2.lastEffect = a.next = a : (d2 = c2.next, c2.next = a, a.next = d2, b2.lastEffect = a));
3594
3594
  return a;
3595
3595
  }
3596
3596
  function ji() {
@@ -3598,7 +3598,7 @@ function ji() {
3598
3598
  }
3599
3599
  function ki(a, b2, c2, d2) {
3600
3600
  var e = Th();
3601
- M$2.flags |= a;
3601
+ M$1.flags |= a;
3602
3602
  e.memoizedState = bi(1 | b2, c2, void 0, void 0 === d2 ? null : d2);
3603
3603
  }
3604
3604
  function li(a, b2, c2, d2) {
@@ -3613,7 +3613,7 @@ function li(a, b2, c2, d2) {
3613
3613
  return;
3614
3614
  }
3615
3615
  }
3616
- M$2.flags |= a;
3616
+ M$1.flags |= a;
3617
3617
  e.memoizedState = bi(1 | b2, c2, f2, d2);
3618
3618
  }
3619
3619
  function mi(a, b2) {
@@ -3661,7 +3661,7 @@ function ti(a, b2) {
3661
3661
  }
3662
3662
  function ui(a, b2, c2) {
3663
3663
  if (0 === (Hh & 21)) return a.baseState && (a.baseState = false, dh = true), a.memoizedState = c2;
3664
- He(c2, b2) || (c2 = yc(), M$2.lanes |= c2, rh |= c2, a.baseState = true);
3664
+ He(c2, b2) || (c2 = yc(), M$1.lanes |= c2, rh |= c2, a.baseState = true);
3665
3665
  return b2;
3666
3666
  }
3667
3667
  function vi(a, b2) {
@@ -3713,7 +3713,7 @@ function ii(a, b2, c2) {
3713
3713
  }
3714
3714
  function zi(a) {
3715
3715
  var b2 = a.alternate;
3716
- return a === M$2 || null !== b2 && b2 === M$2;
3716
+ return a === M$1 || null !== b2 && b2 === M$1;
3717
3717
  }
3718
3718
  function Ai(a, b2) {
3719
3719
  Jh = Ih = true;
@@ -3730,7 +3730,7 @@ function Bi(a, b2, c2) {
3730
3730
  Cc(a, c2);
3731
3731
  }
3732
3732
  }
3733
- var Rh = { readContext: eh, useCallback: P$1, useContext: P$1, useEffect: P$1, useImperativeHandle: P$1, useInsertionEffect: P$1, useLayoutEffect: P$1, useMemo: P$1, useReducer: P$1, useRef: P$1, useState: P$1, useDebugValue: P$1, useDeferredValue: P$1, useTransition: P$1, useMutableSource: P$1, useSyncExternalStore: P$1, useId: P$1, unstable_isNewReconciler: false }, Oh = { readContext: eh, useCallback: function(a, b2) {
3733
+ var Rh = { readContext: eh, useCallback: P$2, useContext: P$2, useEffect: P$2, useImperativeHandle: P$2, useInsertionEffect: P$2, useLayoutEffect: P$2, useMemo: P$2, useReducer: P$2, useRef: P$2, useState: P$2, useDebugValue: P$2, useDeferredValue: P$2, useTransition: P$2, useMutableSource: P$2, useSyncExternalStore: P$2, useId: P$2, unstable_isNewReconciler: false }, Oh = { readContext: eh, useCallback: function(a, b2) {
3734
3734
  Th().memoizedState = [a, void 0 === b2 ? null : b2];
3735
3735
  return a;
3736
3736
  }, useContext: eh, useEffect: mi, useImperativeHandle: function(a, b2, c2) {
@@ -3757,7 +3757,7 @@ var Rh = { readContext: eh, useCallback: P$1, useContext: P$1, useEffect: P$1, u
3757
3757
  d2.memoizedState = d2.baseState = b2;
3758
3758
  a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a, lastRenderedState: b2 };
3759
3759
  d2.queue = a;
3760
- a = a.dispatch = xi.bind(null, M$2, a);
3760
+ a = a.dispatch = xi.bind(null, M$1, a);
3761
3761
  return [d2.memoizedState, a];
3762
3762
  }, useRef: function(a) {
3763
3763
  var b2 = Th();
@@ -3772,13 +3772,13 @@ var Rh = { readContext: eh, useCallback: P$1, useContext: P$1, useEffect: P$1, u
3772
3772
  return [b2, a];
3773
3773
  }, useMutableSource: function() {
3774
3774
  }, useSyncExternalStore: function(a, b2, c2) {
3775
- var d2 = M$2, e = Th();
3776
- if (I$2) {
3775
+ var d2 = M$1, e = Th();
3776
+ if (I$1) {
3777
3777
  if (void 0 === c2) throw Error(p$2(407));
3778
3778
  c2 = c2();
3779
3779
  } else {
3780
3780
  c2 = b2();
3781
- if (null === Q$2) throw Error(p$2(349));
3781
+ if (null === Q$1) throw Error(p$2(349));
3782
3782
  0 !== (Hh & 30) || di(d2, b2, c2);
3783
3783
  }
3784
3784
  e.memoizedState = c2;
@@ -3794,8 +3794,8 @@ var Rh = { readContext: eh, useCallback: P$1, useContext: P$1, useEffect: P$1, u
3794
3794
  bi(9, ci.bind(null, d2, f2, c2, b2), void 0, null);
3795
3795
  return c2;
3796
3796
  }, useId: function() {
3797
- var a = Th(), b2 = Q$2.identifierPrefix;
3798
- if (I$2) {
3797
+ var a = Th(), b2 = Q$1.identifierPrefix;
3798
+ if (I$1) {
3799
3799
  var c2 = sg;
3800
3800
  var d2 = rg;
3801
3801
  c2 = (d2 & ~(1 << 32 - oc(d2) - 1)).toString(32) + c2;
@@ -4011,7 +4011,7 @@ function Yi(a, b2, c2, d2, e) {
4011
4011
  d2 = Nh(a, b2, c2, d2, f2, e);
4012
4012
  c2 = Sh();
4013
4013
  if (null !== a && !dh) return b2.updateQueue = a.updateQueue, b2.flags &= -2053, a.lanes &= ~e, Zi(a, b2, e);
4014
- I$2 && c2 && vg(b2);
4014
+ I$1 && c2 && vg(b2);
4015
4015
  b2.flags |= 1;
4016
4016
  Xi(a, b2, d2, e);
4017
4017
  return b2.child;
@@ -4048,15 +4048,15 @@ function bj(a, b2, c2, d2, e) {
4048
4048
  }
4049
4049
  function dj(a, b2, c2) {
4050
4050
  var d2 = b2.pendingProps, e = d2.children, f2 = null !== a ? a.memoizedState : null;
4051
- if ("hidden" === d2.mode) if (0 === (b2.mode & 1)) b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G$2(ej, fj), fj |= c2;
4051
+ if ("hidden" === d2.mode) if (0 === (b2.mode & 1)) b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G$1(ej, fj), fj |= c2;
4052
4052
  else {
4053
- if (0 === (c2 & 1073741824)) return a = null !== f2 ? f2.baseLanes | c2 : c2, b2.lanes = b2.childLanes = 1073741824, b2.memoizedState = { baseLanes: a, cachePool: null, transitions: null }, b2.updateQueue = null, G$2(ej, fj), fj |= a, null;
4053
+ if (0 === (c2 & 1073741824)) return a = null !== f2 ? f2.baseLanes | c2 : c2, b2.lanes = b2.childLanes = 1073741824, b2.memoizedState = { baseLanes: a, cachePool: null, transitions: null }, b2.updateQueue = null, G$1(ej, fj), fj |= a, null;
4054
4054
  b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null };
4055
4055
  d2 = null !== f2 ? f2.baseLanes : c2;
4056
- G$2(ej, fj);
4056
+ G$1(ej, fj);
4057
4057
  fj |= d2;
4058
4058
  }
4059
- else null !== f2 ? (d2 = f2.baseLanes | c2, b2.memoizedState = null) : d2 = c2, G$2(ej, fj), fj |= d2;
4059
+ else null !== f2 ? (d2 = f2.baseLanes | c2, b2.memoizedState = null) : d2 = c2, G$1(ej, fj), fj |= d2;
4060
4060
  Xi(a, b2, e, c2);
4061
4061
  return b2.child;
4062
4062
  }
@@ -4071,7 +4071,7 @@ function cj(a, b2, c2, d2, e) {
4071
4071
  c2 = Nh(a, b2, c2, d2, f2, e);
4072
4072
  d2 = Sh();
4073
4073
  if (null !== a && !dh) return b2.updateQueue = a.updateQueue, b2.flags &= -2053, a.lanes &= ~e, Zi(a, b2, e);
4074
- I$2 && d2 && vg(b2);
4074
+ I$1 && d2 && vg(b2);
4075
4075
  b2.flags |= 1;
4076
4076
  Xi(a, b2, c2, e);
4077
4077
  return b2.child;
@@ -4147,11 +4147,11 @@ function nj(a) {
4147
4147
  return { baseLanes: a, cachePool: null, transitions: null };
4148
4148
  }
4149
4149
  function oj(a, b2, c2) {
4150
- var d2 = b2.pendingProps, e = L$1.current, f2 = false, g2 = 0 !== (b2.flags & 128), h2;
4150
+ var d2 = b2.pendingProps, e = L$2.current, f2 = false, g2 = 0 !== (b2.flags & 128), h2;
4151
4151
  (h2 = g2) || (h2 = null !== a && null === a.memoizedState ? false : 0 !== (e & 2));
4152
4152
  if (h2) f2 = true, b2.flags &= -129;
4153
4153
  else if (null === a || null !== a.memoizedState) e |= 1;
4154
- G$2(L$1, e & 1);
4154
+ G$1(L$2, e & 1);
4155
4155
  if (null === a) {
4156
4156
  Eg(b2);
4157
4157
  a = b2.memoizedState;
@@ -4236,7 +4236,7 @@ function rj(a, b2, c2, d2, e, f2, g2) {
4236
4236
  }
4237
4237
  h2 = 0 !== (g2 & a.childLanes);
4238
4238
  if (dh || h2) {
4239
- d2 = Q$2;
4239
+ d2 = Q$1;
4240
4240
  if (null !== d2) {
4241
4241
  switch (g2 & -g2) {
4242
4242
  case 4:
@@ -4285,7 +4285,7 @@ function rj(a, b2, c2, d2, e, f2, g2) {
4285
4285
  a = f2.treeContext;
4286
4286
  yg = Lf(e.nextSibling);
4287
4287
  xg = b2;
4288
- I$2 = true;
4288
+ I$1 = true;
4289
4289
  zg = null;
4290
4290
  null !== a && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a.id, sg = a.overflow, qg = b2);
4291
4291
  b2 = qj(b2, d2.children);
@@ -4305,7 +4305,7 @@ function wj(a, b2, c2, d2, e) {
4305
4305
  function xj(a, b2, c2) {
4306
4306
  var d2 = b2.pendingProps, e = d2.revealOrder, f2 = d2.tail;
4307
4307
  Xi(a, b2, d2.children, c2);
4308
- d2 = L$1.current;
4308
+ d2 = L$2.current;
4309
4309
  if (0 !== (d2 & 2)) d2 = d2 & 1 | 2, b2.flags |= 128;
4310
4310
  else {
4311
4311
  if (null !== a && 0 !== (a.flags & 128)) a: for (a = b2.child; null !== a; ) {
@@ -4326,7 +4326,7 @@ function xj(a, b2, c2) {
4326
4326
  }
4327
4327
  d2 &= 1;
4328
4328
  }
4329
- G$2(L$1, d2);
4329
+ G$1(L$2, d2);
4330
4330
  if (0 === (b2.mode & 1)) b2.memoizedState = null;
4331
4331
  else switch (e) {
4332
4332
  case "forwards":
@@ -4394,19 +4394,19 @@ function yj(a, b2, c2) {
4394
4394
  break;
4395
4395
  case 10:
4396
4396
  var d2 = b2.type._context, e = b2.memoizedProps.value;
4397
- G$2(Wg, d2._currentValue);
4397
+ G$1(Wg, d2._currentValue);
4398
4398
  d2._currentValue = e;
4399
4399
  break;
4400
4400
  case 13:
4401
4401
  d2 = b2.memoizedState;
4402
4402
  if (null !== d2) {
4403
- if (null !== d2.dehydrated) return G$2(L$1, L$1.current & 1), b2.flags |= 128, null;
4403
+ if (null !== d2.dehydrated) return G$1(L$2, L$2.current & 1), b2.flags |= 128, null;
4404
4404
  if (0 !== (c2 & b2.child.childLanes)) return oj(a, b2, c2);
4405
- G$2(L$1, L$1.current & 1);
4405
+ G$1(L$2, L$2.current & 1);
4406
4406
  a = Zi(a, b2, c2);
4407
4407
  return null !== a ? a.sibling : null;
4408
4408
  }
4409
- G$2(L$1, L$1.current & 1);
4409
+ G$1(L$2, L$2.current & 1);
4410
4410
  break;
4411
4411
  case 19:
4412
4412
  d2 = 0 !== (c2 & b2.childLanes);
@@ -4416,7 +4416,7 @@ function yj(a, b2, c2) {
4416
4416
  }
4417
4417
  e = b2.memoizedState;
4418
4418
  null !== e && (e.rendering = null, e.tail = null, e.lastEffect = null);
4419
- G$2(L$1, L$1.current);
4419
+ G$1(L$2, L$2.current);
4420
4420
  if (d2) break;
4421
4421
  else return null;
4422
4422
  case 22:
@@ -4498,7 +4498,7 @@ Cj = function(a, b2, c2, d2) {
4498
4498
  c2 !== d2 && (b2.flags |= 4);
4499
4499
  };
4500
4500
  function Dj(a, b2) {
4501
- if (!I$2) switch (a.tailMode) {
4501
+ if (!I$1) switch (a.tailMode) {
4502
4502
  case "hidden":
4503
4503
  b2 = a.tail;
4504
4504
  for (var c2 = null; null !== b2; ) null !== b2.alternate && (c2 = b2), b2 = b2.sibling;
@@ -4775,10 +4775,10 @@ function Ej(a, b2, c2) {
4775
4775
  S$1(b2);
4776
4776
  return null;
4777
4777
  case 13:
4778
- E$1(L$1);
4778
+ E$1(L$2);
4779
4779
  d2 = b2.memoizedState;
4780
4780
  if (null === a || null !== a.memoizedState && null !== a.memoizedState.dehydrated) {
4781
- if (I$2 && null !== yg && 0 !== (b2.mode & 1) && 0 === (b2.flags & 128)) Hg(), Ig(), b2.flags |= 98560, f2 = false;
4781
+ if (I$1 && null !== yg && 0 !== (b2.mode & 1) && 0 === (b2.flags & 128)) Hg(), Ig(), b2.flags |= 98560, f2 = false;
4782
4782
  else if (f2 = Gg(b2), null !== d2 && null !== d2.dehydrated) {
4783
4783
  if (null === a) {
4784
4784
  if (!f2) throw Error(p$2(318));
@@ -4794,7 +4794,7 @@ function Ej(a, b2, c2) {
4794
4794
  }
4795
4795
  if (0 !== (b2.flags & 128)) return b2.lanes = c2, b2;
4796
4796
  d2 = null !== d2;
4797
- d2 !== (null !== a && null !== a.memoizedState) && d2 && (b2.child.flags |= 8192, 0 !== (b2.mode & 1) && (null === a || 0 !== (L$1.current & 1) ? 0 === T$2 && (T$2 = 3) : tj()));
4797
+ d2 !== (null !== a && null !== a.memoizedState) && d2 && (b2.child.flags |= 8192, 0 !== (b2.mode & 1) && (null === a || 0 !== (L$2.current & 1) ? 0 === T$2 && (T$2 = 3) : tj()));
4798
4798
  null !== b2.updateQueue && (b2.flags |= 4);
4799
4799
  S$1(b2);
4800
4800
  return null;
@@ -4805,7 +4805,7 @@ function Ej(a, b2, c2) {
4805
4805
  case 17:
4806
4806
  return Zf(b2.type) && $f(), S$1(b2), null;
4807
4807
  case 19:
4808
- E$1(L$1);
4808
+ E$1(L$2);
4809
4809
  f2 = b2.memoizedState;
4810
4810
  if (null === f2) return S$1(b2), null;
4811
4811
  d2 = 0 !== (b2.flags & 128);
@@ -4822,20 +4822,20 @@ function Ej(a, b2, c2) {
4822
4822
  b2.subtreeFlags = 0;
4823
4823
  d2 = c2;
4824
4824
  for (c2 = b2.child; null !== c2; ) f2 = c2, a = d2, f2.flags &= 14680066, g2 = f2.alternate, null === g2 ? (f2.childLanes = 0, f2.lanes = a, f2.child = null, f2.subtreeFlags = 0, f2.memoizedProps = null, f2.memoizedState = null, f2.updateQueue = null, f2.dependencies = null, f2.stateNode = null) : (f2.childLanes = g2.childLanes, f2.lanes = g2.lanes, f2.child = g2.child, f2.subtreeFlags = 0, f2.deletions = null, f2.memoizedProps = g2.memoizedProps, f2.memoizedState = g2.memoizedState, f2.updateQueue = g2.updateQueue, f2.type = g2.type, a = g2.dependencies, f2.dependencies = null === a ? null : { lanes: a.lanes, firstContext: a.firstContext }), c2 = c2.sibling;
4825
- G$2(L$1, L$1.current & 1 | 2);
4825
+ G$1(L$2, L$2.current & 1 | 2);
4826
4826
  return b2.child;
4827
4827
  }
4828
4828
  a = a.sibling;
4829
4829
  }
4830
- null !== f2.tail && B$2() > Gj && (b2.flags |= 128, d2 = true, Dj(f2, false), b2.lanes = 4194304);
4830
+ null !== f2.tail && B$3() > Gj && (b2.flags |= 128, d2 = true, Dj(f2, false), b2.lanes = 4194304);
4831
4831
  }
4832
4832
  else {
4833
4833
  if (!d2) if (a = Ch(g2), null !== a) {
4834
- if (b2.flags |= 128, d2 = true, c2 = a.updateQueue, null !== c2 && (b2.updateQueue = c2, b2.flags |= 4), Dj(f2, true), null === f2.tail && "hidden" === f2.tailMode && !g2.alternate && !I$2) return S$1(b2), null;
4835
- } else 2 * B$2() - f2.renderingStartTime > Gj && 1073741824 !== c2 && (b2.flags |= 128, d2 = true, Dj(f2, false), b2.lanes = 4194304);
4834
+ if (b2.flags |= 128, d2 = true, c2 = a.updateQueue, null !== c2 && (b2.updateQueue = c2, b2.flags |= 4), Dj(f2, true), null === f2.tail && "hidden" === f2.tailMode && !g2.alternate && !I$1) return S$1(b2), null;
4835
+ } else 2 * B$3() - f2.renderingStartTime > Gj && 1073741824 !== c2 && (b2.flags |= 128, d2 = true, Dj(f2, false), b2.lanes = 4194304);
4836
4836
  f2.isBackwards ? (g2.sibling = b2.child, b2.child = g2) : (c2 = f2.last, null !== c2 ? c2.sibling = g2 : b2.child = g2, f2.last = g2);
4837
4837
  }
4838
- if (null !== f2.tail) return b2 = f2.tail, f2.rendering = b2, f2.tail = b2.sibling, f2.renderingStartTime = B$2(), b2.sibling = null, c2 = L$1.current, G$2(L$1, d2 ? c2 & 1 | 2 : c2 & 1), b2;
4838
+ if (null !== f2.tail) return b2 = f2.tail, f2.rendering = b2, f2.tail = b2.sibling, f2.renderingStartTime = B$3(), b2.sibling = null, c2 = L$2.current, G$1(L$2, d2 ? c2 & 1 | 2 : c2 & 1), b2;
4839
4839
  S$1(b2);
4840
4840
  return null;
4841
4841
  case 22:
@@ -4858,7 +4858,7 @@ function Ij(a, b2) {
4858
4858
  case 5:
4859
4859
  return Bh(b2), null;
4860
4860
  case 13:
4861
- E$1(L$1);
4861
+ E$1(L$2);
4862
4862
  a = b2.memoizedState;
4863
4863
  if (null !== a && null !== a.dehydrated) {
4864
4864
  if (null === b2.alternate) throw Error(p$2(340));
@@ -4867,7 +4867,7 @@ function Ij(a, b2) {
4867
4867
  a = b2.flags;
4868
4868
  return a & 65536 ? (b2.flags = a & -65537 | 128, b2) : null;
4869
4869
  case 19:
4870
- return E$1(L$1), null;
4870
+ return E$1(L$2), null;
4871
4871
  case 4:
4872
4872
  return zh(), null;
4873
4873
  case 10:
@@ -5292,7 +5292,7 @@ function dk(a, b2) {
5292
5292
  ck(b2, a);
5293
5293
  ek(a);
5294
5294
  e = a.child;
5295
- e.flags & 8192 && (f2 = null !== e.memoizedState, e.stateNode.isHidden = f2, !f2 || null !== e.alternate && null !== e.alternate.memoizedState || (fk = B$2()));
5295
+ e.flags & 8192 && (f2 = null !== e.memoizedState, e.stateNode.isHidden = f2, !f2 || null !== e.alternate && null !== e.alternate.memoizedState || (fk = B$3()));
5296
5296
  d2 & 4 && ak(a);
5297
5297
  break;
5298
5298
  case 22:
@@ -5616,9 +5616,9 @@ function jk(a) {
5616
5616
  V = b2.return;
5617
5617
  }
5618
5618
  }
5619
- var lk = Math.ceil, mk = ua.ReactCurrentDispatcher, nk = ua.ReactCurrentOwner, ok = ua.ReactCurrentBatchConfig, K$2 = 0, Q$2 = null, Y$2 = null, Z$1 = 0, fj = 0, ej = Uf(0), T$2 = 0, pk = null, rh = 0, qk = 0, rk = 0, sk = null, tk = null, fk = 0, Gj = Infinity, uk = null, Oi = false, Pi = null, Ri = null, vk = false, wk = null, xk = 0, yk = 0, zk = null, Ak = -1, Bk = 0;
5619
+ var lk = Math.ceil, mk = ua.ReactCurrentDispatcher, nk = ua.ReactCurrentOwner, ok = ua.ReactCurrentBatchConfig, K$2 = 0, Q$1 = null, Y$2 = null, Z$1 = 0, fj = 0, ej = Uf(0), T$2 = 0, pk = null, rh = 0, qk = 0, rk = 0, sk = null, tk = null, fk = 0, Gj = Infinity, uk = null, Oi = false, Pi = null, Ri = null, vk = false, wk = null, xk = 0, yk = 0, zk = null, Ak = -1, Bk = 0;
5620
5620
  function R$1() {
5621
- return 0 !== (K$2 & 6) ? B$2() : -1 !== Ak ? Ak : Ak = B$2();
5621
+ return 0 !== (K$2 & 6) ? B$3() : -1 !== Ak ? Ak : Ak = B$3();
5622
5622
  }
5623
5623
  function yi(a) {
5624
5624
  if (0 === (a.mode & 1)) return 1;
@@ -5633,12 +5633,12 @@ function yi(a) {
5633
5633
  function gi(a, b2, c2, d2) {
5634
5634
  if (50 < yk) throw yk = 0, zk = null, Error(p$2(185));
5635
5635
  Ac(a, c2, d2);
5636
- if (0 === (K$2 & 2) || a !== Q$2) a === Q$2 && (0 === (K$2 & 2) && (qk |= c2), 4 === T$2 && Ck(a, Z$1)), Dk(a, d2), 1 === c2 && 0 === K$2 && 0 === (b2.mode & 1) && (Gj = B$2() + 500, fg && jg());
5636
+ if (0 === (K$2 & 2) || a !== Q$1) a === Q$1 && (0 === (K$2 & 2) && (qk |= c2), 4 === T$2 && Ck(a, Z$1)), Dk(a, d2), 1 === c2 && 0 === K$2 && 0 === (b2.mode & 1) && (Gj = B$3() + 500, fg && jg());
5637
5637
  }
5638
5638
  function Dk(a, b2) {
5639
5639
  var c2 = a.callbackNode;
5640
5640
  wc(a, b2);
5641
- var d2 = uc(a, a === Q$2 ? Z$1 : 0);
5641
+ var d2 = uc(a, a === Q$1 ? Z$1 : 0);
5642
5642
  if (0 === d2) null !== c2 && bc(c2), a.callbackNode = null, a.callbackPriority = 0;
5643
5643
  else if (b2 = d2 & -d2, a.callbackPriority !== b2) {
5644
5644
  null != c2 && bc(c2);
@@ -5674,7 +5674,7 @@ function Gk(a, b2) {
5674
5674
  if (0 !== (K$2 & 6)) throw Error(p$2(327));
5675
5675
  var c2 = a.callbackNode;
5676
5676
  if (Hk() && a.callbackNode !== c2) return null;
5677
- var d2 = uc(a, a === Q$2 ? Z$1 : 0);
5677
+ var d2 = uc(a, a === Q$1 ? Z$1 : 0);
5678
5678
  if (0 === d2) return null;
5679
5679
  if (0 !== (d2 & 30) || 0 !== (d2 & a.expiredLanes) || b2) b2 = Ik(a, d2);
5680
5680
  else {
@@ -5682,7 +5682,7 @@ function Gk(a, b2) {
5682
5682
  var e = K$2;
5683
5683
  K$2 |= 2;
5684
5684
  var f2 = Jk();
5685
- if (Q$2 !== a || Z$1 !== b2) uk = null, Gj = B$2() + 500, Kk(a, b2);
5685
+ if (Q$1 !== a || Z$1 !== b2) uk = null, Gj = B$3() + 500, Kk(a, b2);
5686
5686
  do
5687
5687
  try {
5688
5688
  Lk();
@@ -5694,15 +5694,15 @@ function Gk(a, b2) {
5694
5694
  $g();
5695
5695
  mk.current = f2;
5696
5696
  K$2 = e;
5697
- null !== Y$2 ? b2 = 0 : (Q$2 = null, Z$1 = 0, b2 = T$2);
5697
+ null !== Y$2 ? b2 = 0 : (Q$1 = null, Z$1 = 0, b2 = T$2);
5698
5698
  }
5699
5699
  if (0 !== b2) {
5700
5700
  2 === b2 && (e = xc(a), 0 !== e && (d2 = e, b2 = Nk(a, e)));
5701
- if (1 === b2) throw c2 = pk, Kk(a, 0), Ck(a, d2), Dk(a, B$2()), c2;
5701
+ if (1 === b2) throw c2 = pk, Kk(a, 0), Ck(a, d2), Dk(a, B$3()), c2;
5702
5702
  if (6 === b2) Ck(a, d2);
5703
5703
  else {
5704
5704
  e = a.current.alternate;
5705
- if (0 === (d2 & 30) && !Ok(e) && (b2 = Ik(a, d2), 2 === b2 && (f2 = xc(a), 0 !== f2 && (d2 = f2, b2 = Nk(a, f2))), 1 === b2)) throw c2 = pk, Kk(a, 0), Ck(a, d2), Dk(a, B$2()), c2;
5705
+ if (0 === (d2 & 30) && !Ok(e) && (b2 = Ik(a, d2), 2 === b2 && (f2 = xc(a), 0 !== f2 && (d2 = f2, b2 = Nk(a, f2))), 1 === b2)) throw c2 = pk, Kk(a, 0), Ck(a, d2), Dk(a, B$3()), c2;
5706
5706
  a.finishedWork = e;
5707
5707
  a.finishedLanes = d2;
5708
5708
  switch (b2) {
@@ -5714,7 +5714,7 @@ function Gk(a, b2) {
5714
5714
  break;
5715
5715
  case 3:
5716
5716
  Ck(a, d2);
5717
- if ((d2 & 130023424) === d2 && (b2 = fk + 500 - B$2(), 10 < b2)) {
5717
+ if ((d2 & 130023424) === d2 && (b2 = fk + 500 - B$3(), 10 < b2)) {
5718
5718
  if (0 !== uc(a, 0)) break;
5719
5719
  e = a.suspendedLanes;
5720
5720
  if ((e & d2) !== d2) {
@@ -5739,7 +5739,7 @@ function Gk(a, b2) {
5739
5739
  d2 &= ~f2;
5740
5740
  }
5741
5741
  d2 = e;
5742
- d2 = B$2() - d2;
5742
+ d2 = B$3() - d2;
5743
5743
  d2 = (120 > d2 ? 120 : 480 > d2 ? 480 : 1080 > d2 ? 1080 : 1920 > d2 ? 1920 : 3e3 > d2 ? 3e3 : 4320 > d2 ? 4320 : 1960 * lk(d2 / 1960)) - d2;
5744
5744
  if (10 < d2) {
5745
5745
  a.timeoutHandle = Ff(Pk.bind(null, a, tk, uk), d2);
@@ -5755,7 +5755,7 @@ function Gk(a, b2) {
5755
5755
  }
5756
5756
  }
5757
5757
  }
5758
- Dk(a, B$2());
5758
+ Dk(a, B$3());
5759
5759
  return a.callbackNode === c2 ? Gk.bind(null, a) : null;
5760
5760
  }
5761
5761
  function Nk(a, b2) {
@@ -5811,18 +5811,18 @@ function Ek(a) {
5811
5811
  if (0 !== (K$2 & 6)) throw Error(p$2(327));
5812
5812
  Hk();
5813
5813
  var b2 = uc(a, 0);
5814
- if (0 === (b2 & 1)) return Dk(a, B$2()), null;
5814
+ if (0 === (b2 & 1)) return Dk(a, B$3()), null;
5815
5815
  var c2 = Ik(a, b2);
5816
5816
  if (0 !== a.tag && 2 === c2) {
5817
5817
  var d2 = xc(a);
5818
5818
  0 !== d2 && (b2 = d2, c2 = Nk(a, d2));
5819
5819
  }
5820
- if (1 === c2) throw c2 = pk, Kk(a, 0), Ck(a, b2), Dk(a, B$2()), c2;
5820
+ if (1 === c2) throw c2 = pk, Kk(a, 0), Ck(a, b2), Dk(a, B$3()), c2;
5821
5821
  if (6 === c2) throw Error(p$2(345));
5822
5822
  a.finishedWork = a.current.alternate;
5823
5823
  a.finishedLanes = b2;
5824
5824
  Pk(a, tk, uk);
5825
- Dk(a, B$2());
5825
+ Dk(a, B$3());
5826
5826
  return null;
5827
5827
  }
5828
5828
  function Qk(a, b2) {
@@ -5831,7 +5831,7 @@ function Qk(a, b2) {
5831
5831
  try {
5832
5832
  return a(b2);
5833
5833
  } finally {
5834
- K$2 = c2, 0 === K$2 && (Gj = B$2() + 500, fg && jg());
5834
+ K$2 = c2, 0 === K$2 && (Gj = B$3() + 500, fg && jg());
5835
5835
  }
5836
5836
  }
5837
5837
  function Rk(a) {
@@ -5875,10 +5875,10 @@ function Kk(a, b2) {
5875
5875
  zh();
5876
5876
  break;
5877
5877
  case 13:
5878
- E$1(L$1);
5878
+ E$1(L$2);
5879
5879
  break;
5880
5880
  case 19:
5881
- E$1(L$1);
5881
+ E$1(L$2);
5882
5882
  break;
5883
5883
  case 10:
5884
5884
  ah(d2.type._context);
@@ -5889,7 +5889,7 @@ function Kk(a, b2) {
5889
5889
  }
5890
5890
  c2 = c2.return;
5891
5891
  }
5892
- Q$2 = a;
5892
+ Q$1 = a;
5893
5893
  Y$2 = a = Pg(a.current, null);
5894
5894
  Z$1 = fj = b2;
5895
5895
  T$2 = 0;
@@ -5918,7 +5918,7 @@ function Mk(a, b2) {
5918
5918
  $g();
5919
5919
  Fh.current = Rh;
5920
5920
  if (Ih) {
5921
- for (var d2 = M$2.memoizedState; null !== d2; ) {
5921
+ for (var d2 = M$1.memoizedState; null !== d2; ) {
5922
5922
  var e = d2.queue;
5923
5923
  null !== e && (e.pending = null);
5924
5924
  d2 = d2.next;
@@ -5926,7 +5926,7 @@ function Mk(a, b2) {
5926
5926
  Ih = false;
5927
5927
  }
5928
5928
  Hh = 0;
5929
- O$1 = N$2 = M$2 = null;
5929
+ O$1 = N$2 = M$1 = null;
5930
5930
  Jh = false;
5931
5931
  Kh = 0;
5932
5932
  nk.current = null;
@@ -5968,7 +5968,7 @@ function Mk(a, b2) {
5968
5968
  }
5969
5969
  k2 = Error(p$2(426));
5970
5970
  }
5971
- } else if (I$2 && h2.mode & 1) {
5971
+ } else if (I$1 && h2.mode & 1) {
5972
5972
  var J2 = Ui(g2);
5973
5973
  if (null !== J2) {
5974
5974
  0 === (J2.flags & 65536) && (J2.flags |= 256);
@@ -6021,13 +6021,13 @@ function Jk() {
6021
6021
  }
6022
6022
  function tj() {
6023
6023
  if (0 === T$2 || 3 === T$2 || 2 === T$2) T$2 = 4;
6024
- null === Q$2 || 0 === (rh & 268435455) && 0 === (qk & 268435455) || Ck(Q$2, Z$1);
6024
+ null === Q$1 || 0 === (rh & 268435455) && 0 === (qk & 268435455) || Ck(Q$1, Z$1);
6025
6025
  }
6026
6026
  function Ik(a, b2) {
6027
6027
  var c2 = K$2;
6028
6028
  K$2 |= 2;
6029
6029
  var d2 = Jk();
6030
- if (Q$2 !== a || Z$1 !== b2) uk = null, Kk(a, b2);
6030
+ if (Q$1 !== a || Z$1 !== b2) uk = null, Kk(a, b2);
6031
6031
  do
6032
6032
  try {
6033
6033
  Tk();
@@ -6040,7 +6040,7 @@ function Ik(a, b2) {
6040
6040
  K$2 = c2;
6041
6041
  mk.current = d2;
6042
6042
  if (null !== Y$2) throw Error(p$2(261));
6043
- Q$2 = null;
6043
+ Q$1 = null;
6044
6044
  Z$1 = 0;
6045
6045
  return T$2;
6046
6046
  }
@@ -6113,7 +6113,7 @@ function Wk(a, b2, c2, d2) {
6113
6113
  a.callbackPriority = 0;
6114
6114
  var f2 = c2.lanes | c2.childLanes;
6115
6115
  Bc(a, f2);
6116
- a === Q$2 && (Y$2 = Q$2 = null, Z$1 = 0);
6116
+ a === Q$1 && (Y$2 = Q$1 = null, Z$1 = 0);
6117
6117
  0 === (c2.subtreeFlags & 2064) && 0 === (c2.flags & 2064) || vk || (vk = true, Fk(hc, function() {
6118
6118
  Hk();
6119
6119
  return null;
@@ -6143,7 +6143,7 @@ function Wk(a, b2, c2, d2) {
6143
6143
  f2 = a.pendingLanes;
6144
6144
  0 === f2 && (Ri = null);
6145
6145
  mc(c2.stateNode);
6146
- Dk(a, B$2());
6146
+ Dk(a, B$3());
6147
6147
  if (null !== b2) for (d2 = a.onRecoverableError, c2 = 0; c2 < b2.length; c2++) e = b2[c2], d2(e.value, { componentStack: e.stack, digest: e.digest });
6148
6148
  if (Oi) throw Oi = false, a = Pi, Pi = null, a;
6149
6149
  0 !== (xk & 1) && 0 !== a.tag && Hk();
@@ -6310,7 +6310,7 @@ function Ti(a, b2, c2) {
6310
6310
  null !== d2 && d2.delete(b2);
6311
6311
  b2 = R$1();
6312
6312
  a.pingedLanes |= a.suspendedLanes & c2;
6313
- Q$2 === a && (Z$1 & c2) === c2 && (4 === T$2 || 3 === T$2 && (Z$1 & 130023424) === Z$1 && 500 > B$2() - fk ? Kk(a, 0) : rk |= c2);
6313
+ Q$1 === a && (Z$1 & c2) === c2 && (4 === T$2 || 3 === T$2 && (Z$1 & 130023424) === Z$1 && 500 > B$3() - fk ? Kk(a, 0) : rk |= c2);
6314
6314
  Dk(a, b2);
6315
6315
  }
6316
6316
  function Yk(a, b2) {
@@ -6348,7 +6348,7 @@ Vk = function(a, b2, c2) {
6348
6348
  if (0 === (a.lanes & c2) && 0 === (b2.flags & 128)) return dh = false, yj(a, b2, c2);
6349
6349
  dh = 0 !== (a.flags & 131072) ? true : false;
6350
6350
  }
6351
- else dh = false, I$2 && 0 !== (b2.flags & 1048576) && ug(b2, ng, b2.index);
6351
+ else dh = false, I$1 && 0 !== (b2.flags & 1048576) && ug(b2, ng, b2.index);
6352
6352
  b2.lanes = 0;
6353
6353
  switch (b2.tag) {
6354
6354
  case 2:
@@ -6360,7 +6360,7 @@ Vk = function(a, b2, c2) {
6360
6360
  e = Nh(null, b2, d2, a, e, c2);
6361
6361
  var f2 = Sh();
6362
6362
  b2.flags |= 1;
6363
- "object" === typeof e && null !== e && "function" === typeof e.render && void 0 === e.$$typeof ? (b2.tag = 1, b2.memoizedState = null, b2.updateQueue = null, Zf(d2) ? (f2 = true, cg(b2)) : f2 = false, b2.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, kh(b2), e.updater = Ei, b2.stateNode = e, e._reactInternals = b2, Ii(b2, d2, a, c2), b2 = jj(null, b2, d2, true, f2, c2)) : (b2.tag = 0, I$2 && f2 && vg(b2), Xi(null, b2, e, c2), b2 = b2.child);
6363
+ "object" === typeof e && null !== e && "function" === typeof e.render && void 0 === e.$$typeof ? (b2.tag = 1, b2.memoizedState = null, b2.updateQueue = null, Zf(d2) ? (f2 = true, cg(b2)) : f2 = false, b2.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, kh(b2), e.updater = Ei, b2.stateNode = e, e._reactInternals = b2, Ii(b2, d2, a, c2), b2 = jj(null, b2, d2, true, f2, c2)) : (b2.tag = 0, I$1 && f2 && vg(b2), Xi(null, b2, e, c2), b2 = b2.child);
6364
6364
  return b2;
6365
6365
  case 16:
6366
6366
  d2 = b2.elementType;
@@ -6416,7 +6416,7 @@ Vk = function(a, b2, c2) {
6416
6416
  e = Ji(Error(p$2(424)), b2);
6417
6417
  b2 = lj(a, b2, d2, c2, e);
6418
6418
  break a;
6419
- } else for (yg = Lf(b2.stateNode.containerInfo.firstChild), xg = b2, I$2 = true, zg = null, c2 = Vg(b2, null, d2, c2), b2.child = c2; c2; ) c2.flags = c2.flags & -3 | 4096, c2 = c2.sibling;
6419
+ } else for (yg = Lf(b2.stateNode.containerInfo.firstChild), xg = b2, I$1 = true, zg = null, c2 = Vg(b2, null, d2, c2), b2.child = c2; c2; ) c2.flags = c2.flags & -3 | 4096, c2 = c2.sibling;
6420
6420
  else {
6421
6421
  Ig();
6422
6422
  if (d2 === e) {
@@ -6450,7 +6450,7 @@ Vk = function(a, b2, c2) {
6450
6450
  e = b2.pendingProps;
6451
6451
  f2 = b2.memoizedProps;
6452
6452
  g2 = e.value;
6453
- G$2(Wg, d2._currentValue);
6453
+ G$1(Wg, d2._currentValue);
6454
6454
  d2._currentValue = g2;
6455
6455
  if (null !== f2) if (He(f2.value, g2)) {
6456
6456
  if (f2.children === e.children && !Wf.current) {
@@ -6854,7 +6854,7 @@ Ec = function(a) {
6854
6854
  var b2 = a.stateNode;
6855
6855
  if (b2.current.memoizedState.isDehydrated) {
6856
6856
  var c2 = tc(b2.pendingLanes);
6857
- 0 !== c2 && (Cc(b2, c2 | 1), Dk(b2, B$2()), 0 === (K$2 & 6) && (Gj = B$2() + 500, jg()));
6857
+ 0 !== c2 && (Cc(b2, c2 | 1), Dk(b2, B$3()), 0 === (K$2 & 6) && (Gj = B$3() + 500, jg()));
6858
6858
  }
6859
6859
  break;
6860
6860
  case 13:
@@ -7066,7 +7066,7 @@ function g(t2) {
7066
7066
  e.removeEventListener("animationend", t4), l2 ? f(e, m2, c2) : m2();
7067
7067
  };
7068
7068
  y2 || (p2 ? t4() : (E2.current = 1, e.className += ` ${T2}`, e.addEventListener("animationend", t4)));
7069
- }, [y2]), React$2.createElement(React$2.Fragment, null, d2);
7069
+ }, [y2]), React$1.createElement(React$1.Fragment, null, d2);
7070
7070
  };
7071
7071
  }
7072
7072
  function y(e, t2) {
@@ -7075,7 +7075,7 @@ function y(e, t2) {
7075
7075
  const v = /* @__PURE__ */ new Map();
7076
7076
  let h = [];
7077
7077
  const T$1 = /* @__PURE__ */ new Set(), E = (e) => T$1.forEach((t2) => t2(e)), b = () => v.size > 0;
7078
- function I$1(e, t2) {
7078
+ function I(e, t2) {
7079
7079
  var n2;
7080
7080
  if (t2) return !(null == (n2 = v.get(t2)) || !n2.isToastActive(e));
7081
7081
  let o = false;
@@ -7093,7 +7093,7 @@ function C(e, t2) {
7093
7093
  null != t2 && null != t2 && t2.containerId ? (null == t2 ? void 0 : t2.containerId) === n2.id && n2.toggle(e, null == t2 ? void 0 : t2.id) : n2.toggle(e, null == t2 ? void 0 : t2.id);
7094
7094
  });
7095
7095
  }
7096
- function L(e) {
7096
+ function L$1(e) {
7097
7097
  const { subscribe: o, getSnapshot: s, setProps: i } = reactExports.useRef(function(e2) {
7098
7098
  const n2 = e2.containerId || 1;
7099
7099
  return { subscribe(o2) {
@@ -7166,7 +7166,7 @@ function L(e) {
7166
7166
  const { position: t3 } = e2.props;
7167
7167
  n2.has(t3) || n2.set(t3, []), n2.get(t3).push(e2);
7168
7168
  }), Array.from(n2, (e2) => t2(e2[0], e2[1]));
7169
- }, isToastActive: I$1, count: null == l2 ? void 0 : l2.length };
7169
+ }, isToastActive: I, count: null == l2 ? void 0 : l2.length };
7170
7170
  }
7171
7171
  function N$1(e) {
7172
7172
  const [t2, o] = reactExports.useState(false), [a, r2] = reactExports.useState(false), l2 = reactExports.useRef(null), c2 = reactExports.useRef({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: true, canDrag: false, didMove: false }).current, { autoClose: d2, pauseOnHover: u2, closeToast: p2, onClick: m2, closeOnClick: f2 } = e;
@@ -7215,35 +7215,35 @@ function $$1(t2) {
7215
7215
  const h2 = clsx("Toastify__progress-bar", d2 ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${g2}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": m2 }), T2 = u$1(i) ? i({ rtl: m2, type: a, defaultClassName: h2 }) : clsx(h2, i), E2 = { [d2 && p2 >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: d2 && p2 < 1 ? null : () => {
7216
7216
  f2 && s();
7217
7217
  } };
7218
- return React$2.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": y2 }, React$2.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${g2} Toastify__progress-bar--${a}` }), React$2.createElement("div", { role: "progressbar", "aria-hidden": y2 ? "true" : "false", "aria-label": "notification timer", className: T2, style: v2, ...E2 }));
7218
+ return React$1.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": y2 }, React$1.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${g2} Toastify__progress-bar--${a}` }), React$1.createElement("div", { role: "progressbar", "aria-hidden": y2 ? "true" : "false", "aria-label": "notification timer", className: T2, style: v2, ...E2 }));
7219
7219
  }
7220
7220
  let w = 1;
7221
7221
  const k$2 = () => "" + w++;
7222
- function P(e) {
7222
+ function P$1(e) {
7223
7223
  return e && (d(e.toastId) || c(e.toastId)) ? e.toastId : k$2();
7224
7224
  }
7225
- function M$1(e, t2) {
7225
+ function M(e, t2) {
7226
7226
  return _(e, t2), t2.toastId;
7227
7227
  }
7228
7228
  function x(e, t2) {
7229
- return { ...t2, type: t2 && t2.type || e, toastId: P(t2) };
7229
+ return { ...t2, type: t2 && t2.type || e, toastId: P$1(t2) };
7230
7230
  }
7231
7231
  function A(e) {
7232
- return (t2, n2) => M$1(t2, x(e, n2));
7232
+ return (t2, n2) => M(t2, x(e, n2));
7233
7233
  }
7234
- function B$1(e, t2) {
7235
- return M$1(e, x("default", t2));
7234
+ function B$2(e, t2) {
7235
+ return M(e, x("default", t2));
7236
7236
  }
7237
- B$1.loading = (e, t2) => M$1(e, x("default", { isLoading: true, autoClose: false, closeOnClick: false, closeButton: false, draggable: false, ...t2 })), B$1.promise = function(e, t2, n2) {
7237
+ B$2.loading = (e, t2) => M(e, x("default", { isLoading: true, autoClose: false, closeOnClick: false, closeButton: false, draggable: false, ...t2 })), B$2.promise = function(e, t2, n2) {
7238
7238
  let o, { pending: s, error: a, success: r2 } = t2;
7239
- s && (o = d(s) ? B$1.loading(s, n2) : B$1.loading(s.render, { ...n2, ...s }));
7239
+ s && (o = d(s) ? B$2.loading(s, n2) : B$2.loading(s.render, { ...n2, ...s }));
7240
7240
  const i = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, l2 = (e2, t3, s2) => {
7241
- if (null == t3) return void B$1.dismiss(o);
7241
+ if (null == t3) return void B$2.dismiss(o);
7242
7242
  const a2 = { type: e2, ...i, ...n2, data: s2 }, r3 = d(t3) ? { render: t3 } : t3;
7243
- return o ? B$1.update(o, { ...a2, ...r3 }) : B$1(r3.render, { ...a2, ...r3 }), s2;
7243
+ return o ? B$2.update(o, { ...a2, ...r3 }) : B$2(r3.render, { ...a2, ...r3 }), s2;
7244
7244
  }, c2 = u$1(e) ? e() : e;
7245
7245
  return c2.then((e2) => l2("success", r2, e2)).catch((e2) => l2("error", a, e2)), c2;
7246
- }, B$1.success = A("success"), B$1.info = A("info"), B$1.error = A("error"), B$1.warning = A("warning"), B$1.warn = B$1.warning, B$1.dark = (e, t2) => M$1(e, x("default", { theme: "dark", ...t2 })), B$1.dismiss = function(e) {
7246
+ }, B$2.success = A("success"), B$2.info = A("info"), B$2.error = A("error"), B$2.warning = A("warning"), B$2.warn = B$2.warning, B$2.dark = (e, t2) => M(e, x("default", { theme: "dark", ...t2 })), B$2.dismiss = function(e) {
7247
7247
  !function(e2) {
7248
7248
  var t2;
7249
7249
  if (b()) {
@@ -7258,11 +7258,11 @@ B$1.loading = (e, t2) => M$1(e, x("default", { isLoading: true, autoClose: false
7258
7258
  }
7259
7259
  } else h = h.filter((t3) => null != e2 && t3.options.toastId !== e2);
7260
7260
  }(e);
7261
- }, B$1.clearWaitingQueue = function(e) {
7261
+ }, B$2.clearWaitingQueue = function(e) {
7262
7262
  void 0 === e && (e = {}), v.forEach((t2) => {
7263
7263
  !t2.props.limit || e.containerId && t2.id !== e.containerId || t2.clearQueue();
7264
7264
  });
7265
- }, B$1.isActive = I$1, B$1.update = function(e, t2) {
7265
+ }, B$2.isActive = I, B$2.update = function(e, t2) {
7266
7266
  void 0 === t2 && (t2 = {});
7267
7267
  const n2 = ((e2, t3) => {
7268
7268
  var n3;
@@ -7273,28 +7273,28 @@ B$1.loading = (e, t2) => M$1(e, x("default", { isLoading: true, autoClose: false
7273
7273
  const { props: o, content: s } = n2, a = { delay: 100, ...o, ...t2, toastId: t2.toastId || e, updateId: k$2() };
7274
7274
  a.toastId !== e && (a.staleId = e);
7275
7275
  const r2 = a.render || s;
7276
- delete a.render, M$1(r2, a);
7276
+ delete a.render, M(r2, a);
7277
7277
  }
7278
- }, B$1.done = (e) => {
7279
- B$1.update(e, { progress: 1 });
7280
- }, B$1.onChange = function(e) {
7278
+ }, B$2.done = (e) => {
7279
+ B$2.update(e, { progress: 1 });
7280
+ }, B$2.onChange = function(e) {
7281
7281
  return T$1.add(e), () => {
7282
7282
  T$1.delete(e);
7283
7283
  };
7284
- }, B$1.play = (e) => C(true, e), B$1.pause = (e) => C(false, e);
7284
+ }, B$2.play = (e) => C(true, e), B$2.pause = (e) => C(false, e);
7285
7285
  const O = "undefined" != typeof window ? reactExports.useLayoutEffect : reactExports.useEffect, D$1 = (t2) => {
7286
7286
  let { theme: n2, type: o, isLoading: s, ...a } = t2;
7287
- return React$2.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: "colored" === n2 ? "currentColor" : `var(--toastify-icon-color-${o})`, ...a });
7287
+ return React$1.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: "colored" === n2 ? "currentColor" : `var(--toastify-icon-color-${o})`, ...a });
7288
7288
  }, z$1 = { info: function(t2) {
7289
- return React$2.createElement(D$1, { ...t2 }, React$2.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
7289
+ return React$1.createElement(D$1, { ...t2 }, React$1.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
7290
7290
  }, warning: function(t2) {
7291
- return React$2.createElement(D$1, { ...t2 }, React$2.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
7291
+ return React$1.createElement(D$1, { ...t2 }, React$1.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
7292
7292
  }, success: function(t2) {
7293
- return React$2.createElement(D$1, { ...t2 }, React$2.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
7293
+ return React$1.createElement(D$1, { ...t2 }, React$1.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
7294
7294
  }, error: function(t2) {
7295
- return React$2.createElement(D$1, { ...t2 }, React$2.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
7295
+ return React$1.createElement(D$1, { ...t2 }, React$1.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
7296
7296
  }, spinner: function() {
7297
- return React$2.createElement("div", { className: "Toastify__spinner" });
7297
+ return React$1.createElement("div", { className: "Toastify__spinner" });
7298
7298
  } }, R = (n2) => {
7299
7299
  const { isRunning: o, preventExitTransition: s, toastRef: r2, eventHandlers: i, playToast: c2 } = N$1(n2), { closeButton: d2, children: p2, autoClose: m2, onClick: f2, type: g2, hideProgressBar: y2, closeToast: v2, transition: h2, position: T2, className: E2, style: b2, bodyClassName: I2, bodyStyle: _2, progressClassName: C2, progressStyle: L2, updateId: w2, role: k2, progress: P2, rtl: M2, toastId: x2, deleteToast: A2, isIn: B2, isLoading: O2, closeOnClick: D2, theme: R2 } = n2, S2 = clsx("Toastify__toast", `Toastify__toast-theme--${R2}`, `Toastify__toast--${g2}`, { "Toastify__toast--rtl": M2 }, { "Toastify__toast--close-on-click": D2 }), H2 = u$1(E2) ? E2({ rtl: M2, position: T2, type: g2, defaultClassName: S2 }) : clsx(S2, E2), F2 = function(e) {
7300
7300
  let { theme: n3, type: o2, isLoading: s2, icon: r3 } = e, i2 = null;
@@ -7304,10 +7304,10 @@ const O = "undefined" != typeof window ? reactExports.useLayoutEffect : reactExp
7304
7304
  let q2 = null;
7305
7305
  return false === d2 || (q2 = u$1(d2) ? d2(Y2) : reactExports.isValidElement(d2) ? reactExports.cloneElement(d2, Y2) : function(t2) {
7306
7306
  let { closeToast: n3, theme: o2, ariaLabel: s2 = "close" } = t2;
7307
- return React$2.createElement("button", { className: `Toastify__close-button Toastify__close-button--${o2}`, type: "button", onClick: (e) => {
7307
+ return React$1.createElement("button", { className: `Toastify__close-button Toastify__close-button--${o2}`, type: "button", onClick: (e) => {
7308
7308
  e.stopPropagation(), n3(e);
7309
- }, "aria-label": s2 }, React$2.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, React$2.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
7310
- }(Y2)), React$2.createElement(h2, { isIn: B2, done: A2, position: T2, preventExitTransition: s, nodeRef: r2, playToast: c2 }, React$2.createElement("div", { id: x2, onClick: f2, "data-in": B2, className: H2, ...i, style: b2, ref: r2 }, React$2.createElement("div", { ...B2 && { role: k2 }, className: u$1(I2) ? I2({ type: g2 }) : clsx("Toastify__toast-body", I2), style: _2 }, null != F2 && React$2.createElement("div", { className: clsx("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !O2 }) }, F2), React$2.createElement("div", null, p2)), q2, React$2.createElement($$1, { ...w2 && !X2 ? { key: `pb-${w2}` } : {}, rtl: M2, theme: R2, delay: m2, isRunning: o, isIn: B2, closeToast: v2, hide: y2, type: g2, style: L2, className: C2, controlledProgress: X2, progress: P2 || 0 })));
7309
+ }, "aria-label": s2 }, React$1.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, React$1.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
7310
+ }(Y2)), React$1.createElement(h2, { isIn: B2, done: A2, position: T2, preventExitTransition: s, nodeRef: r2, playToast: c2 }, React$1.createElement("div", { id: x2, onClick: f2, "data-in": B2, className: H2, ...i, style: b2, ref: r2 }, React$1.createElement("div", { ...B2 && { role: k2 }, className: u$1(I2) ? I2({ type: g2 }) : clsx("Toastify__toast-body", I2), style: _2 }, null != F2 && React$1.createElement("div", { className: clsx("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !O2 }) }, F2), React$1.createElement("div", null, p2)), q2, React$1.createElement($$1, { ...w2 && !X2 ? { key: `pb-${w2}` } : {}, rtl: M2, theme: R2, delay: m2, isRunning: o, isIn: B2, closeToast: v2, hide: y2, type: g2, style: L2, className: C2, controlledProgress: X2, progress: P2 || 0 })));
7311
7311
  }, S = function(e, t2) {
7312
7312
  return void 0 === t2 && (t2 = false), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t2 };
7313
7313
  }, H$1 = g(S("bounce", true));
@@ -7315,15 +7315,15 @@ g(S("slide", true));
7315
7315
  g(S("zoom"));
7316
7316
  g(S("flip"));
7317
7317
  const q = { position: "top-right", transition: H$1, autoClose: 5e3, closeButton: true, pauseOnHover: true, pauseOnFocusLoss: true, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
7318
- function Q$1(t2) {
7318
+ function Q(t2) {
7319
7319
  let o = { ...q, ...t2 };
7320
- const s = t2.stacked, [a, r2] = reactExports.useState(true), c2 = reactExports.useRef(null), { getToastToRender: d2, isToastActive: m2, count: f2 } = L(o), { className: g2, style: y2, rtl: v2, containerId: h2 } = o;
7320
+ const s = t2.stacked, [a, r2] = reactExports.useState(true), c2 = reactExports.useRef(null), { getToastToRender: d2, isToastActive: m2, count: f2 } = L$1(o), { className: g2, style: y2, rtl: v2, containerId: h2 } = o;
7321
7321
  function T2(e) {
7322
7322
  const t3 = clsx("Toastify__toast-container", `Toastify__toast-container--${e}`, { "Toastify__toast-container--rtl": v2 });
7323
7323
  return u$1(g2) ? g2({ position: e, rtl: v2, defaultClassName: t3 }) : clsx(t3, p$1(g2));
7324
7324
  }
7325
7325
  function E2() {
7326
- s && (r2(true), B$1.play());
7326
+ s && (r2(true), B$2.play());
7327
7327
  }
7328
7328
  return O(() => {
7329
7329
  if (s) {
@@ -7337,13 +7337,13 @@ function Q$1(t2) {
7337
7337
  o2.style.setProperty("--y", `${s2 ? l2 : -1 * l2}px`), o2.style.setProperty("--g", `${n2}`), o2.style.setProperty("--s", "" + (1 - (a ? i : 0))), r3 += o2.offsetHeight, i += 0.025;
7338
7338
  });
7339
7339
  }
7340
- }, [a, f2, s]), React$2.createElement("div", { ref: c2, className: "Toastify", id: h2, onMouseEnter: () => {
7341
- s && (r2(false), B$1.pause());
7340
+ }, [a, f2, s]), React$1.createElement("div", { ref: c2, className: "Toastify", id: h2, onMouseEnter: () => {
7341
+ s && (r2(false), B$2.pause());
7342
7342
  }, onMouseLeave: E2 }, d2((t3, n2) => {
7343
7343
  const o2 = n2.length ? { ...y2 } : { ...y2, pointerEvents: "none" };
7344
- return React$2.createElement("div", { className: T2(t3), style: o2, key: `container-${t3}` }, n2.map((t4) => {
7344
+ return React$1.createElement("div", { className: T2(t3), style: o2, key: `container-${t3}` }, n2.map((t4) => {
7345
7345
  let { content: n3, props: o3 } = t4;
7346
- return React$2.createElement(R, { ...o3, stacked: s, collapseAll: E2, isIn: m2(o3.toastId, o3.containerId), style: o3.style, key: `toast-${o3.key}` }, n3);
7346
+ return React$1.createElement(R, { ...o3, stacked: s, collapseAll: E2, isIn: m2(o3.toastId, o3.containerId), style: o3.style, key: `toast-${o3.key}` }, n3);
7347
7347
  }));
7348
7348
  }));
7349
7349
  }
@@ -7929,12 +7929,12 @@ const handleResult = (ctx, result) => {
7929
7929
  function processCreateParams(params2) {
7930
7930
  if (!params2)
7931
7931
  return {};
7932
- const { errorMap: errorMap2, invalid_type_error, required_error, description } = params2;
7932
+ const { errorMap: errorMap2, invalid_type_error, required_error, description: description2 } = params2;
7933
7933
  if (errorMap2 && (invalid_type_error || required_error)) {
7934
7934
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
7935
7935
  }
7936
7936
  if (errorMap2)
7937
- return { errorMap: errorMap2, description };
7937
+ return { errorMap: errorMap2, description: description2 };
7938
7938
  const customMap = (iss, ctx) => {
7939
7939
  var _a, _b;
7940
7940
  const { message } = params2;
@@ -7948,7 +7948,7 @@ function processCreateParams(params2) {
7948
7948
  return { message: ctx.defaultError };
7949
7949
  return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };
7950
7950
  };
7951
- return { errorMap: customMap, description };
7951
+ return { errorMap: customMap, description: description2 };
7952
7952
  }
7953
7953
  class ZodType {
7954
7954
  get description() {
@@ -8215,11 +8215,11 @@ class ZodType {
8215
8215
  typeName: ZodFirstPartyTypeKind.ZodCatch
8216
8216
  });
8217
8217
  }
8218
- describe(description) {
8218
+ describe(description2) {
8219
8219
  const This = this.constructor;
8220
8220
  return new This({
8221
8221
  ...this._def,
8222
- description
8222
+ description: description2
8223
8223
  });
8224
8224
  }
8225
8225
  pipe(target) {
@@ -10091,33 +10091,33 @@ ZodUnion.create = (types, params2) => {
10091
10091
  ...processCreateParams(params2)
10092
10092
  });
10093
10093
  };
10094
- const getDiscriminator = (type) => {
10095
- if (type instanceof ZodLazy) {
10096
- return getDiscriminator(type.schema);
10097
- } else if (type instanceof ZodEffects) {
10098
- return getDiscriminator(type.innerType());
10099
- } else if (type instanceof ZodLiteral) {
10100
- return [type.value];
10101
- } else if (type instanceof ZodEnum) {
10102
- return type.options;
10103
- } else if (type instanceof ZodNativeEnum) {
10104
- return util.objectValues(type.enum);
10105
- } else if (type instanceof ZodDefault) {
10106
- return getDiscriminator(type._def.innerType);
10107
- } else if (type instanceof ZodUndefined) {
10094
+ const getDiscriminator = (type2) => {
10095
+ if (type2 instanceof ZodLazy) {
10096
+ return getDiscriminator(type2.schema);
10097
+ } else if (type2 instanceof ZodEffects) {
10098
+ return getDiscriminator(type2.innerType());
10099
+ } else if (type2 instanceof ZodLiteral) {
10100
+ return [type2.value];
10101
+ } else if (type2 instanceof ZodEnum) {
10102
+ return type2.options;
10103
+ } else if (type2 instanceof ZodNativeEnum) {
10104
+ return util.objectValues(type2.enum);
10105
+ } else if (type2 instanceof ZodDefault) {
10106
+ return getDiscriminator(type2._def.innerType);
10107
+ } else if (type2 instanceof ZodUndefined) {
10108
10108
  return [void 0];
10109
- } else if (type instanceof ZodNull) {
10109
+ } else if (type2 instanceof ZodNull) {
10110
10110
  return [null];
10111
- } else if (type instanceof ZodOptional) {
10112
- return [void 0, ...getDiscriminator(type.unwrap())];
10113
- } else if (type instanceof ZodNullable) {
10114
- return [null, ...getDiscriminator(type.unwrap())];
10115
- } else if (type instanceof ZodBranded) {
10116
- return getDiscriminator(type.unwrap());
10117
- } else if (type instanceof ZodReadonly) {
10118
- return getDiscriminator(type.unwrap());
10119
- } else if (type instanceof ZodCatch) {
10120
- return getDiscriminator(type._def.innerType);
10111
+ } else if (type2 instanceof ZodOptional) {
10112
+ return [void 0, ...getDiscriminator(type2.unwrap())];
10113
+ } else if (type2 instanceof ZodNullable) {
10114
+ return [null, ...getDiscriminator(type2.unwrap())];
10115
+ } else if (type2 instanceof ZodBranded) {
10116
+ return getDiscriminator(type2.unwrap());
10117
+ } else if (type2 instanceof ZodReadonly) {
10118
+ return getDiscriminator(type2.unwrap());
10119
+ } else if (type2 instanceof ZodCatch) {
10120
+ return getDiscriminator(type2._def.innerType);
10121
10121
  } else {
10122
10122
  return [];
10123
10123
  }
@@ -10177,8 +10177,8 @@ class ZodDiscriminatedUnion extends ZodType {
10177
10177
  */
10178
10178
  static create(discriminator, options, params2) {
10179
10179
  const optionsMap = /* @__PURE__ */ new Map();
10180
- for (const type of options) {
10181
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
10180
+ for (const type2 of options) {
10181
+ const discriminatorValues = getDiscriminator(type2.shape[discriminator]);
10182
10182
  if (!discriminatorValues.length) {
10183
10183
  throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
10184
10184
  }
@@ -10186,7 +10186,7 @@ class ZodDiscriminatedUnion extends ZodType {
10186
10186
  if (optionsMap.has(value)) {
10187
10187
  throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
10188
10188
  }
10189
- optionsMap.set(value, type);
10189
+ optionsMap.set(value, type2);
10190
10190
  }
10191
10191
  }
10192
10192
  return new ZodDiscriminatedUnion({
@@ -11014,9 +11014,9 @@ class ZodOptional extends ZodType {
11014
11014
  return this._def.innerType;
11015
11015
  }
11016
11016
  }
11017
- ZodOptional.create = (type, params2) => {
11017
+ ZodOptional.create = (type2, params2) => {
11018
11018
  return new ZodOptional({
11019
- innerType: type,
11019
+ innerType: type2,
11020
11020
  typeName: ZodFirstPartyTypeKind.ZodOptional,
11021
11021
  ...processCreateParams(params2)
11022
11022
  });
@@ -11033,9 +11033,9 @@ class ZodNullable extends ZodType {
11033
11033
  return this._def.innerType;
11034
11034
  }
11035
11035
  }
11036
- ZodNullable.create = (type, params2) => {
11036
+ ZodNullable.create = (type2, params2) => {
11037
11037
  return new ZodNullable({
11038
- innerType: type,
11038
+ innerType: type2,
11039
11039
  typeName: ZodFirstPartyTypeKind.ZodNullable,
11040
11040
  ...processCreateParams(params2)
11041
11041
  });
@@ -11057,9 +11057,9 @@ class ZodDefault extends ZodType {
11057
11057
  return this._def.innerType;
11058
11058
  }
11059
11059
  }
11060
- ZodDefault.create = (type, params2) => {
11060
+ ZodDefault.create = (type2, params2) => {
11061
11061
  return new ZodDefault({
11062
- innerType: type,
11062
+ innerType: type2,
11063
11063
  typeName: ZodFirstPartyTypeKind.ZodDefault,
11064
11064
  defaultValue: typeof params2.default === "function" ? params2.default : () => params2.default,
11065
11065
  ...processCreateParams(params2)
@@ -11110,9 +11110,9 @@ class ZodCatch extends ZodType {
11110
11110
  return this._def.innerType;
11111
11111
  }
11112
11112
  }
11113
- ZodCatch.create = (type, params2) => {
11113
+ ZodCatch.create = (type2, params2) => {
11114
11114
  return new ZodCatch({
11115
- innerType: type,
11115
+ innerType: type2,
11116
11116
  typeName: ZodFirstPartyTypeKind.ZodCatch,
11117
11117
  catchValue: typeof params2.catch === "function" ? params2.catch : () => params2.catch,
11118
11118
  ...processCreateParams(params2)
@@ -11224,9 +11224,9 @@ class ZodReadonly extends ZodType {
11224
11224
  return this._def.innerType;
11225
11225
  }
11226
11226
  }
11227
- ZodReadonly.create = (type, params2) => {
11227
+ ZodReadonly.create = (type2, params2) => {
11228
11228
  return new ZodReadonly({
11229
- innerType: type,
11229
+ innerType: type2,
11230
11230
  typeName: ZodFirstPartyTypeKind.ZodReadonly,
11231
11231
  ...processCreateParams(params2)
11232
11232
  });
@@ -12583,7 +12583,7 @@ class Client extends Protocol {
12583
12583
  return this._instructions;
12584
12584
  }
12585
12585
  assertCapabilityForMethod(method) {
12586
- var _a, _b, _c, _d, _e;
12586
+ var _a, _b, _c, _d, _e2;
12587
12587
  switch (method) {
12588
12588
  case "logging/setLevel":
12589
12589
  if (!((_a = this._serverCapabilities) === null || _a === void 0 ? void 0 : _a.logging)) {
@@ -12615,7 +12615,7 @@ class Client extends Protocol {
12615
12615
  }
12616
12616
  break;
12617
12617
  case "completion/complete":
12618
- if (!((_e = this._serverCapabilities) === null || _e === void 0 ? void 0 : _e.prompts)) {
12618
+ if (!((_e2 = this._serverCapabilities) === null || _e2 === void 0 ? void 0 : _e2.prompts)) {
12619
12619
  throw new Error(`Server does not support prompts (required for ${method})`);
12620
12620
  }
12621
12621
  break;
@@ -12785,9 +12785,9 @@ class ErrorEvent extends Event {
12785
12785
  * @param type - The type of the event (should be "error")
12786
12786
  * @param errorEventInitDict - Optional properties to include in the error event
12787
12787
  */
12788
- constructor(type, errorEventInitDict) {
12788
+ constructor(type2, errorEventInitDict) {
12789
12789
  var _a, _b;
12790
- super(type), this.code = (_a = errorEventInitDict == null ? void 0 : errorEventInitDict.code) != null ? _a : void 0, this.message = (_b = errorEventInitDict == null ? void 0 : errorEventInitDict.message) != null ? _b : void 0;
12790
+ super(type2), this.code = (_a = errorEventInitDict == null ? void 0 : errorEventInitDict.code) != null ? _a : void 0, this.message = (_b = errorEventInitDict == null ? void 0 : errorEventInitDict.message) != null ? _b : void 0;
12791
12791
  }
12792
12792
  /**
12793
12793
  * Node.js "hides" the `message` and `code` properties of the `ErrorEvent` instance,
@@ -12954,13 +12954,13 @@ class EventSource extends EventTarget {
12954
12954
  set onopen(value) {
12955
12955
  __privateSet(this, _onOpen, value);
12956
12956
  }
12957
- addEventListener(type, listener, options) {
12957
+ addEventListener(type2, listener, options) {
12958
12958
  const listen = listener;
12959
- super.addEventListener(type, listen, options);
12959
+ super.addEventListener(type2, listen, options);
12960
12960
  }
12961
- removeEventListener(type, listener, options) {
12961
+ removeEventListener(type2, listener, options) {
12962
12962
  const listen = listener;
12963
- super.removeEventListener(type, listen, options);
12963
+ super.removeEventListener(type2, listen, options);
12964
12964
  }
12965
12965
  /**
12966
12966
  * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
@@ -13555,6 +13555,93 @@ class InspectorOAuthClientProvider {
13555
13555
  }
13556
13556
  }
13557
13557
  const authProvider = new InspectorOAuthClientProvider();
13558
+ const name = "@modelcontextprotocol/inspector-client";
13559
+ const version$1 = "0.7.0";
13560
+ const description = "Client-side application for the Model Context Protocol inspector";
13561
+ const license = "MIT";
13562
+ const author = "Anthropic, PBC (https://anthropic.com)";
13563
+ const homepage = "https://modelcontextprotocol.io";
13564
+ const bugs = "https://github.com/modelcontextprotocol/inspector/issues";
13565
+ const type = "module";
13566
+ const bin = {
13567
+ "mcp-inspector-client": "./bin/cli.js"
13568
+ };
13569
+ const files = [
13570
+ "bin",
13571
+ "dist"
13572
+ ];
13573
+ const scripts = {
13574
+ dev: "vite",
13575
+ build: "tsc -b && vite build",
13576
+ lint: "eslint .",
13577
+ preview: "vite preview",
13578
+ test: "jest --config jest.config.cjs",
13579
+ "test:watch": "jest --config jest.config.cjs --watch"
13580
+ };
13581
+ const dependencies = {
13582
+ "@modelcontextprotocol/sdk": "^1.6.1",
13583
+ "@radix-ui/react-dialog": "^1.1.3",
13584
+ "@radix-ui/react-checkbox": "^1.1.4",
13585
+ "@radix-ui/react-icons": "^1.3.0",
13586
+ "@radix-ui/react-label": "^2.1.0",
13587
+ "@radix-ui/react-popover": "^1.1.3",
13588
+ "@radix-ui/react-select": "^2.1.2",
13589
+ "@radix-ui/react-slot": "^1.1.0",
13590
+ "@radix-ui/react-tabs": "^1.1.1",
13591
+ "@types/prismjs": "^1.26.5",
13592
+ "class-variance-authority": "^0.7.0",
13593
+ clsx: "^2.1.1",
13594
+ cmdk: "^1.0.4",
13595
+ "lucide-react": "^0.447.0",
13596
+ "pkce-challenge": "^4.1.0",
13597
+ prismjs: "^1.29.0",
13598
+ react: "^18.3.1",
13599
+ "react-dom": "^18.3.1",
13600
+ "react-simple-code-editor": "^0.14.1",
13601
+ "react-toastify": "^10.0.6",
13602
+ "serve-handler": "^6.1.6",
13603
+ "tailwind-merge": "^2.5.3",
13604
+ "tailwindcss-animate": "^1.0.7",
13605
+ zod: "^3.23.8"
13606
+ };
13607
+ const devDependencies = {
13608
+ "@eslint/js": "^9.11.1",
13609
+ "@types/jest": "^29.5.14",
13610
+ "@types/node": "^22.7.5",
13611
+ "@types/react": "^18.3.10",
13612
+ "@types/react-dom": "^18.3.0",
13613
+ "@types/serve-handler": "^6.1.4",
13614
+ "@vitejs/plugin-react": "^4.3.2",
13615
+ autoprefixer: "^10.4.20",
13616
+ co: "^4.6.0",
13617
+ eslint: "^9.11.1",
13618
+ "eslint-plugin-react-hooks": "^5.1.0-rc.0",
13619
+ "eslint-plugin-react-refresh": "^0.4.12",
13620
+ globals: "^15.9.0",
13621
+ jest: "^29.7.0",
13622
+ "jest-environment-jsdom": "^29.7.0",
13623
+ postcss: "^8.4.47",
13624
+ tailwindcss: "^3.4.13",
13625
+ "ts-jest": "^29.2.6",
13626
+ typescript: "^5.5.3",
13627
+ "typescript-eslint": "^8.7.0",
13628
+ vite: "^5.4.8"
13629
+ };
13630
+ const packageJson = {
13631
+ name,
13632
+ version: version$1,
13633
+ description,
13634
+ license,
13635
+ author,
13636
+ homepage,
13637
+ bugs,
13638
+ type,
13639
+ bin,
13640
+ files,
13641
+ scripts,
13642
+ dependencies,
13643
+ devDependencies
13644
+ };
13558
13645
  const params$1 = new URLSearchParams(window.location.search);
13559
13646
  const DEFAULT_REQUEST_TIMEOUT_MSEC = parseInt(params$1.get("timeout") ?? "") || 1e4;
13560
13647
  function useConnection({
@@ -13611,7 +13698,7 @@ function useConnection({
13611
13698
  } catch (e) {
13612
13699
  if (!(options == null ? void 0 : options.suppressToast)) {
13613
13700
  const errorString = e.message ?? String(e);
13614
- B$1.error(errorString);
13701
+ B$2.error(errorString);
13615
13702
  }
13616
13703
  throw e;
13617
13704
  }
@@ -13641,14 +13728,14 @@ function useConnection({
13641
13728
  setCompletionsSupported(false);
13642
13729
  return [];
13643
13730
  }
13644
- B$1.error(e instanceof Error ? e.message : String(e));
13731
+ B$2.error(e instanceof Error ? e.message : String(e));
13645
13732
  throw e;
13646
13733
  }
13647
13734
  };
13648
13735
  const sendNotification = async (notification) => {
13649
13736
  if (!mcpClient) {
13650
13737
  const error = new Error("MCP client not connected");
13651
- B$1.error(error.message);
13738
+ B$2.error(error.message);
13652
13739
  throw error;
13653
13740
  }
13654
13741
  try {
@@ -13658,7 +13745,7 @@ function useConnection({
13658
13745
  if (e instanceof McpError) {
13659
13746
  pushHistory(notification, { error: e.message });
13660
13747
  }
13661
- B$1.error(e instanceof Error ? e.message : String(e));
13748
+ B$2.error(e instanceof Error ? e.message : String(e));
13662
13749
  throw e;
13663
13750
  }
13664
13751
  };
@@ -13670,13 +13757,13 @@ function useConnection({
13670
13757
  }
13671
13758
  return false;
13672
13759
  };
13673
- const connect = async (_e, retryCount = 0) => {
13760
+ const connect = async (_e2, retryCount = 0) => {
13674
13761
  var _a;
13675
13762
  try {
13676
13763
  const client = new Client(
13677
13764
  {
13678
13765
  name: "mcp-inspector",
13679
- version: "0.0.1"
13766
+ version: packageJson.version
13680
13767
  },
13681
13768
  {
13682
13769
  capabilities: {
@@ -13718,6 +13805,10 @@ function useConnection({
13718
13805
  ResourceUpdatedNotificationSchema,
13719
13806
  onNotification
13720
13807
  );
13808
+ client.setNotificationHandler(
13809
+ LoggingMessageNotificationSchema,
13810
+ onNotification
13811
+ );
13721
13812
  }
13722
13813
  if (onStdErrNotification) {
13723
13814
  client.setNotificationHandler(
@@ -14010,8 +14101,8 @@ function getElementRef$1(element) {
14010
14101
  }
14011
14102
  return element.props.ref || element.ref;
14012
14103
  }
14013
- function createCollection(name) {
14014
- const PROVIDER_NAME = name + "CollectionProvider";
14104
+ function createCollection(name2) {
14105
+ const PROVIDER_NAME = name2 + "CollectionProvider";
14015
14106
  const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME);
14016
14107
  const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
14017
14108
  PROVIDER_NAME,
@@ -14019,13 +14110,13 @@ function createCollection(name) {
14019
14110
  );
14020
14111
  const CollectionProvider = (props) => {
14021
14112
  const { scope, children } = props;
14022
- const ref = React$2.useRef(null);
14023
- const itemMap = React$2.useRef(/* @__PURE__ */ new Map()).current;
14113
+ const ref = React$1.useRef(null);
14114
+ const itemMap = React$1.useRef(/* @__PURE__ */ new Map()).current;
14024
14115
  return /* @__PURE__ */ jsxRuntimeExports.jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
14025
14116
  };
14026
14117
  CollectionProvider.displayName = PROVIDER_NAME;
14027
- const COLLECTION_SLOT_NAME = name + "CollectionSlot";
14028
- const CollectionSlot = React$2.forwardRef(
14118
+ const COLLECTION_SLOT_NAME = name2 + "CollectionSlot";
14119
+ const CollectionSlot = React$1.forwardRef(
14029
14120
  (props, forwardedRef) => {
14030
14121
  const { scope, children } = props;
14031
14122
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
@@ -14034,15 +14125,15 @@ function createCollection(name) {
14034
14125
  }
14035
14126
  );
14036
14127
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
14037
- const ITEM_SLOT_NAME = name + "CollectionItemSlot";
14128
+ const ITEM_SLOT_NAME = name2 + "CollectionItemSlot";
14038
14129
  const ITEM_DATA_ATTR = "data-radix-collection-item";
14039
- const CollectionItemSlot = React$2.forwardRef(
14130
+ const CollectionItemSlot = React$1.forwardRef(
14040
14131
  (props, forwardedRef) => {
14041
14132
  const { scope, children, ...itemData } = props;
14042
- const ref = React$2.useRef(null);
14133
+ const ref = React$1.useRef(null);
14043
14134
  const composedRefs = useComposedRefs(forwardedRef, ref);
14044
14135
  const context = useCollectionContext(ITEM_SLOT_NAME, scope);
14045
- React$2.useEffect(() => {
14136
+ React$1.useEffect(() => {
14046
14137
  context.itemMap.set(ref, { ref, ...itemData });
14047
14138
  return () => void context.itemMap.delete(ref);
14048
14139
  });
@@ -14051,8 +14142,8 @@ function createCollection(name) {
14051
14142
  );
14052
14143
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
14053
14144
  function useCollection2(scope) {
14054
- const context = useCollectionContext(name + "CollectionConsumer", scope);
14055
- const getItems = React$2.useCallback(() => {
14145
+ const context = useCollectionContext(name2 + "CollectionConsumer", scope);
14146
+ const getItems = React$1.useCallback(() => {
14056
14147
  const collectionNode = context.collectionRef.current;
14057
14148
  if (!collectionNode) return [];
14058
14149
  const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
@@ -14072,7 +14163,7 @@ function createCollection(name) {
14072
14163
  }
14073
14164
  var useLayoutEffect2 = Boolean(globalThis == null ? void 0 : globalThis.document) ? reactExports.useLayoutEffect : () => {
14074
14165
  };
14075
- var useReactId = React$3["useId".toString()] || (() => void 0);
14166
+ var useReactId = React$2["useId".toString()] || (() => void 0);
14076
14167
  var count$1 = 0;
14077
14168
  function useId(deterministicId) {
14078
14169
  const [id2, setId] = reactExports.useState(useReactId());
@@ -17821,19 +17912,19 @@ const AlertDescription = reactExports.forwardRef(({ className: className2, ...pr
17821
17912
  ));
17822
17913
  AlertDescription.displayName = "AlertDescription";
17823
17914
  var U = 1, Y$1 = 0.9, H = 0.8, J = 0.17, p = 0.1, u = 0.999, $ = 0.9999;
17824
- var k$1 = 0.99, m = /[\\\/_+.#"@\[\(\{&]/, B = /[\\\/_+.#"@\[\(\{&]/g, K$1 = /[\s-]/, X = /[\s-]/g;
17825
- function G$1(_2, C2, h2, P2, A2, f2, O2) {
17915
+ var k$1 = 0.99, m = /[\\\/_+.#"@\[\(\{&]/, B$1 = /[\\\/_+.#"@\[\(\{&]/g, K$1 = /[\s-]/, X = /[\s-]/g;
17916
+ function G(_2, C2, h2, P2, A2, f2, O2) {
17826
17917
  if (f2 === C2.length) return A2 === _2.length ? U : k$1;
17827
17918
  var T2 = `${A2},${f2}`;
17828
17919
  if (O2[T2] !== void 0) return O2[T2];
17829
- for (var L2 = P2.charAt(f2), c2 = h2.indexOf(L2, A2), S2 = 0, E2, N2, R2, M2; c2 >= 0; ) E2 = G$1(_2, C2, h2, P2, c2 + 1, f2 + 1, O2), E2 > S2 && (c2 === A2 ? E2 *= U : m.test(_2.charAt(c2 - 1)) ? (E2 *= H, R2 = _2.slice(A2, c2 - 1).match(B), R2 && A2 > 0 && (E2 *= Math.pow(u, R2.length))) : K$1.test(_2.charAt(c2 - 1)) ? (E2 *= Y$1, M2 = _2.slice(A2, c2 - 1).match(X), M2 && A2 > 0 && (E2 *= Math.pow(u, M2.length))) : (E2 *= J, A2 > 0 && (E2 *= Math.pow(u, c2 - A2))), _2.charAt(c2) !== C2.charAt(f2) && (E2 *= $)), (E2 < p && h2.charAt(c2 - 1) === P2.charAt(f2 + 1) || P2.charAt(f2 + 1) === P2.charAt(f2) && h2.charAt(c2 - 1) !== P2.charAt(f2)) && (N2 = G$1(_2, C2, h2, P2, c2 + 1, f2 + 2, O2), N2 * p > E2 && (E2 = N2 * p)), E2 > S2 && (S2 = E2), c2 = h2.indexOf(L2, c2 + 1);
17920
+ for (var L2 = P2.charAt(f2), c2 = h2.indexOf(L2, A2), S2 = 0, E2, N2, R2, M2; c2 >= 0; ) E2 = G(_2, C2, h2, P2, c2 + 1, f2 + 1, O2), E2 > S2 && (c2 === A2 ? E2 *= U : m.test(_2.charAt(c2 - 1)) ? (E2 *= H, R2 = _2.slice(A2, c2 - 1).match(B$1), R2 && A2 > 0 && (E2 *= Math.pow(u, R2.length))) : K$1.test(_2.charAt(c2 - 1)) ? (E2 *= Y$1, M2 = _2.slice(A2, c2 - 1).match(X), M2 && A2 > 0 && (E2 *= Math.pow(u, M2.length))) : (E2 *= J, A2 > 0 && (E2 *= Math.pow(u, c2 - A2))), _2.charAt(c2) !== C2.charAt(f2) && (E2 *= $)), (E2 < p && h2.charAt(c2 - 1) === P2.charAt(f2 + 1) || P2.charAt(f2 + 1) === P2.charAt(f2) && h2.charAt(c2 - 1) !== P2.charAt(f2)) && (N2 = G(_2, C2, h2, P2, c2 + 1, f2 + 2, O2), N2 * p > E2 && (E2 = N2 * p)), E2 > S2 && (S2 = E2), c2 = h2.indexOf(L2, c2 + 1);
17830
17921
  return O2[T2] = S2, S2;
17831
17922
  }
17832
17923
  function D(_2) {
17833
17924
  return _2.toLowerCase().replace(X, " ");
17834
17925
  }
17835
17926
  function W(_2, C2, h2) {
17836
- return _2 = h2 && h2.length > 0 ? `${_2 + " " + h2.join(" ")}` : _2, G$1(_2, C2, D(_2), D(C2), 0, 0, {});
17927
+ return _2 = h2 && h2.length > 0 ? `${_2 + " " + h2.join(" ")}` : _2, G(_2, C2, D(_2), D(C2), 0, 0, {});
17837
17928
  }
17838
17929
  function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
17839
17930
  const onEscapeKeyDown = useCallbackRef$1(onEscapeKeyDownProp);
@@ -18038,10 +18129,10 @@ function dispatchUpdate() {
18038
18129
  const event = new CustomEvent(CONTEXT_UPDATE);
18039
18130
  document.dispatchEvent(event);
18040
18131
  }
18041
- function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
18132
+ function handleAndDispatchCustomEvent(name2, handler, detail, { discrete }) {
18042
18133
  const target = detail.originalEvent.target;
18043
- const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });
18044
- if (handler) target.addEventListener(name, handler, { once: true });
18134
+ const event = new CustomEvent(name2, { bubbles: false, cancelable: true, detail });
18135
+ if (handler) target.addEventListener(name2, handler, { once: true });
18045
18136
  if (discrete) {
18046
18137
  dispatchDiscreteCustomEvent(target, event);
18047
18138
  } else {
@@ -18875,8 +18966,8 @@ function RemoveScrollSideCar(props) {
18875
18966
  }
18876
18967
  }
18877
18968
  }, []);
18878
- var shouldCancel = reactExports.useCallback(function(name, delta, target, should) {
18879
- var event = { name, delta, target, should, shadowParent: getOutermostShadowParent(target) };
18969
+ var shouldCancel = reactExports.useCallback(function(name2, delta, target, should) {
18970
+ var event = { name: name2, delta, target, should, shadowParent: getOutermostShadowParent(target) };
18880
18971
  shouldPreventQueue.current.push(event);
18881
18972
  setTimeout(function() {
18882
18973
  shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
@@ -19359,204 +19450,157 @@ var Content$1 = DialogContent$1;
19359
19450
  var Title = DialogTitle$1;
19360
19451
  var Description = DialogDescription$1;
19361
19452
  var Close = DialogClose;
19362
- var shim$1 = { exports: {} };
19363
- var useSyncExternalStoreShim_production = {};
19364
- /**
19365
- * @license React
19366
- * use-sync-external-store-shim.production.js
19367
- *
19368
- * Copyright (c) Meta Platforms, Inc. and affiliates.
19369
- *
19370
- * This source code is licensed under the MIT license found in the
19371
- * LICENSE file in the root directory of this source tree.
19372
- */
19373
- var React$1 = reactExports;
19374
- function is(x2, y2) {
19375
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
19376
- }
19377
- var objectIs = "function" === typeof Object.is ? Object.is : is, useState = React$1.useState, useEffect = React$1.useEffect, useLayoutEffect = React$1.useLayoutEffect, useDebugValue = React$1.useDebugValue;
19378
- function useSyncExternalStore$2(subscribe, getSnapshot) {
19379
- var value = getSnapshot(), _useState = useState({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
19380
- useLayoutEffect(
19381
- function() {
19382
- inst.value = value;
19383
- inst.getSnapshot = getSnapshot;
19384
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
19385
- },
19386
- [subscribe, value, getSnapshot]
19387
- );
19388
- useEffect(
19389
- function() {
19390
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
19391
- return subscribe(function() {
19392
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
19393
- });
19394
- },
19395
- [subscribe]
19396
- );
19397
- useDebugValue(value);
19398
- return value;
19399
- }
19400
- function checkIfSnapshotChanged(inst) {
19401
- var latestGetSnapshot = inst.getSnapshot;
19402
- inst = inst.value;
19403
- try {
19404
- var nextValue = latestGetSnapshot();
19405
- return !objectIs(inst, nextValue);
19406
- } catch (error) {
19407
- return true;
19408
- }
19409
- }
19410
- function useSyncExternalStore$1(subscribe, getSnapshot) {
19411
- return getSnapshot();
19412
- }
19413
- var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
19414
- useSyncExternalStoreShim_production.useSyncExternalStore = void 0 !== React$1.useSyncExternalStore ? React$1.useSyncExternalStore : shim;
19415
- {
19416
- shim$1.exports = useSyncExternalStoreShim_production;
19417
- }
19418
- var shimExports = shim$1.exports;
19419
- var N = '[cmdk-group=""]', Q = '[cmdk-group-items=""]', be = '[cmdk-group-heading=""]', Z = '[cmdk-item=""]', le = `${Z}:not([aria-disabled="true"])`, Y = "cmdk-item-select", I = "data-value", he = (r2, o, t2) => W(r2, o, t2), ue = reactExports.createContext(void 0), K = () => reactExports.useContext(ue), de = reactExports.createContext(void 0), ee = () => reactExports.useContext(de), fe = reactExports.createContext(void 0);
19420
- var me = reactExports.forwardRef((r2, o) => {
19421
- let t2 = k(() => {
19422
- var e, s;
19423
- return { search: "", value: (s = (e = r2.value) != null ? e : r2.defaultValue) != null ? s : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
19424
- }), u2 = k(() => /* @__PURE__ */ new Set()), c2 = k(() => /* @__PURE__ */ new Map()), d2 = k(() => /* @__PURE__ */ new Map()), f2 = k(() => /* @__PURE__ */ new Set()), p2 = pe(r2), { label: v2, children: b2, value: l2, onValueChange: y2, filter: E2, shouldFilter: C2, loop: H2, disablePointerSelection: ge2 = false, vimBindings: $2 = true, ...O2 } = r2, te2 = useId(), B2 = useId(), F2 = useId(), x2 = reactExports.useRef(null), R2 = Te();
19425
- M(() => {
19426
- if (l2 !== void 0) {
19427
- let e = l2.trim();
19428
- t2.current.value = e, h2.emit();
19429
- }
19430
- }, [l2]), M(() => {
19431
- R2(6, re2);
19453
+ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-heading=""]', le = '[cmdk-item=""]', ce = `${le}:not([aria-disabled="true"])`, Z = "cmdk-item-select", T = "data-value", Re = (r2, o, n2) => W(r2, o, n2), ue = reactExports.createContext(void 0), K = () => reactExports.useContext(ue), de = reactExports.createContext(void 0), ee = () => reactExports.useContext(de), fe = reactExports.createContext(void 0), me = reactExports.forwardRef((r2, o) => {
19454
+ let n2 = L(() => {
19455
+ var e, a;
19456
+ return { search: "", value: (a = (e = r2.value) != null ? e : r2.defaultValue) != null ? a : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
19457
+ }), u2 = L(() => /* @__PURE__ */ new Set()), c2 = L(() => /* @__PURE__ */ new Map()), d2 = L(() => /* @__PURE__ */ new Map()), f2 = L(() => /* @__PURE__ */ new Set()), p2 = pe(r2), { label: b2, children: m2, value: R2, onValueChange: x2, filter: C2, shouldFilter: S2, loop: A2, disablePointerSelection: ge2 = false, vimBindings: j = true, ...O2 } = r2, $2 = useId(), q2 = useId(), _2 = useId(), I2 = reactExports.useRef(null), v2 = ke();
19458
+ k(() => {
19459
+ if (R2 !== void 0) {
19460
+ let e = R2.trim();
19461
+ n2.current.value = e, E2.emit();
19462
+ }
19463
+ }, [R2]), k(() => {
19464
+ v2(6, ne2);
19432
19465
  }, []);
19433
- let h2 = reactExports.useMemo(() => ({ subscribe: (e) => (f2.current.add(e), () => f2.current.delete(e)), snapshot: () => t2.current, setState: (e, s, i) => {
19434
- var a, m2, g2;
19435
- if (!Object.is(t2.current[e], s)) {
19436
- if (t2.current[e] = s, e === "search") W2(), U2(), R2(1, z2);
19437
- else if (e === "value" && (i || R2(5, re2), ((a = p2.current) == null ? void 0 : a.value) !== void 0)) {
19438
- let S2 = s != null ? s : "";
19439
- (g2 = (m2 = p2.current).onValueChange) == null || g2.call(m2, S2);
19440
- return;
19466
+ let E2 = reactExports.useMemo(() => ({ subscribe: (e) => (f2.current.add(e), () => f2.current.delete(e)), snapshot: () => n2.current, setState: (e, a, s) => {
19467
+ var i, l2, g2, y2;
19468
+ if (!Object.is(n2.current[e], a)) {
19469
+ if (n2.current[e] = a, e === "search") J2(), z2(), v2(1, W2);
19470
+ else if (e === "value") {
19471
+ if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
19472
+ let h2 = document.getElementById(_2);
19473
+ h2 ? h2.focus() : (i = document.getElementById($2)) == null || i.focus();
19474
+ }
19475
+ if (v2(7, () => {
19476
+ var h2;
19477
+ n2.current.selectedItemId = (h2 = M2()) == null ? void 0 : h2.id, E2.emit();
19478
+ }), s || v2(5, ne2), ((l2 = p2.current) == null ? void 0 : l2.value) !== void 0) {
19479
+ let h2 = a != null ? a : "";
19480
+ (y2 = (g2 = p2.current).onValueChange) == null || y2.call(g2, h2);
19481
+ return;
19482
+ }
19441
19483
  }
19442
- h2.emit();
19484
+ E2.emit();
19443
19485
  }
19444
19486
  }, emit: () => {
19445
19487
  f2.current.forEach((e) => e());
19446
- } }), []), q2 = reactExports.useMemo(() => ({ value: (e, s, i) => {
19447
- var a;
19448
- s !== ((a = d2.current.get(e)) == null ? void 0 : a.value) && (d2.current.set(e, { value: s, keywords: i }), t2.current.filtered.items.set(e, ne2(s, i)), R2(2, () => {
19449
- U2(), h2.emit();
19488
+ } }), []), U2 = reactExports.useMemo(() => ({ value: (e, a, s) => {
19489
+ var i;
19490
+ a !== ((i = d2.current.get(e)) == null ? void 0 : i.value) && (d2.current.set(e, { value: a, keywords: s }), n2.current.filtered.items.set(e, te2(a, s)), v2(2, () => {
19491
+ z2(), E2.emit();
19450
19492
  }));
19451
- }, item: (e, s) => (u2.current.add(e), s && (c2.current.has(s) ? c2.current.get(s).add(e) : c2.current.set(s, /* @__PURE__ */ new Set([e]))), R2(3, () => {
19452
- W2(), U2(), t2.current.value || z2(), h2.emit();
19493
+ }, item: (e, a) => (u2.current.add(e), a && (c2.current.has(a) ? c2.current.get(a).add(e) : c2.current.set(a, /* @__PURE__ */ new Set([e]))), v2(3, () => {
19494
+ J2(), z2(), n2.current.value || W2(), E2.emit();
19453
19495
  }), () => {
19454
- d2.current.delete(e), u2.current.delete(e), t2.current.filtered.items.delete(e);
19455
- let i = A2();
19456
- R2(4, () => {
19457
- W2(), (i == null ? void 0 : i.getAttribute("id")) === e && z2(), h2.emit();
19496
+ d2.current.delete(e), u2.current.delete(e), n2.current.filtered.items.delete(e);
19497
+ let s = M2();
19498
+ v2(4, () => {
19499
+ J2(), (s == null ? void 0 : s.getAttribute("id")) === e && W2(), E2.emit();
19458
19500
  });
19459
19501
  }), group: (e) => (c2.current.has(e) || c2.current.set(e, /* @__PURE__ */ new Set()), () => {
19460
19502
  d2.current.delete(e), c2.current.delete(e);
19461
- }), filter: () => p2.current.shouldFilter, label: v2 || r2["aria-label"], getDisablePointerSelection: () => p2.current.disablePointerSelection, listId: te2, inputId: F2, labelId: B2, listInnerRef: x2 }), []);
19462
- function ne2(e, s) {
19463
- var a, m2;
19464
- let i = (m2 = (a = p2.current) == null ? void 0 : a.filter) != null ? m2 : he;
19465
- return e ? i(e, t2.current.search, s) : 0;
19466
- }
19467
- function U2() {
19468
- if (!t2.current.search || p2.current.shouldFilter === false) return;
19469
- let e = t2.current.filtered.items, s = [];
19470
- t2.current.filtered.groups.forEach((a) => {
19471
- let m2 = c2.current.get(a), g2 = 0;
19472
- m2.forEach((S2) => {
19473
- let P2 = e.get(S2);
19474
- g2 = Math.max(P2, g2);
19475
- }), s.push([a, g2]);
19503
+ }), filter: () => p2.current.shouldFilter, label: b2 || r2["aria-label"], getDisablePointerSelection: () => p2.current.disablePointerSelection, listId: $2, inputId: _2, labelId: q2, listInnerRef: I2 }), []);
19504
+ function te2(e, a) {
19505
+ var i, l2;
19506
+ let s = (l2 = (i = p2.current) == null ? void 0 : i.filter) != null ? l2 : Re;
19507
+ return e ? s(e, n2.current.search, a) : 0;
19508
+ }
19509
+ function z2() {
19510
+ if (!n2.current.search || p2.current.shouldFilter === false) return;
19511
+ let e = n2.current.filtered.items, a = [];
19512
+ n2.current.filtered.groups.forEach((i) => {
19513
+ let l2 = c2.current.get(i), g2 = 0;
19514
+ l2.forEach((y2) => {
19515
+ let h2 = e.get(y2);
19516
+ g2 = Math.max(h2, g2);
19517
+ }), a.push([i, g2]);
19476
19518
  });
19477
- let i = x2.current;
19478
- _2().sort((a, m2) => {
19479
- var P2, V2;
19480
- let g2 = a.getAttribute("id"), S2 = m2.getAttribute("id");
19481
- return ((P2 = e.get(S2)) != null ? P2 : 0) - ((V2 = e.get(g2)) != null ? V2 : 0);
19482
- }).forEach((a) => {
19483
- let m2 = a.closest(Q);
19484
- m2 ? m2.appendChild(a.parentElement === m2 ? a : a.closest(`${Q} > *`)) : i.appendChild(a.parentElement === i ? a : a.closest(`${Q} > *`));
19485
- }), s.sort((a, m2) => m2[1] - a[1]).forEach((a) => {
19519
+ let s = I2.current;
19520
+ V2().sort((i, l2) => {
19521
+ var h2, F2;
19522
+ let g2 = i.getAttribute("id"), y2 = l2.getAttribute("id");
19523
+ return ((h2 = e.get(y2)) != null ? h2 : 0) - ((F2 = e.get(g2)) != null ? F2 : 0);
19524
+ }).forEach((i) => {
19525
+ let l2 = i.closest(Y);
19526
+ l2 ? l2.appendChild(i.parentElement === l2 ? i : i.closest(`${Y} > *`)) : s.appendChild(i.parentElement === s ? i : i.closest(`${Y} > *`));
19527
+ }), a.sort((i, l2) => l2[1] - i[1]).forEach((i) => {
19486
19528
  var g2;
19487
- let m2 = (g2 = x2.current) == null ? void 0 : g2.querySelector(`${N}[${I}="${encodeURIComponent(a[0])}"]`);
19488
- m2 == null || m2.parentElement.appendChild(m2);
19529
+ let l2 = (g2 = I2.current) == null ? void 0 : g2.querySelector(`${N}[${T}="${encodeURIComponent(i[0])}"]`);
19530
+ l2 == null || l2.parentElement.appendChild(l2);
19489
19531
  });
19490
19532
  }
19491
- function z2() {
19492
- let e = _2().find((i) => i.getAttribute("aria-disabled") !== "true"), s = e == null ? void 0 : e.getAttribute(I);
19493
- h2.setState("value", s || void 0);
19494
- }
19495
19533
  function W2() {
19496
- var s, i, a, m2;
19497
- if (!t2.current.search || p2.current.shouldFilter === false) {
19498
- t2.current.filtered.count = u2.current.size;
19534
+ let e = V2().find((s) => s.getAttribute("aria-disabled") !== "true"), a = e == null ? void 0 : e.getAttribute(T);
19535
+ E2.setState("value", a || void 0);
19536
+ }
19537
+ function J2() {
19538
+ var a, s, i, l2;
19539
+ if (!n2.current.search || p2.current.shouldFilter === false) {
19540
+ n2.current.filtered.count = u2.current.size;
19499
19541
  return;
19500
19542
  }
19501
- t2.current.filtered.groups = /* @__PURE__ */ new Set();
19543
+ n2.current.filtered.groups = /* @__PURE__ */ new Set();
19502
19544
  let e = 0;
19503
19545
  for (let g2 of u2.current) {
19504
- let S2 = (i = (s = d2.current.get(g2)) == null ? void 0 : s.value) != null ? i : "", P2 = (m2 = (a = d2.current.get(g2)) == null ? void 0 : a.keywords) != null ? m2 : [], V2 = ne2(S2, P2);
19505
- t2.current.filtered.items.set(g2, V2), V2 > 0 && e++;
19546
+ let y2 = (s = (a = d2.current.get(g2)) == null ? void 0 : a.value) != null ? s : "", h2 = (l2 = (i = d2.current.get(g2)) == null ? void 0 : i.keywords) != null ? l2 : [], F2 = te2(y2, h2);
19547
+ n2.current.filtered.items.set(g2, F2), F2 > 0 && e++;
19506
19548
  }
19507
- for (let [g2, S2] of c2.current) for (let P2 of S2) if (t2.current.filtered.items.get(P2) > 0) {
19508
- t2.current.filtered.groups.add(g2);
19549
+ for (let [g2, y2] of c2.current) for (let h2 of y2) if (n2.current.filtered.items.get(h2) > 0) {
19550
+ n2.current.filtered.groups.add(g2);
19509
19551
  break;
19510
19552
  }
19511
- t2.current.filtered.count = e;
19553
+ n2.current.filtered.count = e;
19512
19554
  }
19513
- function re2() {
19514
- var s, i, a;
19515
- let e = A2();
19516
- e && (((s = e.parentElement) == null ? void 0 : s.firstChild) === e && ((a = (i = e.closest(N)) == null ? void 0 : i.querySelector(be)) == null || a.scrollIntoView({ block: "nearest" })), e.scrollIntoView({ block: "nearest" }));
19555
+ function ne2() {
19556
+ var a, s, i;
19557
+ let e = M2();
19558
+ e && (((a = e.parentElement) == null ? void 0 : a.firstChild) === e && ((i = (s = e.closest(N)) == null ? void 0 : s.querySelector(be)) == null || i.scrollIntoView({ block: "nearest" })), e.scrollIntoView({ block: "nearest" }));
19517
19559
  }
19518
- function A2() {
19560
+ function M2() {
19519
19561
  var e;
19520
- return (e = x2.current) == null ? void 0 : e.querySelector(`${Z}[aria-selected="true"]`);
19562
+ return (e = I2.current) == null ? void 0 : e.querySelector(`${le}[aria-selected="true"]`);
19521
19563
  }
19522
- function _2() {
19564
+ function V2() {
19523
19565
  var e;
19524
- return Array.from(((e = x2.current) == null ? void 0 : e.querySelectorAll(le)) || []);
19525
- }
19526
- function J2(e) {
19527
- let i = _2()[e];
19528
- i && h2.setState("value", i.getAttribute(I));
19566
+ return Array.from(((e = I2.current) == null ? void 0 : e.querySelectorAll(ce)) || []);
19529
19567
  }
19530
19568
  function X2(e) {
19569
+ let s = V2()[e];
19570
+ s && E2.setState("value", s.getAttribute(T));
19571
+ }
19572
+ function Q2(e) {
19531
19573
  var g2;
19532
- let s = A2(), i = _2(), a = i.findIndex((S2) => S2 === s), m2 = i[a + e];
19533
- (g2 = p2.current) != null && g2.loop && (m2 = a + e < 0 ? i[i.length - 1] : a + e === i.length ? i[0] : i[a + e]), m2 && h2.setState("value", m2.getAttribute(I));
19574
+ let a = M2(), s = V2(), i = s.findIndex((y2) => y2 === a), l2 = s[i + e];
19575
+ (g2 = p2.current) != null && g2.loop && (l2 = i + e < 0 ? s[s.length - 1] : i + e === s.length ? s[0] : s[i + e]), l2 && E2.setState("value", l2.getAttribute(T));
19534
19576
  }
19535
- function oe2(e) {
19536
- let s = A2(), i = s == null ? void 0 : s.closest(N), a;
19537
- for (; i && !a; ) i = e > 0 ? Ie(i, N) : Me(i, N), a = i == null ? void 0 : i.querySelector(le);
19538
- a ? h2.setState("value", a.getAttribute(I)) : X2(e);
19577
+ function re2(e) {
19578
+ let a = M2(), s = a == null ? void 0 : a.closest(N), i;
19579
+ for (; s && !i; ) s = e > 0 ? we(s, N) : De(s, N), i = s == null ? void 0 : s.querySelector(ce);
19580
+ i ? E2.setState("value", i.getAttribute(T)) : Q2(e);
19539
19581
  }
19540
- let ie2 = () => J2(_2().length - 1), ae2 = (e) => {
19541
- e.preventDefault(), e.metaKey ? ie2() : e.altKey ? oe2(1) : X2(1);
19582
+ let oe2 = () => X2(V2().length - 1), ie2 = (e) => {
19583
+ e.preventDefault(), e.metaKey ? oe2() : e.altKey ? re2(1) : Q2(1);
19542
19584
  }, se2 = (e) => {
19543
- e.preventDefault(), e.metaKey ? J2(0) : e.altKey ? oe2(-1) : X2(-1);
19585
+ e.preventDefault(), e.metaKey ? X2(0) : e.altKey ? re2(-1) : Q2(-1);
19544
19586
  };
19545
19587
  return reactExports.createElement(Primitive.div, { ref: o, tabIndex: -1, ...O2, "cmdk-root": "", onKeyDown: (e) => {
19546
19588
  var s;
19547
- if ((s = O2.onKeyDown) == null || s.call(O2, e), !e.defaultPrevented) switch (e.key) {
19589
+ (s = O2.onKeyDown) == null || s.call(O2, e);
19590
+ let a = e.nativeEvent.isComposing || e.keyCode === 229;
19591
+ if (!(e.defaultPrevented || a)) switch (e.key) {
19548
19592
  case "n":
19549
19593
  case "j": {
19550
- $2 && e.ctrlKey && ae2(e);
19594
+ j && e.ctrlKey && ie2(e);
19551
19595
  break;
19552
19596
  }
19553
19597
  case "ArrowDown": {
19554
- ae2(e);
19598
+ ie2(e);
19555
19599
  break;
19556
19600
  }
19557
19601
  case "p":
19558
19602
  case "k": {
19559
- $2 && e.ctrlKey && se2(e);
19603
+ j && e.ctrlKey && se2(e);
19560
19604
  break;
19561
19605
  }
19562
19606
  case "ArrowUp": {
@@ -19564,152 +19608,140 @@ var me = reactExports.forwardRef((r2, o) => {
19564
19608
  break;
19565
19609
  }
19566
19610
  case "Home": {
19567
- e.preventDefault(), J2(0);
19611
+ e.preventDefault(), X2(0);
19568
19612
  break;
19569
19613
  }
19570
19614
  case "End": {
19571
- e.preventDefault(), ie2();
19615
+ e.preventDefault(), oe2();
19572
19616
  break;
19573
19617
  }
19574
- case "Enter":
19575
- if (!e.nativeEvent.isComposing && e.keyCode !== 229) {
19576
- e.preventDefault();
19577
- let i = A2();
19578
- if (i) {
19579
- let a = new Event(Y);
19580
- i.dispatchEvent(a);
19581
- }
19618
+ case "Enter": {
19619
+ e.preventDefault();
19620
+ let i = M2();
19621
+ if (i) {
19622
+ let l2 = new Event(Z);
19623
+ i.dispatchEvent(l2);
19582
19624
  }
19625
+ }
19583
19626
  }
19584
- } }, reactExports.createElement("label", { "cmdk-label": "", htmlFor: q2.inputId, id: q2.labelId, style: Le }, v2), j(r2, (e) => reactExports.createElement(de.Provider, { value: h2 }, reactExports.createElement(ue.Provider, { value: q2 }, e))));
19585
- }), ye = reactExports.forwardRef((r2, o) => {
19586
- var F2, x2;
19587
- let t2 = useId(), u2 = reactExports.useRef(null), c2 = reactExports.useContext(fe), d2 = K(), f2 = pe(r2), p2 = (x2 = (F2 = f2.current) == null ? void 0 : F2.forceMount) != null ? x2 : c2 == null ? void 0 : c2.forceMount;
19588
- M(() => {
19589
- if (!p2) return d2.item(t2, c2 == null ? void 0 : c2.id);
19627
+ } }, reactExports.createElement("label", { "cmdk-label": "", htmlFor: U2.inputId, id: U2.labelId, style: Te }, b2), B(r2, (e) => reactExports.createElement(de.Provider, { value: E2 }, reactExports.createElement(ue.Provider, { value: U2 }, e))));
19628
+ }), he = reactExports.forwardRef((r2, o) => {
19629
+ var _2, I2;
19630
+ let n2 = useId(), u2 = reactExports.useRef(null), c2 = reactExports.useContext(fe), d2 = K(), f2 = pe(r2), p2 = (I2 = (_2 = f2.current) == null ? void 0 : _2.forceMount) != null ? I2 : c2 == null ? void 0 : c2.forceMount;
19631
+ k(() => {
19632
+ if (!p2) return d2.item(n2, c2 == null ? void 0 : c2.id);
19590
19633
  }, [p2]);
19591
- let v2 = ve(t2, u2, [r2.value, r2.children, u2], r2.keywords), b2 = ee(), l2 = T((R2) => R2.value && R2.value === v2.current), y2 = T((R2) => p2 || d2.filter() === false ? true : R2.search ? R2.filtered.items.get(t2) > 0 : true);
19634
+ let b2 = ve(n2, u2, [r2.value, r2.children, u2], r2.keywords), m2 = ee(), R2 = P((v2) => v2.value && v2.value === b2.current), x2 = P((v2) => p2 || d2.filter() === false ? true : v2.search ? v2.filtered.items.get(n2) > 0 : true);
19592
19635
  reactExports.useEffect(() => {
19593
- let R2 = u2.current;
19594
- if (!(!R2 || r2.disabled)) return R2.addEventListener(Y, E2), () => R2.removeEventListener(Y, E2);
19595
- }, [y2, r2.onSelect, r2.disabled]);
19596
- function E2() {
19597
- var R2, h2;
19598
- C2(), (h2 = (R2 = f2.current).onSelect) == null || h2.call(R2, v2.current);
19599
- }
19636
+ let v2 = u2.current;
19637
+ if (!(!v2 || r2.disabled)) return v2.addEventListener(Z, C2), () => v2.removeEventListener(Z, C2);
19638
+ }, [x2, r2.onSelect, r2.disabled]);
19600
19639
  function C2() {
19601
- b2.setState("value", v2.current, true);
19640
+ var v2, E2;
19641
+ S2(), (E2 = (v2 = f2.current).onSelect) == null || E2.call(v2, b2.current);
19602
19642
  }
19603
- if (!y2) return null;
19604
- let { disabled: H2, value: ge2, onSelect: $2, forceMount: O2, keywords: te2, ...B2 } = r2;
19605
- return reactExports.createElement(Primitive.div, { ref: G([u2, o]), ...B2, id: t2, "cmdk-item": "", role: "option", "aria-disabled": !!H2, "aria-selected": !!l2, "data-disabled": !!H2, "data-selected": !!l2, onPointerMove: H2 || d2.getDisablePointerSelection() ? void 0 : C2, onClick: H2 ? void 0 : E2 }, r2.children);
19606
- }), Se = reactExports.forwardRef((r2, o) => {
19607
- let { heading: t2, children: u2, forceMount: c2, ...d2 } = r2, f2 = useId(), p2 = reactExports.useRef(null), v2 = reactExports.useRef(null), b2 = useId(), l2 = K(), y2 = T((C2) => c2 || l2.filter() === false ? true : C2.search ? C2.filtered.groups.has(f2) : true);
19608
- M(() => l2.group(f2), []), ve(f2, p2, [r2.value, r2.heading, v2]);
19609
- let E2 = reactExports.useMemo(() => ({ id: f2, forceMount: c2 }), [c2]);
19610
- return reactExports.createElement(Primitive.div, { ref: G([p2, o]), ...d2, "cmdk-group": "", role: "presentation", hidden: y2 ? void 0 : true }, t2 && reactExports.createElement("div", { ref: v2, "cmdk-group-heading": "", "aria-hidden": true, id: b2 }, t2), j(r2, (C2) => reactExports.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t2 ? b2 : void 0 }, reactExports.createElement(fe.Provider, { value: E2 }, C2))));
19643
+ function S2() {
19644
+ m2.setState("value", b2.current, true);
19645
+ }
19646
+ if (!x2) return null;
19647
+ let { disabled: A2, value: ge2, onSelect: j, forceMount: O2, keywords: $2, ...q2 } = r2;
19648
+ return reactExports.createElement(Primitive.div, { ref: composeRefs(u2, o), ...q2, id: n2, "cmdk-item": "", role: "option", "aria-disabled": !!A2, "aria-selected": !!R2, "data-disabled": !!A2, "data-selected": !!R2, onPointerMove: A2 || d2.getDisablePointerSelection() ? void 0 : S2, onClick: A2 ? void 0 : C2 }, r2.children);
19611
19649
  }), Ee = reactExports.forwardRef((r2, o) => {
19612
- let { alwaysRender: t2, ...u2 } = r2, c2 = reactExports.useRef(null), d2 = T((f2) => !f2.search);
19613
- return !t2 && !d2 ? null : reactExports.createElement(Primitive.div, { ref: G([c2, o]), ...u2, "cmdk-separator": "", role: "separator" });
19614
- }), Ce = reactExports.forwardRef((r2, o) => {
19615
- let { onValueChange: t2, ...u2 } = r2, c2 = r2.value != null, d2 = ee(), f2 = T((l2) => l2.search), p2 = T((l2) => l2.value), v2 = K(), b2 = reactExports.useMemo(() => {
19616
- var y2;
19617
- let l2 = (y2 = v2.listInnerRef.current) == null ? void 0 : y2.querySelector(`${Z}[${I}="${encodeURIComponent(p2)}"]`);
19618
- return l2 == null ? void 0 : l2.getAttribute("id");
19619
- }, []);
19650
+ let { heading: n2, children: u2, forceMount: c2, ...d2 } = r2, f2 = useId(), p2 = reactExports.useRef(null), b2 = reactExports.useRef(null), m2 = useId(), R2 = K(), x2 = P((S2) => c2 || R2.filter() === false ? true : S2.search ? S2.filtered.groups.has(f2) : true);
19651
+ k(() => R2.group(f2), []), ve(f2, p2, [r2.value, r2.heading, b2]);
19652
+ let C2 = reactExports.useMemo(() => ({ id: f2, forceMount: c2 }), [c2]);
19653
+ return reactExports.createElement(Primitive.div, { ref: composeRefs(p2, o), ...d2, "cmdk-group": "", role: "presentation", hidden: x2 ? void 0 : true }, n2 && reactExports.createElement("div", { ref: b2, "cmdk-group-heading": "", "aria-hidden": true, id: m2 }, n2), B(r2, (S2) => reactExports.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n2 ? m2 : void 0 }, reactExports.createElement(fe.Provider, { value: C2 }, S2))));
19654
+ }), ye = reactExports.forwardRef((r2, o) => {
19655
+ let { alwaysRender: n2, ...u2 } = r2, c2 = reactExports.useRef(null), d2 = P((f2) => !f2.search);
19656
+ return !n2 && !d2 ? null : reactExports.createElement(Primitive.div, { ref: composeRefs(c2, o), ...u2, "cmdk-separator": "", role: "separator" });
19657
+ }), Se = reactExports.forwardRef((r2, o) => {
19658
+ let { onValueChange: n2, ...u2 } = r2, c2 = r2.value != null, d2 = ee(), f2 = P((m2) => m2.search), p2 = P((m2) => m2.selectedItemId), b2 = K();
19620
19659
  return reactExports.useEffect(() => {
19621
19660
  r2.value != null && d2.setState("search", r2.value);
19622
- }, [r2.value]), reactExports.createElement(Primitive.input, { ref: o, ...u2, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": v2.listId, "aria-labelledby": v2.labelId, "aria-activedescendant": b2, id: v2.inputId, type: "text", value: c2 ? r2.value : f2, onChange: (l2) => {
19623
- c2 || d2.setState("search", l2.target.value), t2 == null || t2(l2.target.value);
19661
+ }, [r2.value]), reactExports.createElement(Primitive.input, { ref: o, ...u2, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": b2.listId, "aria-labelledby": b2.labelId, "aria-activedescendant": p2, id: b2.inputId, type: "text", value: c2 ? r2.value : f2, onChange: (m2) => {
19662
+ c2 || d2.setState("search", m2.target.value), n2 == null || n2(m2.target.value);
19624
19663
  } });
19625
- }), xe = reactExports.forwardRef((r2, o) => {
19626
- let { children: t2, label: u2 = "Suggestions", ...c2 } = r2, d2 = reactExports.useRef(null), f2 = reactExports.useRef(null), p2 = K();
19664
+ }), Ce = reactExports.forwardRef((r2, o) => {
19665
+ let { children: n2, label: u2 = "Suggestions", ...c2 } = r2, d2 = reactExports.useRef(null), f2 = reactExports.useRef(null), p2 = P((m2) => m2.selectedItemId), b2 = K();
19627
19666
  return reactExports.useEffect(() => {
19628
19667
  if (f2.current && d2.current) {
19629
- let v2 = f2.current, b2 = d2.current, l2, y2 = new ResizeObserver(() => {
19630
- l2 = requestAnimationFrame(() => {
19631
- let E2 = v2.offsetHeight;
19632
- b2.style.setProperty("--cmdk-list-height", E2.toFixed(1) + "px");
19668
+ let m2 = f2.current, R2 = d2.current, x2, C2 = new ResizeObserver(() => {
19669
+ x2 = requestAnimationFrame(() => {
19670
+ let S2 = m2.offsetHeight;
19671
+ R2.style.setProperty("--cmdk-list-height", S2.toFixed(1) + "px");
19633
19672
  });
19634
19673
  });
19635
- return y2.observe(v2), () => {
19636
- cancelAnimationFrame(l2), y2.unobserve(v2);
19674
+ return C2.observe(m2), () => {
19675
+ cancelAnimationFrame(x2), C2.unobserve(m2);
19637
19676
  };
19638
19677
  }
19639
- }, []), reactExports.createElement(Primitive.div, { ref: G([d2, o]), ...c2, "cmdk-list": "", role: "listbox", "aria-label": u2, id: p2.listId }, j(r2, (v2) => reactExports.createElement("div", { ref: G([f2, p2.listInnerRef]), "cmdk-list-sizer": "" }, v2)));
19640
- }), Pe = reactExports.forwardRef((r2, o) => {
19641
- let { open: t2, onOpenChange: u2, overlayClassName: c2, contentClassName: d2, container: f2, ...p2 } = r2;
19642
- return reactExports.createElement(Root$3, { open: t2, onOpenChange: u2 }, reactExports.createElement(Portal$2, { container: f2 }, reactExports.createElement(Overlay, { "cmdk-overlay": "", className: c2 }), reactExports.createElement(Content$1, { "aria-label": r2.label, "cmdk-dialog": "", className: d2 }, reactExports.createElement(me, { ref: o, ...p2 }))));
19643
- }), we = reactExports.forwardRef((r2, o) => T((u2) => u2.filtered.count === 0) ? reactExports.createElement(Primitive.div, { ref: o, ...r2, "cmdk-empty": "", role: "presentation" }) : null), De = reactExports.forwardRef((r2, o) => {
19644
- let { progress: t2, children: u2, label: c2 = "Loading...", ...d2 } = r2;
19645
- return reactExports.createElement(Primitive.div, { ref: o, ...d2, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t2, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c2 }, j(r2, (f2) => reactExports.createElement("div", { "aria-hidden": true }, f2)));
19646
- }), Ve = Object.assign(me, { List: xe, Item: ye, Input: Ce, Group: Se, Separator: Ee, Dialog: Pe, Empty: we, Loading: De });
19647
- function Ie(r2, o) {
19648
- let t2 = r2.nextElementSibling;
19649
- for (; t2; ) {
19650
- if (t2.matches(o)) return t2;
19651
- t2 = t2.nextElementSibling;
19652
- }
19653
- }
19654
- function Me(r2, o) {
19655
- let t2 = r2.previousElementSibling;
19656
- for (; t2; ) {
19657
- if (t2.matches(o)) return t2;
19658
- t2 = t2.previousElementSibling;
19678
+ }, []), reactExports.createElement(Primitive.div, { ref: composeRefs(d2, o), ...c2, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p2, "aria-label": u2, id: b2.listId }, B(r2, (m2) => reactExports.createElement("div", { ref: composeRefs(f2, b2.listInnerRef), "cmdk-list-sizer": "" }, m2)));
19679
+ }), xe = reactExports.forwardRef((r2, o) => {
19680
+ let { open: n2, onOpenChange: u2, overlayClassName: c2, contentClassName: d2, container: f2, ...p2 } = r2;
19681
+ return reactExports.createElement(Root$3, { open: n2, onOpenChange: u2 }, reactExports.createElement(Portal$2, { container: f2 }, reactExports.createElement(Overlay, { "cmdk-overlay": "", className: c2 }), reactExports.createElement(Content$1, { "aria-label": r2.label, "cmdk-dialog": "", className: d2 }, reactExports.createElement(me, { ref: o, ...p2 }))));
19682
+ }), Ie = reactExports.forwardRef((r2, o) => P((u2) => u2.filtered.count === 0) ? reactExports.createElement(Primitive.div, { ref: o, ...r2, "cmdk-empty": "", role: "presentation" }) : null), Pe = reactExports.forwardRef((r2, o) => {
19683
+ let { progress: n2, children: u2, label: c2 = "Loading...", ...d2 } = r2;
19684
+ return reactExports.createElement(Primitive.div, { ref: o, ...d2, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n2, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c2 }, B(r2, (f2) => reactExports.createElement("div", { "aria-hidden": true }, f2)));
19685
+ }), _e = Object.assign(me, { List: Ce, Item: he, Input: Se, Group: Ee, Separator: ye, Dialog: xe, Empty: Ie, Loading: Pe });
19686
+ function we(r2, o) {
19687
+ let n2 = r2.nextElementSibling;
19688
+ for (; n2; ) {
19689
+ if (n2.matches(o)) return n2;
19690
+ n2 = n2.nextElementSibling;
19691
+ }
19692
+ }
19693
+ function De(r2, o) {
19694
+ let n2 = r2.previousElementSibling;
19695
+ for (; n2; ) {
19696
+ if (n2.matches(o)) return n2;
19697
+ n2 = n2.previousElementSibling;
19659
19698
  }
19660
19699
  }
19661
19700
  function pe(r2) {
19662
19701
  let o = reactExports.useRef(r2);
19663
- return M(() => {
19702
+ return k(() => {
19664
19703
  o.current = r2;
19665
19704
  }), o;
19666
19705
  }
19667
- var M = typeof window == "undefined" ? reactExports.useEffect : reactExports.useLayoutEffect;
19668
- function k(r2) {
19706
+ var k = typeof window == "undefined" ? reactExports.useEffect : reactExports.useLayoutEffect;
19707
+ function L(r2) {
19669
19708
  let o = reactExports.useRef();
19670
19709
  return o.current === void 0 && (o.current = r2()), o;
19671
19710
  }
19672
- function G(r2) {
19673
- return (o) => {
19674
- r2.forEach((t2) => {
19675
- typeof t2 == "function" ? t2(o) : t2 != null && (t2.current = o);
19676
- });
19677
- };
19678
- }
19679
- function T(r2) {
19680
- let o = ee(), t2 = () => r2(o.snapshot());
19681
- return shimExports.useSyncExternalStore(o.subscribe, t2, t2);
19711
+ function P(r2) {
19712
+ let o = ee(), n2 = () => r2(o.snapshot());
19713
+ return reactExports.useSyncExternalStore(o.subscribe, n2, n2);
19682
19714
  }
19683
- function ve(r2, o, t2, u2 = []) {
19715
+ function ve(r2, o, n2, u2 = []) {
19684
19716
  let c2 = reactExports.useRef(), d2 = K();
19685
- return M(() => {
19686
- var v2;
19717
+ return k(() => {
19718
+ var b2;
19687
19719
  let f2 = (() => {
19688
- var b2;
19689
- for (let l2 of t2) {
19690
- if (typeof l2 == "string") return l2.trim();
19691
- if (typeof l2 == "object" && "current" in l2) return l2.current ? (b2 = l2.current.textContent) == null ? void 0 : b2.trim() : c2.current;
19720
+ var m2;
19721
+ for (let R2 of n2) {
19722
+ if (typeof R2 == "string") return R2.trim();
19723
+ if (typeof R2 == "object" && "current" in R2) return R2.current ? (m2 = R2.current.textContent) == null ? void 0 : m2.trim() : c2.current;
19692
19724
  }
19693
- })(), p2 = u2.map((b2) => b2.trim());
19694
- d2.value(r2, f2, p2), (v2 = o.current) == null || v2.setAttribute(I, f2), c2.current = f2;
19725
+ })(), p2 = u2.map((m2) => m2.trim());
19726
+ d2.value(r2, f2, p2), (b2 = o.current) == null || b2.setAttribute(T, f2), c2.current = f2;
19695
19727
  }), c2;
19696
19728
  }
19697
- var Te = () => {
19698
- let [r2, o] = reactExports.useState(), t2 = k(() => /* @__PURE__ */ new Map());
19699
- return M(() => {
19700
- t2.current.forEach((u2) => u2()), t2.current = /* @__PURE__ */ new Map();
19729
+ var ke = () => {
19730
+ let [r2, o] = reactExports.useState(), n2 = L(() => /* @__PURE__ */ new Map());
19731
+ return k(() => {
19732
+ n2.current.forEach((u2) => u2()), n2.current = /* @__PURE__ */ new Map();
19701
19733
  }, [r2]), (u2, c2) => {
19702
- t2.current.set(u2, c2), o({});
19734
+ n2.current.set(u2, c2), o({});
19703
19735
  };
19704
19736
  };
19705
- function ke(r2) {
19737
+ function Me(r2) {
19706
19738
  let o = r2.type;
19707
19739
  return typeof o == "function" ? o(r2.props) : "render" in o ? o.render(r2.props) : r2;
19708
19740
  }
19709
- function j({ asChild: r2, children: o }, t2) {
19710
- return r2 && reactExports.isValidElement(o) ? reactExports.cloneElement(ke(o), { ref: o.ref }, t2(o.props.children)) : t2(o);
19741
+ function B({ asChild: r2, children: o }, n2) {
19742
+ return r2 && reactExports.isValidElement(o) ? reactExports.cloneElement(Me(o), { ref: o.ref }, n2(o.props.children)) : n2(o);
19711
19743
  }
19712
- var Le = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
19744
+ var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
19713
19745
  function _objectWithoutPropertiesLoose(source, excluded) {
19714
19746
  if (source == null) return {};
19715
19747
  var target = {};
@@ -19887,7 +19919,7 @@ const DialogDescription = reactExports.forwardRef(({ className: className2, ...p
19887
19919
  ));
19888
19920
  DialogDescription.displayName = Description.displayName;
19889
19921
  const Command = reactExports.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19890
- Ve,
19922
+ _e,
19891
19923
  {
19892
19924
  ref,
19893
19925
  className: cn(
@@ -19897,11 +19929,11 @@ const Command = reactExports.forwardRef(({ className: className2, ...props }, re
19897
19929
  ...props
19898
19930
  }
19899
19931
  ));
19900
- Command.displayName = Ve.displayName;
19932
+ Command.displayName = _e.displayName;
19901
19933
  const CommandInput = reactExports.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
19902
19934
  /* @__PURE__ */ jsxRuntimeExports.jsx(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
19903
19935
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19904
- Ve.Input,
19936
+ _e.Input,
19905
19937
  {
19906
19938
  ref,
19907
19939
  className: cn(
@@ -19912,27 +19944,27 @@ const CommandInput = reactExports.forwardRef(({ className: className2, ...props
19912
19944
  }
19913
19945
  )
19914
19946
  ] }));
19915
- CommandInput.displayName = Ve.Input.displayName;
19947
+ CommandInput.displayName = _e.Input.displayName;
19916
19948
  const CommandList = reactExports.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19917
- Ve.List,
19949
+ _e.List,
19918
19950
  {
19919
19951
  ref,
19920
19952
  className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className2),
19921
19953
  ...props
19922
19954
  }
19923
19955
  ));
19924
- CommandList.displayName = Ve.List.displayName;
19956
+ CommandList.displayName = _e.List.displayName;
19925
19957
  const CommandEmpty = reactExports.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19926
- Ve.Empty,
19958
+ _e.Empty,
19927
19959
  {
19928
19960
  ref,
19929
19961
  className: "py-6 text-center text-sm",
19930
19962
  ...props
19931
19963
  }
19932
19964
  ));
19933
- CommandEmpty.displayName = Ve.Empty.displayName;
19965
+ CommandEmpty.displayName = _e.Empty.displayName;
19934
19966
  const CommandGroup = reactExports.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19935
- Ve.Group,
19967
+ _e.Group,
19936
19968
  {
19937
19969
  ref,
19938
19970
  className: cn(
@@ -19942,18 +19974,18 @@ const CommandGroup = reactExports.forwardRef(({ className: className2, ...props
19942
19974
  ...props
19943
19975
  }
19944
19976
  ));
19945
- CommandGroup.displayName = Ve.Group.displayName;
19977
+ CommandGroup.displayName = _e.Group.displayName;
19946
19978
  const CommandSeparator = reactExports.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19947
- Ve.Separator,
19979
+ _e.Separator,
19948
19980
  {
19949
19981
  ref,
19950
19982
  className: cn("-mx-1 h-px bg-border", className2),
19951
19983
  ...props
19952
19984
  }
19953
19985
  ));
19954
- CommandSeparator.displayName = Ve.Separator.displayName;
19986
+ CommandSeparator.displayName = _e.Separator.displayName;
19955
19987
  const CommandItem = reactExports.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19956
- Ve.Item,
19988
+ _e.Item,
19957
19989
  {
19958
19990
  ref,
19959
19991
  className: cn(
@@ -19963,7 +19995,7 @@ const CommandItem = reactExports.forwardRef(({ className: className2, ...props }
19963
19995
  ...props
19964
19996
  }
19965
19997
  ));
19966
- CommandItem.displayName = Ve.Item.displayName;
19998
+ CommandItem.displayName = _e.Item.displayName;
19967
19999
  const sides = ["top", "right", "bottom", "left"];
19968
20000
  const min = Math.min;
19969
20001
  const max = Math.max;
@@ -20171,7 +20203,7 @@ const computePosition$1 = async (reference, floating, config) => {
20171
20203
  let resetCount = 0;
20172
20204
  for (let i = 0; i < validMiddleware.length; i++) {
20173
20205
  const {
20174
- name,
20206
+ name: name2,
20175
20207
  fn
20176
20208
  } = validMiddleware[i];
20177
20209
  const {
@@ -20197,8 +20229,8 @@ const computePosition$1 = async (reference, floating, config) => {
20197
20229
  y2 = nextY != null ? nextY : y2;
20198
20230
  middlewareData = {
20199
20231
  ...middlewareData,
20200
- [name]: {
20201
- ...middlewareData[name],
20232
+ [name2]: {
20233
+ ...middlewareData[name2],
20202
20234
  ...data
20203
20235
  }
20204
20236
  };
@@ -21888,7 +21920,7 @@ var CONTENT_NAME$2 = "PopperContent";
21888
21920
  var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$2);
21889
21921
  var PopperContent = reactExports.forwardRef(
21890
21922
  (props, forwardedRef) => {
21891
- var _a, _b, _c, _d, _e, _f;
21923
+ var _a, _b, _c, _d, _e2, _f;
21892
21924
  const {
21893
21925
  __scopePopper,
21894
21926
  side = "bottom",
@@ -21987,7 +22019,7 @@ var PopperContent = reactExports.forwardRef(
21987
22019
  zIndex: contentZIndex,
21988
22020
  ["--radix-popper-transform-origin"]: [
21989
22021
  (_d = middlewareData.transformOrigin) == null ? void 0 : _d.x,
21990
- (_e = middlewareData.transformOrigin) == null ? void 0 : _e.y
22022
+ (_e2 = middlewareData.transformOrigin) == null ? void 0 : _e2.y
21991
22023
  ].join(" "),
21992
22024
  // hide the content if using the hide middleware and should be hidden
21993
22025
  // set visibility to hidden and disable pointer events so the UI behaves
@@ -22431,15 +22463,15 @@ function Combobox({
22431
22463
  emptyMessage = "No results found.",
22432
22464
  id: id2
22433
22465
  }) {
22434
- const [open, setOpen] = React$2.useState(false);
22435
- const handleSelect = React$2.useCallback(
22466
+ const [open, setOpen] = React$1.useState(false);
22467
+ const handleSelect = React$1.useCallback(
22436
22468
  (option) => {
22437
22469
  onChange(option);
22438
22470
  setOpen(false);
22439
22471
  },
22440
22472
  [onChange]
22441
22473
  );
22442
- const handleInputChange = React$2.useCallback(
22474
+ const handleInputChange = React$1.useCallback(
22443
22475
  (value2) => {
22444
22476
  onInputChange(value2);
22445
22477
  },
@@ -22943,11 +22975,11 @@ const ResourcesTab = ({
22943
22975
  ] });
22944
22976
  };
22945
22977
  const Input = reactExports.forwardRef(
22946
- ({ className: className2, type, ...props }, ref) => {
22978
+ ({ className: className2, type: type2, ...props }, ref) => {
22947
22979
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
22948
22980
  "input",
22949
22981
  {
22950
- type,
22982
+ type: type2,
22951
22983
  className: cn(
22952
22984
  "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
22953
22985
  className2
@@ -23031,7 +23063,7 @@ const SamplingTab = ({ pendingRequests, onApprove, onReject }) => {
23031
23063
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-4 space-y-4", children: [
23032
23064
  /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-lg font-semibold", children: "Recent Requests" }),
23033
23065
  pendingRequests.map((request) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-4 border rounded-lg space-y-4", children: [
23034
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "bg-gray-50 p-2 rounded", children: JSON.stringify(request.request, null, 2) }),
23066
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-2 rounded", children: JSON.stringify(request.request, null, 2) }),
23035
23067
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex space-x-2", children: [
23036
23068
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => handleApprove(request.id), children: "Approve" }),
23037
23069
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "outline", onClick: () => onReject(request.id), children: "Reject" })
@@ -23103,7 +23135,7 @@ var Select$1 = (props) => {
23103
23135
  defaultValue,
23104
23136
  onValueChange,
23105
23137
  dir,
23106
- name,
23138
+ name: name2,
23107
23139
  autoComplete,
23108
23140
  disabled,
23109
23141
  required,
@@ -23171,7 +23203,7 @@ var Select$1 = (props) => {
23171
23203
  "aria-hidden": true,
23172
23204
  required,
23173
23205
  tabIndex: -1,
23174
- name,
23206
+ name: name2,
23175
23207
  autoComplete,
23176
23208
  value,
23177
23209
  onChange: (event) => setValue(event.target.value),
@@ -24354,7 +24386,7 @@ const useTheme = () => {
24354
24386
  }, [])
24355
24387
  ];
24356
24388
  };
24357
- const version = "0.6.0";
24389
+ const version = "0.7.0";
24358
24390
  const Sidebar = ({
24359
24391
  connectionStatus,
24360
24392
  transportType,
@@ -24370,7 +24402,10 @@ const Sidebar = ({
24370
24402
  bearerToken,
24371
24403
  setBearerToken,
24372
24404
  onConnect,
24373
- stdErrNotifications
24405
+ stdErrNotifications,
24406
+ logLevel,
24407
+ sendLogLevelRequest,
24408
+ loggingSupported
24374
24409
  }) => {
24375
24410
  const [theme, setTheme] = useTheme();
24376
24411
  const [showEnvVars, setShowEnvVars] = reactExports.useState(false);
@@ -24488,9 +24523,17 @@ const Sidebar = ({
24488
24523
  value: key,
24489
24524
  onChange: (e) => {
24490
24525
  const newKey = e.target.value;
24491
- const newEnv = { ...env };
24492
- delete newEnv[key];
24493
- newEnv[newKey] = value;
24526
+ const newEnv = Object.entries(env).reduce(
24527
+ (acc, [k2, v2]) => {
24528
+ if (k2 === key) {
24529
+ acc[newKey] = value;
24530
+ } else {
24531
+ acc[k2] = v2;
24532
+ }
24533
+ return acc;
24534
+ },
24535
+ {}
24536
+ );
24494
24537
  setEnv(newEnv);
24495
24538
  setShownEnvVars((prev) => {
24496
24539
  const next = new Set(prev);
@@ -24588,6 +24631,20 @@ const Sidebar = ({
24588
24631
  ),
24589
24632
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm text-gray-600", children: connectionStatus === "connected" ? "Connected" : connectionStatus === "error" ? "Connection Error" : "Disconnected" })
24590
24633
  ] }),
24634
+ loggingSupported && connectionStatus === "connected" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
24635
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "text-sm font-medium", children: "Logging Level" }),
24636
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
24637
+ Select,
24638
+ {
24639
+ value: logLevel,
24640
+ onValueChange: (value) => sendLogLevelRequest(value),
24641
+ children: [
24642
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SelectTrigger, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SelectValue, { placeholder: "Select logging level" }) }),
24643
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SelectContent, { children: Object.values(LoggingLevelSchema.enum).map((level) => /* @__PURE__ */ jsxRuntimeExports.jsx(SelectItem, { value: level, children: level })) })
24644
+ ]
24645
+ }
24646
+ )
24647
+ ] }),
24591
24648
  stdErrNotifications.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mt-4 border-t border-gray-200 pt-4", children: [
24592
24649
  /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-sm font-medium", children: "Error output from MCP server" }),
24593
24650
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-2 max-h-80 overflow-y-auto", children: stdErrNotifications.map((notification, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -24663,7 +24720,7 @@ var Checkbox$1 = reactExports.forwardRef(
24663
24720
  (props, forwardedRef) => {
24664
24721
  const {
24665
24722
  __scopeCheckbox,
24666
- name,
24723
+ name: name2,
24667
24724
  checked: checkedProp,
24668
24725
  defaultChecked,
24669
24726
  required,
@@ -24722,7 +24779,7 @@ var Checkbox$1 = reactExports.forwardRef(
24722
24779
  {
24723
24780
  control: button,
24724
24781
  bubbles: !hasConsumerStoppedPropagationRef.current,
24725
- name,
24782
+ name: name2,
24726
24783
  value,
24727
24784
  checked,
24728
24785
  required,
@@ -24888,13 +24945,13 @@ var cssText = (
24888
24945
  "\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(className, ":empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n .").concat(className, " {\n color: transparent !important;\n }\n\n .").concat(className, "::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n")
24889
24946
  );
24890
24947
  var Editor = React.forwardRef(function Editor2(props, ref) {
24891
- var autoFocus = props.autoFocus, disabled = props.disabled, form = props.form, highlight = props.highlight, _a = props.ignoreTabKey, ignoreTabKey = _a === void 0 ? false : _a, _b = props.insertSpaces, insertSpaces = _b === void 0 ? true : _b, maxLength = props.maxLength, minLength = props.minLength, name = props.name, onBlur = props.onBlur, onClick = props.onClick, onFocus = props.onFocus, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, onValueChange = props.onValueChange, _c = props.padding, padding = _c === void 0 ? 0 : _c, placeholder = props.placeholder, preClassName = props.preClassName, readOnly = props.readOnly, required = props.required, style = props.style, _d = props.tabSize, tabSize = _d === void 0 ? 2 : _d, textareaClassName = props.textareaClassName, textareaId = props.textareaId, value = props.value, rest = __rest(props, ["autoFocus", "disabled", "form", "highlight", "ignoreTabKey", "insertSpaces", "maxLength", "minLength", "name", "onBlur", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onValueChange", "padding", "placeholder", "preClassName", "readOnly", "required", "style", "tabSize", "textareaClassName", "textareaId", "value"]);
24948
+ var autoFocus = props.autoFocus, disabled = props.disabled, form = props.form, highlight = props.highlight, _a = props.ignoreTabKey, ignoreTabKey = _a === void 0 ? false : _a, _b = props.insertSpaces, insertSpaces = _b === void 0 ? true : _b, maxLength = props.maxLength, minLength = props.minLength, name2 = props.name, onBlur = props.onBlur, onClick = props.onClick, onFocus = props.onFocus, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, onValueChange = props.onValueChange, _c = props.padding, padding = _c === void 0 ? 0 : _c, placeholder = props.placeholder, preClassName = props.preClassName, readOnly = props.readOnly, required = props.required, style = props.style, _d = props.tabSize, tabSize = _d === void 0 ? 2 : _d, textareaClassName = props.textareaClassName, textareaId = props.textareaId, value = props.value, rest = __rest(props, ["autoFocus", "disabled", "form", "highlight", "ignoreTabKey", "insertSpaces", "maxLength", "minLength", "name", "onBlur", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onValueChange", "padding", "placeholder", "preClassName", "readOnly", "required", "style", "tabSize", "textareaClassName", "textareaId", "value"]);
24892
24949
  var historyRef = React.useRef({
24893
24950
  stack: [],
24894
24951
  offset: -1
24895
24952
  });
24896
24953
  var inputRef = React.useRef(null);
24897
- var _e = React.useState(true), capture = _e[0], setCapture = _e[1];
24954
+ var _e2 = React.useState(true), capture = _e2[0], setCapture = _e2[1];
24898
24955
  var contentStyle = {
24899
24956
  paddingTop: typeof padding === "object" ? padding.top : padding,
24900
24957
  paddingRight: typeof padding === "object" ? padding.right : padding,
@@ -25161,7 +25218,7 @@ var Editor = React.forwardRef(function Editor2(props, ref) {
25161
25218
  React.createElement("pre", __assign({ className: preClassName, "aria-hidden": "true", style: __assign(__assign(__assign({}, styles.editor), styles.highlight), contentStyle) }, typeof highlighted === "string" ? { dangerouslySetInnerHTML: { __html: highlighted + "<br />" } } : { children: highlighted })),
25162
25219
  React.createElement("textarea", { ref: function(c2) {
25163
25220
  return inputRef.current = c2;
25164
- }, style: __assign(__assign(__assign({}, styles.editor), styles.textarea), contentStyle), className: className + (textareaClassName ? " ".concat(textareaClassName) : ""), id: textareaId, value, onChange: handleChange, onKeyDown: handleKeyDown, onClick, onKeyUp, onFocus, onBlur, disabled, form, maxLength, minLength, name, placeholder, readOnly, required, autoFocus, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", spellCheck: false, "data-gramm": false }),
25221
+ }, style: __assign(__assign(__assign({}, styles.editor), styles.textarea), contentStyle), className: className + (textareaClassName ? " ".concat(textareaClassName) : ""), id: textareaId, value, onChange: handleChange, onKeyDown: handleKeyDown, onClick, onKeyUp, onFocus, onBlur, disabled, form, maxLength, minLength, name: name2, placeholder, readOnly, required, autoFocus, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", spellCheck: false, "data-gramm": false }),
25165
25222
  React.createElement("style", { dangerouslySetInnerHTML: { __html: cssText } })
25166
25223
  );
25167
25224
  });
@@ -25426,10 +25483,10 @@ var prism = { exports: {} };
25426
25483
  } catch (err) {
25427
25484
  var src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
25428
25485
  if (src) {
25429
- var scripts = document.getElementsByTagName("script");
25430
- for (var i in scripts) {
25431
- if (scripts[i].src == src) {
25432
- return scripts[i];
25486
+ var scripts2 = document.getElementsByTagName("script");
25487
+ for (var i in scripts2) {
25488
+ if (scripts2[i].src == src) {
25489
+ return scripts2[i];
25433
25490
  }
25434
25491
  }
25435
25492
  }
@@ -25624,12 +25681,12 @@ var prism = { exports: {} };
25624
25681
  return ret;
25625
25682
  },
25626
25683
  // Traverse a language definition with Depth First Search
25627
- DFS: function DFS(o, callback, type, visited) {
25684
+ DFS: function DFS(o, callback, type2, visited) {
25628
25685
  visited = visited || {};
25629
25686
  var objId = _2.util.objId;
25630
25687
  for (var i in o) {
25631
25688
  if (o.hasOwnProperty(i)) {
25632
- callback.call(o, i, o[i], type || i);
25689
+ callback.call(o, i, o[i], type2 || i);
25633
25690
  var property = o[i];
25634
25691
  var propertyType = _2.util.type(property);
25635
25692
  if (propertyType === "Object" && !visited[objId(property)]) {
@@ -25857,10 +25914,10 @@ var prism = { exports: {} };
25857
25914
  * @param {HookCallback} callback The callback function which is given environment variables.
25858
25915
  * @public
25859
25916
  */
25860
- add: function(name, callback) {
25917
+ add: function(name2, callback) {
25861
25918
  var hooks = _2.hooks.all;
25862
- hooks[name] = hooks[name] || [];
25863
- hooks[name].push(callback);
25919
+ hooks[name2] = hooks[name2] || [];
25920
+ hooks[name2].push(callback);
25864
25921
  },
25865
25922
  /**
25866
25923
  * Runs a hook invoking all registered callbacks with the given environment variables.
@@ -25871,8 +25928,8 @@ var prism = { exports: {} };
25871
25928
  * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
25872
25929
  * @public
25873
25930
  */
25874
- run: function(name, env) {
25875
- var callbacks = _2.hooks.all[name];
25931
+ run: function(name2, env) {
25932
+ var callbacks = _2.hooks.all[name2];
25876
25933
  if (!callbacks || !callbacks.length) {
25877
25934
  return;
25878
25935
  }
@@ -25884,8 +25941,8 @@ var prism = { exports: {} };
25884
25941
  Token
25885
25942
  };
25886
25943
  _self2.Prism = _2;
25887
- function Token(type, content, alias, matchedStr) {
25888
- this.type = type;
25944
+ function Token(type2, content, alias, matchedStr) {
25945
+ this.type = type2;
25889
25946
  this.content = content;
25890
25947
  this.alias = alias;
25891
25948
  this.length = (matchedStr || "").length | 0;
@@ -25919,8 +25976,8 @@ var prism = { exports: {} };
25919
25976
  }
25920
25977
  _2.hooks.run("wrap", env);
25921
25978
  var attributes = "";
25922
- for (var name in env.attributes) {
25923
- attributes += " " + name + '="' + (env.attributes[name] || "").replace(/"/g, "&quot;") + '"';
25979
+ for (var name2 in env.attributes) {
25980
+ attributes += " " + name2 + '="' + (env.attributes[name2] || "").replace(/"/g, "&quot;") + '"';
25924
25981
  }
25925
25982
  return "<" + env.tag + ' class="' + env.classes.join(" ") + '"' + attributes + ">" + env.content + "</" + env.tag + ">";
25926
25983
  };
@@ -25941,11 +25998,11 @@ var prism = { exports: {} };
25941
25998
  }
25942
25999
  var patterns = grammar[token];
25943
26000
  patterns = Array.isArray(patterns) ? patterns : [patterns];
25944
- for (var j2 = 0; j2 < patterns.length; ++j2) {
25945
- if (rematch && rematch.cause == token + "," + j2) {
26001
+ for (var j = 0; j < patterns.length; ++j) {
26002
+ if (rematch && rematch.cause == token + "," + j) {
25946
26003
  return;
25947
26004
  }
25948
- var patternObj = patterns[j2];
26005
+ var patternObj = patterns[j];
25949
26006
  var inside = patternObj.inside;
25950
26007
  var lookbehind = !!patternObj.lookbehind;
25951
26008
  var greedy = !!patternObj.greedy;
@@ -26020,7 +26077,7 @@ var prism = { exports: {} };
26020
26077
  }
26021
26078
  if (removeCount > 1) {
26022
26079
  var nestedRematch = {
26023
- cause: token + "," + j2,
26080
+ cause: token + "," + j,
26024
26081
  reach
26025
26082
  };
26026
26083
  matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);
@@ -26694,7 +26751,18 @@ Prism.languages.json = {
26694
26751
  }
26695
26752
  };
26696
26753
  Prism.languages.webmanifest = Prism.languages.json;
26697
- const JsonEditor = ({ value, onChange, error }) => {
26754
+ const JsonEditor = ({
26755
+ value,
26756
+ onChange,
26757
+ error: externalError
26758
+ }) => {
26759
+ const [editorContent, setEditorContent] = reactExports.useState(value);
26760
+ const [internalError, setInternalError] = reactExports.useState(
26761
+ void 0
26762
+ );
26763
+ reactExports.useEffect(() => {
26764
+ setEditorContent(value);
26765
+ }, [value]);
26698
26766
  const formatJson = (json) => {
26699
26767
  try {
26700
26768
  return JSON.stringify(JSON.parse(json), null, 2);
@@ -26702,25 +26770,33 @@ const JsonEditor = ({ value, onChange, error }) => {
26702
26770
  return json;
26703
26771
  }
26704
26772
  };
26773
+ const handleEditorChange = (newContent) => {
26774
+ setEditorContent(newContent);
26775
+ setInternalError(void 0);
26776
+ onChange(newContent);
26777
+ };
26778
+ const handleFormatJson = () => {
26779
+ try {
26780
+ const formatted = formatJson(editorContent);
26781
+ setEditorContent(formatted);
26782
+ onChange(formatted);
26783
+ setInternalError(void 0);
26784
+ } catch (err) {
26785
+ setInternalError(err instanceof Error ? err.message : "Invalid JSON");
26786
+ }
26787
+ };
26788
+ const displayError = internalError || externalError;
26705
26789
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative space-y-2", children: [
26706
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
26707
- Button,
26708
- {
26709
- variant: "outline",
26710
- size: "sm",
26711
- onClick: () => onChange(formatJson(value)),
26712
- children: "Format JSON"
26713
- }
26714
- ) }),
26790
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "outline", size: "sm", onClick: handleFormatJson, children: "Format JSON" }) }),
26715
26791
  /* @__PURE__ */ jsxRuntimeExports.jsx(
26716
26792
  "div",
26717
26793
  {
26718
- className: `border rounded-md ${error ? "border-red-500" : "border-gray-200 dark:border-gray-800"}`,
26794
+ className: `border rounded-md ${displayError ? "border-red-500" : "border-gray-200 dark:border-gray-800"}`,
26719
26795
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
26720
26796
  _default,
26721
26797
  {
26722
- value,
26723
- onValueChange: onChange,
26798
+ value: editorContent,
26799
+ onValueChange: handleEditorChange,
26724
26800
  highlight: (code) => Prism$1.highlight(code, Prism$1.languages.json, "json"),
26725
26801
  padding: 10,
26726
26802
  style: {
@@ -26734,12 +26810,111 @@ const JsonEditor = ({ value, onChange, error }) => {
26734
26810
  )
26735
26811
  }
26736
26812
  ),
26737
- error && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm text-red-500 mt-1", children: error })
26813
+ displayError && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm text-red-500 mt-1", children: displayError })
26738
26814
  ] });
26739
26815
  };
26740
- const formatFieldLabel = (key) => {
26816
+ function updateValueAtPath(obj, path, value) {
26817
+ if (path.length === 0) return value;
26818
+ if (obj === null || obj === void 0) {
26819
+ obj = !isNaN(Number(path[0])) ? [] : {};
26820
+ }
26821
+ if (Array.isArray(obj)) {
26822
+ return updateArray(obj, path, value);
26823
+ } else if (typeof obj === "object" && obj !== null) {
26824
+ return updateObject(obj, path, value);
26825
+ } else {
26826
+ console.error(
26827
+ `Cannot update path ${path.join(".")} in non-object/array value:`,
26828
+ obj
26829
+ );
26830
+ return obj;
26831
+ }
26832
+ }
26833
+ function updateArray(array, path, value) {
26834
+ const [index2, ...restPath] = path;
26835
+ const arrayIndex = Number(index2);
26836
+ if (isNaN(arrayIndex)) {
26837
+ console.error(`Invalid array index: ${index2}`);
26838
+ return array;
26839
+ }
26840
+ if (arrayIndex < 0) {
26841
+ console.error(`Array index out of bounds: ${arrayIndex} < 0`);
26842
+ return array;
26843
+ }
26844
+ let newArray = [];
26845
+ for (let i = 0; i < array.length; i++) {
26846
+ newArray[i] = i in array ? array[i] : null;
26847
+ }
26848
+ if (arrayIndex >= newArray.length) {
26849
+ const extendedArray = new Array(arrayIndex).fill(null);
26850
+ for (let i = 0; i < newArray.length; i++) {
26851
+ extendedArray[i] = newArray[i];
26852
+ }
26853
+ newArray = extendedArray;
26854
+ }
26855
+ if (restPath.length === 0) {
26856
+ newArray[arrayIndex] = value;
26857
+ } else {
26858
+ newArray[arrayIndex] = updateValueAtPath(
26859
+ newArray[arrayIndex],
26860
+ restPath,
26861
+ value
26862
+ );
26863
+ }
26864
+ return newArray;
26865
+ }
26866
+ function updateObject(obj, path, value) {
26867
+ const [key, ...restPath] = path;
26868
+ if (typeof key !== "string") {
26869
+ console.error(`Invalid object key: ${key}`);
26870
+ return obj;
26871
+ }
26872
+ const newObj = { ...obj };
26873
+ if (restPath.length === 0) {
26874
+ newObj[key] = value;
26875
+ } else {
26876
+ if (!(key in newObj)) {
26877
+ newObj[key] = {};
26878
+ }
26879
+ newObj[key] = updateValueAtPath(newObj[key], restPath, value);
26880
+ }
26881
+ return newObj;
26882
+ }
26883
+ function generateDefaultValue(schema) {
26884
+ if ("default" in schema) {
26885
+ return schema.default;
26886
+ }
26887
+ if (!schema.required) {
26888
+ if (schema.type === "array") return [];
26889
+ if (schema.type === "object") return {};
26890
+ return null;
26891
+ }
26892
+ switch (schema.type) {
26893
+ case "string":
26894
+ return "";
26895
+ case "number":
26896
+ case "integer":
26897
+ return 0;
26898
+ case "boolean":
26899
+ return false;
26900
+ case "array":
26901
+ return [];
26902
+ case "object": {
26903
+ if (!schema.properties) return {};
26904
+ const obj = {};
26905
+ Object.entries(schema.properties).filter(([, prop]) => prop.required).forEach(([key, prop]) => {
26906
+ const value = generateDefaultValue(prop);
26907
+ obj[key] = value;
26908
+ });
26909
+ return obj;
26910
+ }
26911
+ default:
26912
+ return null;
26913
+ }
26914
+ }
26915
+ function formatFieldLabel(key) {
26741
26916
  return key.replace(/([A-Z])/g, " $1").replace(/_/g, " ").replace(/^\w/, (c2) => c2.toUpperCase());
26742
- };
26917
+ }
26743
26918
  const DynamicJsonForm = ({
26744
26919
  schema,
26745
26920
  value,
@@ -26748,28 +26923,47 @@ const DynamicJsonForm = ({
26748
26923
  }) => {
26749
26924
  const [isJsonMode, setIsJsonMode] = reactExports.useState(false);
26750
26925
  const [jsonError, setJsonError] = reactExports.useState();
26751
- const generateDefaultValue = (propSchema) => {
26752
- switch (propSchema.type) {
26753
- case "string":
26754
- return "";
26755
- case "number":
26756
- case "integer":
26757
- return 0;
26758
- case "boolean":
26759
- return false;
26760
- case "array":
26761
- return [];
26762
- case "object": {
26763
- const obj = {};
26764
- if (propSchema.properties) {
26765
- Object.entries(propSchema.properties).forEach(([key, prop]) => {
26766
- obj[key] = generateDefaultValue(prop);
26767
- });
26926
+ const [rawJsonValue, setRawJsonValue] = reactExports.useState(
26927
+ JSON.stringify(value ?? generateDefaultValue(schema), null, 2)
26928
+ );
26929
+ const timeoutRef = reactExports.useRef();
26930
+ const debouncedUpdateParent = reactExports.useCallback(
26931
+ (jsonString) => {
26932
+ if (timeoutRef.current) {
26933
+ clearTimeout(timeoutRef.current);
26934
+ }
26935
+ timeoutRef.current = setTimeout(() => {
26936
+ try {
26937
+ const parsed = JSON.parse(jsonString);
26938
+ onChange(parsed);
26939
+ setJsonError(void 0);
26940
+ } catch {
26768
26941
  }
26769
- return obj;
26942
+ }, 300);
26943
+ },
26944
+ [onChange, setJsonError]
26945
+ );
26946
+ reactExports.useEffect(() => {
26947
+ if (!isJsonMode) {
26948
+ setRawJsonValue(
26949
+ JSON.stringify(value ?? generateDefaultValue(schema), null, 2)
26950
+ );
26951
+ }
26952
+ }, [value, schema, isJsonMode]);
26953
+ const handleSwitchToFormMode = () => {
26954
+ if (isJsonMode) {
26955
+ try {
26956
+ const parsed = JSON.parse(rawJsonValue);
26957
+ onChange(parsed);
26958
+ setIsJsonMode(false);
26959
+ } catch (err) {
26960
+ setJsonError(err instanceof Error ? err.message : "Invalid JSON");
26770
26961
  }
26771
- default:
26772
- return null;
26962
+ } else {
26963
+ setRawJsonValue(
26964
+ JSON.stringify(value ?? generateDefaultValue(schema), null, 2)
26965
+ );
26966
+ setIsJsonMode(true);
26773
26967
  }
26774
26968
  };
26775
26969
  const renderFormFields = (propSchema, currentValue, path = [], depth = 0) => {
@@ -26798,18 +26992,64 @@ const DynamicJsonForm = ({
26798
26992
  }
26799
26993
  switch (propSchema.type) {
26800
26994
  case "string":
26995
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
26996
+ Input,
26997
+ {
26998
+ type: "text",
26999
+ value: currentValue ?? "",
27000
+ onChange: (e) => {
27001
+ const val = e.target.value;
27002
+ if (!val && !propSchema.required) {
27003
+ handleFieldChange(path, void 0);
27004
+ } else {
27005
+ handleFieldChange(path, val);
27006
+ }
27007
+ },
27008
+ placeholder: propSchema.description,
27009
+ required: propSchema.required
27010
+ }
27011
+ );
26801
27012
  case "number":
27013
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
27014
+ Input,
27015
+ {
27016
+ type: "number",
27017
+ value: (currentValue == null ? void 0 : currentValue.toString()) ?? "",
27018
+ onChange: (e) => {
27019
+ const val = e.target.value;
27020
+ if (!val && !propSchema.required) {
27021
+ handleFieldChange(path, void 0);
27022
+ } else {
27023
+ const num = Number(val);
27024
+ if (!isNaN(num)) {
27025
+ handleFieldChange(path, num);
27026
+ }
27027
+ }
27028
+ },
27029
+ placeholder: propSchema.description,
27030
+ required: propSchema.required
27031
+ }
27032
+ );
26802
27033
  case "integer":
26803
27034
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
26804
27035
  Input,
26805
27036
  {
26806
- type: propSchema.type === "string" ? "text" : "number",
26807
- value: currentValue ?? "",
26808
- onChange: (e) => handleFieldChange(
26809
- path,
26810
- propSchema.type === "string" ? e.target.value : Number(e.target.value)
26811
- ),
26812
- placeholder: propSchema.description
27037
+ type: "number",
27038
+ step: "1",
27039
+ value: (currentValue == null ? void 0 : currentValue.toString()) ?? "",
27040
+ onChange: (e) => {
27041
+ const val = e.target.value;
27042
+ if (!val && !propSchema.required) {
27043
+ handleFieldChange(path, void 0);
27044
+ } else {
27045
+ const num = Number(val);
27046
+ if (!isNaN(num) && Number.isInteger(num)) {
27047
+ handleFieldChange(path, num);
27048
+ }
27049
+ }
27050
+ },
27051
+ placeholder: propSchema.description,
27052
+ required: propSchema.required
26813
27053
  }
26814
27054
  );
26815
27055
  case "boolean":
@@ -26819,20 +27059,37 @@ const DynamicJsonForm = ({
26819
27059
  type: "checkbox",
26820
27060
  checked: currentValue ?? false,
26821
27061
  onChange: (e) => handleFieldChange(path, e.target.checked),
26822
- className: "w-4 h-4"
27062
+ className: "w-4 h-4",
27063
+ required: propSchema.required
26823
27064
  }
26824
27065
  );
26825
- case "object":
26826
- if (!propSchema.properties) return null;
26827
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-4 border rounded-md p-4", children: Object.entries(propSchema.properties).map(([key, prop]) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
26828
- /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: formatFieldLabel(key) }),
26829
- renderFormFields(
26830
- prop,
26831
- currentValue == null ? void 0 : currentValue[key],
26832
- [...path, key],
26833
- depth + 1
26834
- )
26835
- ] }, key)) });
27066
+ case "object": {
27067
+ const objectValue = currentValue || {};
27068
+ if (propSchema.properties) {
27069
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-4 border rounded-md p-4", children: Object.entries(propSchema.properties).map(([key, prop]) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
27070
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: formatFieldLabel(key) }),
27071
+ renderFormFields(
27072
+ prop,
27073
+ objectValue[key],
27074
+ [...path, key],
27075
+ depth + 1
27076
+ )
27077
+ ] }, key)) });
27078
+ } else if (Object.keys(objectValue).length > 0) {
27079
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-4 border rounded-md p-4", children: Object.entries(objectValue).map(([key, value2]) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
27080
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: formatFieldLabel(key) }),
27081
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
27082
+ Input,
27083
+ {
27084
+ type: "text",
27085
+ value: String(value2),
27086
+ onChange: (e) => handleFieldChange([...path, key], e.target.value)
27087
+ }
27088
+ )
27089
+ ] }, key)) });
27090
+ }
27091
+ return null;
27092
+ }
26836
27093
  case "array": {
26837
27094
  const arrayValue = Array.isArray(currentValue) ? currentValue : [];
26838
27095
  if (!propSchema.items) return null;
@@ -26870,9 +27127,12 @@ const DynamicJsonForm = ({
26870
27127
  variant: "outline",
26871
27128
  size: "sm",
26872
27129
  onClick: () => {
27130
+ const defaultValue = generateDefaultValue(
27131
+ propSchema.items
27132
+ );
26873
27133
  handleFieldChange(path, [
26874
27134
  ...arrayValue,
26875
- generateDefaultValue(propSchema.items)
27135
+ defaultValue ?? null
26876
27136
  ]);
26877
27137
  },
26878
27138
  title: ((_b = propSchema.items) == null ? void 0 : _b.description) ? `Add new ${propSchema.items.description}` : "Add new item",
@@ -26891,109 +27151,57 @@ const DynamicJsonForm = ({
26891
27151
  onChange(fieldValue);
26892
27152
  return;
26893
27153
  }
26894
- const updateArray = (array, path2, value2) => {
26895
- const [index2, ...restPath] = path2;
26896
- const arrayIndex = Number(index2);
26897
- if (isNaN(arrayIndex)) {
26898
- console.error(`Invalid array index: ${index2}`);
26899
- return array;
26900
- }
26901
- if (arrayIndex < 0) {
26902
- console.error(`Array index out of bounds: ${arrayIndex} < 0`);
26903
- return array;
26904
- }
26905
- const newArray = [...array];
26906
- if (restPath.length === 0) {
26907
- newArray[arrayIndex] = value2;
26908
- } else {
26909
- if (arrayIndex >= array.length) {
26910
- console.warn(`Extending array to index ${arrayIndex}`);
26911
- newArray.length = arrayIndex + 1;
26912
- newArray.fill(null, array.length, arrayIndex);
26913
- }
26914
- newArray[arrayIndex] = updateValue(
26915
- newArray[arrayIndex],
26916
- restPath,
26917
- value2
26918
- );
26919
- }
26920
- return newArray;
26921
- };
26922
- const updateObject = (obj, path2, value2) => {
26923
- const [key, ...restPath] = path2;
26924
- if (typeof key !== "string") {
26925
- console.error(`Invalid object key: ${key}`);
26926
- return obj;
26927
- }
26928
- const newObj = { ...obj };
26929
- if (restPath.length === 0) {
26930
- newObj[key] = value2;
26931
- } else {
26932
- if (!(key in newObj)) {
26933
- console.warn(`Creating new key in object: ${key}`);
26934
- newObj[key] = {};
26935
- }
26936
- newObj[key] = updateValue(newObj[key], restPath, value2);
26937
- }
26938
- return newObj;
26939
- };
26940
- const updateValue = (current, path2, value2) => {
26941
- if (path2.length === 0) return value2;
26942
- try {
26943
- if (!current) {
26944
- current = !isNaN(Number(path2[0])) ? [] : {};
26945
- }
26946
- if (Array.isArray(current)) {
26947
- return updateArray(current, path2, value2);
26948
- } else if (typeof current === "object" && current !== null) {
26949
- return updateObject(current, path2, value2);
26950
- } else {
26951
- console.error(
26952
- `Cannot update path ${path2.join(".")} in non-object/array value:`,
26953
- current
26954
- );
26955
- return current;
26956
- }
26957
- } catch (error) {
26958
- console.error(`Error updating value at path ${path2.join(".")}:`, error);
26959
- return current;
26960
- }
26961
- };
26962
27154
  try {
26963
- const newValue = updateValue(value, path, fieldValue);
27155
+ const newValue = updateValueAtPath(value, path, fieldValue);
26964
27156
  onChange(newValue);
26965
27157
  } catch (error) {
26966
27158
  console.error("Failed to update form value:", error);
26967
27159
  onChange(value);
26968
27160
  }
26969
27161
  };
27162
+ const shouldUseJsonMode = schema.type === "object" && (!schema.properties || Object.keys(schema.properties).length === 0);
27163
+ reactExports.useEffect(() => {
27164
+ if (shouldUseJsonMode && !isJsonMode) {
27165
+ setIsJsonMode(true);
27166
+ }
27167
+ }, [shouldUseJsonMode, isJsonMode]);
26970
27168
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-4", children: [
26971
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
26972
- Button,
26973
- {
26974
- variant: "outline",
26975
- size: "sm",
26976
- onClick: () => setIsJsonMode(!isJsonMode),
26977
- children: isJsonMode ? "Switch to Form" : "Switch to JSON"
26978
- }
26979
- ) }),
27169
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "outline", size: "sm", onClick: handleSwitchToFormMode, children: isJsonMode ? "Switch to Form" : "Switch to JSON" }) }),
26980
27170
  isJsonMode ? /* @__PURE__ */ jsxRuntimeExports.jsx(
26981
27171
  JsonEditor,
26982
27172
  {
26983
- value: JSON.stringify(value ?? generateDefaultValue(schema), null, 2),
27173
+ value: rawJsonValue,
26984
27174
  onChange: (newValue) => {
26985
- try {
26986
- onChange(JSON.parse(newValue));
26987
- setJsonError(void 0);
26988
- } catch (err) {
26989
- setJsonError(err instanceof Error ? err.message : "Invalid JSON");
26990
- }
27175
+ setRawJsonValue(newValue);
27176
+ debouncedUpdateParent(newValue);
26991
27177
  },
26992
27178
  error: jsonError
26993
27179
  }
26994
- ) : renderFormFields(schema, value)
27180
+ ) : (
27181
+ // If schema type is object but value is not an object or is empty, and we have actual JSON data,
27182
+ // render a simple representation of the JSON data
27183
+ schema.type === "object" && (typeof value !== "object" || value === null || Object.keys(value).length === 0) && rawJsonValue && rawJsonValue !== "{}" ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-4 border rounded-md p-4", children: [
27184
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm text-gray-500", children: "Form view not available for this JSON structure. Using simplified view:" }),
27185
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto", children: rawJsonValue }),
27186
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm text-gray-500", children: "Use JSON mode for full editing capabilities." })
27187
+ ] }) : renderFormFields(schema, value)
27188
+ )
26995
27189
  ] });
26996
27190
  };
27191
+ function escapeUnicode(obj) {
27192
+ return JSON.stringify(
27193
+ obj,
27194
+ (_key, value) => {
27195
+ if (typeof value === "string") {
27196
+ return value.replace(/[^\0-\x7F]/g, (char) => {
27197
+ return "\\u" + ("0000" + char.charCodeAt(0).toString(16)).slice(-4);
27198
+ });
27199
+ }
27200
+ return value;
27201
+ },
27202
+ 2
27203
+ );
27204
+ }
26997
27205
  const ToolsTab = ({
26998
27206
  tools,
26999
27207
  listTools,
@@ -27016,13 +27224,13 @@ const ToolsTab = ({
27016
27224
  if (!parsedResult.success) {
27017
27225
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
27018
27226
  /* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: "font-semibold mb-2", children: "Invalid Tool Result:" }),
27019
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto max-h-64", children: JSON.stringify(toolResult, null, 2) }),
27227
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto max-h-64", children: escapeUnicode(toolResult) }),
27020
27228
  /* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: "font-semibold mb-2", children: "Errors:" }),
27021
27229
  parsedResult.error.errors.map((error2, idx) => /* @__PURE__ */ jsxRuntimeExports.jsx(
27022
27230
  "pre",
27023
27231
  {
27024
27232
  className: "bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto max-h-64",
27025
- children: JSON.stringify(error2, null, 2)
27233
+ children: escapeUnicode(error2)
27026
27234
  },
27027
27235
  idx
27028
27236
  ))
@@ -27055,14 +27263,14 @@ const ToolsTab = ({
27055
27263
  className: "w-full",
27056
27264
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: "Your browser does not support audio playback" })
27057
27265
  }
27058
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "bg-gray-50 dark:bg-gray-800 dark:text-gray-100 whitespace-pre-wrap break-words p-4 rounded text-sm overflow-auto max-h-64", children: JSON.stringify(item.resource, null, 2) }))
27266
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "bg-gray-50 dark:bg-gray-800 dark:text-gray-100 whitespace-pre-wrap break-words p-4 rounded text-sm overflow-auto max-h-64", children: escapeUnicode(item.resource) }))
27059
27267
  ] }, index2);
27060
27268
  })
27061
27269
  ] });
27062
27270
  } else if ("toolResult" in toolResult) {
27063
27271
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
27064
27272
  /* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: "font-semibold mb-2", children: "Tool Result (Legacy):" }),
27065
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto max-h-64", children: JSON.stringify(toolResult.toolResult, null, 2) })
27273
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto max-h-64", children: escapeUnicode(toolResult.toolResult) })
27066
27274
  ] });
27067
27275
  }
27068
27276
  };
@@ -27149,7 +27357,7 @@ const ToolsTab = ({
27149
27357
  description: prop.description,
27150
27358
  items: prop.items
27151
27359
  },
27152
- value: params2[key] ?? {},
27360
+ value: params2[key] ?? generateDefaultValue(prop),
27153
27361
  onChange: (newValue) => {
27154
27362
  setParams({
27155
27363
  ...params2,
@@ -27164,6 +27372,7 @@ const ToolsTab = ({
27164
27372
  id: key,
27165
27373
  name: key,
27166
27374
  placeholder: prop.description,
27375
+ value: params2[key] ?? "",
27167
27376
  onChange: (e) => setParams({
27168
27377
  ...params2,
27169
27378
  [key]: prop.type === "number" ? Number(e.target.value) : e.target.value
@@ -27185,12 +27394,12 @@ const ToolsTab = ({
27185
27394
  };
27186
27395
  const params = new URLSearchParams(window.location.search);
27187
27396
  const PROXY_PORT = params.get("proxyPort") ?? "3000";
27188
- const PROXY_SERVER_URL = `http://localhost:${PROXY_PORT}`;
27397
+ const PROXY_SERVER_URL = `http://${window.location.hostname}:${PROXY_PORT}`;
27189
27398
  const App = () => {
27190
27399
  var _a;
27191
27400
  if (window.location.pathname === "/oauth/callback") {
27192
- const OAuthCallback = React$2.lazy(
27193
- () => __vitePreload(() => import("./OAuthCallback-KG5AbO62.js"), true ? [] : void 0)
27401
+ const OAuthCallback = React$1.lazy(
27402
+ () => __vitePreload(() => import("./OAuthCallback-C5xCfXlk.js"), true ? [] : void 0)
27194
27403
  );
27195
27404
  return /* @__PURE__ */ jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(OAuthCallback, {}) });
27196
27405
  }
@@ -27218,6 +27427,7 @@ const App = () => {
27218
27427
  const [transportType, setTransportType] = reactExports.useState(() => {
27219
27428
  return localStorage.getItem("lastTransportType") || "stdio";
27220
27429
  });
27430
+ const [logLevel, setLogLevel] = reactExports.useState("debug");
27221
27431
  const [notifications, setNotifications] = reactExports.useState([]);
27222
27432
  const [stdErrNotifications, setStdErrNotifications] = reactExports.useState([]);
27223
27433
  const [roots, setRoots] = reactExports.useState([]);
@@ -27312,7 +27522,7 @@ const App = () => {
27312
27522
  const newUrl = new URL(window.location.href);
27313
27523
  newUrl.searchParams.delete("serverUrl");
27314
27524
  window.history.replaceState({}, "", newUrl.toString());
27315
- B$1.success("Successfully authenticated with OAuth");
27525
+ B$2.success("Successfully authenticated with OAuth");
27316
27526
  connectMcpServer();
27317
27527
  }
27318
27528
  }, []);
@@ -27437,11 +27647,11 @@ const App = () => {
27437
27647
  setPrompts(response.prompts);
27438
27648
  setNextPromptCursor(response.nextCursor);
27439
27649
  };
27440
- const getPrompt = async (name, args2 = {}) => {
27650
+ const getPrompt = async (name2, args2 = {}) => {
27441
27651
  const response = await makeRequest(
27442
27652
  {
27443
27653
  method: "prompts/get",
27444
- params: { name, arguments: args2 }
27654
+ params: { name: name2, arguments: args2 }
27445
27655
  },
27446
27656
  GetPromptResultSchema,
27447
27657
  "prompts"
@@ -27460,12 +27670,12 @@ const App = () => {
27460
27670
  setTools(response.tools);
27461
27671
  setNextToolCursor(response.nextCursor);
27462
27672
  };
27463
- const callTool = async (name, params2) => {
27673
+ const callTool = async (name2, params2) => {
27464
27674
  const response = await makeRequest(
27465
27675
  {
27466
27676
  method: "tools/call",
27467
27677
  params: {
27468
- name,
27678
+ name: name2,
27469
27679
  arguments: params2,
27470
27680
  _meta: {
27471
27681
  progressToken: progressTokenRef.current++
@@ -27480,6 +27690,16 @@ const App = () => {
27480
27690
  const handleRootsChange = async () => {
27481
27691
  await sendNotification({ method: "notifications/roots/list_changed" });
27482
27692
  };
27693
+ const sendLogLevelRequest = async (level) => {
27694
+ await makeRequest(
27695
+ {
27696
+ method: "logging/setLevel",
27697
+ params: { level }
27698
+ },
27699
+ z.object({})
27700
+ );
27701
+ setLogLevel(level);
27702
+ };
27483
27703
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-screen bg-background", children: [
27484
27704
  /* @__PURE__ */ jsxRuntimeExports.jsx(
27485
27705
  Sidebar,
@@ -27498,7 +27718,10 @@ const App = () => {
27498
27718
  bearerToken,
27499
27719
  setBearerToken,
27500
27720
  onConnect: connectMcpServer,
27501
- stdErrNotifications
27721
+ stdErrNotifications,
27722
+ logLevel,
27723
+ sendLogLevelRequest,
27724
+ loggingSupported: !!(serverCapabilities == null ? void 0 : serverCapabilities.logging) || false
27502
27725
  }
27503
27726
  ),
27504
27727
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col overflow-hidden", children: [
@@ -27620,9 +27843,9 @@ const App = () => {
27620
27843
  setPrompts([]);
27621
27844
  setNextPromptCursor(void 0);
27622
27845
  },
27623
- getPrompt: (name, args2) => {
27846
+ getPrompt: (name2, args2) => {
27624
27847
  clearError("prompts");
27625
- getPrompt(name, args2);
27848
+ getPrompt(name2, args2);
27626
27849
  },
27627
27850
  selectedPrompt,
27628
27851
  setSelectedPrompt: (prompt) => {
@@ -27648,9 +27871,9 @@ const App = () => {
27648
27871
  setTools([]);
27649
27872
  setNextToolCursor(void 0);
27650
27873
  },
27651
- callTool: (name, params2) => {
27874
+ callTool: (name2, params2) => {
27652
27875
  clearError("tools");
27653
- callTool(name, params2);
27876
+ callTool(name2, params2);
27654
27877
  },
27655
27878
  selectedTool,
27656
27879
  setSelectedTool: (tool) => {
@@ -27729,7 +27952,7 @@ const App = () => {
27729
27952
  createRoot(document.getElementById("root")).render(
27730
27953
  /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.StrictMode, { children: [
27731
27954
  /* @__PURE__ */ jsxRuntimeExports.jsx(App, {}),
27732
- /* @__PURE__ */ jsxRuntimeExports.jsx(Q$1, {})
27955
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Q, {})
27733
27956
  ] })
27734
27957
  );
27735
27958
  export {