@mastra/evals 0.10.3 → 0.10.4

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.
@@ -1,6 +1,425 @@
1
1
  import { __commonJS, __require, __export, __toESM } from './chunk-4VNS5WPM.js';
2
2
  import { isatty } from 'tty';
3
3
 
4
+ // ../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js
5
+ var require_js_tokens = __commonJS({
6
+ "../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js"(exports, module) {
7
+ var HashbangComment;
8
+ var Identifier;
9
+ var JSXIdentifier;
10
+ var JSXPunctuator;
11
+ var JSXString;
12
+ var JSXText;
13
+ var KeywordsWithExpressionAfter;
14
+ var KeywordsWithNoLineTerminatorAfter;
15
+ var LineTerminatorSequence;
16
+ var MultiLineComment;
17
+ var Newline;
18
+ var NumericLiteral;
19
+ var Punctuator;
20
+ var RegularExpressionLiteral;
21
+ var SingleLineComment;
22
+ var StringLiteral;
23
+ var Template;
24
+ var TokensNotPrecedingObjectLiteral;
25
+ var TokensPrecedingExpression;
26
+ var WhiteSpace;
27
+ RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;
28
+ Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
29
+ Identifier = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;
30
+ StringLiteral = /(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;
31
+ NumericLiteral = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;
32
+ Template = /[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;
33
+ WhiteSpace = /[\t\v\f\ufeff\p{Zs}]+/yu;
34
+ LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y;
35
+ MultiLineComment = /\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;
36
+ SingleLineComment = /\/\/.*/y;
37
+ HashbangComment = /^#!.*/;
38
+ JSXPunctuator = /[<>.:={}]|\/(?![\/*])/y;
39
+ JSXIdentifier = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;
40
+ JSXString = /(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;
41
+ JSXText = /[^<>{}]+/y;
42
+ TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;
43
+ TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;
44
+ KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;
45
+ KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;
46
+ Newline = RegExp(LineTerminatorSequence.source);
47
+ module.exports = function* (input, { jsx = false } = {}) {
48
+ var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;
49
+ ({ length } = input);
50
+ lastIndex = 0;
51
+ lastSignificantToken = "";
52
+ stack = [
53
+ { tag: "JS" }
54
+ ];
55
+ braces = [];
56
+ parenNesting = 0;
57
+ postfixIncDec = false;
58
+ if (match = HashbangComment.exec(input)) {
59
+ yield {
60
+ type: "HashbangComment",
61
+ value: match[0]
62
+ };
63
+ lastIndex = match[0].length;
64
+ }
65
+ while (lastIndex < length) {
66
+ mode = stack[stack.length - 1];
67
+ switch (mode.tag) {
68
+ case "JS":
69
+ case "JSNonExpressionParen":
70
+ case "InterpolationInTemplate":
71
+ case "InterpolationInJSX":
72
+ if (input[lastIndex] === "/" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {
73
+ RegularExpressionLiteral.lastIndex = lastIndex;
74
+ if (match = RegularExpressionLiteral.exec(input)) {
75
+ lastIndex = RegularExpressionLiteral.lastIndex;
76
+ lastSignificantToken = match[0];
77
+ postfixIncDec = true;
78
+ yield {
79
+ type: "RegularExpressionLiteral",
80
+ value: match[0],
81
+ closed: match[1] !== void 0 && match[1] !== "\\"
82
+ };
83
+ continue;
84
+ }
85
+ }
86
+ Punctuator.lastIndex = lastIndex;
87
+ if (match = Punctuator.exec(input)) {
88
+ punctuator = match[0];
89
+ nextLastIndex = Punctuator.lastIndex;
90
+ nextLastSignificantToken = punctuator;
91
+ switch (punctuator) {
92
+ case "(":
93
+ if (lastSignificantToken === "?NonExpressionParenKeyword") {
94
+ stack.push({
95
+ tag: "JSNonExpressionParen",
96
+ nesting: parenNesting
97
+ });
98
+ }
99
+ parenNesting++;
100
+ postfixIncDec = false;
101
+ break;
102
+ case ")":
103
+ parenNesting--;
104
+ postfixIncDec = true;
105
+ if (mode.tag === "JSNonExpressionParen" && parenNesting === mode.nesting) {
106
+ stack.pop();
107
+ nextLastSignificantToken = "?NonExpressionParenEnd";
108
+ postfixIncDec = false;
109
+ }
110
+ break;
111
+ case "{":
112
+ Punctuator.lastIndex = 0;
113
+ isExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken));
114
+ braces.push(isExpression);
115
+ postfixIncDec = false;
116
+ break;
117
+ case "}":
118
+ switch (mode.tag) {
119
+ case "InterpolationInTemplate":
120
+ if (braces.length === mode.nesting) {
121
+ Template.lastIndex = lastIndex;
122
+ match = Template.exec(input);
123
+ lastIndex = Template.lastIndex;
124
+ lastSignificantToken = match[0];
125
+ if (match[1] === "${") {
126
+ lastSignificantToken = "?InterpolationInTemplate";
127
+ postfixIncDec = false;
128
+ yield {
129
+ type: "TemplateMiddle",
130
+ value: match[0]
131
+ };
132
+ } else {
133
+ stack.pop();
134
+ postfixIncDec = true;
135
+ yield {
136
+ type: "TemplateTail",
137
+ value: match[0],
138
+ closed: match[1] === "`"
139
+ };
140
+ }
141
+ continue;
142
+ }
143
+ break;
144
+ case "InterpolationInJSX":
145
+ if (braces.length === mode.nesting) {
146
+ stack.pop();
147
+ lastIndex += 1;
148
+ lastSignificantToken = "}";
149
+ yield {
150
+ type: "JSXPunctuator",
151
+ value: "}"
152
+ };
153
+ continue;
154
+ }
155
+ }
156
+ postfixIncDec = braces.pop();
157
+ nextLastSignificantToken = postfixIncDec ? "?ExpressionBraceEnd" : "}";
158
+ break;
159
+ case "]":
160
+ postfixIncDec = true;
161
+ break;
162
+ case "++":
163
+ case "--":
164
+ nextLastSignificantToken = postfixIncDec ? "?PostfixIncDec" : "?UnaryIncDec";
165
+ break;
166
+ case "<":
167
+ if (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {
168
+ stack.push({ tag: "JSXTag" });
169
+ lastIndex += 1;
170
+ lastSignificantToken = "<";
171
+ yield {
172
+ type: "JSXPunctuator",
173
+ value: punctuator
174
+ };
175
+ continue;
176
+ }
177
+ postfixIncDec = false;
178
+ break;
179
+ default:
180
+ postfixIncDec = false;
181
+ }
182
+ lastIndex = nextLastIndex;
183
+ lastSignificantToken = nextLastSignificantToken;
184
+ yield {
185
+ type: "Punctuator",
186
+ value: punctuator
187
+ };
188
+ continue;
189
+ }
190
+ Identifier.lastIndex = lastIndex;
191
+ if (match = Identifier.exec(input)) {
192
+ lastIndex = Identifier.lastIndex;
193
+ nextLastSignificantToken = match[0];
194
+ switch (match[0]) {
195
+ case "for":
196
+ case "if":
197
+ case "while":
198
+ case "with":
199
+ if (lastSignificantToken !== "." && lastSignificantToken !== "?.") {
200
+ nextLastSignificantToken = "?NonExpressionParenKeyword";
201
+ }
202
+ }
203
+ lastSignificantToken = nextLastSignificantToken;
204
+ postfixIncDec = !KeywordsWithExpressionAfter.test(match[0]);
205
+ yield {
206
+ type: match[1] === "#" ? "PrivateIdentifier" : "IdentifierName",
207
+ value: match[0]
208
+ };
209
+ continue;
210
+ }
211
+ StringLiteral.lastIndex = lastIndex;
212
+ if (match = StringLiteral.exec(input)) {
213
+ lastIndex = StringLiteral.lastIndex;
214
+ lastSignificantToken = match[0];
215
+ postfixIncDec = true;
216
+ yield {
217
+ type: "StringLiteral",
218
+ value: match[0],
219
+ closed: match[2] !== void 0
220
+ };
221
+ continue;
222
+ }
223
+ NumericLiteral.lastIndex = lastIndex;
224
+ if (match = NumericLiteral.exec(input)) {
225
+ lastIndex = NumericLiteral.lastIndex;
226
+ lastSignificantToken = match[0];
227
+ postfixIncDec = true;
228
+ yield {
229
+ type: "NumericLiteral",
230
+ value: match[0]
231
+ };
232
+ continue;
233
+ }
234
+ Template.lastIndex = lastIndex;
235
+ if (match = Template.exec(input)) {
236
+ lastIndex = Template.lastIndex;
237
+ lastSignificantToken = match[0];
238
+ if (match[1] === "${") {
239
+ lastSignificantToken = "?InterpolationInTemplate";
240
+ stack.push({
241
+ tag: "InterpolationInTemplate",
242
+ nesting: braces.length
243
+ });
244
+ postfixIncDec = false;
245
+ yield {
246
+ type: "TemplateHead",
247
+ value: match[0]
248
+ };
249
+ } else {
250
+ postfixIncDec = true;
251
+ yield {
252
+ type: "NoSubstitutionTemplate",
253
+ value: match[0],
254
+ closed: match[1] === "`"
255
+ };
256
+ }
257
+ continue;
258
+ }
259
+ break;
260
+ case "JSXTag":
261
+ case "JSXTagEnd":
262
+ JSXPunctuator.lastIndex = lastIndex;
263
+ if (match = JSXPunctuator.exec(input)) {
264
+ lastIndex = JSXPunctuator.lastIndex;
265
+ nextLastSignificantToken = match[0];
266
+ switch (match[0]) {
267
+ case "<":
268
+ stack.push({ tag: "JSXTag" });
269
+ break;
270
+ case ">":
271
+ stack.pop();
272
+ if (lastSignificantToken === "/" || mode.tag === "JSXTagEnd") {
273
+ nextLastSignificantToken = "?JSX";
274
+ postfixIncDec = true;
275
+ } else {
276
+ stack.push({ tag: "JSXChildren" });
277
+ }
278
+ break;
279
+ case "{":
280
+ stack.push({
281
+ tag: "InterpolationInJSX",
282
+ nesting: braces.length
283
+ });
284
+ nextLastSignificantToken = "?InterpolationInJSX";
285
+ postfixIncDec = false;
286
+ break;
287
+ case "/":
288
+ if (lastSignificantToken === "<") {
289
+ stack.pop();
290
+ if (stack[stack.length - 1].tag === "JSXChildren") {
291
+ stack.pop();
292
+ }
293
+ stack.push({ tag: "JSXTagEnd" });
294
+ }
295
+ }
296
+ lastSignificantToken = nextLastSignificantToken;
297
+ yield {
298
+ type: "JSXPunctuator",
299
+ value: match[0]
300
+ };
301
+ continue;
302
+ }
303
+ JSXIdentifier.lastIndex = lastIndex;
304
+ if (match = JSXIdentifier.exec(input)) {
305
+ lastIndex = JSXIdentifier.lastIndex;
306
+ lastSignificantToken = match[0];
307
+ yield {
308
+ type: "JSXIdentifier",
309
+ value: match[0]
310
+ };
311
+ continue;
312
+ }
313
+ JSXString.lastIndex = lastIndex;
314
+ if (match = JSXString.exec(input)) {
315
+ lastIndex = JSXString.lastIndex;
316
+ lastSignificantToken = match[0];
317
+ yield {
318
+ type: "JSXString",
319
+ value: match[0],
320
+ closed: match[2] !== void 0
321
+ };
322
+ continue;
323
+ }
324
+ break;
325
+ case "JSXChildren":
326
+ JSXText.lastIndex = lastIndex;
327
+ if (match = JSXText.exec(input)) {
328
+ lastIndex = JSXText.lastIndex;
329
+ lastSignificantToken = match[0];
330
+ yield {
331
+ type: "JSXText",
332
+ value: match[0]
333
+ };
334
+ continue;
335
+ }
336
+ switch (input[lastIndex]) {
337
+ case "<":
338
+ stack.push({ tag: "JSXTag" });
339
+ lastIndex++;
340
+ lastSignificantToken = "<";
341
+ yield {
342
+ type: "JSXPunctuator",
343
+ value: "<"
344
+ };
345
+ continue;
346
+ case "{":
347
+ stack.push({
348
+ tag: "InterpolationInJSX",
349
+ nesting: braces.length
350
+ });
351
+ lastIndex++;
352
+ lastSignificantToken = "?InterpolationInJSX";
353
+ postfixIncDec = false;
354
+ yield {
355
+ type: "JSXPunctuator",
356
+ value: "{"
357
+ };
358
+ continue;
359
+ }
360
+ }
361
+ WhiteSpace.lastIndex = lastIndex;
362
+ if (match = WhiteSpace.exec(input)) {
363
+ lastIndex = WhiteSpace.lastIndex;
364
+ yield {
365
+ type: "WhiteSpace",
366
+ value: match[0]
367
+ };
368
+ continue;
369
+ }
370
+ LineTerminatorSequence.lastIndex = lastIndex;
371
+ if (match = LineTerminatorSequence.exec(input)) {
372
+ lastIndex = LineTerminatorSequence.lastIndex;
373
+ postfixIncDec = false;
374
+ if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {
375
+ lastSignificantToken = "?NoLineTerminatorHere";
376
+ }
377
+ yield {
378
+ type: "LineTerminatorSequence",
379
+ value: match[0]
380
+ };
381
+ continue;
382
+ }
383
+ MultiLineComment.lastIndex = lastIndex;
384
+ if (match = MultiLineComment.exec(input)) {
385
+ lastIndex = MultiLineComment.lastIndex;
386
+ if (Newline.test(match[0])) {
387
+ postfixIncDec = false;
388
+ if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {
389
+ lastSignificantToken = "?NoLineTerminatorHere";
390
+ }
391
+ }
392
+ yield {
393
+ type: "MultiLineComment",
394
+ value: match[0],
395
+ closed: match[1] !== void 0
396
+ };
397
+ continue;
398
+ }
399
+ SingleLineComment.lastIndex = lastIndex;
400
+ if (match = SingleLineComment.exec(input)) {
401
+ lastIndex = SingleLineComment.lastIndex;
402
+ postfixIncDec = false;
403
+ yield {
404
+ type: "SingleLineComment",
405
+ value: match[0]
406
+ };
407
+ continue;
408
+ }
409
+ firstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex));
410
+ lastIndex += firstCodePoint.length;
411
+ lastSignificantToken = firstCodePoint;
412
+ postfixIncDec = false;
413
+ yield {
414
+ type: mode.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid",
415
+ value: firstCodePoint
416
+ };
417
+ }
418
+ return void 0;
419
+ };
420
+ }
421
+ });
422
+
4
423
  // ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js
5
424
  var require_branding = __commonJS({
6
425
  "../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js"(exports) {
@@ -189,7 +608,7 @@ function p(n = false) {
189
608
  var r = process.env.FORCE_TTY !== void 0 || isatty(1);
190
609
  var u = p(r);
191
610
 
192
- // ../../node_modules/.pnpm/@vitest+pretty-format@3.2.2/node_modules/@vitest/pretty-format/dist/index.js
611
+ // ../../node_modules/.pnpm/@vitest+pretty-format@3.2.3/node_modules/@vitest/pretty-format/dist/index.js
193
612
  function _mergeNamespaces(n, m2) {
194
613
  m2.forEach(function(e) {
195
614
  e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
@@ -1986,7 +2405,7 @@ function inspect(value, opts = {}) {
1986
2405
  return options.stylize(String(value), type3);
1987
2406
  }
1988
2407
 
1989
- // ../../node_modules/.pnpm/@vitest+utils@3.2.2/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
2408
+ // ../../node_modules/.pnpm/@vitest+utils@3.2.3/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
1990
2409
  var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;
1991
2410
  var PLUGINS = [
1992
2411
  ReactTestComponent,
@@ -2144,7 +2563,7 @@ function getDefaultExportFromCjs2(x) {
2144
2563
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2145
2564
  }
2146
2565
 
2147
- // ../../node_modules/.pnpm/@vitest+utils@3.2.2/node_modules/@vitest/utils/dist/helpers.js
2566
+ // ../../node_modules/.pnpm/@vitest+utils@3.2.3/node_modules/@vitest/utils/dist/helpers.js
2148
2567
  function createSimpleStackTrace(options) {
2149
2568
  const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {};
2150
2569
  const limit = Error.stackTraceLimit;
@@ -2350,7 +2769,7 @@ function getSafeTimers() {
2350
2769
  };
2351
2770
  }
2352
2771
 
2353
- // ../../node_modules/.pnpm/@vitest+utils@3.2.2/node_modules/@vitest/utils/dist/diff.js
2772
+ // ../../node_modules/.pnpm/@vitest+utils@3.2.3/node_modules/@vitest/utils/dist/diff.js
2354
2773
  var DIFF_DELETE = -1;
2355
2774
  var DIFF_INSERT = 1;
2356
2775
  var DIFF_EQUAL = 0;
@@ -4103,7 +4522,7 @@ function isSpyFunction(obj) {
4103
4522
  return isMockFunction(obj) && "getOriginal" in obj[SYMBOL_STATE];
4104
4523
  }
4105
4524
 
4106
- // ../../node_modules/.pnpm/@vitest+spy@3.2.2/node_modules/@vitest/spy/dist/index.js
4525
+ // ../../node_modules/.pnpm/@vitest+spy@3.2.3/node_modules/@vitest/spy/dist/index.js
4107
4526
  var mocks = /* @__PURE__ */ new Set();
4108
4527
  function isMockFunction2(fn2) {
4109
4528
  return typeof fn2 === "function" && "_isMockFunction" in fn2 && fn2._isMockFunction;
@@ -4286,7 +4705,7 @@ function getDescriptor2(obj, method) {
4286
4705
  }
4287
4706
  }
4288
4707
 
4289
- // ../../node_modules/.pnpm/@vitest+utils@3.2.2/node_modules/@vitest/utils/dist/error.js
4708
+ // ../../node_modules/.pnpm/@vitest+utils@3.2.3/node_modules/@vitest/utils/dist/error.js
4290
4709
  var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
4291
4710
  var IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
4292
4711
  function isImmutable(v) {
@@ -8429,7 +8848,7 @@ function use(fn2) {
8429
8848
  }
8430
8849
  __name(use, "use");
8431
8850
 
8432
- // ../../node_modules/.pnpm/@vitest+expect@3.2.2/node_modules/@vitest/expect/dist/index.js
8851
+ // ../../node_modules/.pnpm/@vitest+expect@3.2.3/node_modules/@vitest/expect/dist/index.js
8433
8852
  var MATCHERS_OBJECT = Symbol.for("matchers-object");
8434
8853
  var JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object");
8435
8854
  var GLOBAL_EXPECT = Symbol.for("expect-global");
@@ -10301,6 +10720,83 @@ function parseSingleV8Stack(raw) {
10301
10720
  };
10302
10721
  }
10303
10722
 
10723
+ // ../../node_modules/.pnpm/strip-literal@3.0.0/node_modules/strip-literal/dist/index.mjs
10724
+ var import_js_tokens = __toESM(require_js_tokens(), 1);
10725
+ function stripLiteralJsTokens(code, options) {
10726
+ const FILL = " ";
10727
+ const FILL_COMMENT = " ";
10728
+ let result = "";
10729
+ const tokens = [];
10730
+ for (const token of (0, import_js_tokens.default)(code, { jsx: false })) {
10731
+ tokens.push(token);
10732
+ if (token.type === "SingleLineComment") {
10733
+ result += FILL_COMMENT.repeat(token.value.length);
10734
+ continue;
10735
+ }
10736
+ if (token.type === "MultiLineComment") {
10737
+ result += token.value.replace(/[^\n]/g, FILL_COMMENT);
10738
+ continue;
10739
+ }
10740
+ if (token.type === "StringLiteral") {
10741
+ if (!token.closed) {
10742
+ result += token.value;
10743
+ continue;
10744
+ }
10745
+ const body = token.value.slice(1, -1);
10746
+ {
10747
+ result += token.value[0] + FILL.repeat(body.length) + token.value[token.value.length - 1];
10748
+ continue;
10749
+ }
10750
+ }
10751
+ if (token.type === "NoSubstitutionTemplate") {
10752
+ const body = token.value.slice(1, -1);
10753
+ {
10754
+ result += `\`${body.replace(/[^\n]/g, FILL)}\``;
10755
+ continue;
10756
+ }
10757
+ }
10758
+ if (token.type === "RegularExpressionLiteral") {
10759
+ const body = token.value;
10760
+ {
10761
+ result += body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${FILL.repeat($1.length)}/${$2}`);
10762
+ continue;
10763
+ }
10764
+ }
10765
+ if (token.type === "TemplateHead") {
10766
+ const body = token.value.slice(1, -2);
10767
+ {
10768
+ result += `\`${body.replace(/[^\n]/g, FILL)}\${`;
10769
+ continue;
10770
+ }
10771
+ }
10772
+ if (token.type === "TemplateTail") {
10773
+ const body = token.value.slice(0, -2);
10774
+ {
10775
+ result += `}${body.replace(/[^\n]/g, FILL)}\``;
10776
+ continue;
10777
+ }
10778
+ }
10779
+ if (token.type === "TemplateMiddle") {
10780
+ const body = token.value.slice(1, -2);
10781
+ {
10782
+ result += `}${body.replace(/[^\n]/g, FILL)}\${`;
10783
+ continue;
10784
+ }
10785
+ }
10786
+ result += token.value;
10787
+ }
10788
+ return {
10789
+ result,
10790
+ tokens
10791
+ };
10792
+ }
10793
+ function stripLiteral(code, options) {
10794
+ return stripLiteralDetailed(code).result;
10795
+ }
10796
+ function stripLiteralDetailed(code, options) {
10797
+ return stripLiteralJsTokens(code);
10798
+ }
10799
+
10304
10800
  // ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
10305
10801
  var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
10306
10802
  function normalizeWindowsPath2(input = "") {
@@ -10398,7 +10894,7 @@ var isAbsolute2 = function(p3) {
10398
10894
  return _IS_ABSOLUTE_RE2.test(p3);
10399
10895
  };
10400
10896
 
10401
- // ../../node_modules/.pnpm/@vitest+runner@3.2.2/node_modules/@vitest/runner/dist/chunk-hooks.js
10897
+ // ../../node_modules/.pnpm/@vitest+runner@3.2.3/node_modules/@vitest/runner/dist/chunk-hooks.js
10402
10898
  var PendingError = class extends Error {
10403
10899
  code = "VITEST_PENDING";
10404
10900
  taskId;
@@ -10629,7 +11125,7 @@ function resolveDeps(fixtures, depSet = /* @__PURE__ */ new Set(), pendingFixtur
10629
11125
  return pendingFixtures;
10630
11126
  }
10631
11127
  function getUsedProps(fn2) {
10632
- let fnString = fn2.toString();
11128
+ let fnString = stripLiteral(fn2.toString());
10633
11129
  if (/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(fnString)) {
10634
11130
  fnString = fnString.split(/__async\((?:this|null),/)[1];
10635
11131
  }
@@ -11207,7 +11703,7 @@ function withTimeout(fn2, timeout, isHook = false, stackTraceError, onTimeout) {
11207
11703
  if (timeout <= 0 || timeout === Number.POSITIVE_INFINITY) {
11208
11704
  return fn2;
11209
11705
  }
11210
- const { setTimeout, clearTimeout } = getSafeTimers();
11706
+ const { setTimeout: setTimeout2, clearTimeout: clearTimeout2 } = getSafeTimers();
11211
11707
  return function runWithTimeout(...args) {
11212
11708
  const startTime = now();
11213
11709
  const runner2 = getRunner();
@@ -11215,8 +11711,8 @@ function withTimeout(fn2, timeout, isHook = false, stackTraceError, onTimeout) {
11215
11711
  runner2._currentTaskTimeout = timeout;
11216
11712
  return new Promise((resolve_, reject_) => {
11217
11713
  var _timer$unref;
11218
- const timer = setTimeout(() => {
11219
- clearTimeout(timer);
11714
+ const timer = setTimeout2(() => {
11715
+ clearTimeout2(timer);
11220
11716
  rejectTimeoutError();
11221
11717
  }, timeout);
11222
11718
  (_timer$unref = timer.unref) === null || _timer$unref === void 0 ? void 0 : _timer$unref.call(timer);
@@ -11228,7 +11724,7 @@ function withTimeout(fn2, timeout, isHook = false, stackTraceError, onTimeout) {
11228
11724
  function resolve4(result) {
11229
11725
  runner2._currentTaskStartTime = void 0;
11230
11726
  runner2._currentTaskTimeout = void 0;
11231
- clearTimeout(timer);
11727
+ clearTimeout2(timer);
11232
11728
  if (now() - startTime >= timeout) {
11233
11729
  rejectTimeoutError();
11234
11730
  return;
@@ -11238,7 +11734,7 @@ function withTimeout(fn2, timeout, isHook = false, stackTraceError, onTimeout) {
11238
11734
  function reject(error) {
11239
11735
  runner2._currentTaskStartTime = void 0;
11240
11736
  runner2._currentTaskTimeout = void 0;
11241
- clearTimeout(timer);
11737
+ clearTimeout2(timer);
11242
11738
  reject_(error);
11243
11739
  }
11244
11740
  try {
@@ -11460,7 +11956,7 @@ function createTestHook(name, handler) {
11460
11956
  };
11461
11957
  }
11462
11958
 
11463
- // ../../node_modules/.pnpm/vitest@3.2.2_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_eb265836689cb09b255052147598b424/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js
11959
+ // ../../node_modules/.pnpm/vitest@3.2.3_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_3e45f0297eeb1f6a4ee30770ed0f557b/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js
11464
11960
  var NAME_WORKER_STATE = "__vitest_worker__";
11465
11961
  function getWorkerState() {
11466
11962
  const workerState = globalThis[NAME_WORKER_STATE];
@@ -11491,8 +11987,8 @@ function resetModules(modules, resetMocks = false) {
11491
11987
  });
11492
11988
  }
11493
11989
  function waitNextTick() {
11494
- const { setTimeout } = getSafeTimers();
11495
- return new Promise((resolve4) => setTimeout(resolve4, 0));
11990
+ const { setTimeout: setTimeout2 } = getSafeTimers();
11991
+ return new Promise((resolve4) => setTimeout2(resolve4, 0));
11496
11992
  }
11497
11993
  async function waitForImportsToResolve() {
11498
11994
  await waitNextTick();
@@ -11508,13 +12004,13 @@ async function waitForImportsToResolve() {
11508
12004
  await waitForImportsToResolve();
11509
12005
  }
11510
12006
 
11511
- // ../../node_modules/.pnpm/vitest@3.2.2_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_eb265836689cb09b255052147598b424/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
12007
+ // ../../node_modules/.pnpm/vitest@3.2.3_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_3e45f0297eeb1f6a4ee30770ed0f557b/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js
11512
12008
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
11513
12009
  function getDefaultExportFromCjs3(x) {
11514
12010
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11515
12011
  }
11516
12012
 
11517
- // ../../node_modules/.pnpm/@vitest+snapshot@3.2.2/node_modules/@vitest/snapshot/dist/index.js
12013
+ // ../../node_modules/.pnpm/@vitest+snapshot@3.2.3/node_modules/@vitest/snapshot/dist/index.js
11518
12014
  var comma2 = ",".charCodeAt(0);
11519
12015
  var chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
11520
12016
  var intToChar2 = new Uint8Array(64);
@@ -13142,7 +13638,7 @@ var SnapshotClient = class {
13142
13638
  }
13143
13639
  };
13144
13640
 
13145
- // ../../node_modules/.pnpm/vitest@3.2.2_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_eb265836689cb09b255052147598b424/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
13641
+ // ../../node_modules/.pnpm/vitest@3.2.3_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_3e45f0297eeb1f6a4ee30770ed0f557b/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js
13146
13642
  var RealDate = Date;
13147
13643
  var now2 = null;
13148
13644
  var MockDate = class _MockDate extends RealDate {
@@ -13190,7 +13686,7 @@ function resetDate() {
13190
13686
  globalThis.Date = RealDate;
13191
13687
  }
13192
13688
 
13193
- // ../../node_modules/.pnpm/vitest@3.2.2_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_eb265836689cb09b255052147598b424/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
13689
+ // ../../node_modules/.pnpm/vitest@3.2.3_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_3e45f0297eeb1f6a4ee30770ed0f557b/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js
13194
13690
  var unsupported = [
13195
13691
  "matchSnapshot",
13196
13692
  "toMatchSnapshot",
@@ -13223,22 +13719,22 @@ function createExpectPoll(expect2) {
13223
13719
  let intervalId;
13224
13720
  let timeoutId;
13225
13721
  let lastError;
13226
- const { setTimeout, clearTimeout } = getSafeTimers();
13722
+ const { setTimeout: setTimeout2, clearTimeout: clearTimeout2 } = getSafeTimers();
13227
13723
  const check = async () => {
13228
13724
  try {
13229
13725
  utils_exports.flag(assertion, "_name", key);
13230
13726
  const obj = await fn2();
13231
13727
  utils_exports.flag(assertion, "object", obj);
13232
13728
  resolve4(await assertionFunction.call(assertion, ...args));
13233
- clearTimeout(intervalId);
13234
- clearTimeout(timeoutId);
13729
+ clearTimeout2(intervalId);
13730
+ clearTimeout2(timeoutId);
13235
13731
  } catch (err) {
13236
13732
  lastError = err;
13237
- if (!utils_exports.flag(assertion, "_isLastPollAttempt")) intervalId = setTimeout(check, interval);
13733
+ if (!utils_exports.flag(assertion, "_isLastPollAttempt")) intervalId = setTimeout2(check, interval);
13238
13734
  }
13239
13735
  };
13240
- timeoutId = setTimeout(() => {
13241
- clearTimeout(intervalId);
13736
+ timeoutId = setTimeout2(() => {
13737
+ clearTimeout2(intervalId);
13242
13738
  utils_exports.flag(assertion, "_isLastPollAttempt", true);
13243
13739
  const rejectWithCause = (cause) => {
13244
13740
  reject(copyStackTrace$1(new Error("Matcher did not succeed in time.", { cause }), STACK_TRACE_ERROR));
@@ -14753,7 +15249,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
14753
15249
  clock.cancelIdleCallback = function cancelIdleCallback(timerId) {
14754
15250
  return clearTimer(clock, timerId, "IdleCallback");
14755
15251
  };
14756
- clock.setTimeout = function setTimeout(func, timeout) {
15252
+ clock.setTimeout = function setTimeout2(func, timeout) {
14757
15253
  return addTimer(clock, {
14758
15254
  func,
14759
15255
  args: Array.prototype.slice.call(arguments, 2),
@@ -14771,7 +15267,7 @@ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`
14771
15267
  });
14772
15268
  };
14773
15269
  }
14774
- clock.clearTimeout = function clearTimeout(timerId) {
15270
+ clock.clearTimeout = function clearTimeout2(timerId) {
14775
15271
  return clearTimer(clock, timerId, "Timeout");
14776
15272
  };
14777
15273
  clock.nextTick = function nextTick(func) {
@@ -15572,7 +16068,7 @@ function copyStackTrace(target, source) {
15572
16068
  return target;
15573
16069
  }
15574
16070
  function waitFor(callback, options = {}) {
15575
- const { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();
16071
+ const { setTimeout: setTimeout2, setInterval, clearTimeout: clearTimeout2, clearInterval } = getSafeTimers();
15576
16072
  const { interval = 50, timeout = 1e3 } = typeof options === "number" ? { timeout: options } : options;
15577
16073
  const STACK_TRACE_ERROR = new Error("STACK_TRACE_ERROR");
15578
16074
  return new Promise((resolve4, reject) => {
@@ -15581,7 +16077,7 @@ function waitFor(callback, options = {}) {
15581
16077
  let timeoutId;
15582
16078
  let intervalId;
15583
16079
  const onResolve = (result) => {
15584
- if (timeoutId) clearTimeout(timeoutId);
16080
+ if (timeoutId) clearTimeout2(timeoutId);
15585
16081
  if (intervalId) clearInterval(intervalId);
15586
16082
  resolve4(result);
15587
16083
  };
@@ -15615,12 +16111,12 @@ function waitFor(callback, options = {}) {
15615
16111
  }
15616
16112
  };
15617
16113
  if (checkCallback() === true) return;
15618
- timeoutId = setTimeout(handleTimeout, timeout);
16114
+ timeoutId = setTimeout2(handleTimeout, timeout);
15619
16115
  intervalId = setInterval(checkCallback, interval);
15620
16116
  });
15621
16117
  }
15622
16118
  function waitUntil(callback, options = {}) {
15623
- const { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();
16119
+ const { setTimeout: setTimeout2, setInterval, clearTimeout: clearTimeout2, clearInterval } = getSafeTimers();
15624
16120
  const { interval = 50, timeout = 1e3 } = typeof options === "number" ? { timeout: options } : options;
15625
16121
  const STACK_TRACE_ERROR = new Error("STACK_TRACE_ERROR");
15626
16122
  return new Promise((resolve4, reject) => {
@@ -15634,7 +16130,7 @@ function waitUntil(callback, options = {}) {
15634
16130
  };
15635
16131
  const onResolve = (result) => {
15636
16132
  if (!result) return;
15637
- if (timeoutId) clearTimeout(timeoutId);
16133
+ if (timeoutId) clearTimeout2(timeoutId);
15638
16134
  if (intervalId) clearInterval(intervalId);
15639
16135
  resolve4(result);
15640
16136
  return true;
@@ -15660,7 +16156,7 @@ function waitUntil(callback, options = {}) {
15660
16156
  }
15661
16157
  };
15662
16158
  if (checkCallback() === true) return;
15663
- timeoutId = setTimeout(onReject, timeout);
16159
+ timeoutId = setTimeout2(onReject, timeout);
15664
16160
  intervalId = setInterval(checkCallback, interval);
15665
16161
  });
15666
16162
  }
@@ -15876,7 +16372,7 @@ function getImporter(name) {
15876
16372
  return stack?.file || "";
15877
16373
  }
15878
16374
 
15879
- // ../../node_modules/.pnpm/vitest@3.2.2_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_eb265836689cb09b255052147598b424/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js
16375
+ // ../../node_modules/.pnpm/vitest@3.2.3_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_3e45f0297eeb1f6a4ee30770ed0f557b/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js
15880
16376
  var benchFns = /* @__PURE__ */ new WeakMap();
15881
16377
  var benchOptsMap = /* @__PURE__ */ new WeakMap();
15882
16378
  var bench = createBenchmark(function(name, fn2 = noop, options = {}) {
@@ -15902,12 +16398,12 @@ function formatName2(name) {
15902
16398
  return typeof name === "string" ? name : typeof name === "function" ? name.name || "<anonymous>" : String(name);
15903
16399
  }
15904
16400
 
15905
- // ../../node_modules/.pnpm/vitest@3.2.2_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_eb265836689cb09b255052147598b424/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js
16401
+ // ../../node_modules/.pnpm/vitest@3.2.3_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_3e45f0297eeb1f6a4ee30770ed0f557b/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js
15906
16402
  __toESM(require_dist(), 1);
15907
16403
  var assertType = function assertType2() {
15908
16404
  };
15909
16405
 
15910
- // ../../node_modules/.pnpm/vitest@3.2.2_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_eb265836689cb09b255052147598b424/node_modules/vitest/dist/index.js
16406
+ // ../../node_modules/.pnpm/vitest@3.2.3_@edge-runtime+vm@3.2.0_@types+debug@4.1.12_@types+node@20.19.0_@vitest+ui@_3e45f0297eeb1f6a4ee30770ed0f557b/node_modules/vitest/dist/index.js
15911
16407
  var import_expect_type2 = __toESM(require_dist(), 1);
15912
16408
  var export_expectTypeOf = import_expect_type2.expectTypeOf;
15913
16409
  /*! Bundled license information: