msw 2.4.2 → 2.4.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.
package/lib/iife/index.js CHANGED
@@ -28,22 +28,22 @@ var MockServiceWorker = (() => {
28
28
  };
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
 
31
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/version.mjs
31
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/version.mjs
32
32
  var version, versionInfo;
33
33
  var init_version = __esm({
34
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/version.mjs"() {
34
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/version.mjs"() {
35
35
  "use strict";
36
- version = "16.8.2";
36
+ version = "16.9.0";
37
37
  versionInfo = Object.freeze({
38
38
  major: 16,
39
- minor: 8,
40
- patch: 2,
39
+ minor: 9,
40
+ patch: 0,
41
41
  preReleaseTag: null
42
42
  });
43
43
  }
44
44
  });
45
45
 
46
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/devAssert.mjs
46
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.mjs
47
47
  function devAssert(condition, message3) {
48
48
  const booleanCondition = Boolean(condition);
49
49
  if (!booleanCondition) {
@@ -51,33 +51,33 @@ var MockServiceWorker = (() => {
51
51
  }
52
52
  }
53
53
  var init_devAssert = __esm({
54
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/devAssert.mjs"() {
54
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.mjs"() {
55
55
  "use strict";
56
56
  }
57
57
  });
58
58
 
59
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/isPromise.mjs
59
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isPromise.mjs
60
60
  function isPromise(value) {
61
61
  return typeof (value === null || value === void 0 ? void 0 : value.then) === "function";
62
62
  }
63
63
  var init_isPromise = __esm({
64
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/isPromise.mjs"() {
64
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isPromise.mjs"() {
65
65
  "use strict";
66
66
  }
67
67
  });
68
68
 
69
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/isObjectLike.mjs
69
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isObjectLike.mjs
70
70
  function isObjectLike(value) {
71
71
  return typeof value == "object" && value !== null;
72
72
  }
73
73
  var init_isObjectLike = __esm({
74
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/isObjectLike.mjs"() {
74
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isObjectLike.mjs"() {
75
75
  "use strict";
76
76
  }
77
77
  });
78
78
 
79
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/invariant.mjs
80
- function invariant2(condition, message3) {
79
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/invariant.mjs
80
+ function invariant3(condition, message3) {
81
81
  const booleanCondition = Boolean(condition);
82
82
  if (!booleanCondition) {
83
83
  throw new Error(
@@ -86,17 +86,17 @@ var MockServiceWorker = (() => {
86
86
  }
87
87
  }
88
88
  var init_invariant = __esm({
89
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/invariant.mjs"() {
89
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/invariant.mjs"() {
90
90
  "use strict";
91
91
  }
92
92
  });
93
93
 
94
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/location.mjs
94
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/location.mjs
95
95
  function getLocation(source, position) {
96
96
  let lastLineStart = 0;
97
97
  let line = 1;
98
98
  for (const match2 of source.body.matchAll(LineRegExp)) {
99
- typeof match2.index === "number" || invariant2(false);
99
+ typeof match2.index === "number" || invariant3(false);
100
100
  if (match2.index >= position) {
101
101
  break;
102
102
  }
@@ -110,14 +110,14 @@ var MockServiceWorker = (() => {
110
110
  }
111
111
  var LineRegExp;
112
112
  var init_location = __esm({
113
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/location.mjs"() {
113
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/location.mjs"() {
114
114
  "use strict";
115
115
  init_invariant();
116
116
  LineRegExp = /\r\n|[\n\r]/g;
117
117
  }
118
118
  });
119
119
 
120
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/printLocation.mjs
120
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printLocation.mjs
121
121
  function printLocation(location2) {
122
122
  return printSourceLocation(
123
123
  location2.source,
@@ -164,13 +164,13 @@ var MockServiceWorker = (() => {
164
164
  return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join("\n");
165
165
  }
166
166
  var init_printLocation = __esm({
167
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/printLocation.mjs"() {
167
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printLocation.mjs"() {
168
168
  "use strict";
169
169
  init_location();
170
170
  }
171
171
  });
172
172
 
173
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/error/GraphQLError.mjs
173
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/GraphQLError.mjs
174
174
  function toNormalizedOptions(args) {
175
175
  const firstArg = args[0];
176
176
  if (firstArg == null || "kind" in firstArg || "length" in firstArg) {
@@ -196,7 +196,7 @@ var MockServiceWorker = (() => {
196
196
  }
197
197
  var GraphQLError;
198
198
  var init_GraphQLError = __esm({
199
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/error/GraphQLError.mjs"() {
199
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/GraphQLError.mjs"() {
200
200
  "use strict";
201
201
  init_isObjectLike();
202
202
  init_location();
@@ -334,7 +334,7 @@ var MockServiceWorker = (() => {
334
334
  }
335
335
  });
336
336
 
337
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/error/syntaxError.mjs
337
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/syntaxError.mjs
338
338
  function syntaxError(source, position, description) {
339
339
  return new GraphQLError(`Syntax Error: ${description}`, {
340
340
  source,
@@ -342,20 +342,20 @@ var MockServiceWorker = (() => {
342
342
  });
343
343
  }
344
344
  var init_syntaxError = __esm({
345
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/error/syntaxError.mjs"() {
345
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/syntaxError.mjs"() {
346
346
  "use strict";
347
347
  init_GraphQLError();
348
348
  }
349
349
  });
350
350
 
351
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/ast.mjs
351
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/ast.mjs
352
352
  function isNode(maybeNode) {
353
353
  const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
354
354
  return typeof maybeKind === "string" && kindValues.has(maybeKind);
355
355
  }
356
356
  var Location, Token, QueryDocumentKeys, kindValues, OperationTypeNode;
357
357
  var init_ast = __esm({
358
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/ast.mjs"() {
358
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/ast.mjs"() {
359
359
  "use strict";
360
360
  Location = class {
361
361
  /**
@@ -523,10 +523,10 @@ var MockServiceWorker = (() => {
523
523
  }
524
524
  });
525
525
 
526
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/directiveLocation.mjs
526
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/directiveLocation.mjs
527
527
  var DirectiveLocation;
528
528
  var init_directiveLocation = __esm({
529
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/directiveLocation.mjs"() {
529
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/directiveLocation.mjs"() {
530
530
  "use strict";
531
531
  (function(DirectiveLocation2) {
532
532
  DirectiveLocation2["QUERY"] = "QUERY";
@@ -552,10 +552,10 @@ var MockServiceWorker = (() => {
552
552
  }
553
553
  });
554
554
 
555
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/kinds.mjs
555
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/kinds.mjs
556
556
  var Kind;
557
557
  var init_kinds = __esm({
558
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/kinds.mjs"() {
558
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/kinds.mjs"() {
559
559
  "use strict";
560
560
  (function(Kind2) {
561
561
  Kind2["NAME"] = "Name";
@@ -605,7 +605,7 @@ var MockServiceWorker = (() => {
605
605
  }
606
606
  });
607
607
 
608
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/characterClasses.mjs
608
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/characterClasses.mjs
609
609
  function isWhiteSpace(code) {
610
610
  return code === 9 || code === 32;
611
611
  }
@@ -623,12 +623,12 @@ var MockServiceWorker = (() => {
623
623
  return isLetter(code) || isDigit(code) || code === 95;
624
624
  }
625
625
  var init_characterClasses = __esm({
626
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/characterClasses.mjs"() {
626
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/characterClasses.mjs"() {
627
627
  "use strict";
628
628
  }
629
629
  });
630
630
 
631
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/blockString.mjs
631
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/blockString.mjs
632
632
  function dedentBlockStringLines(lines) {
633
633
  var _firstNonEmptyLine2;
634
634
  let commonIndent = Number.MAX_SAFE_INTEGER;
@@ -733,16 +733,16 @@ var MockServiceWorker = (() => {
733
733
  return '"""' + result + '"""';
734
734
  }
735
735
  var init_blockString = __esm({
736
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/blockString.mjs"() {
736
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/blockString.mjs"() {
737
737
  "use strict";
738
738
  init_characterClasses();
739
739
  }
740
740
  });
741
741
 
742
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/tokenKind.mjs
742
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/tokenKind.mjs
743
743
  var TokenKind;
744
744
  var init_tokenKind = __esm({
745
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/tokenKind.mjs"() {
745
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/tokenKind.mjs"() {
746
746
  "use strict";
747
747
  (function(TokenKind2) {
748
748
  TokenKind2["SOF"] = "<SOF>";
@@ -771,7 +771,7 @@ var MockServiceWorker = (() => {
771
771
  }
772
772
  });
773
773
 
774
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/lexer.mjs
774
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/lexer.mjs
775
775
  function isPunctuatorTokenKind(kind) {
776
776
  return kind === TokenKind.BANG || kind === TokenKind.DOLLAR || kind === TokenKind.AMP || kind === TokenKind.PAREN_L || kind === TokenKind.PAREN_R || kind === TokenKind.SPREAD || kind === TokenKind.COLON || kind === TokenKind.EQUALS || kind === TokenKind.AT || kind === TokenKind.BRACKET_L || kind === TokenKind.BRACKET_R || kind === TokenKind.BRACE_L || kind === TokenKind.PIPE || kind === TokenKind.BRACE_R;
777
777
  }
@@ -1220,7 +1220,7 @@ var MockServiceWorker = (() => {
1220
1220
  }
1221
1221
  var Lexer;
1222
1222
  var init_lexer = __esm({
1223
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/lexer.mjs"() {
1223
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/lexer.mjs"() {
1224
1224
  "use strict";
1225
1225
  init_syntaxError();
1226
1226
  init_ast();
@@ -1283,7 +1283,7 @@ var MockServiceWorker = (() => {
1283
1283
  }
1284
1284
  });
1285
1285
 
1286
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/inspect.mjs
1286
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/inspect.mjs
1287
1287
  function inspect(value) {
1288
1288
  return formatValue(value, []);
1289
1289
  }
@@ -1365,17 +1365,17 @@ var MockServiceWorker = (() => {
1365
1365
  }
1366
1366
  var MAX_ARRAY_LENGTH, MAX_RECURSIVE_DEPTH;
1367
1367
  var init_inspect = __esm({
1368
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/inspect.mjs"() {
1368
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/inspect.mjs"() {
1369
1369
  "use strict";
1370
1370
  MAX_ARRAY_LENGTH = 10;
1371
1371
  MAX_RECURSIVE_DEPTH = 2;
1372
1372
  }
1373
1373
  });
1374
1374
 
1375
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/instanceOf.mjs
1375
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.mjs
1376
1376
  var isProduction, instanceOf;
1377
1377
  var init_instanceOf = __esm({
1378
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/instanceOf.mjs"() {
1378
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.mjs"() {
1379
1379
  "use strict";
1380
1380
  init_inspect();
1381
1381
  isProduction = globalThis.process && // eslint-disable-next-line no-undef
@@ -1416,13 +1416,13 @@ spurious results.`);
1416
1416
  }
1417
1417
  });
1418
1418
 
1419
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/source.mjs
1419
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/source.mjs
1420
1420
  function isSource(source) {
1421
1421
  return instanceOf(source, Source);
1422
1422
  }
1423
1423
  var Source;
1424
1424
  var init_source = __esm({
1425
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/source.mjs"() {
1425
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/source.mjs"() {
1426
1426
  "use strict";
1427
1427
  init_devAssert();
1428
1428
  init_inspect();
@@ -1452,7 +1452,7 @@ spurious results.`);
1452
1452
  }
1453
1453
  });
1454
1454
 
1455
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/parser.mjs
1455
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/parser.mjs
1456
1456
  function parse2(source, options) {
1457
1457
  const parser = new Parser(source, options);
1458
1458
  return parser.parseDocument();
@@ -1487,7 +1487,7 @@ spurious results.`);
1487
1487
  }
1488
1488
  var Parser;
1489
1489
  var init_parser = __esm({
1490
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/parser.mjs"() {
1490
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/parser.mjs"() {
1491
1491
  "use strict";
1492
1492
  init_syntaxError();
1493
1493
  init_ast();
@@ -2735,7 +2735,7 @@ spurious results.`);
2735
2735
  }
2736
2736
  });
2737
2737
 
2738
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/didYouMean.mjs
2738
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/didYouMean.mjs
2739
2739
  function didYouMean(firstArg, secondArg) {
2740
2740
  const [subMessage, suggestionsArg] = secondArg ? [firstArg, secondArg] : [void 0, firstArg];
2741
2741
  let message3 = " Did you mean ";
@@ -2757,23 +2757,23 @@ spurious results.`);
2757
2757
  }
2758
2758
  var MAX_SUGGESTIONS;
2759
2759
  var init_didYouMean = __esm({
2760
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/didYouMean.mjs"() {
2760
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/didYouMean.mjs"() {
2761
2761
  "use strict";
2762
2762
  MAX_SUGGESTIONS = 5;
2763
2763
  }
2764
2764
  });
2765
2765
 
2766
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/identityFunc.mjs
2766
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/identityFunc.mjs
2767
2767
  function identityFunc(x) {
2768
2768
  return x;
2769
2769
  }
2770
2770
  var init_identityFunc = __esm({
2771
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/identityFunc.mjs"() {
2771
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/identityFunc.mjs"() {
2772
2772
  "use strict";
2773
2773
  }
2774
2774
  });
2775
2775
 
2776
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/keyMap.mjs
2776
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/keyMap.mjs
2777
2777
  function keyMap(list, keyFn) {
2778
2778
  const result = /* @__PURE__ */ Object.create(null);
2779
2779
  for (const item of list) {
@@ -2782,12 +2782,12 @@ spurious results.`);
2782
2782
  return result;
2783
2783
  }
2784
2784
  var init_keyMap = __esm({
2785
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/keyMap.mjs"() {
2785
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/keyMap.mjs"() {
2786
2786
  "use strict";
2787
2787
  }
2788
2788
  });
2789
2789
 
2790
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/keyValMap.mjs
2790
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/keyValMap.mjs
2791
2791
  function keyValMap(list, keyFn, valFn) {
2792
2792
  const result = /* @__PURE__ */ Object.create(null);
2793
2793
  for (const item of list) {
@@ -2796,12 +2796,12 @@ spurious results.`);
2796
2796
  return result;
2797
2797
  }
2798
2798
  var init_keyValMap = __esm({
2799
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/keyValMap.mjs"() {
2799
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/keyValMap.mjs"() {
2800
2800
  "use strict";
2801
2801
  }
2802
2802
  });
2803
2803
 
2804
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/mapValue.mjs
2804
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/mapValue.mjs
2805
2805
  function mapValue(map, fn) {
2806
2806
  const result = /* @__PURE__ */ Object.create(null);
2807
2807
  for (const key of Object.keys(map)) {
@@ -2810,12 +2810,12 @@ spurious results.`);
2810
2810
  return result;
2811
2811
  }
2812
2812
  var init_mapValue = __esm({
2813
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/mapValue.mjs"() {
2813
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/mapValue.mjs"() {
2814
2814
  "use strict";
2815
2815
  }
2816
2816
  });
2817
2817
 
2818
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/naturalCompare.mjs
2818
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/naturalCompare.mjs
2819
2819
  function naturalCompare(aStr, bStr) {
2820
2820
  let aIndex = 0;
2821
2821
  let bIndex = 0;
@@ -2859,14 +2859,14 @@ spurious results.`);
2859
2859
  }
2860
2860
  var DIGIT_0, DIGIT_9;
2861
2861
  var init_naturalCompare = __esm({
2862
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/naturalCompare.mjs"() {
2862
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/naturalCompare.mjs"() {
2863
2863
  "use strict";
2864
2864
  DIGIT_0 = 48;
2865
2865
  DIGIT_9 = 57;
2866
2866
  }
2867
2867
  });
2868
2868
 
2869
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/suggestionList.mjs
2869
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/suggestionList.mjs
2870
2870
  function suggestionList(input, options) {
2871
2871
  const optionsByDistance = /* @__PURE__ */ Object.create(null);
2872
2872
  const lexicalDistance = new LexicalDistance(input);
@@ -2892,7 +2892,7 @@ spurious results.`);
2892
2892
  }
2893
2893
  var LexicalDistance;
2894
2894
  var init_suggestionList = __esm({
2895
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/suggestionList.mjs"() {
2895
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/suggestionList.mjs"() {
2896
2896
  "use strict";
2897
2897
  init_naturalCompare();
2898
2898
  LexicalDistance = class {
@@ -2964,7 +2964,7 @@ spurious results.`);
2964
2964
  }
2965
2965
  });
2966
2966
 
2967
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/toObjMap.mjs
2967
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/toObjMap.mjs
2968
2968
  function toObjMap(obj) {
2969
2969
  if (obj == null) {
2970
2970
  return /* @__PURE__ */ Object.create(null);
@@ -2979,12 +2979,12 @@ spurious results.`);
2979
2979
  return map;
2980
2980
  }
2981
2981
  var init_toObjMap = __esm({
2982
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/toObjMap.mjs"() {
2982
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/toObjMap.mjs"() {
2983
2983
  "use strict";
2984
2984
  }
2985
2985
  });
2986
2986
 
2987
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/printString.mjs
2987
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printString.mjs
2988
2988
  function printString(str) {
2989
2989
  return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
2990
2990
  }
@@ -2993,7 +2993,7 @@ spurious results.`);
2993
2993
  }
2994
2994
  var escapedRegExp, escapeSequences;
2995
2995
  var init_printString = __esm({
2996
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/printString.mjs"() {
2996
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printString.mjs"() {
2997
2997
  "use strict";
2998
2998
  escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2999
2999
  escapeSequences = [
@@ -3166,7 +3166,7 @@ spurious results.`);
3166
3166
  }
3167
3167
  });
3168
3168
 
3169
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/visitor.mjs
3169
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/visitor.mjs
3170
3170
  function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
3171
3171
  const enterLeaveMap = /* @__PURE__ */ new Map();
3172
3172
  for (const kind of Object.values(Kind)) {
@@ -3356,7 +3356,7 @@ spurious results.`);
3356
3356
  }
3357
3357
  var BREAK;
3358
3358
  var init_visitor = __esm({
3359
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/visitor.mjs"() {
3359
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/visitor.mjs"() {
3360
3360
  "use strict";
3361
3361
  init_devAssert();
3362
3362
  init_inspect();
@@ -3366,7 +3366,7 @@ spurious results.`);
3366
3366
  }
3367
3367
  });
3368
3368
 
3369
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/printer.mjs
3369
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printer.mjs
3370
3370
  function print(ast) {
3371
3371
  return visit(ast, printDocASTReducer);
3372
3372
  }
@@ -3389,7 +3389,7 @@ spurious results.`);
3389
3389
  }
3390
3390
  var MAX_LINE_LENGTH, printDocASTReducer;
3391
3391
  var init_printer = __esm({
3392
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/printer.mjs"() {
3392
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printer.mjs"() {
3393
3393
  "use strict";
3394
3394
  init_blockString();
3395
3395
  init_printString();
@@ -3617,7 +3617,7 @@ spurious results.`);
3617
3617
  }
3618
3618
  });
3619
3619
 
3620
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/valueFromASTUntyped.mjs
3620
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/valueFromASTUntyped.mjs
3621
3621
  function valueFromASTUntyped(valueNode, variables) {
3622
3622
  switch (valueNode.kind) {
3623
3623
  case Kind.NULL:
@@ -3645,14 +3645,14 @@ spurious results.`);
3645
3645
  }
3646
3646
  }
3647
3647
  var init_valueFromASTUntyped = __esm({
3648
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/valueFromASTUntyped.mjs"() {
3648
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/valueFromASTUntyped.mjs"() {
3649
3649
  "use strict";
3650
3650
  init_keyValMap();
3651
3651
  init_kinds();
3652
3652
  }
3653
3653
  });
3654
3654
 
3655
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/assertName.mjs
3655
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/assertName.mjs
3656
3656
  function assertName(name) {
3657
3657
  name != null || devAssert(false, "Must provide name.");
3658
3658
  typeof name === "string" || devAssert(false, "Expected name to be a string.");
@@ -3680,7 +3680,7 @@ spurious results.`);
3680
3680
  return assertName(name);
3681
3681
  }
3682
3682
  var init_assertName = __esm({
3683
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/assertName.mjs"() {
3683
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/assertName.mjs"() {
3684
3684
  "use strict";
3685
3685
  init_devAssert();
3686
3686
  init_GraphQLError();
@@ -3688,7 +3688,7 @@ spurious results.`);
3688
3688
  }
3689
3689
  });
3690
3690
 
3691
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/definition.mjs
3691
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/definition.mjs
3692
3692
  function isType(type) {
3693
3693
  return isScalarType(type) || isObjectType(type) || isInterfaceType(type) || isUnionType(type) || isEnumType(type) || isInputObjectType(type) || isListType(type) || isNonNullType(type);
3694
3694
  }
@@ -4016,7 +4016,7 @@ spurious results.`);
4016
4016
  }
4017
4017
  var GraphQLList, GraphQLNonNull, GraphQLScalarType, GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, GraphQLEnumType, GraphQLInputObjectType;
4018
4018
  var init_definition = __esm({
4019
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/definition.mjs"() {
4019
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/definition.mjs"() {
4020
4020
  "use strict";
4021
4021
  init_devAssert();
4022
4022
  init_didYouMean();
@@ -4269,22 +4269,31 @@ spurious results.`);
4269
4269
  this.extensions = toObjMap(config.extensions);
4270
4270
  this.astNode = config.astNode;
4271
4271
  this.extensionASTNodes = (_config$extensionASTN5 = config.extensionASTNodes) !== null && _config$extensionASTN5 !== void 0 ? _config$extensionASTN5 : [];
4272
- this._values = defineEnumValues(this.name, config.values);
4273
- this._valueLookup = new Map(
4274
- this._values.map((enumValue) => [enumValue.value, enumValue])
4275
- );
4276
- this._nameLookup = keyMap(this._values, (value) => value.name);
4272
+ this._values = typeof config.values === "function" ? config.values : defineEnumValues(this.name, config.values);
4273
+ this._valueLookup = null;
4274
+ this._nameLookup = null;
4277
4275
  }
4278
4276
  get [Symbol.toStringTag]() {
4279
4277
  return "GraphQLEnumType";
4280
4278
  }
4281
4279
  getValues() {
4280
+ if (typeof this._values === "function") {
4281
+ this._values = defineEnumValues(this.name, this._values());
4282
+ }
4282
4283
  return this._values;
4283
4284
  }
4284
4285
  getValue(name) {
4286
+ if (this._nameLookup === null) {
4287
+ this._nameLookup = keyMap(this.getValues(), (value) => value.name);
4288
+ }
4285
4289
  return this._nameLookup[name];
4286
4290
  }
4287
4291
  serialize(outputValue) {
4292
+ if (this._valueLookup === null) {
4293
+ this._valueLookup = new Map(
4294
+ this.getValues().map((enumValue2) => [enumValue2.value, enumValue2])
4295
+ );
4296
+ }
4288
4297
  const enumValue = this._valueLookup.get(outputValue);
4289
4298
  if (enumValue === void 0) {
4290
4299
  throw new GraphQLError(
@@ -4360,12 +4369,13 @@ spurious results.`);
4360
4369
  };
4361
4370
  GraphQLInputObjectType = class {
4362
4371
  constructor(config) {
4363
- var _config$extensionASTN6;
4372
+ var _config$extensionASTN6, _config$isOneOf;
4364
4373
  this.name = assertName(config.name);
4365
4374
  this.description = config.description;
4366
4375
  this.extensions = toObjMap(config.extensions);
4367
4376
  this.astNode = config.astNode;
4368
4377
  this.extensionASTNodes = (_config$extensionASTN6 = config.extensionASTNodes) !== null && _config$extensionASTN6 !== void 0 ? _config$extensionASTN6 : [];
4378
+ this.isOneOf = (_config$isOneOf = config.isOneOf) !== null && _config$isOneOf !== void 0 ? _config$isOneOf : false;
4369
4379
  this._fields = defineInputFieldMap.bind(void 0, config);
4370
4380
  }
4371
4381
  get [Symbol.toStringTag]() {
@@ -4392,7 +4402,8 @@ spurious results.`);
4392
4402
  fields,
4393
4403
  extensions: this.extensions,
4394
4404
  astNode: this.astNode,
4395
- extensionASTNodes: this.extensionASTNodes
4405
+ extensionASTNodes: this.extensionASTNodes,
4406
+ isOneOf: this.isOneOf
4396
4407
  };
4397
4408
  }
4398
4409
  toString() {
@@ -4405,7 +4416,7 @@ spurious results.`);
4405
4416
  }
4406
4417
  });
4407
4418
 
4408
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/typeComparators.mjs
4419
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/typeComparators.mjs
4409
4420
  function isEqualType(typeA, typeB) {
4410
4421
  if (typeA === typeB) {
4411
4422
  return true;
@@ -4458,13 +4469,13 @@ spurious results.`);
4458
4469
  return false;
4459
4470
  }
4460
4471
  var init_typeComparators = __esm({
4461
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/typeComparators.mjs"() {
4472
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/typeComparators.mjs"() {
4462
4473
  "use strict";
4463
4474
  init_definition();
4464
4475
  }
4465
4476
  });
4466
4477
 
4467
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/scalars.mjs
4478
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/scalars.mjs
4468
4479
  function isSpecifiedScalarType(type) {
4469
4480
  return specifiedScalarTypes.some(({ name }) => type.name === name);
4470
4481
  }
@@ -4484,7 +4495,7 @@ spurious results.`);
4484
4495
  }
4485
4496
  var GRAPHQL_MAX_INT, GRAPHQL_MIN_INT, GraphQLInt, GraphQLFloat, GraphQLString, GraphQLBoolean, GraphQLID, specifiedScalarTypes;
4486
4497
  var init_scalars = __esm({
4487
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/scalars.mjs"() {
4498
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/scalars.mjs"() {
4488
4499
  "use strict";
4489
4500
  init_inspect();
4490
4501
  init_isObjectLike();
@@ -4708,7 +4719,7 @@ spurious results.`);
4708
4719
  }
