@mcp-use/inspector 20.0.0-beta.0 → 20.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/README.md +5 -0
  2. package/dist/cdn/{AnimatePresence-B4HhIdgq.js → AnimatePresence-Dcw-FOy8.js} +50 -50
  3. package/dist/cdn/ChatTab-DBl6dHVH.js +6744 -0
  4. package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-Bt4IICtv.js} +77 -77
  5. package/dist/cdn/{ConnectionSettingsForm-iwNW86ZU.js → ConnectionSettingsForm-BFsZpwK4.js} +348 -292
  6. package/dist/cdn/ConnectionSettingsTab-DDk06dhT.js +150 -0
  7. package/dist/cdn/{ElicitationTab-upPXq2q7.js → ElicitationTab-CL1KJ0bz.js} +39 -39
  8. package/dist/cdn/{FormContext-Cl51-7O7.js → FormContext-tmgN_Vdr.js} +1 -1
  9. package/dist/cdn/{InspectorContext-DzXtgyTx.js → InspectorContext-UjtEbNod.js} +1 -21
  10. package/dist/cdn/{JSONDisplay-D3RcyO9z.js → JSONDisplay-BFxf5oEu.js} +18 -18
  11. package/dist/cdn/{ListTabHeader-8lULn-90.js → ListTabHeader-Cv-GmtGF.js} +19 -19
  12. package/dist/cdn/{ManufactOAuthCallback-DEM8mhWD.js → ManufactOAuthCallback-B98kSYCj.js} +1 -1
  13. package/dist/cdn/MarkdownRenderer-DQflNTGo.js +3610 -0
  14. package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-CeImSrhx.js} +13 -13
  15. package/dist/cdn/{OAuthCallback-BxuOVgdb.js → OAuthCallback-C4n2hqKU.js} +1 -1
  16. package/dist/cdn/PromptsTab-C84YLTSM.js +901 -0
  17. package/dist/cdn/{ResourcesTab-BczUMFil.js → ResourcesTab-CCa5bIHE.js} +35 -55
  18. package/dist/cdn/{SamplingTab-6u5s845G.js → SamplingTab-Bt9z8yQ2.js} +35 -35
  19. package/dist/cdn/{ServerMetadataTab-DS0eiyyD.js → ServerMetadataTab-CvrKX8fz.js} +12 -12
  20. package/dist/cdn/{StatusIcon-BGXOEU2u.js → StatusIcon-D0-ARyOh.js} +6 -6
  21. package/dist/cdn/{ToolsTab-CUhwP4rZ.js → ToolsTab-v9zgWmM6.js} +103 -137
  22. package/dist/cdn/{ViewPreview-CxJc1Kht.js → ViewPreview-DsPwZAwO.js} +2 -2
  23. package/dist/cdn/{WidgetWrapper-BJJtLqMb.js → WidgetWrapper-CwlpDv17.js} +529 -530
  24. package/dist/cdn/card-DgiYnSg-.js +41 -0
  25. package/dist/cdn/{checkbox-B4oUG6Rr.js → checkbox-By0FklhG.js} +6 -6
  26. package/dist/cdn/{dialog-Dnl-pZsY.js → dialog-BsDpuJd3.js} +151 -151
  27. package/dist/cdn/{dist-mRDqCgKU.js → dist-B0eL32Gb.js} +114 -113
  28. package/dist/cdn/{dist-DjXr_YO3.js → dist-DaMB0Su9.js} +1 -1
  29. package/dist/cdn/{index-browser-CVUwR-Bu.js → index-browser-QDjRGsPo.js} +1 -1
  30. package/dist/cdn/{input-BLxOA7V-.js → input-C2OBd4PJ.js} +4787 -2842
  31. package/dist/cdn/inspector.css +1 -1
  32. package/dist/cdn/inspector.js +7424 -7443
  33. package/dist/cdn/{label-CBvG613A.js → label-B9Jmm9be.js} +10 -10
  34. package/dist/cdn/{manufact-auth-0TVxpeTA.js → manufact-auth-BQMHhbLV.js} +142 -106
  35. package/dist/cdn/{not-found-BcNNsTjS.js → not-found-DEtSM_Wd.js} +7 -7
  36. package/dist/cdn/providerMeta-BQIfHuNL.js +379 -0
  37. package/dist/cdn/{react-yUi9mVK4.js → react-Dn8PWXwP.js} +33 -27
  38. package/dist/cdn/{select-BZ_IoKxg.js → select-DDdiIPR2.js} +726 -726
  39. package/dist/cdn/{shared-uMiV6Fx1.js → shared-DaILIQPP.js} +29 -29
  40. package/dist/cdn/{popover-C_SSrXT0.js → sheet-Br_l2kry.js} +694 -622
  41. package/dist/cdn/{spinner-CWcJhIY_.js → spinner-jQtC7EBj.js} +5 -5
  42. package/dist/cdn/{switch-DtQOLb9R.js → switch-C3IyQuid.js} +104 -104
  43. package/dist/cdn/{tabs-subtle-C5cy35sY.js → tabs-subtle-CkdI6Mac.js} +147 -147
  44. package/dist/cdn/{telemetry-Ct6pVkM1.js → telemetry-DGoIGfIS.js} +3 -3
  45. package/dist/cdn/{textarea-Bj-CT7hC.js → textarea-DSbwcFVt.js} +6 -6
  46. package/dist/cdn/{useAriaLabelledBy-Bm9qHGK6.js → useAriaLabelledBy-DqAdnppm.js} +1 -1
  47. package/dist/cdn/{useCompositeItem-CNJ6MXdi.js → useCompositeItem-BRqEzYh-.js} +2 -2
  48. package/dist/cdn/{useConfig-CwxZ6Quj.js → useConfig-CTb6GZbt.js} +73 -46
  49. package/dist/cdn/{useViewHostProps-C7vjco2m.js → useViewHostProps-DIIlz3tJ.js} +1 -1
  50. package/dist/cli.js +141 -25
  51. package/dist/client/auth/manufact-auth.d.ts +3 -1
  52. package/dist/client/auth/manufact-auth.d.ts.map +1 -1
  53. package/dist/client/components/ChatTab.d.ts +1 -8
  54. package/dist/client/components/ChatTab.d.ts.map +1 -1
  55. package/dist/client/components/ResourcesTab.d.ts.map +1 -1
  56. package/dist/client/components/chat/ChatHeader.d.ts +7 -2
  57. package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
  58. package/dist/client/components/chat/ChatLandingForm.d.ts +4 -2
  59. package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
  60. package/dist/client/components/chat/ChatManagedNotice.d.ts +10 -0
  61. package/dist/client/components/chat/ChatManagedNotice.d.ts.map +1 -0
  62. package/dist/client/components/chat/ChatScrollTopFade.d.ts +7 -0
  63. package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +1 -0
  64. package/dist/client/components/chat/ConfigurationDialog.d.ts +11 -9
  65. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
  66. package/dist/client/components/chat/ConfigureEmptyState.d.ts +1 -6
  67. package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
  68. package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -1
  69. package/dist/client/components/chat/chatModeStorage.d.ts +11 -0
  70. package/dist/client/components/chat/chatModeStorage.d.ts.map +1 -0
  71. package/dist/client/components/chat/managedChatNotice.d.ts +16 -0
  72. package/dist/client/components/chat/managedChatNotice.d.ts.map +1 -0
  73. package/dist/client/components/chat/providerMeta.d.ts +11 -0
  74. package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
  75. package/dist/client/components/chat/useChatMessages.d.ts +7 -5
  76. package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
  77. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +4 -6
  78. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
  79. package/dist/client/components/chat/useChatScrollToBottom.d.ts +1 -0
  80. package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -1
  81. package/dist/client/components/chat/useConfig.d.ts +1 -1
  82. package/dist/client/components/chat/useConfig.d.ts.map +1 -1
  83. package/dist/client/components/chat/useHostedChatMode.d.ts +1 -1
  84. package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -1
  85. package/dist/client/components/shared/MarkdownRenderer.d.ts +2 -1
  86. package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
  87. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
  88. package/dist/client/components/ui/MeshGradientCanvas.d.ts +13 -0
  89. package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -0
  90. package/dist/client/components/ui/chat-message.d.ts +1 -1
  91. package/dist/client/components/ui/chat-message.d.ts.map +1 -1
  92. package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -1
  93. package/dist/client/components/ui/mesh-tab-background.d.ts +3 -1
  94. package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
  95. package/dist/client/context/InspectorContext.d.ts.map +1 -1
  96. package/dist/client/index.js +2577 -2165
  97. package/dist/client/telemetry/utils.d.ts.map +1 -1
  98. package/dist/server/asset-urls.d.ts +18 -0
  99. package/dist/server/asset-urls.d.ts.map +1 -0
  100. package/dist/server/asset-urls.js +17 -0
  101. package/dist/server/cdn-shell.d.ts +3 -3
  102. package/dist/server/cdn-shell.d.ts.map +1 -1
  103. package/dist/server/cdn-shell.js +5 -3
  104. package/dist/server/chunk-H6ZCIKBS.js +63 -0
  105. package/dist/server/{chunk-ESODOPDD.js → chunk-J4FNYLBF.js} +4 -0
  106. package/dist/server/{chunk-TPHRVELX.js → chunk-K2DPKTIS.js} +27 -9
  107. package/dist/server/{chunk-THQ67TSE.js → chunk-LIM6NAUS.js} +2 -9
  108. package/dist/server/chunk-M5TZA42I.js +54 -0
  109. package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
  110. package/dist/server/{chunk-J67FVPHF.js → chunk-R6RQMIXL.js} +2 -2
  111. package/dist/server/{chunk-5B3SXGZP.js → chunk-UJLXHNQP.js} +1 -1
  112. package/dist/server/{chunk-6XWDZEFF.js → chunk-XCNS5CIW.js} +8 -3
  113. package/dist/server/cli.js +8 -6
  114. package/dist/server/create-dev-api-app.js +3 -3
  115. package/dist/server/dev-callback-redirect.d.ts +3 -0
  116. package/dist/server/dev-callback-redirect.d.ts.map +1 -0
  117. package/dist/server/dev-callback-redirect.js +18 -0
  118. package/dist/server/favicon-static.d.ts.map +1 -1
  119. package/dist/server/favicon-static.js +1 -1
  120. package/dist/server/index.js +9 -7
  121. package/dist/server/middleware.js +9 -7
  122. package/dist/server/proxy/index.js +1 -1
  123. package/dist/server/proxy/mcp-proxy.d.ts +2 -0
  124. package/dist/server/proxy/mcp-proxy.d.ts.map +1 -1
  125. package/dist/server/proxy/mcp-proxy.js +3 -1
  126. package/dist/server/proxy-routes.js +2 -2
  127. package/dist/server/server.js +3 -3
  128. package/dist/server/static-assets.d.ts +5 -0
  129. package/dist/server/static-assets.d.ts.map +1 -0
  130. package/dist/server/static-assets.js +9 -0
  131. package/dist/server/version.js +1 -1
  132. package/dist/server/vite-dev-api-plugin.js +3 -3
  133. package/dist/web/assets/{AnimatePresence-CthXziG2.js → AnimatePresence-C5p0yiY1.js} +2 -2
  134. package/dist/web/assets/ChatTab-C2FtENBM.js +18 -0
  135. package/dist/web/assets/ConnectionSettingsTab-B2sUjytG.js +1 -0
  136. package/dist/web/assets/ElicitationTab-DwH08kDC.js +1 -0
  137. package/dist/web/assets/{FormContext-Cqc_A12u.js → FormContext-DH2caWKO.js} +1 -1
  138. package/dist/web/assets/ListTabHeader-R17w_JsB.js +1 -0
  139. package/dist/web/assets/{ManufactOAuthCallback-B-tdkUA2.js → ManufactOAuthCallback-Btu4B6u6.js} +1 -1
  140. package/dist/web/assets/MarkdownRenderer-DpIEt9wb.js +47 -0
  141. package/dist/web/assets/{NotificationsTab-BgLjxuos.js → NotificationsTab-CHB8mtSz.js} +1 -1
  142. package/dist/web/assets/{OAuthCallback-Bp-jLoQs.js → OAuthCallback-DV4MgX4Z.js} +1 -1
  143. package/dist/web/assets/PromptsTab-0GIapoSs.js +15 -0
  144. package/dist/web/assets/ResourcesTab-N9xjsI_b.js +2 -0
  145. package/dist/web/assets/SamplingTab-Dw0vpi4t.js +1 -0
  146. package/dist/web/assets/ServerMetadataTab-D-eQpLBF.js +1 -0
  147. package/dist/web/assets/ToolsTab-BMrMJ5JV.js +8 -0
  148. package/dist/web/assets/ViewPreview-N_cpEO0W.js +1 -0
  149. package/dist/web/assets/WidgetWrapper-pDgNVq9y.js +34 -0
  150. package/dist/web/assets/checkbox-CrnXSMh2.js +1 -0
  151. package/dist/web/assets/dist-CeWSydFI.js +21 -0
  152. package/dist/web/assets/index-Cfuv_gb3.js +475 -0
  153. package/dist/web/assets/index-fBX3akc8.css +1 -0
  154. package/dist/web/assets/input-CLYhA7PK.js +1 -0
  155. package/dist/web/assets/{label-B5Q_Zr8M.js → label-Cdim77Jw.js} +1 -1
  156. package/dist/web/assets/select-CJ57-Bor.js +1 -0
  157. package/dist/web/assets/shared-B1GD9FMm.js +1 -0
  158. package/dist/web/assets/{tabs-subtle-Dxgism9f.js → tabs-subtle-CG5cjC_N.js} +1 -1
  159. package/dist/web/assets/textarea-DLAmNVf_.js +1 -0
  160. package/dist/web/assets/useConfig-BTp15Lle.js +1 -0
  161. package/dist/web/assets/{useViewHostProps-BgsQ2yYl.js → useViewHostProps-BQlaFC2Q.js} +1 -1
  162. package/dist/web/index.html +8 -9
  163. package/package.json +5 -12
  164. package/dist/cdn/ChatTab-5ya_YTFV.js +0 -13218
  165. package/dist/cdn/ConnectionSettingsTab-CeK83dxn.js +0 -145
  166. package/dist/cdn/PromptsTab-Cspfnl6n.js +0 -4400
  167. package/dist/cdn/bundle-mjs-B0nmHDtp.js +0 -1953
  168. package/dist/cdn/card-DqjqAq0o.js +0 -41
  169. package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +0 -17500
  170. package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +0 -36
  171. package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +0 -2
  172. package/dist/cdn/pdf-CxFT9FER.js +0 -16291
  173. package/dist/cdn/sheet-CerCdhxz.js +0 -78
  174. package/dist/cdn/useHostedSession-BA39Aegc.js +0 -153
  175. package/dist/cdn/useMCPPrompts-D3_Hla_z.js +0 -104
  176. package/dist/client/components/chat/streamdown-code-slim.d.ts +0 -4
  177. package/dist/client/components/chat/streamdown-code-slim.d.ts.map +0 -1
  178. package/dist/web/assets/ChatTab-CiAqtqhj.js +0 -460
  179. package/dist/web/assets/ConnectionSettingsTab-CTh6MFKE.js +0 -1
  180. package/dist/web/assets/ElicitationTab-B3Eg0_Jm.js +0 -1
  181. package/dist/web/assets/ListTabHeader-G-nQX18m.js +0 -1
  182. package/dist/web/assets/PromptsTab-CA-SZs43.js +0 -61
  183. package/dist/web/assets/ResourcesTab-DdMIW_af.js +0 -2
  184. package/dist/web/assets/SamplingTab-DjyDG01W.js +0 -1
  185. package/dist/web/assets/ServerMetadataTab-Q4PlqP_B.js +0 -1
  186. package/dist/web/assets/ToolsTab-BHk8GCmd.js +0 -8
  187. package/dist/web/assets/ViewPreview-DWtmwzCb.js +0 -1
  188. package/dist/web/assets/WidgetWrapper-B43lqbld.js +0 -34
  189. package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
  190. package/dist/web/assets/checkbox-_GzEPQic.js +0 -1
  191. package/dist/web/assets/chunk-BO2N2NFS-BdIeB5Lr.js +0 -131
  192. package/dist/web/assets/dist-DQjEDTKs.js +0 -21
  193. package/dist/web/assets/highlighted-body-OFNGDK62-Dp3e1QHL.js +0 -1
  194. package/dist/web/assets/index-Bbn-6QR2.js +0 -475
  195. package/dist/web/assets/index-BjH-Qp85.css +0 -1
  196. package/dist/web/assets/input-CjmxOFr6.js +0 -1
  197. package/dist/web/assets/mermaid-GHXKKRXX-yq1lkD3x.js +0 -1
  198. package/dist/web/assets/pdf-C3cfS_Ha.js +0 -54
  199. package/dist/web/assets/select-C0xlfLAa.js +0 -1
  200. package/dist/web/assets/shared-Dfwy7nyg.js +0 -1
  201. package/dist/web/assets/sheet-CRPrEqAa.js +0 -1
  202. package/dist/web/assets/textarea-Ci09-en6.js +0 -1
  203. package/dist/web/assets/useConfig-b1f_iVFH.js +0 -1
  204. package/dist/web/assets/useMCPPrompts-CPskz9af.js +0 -1
