@sentry/mcp-server 0.10.0 → 0.12.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.
Files changed (271) hide show
  1. package/dist/api-client/client.cjs +4 -4
  2. package/dist/api-client/client.d.cts +3 -3
  3. package/dist/api-client/client.d.ts +3 -3
  4. package/dist/api-client/client.js +2 -2
  5. package/dist/api-client/client.test.cjs +8 -9
  6. package/dist/api-client/client.test.cjs.map +1 -1
  7. package/dist/api-client/client.test.js +4 -4
  8. package/dist/api-client/index.cjs +41 -38
  9. package/dist/api-client/index.d.cts +4 -4
  10. package/dist/api-client/index.d.ts +4 -4
  11. package/dist/api-client/index.js +5 -5
  12. package/dist/api-client/schema.cjs +36 -33
  13. package/dist/api-client/schema.d.cts +2 -2
  14. package/dist/api-client/schema.d.ts +2 -2
  15. package/dist/api-client/schema.js +2 -2
  16. package/dist/api-client/types.cjs +1 -1
  17. package/dist/api-client/types.d.cts +3 -3
  18. package/dist/api-client/types.d.ts +3 -3
  19. package/dist/api-client/types.js +1 -1
  20. package/dist/{chunk-CsIcISPO.js → chunk-BLXvPPr8.js} +1 -1
  21. package/dist/{chunk-BtT13l48.cjs → chunk-DWy1uDak.cjs} +0 -1
  22. package/dist/client-4jq_wVgn.d.ts +522 -0
  23. package/dist/client-4jq_wVgn.d.ts.map +1 -0
  24. package/dist/client-B7vZ6JMk.cjs +572 -0
  25. package/dist/client-B7vZ6JMk.cjs.map +1 -0
  26. package/dist/client-CAoHZbyK.js +561 -0
  27. package/dist/client-CAoHZbyK.js.map +1 -0
  28. package/dist/client-DkY0ifZf.d.cts +522 -0
  29. package/dist/client-DkY0ifZf.d.cts.map +1 -0
  30. package/dist/{dist-wiyJYfAH.cjs → dist-BlIWGSIM.cjs} +318 -164
  31. package/dist/dist-BlIWGSIM.cjs.map +1 -0
  32. package/dist/{dist-BKh-M1A1.js → dist-DDpQABxe.js} +318 -163
  33. package/dist/dist-DDpQABxe.js.map +1 -0
  34. package/dist/errors-B9fwS-aP.cjs +21 -0
  35. package/dist/errors-B9fwS-aP.cjs.map +1 -0
  36. package/dist/errors-BJSrT6Ou.js +15 -0
  37. package/dist/errors-BJSrT6Ou.js.map +1 -0
  38. package/dist/errors.cjs +3 -0
  39. package/dist/errors.d.cts +12 -0
  40. package/dist/errors.d.cts.map +1 -0
  41. package/dist/errors.d.ts +12 -0
  42. package/dist/errors.d.ts.map +1 -0
  43. package/dist/errors.js +3 -0
  44. package/dist/errors.test.cjs +24 -0
  45. package/dist/errors.test.cjs.map +1 -0
  46. package/dist/errors.test.d.cts +1 -0
  47. package/dist/errors.test.d.ts +1 -0
  48. package/dist/errors.test.js +24 -0
  49. package/dist/errors.test.js.map +1 -0
  50. package/dist/{formatting-ggD6YRYR.js → formatting-BaARL2gT.js} +1 -1
  51. package/dist/formatting-BaARL2gT.js.map +1 -0
  52. package/dist/{formatting-B0SJqiqX.cjs → formatting-C2kN0ok6.cjs} +1 -2
  53. package/dist/formatting-C2kN0ok6.cjs.map +1 -0
  54. package/dist/index.cjs +19 -19
  55. package/dist/index.cjs.map +1 -1
  56. package/dist/index.js +18 -17
  57. package/dist/index.js.map +1 -1
  58. package/dist/internal/formatting.cjs +4 -4
  59. package/dist/internal/formatting.d.cts +5 -5
  60. package/dist/internal/formatting.d.cts.map +1 -1
  61. package/dist/internal/formatting.d.ts +5 -5
  62. package/dist/internal/formatting.d.ts.map +1 -1
  63. package/dist/internal/formatting.js +1 -1
  64. package/dist/internal/issue-helpers.cjs +4 -4
  65. package/dist/internal/issue-helpers.d.cts +10 -2
  66. package/dist/internal/issue-helpers.d.cts.map +1 -1
  67. package/dist/internal/issue-helpers.d.ts +10 -2
  68. package/dist/internal/issue-helpers.d.ts.map +1 -1
  69. package/dist/internal/issue-helpers.js +1 -1
  70. package/dist/internal/issue-helpers.test.cjs +21 -25
  71. package/dist/internal/issue-helpers.test.cjs.map +1 -1
  72. package/dist/internal/issue-helpers.test.js +5 -8
  73. package/dist/internal/issue-helpers.test.js.map +1 -1
  74. package/dist/{issue-helpers-CyoHu5j4.js → issue-helpers-BMVLc3mR.js} +16 -2
  75. package/dist/issue-helpers-BMVLc3mR.js.map +1 -0
  76. package/dist/{issue-helpers-DbsECZFq.cjs → issue-helpers-D712fGT2.cjs} +16 -3
  77. package/dist/issue-helpers-D712fGT2.cjs.map +1 -0
  78. package/dist/{logging-BEMgC5SA.cjs → logging-ByvSjT6V.cjs} +2 -3
  79. package/dist/logging-ByvSjT6V.cjs.map +1 -0
  80. package/dist/{logging-Cxm8lQvg.js → logging-CXLD0FFB.js} +1 -1
  81. package/dist/logging-CXLD0FFB.js.map +1 -0
  82. package/dist/logging.cjs +2 -2
  83. package/dist/logging.d.cts +31 -3
  84. package/dist/logging.d.cts.map +1 -1
  85. package/dist/logging.d.ts +31 -3
  86. package/dist/logging.d.ts.map +1 -1
  87. package/dist/logging.js +1 -1
  88. package/dist/{magic-string.es-m-ldRjOa.cjs → magic-string.es-CybcVAw7.cjs} +2 -3
  89. package/dist/{magic-string.es-m-ldRjOa.cjs.map → magic-string.es-CybcVAw7.cjs.map} +1 -1
  90. package/dist/{promptDefinitions-pHRpPOpJ.cjs → promptDefinitions-BTLIBcGt.cjs} +10 -4
  91. package/dist/promptDefinitions-BTLIBcGt.cjs.map +1 -0
  92. package/dist/{promptDefinitions-tpKruPny.d.ts → promptDefinitions-CF2VWdQ6.d.cts} +12 -4
  93. package/dist/promptDefinitions-CF2VWdQ6.d.cts.map +1 -0
  94. package/dist/{promptDefinitions-BR7PxWcH.d.cts → promptDefinitions-D5FSQckL.d.ts} +11 -3
  95. package/dist/promptDefinitions-D5FSQckL.d.ts.map +1 -0
  96. package/dist/{promptDefinitions-DBNOeSg-.js → promptDefinitions-D8yow1m0.js} +9 -2
  97. package/dist/promptDefinitions-D8yow1m0.js.map +1 -0
  98. package/dist/promptDefinitions.cjs +3 -3
  99. package/dist/promptDefinitions.d.cts +1 -1
  100. package/dist/promptDefinitions.d.ts +1 -1
  101. package/dist/promptDefinitions.js +2 -2
  102. package/dist/{prompts-nfFU-zY-.cjs → prompts-CDbQrutV.cjs} +3 -3
  103. package/dist/prompts-CDbQrutV.cjs.map +1 -0
  104. package/dist/{prompts-DgWOD2rU.js → prompts-Dt3A8Qfl.js} +4 -2
  105. package/dist/prompts-Dt3A8Qfl.js.map +1 -0
  106. package/dist/prompts.cjs +3 -2
  107. package/dist/prompts.d.cts +4 -5
  108. package/dist/prompts.d.cts.map +1 -1
  109. package/dist/prompts.d.ts +4 -5
  110. package/dist/prompts.d.ts.map +1 -1
  111. package/dist/prompts.js +2 -1
  112. package/dist/{resources-OM3EAnnj.js → resources-Bol20Xuo.js} +13 -1
  113. package/dist/resources-Bol20Xuo.js.map +1 -0
  114. package/dist/{resources-BAE7VVZZ.cjs → resources-DNyoutxH.cjs} +13 -2
  115. package/dist/resources-DNyoutxH.cjs.map +1 -0
  116. package/dist/resources.cjs +2 -2
  117. package/dist/resources.d.cts +9 -1
  118. package/dist/resources.d.cts.map +1 -1
  119. package/dist/resources.d.ts +9 -1
  120. package/dist/resources.d.ts.map +1 -1
  121. package/dist/resources.js +1 -1
  122. package/dist/{schema-B7A-FyIi.d.ts → schema-BJv7kREf.d.cts} +215 -68
  123. package/dist/schema-BJv7kREf.d.cts.map +1 -0
  124. package/dist/{schema-jk88gqOu.cjs → schema-BTfISwFu.cjs} +30 -4
  125. package/dist/schema-BTfISwFu.cjs.map +1 -0
  126. package/dist/{schema-PvgLrC1b.d.cts → schema-BnxGHL_i.d.ts} +215 -68
  127. package/dist/schema-BnxGHL_i.d.ts.map +1 -0
  128. package/dist/{schema-3VLYcf4D.cjs → schema-BsvGMALe.cjs} +59 -8
  129. package/dist/schema-BsvGMALe.cjs.map +1 -0
  130. package/dist/{schema-Dltbjui7.js → schema-C_hp0BR7.js} +41 -7
  131. package/dist/schema-C_hp0BR7.js.map +1 -0
  132. package/dist/schema-Dv6aLZgz.js +32 -0
  133. package/dist/schema-Dv6aLZgz.js.map +1 -0
  134. package/dist/schema.cjs +13 -11
  135. package/dist/schema.d.cts +14 -5
  136. package/dist/schema.d.cts.map +1 -1
  137. package/dist/schema.d.ts +14 -5
  138. package/dist/schema.d.ts.map +1 -1
  139. package/dist/schema.js +2 -2
  140. package/dist/{server-yb4PkNyo.js → server-C7cHq_pc.js} +82 -27
  141. package/dist/server-C7cHq_pc.js.map +1 -0
  142. package/dist/{server-VwFSUPQn.cjs → server-DeutbO8v.cjs} +83 -29
  143. package/dist/server-DeutbO8v.cjs.map +1 -0
  144. package/dist/server.cjs +16 -15
  145. package/dist/server.d.cts +24 -6
  146. package/dist/server.d.cts.map +1 -1
  147. package/dist/server.d.ts +24 -6
  148. package/dist/server.d.ts.map +1 -1
  149. package/dist/server.js +15 -14
  150. package/dist/stdio-B73CCTly.cjs +47 -0
  151. package/dist/stdio-B73CCTly.cjs.map +1 -0
  152. package/dist/stdio-ZQLC-i5Q.js +41 -0
  153. package/dist/stdio-ZQLC-i5Q.js.map +1 -0
  154. package/dist/test-setup.cjs +653 -438
  155. package/dist/test-setup.cjs.map +1 -1
  156. package/dist/test-setup.js +653 -438
  157. package/dist/test-setup.js.map +1 -1
  158. package/dist/{toolDefinitions-B94CNDbt.d.cts → toolDefinitions-BOMF-zIC.d.ts} +148 -18
  159. package/dist/toolDefinitions-BOMF-zIC.d.ts.map +1 -0
  160. package/dist/{toolDefinitions-DIhvw3vk.cjs → toolDefinitions-CUegGcWU.cjs} +128 -7
  161. package/dist/toolDefinitions-CUegGcWU.cjs.map +1 -0
  162. package/dist/{toolDefinitions-Bb_1ejkl.js → toolDefinitions-DFAxp3nr.js} +127 -5
  163. package/dist/toolDefinitions-DFAxp3nr.js.map +1 -0
  164. package/dist/{toolDefinitions-q_1-70fG.d.ts → toolDefinitions-Ipvr4Acw.d.cts} +149 -19
  165. package/dist/toolDefinitions-Ipvr4Acw.d.cts.map +1 -0
  166. package/dist/toolDefinitions.cjs +3 -3
  167. package/dist/toolDefinitions.d.cts +1 -1
  168. package/dist/toolDefinitions.d.ts +1 -1
  169. package/dist/toolDefinitions.js +2 -2
  170. package/dist/toolDefinitions.test.cjs +3 -4
  171. package/dist/toolDefinitions.test.cjs.map +1 -1
  172. package/dist/toolDefinitions.test.js +3 -3
  173. package/dist/{tools-CMFpMPpD.js → tools-DpiQwSTY.js} +156 -13
  174. package/dist/tools-DpiQwSTY.js.map +1 -0
  175. package/dist/{tools-BdkmyaZo.cjs → tools-DyOqlsCW.cjs} +157 -15
  176. package/dist/tools-DyOqlsCW.cjs.map +1 -0
  177. package/dist/tools.cjs +10 -9
  178. package/dist/tools.d.cts +121 -8
  179. package/dist/tools.d.cts.map +1 -1
  180. package/dist/tools.d.ts +121 -8
  181. package/dist/tools.d.ts.map +1 -1
  182. package/dist/tools.js +9 -8
  183. package/dist/tools.test.cjs +330 -35
  184. package/dist/tools.test.cjs.map +1 -1
  185. package/dist/tools.test.js +311 -15
  186. package/dist/tools.test.js.map +1 -1
  187. package/dist/transports/stdio.cjs +17 -16
  188. package/dist/transports/stdio.d.cts +27 -6
  189. package/dist/transports/stdio.d.cts.map +1 -1
  190. package/dist/transports/stdio.d.ts +27 -6
  191. package/dist/transports/stdio.d.ts.map +1 -1
  192. package/dist/transports/stdio.js +16 -15
  193. package/dist/{types-jftb-CP9.d.ts → types-D5TPcOfv.d.ts} +4 -4
  194. package/dist/types-D5TPcOfv.d.ts.map +1 -0
  195. package/dist/{types-OeoNXRm-.d.cts → types-DRF2IoP_.d.cts} +4 -4
  196. package/dist/types-DRF2IoP_.d.cts.map +1 -0
  197. package/dist/{types-B03G337q.d.cts → types-Daq2fm0E.d.ts} +7 -5
  198. package/dist/types-Daq2fm0E.d.ts.map +1 -0
  199. package/dist/{types-CN4NEway.d.ts → types-NIQW7KyF.d.cts} +7 -5
  200. package/dist/types-NIQW7KyF.d.cts.map +1 -0
  201. package/dist/types.d.cts +3 -3
  202. package/dist/types.d.ts +3 -3
  203. package/dist/{version-CDnh7DyW.cjs → version-BNmubeQI.cjs} +2 -3
  204. package/dist/{version-CDnh7DyW.cjs.map → version-BNmubeQI.cjs.map} +1 -1
  205. package/dist/version-CRto5Sn_.js +6 -0
  206. package/dist/{version-TjO7fHpC.js.map → version-CRto5Sn_.js.map} +1 -1
  207. package/dist/version.cjs +2 -2
  208. package/dist/version.d.cts +1 -2
  209. package/dist/version.d.cts.map +1 -1
  210. package/dist/version.d.ts +1 -2
  211. package/dist/version.d.ts.map +1 -1
  212. package/dist/version.js +1 -1
  213. package/dist/{vi.ClIskdbk-De9q3829.js → vi.bdSIJ99Y-BfJr7I2s.js} +241 -171
  214. package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +1 -0
  215. package/dist/{vi.ClIskdbk-Bs263gvI.cjs → vi.bdSIJ99Y-Dft_B_Ta.cjs} +243 -182
  216. package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +1 -0
  217. package/package.json +8 -8
  218. package/dist/client-B4Ux5Zdg.cjs +0 -227
  219. package/dist/client-B4Ux5Zdg.cjs.map +0 -1
  220. package/dist/client-Bz_PNC8o.js +0 -215
  221. package/dist/client-Bz_PNC8o.js.map +0 -1
  222. package/dist/client-J6VSRmQS.d.ts +0 -177
  223. package/dist/client-J6VSRmQS.d.ts.map +0 -1
  224. package/dist/client-tE6FD__9.d.cts +0 -177
  225. package/dist/client-tE6FD__9.d.cts.map +0 -1
  226. package/dist/dist-BKh-M1A1.js.map +0 -1
  227. package/dist/dist-wiyJYfAH.cjs.map +0 -1
  228. package/dist/formatting-B0SJqiqX.cjs.map +0 -1
  229. package/dist/formatting-ggD6YRYR.js.map +0 -1
  230. package/dist/issue-helpers-CyoHu5j4.js.map +0 -1
  231. package/dist/issue-helpers-DbsECZFq.cjs.map +0 -1
  232. package/dist/logging-BEMgC5SA.cjs.map +0 -1
  233. package/dist/logging-Cxm8lQvg.js.map +0 -1
  234. package/dist/promptDefinitions-BR7PxWcH.d.cts.map +0 -1
  235. package/dist/promptDefinitions-DBNOeSg-.js.map +0 -1
  236. package/dist/promptDefinitions-pHRpPOpJ.cjs.map +0 -1
  237. package/dist/promptDefinitions-tpKruPny.d.ts.map +0 -1
  238. package/dist/prompts-DgWOD2rU.js.map +0 -1
  239. package/dist/prompts-nfFU-zY-.cjs.map +0 -1
  240. package/dist/resources-BAE7VVZZ.cjs.map +0 -1
  241. package/dist/resources-OM3EAnnj.js.map +0 -1
  242. package/dist/schema-3VLYcf4D.cjs.map +0 -1
  243. package/dist/schema-B7A-FyIi.d.ts.map +0 -1
  244. package/dist/schema-BKa41TQ4.js +0 -17
  245. package/dist/schema-BKa41TQ4.js.map +0 -1
  246. package/dist/schema-Dltbjui7.js.map +0 -1
  247. package/dist/schema-PvgLrC1b.d.cts.map +0 -1
  248. package/dist/schema-jk88gqOu.cjs.map +0 -1
  249. package/dist/server-VwFSUPQn.cjs.map +0 -1
  250. package/dist/server-yb4PkNyo.js.map +0 -1
  251. package/dist/stdio-65sYKLOk.cjs +0 -26
  252. package/dist/stdio-65sYKLOk.cjs.map +0 -1
  253. package/dist/stdio-DkU2-spy.js +0 -19
  254. package/dist/stdio-DkU2-spy.js.map +0 -1
  255. package/dist/toolDefinitions-B94CNDbt.d.cts.map +0 -1
  256. package/dist/toolDefinitions-Bb_1ejkl.js.map +0 -1
  257. package/dist/toolDefinitions-DIhvw3vk.cjs.map +0 -1
  258. package/dist/toolDefinitions-q_1-70fG.d.ts.map +0 -1
  259. package/dist/tools-BdkmyaZo.cjs.map +0 -1
  260. package/dist/tools-CMFpMPpD.js.map +0 -1
  261. package/dist/types-B03G337q.d.cts.map +0 -1
  262. package/dist/types-CN4NEway.d.ts.map +0 -1
  263. package/dist/types-OeoNXRm-.d.cts.map +0 -1
  264. package/dist/types-jftb-CP9.d.ts.map +0 -1
  265. package/dist/version-TjO7fHpC.js +0 -6
  266. package/dist/vi.ClIskdbk-Bs263gvI.cjs.map +0 -1
  267. package/dist/vi.ClIskdbk-De9q3829.js.map +0 -1
  268. /package/dist/{api-client-9mzrj2HY.js → api-client-CL1WDkw9.cjs} +0 -0
  269. /package/dist/{api-client-CEBuz3Zu.cjs → api-client-CNv_hbPO.js} +0 -0
  270. /package/dist/{types-H-TSmRpm.js → types-6zHoEWAx.js} +0 -0
  271. /package/dist/{types-o3zWarRp.cjs → types-MYBaygjr.cjs} +0 -0