4709
4720
  });
4710
4721
 
4711
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/directives.mjs
4722
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/directives.mjs
4712
4723
  function isDirective(directive) {
4713
4724
  return instanceOf(directive, GraphQLDirective);
4714
4725
  }
@@ -4723,9 +4734,9 @@ spurious results.`);
4723
4734
  function isSpecifiedDirective(directive) {
4724
4735
  return specifiedDirectives.some(({ name }) => name === directive.name);
4725
4736
  }
4726
- var GraphQLDirective, GraphQLIncludeDirective, GraphQLSkipDirective, DEFAULT_DEPRECATION_REASON, GraphQLDeprecatedDirective, GraphQLSpecifiedByDirective, specifiedDirectives;
4737
+ var GraphQLDirective, GraphQLIncludeDirective, GraphQLSkipDirective, DEFAULT_DEPRECATION_REASON, GraphQLDeprecatedDirective, GraphQLSpecifiedByDirective, GraphQLOneOfDirective, specifiedDirectives;
4727
4738
  var init_directives = __esm({
4728
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/directives.mjs"() {
4739
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/directives.mjs"() {
4729
4740
  "use strict";
4730
4741
  init_devAssert();
4731
4742
  init_inspect();
@@ -4833,26 +4844,33 @@ spurious results.`);
4833
4844
  }
4834
4845
  }
4835
4846
  });
4847
+ GraphQLOneOfDirective = new GraphQLDirective({
4848
+ name: "oneOf",
4849
+ description: "Indicates exactly one field must be supplied and this field must not be `null`.",
4850
+ locations: [DirectiveLocation.INPUT_OBJECT],
4851
+ args: {}
4852
+ });
4836
4853
  specifiedDirectives = Object.freeze([
4837
4854
  GraphQLIncludeDirective,
4838
4855
  GraphQLSkipDirective,
4839
4856
  GraphQLDeprecatedDirective,
4840
- GraphQLSpecifiedByDirective
4857
+ GraphQLSpecifiedByDirective,
4858
+ GraphQLOneOfDirective
4841
4859
  ]);
4842
4860
  }
4843
4861
  });
4844
4862
 
4845
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/isIterableObject.mjs
4863
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isIterableObject.mjs
4846
4864
  function isIterableObject(maybeIterable) {
4847
4865
  return typeof maybeIterable === "object" && typeof (maybeIterable === null || maybeIterable === void 0 ? void 0 : maybeIterable[Symbol.iterator]) === "function";
4848
4866
  }
4849
4867
  var init_isIterableObject = __esm({
4850
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/isIterableObject.mjs"() {
4868
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isIterableObject.mjs"() {
4851
4869
  "use strict";
4852
4870
  }
4853
4871
  });
4854
4872
 
4855
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/astFromValue.mjs
4873
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/astFromValue.mjs
4856
4874
  function astFromValue(value, type) {
4857
4875
  if (isNonNullType(type)) {
4858
4876
  const astValue = astFromValue(value, type.ofType);
@@ -4950,11 +4968,11 @@ spurious results.`);
4950
4968
  }
4951
4969
  throw new TypeError(`Cannot convert value to AST: ${inspect(serialized)}.`);
4952
4970
  }
4953
- invariant2(false, "Unexpected input type: " + inspect(type));
4971
+ invariant3(false, "Unexpected input type: " + inspect(type));
4954
4972
  }
4955
4973
  var integerStringRegExp;
4956
4974
  var init_astFromValue = __esm({
4957
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/astFromValue.mjs"() {
4975
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/astFromValue.mjs"() {
4958
4976
  "use strict";
4959
4977
  init_inspect();
4960
4978
  init_invariant();
@@ -4967,13 +4985,13 @@ spurious results.`);
4967
4985
  }
4968
4986
  });
4969
4987
 
4970
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/introspection.mjs
4988
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/introspection.mjs
4971
4989
  function isIntrospectionType(type) {
4972
4990
  return introspectionTypes.some(({ name }) => type.name === name);
4973
4991
  }
4974
4992
  var __Schema, __Directive, __DirectiveLocation, __Type, __Field, __InputValue, __EnumValue, TypeKind, __TypeKind, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, introspectionTypes;
4975
4993
  var init_introspection = __esm({
4976
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/introspection.mjs"() {
4994
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/introspection.mjs"() {
4977
4995
  "use strict";
4978
4996
  init_inspect();
4979
4997
  init_invariant();
@@ -5172,7 +5190,7 @@ spurious results.`);
5172
5190
  if (isNonNullType(type)) {
5173
5191
  return TypeKind.NON_NULL;
5174
5192
  }
5175
- invariant2(false, `Unexpected type: "${inspect(type)}".`);
5193
+ invariant3(false, `Unexpected type: "${inspect(type)}".`);
5176
5194
  }
5177
5195
  },
5178
5196
  name: {
@@ -5254,6 +5272,14 @@ spurious results.`);
5254
5272
  ofType: {
5255
5273
  type: __Type,
5256
5274
  resolve: (type) => "ofType" in type ? type.ofType : void 0
5275
+ },
5276
+ isOneOf: {
5277
+ type: GraphQLBoolean,
5278
+ resolve: (type) => {
5279
+ if (isInputObjectType(type)) {
5280
+ return type.isOneOf;
5281
+ }
5282
+ }
5257
5283
  }
5258
5284
  })
5259
5285
  });
@@ -5455,7 +5481,7 @@ spurious results.`);
5455
5481
  }
5456
5482
  });
5457
5483
 
5458
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/schema.mjs
5484
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/schema.mjs
5459
5485
  function isSchema(schema) {
5460
5486
  return instanceOf(schema, GraphQLSchema);
5461
5487
  }
@@ -5493,7 +5519,7 @@ spurious results.`);
5493
5519
  }
5494
5520
  var GraphQLSchema;
5495
5521
  var init_schema = __esm({
5496
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/schema.mjs"() {
5522
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/schema.mjs"() {
5497
5523
  "use strict";
5498
5524
  init_devAssert();
5499
5525
  init_inspect();
@@ -5680,7 +5706,7 @@ spurious results.`);
5680
5706
  }
5681
5707
  });
5682
5708
 
5683
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/validate.mjs
5709
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/validate.mjs
5684
5710
  function validateSchema(schema) {
5685
5711
  assertSchema(schema);
5686
5712
  if (schema.__validationErrors) {
@@ -6025,6 +6051,24 @@ spurious results.`);
6025
6051
  ]
6026
6052
  );
6027
6053
  }
6054
+ if (inputObj.isOneOf) {
6055
+ validateOneOfInputObjectField(inputObj, field, context);
6056
+ }
6057
+ }
6058
+ }
6059
+ function validateOneOfInputObjectField(type, field, context) {
6060
+ if (isNonNullType(field.type)) {
6061
+ var _field$astNode4;
6062
+ context.reportError(
6063
+ `OneOf input field ${type.name}.${field.name} must be nullable.`,
6064
+ (_field$astNode4 = field.astNode) === null || _field$astNode4 === void 0 ? void 0 : _field$astNode4.type
6065
+ );
6066
+ }
6067
+ if (field.defaultValue !== void 0) {
6068
+ context.reportError(
6069
+ `OneOf input field ${type.name}.${field.name} cannot have a default value.`,
6070
+ field.astNode
6071
+ );
6028
6072
  }
6029
6073
  }
6030
6074
  function createInputObjectCircularRefsValidator(context) {
@@ -6090,7 +6134,7 @@ spurious results.`);
6090
6134
  }
6091
6135
  var SchemaValidationContext;
6092
6136
  var init_validate = __esm({
6093
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/validate.mjs"() {
6137
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/validate.mjs"() {
6094
6138
  "use strict";
6095
6139
  init_inspect();
6096
6140
  init_GraphQLError();
@@ -6120,7 +6164,7 @@ spurious results.`);
6120
6164
  }
6121
6165
  });
6122
6166
 
6123
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/typeFromAST.mjs
6167
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/typeFromAST.mjs
6124
6168
  function typeFromAST(schema, typeNode) {
6125
6169
  switch (typeNode.kind) {
6126
6170
  case Kind.LIST_TYPE: {
@@ -6136,14 +6180,14 @@ spurious results.`);
6136
6180
  }
6137
6181
  }
6138
6182
  var init_typeFromAST = __esm({
6139
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/typeFromAST.mjs"() {
6183
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/typeFromAST.mjs"() {
6140
6184
  "use strict";
6141
6185
  init_kinds();
6142
6186
  init_definition();
6143
6187
  }
6144
6188
  });
6145
6189
 
6146
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/TypeInfo.mjs
6190
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/TypeInfo.mjs
6147
6191
  function getFieldDef(schema, parentType, fieldNode) {
6148
6192
  const name = fieldNode.name.value;
6149
6193
  if (name === SchemaMetaFieldDef.name && schema.getQueryType() === parentType) {
@@ -6190,7 +6234,7 @@ spurious results.`);
6190
6234
  }
6191
6235
  var TypeInfo;
6192
6236
  var init_TypeInfo = __esm({
6193
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/TypeInfo.mjs"() {
6237
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/TypeInfo.mjs"() {
6194
6238
  "use strict";
6195
6239
  init_ast();
6196
6240
  init_kinds();
@@ -6405,7 +6449,7 @@ spurious results.`);
6405
6449
  }
6406
6450
  });
6407
6451
 
6408
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/predicates.mjs
6452
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/predicates.mjs
6409
6453
  function isDefinitionNode(node) {
6410
6454
  return isExecutableDefinitionNode(node) || isTypeSystemDefinitionNode(node) || isTypeSystemExtensionNode(node);
6411
6455
  }
@@ -6437,13 +6481,13 @@ spurious results.`);
6437
6481
  return node.kind === Kind.SCALAR_TYPE_EXTENSION || node.kind === Kind.OBJECT_TYPE_EXTENSION || node.kind === Kind.INTERFACE_TYPE_EXTENSION || node.kind === Kind.UNION_TYPE_EXTENSION || node.kind === Kind.ENUM_TYPE_EXTENSION || node.kind === Kind.INPUT_OBJECT_TYPE_EXTENSION;
6438
6482
  }
6439
6483
  var init_predicates = __esm({
6440
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/predicates.mjs"() {
6484
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/predicates.mjs"() {
6441
6485
  "use strict";
6442
6486
  init_kinds();
6443
6487
  }
6444
6488
  });
6445
6489
 
6446
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs
6490
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs
6447
6491
  function ExecutableDefinitionsRule(context) {
6448
6492
  return {
6449
6493
  Document(node) {
@@ -6462,7 +6506,7 @@ spurious results.`);
6462
6506
  };
6463
6507
  }
6464
6508
  var init_ExecutableDefinitionsRule = __esm({
6465
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs"() {
6509
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs"() {
6466
6510
  "use strict";
6467
6511
  init_GraphQLError();
6468
6512
  init_kinds();
@@ -6470,7 +6514,7 @@ spurious results.`);
6470
6514
  }
6471
6515
  });
6472
6516
 
6473
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs
6517
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs
6474
6518
  function FieldsOnCorrectTypeRule(context) {
6475
6519
  return {
6476
6520
  Field(node) {
@@ -6543,7 +6587,7 @@ spurious results.`);
6543
6587
  return [];
6544
6588
  }
6545
6589
  var init_FieldsOnCorrectTypeRule = __esm({
6546
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs"() {
6590
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs"() {
6547
6591
  "use strict";
6548
6592
  init_didYouMean();
6549
6593
  init_naturalCompare();
@@ -6553,7 +6597,7 @@ spurious results.`);
6553
6597
  }
6554
6598
  });
6555
6599
 
6556
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs
6600
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs
6557
6601
  function FragmentsOnCompositeTypesRule(context) {
6558
6602
  return {
6559
6603
  InlineFragment(node) {
@@ -6590,7 +6634,7 @@ spurious results.`);
6590
6634
  };
6591
6635
  }
6592
6636
  var init_FragmentsOnCompositeTypesRule = __esm({
6593
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs"() {
6637
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs"() {
6594
6638
  "use strict";
6595
6639
  init_GraphQLError();
6596
6640
  init_printer();
@@ -6599,7 +6643,7 @@ spurious results.`);
6599
6643
  }
6600
6644
  });