package/README.md CHANGED
@@ -138,6 +138,11 @@ process after changing `MCP_USE_INSPECTOR_ASSETS_URL`, because the shell HTML
138
138
  is generated when the server mounts. An explicit `inspector.assetsUrl`
139
139
  constructor option takes precedence over the environment variable.
140
140
 
141
+ When the shell loads the default jsDelivr `@beta` CDN bundle, each page
142
+ response appends a random `?cb=` query param to the script and stylesheet URLs
143
+ so browsers fetch a fresh entry after a new Inspector publish. Self-hosted and
144
+ env overrides are not cache-busted.
145
+
141
146
  ---
142
147
 
143
148
  ## 📖 Usage Guide
@@ -1,6 +1,6 @@
1
1
  import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { t as n } from "./jsx-runtime-CIxvMpEo.js";
3
- import { Ar as r, C as i, H as a, Sr as o, Tr as s, U as c, V as l, W as u, m as d, p as f, wr as p } from "./input-BLxOA7V-.js";
2
+ import { Ar as n, C as r, H as i, Sr as a, Tr as o, U as s, V as c, W as l, m as u, p as d, wr as f } from "./input-C2OBd4PJ.js";
3
+ import { t as p } from "./jsx-runtime-CIxvMpEo.js";
4
4
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/composite/list/CompositeListContext.mjs
5
5
  var m = /* @__PURE__ */ e(t(), 1), h = /*#__PURE__*/ m.createContext({
6
6
  register: () => {},
@@ -19,7 +19,7 @@ var _ = /*#__PURE__*/ function(e) {
19
19
  return e[e.None = 0] = "None", e[e.GuessFromOrder = 1] = "GuessFromOrder", e;
20
20
  }({});
21
21
  function v(e = {}) {
22
- let { label: t, metadata: n, textRef: r, indexGuessBehavior: i, index: a } = e, { register: s, unregister: c, subscribeMapChange: l, elementsRef: u, labelsRef: d, nextIndexRef: f } = g(), p = m.useRef(-1), [h, v] = m.useState(a ?? (i === _.GuessFromOrder ? () => {
22
+ let { label: t, metadata: n, textRef: r, indexGuessBehavior: i, index: o } = e, { register: s, unregister: c, subscribeMapChange: l, elementsRef: u, labelsRef: d, nextIndexRef: f } = g(), p = m.useRef(-1), [h, v] = m.useState(o ?? (i === _.GuessFromOrder ? () => {
23
23
  if (p.current === -1) {
24
24
  let e = f.current;
25
25
  f.current += 1, p.current = e;
@@ -37,24 +37,24 @@ function v(e = {}) {
37
37
  t,
38
38
  r
39
39
  ]);
40
- return o(() => {
41
- if (a != null) return;
40
+ return a(() => {
41
+ if (o != null) return;
42
42
  let e = y.current;
43
43
  if (e) return s(e, n), () => {
44
44
  c(e);
45
45
  };
46
46
  }, [
47
- a,
47
+ o,
48
48
  s,
49
49
  c,
50
50
  n
51
- ]), o(() => {
52
- if (a == null) return l((e) => {
51
+ ]), a(() => {
52
+ if (o == null) return l((e) => {
53
53
  let t = y.current ? e.get(y.current)?.index : null;
54
54
  t != null && v(t);
55
55
  });
56
56
  }, [
57
- a,
57
+ o,
58
58
  l,
59
59
  v
60
60
  ]), {
@@ -85,10 +85,10 @@ var y = "ArrowUp", b = "ArrowDown", x = "ArrowLeft", S = "ArrowRight", C = "Home
85
85
  "Meta"
86
86
  ]);
87
87
  function M(e) {
88
- return r(e) && e.tagName === "INPUT";
88
+ return n(e) && e.tagName === "INPUT";
89
89
  }
90
90
  function N(e) {
91
- return !!(M(e) && e.selectionStart != null || r(e) && e.tagName === "TEXTAREA");
91
+ return !!(M(e) && e.selectionStart != null || n(e) && e.tagName === "TEXTAREA");
92
92
  }
93
93
  function P(e, t, n, r) {
94
94
  if (!e || !t || !t.scrollTo) return;
@@ -127,12 +127,12 @@ function I(e) {
127
127
  }
128
128
  //#endregion
129
129
  //#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs
130
- var L = n();
130
+ var L = p();
131
131
  function R(e) {
132
- let { children: t, elementsRef: n, labelsRef: r, onMapChange: i } = e, a = p(i), c = m.useRef(0), l = s(B).current, u = s(z).current, [d, f] = m.useState(0), g = m.useRef(d), _ = p((e, t) => {
133
- u.set(e, t ?? null), g.current += 1, f(g.current);
134
- }), v = p((e) => {
135
- u.delete(e), g.current += 1, f(g.current);
132
+ let { children: t, elementsRef: n, labelsRef: r, onMapChange: i } = e, s = f(i), c = m.useRef(0), l = o(B).current, u = o(z).current, [d, p] = m.useState(0), g = m.useRef(d), _ = f((e, t) => {
133
+ u.set(e, t ?? null), g.current += 1, p(g.current);
134
+ }), v = f((e) => {
135
+ u.delete(e), g.current += 1, p(g.current);
136
136
  }), y = m.useMemo(() => {
137
137
  let e = /* @__PURE__ */ new Map();
138
138
  return Array.from(u.keys()).filter((e) => e.isConnected).sort(V).forEach((t, n) => {
@@ -143,36 +143,36 @@ function R(e) {
143
143
  });
144
144
  }), e;
145
145
  }, [u, d]);
146
- o(() => {
146
+ a(() => {
147
147
  if (typeof MutationObserver != "function" || y.size === 0) return;
148
148
  let e = new MutationObserver((e) => {
149
149
  let t = /* @__PURE__ */ new Set(), n = (e) => t.has(e) ? t.delete(e) : t.add(e);
150
150
  e.forEach((e) => {
151
151
  e.removedNodes.forEach(n), e.addedNodes.forEach(n);
152
- }), t.size === 0 && (g.current += 1, f(g.current));
152
+ }), t.size === 0 && (g.current += 1, p(g.current));
153
153
  });
154
154
  return y.forEach((t, n) => {
155
155
  n.parentElement && e.observe(n.parentElement, { childList: !0 });
156
156
  }), () => {
157
157
  e.disconnect();
158
158
  };
159
- }, [y]), o(() => {
160
- g.current === d && (n.current.length !== y.size && (n.current.length = y.size), r && r.current.length !== y.size && (r.current.length = y.size), c.current = y.size), a(y);
159
+ }, [y]), a(() => {
160
+ g.current === d && (n.current.length !== y.size && (n.current.length = y.size), r && r.current.length !== y.size && (r.current.length = y.size), c.current = y.size), s(y);
161
161
  }, [
162
- a,
162
+ s,
163
163
  y,
164
164
  n,
165
165
  r,
166
166
  d
167
- ]), o(() => () => {
167
+ ]), a(() => () => {
168
168
  n.current = [];
169
- }, [n]), o(() => () => {
169
+ }, [n]), a(() => () => {
170
170
  r && (r.current = []);
171
171
  }, [r]);
172
- let b = p((e) => (l.add(e), () => {
172
+ let b = f((e) => (l.add(e), () => {
173
173
  l.delete(e);
174
174
  }));
175
- o(() => {
175
+ a(() => {
176
176
  l.forEach((e) => e(y));
177
177
  }, [l, y]);
178
178
  let x = m.useMemo(() => ({
@@ -238,9 +238,9 @@ function G(...e) {
238
238
  var K = class extends m.Component {
239
239
  getSnapshotBeforeUpdate(e) {
240
240
  let t = this.props.childRef.current;
241
- if (i(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
242
- let e = t.offsetParent, n = i(e) && e.offsetWidth || 0, r = i(e) && e.offsetHeight || 0, a = getComputedStyle(t), o = this.props.sizeRef.current;
243
- o.height = parseFloat(a.height), o.width = parseFloat(a.width), o.top = t.offsetTop, o.left = t.offsetLeft, o.right = n - o.width - o.left, o.bottom = r - o.height - o.top, o.direction = a.direction;
241
+ if (r(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
242
+ let e = t.offsetParent, n = r(e) && e.offsetWidth || 0, i = r(e) && e.offsetHeight || 0, a = getComputedStyle(t), o = this.props.sizeRef.current;
243
+ o.height = parseFloat(a.height), o.width = parseFloat(a.width), o.top = t.offsetTop, o.left = t.offsetLeft, o.right = n - o.width - o.left, o.bottom = i - o.height - o.top, o.direction = a.direction;
244
244
  }
245
245
  return null;
246
246
  }
@@ -258,7 +258,7 @@ function q({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
258
258
  right: 0,
259
259
  bottom: 0,
260
260
  direction: "ltr"
261
- }), { nonce: l } = (0, m.useContext)(d), u = G(s, e.props?.ref ?? e?.ref);
261
+ }), { nonce: l } = (0, m.useContext)(u), d = G(s, e.props?.ref ?? e?.ref);
262
262
  return (0, m.useInsertionEffect)(() => {
263
263
  let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
264
264
  if (t || a === !1 || !s.current || !e || !u) return;
@@ -283,21 +283,21 @@ function q({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
283
283
  childRef: s,
284
284
  sizeRef: c,
285
285
  pop: a,
286
- children: a === !1 ? e : m.cloneElement(e, { ref: u })
286
+ children: a === !1 ? e : m.cloneElement(e, { ref: d })
287
287
  });
288
288
  }
289
289
  //#endregion
290
290
  //#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
291
- var J = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: o, mode: s, anchorX: u, anchorY: d, root: f }) => {
292
- let p = c(Y), h = (0, m.useId)(), g = (0, m.useRef)(n), _ = (0, m.useRef)(r);
293
- a(() => {
291
+ var J = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: a, presenceAffectsLayout: o, mode: l, anchorX: u, anchorY: d, root: f }) => {
292
+ let p = s(Y), h = (0, m.useId)(), g = (0, m.useRef)(n), _ = (0, m.useRef)(r);
293
+ i(() => {
294
294
  g.current = n, _.current = r;
295
295
  });
296
296
  let v = !0, y = (0, m.useMemo)(() => (v = !1, {
297
297
  id: h,
298
298
  initial: t,
299
299
  isPresent: n,
300
- custom: i,
300
+ custom: a,
301
301
  onExitComplete: (e) => {
302
302
  p.set(e, !0);
303
303
  for (let e of p.values()) if (!e) return;
@@ -316,13 +316,13 @@ var J = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i,
316
316
  }, [n]), m.useEffect(() => {
317
317
  !n && !p.size && r && r();
318
318
  }, [n]), e = (0, L.jsx)(q, {
319
- pop: s === "popLayout",
319
+ pop: l === "popLayout",
320
320
  isPresent: n,
321
321
  anchorX: u,
322
322
  anchorY: d,
323
323
  root: f,
324
324
  children: e
325
- }), (0, L.jsx)(l.Provider, {
325
+ }), (0, L.jsx)(c.Provider, {
326
326
  value: y,
327
327
  children: e
328
328
  });
@@ -341,9 +341,9 @@ function Z(e) {
341
341
  }
342
342
  //#endregion
343
343
  //#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
344
- var Q = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: s = !1, anchorX: l = "left", anchorY: d = "top", root: p }) => {
345
- let [h, g] = f(s), _ = (0, m.useMemo)(() => Z(e), [e]), v = s && !h ? [] : _.map(X), y = (0, m.useRef)(!0), b = (0, m.useRef)(_), x = c(() => /* @__PURE__ */ new Map()), S = (0, m.useRef)(/* @__PURE__ */ new Set()), [C, w] = (0, m.useState)(_), [T, E] = (0, m.useState)(_);
346
- a(() => {
344
+ var Q = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: a = !0, mode: o = "sync", propagate: c = !1, anchorX: u = "left", anchorY: f = "top", root: p }) => {
345
+ let [h, g] = d(c), _ = (0, m.useMemo)(() => Z(e), [e]), v = c && !h ? [] : _.map(X), y = (0, m.useRef)(!0), b = (0, m.useRef)(_), x = s(() => /* @__PURE__ */ new Map()), S = (0, m.useRef)(/* @__PURE__ */ new Set()), [C, w] = (0, m.useState)(_), [T, E] = (0, m.useState)(_);
346
+ i(() => {
347
347
  y.current = !1, b.current = _;
348
348
  for (let e = 0; e < T.length; e++) {
349
349
  let t = X(T[e]);
@@ -364,29 +364,29 @@ var Q = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceA
364
364
  return o === "wait" && D.length && (e = D), E(Z(e)), w(_), null;
365
365
  }
366
366
  process.env.NODE_ENV !== "production" && o === "wait" && T.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.");
367
- let { forceRender: O } = (0, m.useContext)(u);
367
+ let { forceRender: O } = (0, m.useContext)(l);
368
368
  return (0, L.jsx)(L.Fragment, { children: T.map((e) => {
369
- let a = X(e), c = s && !h ? !1 : _ === T || v.includes(a);
369
+ let i = X(e), s = c && !h ? !1 : _ === T || v.includes(i);
370
370
  return (0, L.jsx)(J, {
371
- isPresent: c,
371
+ isPresent: s,
372
372
  initial: !y.current || n ? void 0 : !1,
373
373
  custom: t,
374
- presenceAffectsLayout: i,
374
+ presenceAffectsLayout: a,
375
375
  mode: o,
376
376
  root: p,
377
- onExitComplete: c ? void 0 : () => {
378
- if (S.current.has(a)) return;
379
- if (x.has(a)) S.current.add(a), x.set(a, !0);
377
+ onExitComplete: s ? void 0 : () => {
378
+ if (S.current.has(i)) return;
379
+ if (x.has(i)) S.current.add(i), x.set(i, !0);
380
380
  else return;
381
381
  let e = !0;
382
382
  x.forEach((t) => {
383
383
  t || (e = !1);
384
- }), e && (O?.(), E(b.current), s && g?.(), r && r());
384
+ }), e && (O?.(), E(b.current), c && g?.(), r && r());
385
385
  },
386
- anchorX: l,
387
- anchorY: d,
386
+ anchorX: u,
387
+ anchorY: f,
388
388
  children: e
389
- }, a);
389
+ }, i);
390
390
  }) });
391
391
  };
392
392
  //#endregion