@@ -1,85 +1,131 @@
1
- "use strict";
2
- const require_dist = require('./dist-wiyJYfAH.cjs');
1
+ const require_dist = require('./dist-BlIWGSIM.cjs');
3
2
 
4
- //#region ../../node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js
5
- function d(e, t) {
6
- if (!e) throw new Error(t);
7
- }
8
- function y(e, t) {
9
- return typeof t === e;
10
- }
11
- function w(e) {
12
- return e instanceof Promise;
13
- }
14
- function f$1(e, t, n) {
15
- Object.defineProperty(e, t, n);
16
- }
17
- function l(e, t, n) {
18
- Object.defineProperty(e, t, { value: n });
19
- }
20
- var u$1 = Symbol.for("tinyspy:spy");
21
- var x = /* @__PURE__ */ new Set(), P = (e) => {
22
- e.called = !1, e.callCount = 0, e.calls = [], e.results = [], e.resolves = [], e.next = [];
23
- }, K = (e) => (f$1(e, u$1, { value: { reset: () => P(e[u$1]) } }), e[u$1]), T = (e) => e[u$1] || K(e);
24
- function m(e) {
25
- d(y("function", e) || y("undefined", e), "cannot spy on a non-function value");
26
- let t = function(...s) {
27
- let r = T(t);
28
- r.called = !0, r.callCount++, r.calls.push(s);
29
- let S = r.next.shift();
30
- if (S) {
31
- r.results.push(S);
32
- let [o, g] = S;
33
- if (o === "ok") return g;
34
- throw g;
3
+ //#region ../../node_modules/.pnpm/tinyspy@4.0.3/node_modules/tinyspy/dist/index.js
4
+ function assert$1(condition, message) {
5
+ if (!condition) throw new Error(message);
6
+ }
7
+ function isType(type, value) {
8
+ return typeof value === type;
9
+ }
10
+ function isPromise(value) {
11
+ return value instanceof Promise;
12
+ }
13
+ function define(obj, key, descriptor) {
14
+ Object.defineProperty(obj, key, descriptor);
15
+ }
16
+ function defineValue(obj, key, value) {
17
+ define(obj, key, {
18
+ value,
19
+ configurable: !0,
20
+ writable: !0
21
+ });
22
+ }
23
+ var SYMBOL_STATE = Symbol.for("tinyspy:spy");
24
+ var spies = /* @__PURE__ */ new Set(), reset = (state) => {
25
+ state.called = !1, state.callCount = 0, state.calls = [], state.results = [], state.resolves = [], state.next = [];
26
+ }, defineState = (spy2) => (define(spy2, SYMBOL_STATE, { value: { reset: () => reset(spy2[SYMBOL_STATE]) } }), spy2[SYMBOL_STATE]), getInternalState = (spy2) => spy2[SYMBOL_STATE] || defineState(spy2);
27
+ function createInternalSpy(cb) {
28
+ assert$1(isType("function", cb) || isType("undefined", cb), "cannot spy on a non-function value");
29
+ let fn$1 = function(...args) {
30
+ let state2 = getInternalState(fn$1);
31
+ state2.called = !0, state2.callCount++, state2.calls.push(args);
32
+ let next = state2.next.shift();
33
+ if (next) {
34
+ state2.results.push(next);
35
+ let [type2, result2] = next;
36
+ if (type2 === "ok") return result2;
37
+ throw result2;
35
38
  }
36
- let p$1, c = "ok", a$1 = r.results.length;
37
- if (r.impl) try {
38
- new.target ? p$1 = Reflect.construct(r.impl, s, new.target) : p$1 = r.impl.apply(this, s), c = "ok";
39
- } catch (o) {
40
- throw p$1 = o, c = "error", r.results.push([c, o]), o;
39
+ let result, type = "ok", resultIndex = state2.results.length;
40
+ if (state2.impl) try {
41
+ new.target ? result = Reflect.construct(state2.impl, args, new.target) : result = state2.impl.apply(this, args), type = "ok";
42
+ } catch (err) {
43
+ throw result = err, type = "error", state2.results.push([type, err]), err;
41
44
  }
42
- let R = [c, p$1];
43
- return w(p$1) && p$1.then((o) => r.resolves[a$1] = ["ok", o], (o) => r.resolves[a$1] = ["error", o]), r.results.push(R), p$1;
45
+ let resultTuple = [type, result];
46
+ return isPromise(result) && result.then((r) => state2.resolves[resultIndex] = ["ok", r], (e) => state2.resolves[resultIndex] = ["error", e]), state2.results.push(resultTuple), result;
44
47
  };
45
- l(t, "_isMockFunction", !0), l(t, "length", e ? e.length : 0), l(t, "name", e && e.name || "spy");
46
- let n = T(t);
47
- return n.reset(), n.impl = e, t;
48
- }
49
- var k = (e, t) => Object.getOwnPropertyDescriptor(e, t), O = (e, t) => {
50
- t != null && typeof t == "function" && t.prototype != null && Object.setPrototypeOf(e.prototype, t.prototype);
48
+ defineValue(fn$1, "_isMockFunction", !0), defineValue(fn$1, "length", cb ? cb.length : 0), defineValue(fn$1, "name", cb && cb.name || "spy");
49
+ let state = getInternalState(fn$1);
50
+ return state.reset(), state.impl = cb, fn$1;
51
+ }
52
+ function isMockFunction$1(obj) {
53
+ return !!obj && obj._isMockFunction === !0;
54
+ }
55
+ var getDescriptor$1 = (obj, method) => {
56
+ let objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
57
+ if (objDescriptor) return [obj, objDescriptor];
58
+ let currentProto = Object.getPrototypeOf(obj);
59
+ for (; currentProto !== null;) {
60
+ let descriptor = Object.getOwnPropertyDescriptor(currentProto, method);
61
+ if (descriptor) return [currentProto, descriptor];
62
+ currentProto = Object.getPrototypeOf(currentProto);
63
+ }
64
+ }, setPototype = (fn$1, val) => {
65
+ val != null && typeof val == "function" && val.prototype != null && Object.setPrototypeOf(fn$1.prototype, val.prototype);
51
66
  };
52
- function C$1(e, t, n) {
53
- d(!y("undefined", e), "spyOn could not find an object to spy upon"), d(y("object", e) || y("function", e), "cannot spyOn on a primitive value");
54
- let [s, r] = (() => {
55
- if (!y("object", t)) return [t, "value"];
56
- if ("getter" in t && "setter" in t) throw new Error("cannot spy on both getter and setter");
57
- if ("getter" in t) return [t.getter, "get"];
58
- if ("setter" in t) return [t.setter, "set"];
67
+ function internalSpyOn(obj, methodName, mock) {
68
+ assert$1(!isType("undefined", obj), "spyOn could not find an object to spy upon"), assert$1(isType("object", obj) || isType("function", obj), "cannot spyOn on a primitive value");
69
+ let [accessName, accessType] = (() => {
70
+ if (!isType("object", methodName)) return [methodName, "value"];
71
+ if ("getter" in methodName && "setter" in methodName) throw new Error("cannot spy on both getter and setter");
72
+ if ("getter" in methodName) return [methodName.getter, "get"];
73
+ if ("setter" in methodName) return [methodName.setter, "set"];
59
74
  throw new Error("specify getter or setter to spy on");
60
- })(), S = k(e, s), p$1 = Object.getPrototypeOf(e), c = p$1 && k(p$1, s), a$1 = S || c;
61
- d(a$1 || s in e, `${String(s)} does not exist`);
62
- let R = !1;
63
- r === "value" && a$1 && !a$1.value && a$1.get && (r = "get", R = !0, n = a$1.get());
64
- let o;
65
- a$1 ? o = a$1[r] : r !== "value" ? o = () => e[s] : o = e[s];
66
- let g = (v) => {
67
- let { value: M,...h$1 } = a$1 || {
75
+ })(), [originalDescriptorObject, originalDescriptor] = getDescriptor$1(obj, accessName) || [];
76
+ assert$1(originalDescriptor || accessName in obj, `${String(accessName)} does not exist`);
77
+ let ssr = !1;
78
+ accessType === "value" && originalDescriptor && !originalDescriptor.value && originalDescriptor.get && (accessType = "get", ssr = !0, mock = originalDescriptor.get());
79
+ let original;
80
+ originalDescriptor ? original = originalDescriptor[accessType] : accessType !== "value" ? original = () => obj[accessName] : original = obj[accessName], original && isSpyFunction(original) && (original = original[SYMBOL_STATE].getOriginal());
81
+ let reassign = (cb) => {
82
+ let { value,...desc } = originalDescriptor || {
68
83
  configurable: !0,
69
84
  writable: !0
70
85
  };
71
- r !== "value" && delete h$1.writable, h$1[r] = v, f$1(e, s, h$1);
72
- }, b = () => a$1 ? f$1(e, s, a$1) : g(o);
73
- n || (n = o);
74
- let i = m(n);
75
- r === "value" && O(i, o);
76
- let I = i[u$1];
77
- return l(I, "restore", b), l(I, "getOriginal", () => R ? o() : o), l(I, "willCall", (v) => (I.impl = v, i)), g(R ? () => (O(i, n), i) : i), x.add(i), i;
86
+ accessType !== "value" && delete desc.writable, desc[accessType] = cb, define(obj, accessName, desc);
87
+ }, restore = () => {
88
+ originalDescriptorObject !== obj ? Reflect.deleteProperty(obj, accessName) : originalDescriptor && !original ? define(obj, accessName, originalDescriptor) : reassign(original);
89
+ };
90
+ mock || (mock = original);
91
+ let spy2 = wrap(createInternalSpy(mock), mock);
92
+ accessType === "value" && setPototype(spy2, original);
93
+ let state = spy2[SYMBOL_STATE];
94
+ return defineValue(state, "restore", restore), defineValue(state, "getOriginal", () => ssr ? original() : original), defineValue(state, "willCall", (newCb) => (state.impl = newCb, spy2)), reassign(ssr ? () => (setPototype(spy2, mock), spy2) : spy2), spies.add(spy2), spy2;
95
+ }
96
+ var ignoreProperties = /* @__PURE__ */ new Set([
97
+ "length",
98
+ "name",
99
+ "prototype"
100
+ ]);
101
+ function getAllProperties(original) {
102
+ let properties = /* @__PURE__ */ new Set(), descriptors2 = {};
103
+ for (; original && original !== Object.prototype && original !== Function.prototype;) {
104
+ let ownProperties = [...Object.getOwnPropertyNames(original), ...Object.getOwnPropertySymbols(original)];
105
+ for (let prop of ownProperties) descriptors2[prop] || ignoreProperties.has(prop) || (properties.add(prop), descriptors2[prop] = Object.getOwnPropertyDescriptor(original, prop));
106
+ original = Object.getPrototypeOf(original);
107
+ }
108
+ return {
109
+ properties,
110
+ descriptors: descriptors2
111
+ };
112
+ }
113
+ function wrap(mock, original) {
114
+ if (!original || SYMBOL_STATE in original) return mock;
115
+ let { properties, descriptors: descriptors2 } = getAllProperties(original);
116
+ for (let key of properties) {
117
+ let descriptor = descriptors2[key];
118
+ getDescriptor$1(mock, key) || define(mock, key, descriptor);
119
+ }
120
+ return mock;
121
+ }
122
+ function isSpyFunction(obj) {
123
+ return isMockFunction$1(obj) && "getOriginal" in obj[SYMBOL_STATE];
78
124
  }
79
125
 
80
126
  //#endregion
81
- //#region ../../node_modules/.pnpm/@vitest+spy@3.1.3/node_modules/@vitest/spy/dist/index.js
82
- const mocks = new Set();
127
+ //#region ../../node_modules/.pnpm/@vitest+spy@3.2.0/node_modules/@vitest/spy/dist/index.js
128
+ const mocks = /* @__PURE__ */ new Set();
83
129
  function isMockFunction(fn$1) {
84
130
  return typeof fn$1 === "function" && "_isMockFunction" in fn$1 && fn$1._isMockFunction;
85
131
  }
@@ -89,17 +135,25 @@ function spyOn(obj, method, accessType) {
89
135
  set: "setter"
90
136
  };
91
137
  const objMethod = accessType ? { [dictionary[accessType]]: method } : method;
92
- const stub = C$1(obj, objMethod);
93
- return enhanceSpy(stub);
138
+ let state;
139
+ const descriptor = getDescriptor(obj, method);
140
+ const fn$1 = descriptor && descriptor[accessType || "value"];
141
+ if (isMockFunction(fn$1)) state = fn$1.mock._state();
142
+ const stub = internalSpyOn(obj, objMethod);
143
+ const spy = enhanceSpy(stub);
144
+ if (state) spy.mock._state(state);
145
+ return spy;
94
146
  }
95
147
  let callOrder = 0;
96
148
  function enhanceSpy(spy) {
97
149
  const stub = spy;
98
150
  let implementation;
151
+ let onceImplementations = [];
152
+ let implementationChangedTemporarily = false;
99
153
  let instances = [];
100
154
  let contexts = [];
101
155
  let invocations = [];
102
- const state = T(spy);
156
+ const state = getInternalState(spy);
103
157
  const mockContext = {
104
158
  get calls() {
105
159
  return state.calls;
@@ -133,10 +187,20 @@ function enhanceSpy(spy) {
133
187
  },
134
188
  get lastCall() {
135
189
  return state.calls[state.calls.length - 1];
190
+ },
191
+ _state(state$1) {
192
+ if (state$1) {
193
+ implementation = state$1.implementation;
194
+ onceImplementations = state$1.onceImplementations;
195
+ implementationChangedTemporarily = state$1.implementationChangedTemporarily;
196
+ }
197
+ return {
198
+ implementation,
199
+ onceImplementations,
200
+ implementationChangedTemporarily
201
+ };
136
202
  }
137
203
  };
138
- let onceImplementations = [];
139
- let implementationChangedTemporarily = false;
140
204
  function mockCall(...args) {
141
205
  instances.push(this);
142
206
  contexts.push(this);
@@ -168,6 +232,7 @@ function enhanceSpy(spy) {
168
232
  state.restore();
169
233
  return stub;
170
234
  };
235
+ if (Symbol.dispose) stub[Symbol.dispose] = () => stub.mockRestore();
171
236
  stub.getMockImplementation = () => implementationChangedTemporarily ? implementation : onceImplementations.at(0) || implementation;
172
237
  stub.mockImplementation = (fn$1) => {
173
238
  implementation = fn$1;
@@ -183,16 +248,16 @@ function enhanceSpy(spy) {
183
248
  implementation = fn$1;
184
249
  state.willCall(mockCall);
185
250
  implementationChangedTemporarily = true;
186
- const reset = () => {
251
+ const reset$1 = () => {
187
252
  implementation = originalImplementation;
188
253
  implementationChangedTemporarily = false;
189
254
  };
190
255
  const result = cb();
191
- if (result instanceof Promise) return result.then(() => {
192
- reset();
256
+ if (typeof result === "object" && result && typeof result.then === "function") return result.then(() => {
257
+ reset$1();
193
258
  return stub;
194
259
  });
195
- reset();
260
+ reset$1();
196
261
  return stub;
197
262
  }
198
263
  stub.withImplementation = withImplementation;
@@ -211,13 +276,23 @@ function enhanceSpy(spy) {
211
276
  return stub;
212
277
  }
213
278
  function fn(implementation) {
214
- const enhancedSpy = enhanceSpy(C$1({ spy: implementation || function() {} }, "spy"));
279
+ const enhancedSpy = enhanceSpy(internalSpyOn({ spy: implementation || function() {} }, "spy"));
215
280
  if (implementation) enhancedSpy.mockImplementation(implementation);
216
281
  return enhancedSpy;
217
282
  }
283
+ function getDescriptor(obj, method) {
284
+ const objDescriptor = Object.getOwnPropertyDescriptor(obj, method);
285
+ if (objDescriptor) return objDescriptor;
286
+ let currentProto = Object.getPrototypeOf(obj);
287
+ while (currentProto !== null) {
288
+ const descriptor = Object.getOwnPropertyDescriptor(currentProto, method);
289
+ if (descriptor) return descriptor;
290
+ currentProto = Object.getPrototypeOf(currentProto);
291
+ }
292
+ }
218
293
 
219
294
  //#endregion
220
- //#region ../../node_modules/.pnpm/@vitest+expect@3.1.3/node_modules/@vitest/expect/dist/index.js
295
+ //#region ../../node_modules/.pnpm/@vitest+expect@3.2.0/node_modules/@vitest/expect/dist/index.js
221
296
  const MATCHERS_OBJECT = Symbol.for("matchers-object");
222
297
  const JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object");
223
298
  const GLOBAL_EXPECT = Symbol.for("expect-global");
@@ -383,6 +458,14 @@ function eq(a$1, b, aStack, bStack, customTesters, hasKey$1) {
383
458
  return numA === numB || Number.isNaN(numA) && Number.isNaN(numB);
384
459
  }
385
460
  case "[object RegExp]": return a$1.source === b.source && a$1.flags === b.flags;
461
+ case "[object Temporal.Instant]":
462
+ case "[object Temporal.ZonedDateTime]":
463
+ case "[object Temporal.PlainDateTime]":
464
+ case "[object Temporal.PlainDate]":
465
+ case "[object Temporal.PlainTime]":
466
+ case "[object Temporal.PlainYearMonth]":
467
+ case "[object Temporal.PlainMonthDay]": return a$1.equals(b);
468
+ case "[object Temporal.Duration]": return a$1.toString() === b.toString();
386
469
  }
387
470
  if (typeof a$1 !== "object" || typeof b !== "object") return false;
388
471
  if (isDomNode(a$1) && isDomNode(b)) return a$1.isEqualNode(b);
@@ -530,7 +613,7 @@ function iterableEquality(a$1, b, customTesters = [], aStack = [], bStack = [])
530
613
  if (!isImmutableList(a$1) && !isImmutableOrderedKeyed(a$1) && !isImmutableOrderedSet(a$1) && !isImmutableRecord(a$1)) {
531
614
  const aEntries = Object.entries(a$1);
532
615
  const bEntries = Object.entries(b);
533
- if (!equals(aEntries, bEntries)) return false;
616
+ if (!equals(aEntries, bEntries, filteredCustomTesters)) return false;
534
617
  }
535
618
  aStack.pop();
536
619
  bStack.pop();
@@ -549,7 +632,7 @@ function isObjectWithKeys(a$1) {
549
632
  }
550
633
  function subsetEquality(object$1, subset, customTesters = []) {
551
634
  const filteredCustomTesters = customTesters.filter((t) => t !== subsetEquality);
552
- const subsetEqualityWithContext = (seenReferences = new WeakMap()) => (object$2, subset$1) => {
635
+ const subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object$2, subset$1) => {
553
636
  if (!isObjectWithKeys(subset$1)) return void 0;
554
637
  return Object.keys(subset$1).every((key) => {
555
638
  if (subset$1[key] != null && typeof subset$1[key] === "object") {
@@ -606,7 +689,7 @@ function getObjectKeys(object$1) {
606
689
  }
607
690
  function getObjectSubset(object$1, subset, customTesters) {
608
691
  let stripped = 0;
609
- const getObjectSubsetWithContext = (seenReferences = new WeakMap()) => (object$2, subset$1) => {
692
+ const getObjectSubsetWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object$2, subset$1) => {
610
693
  if (Array.isArray(object$2)) {
611
694
  if (Array.isArray(subset$1) && subset$1.length === object$2.length) return subset$1.map((sub, i) => getObjectSubsetWithContext(seenReferences)(object$2[i], sub));
612
695
  } else if (object$2 instanceof Date) return object$2;
@@ -638,7 +721,7 @@ function getObjectSubset(object$1, subset, customTesters) {
638
721
  };
639
722
  }
640
723
  if (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) {
641
- const globalState = new WeakMap();
724
+ const globalState = /* @__PURE__ */ new WeakMap();
642
725
  const matchers = Object.create(null);
643
726
  const customEqualityTesters = [];
644
727
  const asymmetricMatchers = Object.create(null);
@@ -947,8 +1030,8 @@ const JestChaiExpect = (chai$1, utils) => {
947
1030
  "throw",
948
1031
  "throws",
949
1032
  "Throw"
950
- ].forEach((m$1) => {
951
- utils.overwriteMethod(chai$1.Assertion.prototype, m$1, (_super) => {
1033
+ ].forEach((m) => {
1034
+ utils.overwriteMethod(chai$1.Assertion.prototype, m, (_super) => {
952
1035
  return function(...args) {
953
1036
  const promise = utils.flag(this, "promise");
954
1037
  const object$1 = utils.flag(this, "object");
@@ -1093,7 +1176,7 @@ const JestChaiExpect = (chai$1, utils) => {
1093
1176
  });
1094
1177
  def("toBeNaN", function() {
1095
1178
  const obj = utils.flag(this, "object");
1096
- this.assert(Number.isNaN(obj), "expected #{this} to be NaN", "expected #{this} not to be NaN", Number.NaN, obj);
1179
+ this.assert(Number.isNaN(obj), "expected #{this} to be NaN", "expected #{this} not to be NaN", NaN, obj);
1097
1180
  });
1098
1181
  def("toBeUndefined", function() {
1099
1182
  const obj = utils.flag(this, "object");
@@ -1367,14 +1450,7 @@ const JestChaiExpect = (chai$1, utils) => {
1367
1450
  const results = action === "return" ? spy.mock.results : spy.mock.settledResults;
1368
1451
  const result = results[results.length - 1];
1369
1452
  const spyName = spy.getMockName();
1370
- this.assert(
1371
- condition(spy, value),
1372
- `expected last "${spyName}" call to ${action} #{exp}`,
1373
- `expected last "${spyName}" call to not ${action} #{exp}`,
1374
- value,
1375
- // for jest compat
1376
- result === null || result === void 0 ? void 0 : result.value
1377
- );
1453
+ this.assert(condition(spy, value), `expected last "${spyName}" call to ${action} #{exp}`, `expected last "${spyName}" call to not ${action} #{exp}`, value, result === null || result === void 0 ? void 0 : result.value);
1378
1454
  });
1379
1455
  });
1380
1456
  [{
@@ -1466,10 +1542,10 @@ const JestChaiExpect = (chai$1, utils) => {
1466
1542
  };
1467
1543
  function ordinalOf(i) {
1468
1544
  const j = i % 10;
1469
- const k$1 = i % 100;
1470
- if (j === 1 && k$1 !== 11) return `${i}st`;
1471
- if (j === 2 && k$1 !== 12) return `${i}nd`;
1472
- if (j === 3 && k$1 !== 13) return `${i}rd`;
1545
+ const k = i % 100;
1546
+ if (j === 1 && k !== 11) return `${i}st`;
1547
+ if (j === 2 && k !== 12) return `${i}nd`;
1548
+ if (j === 3 && k !== 13) return `${i}rd`;
1473
1549
  return `${i}th`;
1474
1550
  }
1475
1551
  function formatCalls(spy, msg, showActualCall) {
@@ -1602,7 +1678,7 @@ function cwd() {
1602
1678
  if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
1603
1679
  return "/";
1604
1680
  }
1605
- const resolve$2 = function(...arguments_) {
1681
+ const resolve = function(...arguments_) {
1606
1682
  arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
1607
1683
  let resolvedPath = "";
1608
1684
  let resolvedAbsolute = false;
@@ -1671,7 +1747,7 @@ const isAbsolute = function(p$1) {
1671
1747
  };
1672
1748
 
1673
1749
  //#endregion
1674
- //#region ../../node_modules/.pnpm/vitest@3.1.3_@types+node@22.15.15_jiti@2.4.2_lightningcss@1.30.1_msw@2.7.6_@types+node@_3856721054873de6ef404598c5d8acc5/node_modules/vitest/dist/chunks/utils.CgTj3MsC.js
1750
+ //#region ../../node_modules/.pnpm/vitest@3.2.0_@types+node@22.15.29_jiti@2.4.2_lightningcss@1.30.1_msw@2.8.7_@types+node@_9eeb862be92f04c38a20bffaf3a72b73/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js
1675
1751
  const NAME_WORKER_STATE = "__vitest_worker__";
1676
1752
  function getWorkerState() {
1677
1753
  const workerState = globalThis[NAME_WORKER_STATE];
@@ -1720,14 +1796,14 @@ async function waitForImportsToResolve() {
1720
1796
  }
1721
1797
 
1722
1798
  //#endregion
1723
- //#region ../../node_modules/.pnpm/vitest@3.1.3_@types+node@22.15.15_jiti@2.4.2_lightningcss@1.30.1_msw@2.7.6_@types+node@_3856721054873de6ef404598c5d8acc5/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
1799
+ //#region ../../node_modules/.pnpm/vitest@3.2.0_@types+node@22.15.29_jiti@2.4.2_lightningcss@1.30.1_msw@2.8.7_@types+node@_9eeb862be92f04c38a20bffaf3a72b73/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
1724
1800
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1725
- function getDefaultExportFromCjs$1(x$1) {
1726
- return x$1 && x$1.__esModule && Object.prototype.hasOwnProperty.call(x$1, "default") ? x$1["default"] : x$1;
1801
+ function getDefaultExportFromCjs(x) {
1802
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1727
1803
  }
1728
1804
 
1729
1805
  //#endregion
1730
- //#region ../../node_modules/.pnpm/@vitest+snapshot@3.1.3/node_modules/@vitest/snapshot/dist/index.js
1806
+ //#region ../../node_modules/.pnpm/@vitest+snapshot@3.2.0/node_modules/@vitest/snapshot/dist/index.js
1731
1807
  const comma = ",".charCodeAt(0);
1732
1808
  const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1733
1809
  const intToChar = new Uint8Array(64);
@@ -2000,7 +2076,7 @@ function resolve$1(input, base) {
2000
2076
  default: return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
2001
2077
  }
2002
2078
  }
2003
- function resolve(input, base) {
2079
+ function resolve$2(input, base) {
2004
2080
  if (base && !base.endsWith("/")) base += "/";
2005
2081
  return resolve$1(input, base);
2006
2082
  }
@@ -2122,8 +2198,8 @@ var TraceMap = class {
2122
2198
  this.sources = sources;
2123
2199
  this.sourcesContent = sourcesContent;
2124
2200
  this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
2125
- const from = resolve(sourceRoot || "", stripFilename(mapUrl));
2126
- this.resolvedSources = sources.map((s) => resolve(s || "", from));
2201
+ const from = resolve$2(sourceRoot || "", stripFilename(mapUrl));
2202
+ this.resolvedSources = sources.map((s) => resolve$2(s || "", from));
2127
2203
  const { mappings } = parsed;
2128
2204
  if (typeof mappings === "string") {
2129
2205
  this._encoded = mappings;
@@ -2307,7 +2383,7 @@ function parseSingleV8Stack(raw) {
2307
2383
  if (!file || !lineNumber || !columnNumber) return null;
2308
2384
  if (method.startsWith("async ")) method = method.slice(6);
2309
2385
  if (file.startsWith("file://")) file = file.slice(7);
2310
- file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve$2(file);
2386
+ file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file);
2311
2387
  if (method) method = method.replace(/__vite_ssr_import_\d+__\./g, "");
2312
2388
  return {
2313
2389
  method,
@@ -2331,6 +2407,7 @@ function parseStacktrace(stack, options = {}) {
2331
2407
  const fileUrl = stack$1.file.startsWith("file://") ? stack$1.file : `file://${stack$1.file}`;
2332
2408
  const sourceRootUrl = map$1.sourceRoot ? new URL(map$1.sourceRoot, fileUrl) : fileUrl;
2333
2409
  file = new URL(source, sourceRootUrl).pathname;
2410
+ if (file.match(/\/\w:\//)) file = file.slice(1);
2334
2411
  }
2335
2412
  if (shouldFilter(ignoreStackEntries, file)) return null;
2336
2413
  if (line != null && column != null) return {
@@ -2354,14 +2431,14 @@ function parseV8Stacktrace(stack) {
2354
2431
  function parseErrorStacktrace(e, options = {}) {
2355
2432
  if (!e || isPrimitive(e)) return [];
2356
2433
  if (e.stacks) return e.stacks;
2357
- const stackStr = e.stack || e.stackStr || "";
2358
- let stackFrames = parseStacktrace(stackStr, options);
2434
+ const stackStr = e.stack || "";
2435
+ let stackFrames = typeof stackStr === "string" ? parseStacktrace(stackStr, options) : [];
2359
2436
  if (!stackFrames.length) {
2360
2437
  const e_ = e;
2361
2438
  if (e_.fileName != null && e_.lineNumber != null && e_.columnNumber != null) stackFrames = parseStacktrace(`${e_.fileName}:${e_.lineNumber}:${e_.columnNumber}`, options);
2362
2439
  if (e_.sourceURL != null && e_.line != null && e_._column != null) stackFrames = parseStacktrace(`${e_.sourceURL}:${e_.line}:${e_.column}`, options);
2363
2440
  }
2364
- if (options.frameFilter) stackFrames = stackFrames.filter((f$2) => options.frameFilter(e, f$2) !== false);
2441
+ if (options.frameFilter) stackFrames = stackFrames.filter((f$1) => options.frameFilter(e, f$1) !== false);
2365
2442
  e.stacks = stackFrames;
2366
2443
  return stackFrames;
2367
2444
  }
@@ -2382,8 +2459,8 @@ try {
2382
2459
  nodeInspect = false;
2383
2460
  }
2384
2461
  const { AsymmetricMatcher: AsymmetricMatcher$1, DOMCollection: DOMCollection$1, DOMElement: DOMElement$1, Immutable: Immutable$1, ReactElement: ReactElement$1, ReactTestComponent: ReactTestComponent$1 } = require_dist.plugins;
2385
- function getDefaultExportFromCjs(x$1) {
2386
- return x$1 && x$1.__esModule && Object.prototype.hasOwnProperty.call(x$1, "default") ? x$1["default"] : x$1;
2462
+ function getDefaultExportFromCjs$1(x) {
2463
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2387
2464
  }
2388
2465
  var jsTokens_1;
2389
2466
  var hasRequiredJsTokens;
@@ -2875,20 +2952,20 @@ function C(n = false) {
2875
2952
  }
2876
2953
  function p(n = false) {
2877
2954
  let e = C(n), i = (r, t, c, o) => {
2878
- let l$1 = "", s = 0;
2955
+ let l = "", s = 0;
2879
2956
  do
2880
- l$1 += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);
2957
+ l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);
2881
2958
  while (~o);
2882
- return l$1 + r.substring(s);
2959
+ return l + r.substring(s);
2883
2960
  }, g = (r, t, c = r) => {
2884
- let o = (l$1) => {
2885
- let s = String(l$1), b = s.indexOf(t, r.length);
2961
+ let o = (l) => {
2962
+ let s = String(l), b = s.indexOf(t, r.length);
2886
2963
  return ~b ? r + i(s, t, c, b) + t : r + s + t;
2887
2964
  };
2888
2965
  return o.open = r, o.close = t, o;
2889
- }, u$2 = { isColorSupported: e }, d$1 = (r) => `\x1B[${r}m`;
2890
- for (let [r, t] of h) u$2[r] = e ? g(d$1(t[0]), d$1(t[1]), t[2]) : a;
2891
- return u$2;
2966
+ }, u$1 = { isColorSupported: e }, d = (r) => `\x1B[${r}m`;
2967
+ for (let [r, t] of h) u$1[r] = e ? g(d(t[0]), d(t[1]), t[2]) : a;
2968
+ return u$1;
2892
2969
  }
2893
2970
  p();
2894
2971
  const lineSplitRE = /\r?\n/;
@@ -2914,17 +2991,9 @@ function offsetToLineNumber(source, offset) {
2914
2991
  return line + 1;
2915
2992
  }
2916
2993
  async function saveInlineSnapshots(environment, snapshots) {
2917
- const MagicString = (await Promise.resolve().then(
2918
- // 64 possible chars.
2919
- // z is 122 in ASCII
2920
- // -
2921
- // 0-9
2922
- // A-Z
2923
- // a-z
2924
- function() {
2925
- return require("./magic-string.es-m-ldRjOa.cjs");
2926
- }
2927
- )).default;
2994
+ const MagicString = (await Promise.resolve().then(function() {
2995
+ return require("./magic-string.es-CybcVAw7.cjs");
2996
+ })).default;
2928
2997
  const files = new Set(snapshots.map((i) => i.file));
2929
2998
  await Promise.all(Array.from(files).map(async (file) => {
2930
2999
  const snaps = snapshots.filter((i) => i.file === file);
@@ -3076,7 +3145,7 @@ function requireNaturalCompare() {
3076
3145
  return naturalCompare$1.exports;
3077
3146
  }
3078
3147
  var naturalCompareExports = requireNaturalCompare();
3079
- var naturalCompare = /* @__PURE__ */ getDefaultExportFromCjs(naturalCompareExports);
3148
+ var naturalCompare = /* @__PURE__ */ getDefaultExportFromCjs$1(naturalCompareExports);
3080
3149
  const serialize$1 = (val, config, indentation, depth, refs, printer) => {
3081
3150
  const name = val.getMockName();
3082
3151
  const nameString = name === "vi.fn()" ? "" : ` ${name}`;
@@ -3226,12 +3295,12 @@ var CounterMap = class extends DefaultMap {
3226
3295
  total() {
3227
3296
  if (typeof this._total !== "undefined") return this._total;
3228
3297
  let total = 0;
3229
- for (const x$1 of this.values()) total += x$1;
3298
+ for (const x of this.values()) total += x;
3230
3299
  return total;
3231
3300
  }
3232
3301
  };
3233
- function isSameStackPosition(x$1, y$1) {
3234
- return x$1.file === y$1.file && x$1.column === y$1.column && x$1.line === y$1.line;
3302
+ function isSameStackPosition(x, y) {
3303
+ return x.file === y.file && x.column === y.column && x.line === y.line;
3235
3304
  }
3236
3305
  var SnapshotState = class SnapshotState {
3237
3306
  _counters = new CounterMap();
@@ -3513,7 +3582,7 @@ function createMismatchError(message, expand, actual, expected) {
3513
3582
  return error;
3514
3583
  }
3515
3584
  var SnapshotClient = class {
3516
- snapshotStateMap = new Map();
3585
+ snapshotStateMap = /* @__PURE__ */ new Map();
3517
3586
  constructor(options = {}) {
3518
3587
  this.options = options;
3519
3588
  }
@@ -3587,11 +3656,11 @@ var SnapshotClient = class {
3587
3656
  };
3588
3657
 
3589
3658
  //#endregion
3590
- //#region ../../node_modules/.pnpm/vitest@3.1.3_@types+node@22.15.15_jiti@2.4.2_lightningcss@1.30.1_msw@2.7.6_@types+node@_3856721054873de6ef404598c5d8acc5/node_modules/vitest/dist/chunks/date.CDOsz-HY.js
3659
+ //#region ../../node_modules/.pnpm/vitest@3.2.0_@types+node@22.15.29_jiti@2.4.2_lightningcss@1.30.1_msw@2.8.7_@types+node@_9eeb862be92f04c38a20bffaf3a72b73/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
3591
3660
  const RealDate = Date;
3592
3661
  let now = null;
3593
3662
  var MockDate = class MockDate extends RealDate {
3594
- constructor(y$1, m$1, d$1, h$1, M, s, ms) {
3663
+ constructor(y, m, d, h$1, M, s, ms) {
3595
3664
  super();
3596
3665
  let date;
3597
3666
  switch (arguments.length) {
@@ -3600,15 +3669,15 @@ var MockDate = class MockDate extends RealDate {
3600
3669
  else date = new RealDate();
3601
3670
  break;
3602
3671
  case 1:
3603
- date = new RealDate(y$1);
3672
+ date = new RealDate(y);
3604
3673
  break;
3605
3674
  default:
3606
- d$1 = typeof d$1 === "undefined" ? 1 : d$1;
3675
+ d = typeof d === "undefined" ? 1 : d;
3607
3676
  h$1 = h$1 || 0;
3608
3677
  M = M || 0;
3609
3678
  s = s || 0;
3610
3679
  ms = ms || 0;
3611
- date = new RealDate(y$1, m$1, d$1, h$1, M, s, ms);
3680
+ date = new RealDate(y, m, d, h$1, M, s, ms);
3612
3681
  break;
3613
3682
  }
3614
3683
  Object.setPrototypeOf(date, MockDate.prototype);
@@ -3636,7 +3705,7 @@ function resetDate() {
3636
3705
  }
3637
3706
 
3638
3707
  //#endregion
3639
- //#region ../../node_modules/.pnpm/vitest@3.1.3_@types+node@22.15.15_jiti@2.4.2_lightningcss@1.30.1_msw@2.7.6_@types+node@_3856721054873de6ef404598c5d8acc5/node_modules/vitest/dist/chunks/vi.ClIskdbk.js
3708
+ //#region ../../node_modules/.pnpm/vitest@3.2.0_@types+node@22.15.29_jiti@2.4.2_lightningcss@1.30.1_msw@2.8.7_@types+node@_9eeb862be92f04c38a20bffaf3a72b73/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
3640
3709
  const unsupported = [
3641
3710
  "matchSnapshot",
3642
3711
  "toMatchSnapshot",
@@ -3782,7 +3851,7 @@ function requireChaiSubset() {
3782
3851
  return chaiSubset$1.exports;
3783
3852
  }
3784
3853
  var chaiSubsetExports = requireChaiSubset();
3785
- var Subset = /* @__PURE__ */ getDefaultExportFromCjs$1(chaiSubsetExports);
3854
+ var Subset = /* @__PURE__ */ getDefaultExportFromCjs(chaiSubsetExports);
3786
3855
  function createAssertionMessage(util, assertion, hasArgs) {
3787
3856
  const not = util.flag(assertion, "negate") ? "not." : "";
3788
3857
  const name = `${util.flag(assertion, "_name")}(expected)`;
@@ -3974,23 +4043,12 @@ function createExpect(test$1) {
3974
4043
  const expect$1 = (value, message) => {
3975
4044
  const { assertionCalls } = getState(expect$1);
3976
4045
  setState({ assertionCalls: assertionCalls + 1 }, expect$1);
3977
- const assert$1 = require_dist.expect(value, message);
4046
+ const assert$2 = require_dist.expect(value, message);
3978
4047
  const _test = test$1 || require_dist.getCurrentTest();
3979
- if (_test) return assert$1.withTest(_test);
3980
- else return assert$1;
4048
+ if (_test) return assert$2.withTest(_test);
4049
+ else return assert$2;
3981
4050
  };
3982
- Object.assign(
3983
- expect$1,
3984
- // eslint-disable-line id-blacklist
3985
- //see https://heycam.github.io/webidl/#abstract-opdef-converttoint
3986
- // arbitrarily large number to avoid collisions with native timer IDs
3987
- // [millis, nanoremainder]
3988
- // eslint-disable-line
3989
- // const for now
3990
- // explicitly drop additional arguments
3991
- // do it all again - for the remainder of the requested range
3992
- require_dist.expect
3993
- );
4051
+ Object.assign(expect$1, require_dist.expect);
3994
4052
  Object.assign(expect$1, globalThis[ASYMMETRIC_MATCHERS_OBJECT]);
3995
4053
  expect$1.getState = () => getState(expect$1);
3996
4054
  expect$1.setState = (state) => setState(state, expect$1);
@@ -4137,9 +4195,9 @@ function requireCalledInOrder() {
4137
4195
  /**
4138
4196
  * @private
4139
4197
  */
4140
- function checkAdjacentCalls(callMap, spy, index, spies) {
4198
+ function checkAdjacentCalls(callMap, spy, index, spies$1) {
4141
4199
  var calledBeforeNext = true;
4142
- if (index !== spies.length - 1) calledBeforeNext = spy.calledBefore(spies[index + 1]);
4200
+ if (index !== spies$1.length - 1) calledBeforeNext = spy.calledBefore(spies$1[index + 1]);
4143
4201
  if (hasCallsLeft(callMap, spy) && calledBeforeNext) {
4144
4202
  callMap[spy.id] += 1;
4145
4203
  return true;
@@ -4158,9 +4216,9 @@ function requireCalledInOrder() {
4158
4216
  * @param {SinonProxy[] | SinonProxy} spies An array of proxies, or several proxies as arguments
4159
4217
  * @returns {boolean} true when spies are called in order, false otherwise
4160
4218
  */
4161
- function calledInOrder(spies) {
4219
+ function calledInOrder(spies$1) {
4162
4220
  var callMap = {};
4163
- var _spies = arguments.length > 1 ? arguments : spies;
4221
+ var _spies = arguments.length > 1 ? arguments : spies$1;
4164
4222
  return every$1(_spies, checkAdjacentCalls.bind(null, callMap));
4165
4223
  }
4166
4224
  calledInOrder_1 = calledInOrder;
@@ -4300,8 +4358,8 @@ function requireOrderByFirstCall() {
4300
4358
  * @param {SinonProxy[] | SinonProxy} spies
4301
4359
  * @returns {SinonProxy[]}
4302
4360
  */
4303
- function orderByFirstCall(spies) {
4304
- return sort$1(slice(spies), comparator);
4361
+ function orderByFirstCall(spies$1) {
4362
+ return sort$1(slice(spies$1), comparator);
4305
4363
  }
4306
4364
  orderByFirstCall_1 = orderByFirstCall;
4307
4365
  return orderByFirstCall_1;
@@ -4388,8 +4446,8 @@ function requireTypeDetect() {
4388
4446
  var symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== "undefined";
4389
4447
  var setEntriesExists = setExists && typeof Set.prototype.entries === "function";
4390
4448
  var mapEntriesExists = mapExists && typeof Map.prototype.entries === "function";
4391
- var setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());
4392
- var mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());
4449
+ var setIteratorPrototype = setEntriesExists && Object.getPrototypeOf((/* @__PURE__ */ new Set()).entries());
4450
+ var mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf((/* @__PURE__ */ new Map()).entries());
4393
4451
  var arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === "function";
4394
4452
  var arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());
4395
4453
  var stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === "function";
@@ -4716,15 +4774,15 @@ function requireFakeTimersSrc() {
4716
4774
  function parseTime(str) {
4717
4775
  if (!str) return 0;
4718
4776
  const strings = str.split(":");
4719
- const l$1 = strings.length;
4720
- let i = l$1;
4777
+ const l = strings.length;
4778
+ let i = l;
4721
4779
  let ms = 0;
4722
4780
  let parsed;
4723
- if (l$1 > 3 || !/^(\d\d:){0,2}\d\d?$/.test(str)) throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");
4781
+ if (l > 3 || !/^(\d\d:){0,2}\d\d?$/.test(str)) throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");
4724
4782
  while (i--) {
4725
4783
  parsed = parseInt(strings[i], 10);
4726
4784
  if (parsed >= 60) throw new Error(`Invalid time ${str}`);
4727
- ms += parsed * Math.pow(60, l$1 - i - 1);
4785
+ ms += parsed * Math.pow(60, l - i - 1);
4728
4786
  }
4729
4787
  return ms * 1e3;
4730
4788
  }
@@ -5079,10 +5137,10 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
5079
5137
  * @returns {Timer[]}
5080
5138
  */
5081
5139
  function uninstall(clock, config) {
5082
- let method, i, l$1;
5140
+ let method, i, l;
5083
5141
  const installedHrTime = "_hrtime";
5084
5142
  const installedNextTick = "_nextTick";
5085
- for (i = 0, l$1 = clock.methods.length; i < l$1; i++) {
5143
+ for (i = 0, l = clock.methods.length; i < l; i++) {
5086
5144
  method = clock.methods[i];
5087
5145
  if (method === "hrtime" && _global.process) _global.process.hrtime = clock[installedHrTime];
5088
5146
  else if (method === "nextTick" && _global.process) _global.process.nextTick = clock[installedNextTick];
@@ -5581,7 +5639,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
5581
5639
  });
5582
5640
  });
5583
5641
  };
5584
- clock.reset = function reset() {
5642
+ clock.reset = function reset$1() {
5585
5643
  nanos = 0;
5586
5644
  clock.timers = {};
5587
5645
  clock.jobs = [];
@@ -5638,13 +5696,13 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
5638
5696
  if (config.ignoreMissingTimers) return;
5639
5697
  throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${timer}'`);
5640
5698
  }
5641
- let i, l$1;
5699
+ let i, l;
5642
5700
  const clock = createClock(config.now, config.loopLimit);
5643
5701
  clock.shouldClearNativeTimers = config.shouldClearNativeTimers;
5644
5702
  clock.uninstall = function() {
5645
5703
  return uninstall(clock, config);
5646
5704
  };
5647
- clock.abortListenerMap = new Map();
5705
+ clock.abortListenerMap = /* @__PURE__ */ new Map();
5648
5706
  clock.methods = config.toFake || [];
5649
5707
  if (clock.methods.length === 0) clock.methods = Object.keys(timers);
5650
5708
  if (config.shouldAdvanceTime === true) {
@@ -5668,7 +5726,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);
5668
5726
  }
5669
5727
  if (_global === globalObject && timersModule) clock.timersModuleMethods = [];
5670
5728
  if (_global === globalObject && timersPromisesModule) clock.timersPromisesModuleMethods = [];
5671
- for (i = 0, l$1 = clock.methods.length; i < l$1; i++) {
5729
+ for (i = 0, l = clock.methods.length; i < l; i++) {
5672
5730
  const nameOfMethodToReplace = clock.methods[i];
5673
5731
  if (!isPresent[nameOfMethodToReplace]) {
5674
5732
  handleMissingTimer(nameOfMethodToReplace);
@@ -6083,8 +6141,8 @@ function createVitest() {
6083
6141
  global: globalThis,
6084
6142
  config: workerState.config.fakeTimers
6085
6143
  });
6086
- const _stubsGlobal = new Map();
6087
- const _stubsEnv = new Map();
6144
+ const _stubsGlobal = /* @__PURE__ */ new Map();
6145
+ const _stubsEnv = /* @__PURE__ */ new Map();
6088
6146
  const _envBooleans = [
6089
6147
  "PROD",
6090
6148
  "DEV",
@@ -6199,6 +6257,9 @@ function createVitest() {
6199
6257
  async importMock(path) {
6200
6258
  return _mocker().importMock(path, getImporter("importMock"));
6201
6259
  },
6260
+ mockObject(value) {
6261
+ return _mocker().mockObject({ value }).value;
6262
+ },
6202
6263
  mocked(item, _options = {}) {
6203
6264
  return item;
6204
6265
  },
@@ -6291,4 +6352,4 @@ Object.defineProperty(exports, 'globalExpect', {
6291
6352
  return globalExpect;
6292
6353
  }
6293
6354
  });
6294
- //# sourceMappingURL=vi.ClIskdbk-Bs263gvI.cjs.map
6355
+ //# sourceMappingURL=vi.bdSIJ99Y-Dft_B_Ta.cjs.map