6601
6645
 
6602
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs
6646
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs
6603
6647
  function KnownArgumentNamesRule(context) {
6604
6648
  return {
6605
6649
  // eslint-disable-next-line new-cap
@@ -6664,7 +6708,7 @@ spurious results.`);
6664
6708
  };
6665
6709
  }
6666
6710
  var init_KnownArgumentNamesRule = __esm({
6667
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs"() {
6711
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs"() {
6668
6712
  "use strict";
6669
6713
  init_didYouMean();
6670
6714
  init_suggestionList();
@@ -6674,7 +6718,7 @@ spurious results.`);
6674
6718
  }
6675
6719
  });
6676
6720
 
6677
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs
6721
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs
6678
6722
  function KnownDirectivesRule(context) {
6679
6723
  const locationsMap = /* @__PURE__ */ Object.create(null);
6680
6724
  const schema = context.getSchema();
@@ -6716,7 +6760,7 @@ spurious results.`);
6716
6760
  }
6717
6761
  function getDirectiveLocationForASTPath(ancestors) {
6718
6762
  const appliedTo = ancestors[ancestors.length - 1];
6719
- "kind" in appliedTo || invariant2(false);
6763
+ "kind" in appliedTo || invariant3(false);
6720
6764
  switch (appliedTo.kind) {
6721
6765
  case Kind.OPERATION_DEFINITION:
6722
6766
  return getDirectiveLocationForOperation(appliedTo.operation);
@@ -6757,11 +6801,11 @@ spurious results.`);
6757
6801
  return DirectiveLocation.INPUT_OBJECT;
6758
6802
  case Kind.INPUT_VALUE_DEFINITION: {
6759
6803
  const parentNode = ancestors[ancestors.length - 3];
6760
- "kind" in parentNode || invariant2(false);
6804
+ "kind" in parentNode || invariant3(false);
6761
6805
  return parentNode.kind === Kind.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation.INPUT_FIELD_DEFINITION : DirectiveLocation.ARGUMENT_DEFINITION;
6762
6806
  }
6763
6807
  default:
6764
- invariant2(false, "Unexpected kind: " + inspect(appliedTo.kind));
6808
+ invariant3(false, "Unexpected kind: " + inspect(appliedTo.kind));
6765
6809
  }
6766
6810
  }
6767
6811
  function getDirectiveLocationForOperation(operation) {
@@ -6775,7 +6819,7 @@ spurious results.`);
6775
6819
  }
6776
6820
  }
6777
6821
  var init_KnownDirectivesRule = __esm({
6778
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs"() {
6822
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs"() {
6779
6823
  "use strict";
6780
6824
  init_inspect();
6781
6825
  init_invariant();
@@ -6787,7 +6831,7 @@ spurious results.`);
6787
6831
  }
6788
6832
  });
6789
6833
 
6790
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs
6834
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs
6791
6835
  function KnownFragmentNamesRule(context) {
6792
6836
  return {
6793
6837
  FragmentSpread(node) {
@@ -6804,13 +6848,13 @@ spurious results.`);
6804
6848
  };
6805
6849
  }
6806
6850
  var init_KnownFragmentNamesRule = __esm({
6807
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs"() {
6851
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs"() {
6808
6852
  "use strict";
6809
6853
  init_GraphQLError();
6810
6854
  }
6811
6855
  });
6812
6856
 
6813
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs
6857
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs
6814
6858
  function KnownTypeNamesRule(context) {
6815
6859
  const schema = context.getSchema();
6816
6860
  const existingTypesMap = schema ? schema.getTypeMap() : /* @__PURE__ */ Object.create(null);
@@ -6855,7 +6899,7 @@ spurious results.`);
6855
6899
  }
6856
6900
  var standardTypeNames;
6857
6901
  var init_KnownTypeNamesRule = __esm({
6858
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs"() {
6902
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs"() {
6859
6903
  "use strict";
6860
6904
  init_didYouMean();
6861
6905
  init_suggestionList();
@@ -6869,7 +6913,7 @@ spurious results.`);
6869
6913
  }
6870
6914
  });
6871
6915
 
6872
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs
6916
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs
6873
6917
  function LoneAnonymousOperationRule(context) {
6874
6918
  let operationCount = 0;
6875
6919
  return {
@@ -6893,14 +6937,14 @@ spurious results.`);
6893
6937
  };
6894
6938
  }
6895
6939
  var init_LoneAnonymousOperationRule = __esm({
6896
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs"() {
6940
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs"() {
6897
6941
  "use strict";
6898
6942
  init_GraphQLError();
6899
6943
  init_kinds();
6900
6944
  }
6901
6945
  });
6902
6946
 
6903
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs
6947
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs
6904
6948
  function LoneSchemaDefinitionRule(context) {
6905
6949
  var _ref, _ref2, _oldSchema$astNode;
6906
6950
  const oldSchema = context.getSchema();
@@ -6931,13 +6975,73 @@ spurious results.`);
6931
6975
  };
6932
6976
  }
6933
6977
  var init_LoneSchemaDefinitionRule = __esm({
6934
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs"() {
6978
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs"() {
6979
+ "use strict";
6980
+ init_GraphQLError();
6981
+ }
6982
+ });
6983
+
6984
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs
6985
+ function MaxIntrospectionDepthRule(context) {
6986
+ function checkDepth(node, visitedFragments = /* @__PURE__ */ Object.create(null), depth = 0) {
6987
+ if (node.kind === Kind.FRAGMENT_SPREAD) {
6988
+ const fragmentName = node.name.value;
6989
+ if (visitedFragments[fragmentName] === true) {
6990
+ return false;
6991
+ }
6992
+ const fragment = context.getFragment(fragmentName);
6993
+ if (!fragment) {
6994
+ return false;
6995
+ }
6996
+ try {
6997
+ visitedFragments[fragmentName] = true;
6998
+ return checkDepth(fragment, visitedFragments, depth);
6999
+ } finally {
7000
+ visitedFragments[fragmentName] = void 0;
7001
+ }
7002
+ }
7003
+ if (node.kind === Kind.FIELD && // check all introspection lists
7004
+ (node.name.value === "fields" || node.name.value === "interfaces" || node.name.value === "possibleTypes" || node.name.value === "inputFields")) {
7005
+ depth++;
7006
+ if (depth >= MAX_LISTS_DEPTH) {
7007
+ return true;
7008
+ }
7009
+ }
7010
+ if ("selectionSet" in node && node.selectionSet) {
7011
+ for (const child of node.selectionSet.selections) {
7012
+ if (checkDepth(child, visitedFragments, depth)) {
7013
+ return true;
7014
+ }
7015
+ }
7016
+ }
7017
+ return false;
7018
+ }
7019
+ return {
7020
+ Field(node) {
7021
+ if (node.name.value === "__schema" || node.name.value === "__type") {
7022
+ if (checkDepth(node)) {
7023
+ context.reportError(
7024
+ new GraphQLError("Maximum introspection depth exceeded", {
7025
+ nodes: [node]
7026
+ })
7027
+ );
7028
+ return false;
7029
+ }
7030
+ }
7031
+ }
7032
+ };
7033
+ }
7034
+ var MAX_LISTS_DEPTH;
7035
+ var init_MaxIntrospectionDepthRule = __esm({
7036
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs"() {
6935
7037
  "use strict";
6936
7038
  init_GraphQLError();
7039
+ init_kinds();
7040
+ MAX_LISTS_DEPTH = 3;
6937
7041
  }
6938
7042
  });
6939
7043
 
6940
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs
7044
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs
6941
7045
  function NoFragmentCyclesRule(context) {
6942
7046
  const visitedFrags = /* @__PURE__ */ Object.create(null);
6943
7047
  const spreadPath = [];
@@ -6987,13 +7091,13 @@ spurious results.`);
6987
7091
  }
6988
7092
  }
6989
7093
  var init_NoFragmentCyclesRule = __esm({
6990
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs"() {
7094
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs"() {
6991
7095
  "use strict";
6992
7096
  init_GraphQLError();
6993
7097
  }
6994
7098
  });
6995
7099
 
6996
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs
7100
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs
6997
7101
  function NoUndefinedVariablesRule(context) {
6998
7102
  let variableNameDefined = /* @__PURE__ */ Object.create(null);
6999
7103
  return {
@@ -7024,13 +7128,13 @@ spurious results.`);
7024
7128
  };
7025
7129
  }
7026
7130
  var init_NoUndefinedVariablesRule = __esm({
7027
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs"() {
7131
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs"() {
7028
7132
  "use strict";
7029
7133
  init_GraphQLError();
7030
7134
  }
7031
7135
  });
7032
7136
 
7033
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs
7137
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs
7034
7138
  function NoUnusedFragmentsRule(context) {
7035
7139
  const operationDefs = [];
7036
7140
  const fragmentDefs = [];
@@ -7068,13 +7172,13 @@ spurious results.`);
7068
7172
  };
7069
7173
  }
7070
7174
  var init_NoUnusedFragmentsRule = __esm({
7071
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs"() {
7175
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs"() {
7072
7176
  "use strict";
7073
7177
  init_GraphQLError();
7074
7178
  }
7075
7179
  });
7076
7180
 
7077
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs
7181
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs
7078
7182
  function NoUnusedVariablesRule(context) {
7079
7183
  let variableDefs = [];
7080
7184
  return {
@@ -7109,13 +7213,13 @@ spurious results.`);
7109
7213
  };
7110
7214
  }
7111
7215
  var init_NoUnusedVariablesRule = __esm({
7112
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs"() {
7216
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs"() {
7113
7217
  "use strict";
7114
7218
  init_GraphQLError();
7115
7219
  }
7116
7220
  });
7117
7221
 
7118
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/sortValueNode.mjs
7222
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/sortValueNode.mjs
7119
7223
  function sortValueNode(valueNode) {
7120
7224
  switch (valueNode.kind) {
7121
7225
  case Kind.OBJECT:
@@ -7141,14 +7245,14 @@ spurious results.`);
7141
7245
  );
7142
7246
  }
7143
7247
  var init_sortValueNode = __esm({
7144
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/sortValueNode.mjs"() {
7248
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/sortValueNode.mjs"() {
7145
7249
  "use strict";
7146
7250
  init_naturalCompare();
7147
7251
  init_kinds();
7148
7252
  }
7149
7253
  });
7150
7254
 
7151
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs
7255
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs
7152
7256
  function reasonMessage(reason) {
7153
7257
  if (Array.isArray(reason)) {
7154
7258
  return reason.map(
@@ -7606,7 +7710,7 @@ spurious results.`);
7606
7710
  }
7607
7711
  var PairSet;
7608
7712
  var init_OverlappingFieldsCanBeMergedRule = __esm({
7609
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs"() {
7713
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs"() {
7610
7714
  "use strict";
7611
7715
  init_inspect();
7612
7716
  init_GraphQLError();
@@ -7641,7 +7745,7 @@ spurious results.`);
7641
7745
  }
7642
7746
  });
7643
7747
 
7644
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs
7748
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs
7645
7749
  function PossibleFragmentSpreadsRule(context) {
7646
7750
  return {
7647
7751
  InlineFragment(node) {
@@ -7689,7 +7793,7 @@ spurious results.`);
7689
7793
  }
7690
7794
  }
7691
7795
  var init_PossibleFragmentSpreadsRule = __esm({
7692
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs"() {
7796
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs"() {
7693
7797
  "use strict";
7694
7798
  init_inspect();
7695
7799
  init_GraphQLError();
@@ -7699,7 +7803,7 @@ spurious results.`);
7699
7803
  }
7700
7804
  });
7701
7805
 
7702
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs
7806
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs
7703
7807
  function PossibleTypeExtensionsRule(context) {
7704
7808
  const schema = context.getSchema();
7705
7809
  const definedTypes = /* @__PURE__ */ Object.create(null);
@@ -7771,7 +7875,7 @@ spurious results.`);
7771
7875
  if (isInputObjectType(type)) {
7772
7876
  return Kind.INPUT_OBJECT_TYPE_EXTENSION;
7773
7877
  }
7774
- invariant2(false, "Unexpected type: " + inspect(type));
7878
+ invariant3(false, "Unexpected type: " + inspect(type));
7775
7879
  }
7776
7880
  function extensionKindToTypeName(kind) {
7777
7881
  switch (kind) {
@@ -7788,12 +7892,12 @@ spurious results.`);
7788
7892
  case Kind.INPUT_OBJECT_TYPE_EXTENSION:
7789
7893
  return "input object";
7790
7894
  default:
7791
- invariant2(false, "Unexpected kind: " + inspect(kind));
7895
+ invariant3(false, "Unexpected kind: " + inspect(kind));
7792
7896
  }
7793
7897
  }
7794
7898
  var defKindToExtKind;
7795
7899
  var init_PossibleTypeExtensionsRule = __esm({
7796
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs"() {
7900
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs"() {
7797
7901
  "use strict";
7798
7902
  init_didYouMean();
7799
7903
  init_inspect();
@@ -7814,7 +7918,7 @@ spurious results.`);
7814
7918
  }
7815
7919
  });
7816
7920
 
7817
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs
7921
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs
7818
7922
  function ProvidedRequiredArgumentsRule(context) {
7819
7923
  return {
7820
7924
  // eslint-disable-next-line new-cap
@@ -7903,7 +8007,7 @@ spurious results.`);
7903
8007
  return arg.type.kind === Kind.NON_NULL_TYPE && arg.defaultValue == null;
7904
8008
  }
7905
8009
  var init_ProvidedRequiredArgumentsRule = __esm({
7906
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs"() {
8010
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs"() {
7907
8011
  "use strict";
7908
8012
  init_inspect();
7909
8013
  init_keyMap();
@@ -7915,7 +8019,7 @@ spurious results.`);
7915
8019
  }
7916
8020
  });
7917
8021
 
7918
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs
8022
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs
7919
8023
  function ScalarLeafsRule(context) {
7920
8024
  return {
7921
8025
  Field(node) {
@@ -7952,7 +8056,7 @@ spurious results.`);
7952
8056
  };
7953
8057
  }
7954
8058
  var init_ScalarLeafsRule = __esm({
7955
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs"() {
8059
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs"() {
7956
8060
  "use strict";
7957
8061
  init_inspect();
7958
8062
  init_GraphQLError();
@@ -7960,19 +8064,19 @@ spurious results.`);
7960
8064
  }
7961
8065
  });
7962
8066
 
7963
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/printPathArray.mjs
8067
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/printPathArray.mjs
7964
8068
  function printPathArray(path) {
7965
8069
  return path.map(
7966
8070
  (key) => typeof key === "number" ? "[" + key.toString() + "]" : "." + key
7967
8071
  ).join("");
7968
8072
  }
7969
8073
  var init_printPathArray = __esm({
7970
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/printPathArray.mjs"() {
8074
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/printPathArray.mjs"() {
7971
8075
  "use strict";
7972
8076
  }
7973
8077
  });
7974
8078
 
7975
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/Path.mjs
8079
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/Path.mjs
7976
8080
  function addPath(prev, key, typename) {
7977
8081
  return {
7978
8082
  prev,
@@ -7990,12 +8094,12 @@ spurious results.`);
7990
8094
  return flattened.reverse();
7991
8095
  }
7992
8096
  var init_Path = __esm({
7993
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/Path.mjs"() {
8097
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/Path.mjs"() {
7994
8098
  "use strict";
7995
8099
  }
7996
8100
  });
7997
8101
 
7998
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/coerceInputValue.mjs
8102
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/coerceInputValue.mjs
7999
8103
  function coerceInputValue(inputValue, type, onError = defaultOnError) {
8000
8104
  return coerceInputValueImpl(inputValue, type, onError, void 0);
8001
8105
  }
@@ -8084,6 +8188,27 @@ spurious results.`);
8084
8188
  );
8085
8189
  }
8086
8190
  }
8191
+ if (type.isOneOf) {
8192
+ const keys = Object.keys(coercedValue);
8193
+ if (keys.length !== 1) {
8194
+ onError(
8195
+ pathToArray(path),
8196
+ inputValue,
8197
+ new GraphQLError(
8198
+ `Exactly one key must be specified for OneOf type "${type.name}".`
8199
+ )
8200
+ );
8201
+ }
8202
+ const key = keys[0];
8203
+ const value = coercedValue[key];
8204
+ if (value === null) {
8205
+ onError(
8206
+ pathToArray(path).concat(key),
8207
+ value,
8208
+ new GraphQLError(`Field "${key}" must be non-null.`)
8209
+ );
8210
+ }
8211
+ }
8087
8212
  return coercedValue;
8088
8213
  }
8089
8214
  if (isLeafType(type)) {
@@ -8113,10 +8238,10 @@ spurious results.`);
8113
8238
  }
8114
8239
  return parseResult;
8115
8240
  }
8116
- invariant2(false, "Unexpected input type: " + inspect(type));
8241
+ invariant3(false, "Unexpected input type: " + inspect(type));
8117
8242
  }
8118
8243
  var init_coerceInputValue = __esm({
8119
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/coerceInputValue.mjs"() {
8244
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/coerceInputValue.mjs"() {
8120
8245
  "use strict";
8121
8246
  init_didYouMean();
8122
8247
  init_inspect();
@@ -8131,7 +8256,7 @@ spurious results.`);
8131
8256
  }
8132
8257
  });
8133
8258
 
8134
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/valueFromAST.mjs
8259
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/valueFromAST.mjs
8135
8260
  function valueFromAST(valueNode, type, variables) {
8136
8261
  if (!valueNode) {
8137
8262
  return;
@@ -8204,6 +8329,15 @@ spurious results.`);
8204
8329
  }
8205
8330
  coercedObj[field.name] = fieldValue;
8206
8331
  }
8332
+ if (type.isOneOf) {
8333
+ const keys = Object.keys(coercedObj);
8334
+ if (keys.length !== 1) {
8335
+ return;
8336
+ }
8337
+ if (coercedObj[keys[0]] === null) {
8338
+ return;
8339
+ }
8340
+ }
8207
8341
  return coercedObj;
8208
8342
  }
8209
8343
  if (isLeafType(type)) {
@@ -8218,13 +8352,13 @@ spurious results.`);
8218
8352
  }
8219
8353
  return result;
8220
8354
  }
8221
- invariant2(false, "Unexpected input type: " + inspect(type));
8355
+ invariant3(false, "Unexpected input type: " + inspect(type));
8222
8356
  }
8223
8357
  function isMissingVariable(valueNode, variables) {
8224
8358
  return valueNode.kind === Kind.VARIABLE && (variables == null || variables[valueNode.name.value] === void 0);
8225
8359
  }
8226
8360
  var init_valueFromAST = __esm({
8227
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/valueFromAST.mjs"() {
8361
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/valueFromAST.mjs"() {
8228
8362
  "use strict";
8229
8363
  init_inspect();
8230
8364
  init_invariant();
@@ -8234,7 +8368,7 @@ spurious results.`);
8234
8368
  }
8235
8369
  });
8236
8370
 
8237
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/values.mjs
8371
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/values.mjs
8238
8372
  function getVariableValues(schema, varDefNodes, inputs, options) {
8239
8373
  const errors = [];
8240
8374
  const maxErrors = options === null || options === void 0 ? void 0 : options.maxErrors;
@@ -8404,7 +8538,7 @@ spurious results.`);
8404
8538
  return Object.prototype.hasOwnProperty.call(obj, prop);
8405
8539
  }
8406
8540
  var init_values = __esm({
8407
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/values.mjs"() {
8541
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/values.mjs"() {
8408
8542
  "use strict";
8409
8543
  init_inspect();
8410
8544
  init_keyMap();
@@ -8419,7 +8553,7 @@ spurious results.`);
8419
8553
  }
8420
8554
  });
8421
8555
 
8422
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/collectFields.mjs
8556
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/collectFields.mjs
8423
8557
  function collectFields(schema, fragments, variableValues, runtimeType, selectionSet) {
8424
8558
  const fields = /* @__PURE__ */ new Map();
8425
8559
  collectFieldsImpl(
@@ -8539,7 +8673,7 @@ spurious results.`);
8539
8673
  return node.alias ? node.alias.value : node.name.value;
8540
8674
  }
8541
8675
  var init_collectFields = __esm({
8542
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/collectFields.mjs"() {
8676
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/collectFields.mjs"() {
8543
8677
  "use strict";
8544
8678
  init_kinds();
8545
8679
  init_definition();
@@ -8549,7 +8683,7 @@ spurious results.`);
8549
8683
  }
8550
8684
  });
8551
8685
 
8552
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs
8686
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs
8553
8687
  function SingleFieldSubscriptionsRule(context) {
8554
8688
  return {
8555
8689
  OperationDefinition(node) {
@@ -8606,7 +8740,7 @@ spurious results.`);
8606
8740
  };
8607
8741
  }
8608
8742
  var init_SingleFieldSubscriptionsRule = __esm({
8609
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs"() {
8743
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs"() {
8610
8744
  "use strict";
8611
8745
  init_GraphQLError();
8612
8746
  init_kinds();
@@ -8614,7 +8748,7 @@ spurious results.`);
8614
8748
  }
8615
8749
  });
8616
8750
 
8617
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/groupBy.mjs
8751
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/groupBy.mjs
8618
8752
  function groupBy(list, keyFn) {
8619
8753
  const result = /* @__PURE__ */ new Map();
8620
8754
  for (const item of list) {
@@ -8629,12 +8763,12 @@ spurious results.`);
8629
8763
  return result;
8630
8764
  }
8631
8765
  var init_groupBy = __esm({
8632
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/groupBy.mjs"() {
8766
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/groupBy.mjs"() {
8633
8767
  "use strict";
8634
8768
  }
8635
8769
  });
8636
8770
 
8637
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs
8771
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs
8638
8772
  function UniqueArgumentDefinitionNamesRule(context) {
8639
8773
  return {
8640
8774
  DirectiveDefinition(directiveNode) {
@@ -8677,14 +8811,14 @@ spurious results.`);
8677
8811
  }
8678
8812
  }
8679
8813
  var init_UniqueArgumentDefinitionNamesRule = __esm({
8680
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs"() {
8814
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs"() {
8681
8815
  "use strict";
8682
8816
  init_groupBy();
8683
8817
  init_GraphQLError();
8684
8818
  }
8685
8819
  });
8686
8820
 
8687
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs
8821
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs
8688
8822
  function UniqueArgumentNamesRule(context) {
8689
8823
  return {
8690
8824
  Field: checkArgUniqueness,
@@ -8709,14 +8843,14 @@ spurious results.`);
8709
8843
  }
8710
8844
  }
8711
8845
  var init_UniqueArgumentNamesRule = __esm({
8712
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs"() {
8846
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs"() {
8713
8847
  "use strict";
8714
8848
  init_groupBy();
8715
8849
  init_GraphQLError();
8716
8850
  }
8717
8851
  });
8718
8852
 
8719
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs
8853
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs
8720
8854
  function UniqueDirectiveNamesRule(context) {
8721
8855
  const knownDirectiveNames = /* @__PURE__ */ Object.create(null);
8722
8856
  const schema = context.getSchema();
@@ -8751,13 +8885,13 @@ spurious results.`);
8751
8885
  };
8752
8886
  }
8753
8887
  var init_UniqueDirectiveNamesRule = __esm({
8754
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs"() {
8888
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs"() {
8755
8889
  "use strict";
8756
8890
  init_GraphQLError();
8757
8891
  }
8758
8892
  });
8759
8893
 
8760
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs
8894
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs
8761
8895
  function UniqueDirectivesPerLocationRule(context) {
8762
8896
  const uniqueDirectiveMap = /* @__PURE__ */ Object.create(null);
8763
8897
  const schema = context.getSchema();
@@ -8814,7 +8948,7 @@ spurious results.`);
8814
8948
  };
8815
8949
  }
8816
8950
  var init_UniqueDirectivesPerLocationRule = __esm({
8817
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs"() {
8951
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs"() {
8818
8952
  "use strict";
8819
8953
  init_GraphQLError();
8820
8954
  init_kinds();
@@ -8823,7 +8957,7 @@ spurious results.`);
8823
8957
  }
8824
8958
  });
8825
8959
 
8826
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs
8960
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs
8827
8961
  function UniqueEnumValueNamesRule(context) {
8828
8962
  const schema = context.getSchema();
8829
8963
  const existingTypeMap = schema ? schema.getTypeMap() : /* @__PURE__ */ Object.create(null);
@@ -8869,14 +9003,14 @@ spurious results.`);
8869
9003
  }
8870
9004
  }
8871
9005
  var init_UniqueEnumValueNamesRule = __esm({
8872
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs"() {
9006
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs"() {
8873
9007
  "use strict";
8874
9008
  init_GraphQLError();
8875
9009
  init_definition();
8876
9010
  }
8877
9011
  });
8878
9012
 
8879
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs
9013
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs
8880
9014
  function UniqueFieldDefinitionNamesRule(context) {
8881
9015
  const schema = context.getSchema();
8882
9016
  const existingTypeMap = schema ? schema.getTypeMap() : /* @__PURE__ */ Object.create(null);
@@ -8931,14 +9065,14 @@ spurious results.`);
8931
9065
  return false;
8932
9066
  }
8933
9067
  var init_UniqueFieldDefinitionNamesRule = __esm({
8934
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs"() {
9068
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs"() {
8935
9069
  "use strict";
8936
9070
  init_GraphQLError();
8937
9071
  init_definition();
8938
9072
  }
8939
9073
  });
8940
9074
 
8941
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs
9075
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs
8942
9076
  function UniqueFragmentNamesRule(context) {
8943
9077
  const knownFragmentNames = /* @__PURE__ */ Object.create(null);
8944
9078
  return {
@@ -8962,13 +9096,13 @@ spurious results.`);
8962
9096
  };
8963
9097
  }
8964
9098
  var init_UniqueFragmentNamesRule = __esm({
8965
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs"() {
9099
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs"() {
8966
9100
  "use strict";
8967
9101
  init_GraphQLError();
8968
9102
  }
8969
9103
  });
8970
9104
 
8971
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs
9105
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs
8972
9106
  function UniqueInputFieldNamesRule(context) {
8973
9107
  const knownNameStack = [];
8974
9108
  let knownNames = /* @__PURE__ */ Object.create(null);
@@ -8980,7 +9114,7 @@ spurious results.`);
8980
9114
  },
8981
9115
  leave() {
8982
9116
  const prevKnownNames = knownNameStack.pop();
8983
- prevKnownNames || invariant2(false);
9117
+ prevKnownNames || invariant3(false);
8984
9118
  knownNames = prevKnownNames;
8985
9119
  }
8986
9120
  },
@@ -9002,14 +9136,14 @@ spurious results.`);
9002
9136
  };
9003
9137
  }
9004
9138
  var init_UniqueInputFieldNamesRule = __esm({
9005
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs"() {
9139
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs"() {
9006
9140
  "use strict";
9007
9141
  init_invariant();
9008
9142
  init_GraphQLError();
9009
9143
  }
9010
9144
  });
9011
9145
 
9012
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs
9146
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs
9013
9147
  function UniqueOperationNamesRule(context) {
9014
9148
  const knownOperationNames = /* @__PURE__ */ Object.create(null);
9015
9149
  return {
@@ -9038,13 +9172,13 @@ spurious results.`);
9038
9172
  };
9039
9173
  }
9040
9174
  var init_UniqueOperationNamesRule = __esm({
9041
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs"() {
9175
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs"() {
9042
9176
  "use strict";
9043
9177
  init_GraphQLError();
9044
9178
  }
9045
9179
  });
9046
9180
 
9047
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs
9181
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs
9048
9182
  function UniqueOperationTypesRule(context) {
9049
9183
  const schema = context.getSchema();
9050
9184
  const definedOperationTypes = /* @__PURE__ */ Object.create(null);
@@ -9089,13 +9223,13 @@ spurious results.`);
9089
9223
  }
9090
9224
  }
9091
9225
  var init_UniqueOperationTypesRule = __esm({
9092
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs"() {
9226
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs"() {
9093
9227
  "use strict";
9094
9228
  init_GraphQLError();
9095
9229
  }
9096
9230
  });
9097
9231
 
9098
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs
9232
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs
9099
9233
  function UniqueTypeNamesRule(context) {
9100
9234
  const knownTypeNames = /* @__PURE__ */ Object.create(null);
9101
9235
  const schema = context.getSchema();
@@ -9133,13 +9267,13 @@ spurious results.`);
9133
9267
  }
9134
9268
  }
9135
9269
  var init_UniqueTypeNamesRule = __esm({
9136
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs"() {
9270
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs"() {
9137
9271
  "use strict";
9138
9272
  init_GraphQLError();
9139
9273
  }
9140
9274
  });
9141
9275
 
9142
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs
9276
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs
9143
9277
  function UniqueVariableNamesRule(context) {
9144
9278
  return {
9145
9279
  OperationDefinition(operationNode) {
@@ -9165,16 +9299,25 @@ spurious results.`);
9165
9299
  };
9166
9300
  }
9167
9301
  var init_UniqueVariableNamesRule = __esm({
9168
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs"() {
9302
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs"() {
9169
9303
  "use strict";
9170
9304
  init_groupBy();
9171
9305
  init_GraphQLError();
9172
9306
  }
9173
9307
  });
9174
9308
 
9175
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs
9309
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs
9176
9310
  function ValuesOfCorrectTypeRule(context) {
9311
+ let variableDefinitions = {};
9177
9312
  return {
9313
+ OperationDefinition: {
9314
+ enter() {
9315
+ variableDefinitions = {};
9316
+ }
9317
+ },
9318
+ VariableDefinition(definition) {
9319
+ variableDefinitions[definition.variable.name.value] = definition;
9320
+ },
9178
9321
  ListValue(node) {
9179
9322
  const type = getNullableType(context.getParentInputType());
9180
9323
  if (!isListType(type)) {
@@ -9203,6 +9346,15 @@ spurious results.`);
9203
9346
  );
9204
9347
  }
9205
9348
  }
9349
+ if (type.isOneOf) {
9350
+ validateOneOfInputObject(
9351
+ context,
9352
+ node,
9353
+ type,
9354
+ fieldNodeMap,
9355
+ variableDefinitions
9356
+ );
9357
+ }
9206
9358
  },
9207
9359
  ObjectField(node) {
9208
9360
  const parentType = getNamedType(context.getParentInputType());
@@ -9294,20 +9446,63 @@ spurious results.`);
9294
9446
  }
9295
9447
  }
9296
9448
  }
9449
+ function validateOneOfInputObject(context, node, type, fieldNodeMap, variableDefinitions) {
9450
+ var _fieldNodeMap$keys$;
9451
+ const keys = Object.keys(fieldNodeMap);
9452
+ const isNotExactlyOneField = keys.length !== 1;
9453
+ if (isNotExactlyOneField) {
9454
+ context.reportError(
9455
+ new GraphQLError(
9456
+ `OneOf Input Object "${type.name}" must specify exactly one key.`,
9457
+ {
9458
+ nodes: [node]
9459
+ }
9460
+ )
9461
+ );
9462
+ return;
9463
+ }
9464
+ const value = (_fieldNodeMap$keys$ = fieldNodeMap[keys[0]]) === null || _fieldNodeMap$keys$ === void 0 ? void 0 : _fieldNodeMap$keys$.value;
9465
+ const isNullLiteral = !value || value.kind === Kind.NULL;
9466
+ const isVariable = (value === null || value === void 0 ? void 0 : value.kind) === Kind.VARIABLE;
9467
+ if (isNullLiteral) {
9468
+ context.reportError(
9469
+ new GraphQLError(`Field "${type.name}.${keys[0]}" must be non-null.`, {
9470
+ nodes: [node]
9471
+ })
9472
+ );
9473
+ return;
9474
+ }
9475
+ if (isVariable) {
9476
+ const variableName = value.name.value;
9477
+ const definition = variableDefinitions[variableName];
9478
+ const isNullableVariable = definition.type.kind !== Kind.NON_NULL_TYPE;
9479
+ if (isNullableVariable) {
9480
+ context.reportError(
9481
+ new GraphQLError(
9482
+ `Variable "${variableName}" must be non-nullable to be used for OneOf Input Object "${type.name}".`,
9483
+ {
9484
+ nodes: [node]
9485
+ }
9486
+ )
9487
+ );
9488
+ }
9489
+ }
9490
+ }
9297
9491
  var init_ValuesOfCorrectTypeRule = __esm({
9298
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs"() {
9492
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs"() {
9299
9493
  "use strict";
9300
9494
  init_didYouMean();
9301
9495
  init_inspect();
9302
9496
  init_keyMap();
9303
9497
  init_suggestionList();
9304
9498
  init_GraphQLError();
9499
+ init_kinds();
9305
9500
  init_printer();
9306
9501
  init_definition();
9307
9502
  }
9308
9503
  });
9309
9504
 
9310
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs
9505
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs
9311
9506
  function VariablesAreInputTypesRule(context) {
9312
9507
  return {
9313
9508
  VariableDefinition(node) {
@@ -9328,7 +9523,7 @@ spurious results.`);
9328
9523
  };
9329
9524
  }
9330
9525
  var init_VariablesAreInputTypesRule = __esm({
9331
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs"() {
9526
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs"() {
9332
9527
  "use strict";
9333
9528
  init_GraphQLError();
9334
9529
  init_printer();
@@ -9337,7 +9532,7 @@ spurious results.`);
9337
9532
  }
9338
9533
  });
9339
9534
 
9340
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs
9535
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs
9341
9536
  function VariablesInAllowedPositionRule(context) {
9342
9537
  let varDefMap = /* @__PURE__ */ Object.create(null);
9343
9538
  return {
@@ -9393,7 +9588,7 @@ spurious results.`);
9393
9588
  return isTypeSubTypeOf(schema, varType, locationType);
9394
9589
  }
9395
9590
  var init_VariablesInAllowedPositionRule = __esm({
9396
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs"() {
9591
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs"() {
9397
9592
  "use strict";
9398
9593
  init_inspect();
9399
9594
  init_GraphQLError();
@@ -9404,10 +9599,10 @@ spurious results.`);
9404
9599
  }
9405
9600
  });
9406
9601
 
9407
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/specifiedRules.mjs
9408
- var specifiedRules, specifiedSDLRules;
9602
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/specifiedRules.mjs
9603
+ var recommendedRules, specifiedRules, specifiedSDLRules;
9409
9604
  var init_specifiedRules = __esm({
9410
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/specifiedRules.mjs"() {
9605
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/specifiedRules.mjs"() {
9411
9606
  "use strict";
9412
9607
  init_ExecutableDefinitionsRule();
9413
9608
  init_FieldsOnCorrectTypeRule();
@@ -9418,6 +9613,7 @@ spurious results.`);
9418
9613
  init_KnownTypeNamesRule();
9419
9614
  init_LoneAnonymousOperationRule();
9420
9615
  init_LoneSchemaDefinitionRule();
9616
+ init_MaxIntrospectionDepthRule();
9421
9617
  init_NoFragmentCyclesRule();
9422
9618
  init_NoUndefinedVariablesRule();
9423
9619
  init_NoUnusedFragmentsRule();
@@ -9443,6 +9639,7 @@ spurious results.`);
9443
9639
  init_ValuesOfCorrectTypeRule();
9444
9640
  init_VariablesAreInputTypesRule();
9445
9641
  init_VariablesInAllowedPositionRule();
9642
+ recommendedRules = Object.freeze([MaxIntrospectionDepthRule]);
9446
9643
  specifiedRules = Object.freeze([
9447
9644
  ExecutableDefinitionsRule,
9448
9645
  UniqueOperationNamesRule,
@@ -9469,7 +9666,8 @@ spurious results.`);
9469
9666
  ProvidedRequiredArgumentsRule,
9470
9667
  VariablesInAllowedPositionRule,
9471
9668
  OverlappingFieldsCanBeMergedRule,
9472
- UniqueInputFieldNamesRule
9669
+ UniqueInputFieldNamesRule,
9670
+ ...recommendedRules
9473
9671
  ]);
9474
9672
  specifiedSDLRules = Object.freeze([
9475
9673
  LoneSchemaDefinitionRule,
@@ -9491,10 +9689,10 @@ spurious results.`);
9491
9689
  }
9492
9690
  });
9493
9691
 
9494
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/ValidationContext.mjs
9692
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/ValidationContext.mjs
9495
9693
  var ASTValidationContext, SDLValidationContext, ValidationContext;
9496
9694
  var init_ValidationContext = __esm({
9497
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/ValidationContext.mjs"() {
9695
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/ValidationContext.mjs"() {
9498
9696
  "use strict";
9499
9697
  init_kinds();
9500
9698
  init_visitor();
@@ -9663,7 +9861,7 @@ spurious results.`);
9663
9861
  }
9664
9862
  });
9665
9863
 
9666
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/validate.mjs
9864
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/validate.mjs
9667
9865
  function validate(schema, documentAST, rules = specifiedRules, options, typeInfo = new TypeInfo(schema)) {
9668
9866
  var _options$maxErrors;
9669
9867
  const maxErrors = (_options$maxErrors = options === null || options === void 0 ? void 0 : options.maxErrors) !== null && _options$maxErrors !== void 0 ? _options$maxErrors : 100;
@@ -9723,7 +9921,7 @@ spurious results.`);
9723
9921
  }
9724
9922
  }
9725
9923
  var init_validate2 = __esm({
9726
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/validate.mjs"() {
9924
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/validate.mjs"() {
9727
9925
  "use strict";
9728
9926
  init_devAssert();
9729
9927
  init_GraphQLError();
@@ -9735,7 +9933,7 @@ spurious results.`);
9735
9933
  }
9736
9934
  });
9737
9935
 
9738
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/memoize3.mjs
9936
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/memoize3.mjs
9739
9937
  function memoize3(fn) {
9740
9938
  let cache0;
9741
9939
  return function memoized(a1, a2, a3) {
@@ -9761,12 +9959,12 @@ spurious results.`);
9761
9959
  };
9762
9960
  }
9763
9961
  var init_memoize3 = __esm({
9764
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/memoize3.mjs"() {
9962
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/memoize3.mjs"() {
9765
9963
  "use strict";
9766
9964
  }
9767
9965
  });
9768
9966
 
9769
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/promiseForObject.mjs
9967
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/promiseForObject.mjs
9770
9968
  function promiseForObject(object) {
9771
9969
  return Promise.all(Object.values(object)).then((resolvedValues) => {
9772
9970
  const resolvedObject = /* @__PURE__ */ Object.create(null);
@@ -9777,12 +9975,12 @@ spurious results.`);
9777
9975
  });
9778
9976
  }
9779
9977
  var init_promiseForObject = __esm({
9780
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/promiseForObject.mjs"() {
9978
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/promiseForObject.mjs"() {
9781
9979
  "use strict";
9782
9980
  }
9783
9981
  });
9784
9982
 
9785
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/promiseReduce.mjs
9983
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/promiseReduce.mjs
9786
9984
  function promiseReduce(values, callbackFn, initialValue) {
9787
9985
  let accumulator = initialValue;
9788
9986
  for (const value of values) {
@@ -9791,19 +9989,19 @@ spurious results.`);
9791
9989
  return accumulator;
9792
9990
  }
9793
9991
  var init_promiseReduce = __esm({
9794
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/promiseReduce.mjs"() {
9992
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/promiseReduce.mjs"() {
9795
9993
  "use strict";
9796
9994
  init_isPromise();
9797
9995
  }
9798
9996
  });
9799
9997
 
9800
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/toError.mjs
9998
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/toError.mjs
9801
9999
  function toError(thrownValue) {
9802
10000
  return thrownValue instanceof Error ? thrownValue : new NonErrorThrown(thrownValue);
9803
10001
  }
9804
10002
  var NonErrorThrown;
9805
10003
  var init_toError = __esm({
9806
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/toError.mjs"() {
10004
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/toError.mjs"() {
9807
10005
  "use strict";
9808
10006
  init_inspect();
9809
10007
  NonErrorThrown = class extends Error {
@@ -9816,7 +10014,7 @@ spurious results.`);
9816
10014
  }
9817
10015
  });
9818
10016
 
9819
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/error/locatedError.mjs
10017
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/locatedError.mjs
9820
10018
  function locatedError(rawOriginalError, nodes, path) {
9821
10019
  var _nodes;
9822
10020
  const originalError = toError(rawOriginalError);
@@ -9835,14 +10033,14 @@ spurious results.`);
9835
10033
  return Array.isArray(error3.path);
9836
10034
  }
9837
10035
  var init_locatedError = __esm({
9838
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/error/locatedError.mjs"() {
10036
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/locatedError.mjs"() {
9839
10037
  "use strict";
9840
10038
  init_toError();
9841
10039
  init_GraphQLError();
9842
10040
  }
9843
10041
  });
9844
10042
 
9845
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/execute.mjs
10043
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/execute.mjs
9846
10044
  function execute(args) {
9847
10045
  arguments.length < 2 || devAssert(
9848
10046
  false,
@@ -10185,7 +10383,7 @@ spurious results.`);
10185
10383
  result
10186
10384
  );
10187
10385
  }
10188
- invariant2(
10386
+ invariant3(
10189
10387
  false,
10190
10388
  "Cannot complete value of unexpected output type: " + inspect(returnType)
10191
10389
  );
@@ -10380,7 +10578,7 @@ spurious results.`);
10380
10578
  }
10381
10579
  var collectSubfields2, defaultTypeResolver, defaultFieldResolver;
10382
10580
  var init_execute = __esm({
10383
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/execute.mjs"() {
10581
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/execute.mjs"() {
10384
10582
  "use strict";
10385
10583
  init_devAssert();
10386
10584
  init_inspect();
@@ -10449,7 +10647,7 @@ spurious results.`);
10449
10647
  }
10450
10648
  });
10451
10649
 
10452
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/graphql.mjs
10650
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/graphql.mjs
10453
10651
  function graphql(args) {
10454
10652
  return new Promise((resolve) => resolve(graphqlImpl(args)));
10455
10653
  }
@@ -10507,7 +10705,7 @@ spurious results.`);
10507
10705
  });
10508
10706
  }
10509
10707
  var init_graphql = __esm({
10510
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/graphql.mjs"() {
10708
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/graphql.mjs"() {
10511
10709
  "use strict";
10512
10710
  init_devAssert();
10513
10711
  init_isPromise();
@@ -10518,9 +10716,9 @@ spurious results.`);
10518
10716
  }
10519
10717
  });
10520
10718
 
10521
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/index.mjs
10719
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/index.mjs
10522
10720
  var init_type = __esm({
10523
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/type/index.mjs"() {
10721
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/type/index.mjs"() {
10524
10722
  "use strict";
10525
10723
  init_schema();
10526
10724
  init_definition();
@@ -10532,9 +10730,9 @@ spurious results.`);
10532
10730
  }
10533
10731
  });
10534
10732
 
10535
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/index.mjs
10733
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/index.mjs
10536
10734
  var init_language = __esm({
10537
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/language/index.mjs"() {
10735
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/index.mjs"() {
10538
10736
  "use strict";
10539
10737
  init_source();
10540
10738
  init_location();
@@ -10551,17 +10749,17 @@ spurious results.`);
10551
10749
  }
10552
10750
  });
10553
10751
 
10554
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/isAsyncIterable.mjs
10752
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isAsyncIterable.mjs
10555
10753
  function isAsyncIterable(maybeAsyncIterable) {
10556
10754
  return typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0 ? void 0 : maybeAsyncIterable[Symbol.asyncIterator]) === "function";
10557
10755
  }
10558
10756
  var init_isAsyncIterable = __esm({
10559
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/jsutils/isAsyncIterable.mjs"() {
10757
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isAsyncIterable.mjs"() {
10560
10758
  "use strict";
10561
10759
  }
10562
10760
  });
10563
10761
 
10564
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/mapAsyncIterator.mjs
10762
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/mapAsyncIterator.mjs
10565
10763
  function mapAsyncIterator(iterable, callback) {
10566
10764
  const iterator = iterable[Symbol.asyncIterator]();
10567
10765
  async function mapResult(result) {
@@ -10605,12 +10803,12 @@ spurious results.`);
10605
10803
  };
10606
10804
  }
10607
10805
  var init_mapAsyncIterator = __esm({
10608
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/mapAsyncIterator.mjs"() {
10806
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/mapAsyncIterator.mjs"() {
10609
10807
  "use strict";
10610
10808
  }
10611
10809
  });
10612
10810
 
10613
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/subscribe.mjs
10811
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/subscribe.mjs
10614
10812
  async function subscribe(args) {
10615
10813
  arguments.length < 2 || devAssert(
10616
10814
  false,
@@ -10718,7 +10916,7 @@ spurious results.`);
10718
10916
  }
10719
10917
  }
10720
10918
  var init_subscribe = __esm({
10721
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/subscribe.mjs"() {
10919
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/subscribe.mjs"() {
10722
10920
  "use strict";
10723
10921
  init_devAssert();
10724
10922
  init_inspect();
@@ -10733,9 +10931,9 @@ spurious results.`);
10733
10931
  }
10734
10932
  });
10735
10933
 
10736
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/index.mjs
10934
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/index.mjs
10737
10935
  var init_execution = __esm({
10738
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/execution/index.mjs"() {
10936
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/execution/index.mjs"() {
10739
10937
  "use strict";
10740
10938
  init_Path();
10741
10939
  init_execute();
@@ -10744,7 +10942,7 @@ spurious results.`);
10744
10942
  }
10745
10943
  });
10746
10944
 
10747
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs
10945
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs
10748
10946
  function NoDeprecatedCustomRule(context) {
10749
10947
  return {
10750
10948
  Field(node) {
@@ -10752,7 +10950,7 @@ spurious results.`);
10752
10950
  const deprecationReason = fieldDef === null || fieldDef === void 0 ? void 0 : fieldDef.deprecationReason;
10753
10951
  if (fieldDef && deprecationReason != null) {
10754
10952
  const parentType = context.getParentType();
10755
- parentType != null || invariant2(false);
10953
+ parentType != null || invariant3(false);
10756
10954
  context.reportError(
10757
10955
  new GraphQLError(
10758
10956
  `The field ${parentType.name}.${fieldDef.name} is deprecated. ${deprecationReason}`,
@@ -10780,7 +10978,7 @@ spurious results.`);
10780
10978
  } else {
10781
10979
  const parentType = context.getParentType();
10782
10980
  const fieldDef = context.getFieldDef();
10783
- parentType != null && fieldDef != null || invariant2(false);
10981
+ parentType != null && fieldDef != null || invariant3(false);
10784
10982
  context.reportError(
10785
10983
  new GraphQLError(
10786
10984
  `Field "${parentType.name}.${fieldDef.name}" argument "${argDef.name}" is deprecated. ${deprecationReason}`,
@@ -10814,7 +11012,7 @@ spurious results.`);
10814
11012
  const deprecationReason = enumValueDef === null || enumValueDef === void 0 ? void 0 : enumValueDef.deprecationReason;
10815
11013
  if (enumValueDef && deprecationReason != null) {
10816
11014
  const enumTypeDef = getNamedType(context.getInputType());
10817
- enumTypeDef != null || invariant2(false);
11015
+ enumTypeDef != null || invariant3(false);
10818
11016
  context.reportError(
10819
11017
  new GraphQLError(
10820
11018
  `The enum value "${enumTypeDef.name}.${enumValueDef.name}" is deprecated. ${deprecationReason}`,
@@ -10828,7 +11026,7 @@ spurious results.`);
10828
11026
  };
10829
11027
  }
10830
11028
  var init_NoDeprecatedCustomRule = __esm({
10831
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs"() {
11029
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs"() {
10832
11030
  "use strict";
10833
11031
  init_invariant();
10834
11032
  init_GraphQLError();
@@ -10836,7 +11034,7 @@ spurious results.`);
10836
11034
  }
10837
11035
  });
10838
11036
 
10839
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs
11037
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs
10840
11038
  function NoSchemaIntrospectionCustomRule(context) {
10841
11039
  return {
10842
11040
  Field(node) {
@@ -10855,7 +11053,7 @@ spurious results.`);
10855
11053
  };
10856
11054
  }
10857
11055
  var init_NoSchemaIntrospectionCustomRule = __esm({
10858
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs"() {
11056
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs"() {
10859
11057
  "use strict";
10860
11058
  init_GraphQLError();
10861
11059
  init_definition();
@@ -10863,9 +11061,9 @@ spurious results.`);
10863
11061
  }
10864
11062
  });
10865
11063
 
10866
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/index.mjs
11064
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/index.mjs
10867
11065
  var init_validation = __esm({
10868
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/validation/index.mjs"() {
11066
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/validation/index.mjs"() {
10869
11067
  "use strict";
10870
11068
  init_validate2();
10871
11069
  init_ValidationContext();
@@ -10896,6 +11094,7 @@ spurious results.`);
10896
11094
  init_ValuesOfCorrectTypeRule();
10897
11095
  init_VariablesAreInputTypesRule();
10898
11096
  init_VariablesInAllowedPositionRule();
11097
+ init_MaxIntrospectionDepthRule();
10899
11098
  init_LoneSchemaDefinitionRule();
10900
11099
  init_UniqueOperationTypesRule();
10901
11100
  init_UniqueTypeNamesRule();
@@ -10909,9 +11108,9 @@ spurious results.`);
10909
11108
  }
10910
11109
  });
10911
11110
 
10912
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/error/index.mjs
11111
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/index.mjs
10913
11112
  var init_error = __esm({
10914
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/error/index.mjs"() {
11113
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/index.mjs"() {
10915
11114
  "use strict";
10916
11115
  init_GraphQLError();
10917
11116
  init_syntaxError();
@@ -10919,7 +11118,7 @@ spurious results.`);
10919
11118
  }
10920
11119
  });
10921
11120
 
10922
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/getIntrospectionQuery.mjs
11121
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/getIntrospectionQuery.mjs
10923
11122
  function getIntrospectionQuery(options) {
10924
11123
  const optionsWithDefault = {
10925
11124
  descriptions: true,
@@ -10927,6 +11126,7 @@ spurious results.`);
10927
11126
  directiveIsRepeatable: false,
10928
11127
  schemaDescription: false,
10929
11128
  inputValueDeprecation: false,
11129
+ oneOf: false,
10930
11130
  ...options
10931
11131
  };
10932
11132
  const descriptions = optionsWithDefault.descriptions ? "description" : "";
@@ -10936,6 +11136,7 @@ spurious results.`);
10936
11136
  function inputDeprecation(str) {
10937
11137
  return optionsWithDefault.inputValueDeprecation ? str : "";
10938
11138
  }
11139
+ const oneOf = optionsWithDefault.oneOf ? "isOneOf" : "";
10939
11140
  return `
10940
11141
  query IntrospectionQuery {
10941
11142
  __schema {
@@ -10963,6 +11164,7 @@ spurious results.`);
10963
11164
  name
10964
11165
  ${descriptions}
10965
11166
  ${specifiedByUrl}
11167
+ ${oneOf}
10966
11168
  fields(includeDeprecated: true) {
10967
11169
  name
10968
11170
  ${descriptions}
@@ -11044,12 +11246,12 @@ spurious results.`);
11044
11246
  `;
11045
11247
  }
11046
11248
  var init_getIntrospectionQuery = __esm({
11047
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/getIntrospectionQuery.mjs"() {
11249
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/getIntrospectionQuery.mjs"() {
11048
11250
  "use strict";
11049
11251
  }
11050
11252
  });
11051
11253
 
11052
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/getOperationAST.mjs
11254
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/getOperationAST.mjs
11053
11255
  function getOperationAST(documentAST, operationName) {
11054
11256
  let operation = null;
11055
11257
  for (const definition of documentAST.definitions) {
@@ -11068,13 +11270,13 @@ spurious results.`);
11068
11270
  return operation;
11069
11271
  }
11070
11272
  var init_getOperationAST = __esm({
11071
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/getOperationAST.mjs"() {
11273
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/getOperationAST.mjs"() {
11072
11274
  "use strict";
11073
11275
  init_kinds();
11074
11276
  }
11075
11277
  });
11076
11278
 
11077
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/getOperationRootType.mjs
11279
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/getOperationRootType.mjs
11078
11280
  function getOperationRootType(schema, operation) {
11079
11281
  if (operation.operation === "query") {
11080
11282
  const queryType = schema.getQueryType();
@@ -11114,19 +11316,20 @@ spurious results.`);
11114
11316
  );
11115
11317
  }
11116
11318
  var init_getOperationRootType = __esm({
11117
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/getOperationRootType.mjs"() {
11319
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/getOperationRootType.mjs"() {
11118
11320
  "use strict";
11119
11321
  init_GraphQLError();
11120
11322
  }
11121
11323
  });
11122
11324
 
11123
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/introspectionFromSchema.mjs
11325
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/introspectionFromSchema.mjs
11124
11326
  function introspectionFromSchema(schema, options) {
11125
11327
  const optionsWithDefaults = {
11126
11328
  specifiedByUrl: true,
11127
11329
  directiveIsRepeatable: true,
11128
11330
  schemaDescription: true,
11129
11331
  inputValueDeprecation: true,
11332
+ oneOf: true,
11130
11333
  ...options
11131
11334
  };
11132
11335
  const document2 = parse2(getIntrospectionQuery(optionsWithDefaults));
@@ -11134,11 +11337,11 @@ spurious results.`);
11134
11337
  schema,
11135
11338
  document: document2
11136
11339
  });
11137
- !result.errors && result.data || invariant2(false);
11340
+ !result.errors && result.data || invariant3(false);
11138
11341
  return result.data;
11139
11342
  }
11140
11343
  var init_introspectionFromSchema = __esm({
11141
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/introspectionFromSchema.mjs"() {
11344
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/introspectionFromSchema.mjs"() {
11142
11345
  "use strict";
11143
11346
  init_invariant();
11144
11347
  init_parser();
@@ -11147,7 +11350,7 @@ spurious results.`);
11147
11350
  }
11148
11351
  });
11149
11352
 
11150
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/buildClientSchema.mjs
11353
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/buildClientSchema.mjs
11151
11354
  function buildClientSchema(introspection, options) {
11152
11355
  isObjectLike(introspection) && isObjectLike(introspection.__schema) || devAssert(
11153
11356
  false,
@@ -11316,7 +11519,8 @@ spurious results.`);
11316
11519
  return new GraphQLInputObjectType({
11317
11520
  name: inputObjectIntrospection.name,
11318
11521
  description: inputObjectIntrospection.description,
11319
- fields: () => buildInputValueDefMap(inputObjectIntrospection.inputFields)
11522
+ fields: () => buildInputValueDefMap(inputObjectIntrospection.inputFields),
11523
+ isOneOf: inputObjectIntrospection.isOneOf
11320
11524
  });
11321
11525
  }
11322
11526
  function buildFieldDefMap(typeIntrospection) {
@@ -11398,7 +11602,7 @@ spurious results.`);
11398
11602
  }
11399
11603
  }
11400
11604
  var init_buildClientSchema = __esm({
11401
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/buildClientSchema.mjs"() {
11605
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/buildClientSchema.mjs"() {
11402
11606
  "use strict";
11403
11607
  init_devAssert();
11404
11608
  init_inspect();
@@ -11414,7 +11618,7 @@ spurious results.`);
11414
11618
  }
11415
11619
  });
11416
11620
 
11417
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/extendSchema.mjs
11621
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/extendSchema.mjs
11418
11622
  function extendSchema(schema, documentAST, options) {
11419
11623
  assertSchema(schema);
11420
11624
  documentAST != null && documentAST.kind === Kind.DOCUMENT || devAssert(false, "Must provide valid Document AST.");
@@ -11522,7 +11726,7 @@ spurious results.`);
11522
11726
  if (isInputObjectType(type)) {
11523
11727
  return extendInputObjectType(type);
11524
11728
  }
11525
- invariant2(false, "Unexpected type: " + inspect(type));
11729
+ invariant3(false, "Unexpected type: " + inspect(type));
11526
11730
  }
11527
11731
  function extendInputObjectType(type) {
11528
11732
  var _typeExtensionsMap$co;
@@ -11843,7 +12047,8 @@ spurious results.`);
11843
12047
  description: (_astNode$description6 = astNode.description) === null || _astNode$description6 === void 0 ? void 0 : _astNode$description6.value,
11844
12048
  fields: () => buildInputFieldMap(allNodes),
11845
12049
  astNode,
11846
- extensionASTNodes
12050
+ extensionASTNodes,
12051
+ isOneOf: isOneOf(astNode)
11847
12052
  });
11848
12053
  }
11849
12054
  }
@@ -11857,9 +12062,12 @@ spurious results.`);
11857
12062
  const specifiedBy = getDirectiveValues(GraphQLSpecifiedByDirective, node);
11858
12063
  return specifiedBy === null || specifiedBy === void 0 ? void 0 : specifiedBy.url;
11859
12064
  }
12065
+ function isOneOf(node) {
12066
+ return Boolean(getDirectiveValues(GraphQLOneOfDirective, node));
12067
+ }
11860
12068
  var stdTypeMap;
11861
12069
  var init_extendSchema = __esm({
11862
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/extendSchema.mjs"() {
12070
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/extendSchema.mjs"() {
11863
12071
  "use strict";
11864
12072
  init_devAssert();
11865
12073
  init_inspect();
@@ -11883,7 +12091,7 @@ spurious results.`);
11883
12091
  }
11884
12092
  });
11885
12093
 
11886
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/buildASTSchema.mjs
12094
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/buildASTSchema.mjs
11887
12095
  function buildASTSchema(documentAST, options) {
11888
12096
  documentAST != null && documentAST.kind === Kind.DOCUMENT || devAssert(false, "Must provide valid Document AST.");
11889
12097
  if ((options === null || options === void 0 ? void 0 : options.assumeValid) !== true && (options === null || options === void 0 ? void 0 : options.assumeValidSDL) !== true) {
@@ -11935,7 +12143,7 @@ spurious results.`);
11935
12143
  });
11936
12144
  }
11937
12145
  var init_buildASTSchema = __esm({
11938
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/buildASTSchema.mjs"() {
12146
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/buildASTSchema.mjs"() {
11939
12147
  "use strict";
11940
12148
  init_devAssert();
11941
12149
  init_kinds();
@@ -11947,7 +12155,7 @@ spurious results.`);
11947
12155
  }
11948
12156
  });
11949
12157
 
11950
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/lexicographicSortSchema.mjs
12158
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/lexicographicSortSchema.mjs
11951
12159
  function lexicographicSortSchema(schema) {
11952
12160
  const schemaConfig = schema.toConfig();
11953
12161
  const typeMap = keyValMap(
@@ -12045,7 +12253,7 @@ spurious results.`);
12045
12253
  fields: () => sortInputFields(config.fields)
12046
12254
  });
12047
12255
  }
12048
- invariant2(false, "Unexpected type: " + inspect(type));
12256
+ invariant3(false, "Unexpected type: " + inspect(type));
12049
12257
  }
12050
12258
  }
12051
12259
  function sortObjMap(map, sortValueFn) {
@@ -12066,7 +12274,7 @@ spurious results.`);
12066
12274
  });
12067
12275
  }
12068
12276
  var init_lexicographicSortSchema = __esm({
12069
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/lexicographicSortSchema.mjs"() {
12277
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/lexicographicSortSchema.mjs"() {
12070
12278
  "use strict";
12071
12279
  init_inspect();
12072
12280
  init_invariant();
@@ -12079,7 +12287,7 @@ spurious results.`);
12079
12287
  }
12080
12288
  });
12081
12289
 
12082
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/printSchema.mjs
12290
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/printSchema.mjs
12083
12291
  function printSchema(schema) {
12084
12292
  return printFilteredSchema(
12085
12293
  schema,
@@ -12157,7 +12365,7 @@ ${operationTypes.join("\n")}
12157
12365
  if (isInputObjectType(type)) {
12158
12366
  return printInputObject(type);
12159
12367
  }
12160
- invariant2(false, "Unexpected type: " + inspect(type));
12368
+ invariant3(false, "Unexpected type: " + inspect(type));
12161
12369
  }
12162
12370
  function printScalar(type) {
12163
12371
  return printDescription(type) + `scalar ${type.name}` + printSpecifiedByURL(type);
@@ -12187,7 +12395,7 @@ ${operationTypes.join("\n")}
12187
12395
  const fields = Object.values(type.getFields()).map(
12188
12396
  (f, i) => printDescription(f, " ", !i) + " " + printInputValue(f)
12189
12397
  );
12190
- return printDescription(type) + `input ${type.name}` + printBlock(fields);
12398
+ return printDescription(type) + `input ${type.name}` + (type.isOneOf ? " @oneOf" : "") + printBlock(fields);
12191
12399
  }
12192
12400
  function printFields(type) {
12193
12401
  const fields = Object.values(type.getFields()).map(
@@ -12257,7 +12465,7 @@ ${operationTypes.join("\n")}
12257
12465
  return prefix + blockString.replace(/\n/g, "\n" + indentation) + "\n";
12258
12466
  }
12259
12467
  var init_printSchema = __esm({
12260
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/printSchema.mjs"() {
12468
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/printSchema.mjs"() {
12261
12469
  "use strict";
12262
12470
  init_inspect();
12263
12471
  init_invariant();
@@ -12272,7 +12480,7 @@ ${operationTypes.join("\n")}
12272
12480
  }
12273
12481
  });
12274
12482
 
12275
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/concatAST.mjs
12483
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/concatAST.mjs
12276
12484
  function concatAST(documents) {
12277
12485
  const definitions = [];
12278
12486
  for (const doc of documents) {
@@ -12284,13 +12492,13 @@ ${operationTypes.join("\n")}
12284
12492
  };
12285
12493
  }
12286
12494
  var init_concatAST = __esm({
12287
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/concatAST.mjs"() {
12495
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/concatAST.mjs"() {
12288
12496
  "use strict";
12289
12497
  init_kinds();
12290
12498
  }
12291
12499
  });
12292
12500
 
12293
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/separateOperations.mjs
12501
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/separateOperations.mjs
12294
12502
  function separateOperations(documentAST) {
12295
12503
  const operations = [];
12296
12504
  const depGraph = /* @__PURE__ */ Object.create(null);
@@ -12344,14 +12552,14 @@ ${operationTypes.join("\n")}
12344
12552
  return dependencies;
12345
12553
  }
12346
12554
  var init_separateOperations = __esm({
12347
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/separateOperations.mjs"() {
12555
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/separateOperations.mjs"() {
12348
12556
  "use strict";
12349
12557
  init_kinds();
12350
12558
  init_visitor();
12351
12559
  }
12352
12560
  });
12353
12561
 
12354
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/stripIgnoredCharacters.mjs
12562
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/stripIgnoredCharacters.mjs
12355
12563
  function stripIgnoredCharacters(source) {
12356
12564
  const sourceObj = isSource(source) ? source : new Source(source);
12357
12565
  const body = sourceObj.body;
@@ -12380,7 +12588,7 @@ ${operationTypes.join("\n")}
12380
12588
  return strippedBody;
12381
12589
  }
12382
12590
  var init_stripIgnoredCharacters = __esm({
12383
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/stripIgnoredCharacters.mjs"() {
12591
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/stripIgnoredCharacters.mjs"() {
12384
12592
  "use strict";
12385
12593
  init_blockString();
12386
12594
  init_lexer();
@@ -12389,7 +12597,7 @@ ${operationTypes.join("\n")}
12389
12597
  }
12390
12598
  });
12391
12599
 
12392
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/assertValidName.mjs
12600
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/assertValidName.mjs
12393
12601
  function assertValidName(name) {
12394
12602
  const error3 = isValidNameError(name);
12395
12603
  if (error3) {
@@ -12411,7 +12619,7 @@ ${operationTypes.join("\n")}
12411
12619
  }
12412
12620
  }
12413
12621
  var init_assertValidName = __esm({
12414
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/assertValidName.mjs"() {
12622
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/assertValidName.mjs"() {
12415
12623
  "use strict";
12416
12624
  init_devAssert();
12417
12625
  init_GraphQLError();
@@ -12419,7 +12627,7 @@ ${operationTypes.join("\n")}
12419
12627
  }
12420
12628
  });
12421
12629
 
12422
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/findBreakingChanges.mjs
12630
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/findBreakingChanges.mjs
12423
12631
  function findBreakingChanges(oldSchema, newSchema) {
12424
12632
  return findSchemaChanges(oldSchema, newSchema).filter(
12425
12633
  (change) => change.type in BreakingChangeType
@@ -12744,11 +12952,11 @@ ${operationTypes.join("\n")}
12744
12952
  if (isInputObjectType(type)) {
12745
12953
  return "an Input type";
12746
12954
  }
12747
- invariant2(false, "Unexpected type: " + inspect(type));
12955
+ invariant3(false, "Unexpected type: " + inspect(type));
12748
12956
  }
12749
12957
  function stringifyValue2(value, type) {
12750
12958
  const ast = astFromValue(value, type);
12751
- ast != null || invariant2(false);
12959
+ ast != null || invariant3(false);
12752
12960
  return print(sortValueNode(ast));
12753
12961
  }
12754
12962
  function diff(oldArray, newArray) {
@@ -12778,7 +12986,7 @@ ${operationTypes.join("\n")}
12778
12986
  }
12779
12987
  var BreakingChangeType, DangerousChangeType;
12780
12988
  var init_findBreakingChanges = __esm({
12781
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/findBreakingChanges.mjs"() {
12989
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/findBreakingChanges.mjs"() {
12782
12990
  "use strict";
12783
12991
  init_inspect();
12784
12992
  init_invariant();
@@ -12817,9 +13025,9 @@ ${operationTypes.join("\n")}
12817
13025
  }
12818
13026
  });
12819
13027
 
12820
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/index.mjs
13028
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/index.mjs
12821
13029
  var init_utilities = __esm({
12822
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/utilities/index.mjs"() {
13030
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/utilities/index.mjs"() {
12823
13031
  "use strict";
12824
13032
  init_getIntrospectionQuery();
12825
13033
  init_getOperationAST();
@@ -12845,7 +13053,7 @@ ${operationTypes.join("\n")}
12845
13053
  }
12846
13054
  });
12847
13055
 
12848
- // node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/index.mjs
13056
+ // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/index.mjs
12849
13057
  var graphql_exports = {};
12850
13058
  __export(graphql_exports, {
12851
13059
  BREAK: () => BREAK,
@@ -12872,6 +13080,7 @@ ${operationTypes.join("\n")}
12872
13080
  GraphQLList: () => GraphQLList,
12873
13081
  GraphQLNonNull: () => GraphQLNonNull,
12874
13082
  GraphQLObjectType: () => GraphQLObjectType,
13083
+ GraphQLOneOfDirective: () => GraphQLOneOfDirective,
12875
13084
  GraphQLScalarType: () => GraphQLScalarType,
12876
13085
  GraphQLSchema: () => GraphQLSchema,
12877
13086
  GraphQLSkipDirective: () => GraphQLSkipDirective,
@@ -12887,6 +13096,7 @@ ${operationTypes.join("\n")}
12887
13096
  Location: () => Location,
12888
13097
  LoneAnonymousOperationRule: () => LoneAnonymousOperationRule,
12889
13098
  LoneSchemaDefinitionRule: () => LoneSchemaDefinitionRule,
13099
+ MaxIntrospectionDepthRule: () => MaxIntrospectionDepthRule,
12890
13100
  NoDeprecatedCustomRule: () => NoDeprecatedCustomRule,
12891
13101
  NoFragmentCyclesRule: () => NoFragmentCyclesRule,
12892
13102
  NoSchemaIntrospectionCustomRule: () => NoSchemaIntrospectionCustomRule,
@@ -13036,6 +13246,7 @@ ${operationTypes.join("\n")}
13036
13246
  printSchema: () => printSchema,
13037
13247
  printSourceLocation: () => printSourceLocation,
13038
13248
  printType: () => printType,
13249
+ recommendedRules: () => recommendedRules,
13039
13250
  resolveObjMapThunk: () => resolveObjMapThunk,
13040
13251
  resolveReadonlyArrayThunk: () => resolveReadonlyArrayThunk,
13041
13252
  responsePathAsArray: () => pathToArray,
@@ -13058,7 +13269,7 @@ ${operationTypes.join("\n")}
13058
13269
  visitWithTypeInfo: () => visitWithTypeInfo
13059
13270
  });
13060
13271
  var init_graphql2 = __esm({
13061
- "node_modules/.pnpm/graphql@16.8.2/node_modules/graphql/index.mjs"() {
13272
+ "node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/index.mjs"() {
13062
13273
  "use strict";
13063
13274
  init_version();
13064
13275
  init_graphql();
@@ -14177,7 +14388,7 @@ ${operationTypes.join("\n")}
14177
14388
  return stringToRegexp(path, keys, options);
14178
14389
  }
14179
14390
 
14180
- // node_modules/.pnpm/@mswjs+interceptors@0.29.0/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs
14391
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.0/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs
14181
14392
  var encoder = new TextEncoder();
14182
14393
  function encodeBuffer(text) {
14183
14394
  return encoder.encode(text);
@@ -14193,7 +14404,7 @@ ${operationTypes.join("\n")}
14193
14404
  );
14194
14405
  }
14195
14406
 
14196
- // node_modules/.pnpm/@mswjs+interceptors@0.29.0/node_modules/@mswjs/interceptors/lib/browser/chunk-OMISYKWR.mjs
14407
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.0/node_modules/@mswjs/interceptors/lib/browser/chunk-XVPRNJO7.mjs
14197
14408
  var IS_PATCHED_MODULE = Symbol("isPatchedModule");
14198
14409
  function isPropertyAccessible(obj, key) {
14199
14410
  try {
@@ -14210,6 +14421,13 @@ ${operationTypes.join("\n")}
14210
14421
  205,
14211
14422
  304
14212
14423
  ]);
14424
+ var RESPONSE_STATUS_CODES_WITH_REDIRECT = /* @__PURE__ */ new Set([
14425
+ 301,
14426
+ 302,
14427
+ 303,
14428
+ 307,
14429
+ 308
14430
+ ]);
14213
14431
  function isResponseWithoutBody(status) {
14214
14432
  return RESPONSE_STATUS_CODES_WITHOUT_BODY.has(status);
14215
14433
  }
@@ -14250,6 +14468,90 @@ ${operationTypes.join("\n")}
14250
14468
  return false;
14251
14469
  }
14252
14470
 
14471
+ // node_modules/.pnpm/outvariant@1.4.3/node_modules/outvariant/lib/index.mjs
14472
+ var POSITIONALS_EXP2 = /(%?)(%([sdijo]))/g;
14473
+ function serializePositional2(positional, flag) {
14474
+ switch (flag) {
14475
+ case "s":
14476
+ return positional;
14477
+ case "d":
14478
+ case "i":
14479
+ return Number(positional);
14480
+ case "j":
14481
+ return JSON.stringify(positional);
14482
+ case "o": {
14483
+ if (typeof positional === "string") {
14484
+ return positional;
14485
+ }
14486
+ const json = JSON.stringify(positional);
14487
+ if (json === "{}" || json === "[]" || /^\[object .+?\]$/.test(json)) {
14488
+ return positional;
14489
+ }
14490
+ return json;
14491
+ }
14492
+ }
14493
+ }
14494
+ function format2(message3, ...positionals) {
14495
+ if (positionals.length === 0) {
14496
+ return message3;
14497
+ }
14498
+ let positionalIndex = 0;
14499
+ let formattedMessage = message3.replace(
14500
+ POSITIONALS_EXP2,
14501
+ (match2, isEscaped, _, flag) => {
14502
+ const positional = positionals[positionalIndex];
14503
+ const value = serializePositional2(positional, flag);
14504
+ if (!isEscaped) {
14505
+ positionalIndex++;
14506
+ return value;
14507
+ }
14508
+ return match2;
14509
+ }
14510
+ );
14511
+ if (positionalIndex < positionals.length) {
14512
+ formattedMessage += ` ${positionals.slice(positionalIndex).join(" ")}`;
14513
+ }
14514
+ formattedMessage = formattedMessage.replace(/%{2,2}/g, "%");
14515
+ return formattedMessage;
14516
+ }
14517
+ var STACK_FRAMES_TO_IGNORE2 = 2;
14518
+ function cleanErrorStack2(error3) {
14519
+ if (!error3.stack) {
14520
+ return;
14521
+ }
14522
+ const nextStack = error3.stack.split("\n");
14523
+ nextStack.splice(1, STACK_FRAMES_TO_IGNORE2);
14524
+ error3.stack = nextStack.join("\n");
14525
+ }
14526
+ var InvariantError2 = class extends Error {
14527
+ constructor(message3, ...positionals) {
14528
+ super(message3);
14529
+ this.message = message3;
14530
+ this.name = "Invariant Violation";
14531
+ this.message = format2(message3, ...positionals);
14532
+ cleanErrorStack2(this);
14533
+ }
14534
+ };
14535
+ var invariant2 = (predicate, message3, ...positionals) => {
14536
+ if (!predicate) {
14537
+ throw new InvariantError2(message3, ...positionals);
14538
+ }
14539
+ };
14540
+ invariant2.as = (ErrorConstructor, predicate, message3, ...positionals) => {
14541
+ if (!predicate) {
14542
+ const formatMessage2 = positionals.length === 0 ? message3 : format2(message3, ...positionals);
14543
+ let error3;
14544
+ try {
14545
+ error3 = Reflect.construct(ErrorConstructor, [
14546
+ formatMessage2
14547
+ ]);
14548
+ } catch (err) {
14549
+ error3 = ErrorConstructor(formatMessage2);
14550
+ }
14551
+ throw error3;
14552
+ }
14553
+ };
14554
+
14253
14555
  // node_modules/.pnpm/@open-draft+logger@0.3.0/node_modules/@open-draft/logger/lib/index.mjs
14254
14556
  var __defProp3 = Object.defineProperty;
14255
14557
  var __export2 = (target, all) => {
@@ -14478,21 +14780,21 @@ ${operationTypes.join("\n")}
14478
14780
  var noop = () => void 0;
14479
14781
  function log(message3, ...positionals) {
14480
14782
  if (IS_NODE) {
14481
- process.stdout.write(format(message3, ...positionals) + "\n");
14783
+ process.stdout.write(format2(message3, ...positionals) + "\n");
14482
14784
  return;
14483
14785
  }
14484
14786
  console.log(message3, ...positionals);
14485
14787
  }
14486
14788
  function warn2(message3, ...positionals) {
14487
14789
  if (IS_NODE) {
14488
- process.stderr.write(format(message3, ...positionals) + "\n");
14790
+ process.stderr.write(format2(message3, ...positionals) + "\n");
14489
14791
  return;
14490
14792
  }
14491
14793
  console.warn(message3, ...positionals);
14492
14794
  }
14493
14795
  function error2(message3, ...positionals) {
14494
14796
  if (IS_NODE) {
14495
- process.stderr.write(format(message3, ...positionals) + "\n");
14797
+ process.stderr.write(format2(message3, ...positionals) + "\n");
14496
14798
  return;
14497
14799
  }
14498
14800
  console.error(message3, ...positionals);
@@ -14522,7 +14824,7 @@ ${operationTypes.join("\n")}
14522
14824
  return message3.toString();
14523
14825
  }
14524
14826
 
14525
- // node_modules/.pnpm/@mswjs+interceptors@0.29.0/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
14827
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.0/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
14526
14828
  var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
14527
14829
  function getGlobalSymbol(symbol) {
14528
14830
  return (
@@ -14670,7 +14972,7 @@ ${operationTypes.join("\n")}
14670
14972
  return Math.random().toString(16).slice(2);
14671
14973
  }
14672
14974
 
14673
- // node_modules/.pnpm/@mswjs+interceptors@0.29.0/node_modules/@mswjs/interceptors/lib/browser/index.mjs
14975
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.0/node_modules/@mswjs/interceptors/lib/browser/index.mjs
14674
14976
  var BatchInterceptor = class extends Interceptor {
14675
14977
  constructor(options) {
14676
14978
  BatchInterceptor.symbol = Symbol(options.name);
@@ -28799,34 +29101,58 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
28799
29101
  }
28800
29102
  };
28801
29103
 
28802
- // node_modules/.pnpm/@mswjs+interceptors@0.29.0/node_modules/@mswjs/interceptors/lib/browser/chunk-OUWBQF3Z.mjs
29104
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.0/node_modules/@mswjs/interceptors/lib/browser/chunk-THPGBWJQ.mjs
29105
+ var InterceptorError = class extends Error {
29106
+ constructor(message3) {
29107
+ super(message3);
29108
+ this.name = "InterceptorError";
29109
+ Object.setPrototypeOf(this, InterceptorError.prototype);
29110
+ }
29111
+ };
29112
+ var kRequestHandled = Symbol("kRequestHandled");
29113
+ var kResponsePromise = Symbol("kResponsePromise");
28803
29114
  var RequestController = class {
28804
29115
  constructor(request) {
28805
29116
  this.request = request;
28806
- this.responsePromise = new DeferredPromise();
29117
+ this[kRequestHandled] = false;
29118
+ this[kResponsePromise] = new DeferredPromise();
28807
29119
  }
29120
+ /**
29121
+ * Respond to this request with the given `Response` instance.
29122
+ * @example
29123
+ * controller.respondWith(new Response())
29124
+ * controller.respondWith(Response.json({ id }))
29125
+ * controller.respondWith(Response.error())
29126
+ */
28808
29127
  respondWith(response) {
28809
- invariant(
28810
- this.responsePromise.state === "pending",
28811
- 'Failed to respond to "%s %s" request: the "request" event has already been responded to.',
29128
+ invariant2.as(
29129
+ InterceptorError,
29130
+ !this[kRequestHandled],
29131
+ 'Failed to respond to the "%s %s" request: the "request" event has already been handled.',
29132
+ this.request.method,
29133
+ this.request.url
29134
+ );
29135
+ this[kRequestHandled] = true;
29136
+ this[kResponsePromise].resolve(response);
29137
+ }
29138
+ /**
29139
+ * Error this request with the given error.
29140
+ * @example
29141
+ * controller.errorWith()
29142
+ * controller.errorWith(new Error('Oops!'))
29143
+ */
29144
+ errorWith(error3) {
29145
+ invariant2.as(
29146
+ InterceptorError,
29147
+ !this[kRequestHandled],
29148
+ 'Failed to error the "%s %s" request: the "request" event has already been handled.',
28812
29149
  this.request.method,
28813
29150
  this.request.url
28814
29151
  );
28815
- this.responsePromise.resolve(response);
29152
+ this[kRequestHandled] = true;
29153
+ this[kResponsePromise].resolve(error3);
28816
29154
  }
28817
29155
  };
28818
- function toInteractiveRequest(request) {
28819
- const requestController = new RequestController(request);
28820
- Reflect.set(
28821
- request,
28822
- "respondWith",
28823
- requestController.respondWith.bind(requestController)
28824
- );
28825
- return {
28826
- interactiveRequest: request,
28827
- requestController
28828
- };
28829
- }
28830
29156
  async function emitAsync(emitter, eventName, ...data) {
28831
29157
  const listners = emitter.listeners(eventName);
28832
29158
  if (listners.length === 0) {
@@ -28836,8 +29162,114 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
28836
29162
  await listener.apply(emitter, data);
28837
29163
  }
28838
29164
  }
29165
+ function isNodeLikeError(error3) {
29166
+ if (error3 == null) {
29167
+ return false;
29168
+ }
29169
+ if (!(error3 instanceof Error)) {
29170
+ return false;
29171
+ }
29172
+ return "code" in error3 && "errno" in error3;
29173
+ }
29174
+ async function handleRequest2(options) {
29175
+ const handleResponse = async (response) => {
29176
+ if (response instanceof Error) {
29177
+ options.onError(response);
29178
+ } else if (isResponseError(response)) {
29179
+ options.onRequestError(response);
29180
+ } else {
29181
+ await options.onResponse(response);
29182
+ }
29183
+ return true;
29184
+ };
29185
+ const handleResponseError = async (error3) => {
29186
+ if (error3 instanceof InterceptorError) {
29187
+ throw result.error;
29188
+ }
29189
+ if (isNodeLikeError(error3)) {
29190
+ options.onError(error3);
29191
+ return true;
29192
+ }
29193
+ if (error3 instanceof Response) {
29194
+ return await handleResponse(error3);
29195
+ }
29196
+ return false;
29197
+ };
29198
+ options.emitter.once("request", ({ requestId: pendingRequestId }) => {
29199
+ if (pendingRequestId !== options.requestId) {
29200
+ return;
29201
+ }
29202
+ if (options.controller[kResponsePromise].state === "pending") {
29203
+ options.controller[kResponsePromise].resolve(void 0);
29204
+ }
29205
+ });
29206
+ const requestAbortPromise = new DeferredPromise();
29207
+ if (options.request.signal) {
29208
+ options.request.signal.addEventListener(
29209
+ "abort",
29210
+ () => {
29211
+ requestAbortPromise.reject(options.request.signal.reason);
29212
+ },
29213
+ { once: true }
29214
+ );
29215
+ }
29216
+ const result = await until(async () => {
29217
+ const requestListtenersPromise = emitAsync(options.emitter, "request", {
29218
+ requestId: options.requestId,
29219
+ request: options.request,
29220
+ controller: options.controller
29221
+ });
29222
+ await Promise.race([
29223
+ // Short-circuit the request handling promise if the request gets aborted.
29224
+ requestAbortPromise,
29225
+ requestListtenersPromise,
29226
+ options.controller[kResponsePromise]
29227
+ ]);
29228
+ const mockedResponse = await options.controller[kResponsePromise];
29229
+ return mockedResponse;
29230
+ });
29231
+ if (requestAbortPromise.state === "rejected") {
29232
+ options.onError(requestAbortPromise.rejectionReason);
29233
+ return true;
29234
+ }
29235
+ if (result.error) {
29236
+ if (await handleResponseError(result.error)) {
29237
+ return true;
29238
+ }
29239
+ if (options.emitter.listenerCount("unhandledException") > 0) {
29240
+ const unhandledExceptionController = new RequestController(
29241
+ options.request
29242
+ );
29243
+ await emitAsync(options.emitter, "unhandledException", {
29244
+ error: result.error,
29245
+ request: options.request,
29246
+ requestId: options.requestId,
29247
+ controller: unhandledExceptionController
29248
+ }).then(() => {
29249
+ if (unhandledExceptionController[kResponsePromise].state === "pending") {
29250
+ unhandledExceptionController[kResponsePromise].resolve(void 0);
29251
+ }
29252
+ });
29253
+ const nextResult = await until(
29254
+ () => unhandledExceptionController[kResponsePromise]
29255
+ );
29256
+ if (nextResult.error) {
29257
+ return handleResponseError(nextResult.error);
29258
+ }
29259
+ if (nextResult.data) {
29260
+ return handleResponse(nextResult.data);
29261
+ }
29262
+ }
29263
+ options.onResponse(createServerErrorResponse(result.error));
29264
+ return true;
29265
+ }
29266
+ if (result.data) {
29267
+ return handleResponse(result.data);
29268
+ }
29269
+ return false;
29270
+ }
28839
29271
 
28840
- // node_modules/.pnpm/@mswjs+interceptors@0.29.0/node_modules/@mswjs/interceptors/lib/browser/chunk-MAEPOYB6.mjs
29272
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.0/node_modules/@mswjs/interceptors/lib/browser/chunk-DZCGGRSJ.mjs
28841
29273
  function canParseUrl(url) {
28842
29274
  try {
28843
29275
  new URL(url);
@@ -28846,6 +29278,72 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
28846
29278
  return false;
28847
29279
  }
28848
29280
  }
29281
+ function createNetworkError(cause) {
29282
+ return Object.assign(new TypeError("Failed to fetch"), {
29283
+ cause
29284
+ });
29285
+ }
29286
+ var REQUEST_BODY_HEADERS = [
29287
+ "content-encoding",
29288
+ "content-language",
29289
+ "content-location",
29290
+ "content-type",
29291
+ "content-length"
29292
+ ];
29293
+ var kRedirectCount = Symbol("kRedirectCount");
29294
+ async function followFetchRedirect(request, response) {
29295
+ if (response.status !== 303 && request.body != null) {
29296
+ return Promise.reject(createNetworkError());
29297
+ }
29298
+ const requestUrl = new URL(request.url);
29299
+ let locationUrl;
29300
+ try {
29301
+ locationUrl = new URL(response.headers.get("location"));
29302
+ } catch (error3) {
29303
+ return Promise.reject(createNetworkError(error3));
29304
+ }
29305
+ if (!(locationUrl.protocol === "http:" || locationUrl.protocol === "https:")) {
29306
+ return Promise.reject(
29307
+ createNetworkError("URL scheme must be a HTTP(S) scheme")
29308
+ );
29309
+ }
29310
+ if (Reflect.get(request, kRedirectCount) > 20) {
29311
+ return Promise.reject(createNetworkError("redirect count exceeded"));
29312
+ }
29313
+ Object.defineProperty(request, kRedirectCount, {
29314
+ value: (Reflect.get(request, kRedirectCount) || 0) + 1
29315
+ });
29316
+ if (request.mode === "cors" && (locationUrl.username || locationUrl.password) && !sameOrigin(requestUrl, locationUrl)) {
29317
+ return Promise.reject(
29318
+ createNetworkError('cross origin not allowed for request mode "cors"')
29319
+ );
29320
+ }
29321
+ const requestInit = {};
29322
+ if ([301, 302].includes(response.status) && request.method === "POST" || response.status === 303 && !["HEAD", "GET"].includes(request.method)) {
29323
+ requestInit.method = "GET";
29324
+ requestInit.body = null;
29325
+ REQUEST_BODY_HEADERS.forEach((headerName) => {
29326
+ request.headers.delete(headerName);
29327
+ });
29328
+ }
29329
+ if (!sameOrigin(requestUrl, locationUrl)) {
29330
+ request.headers.delete("authorization");
29331
+ request.headers.delete("proxy-authorization");
29332
+ request.headers.delete("cookie");
29333
+ request.headers.delete("host");
29334
+ }
29335
+ requestInit.headers = request.headers;
29336
+ return fetch(new Request(locationUrl, requestInit));
29337
+ }
29338
+ function sameOrigin(left, right) {
29339
+ if (left.origin === right.origin && left.origin === "null") {
29340
+ return true;
29341
+ }
29342
+ if (left.protocol === right.protocol && left.hostname === right.hostname && left.port === right.port) {
29343
+ return true;
29344
+ }
29345
+ return false;
29346
+ }
28849
29347
  var _FetchInterceptor = class extends Interceptor {
28850
29348
  constructor() {
28851
29349
  super(_FetchInterceptor.symbol);
@@ -28855,136 +29353,84 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
28855
29353
  }
28856
29354
  async setup() {
28857
29355
  const pureFetch = globalThis.fetch;
28858
- invariant(
29356
+ invariant2(
28859
29357
  !pureFetch[IS_PATCHED_MODULE],
28860
29358
  'Failed to patch the "fetch" module: already patched.'
28861
29359
  );
28862
29360
  globalThis.fetch = async (input, init) => {
28863
- var _a2;
28864
29361
  const requestId = createRequestId();
28865
29362
  const resolvedInput = typeof input === "string" && typeof location !== "undefined" && !canParseUrl(input) ? new URL(input, location.origin) : input;
28866
29363
  const request = new Request(resolvedInput, init);
29364
+ const responsePromise = new DeferredPromise();
29365
+ const controller = new RequestController(request);
28867
29366
  this.logger.info("[%s] %s", request.method, request.url);
28868
- const { interactiveRequest, requestController } = toInteractiveRequest(request);
29367
+ this.logger.info("awaiting for the mocked response...");
28869
29368
  this.logger.info(
28870
- 'emitting the "request" event for %d listener(s)...',
29369
+ 'emitting the "request" event for %s listener(s)...',
28871
29370
  this.emitter.listenerCount("request")
28872
29371
  );
28873
- this.emitter.once("request", ({ requestId: pendingRequestId }) => {
28874
- if (pendingRequestId !== requestId) {
28875
- return;
28876
- }
28877
- if (requestController.responsePromise.state === "pending") {
28878
- requestController.responsePromise.resolve(void 0);
28879
- }
28880
- });
28881
- this.logger.info("awaiting for the mocked response...");
28882
- const signal = interactiveRequest.signal;
28883
- const requestAborted = new DeferredPromise();
28884
- if (signal) {
28885
- signal.addEventListener(
28886
- "abort",
28887
- () => {
28888
- requestAborted.reject(signal.reason);
28889
- },
28890
- { once: true }
28891
- );
28892
- }
28893
- const responsePromise = new DeferredPromise();
28894
- const respondWith = (response) => {
28895
- this.logger.info("responding with a mock response:", response);
28896
- if (this.emitter.listenerCount("response") > 0) {
28897
- this.logger.info('emitting the "response" event...');
28898
- const responseClone = response.clone();
28899
- this.emitter.emit("response", {
28900
- response: responseClone,
28901
- isMockedResponse: true,
28902
- request: interactiveRequest,
28903
- requestId
28904
- });
28905
- }
28906
- Object.defineProperty(response, "url", {
28907
- writable: false,
28908
- enumerable: true,
28909
- configurable: false,
28910
- value: request.url
28911
- });
28912
- responsePromise.resolve(response);
28913
- };
28914
- const errorWith = (reason) => {
28915
- responsePromise.reject(reason);
28916
- };
28917
- const resolverResult = await until(
28918
- async () => {
28919
- const listenersFinished = emitAsync(this.emitter, "request", {
28920
- request: interactiveRequest,
28921
- requestId
29372
+ const isRequestHandled = await handleRequest2({
29373
+ request,
29374
+ requestId,
29375
+ emitter: this.emitter,
29376
+ controller,
29377
+ onResponse: async (response) => {
29378
+ this.logger.info("received mocked response!", {
29379
+ response
28922
29380
  });
28923
- await Promise.race([
28924
- requestAborted,
28925
- // Put the listeners invocation Promise in the same race condition
28926
- // with the request abort Promise because otherwise awaiting the listeners
28927
- // would always yield some response (or undefined).
28928
- listenersFinished,
28929
- requestController.responsePromise
28930
- ]);
28931
- this.logger.info("all request listeners have been resolved!");
28932
- const mockedResponse2 = await requestController.responsePromise;
28933
- this.logger.info("event.respondWith called with:", mockedResponse2);
28934
- return mockedResponse2;
28935
- }
28936
- );
28937
- if (requestAborted.state === "rejected") {
28938
- this.logger.info(
28939
- "request has been aborted:",
28940
- requestAborted.rejectionReason
28941
- );
28942
- responsePromise.reject(requestAborted.rejectionReason);
28943
- return responsePromise;
28944
- }
28945
- if (resolverResult.error) {
28946
- this.logger.info(
28947
- "request listerner threw an error:",
28948
- resolverResult.error
28949
- );
28950
- if (resolverResult.error instanceof Response) {
28951
- if (isResponseError(resolverResult.error)) {
28952
- errorWith(createNetworkError(resolverResult.error));
28953
- } else {
28954
- respondWith(resolverResult.error);
28955
- }
28956
- }
28957
- if (this.emitter.listenerCount("unhandledException") > 0) {
28958
- await emitAsync(this.emitter, "unhandledException", {
28959
- error: resolverResult.error,
28960
- request,
28961
- requestId,
28962
- controller: {
28963
- respondWith,
28964
- errorWith
29381
+ if (RESPONSE_STATUS_CODES_WITH_REDIRECT.has(response.status)) {
29382
+ if (request.redirect === "error") {
29383
+ responsePromise.reject(createNetworkError("unexpected redirect"));
29384
+ return;
29385
+ }
29386
+ if (request.redirect === "follow") {
29387
+ followFetchRedirect(request, response).then(
29388
+ (response2) => {
29389
+ responsePromise.resolve(response2);
29390
+ },
29391
+ (reason) => {
29392
+ responsePromise.reject(reason);
29393
+ }
29394
+ );
29395
+ return;
28965
29396
  }
28966
- });
28967
- if (responsePromise.state !== "pending") {
28968
- return responsePromise;
28969
29397
  }
29398
+ if (this.emitter.listenerCount("response") > 0) {
29399
+ this.logger.info('emitting the "response" event...');
29400
+ await emitAsync(this.emitter, "response", {
29401
+ // Clone the mocked response for the "response" event listener.
29402
+ // This way, the listener can read the response and not lock its body
29403
+ // for the actual fetch consumer.
29404
+ response: response.clone(),
29405
+ isMockedResponse: true,
29406
+ request,
29407
+ requestId
29408
+ });
29409
+ }
29410
+ Object.defineProperty(response, "url", {
29411
+ writable: false,
29412
+ enumerable: true,
29413
+ configurable: false,
29414
+ value: request.url
29415
+ });
29416
+ responsePromise.resolve(response);
29417
+ },
29418
+ onRequestError: (response) => {
29419
+ this.logger.info("request has errored!", { response });
29420
+ responsePromise.reject(createNetworkError(response));
29421
+ },
29422
+ onError: (error3) => {
29423
+ this.logger.info("request has been aborted!", { error: error3 });
29424
+ responsePromise.reject(error3);
28970
29425
  }
28971
- respondWith(createServerErrorResponse(resolverResult.error));
28972
- return responsePromise;
28973
- }
28974
- const mockedResponse = resolverResult.data;
28975
- if (mockedResponse && !((_a2 = request.signal) == null ? void 0 : _a2.aborted)) {
28976
- this.logger.info("received mocked response:", mockedResponse);
28977
- if (isResponseError(mockedResponse)) {
28978
- this.logger.info(
28979
- "received a network error response, rejecting the request promise..."
28980
- );
28981
- errorWith(createNetworkError(mockedResponse));
28982
- } else {
28983
- respondWith(mockedResponse);
28984
- }
29426
+ });
29427
+ if (isRequestHandled) {
29428
+ this.logger.info("request has been handled, returning mock promise...");
28985
29429
  return responsePromise;
28986
29430
  }
28987
- this.logger.info("no mocked response received!");
29431
+ this.logger.info(
29432
+ "no mocked response received, performing request as-is..."
29433
+ );
28988
29434
  return pureFetch(request).then((response) => {
28989
29435
  this.logger.info("original fetch performed", response);
28990
29436
  if (this.emitter.listenerCount("response") > 0) {
@@ -28993,7 +29439,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
28993
29439
  this.emitter.emit("response", {
28994
29440
  response: responseClone,
28995
29441
  isMockedResponse: false,
28996
- request: interactiveRequest,
29442
+ request,
28997
29443
  requestId
28998
29444
  });
28999
29445
  }
@@ -29019,13 +29465,8 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29019
29465
  };
29020
29466
  var FetchInterceptor = _FetchInterceptor;
29021
29467
  FetchInterceptor.symbol = Symbol("fetch");
29022
- function createNetworkError(cause) {
29023
- return Object.assign(new TypeError("Failed to fetch"), {
29024
- cause
29025
- });
29026
- }
29027
29468
 
29028
- // node_modules/.pnpm/@mswjs+interceptors@0.29.0/node_modules/@mswjs/interceptors/lib/browser/chunk-732REFPX.mjs
29469
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.0/node_modules/@mswjs/interceptors/lib/browser/chunk-PRBA3ES4.mjs
29029
29470
  function concatArrayBuffer(left, right) {
29030
29471
  const result = new Uint8Array(left.byteLength + right.byteLength);
29031
29472
  result.set(left, 0);
@@ -29034,10 +29475,10 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29034
29475
  }
29035
29476
  var EventPolyfill = class {
29036
29477
  constructor(type, options) {
29037
- this.AT_TARGET = 0;
29038
- this.BUBBLING_PHASE = 0;
29039
- this.CAPTURING_PHASE = 0;
29040
29478
  this.NONE = 0;
29479
+ this.CAPTURING_PHASE = 1;
29480
+ this.AT_TARGET = 2;
29481
+ this.BUBBLING_PHASE = 3;
29041
29482
  this.type = "";
29042
29483
  this.srcElement = null;
29043
29484
  this.currentTarget = null;
@@ -29210,15 +29651,26 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29210
29651
  }
29211
29652
  return headers;
29212
29653
  }
29213
- var IS_MOCKED_RESPONSE = Symbol("isMockedResponse");
29654
+ async function getBodyByteLength(input) {
29655
+ const explicitContentLength = input.headers.get("content-length");
29656
+ if (explicitContentLength != null && explicitContentLength !== "") {
29657
+ return Number(explicitContentLength);
29658
+ }
29659
+ const buffer = await input.arrayBuffer();
29660
+ return buffer.byteLength;
29661
+ }
29662
+ var kIsRequestHandled = Symbol("kIsRequestHandled");
29214
29663
  var IS_NODE2 = isNodeProcess();
29664
+ var kFetchRequest = Symbol("kFetchRequest");
29215
29665
  var XMLHttpRequestController = class {
29216
29666
  constructor(initialRequest, logger) {
29217
29667
  this.initialRequest = initialRequest;
29218
29668
  this.logger = logger;
29219
29669
  this.method = "GET";
29220
29670
  this.url = null;
29671
+ this[kIsRequestHandled] = false;
29221
29672
  this.events = /* @__PURE__ */ new Map();
29673
+ this.uploadEvents = /* @__PURE__ */ new Map();
29222
29674
  this.requestId = createRequestId();
29223
29675
  this.requestHeaders = new Headers();
29224
29676
  this.responseBuffer = new Uint8Array();
@@ -29267,9 +29719,6 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29267
29719
  }
29268
29720
  case "send": {
29269
29721
  const [body] = args;
29270
- if (body != null) {
29271
- this.requestBody = typeof body === "string" ? encodeBuffer(body) : body;
29272
- }
29273
29722
  this.request.addEventListener("load", () => {
29274
29723
  if (typeof this.onResponse !== "undefined") {
29275
29724
  const fetchResponse = createResponse(
@@ -29283,19 +29732,21 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29283
29732
  );
29284
29733
  this.onResponse.call(this, {
29285
29734
  response: fetchResponse,
29286
- isMockedResponse: IS_MOCKED_RESPONSE in this.request,
29735
+ isMockedResponse: this[kIsRequestHandled],
29287
29736
  request: fetchRequest,
29288
29737
  requestId: this.requestId
29289
29738
  });
29290
29739
  }
29291
29740
  });
29292
- const fetchRequest = this.toFetchApiRequest();
29741
+ const requestBody = typeof body === "string" ? encodeBuffer(body) : body;
29742
+ const fetchRequest = this.toFetchApiRequest(requestBody);
29743
+ this[kFetchRequest] = fetchRequest;
29293
29744
  const onceRequestSettled = ((_a2 = this.onRequest) == null ? void 0 : _a2.call(this, {
29294
29745
  request: fetchRequest,
29295
29746
  requestId: this.requestId
29296
29747
  })) || Promise.resolve();
29297
29748
  onceRequestSettled.finally(() => {
29298
- if (this.request.readyState < this.request.LOADING) {
29749
+ if (!this[kIsRequestHandled]) {
29299
29750
  this.logger.info(
29300
29751
  "request callback settled but request has not been handled (readystate %d), performing as-is...",
29301
29752
  this.request.readyState
@@ -29317,6 +29768,39 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29317
29768
  }
29318
29769
  }
29319
29770
  });
29771
+ define(
29772
+ this.request,
29773
+ "upload",
29774
+ createProxy(this.request.upload, {
29775
+ setProperty: ([propertyName, nextValue], invoke) => {
29776
+ switch (propertyName) {
29777
+ case "onloadstart":
29778
+ case "onprogress":
29779
+ case "onaboart":
29780
+ case "onerror":
29781
+ case "onload":
29782
+ case "ontimeout":
29783
+ case "onloadend": {
29784
+ const eventName = propertyName.slice(
29785
+ 2
29786
+ );
29787
+ this.registerUploadEvent(eventName, nextValue);
29788
+ }
29789
+ }
29790
+ return invoke();
29791
+ },
29792
+ methodCall: ([methodName, args], invoke) => {
29793
+ switch (methodName) {
29794
+ case "addEventListener": {
29795
+ const [eventName, listener] = args;
29796
+ this.registerUploadEvent(eventName, listener);
29797
+ this.logger.info("upload.addEventListener", eventName, listener);
29798
+ return invoke();
29799
+ }
29800
+ }
29801
+ }
29802
+ })
29803
+ );
29320
29804
  }
29321
29805
  registerEvent(eventName, listener) {
29322
29806
  const prevEvents = this.events.get(eventName) || [];
@@ -29324,17 +29808,44 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29324
29808
  this.events.set(eventName, nextEvents);
29325
29809
  this.logger.info('registered event "%s"', eventName, listener);
29326
29810
  }
29811
+ registerUploadEvent(eventName, listener) {
29812
+ const prevEvents = this.uploadEvents.get(eventName) || [];
29813
+ const nextEvents = prevEvents.concat(listener);
29814
+ this.uploadEvents.set(eventName, nextEvents);
29815
+ this.logger.info('registered upload event "%s"', eventName, listener);
29816
+ }
29327
29817
  /**
29328
29818
  * Responds to the current request with the given
29329
29819
  * Fetch API `Response` instance.
29330
29820
  */
29331
- respondWith(response) {
29821
+ async respondWith(response) {
29822
+ this[kIsRequestHandled] = true;
29823
+ if (this[kFetchRequest]) {
29824
+ const totalRequestBodyLength = await getBodyByteLength(
29825
+ this[kFetchRequest].clone()
29826
+ );
29827
+ this.trigger("loadstart", this.request.upload, {
29828
+ loaded: 0,
29829
+ total: totalRequestBodyLength
29830
+ });
29831
+ this.trigger("progress", this.request.upload, {
29832
+ loaded: totalRequestBodyLength,
29833
+ total: totalRequestBodyLength
29834
+ });
29835
+ this.trigger("load", this.request.upload, {
29836
+ loaded: totalRequestBodyLength,
29837
+ total: totalRequestBodyLength
29838
+ });
29839
+ this.trigger("loadend", this.request.upload, {
29840
+ loaded: totalRequestBodyLength,
29841
+ total: totalRequestBodyLength
29842
+ });
29843
+ }
29332
29844
  this.logger.info(
29333
29845
  "responding with a mocked response: %d %s",
29334
29846
  response.status,
29335
29847
  response.statusText
29336
29848
  );
29337
- define(this.request, IS_MOCKED_RESPONSE, true);
29338
29849
  define(this.request, "status", response.status);
29339
29850
  define(this.request, "statusText", response.statusText);
29340
29851
  define(this.request, "responseURL", this.url.href);
@@ -29389,14 +29900,9 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29389
29900
  get: () => this.responseXML
29390
29901
  }
29391
29902
  });
29392
- const totalResponseBodyLength = response.headers.has("Content-Length") ? Number(response.headers.get("Content-Length")) : (
29393
- /**
29394
- * @todo Infer the response body length from the response body.
29395
- */
29396
- void 0
29397
- );
29903
+ const totalResponseBodyLength = await getBodyByteLength(response.clone());
29398
29904
  this.logger.info("calculated response body length", totalResponseBodyLength);
29399
- this.trigger("loadstart", {
29905
+ this.trigger("loadstart", this.request, {
29400
29906
  loaded: 0,
29401
29907
  total: totalResponseBodyLength
29402
29908
  });
@@ -29405,11 +29911,11 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29405
29911
  const finalizeResponse = () => {
29406
29912
  this.logger.info("finalizing the mocked response...");
29407
29913
  this.setReadyState(this.request.DONE);
29408
- this.trigger("load", {
29914
+ this.trigger("load", this.request, {
29409
29915
  loaded: this.responseBuffer.byteLength,
29410
29916
  total: totalResponseBodyLength
29411
29917
  });
29412
- this.trigger("loadend", {
29918
+ this.trigger("loadend", this.request, {
29413
29919
  loaded: this.responseBuffer.byteLength,
29414
29920
  total: totalResponseBodyLength
29415
29921
  });
@@ -29427,7 +29933,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29427
29933
  if (value) {
29428
29934
  this.logger.info("read response body chunk:", value);
29429
29935
  this.responseBuffer = concatArrayBuffer(this.responseBuffer, value);
29430
- this.trigger("progress", {
29936
+ this.trigger("progress", this.request, {
29431
29937
  loaded: this.responseBuffer.byteLength,
29432
29938
  total: totalResponseBodyLength
29433
29939
  });
@@ -29485,7 +29991,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29485
29991
  }
29486
29992
  }
29487
29993
  get responseText() {
29488
- invariant(
29994
+ invariant2(
29489
29995
  this.request.responseType === "" || this.request.responseType === "text",
29490
29996
  "InvalidStateError: The object is in invalid state."
29491
29997
  );
@@ -29497,7 +30003,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29497
30003
  return responseText;
29498
30004
  }
29499
30005
  get responseXML() {
29500
- invariant(
30006
+ invariant2(
29501
30007
  this.request.responseType === "" || this.request.responseType === "document",
29502
30008
  "InvalidStateError: The object is in invalid state."
29503
30009
  );
@@ -29520,10 +30026,11 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29520
30026
  return null;
29521
30027
  }
29522
30028
  errorWith(error3) {
30029
+ this[kIsRequestHandled] = true;
29523
30030
  this.logger.info("responding with an error");
29524
30031
  this.setReadyState(this.request.DONE);
29525
- this.trigger("error");
29526
- this.trigger("loadend");
30032
+ this.trigger("error", this.request);
30033
+ this.trigger("loadend", this.request);
29527
30034
  }
29528
30035
  /**
29529
30036
  * Transitions this request's `readyState` to the given one.
@@ -29542,36 +30049,38 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29542
30049
  this.logger.info("set readyState to: %d", nextReadyState);
29543
30050
  if (nextReadyState !== this.request.UNSENT) {
29544
30051
  this.logger.info('triggerring "readystatechange" event...');
29545
- this.trigger("readystatechange");
30052
+ this.trigger("readystatechange", this.request);
29546
30053
  }
29547
30054
  }
29548
30055
  /**
29549
30056
  * Triggers given event on the `XMLHttpRequest` instance.
29550
30057
  */
29551
- trigger(eventName, options) {
29552
- const callback = this.request[`on${eventName}`];
29553
- const event = createEvent(this.request, eventName, options);
30058
+ trigger(eventName, target, options) {
30059
+ const callback = target[`on${eventName}`];
30060
+ const event = createEvent(target, eventName, options);
29554
30061
  this.logger.info('trigger "%s"', eventName, options || "");
29555
30062
  if (typeof callback === "function") {
29556
30063
  this.logger.info('found a direct "%s" callback, calling...', eventName);
29557
- callback.call(this.request, event);
30064
+ callback.call(target, event);
29558
30065
  }
29559
- for (const [registeredEventName, listeners] of this.events) {
30066
+ const events = target instanceof XMLHttpRequestUpload ? this.uploadEvents : this.events;
30067
+ for (const [registeredEventName, listeners] of events) {
29560
30068
  if (registeredEventName === eventName) {
29561
30069
  this.logger.info(
29562
30070
  'found %d listener(s) for "%s" event, calling...',
29563
30071
  listeners.length,
29564
30072
  eventName
29565
30073
  );
29566
- listeners.forEach((listener) => listener.call(this.request, event));
30074
+ listeners.forEach((listener) => listener.call(target, event));
29567
30075
  }
29568
30076
  }
29569
30077
  }
29570
30078
  /**
29571
30079
  * Converts this `XMLHttpRequest` instance into a Fetch API `Request` instance.
29572
30080
  */
29573
- toFetchApiRequest() {
30081
+ toFetchApiRequest(body) {
29574
30082
  this.logger.info("converting request to a Fetch API Request...");
30083
+ const resolvedBody = body instanceof Document ? body.documentElement.innerText : body;
29575
30084
  const fetchRequest = new Request(this.url.href, {
29576
30085
  method: this.method,
29577
30086
  headers: this.requestHeaders,
@@ -29579,7 +30088,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29579
30088
  * @see https://xhr.spec.whatwg.org/#cross-origin-credentials
29580
30089
  */
29581
30090
  credentials: this.request.withCredentials ? "include" : "same-origin",
29582
- body: ["GET", "HEAD"].includes(this.method) ? null : this.requestBody
30091
+ body: ["GET", "HEAD"].includes(this.method.toUpperCase()) ? null : resolvedBody
29583
30092
  });
29584
30093
  const proxyHeaders = createProxy(fetchRequest.headers, {
29585
30094
  methodCall: ([methodName, args], invoke) => {
@@ -29647,81 +30156,35 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29647
30156
  logger
29648
30157
  );
29649
30158
  xhrRequestController.onRequest = async function({ request, requestId }) {
29650
- const { interactiveRequest, requestController } = toInteractiveRequest(request);
30159
+ const controller = new RequestController(request);
29651
30160
  this.logger.info("awaiting mocked response...");
29652
- emitter.once("request", ({ requestId: pendingRequestId }) => {
29653
- if (pendingRequestId !== requestId) {
29654
- return;
29655
- }
29656
- if (requestController.responsePromise.state === "pending") {
29657
- requestController.respondWith(void 0);
29658
- }
29659
- });
29660
- const resolverResult = await until(async () => {
29661
- this.logger.info(
29662
- 'emitting the "request" event for %s listener(s)...',
29663
- emitter.listenerCount("request")
29664
- );
29665
- await emitAsync(emitter, "request", {
29666
- request: interactiveRequest,
29667
- requestId
29668
- });
29669
- this.logger.info('all "request" listeners settled!');
29670
- const mockedResponse2 = await requestController.responsePromise;
29671
- this.logger.info("event.respondWith called with:", mockedResponse2);
29672
- return mockedResponse2;
29673
- });
29674
- if (resolverResult.error) {
29675
- this.logger.info(
29676
- "request listener threw an exception, aborting request...",
29677
- resolverResult.error
29678
- );
29679
- if (resolverResult.error instanceof Response) {
29680
- if (isResponseError(resolverResult.error)) {
29681
- xhrRequestController.errorWith(new TypeError("Network error"));
29682
- } else {
29683
- this.respondWith(resolverResult.error);
29684
- }
29685
- return;
29686
- }
29687
- if (emitter.listenerCount("unhandledException") > 0) {
29688
- await emitAsync(emitter, "unhandledException", {
29689
- error: resolverResult.error,
29690
- request,
29691
- requestId,
29692
- controller: {
29693
- respondWith: xhrRequestController.respondWith.bind(xhrRequestController),
29694
- errorWith: xhrRequestController.errorWith.bind(xhrRequestController)
29695
- }
29696
- });
29697
- if (originalRequest.readyState > XMLHttpRequest.OPENED) {
29698
- return;
30161
+ this.logger.info(
30162
+ 'emitting the "request" event for %s listener(s)...',
30163
+ emitter.listenerCount("request")
30164
+ );
30165
+ const isRequestHandled = await handleRequest2({
30166
+ request,
30167
+ requestId,
30168
+ controller,
30169
+ emitter,
30170
+ onResponse: async (response) => {
30171
+ await this.respondWith(response);
30172
+ },
30173
+ onRequestError: () => {
30174
+ this.errorWith(new TypeError("Network error"));
30175
+ },
30176
+ onError: (error3) => {
30177
+ this.logger.info("request errored!", { error: error3 });
30178
+ if (error3 instanceof Error) {
30179
+ this.errorWith(error3);
29699
30180
  }
29700
30181
  }
29701
- xhrRequestController.respondWith(
29702
- createServerErrorResponse(resolverResult.error)
29703
- );
29704
- return;
29705
- }
29706
- const mockedResponse = resolverResult.data;
29707
- if (typeof mockedResponse !== "undefined") {
30182
+ });
30183
+ if (!isRequestHandled) {
29708
30184
  this.logger.info(
29709
- "received mocked response: %d %s",
29710
- mockedResponse.status,
29711
- mockedResponse.statusText
30185
+ "no mocked response received, performing request as-is..."
29712
30186
  );
29713
- if (isResponseError(mockedResponse)) {
29714
- this.logger.info(
29715
- "received a network error response, rejecting the request promise..."
29716
- );
29717
- xhrRequestController.errorWith(new TypeError("Network error"));
29718
- return;
29719
- }
29720
- return xhrRequestController.respondWith(mockedResponse);
29721
30187
  }
29722
- this.logger.info(
29723
- "no mocked response received, performing request as-is..."
29724
- );
29725
30188
  };
29726
30189
  xhrRequestController.onResponse = async function({
29727
30190
  response,
@@ -29756,7 +30219,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29756
30219
  const logger = this.logger.extend("setup");
29757
30220
  logger.info('patching "XMLHttpRequest" module...');
29758
30221
  const PureXMLHttpRequest = globalThis.XMLHttpRequest;
29759
- invariant(
30222
+ invariant2(
29760
30223
  !PureXMLHttpRequest[IS_PATCHED_MODULE],
29761
30224
  'Failed to patch the "XMLHttpRequest" module: already patched.'
29762
30225
  );
@@ -29794,7 +30257,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29794
30257
  name: "fallback",
29795
30258
  interceptors: [new FetchInterceptor(), new XMLHttpRequestInterceptor()]
29796
30259
  });
29797
- interceptor.on("request", async ({ request, requestId }) => {
30260
+ interceptor.on("request", async ({ request, requestId, controller }) => {
29798
30261
  const requestCloneForLogs = request.clone();
29799
30262
  const response = await handleRequest(
29800
30263
  request,
@@ -29817,7 +30280,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
29817
30280
  }
29818
30281
  );
29819
30282
  if (response) {
29820
- request.respondWith(response);
30283
+ controller.respondWith(response);
29821
30284
  }
29822
30285
  });
29823
30286
  interceptor.on(