@0no-co/graphql.web 0.0.0-canary-20230320141923

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.
@@ -0,0 +1,859 @@
1
+ var e = {
2
+ NAME: "Name",
3
+ DOCUMENT: "Document",
4
+ OPERATION_DEFINITION: "OperationDefinition",
5
+ VARIABLE_DEFINITION: "VariableDefinition",
6
+ SELECTION_SET: "SelectionSet",
7
+ FIELD: "Field",
8
+ ARGUMENT: "Argument",
9
+ FRAGMENT_SPREAD: "FragmentSpread",
10
+ INLINE_FRAGMENT: "InlineFragment",
11
+ FRAGMENT_DEFINITION: "FragmentDefinition",
12
+ VARIABLE: "Variable",
13
+ OBJECT: "ObjectValue",
14
+ OBJECT_FIELD: "ObjectField",
15
+ DIRECTIVE: "Directive",
16
+ NAMED_TYPE: "NamedType",
17
+ LIST_TYPE: "ListType",
18
+ NON_NULL_TYPE: "NonNullType"
19
+ };
20
+
21
+ var r = {
22
+ QUERY: "query",
23
+ MUTATION: "mutation",
24
+ SUBSCRIPTION: "subscription"
25
+ };
26
+
27
+ class GraphQLError extends Error {
28
+ constructor(e, r, i, n, t, a, o) {
29
+ super(e);
30
+ this.name = "GraphQLError";
31
+ this.message = e;
32
+ if (t) {
33
+ this.path = t;
34
+ }
35
+ if (r) {
36
+ this.nodes = Array.isArray(r) ? r : [ r ];
37
+ }
38
+ if (i) {
39
+ this.source = i;
40
+ }
41
+ if (n) {
42
+ this.positions = n;
43
+ }
44
+ if (a) {
45
+ this.originalError = a;
46
+ }
47
+ if (!o && a) {
48
+ var l = a.extensions;
49
+ if (l && "object" == typeof l) {
50
+ l;
51
+ }
52
+ }
53
+ this.extensions = o || {};
54
+ }
55
+ toJSON() {
56
+ return {
57
+ ...this
58
+ };
59
+ }
60
+ toString() {
61
+ return this.message;
62
+ }
63
+ get [Symbol.toStringTag]() {
64
+ return "GraphQLError";
65
+ }
66
+ }
67
+
68
+ var i;
69
+
70
+ var n;
71
+
72
+ function error(e) {
73
+ return new GraphQLError(`Syntax Error: Unexpected token at ${n} in ${e}`);
74
+ }
75
+
76
+ function advance(e) {
77
+ e.lastIndex = n;
78
+ if (e.test(i)) {
79
+ return i.slice(n, n = e.lastIndex);
80
+ }
81
+ }
82
+
83
+ var t = / +(?=[^\s])/y;
84
+
85
+ function blockString(e) {
86
+ var r = "";
87
+ var i = 0;
88
+ var n = 0;
89
+ var a = -1;
90
+ var o = e.split("\n");
91
+ for (var l = 0; l < o.length; l++) {
92
+ t.lastIndex = 0;
93
+ if (t.test(o[l])) {
94
+ if (l && (!i || t.lastIndex < i)) {
95
+ i = t.lastIndex;
96
+ }
97
+ n = n || l;
98
+ a = l;
99
+ }
100
+ }
101
+ for (var u = n; u <= a; u++) {
102
+ if (u !== n) {
103
+ r += "\n";
104
+ }
105
+ r += o[u].slice(i).replace(/\\"""/g, '"""');
106
+ }
107
+ return r;
108
+ }
109
+
110
+ var a = /(?:[\s,]*|#[^\n\r]*)*/y;
111
+
112
+ function ignored() {
113
+ a.lastIndex = n;
114
+ a.test(i);
115
+ n = a.lastIndex;
116
+ }
117
+
118
+ var o = /[_\w][_\d\w]*/y;
119
+
120
+ function name() {
121
+ var e;
122
+ if (e = advance(o)) {
123
+ return {
124
+ kind: "Name",
125
+ value: e
126
+ };
127
+ }
128
+ }
129
+
130
+ var l = /null|true|false/y;
131
+
132
+ var u = /\$[_\w][_\d\w]*/y;
133
+
134
+ var s = /[-]?\d+/y;
135
+
136
+ var d = /(?:[-]?\d+)?(?:\.\d+)(?:[eE][+-]?\d+)?/y;
137
+
138
+ var v = /\\/g;
139
+
140
+ var c = /"""(?:[\s\S]+(?="""))?"""/y;
141
+
142
+ var f = /"(?:[^"\r\n]+)?"/y;
143
+
144
+ function value(e) {
145
+ var r;
146
+ var t;
147
+ if (t = advance(l)) {
148
+ r = "null" === t ? {
149
+ kind: "NullValue"
150
+ } : {
151
+ kind: "BooleanValue",
152
+ value: "true" === t
153
+ };
154
+ } else if (!e && (t = advance(u))) {
155
+ r = {
156
+ kind: "Variable",
157
+ name: {
158
+ kind: "Name",
159
+ value: t.slice(1)
160
+ }
161
+ };
162
+ } else if (t = advance(d)) {
163
+ r = {
164
+ kind: "FloatValue",
165
+ value: t
166
+ };
167
+ } else if (t = advance(s)) {
168
+ r = {
169
+ kind: "IntValue",
170
+ value: t
171
+ };
172
+ } else if (t = advance(o)) {
173
+ r = {
174
+ kind: "EnumValue",
175
+ value: t
176
+ };
177
+ } else if (t = advance(c)) {
178
+ r = {
179
+ kind: "StringValue",
180
+ value: blockString(t.slice(3, -3)),
181
+ block: !0
182
+ };
183
+ } else if (t = advance(f)) {
184
+ r = {
185
+ kind: "StringValue",
186
+ value: v.test(t) ? JSON.parse(t) : t.slice(1, -1),
187
+ block: !1
188
+ };
189
+ } else if (r = function list(e) {
190
+ var r;
191
+ if (91 === i.charCodeAt(n)) {
192
+ n++;
193
+ ignored();
194
+ var t = [];
195
+ while (r = value(e)) {
196
+ t.push(r);
197
+ }
198
+ if (93 !== i.charCodeAt(n++)) {
199
+ throw error("ListValue");
200
+ }
201
+ ignored();
202
+ return {
203
+ kind: "ListValue",
204
+ values: t
205
+ };
206
+ }
207
+ }(e) || function object(e) {
208
+ if (123 === i.charCodeAt(n)) {
209
+ n++;
210
+ ignored();
211
+ var r = [];
212
+ var t;
213
+ while (t = name()) {
214
+ ignored();
215
+ if (58 !== i.charCodeAt(n++)) {
216
+ throw error("ObjectField");
217
+ }
218
+ ignored();
219
+ var a = value(e);
220
+ if (!a) {
221
+ throw error("ObjectField");
222
+ }
223
+ r.push({
224
+ kind: "ObjectField",
225
+ name: t,
226
+ value: a
227
+ });
228
+ }
229
+ if (125 !== i.charCodeAt(n++)) {
230
+ throw error("ObjectValue");
231
+ }
232
+ ignored();
233
+ return {
234
+ kind: "ObjectValue",
235
+ fields: r
236
+ };
237
+ }
238
+ }(e)) {
239
+ return r;
240
+ }
241
+ ignored();
242
+ return r;
243
+ }
244
+
245
+ function arguments_(e) {
246
+ var r = [];
247
+ ignored();
248
+ if (40 === i.charCodeAt(n)) {
249
+ n++;
250
+ ignored();
251
+ var t;
252
+ while (t = name()) {
253
+ ignored();
254
+ if (58 !== i.charCodeAt(n++)) {
255
+ throw error("Argument");
256
+ }
257
+ ignored();
258
+ var a = value(e);
259
+ if (!a) {
260
+ throw error("Argument");
261
+ }
262
+ r.push({
263
+ kind: "Argument",
264
+ name: t,
265
+ value: a
266
+ });
267
+ }
268
+ if (!r.length || 41 !== i.charCodeAt(n++)) {
269
+ throw error("Argument");
270
+ }
271
+ ignored();
272
+ }
273
+ return r;
274
+ }
275
+
276
+ function directives(e) {
277
+ var r = [];
278
+ ignored();
279
+ while (64 === i.charCodeAt(n)) {
280
+ n++;
281
+ var t = name();
282
+ if (!t) {
283
+ throw error("Directive");
284
+ }
285
+ ignored();
286
+ r.push({
287
+ kind: "Directive",
288
+ name: t,
289
+ arguments: arguments_(e)
290
+ });
291
+ }
292
+ return r;
293
+ }
294
+
295
+ function field() {
296
+ ignored();
297
+ var e = name();
298
+ if (e) {
299
+ ignored();
300
+ var r;
301
+ if (58 === i.charCodeAt(n)) {
302
+ n++;
303
+ ignored();
304
+ r = e;
305
+ if (!(e = name())) {
306
+ throw error("Field");
307
+ }
308
+ ignored();
309
+ }
310
+ return {
311
+ kind: "Field",
312
+ alias: r,
313
+ name: e,
314
+ arguments: arguments_(!1),
315
+ directives: directives(!1),
316
+ selectionSet: selectionSet()
317
+ };
318
+ }
319
+ }
320
+
321
+ function type() {
322
+ var e;
323
+ ignored();
324
+ if (91 === i.charCodeAt(n)) {
325
+ n++;
326
+ ignored();
327
+ var r = type();
328
+ if (!r || 93 !== i.charCodeAt(n++)) {
329
+ throw error("ListType");
330
+ }
331
+ e = {
332
+ kind: "ListType",
333
+ type: r
334
+ };
335
+ } else if (e = name()) {
336
+ e = {
337
+ kind: "NamedType",
338
+ name: e
339
+ };
340
+ } else {
341
+ throw error("NamedType");
342
+ }
343
+ ignored();
344
+ if (33 === i.charCodeAt(n)) {
345
+ n++;
346
+ ignored();
347
+ return {
348
+ kind: "NonNullType",
349
+ type: e
350
+ };
351
+ } else {
352
+ return e;
353
+ }
354
+ }
355
+
356
+ var p = /on/y;
357
+
358
+ function typeCondition() {
359
+ if (advance(p)) {
360
+ ignored();
361
+ var e = name();
362
+ if (!e) {
363
+ throw error("NamedType");
364
+ }
365
+ ignored();
366
+ return {
367
+ kind: "NamedType",
368
+ name: e
369
+ };
370
+ }
371
+ }
372
+
373
+ var m = /\.\.\./y;
374
+
375
+ function fragmentSpread() {
376
+ ignored();
377
+ if (advance(m)) {
378
+ ignored();
379
+ var e = n;
380
+ var r;
381
+ if ((r = name()) && "on" !== r.value) {
382
+ return {
383
+ kind: "FragmentSpread",
384
+ name: r,
385
+ directives: directives(!1)
386
+ };
387
+ } else {
388
+ n = e;
389
+ var i = typeCondition();
390
+ var t = directives(!1);
391
+ var a = selectionSet();
392
+ if (!a) {
393
+ throw error("InlineFragment");
394
+ }
395
+ return {
396
+ kind: "InlineFragment",
397
+ typeCondition: i,
398
+ directives: t,
399
+ selectionSet: a
400
+ };
401
+ }
402
+ }
403
+ }
404
+
405
+ function selectionSet() {
406
+ var e;
407
+ ignored();
408
+ if (123 === i.charCodeAt(n)) {
409
+ n++;
410
+ ignored();
411
+ var r = [];
412
+ while (e = fragmentSpread() || field()) {
413
+ r.push(e);
414
+ }
415
+ if (!r.length || 125 !== i.charCodeAt(n++)) {
416
+ throw error("SelectionSet");
417
+ }
418
+ ignored();
419
+ return {
420
+ kind: "SelectionSet",
421
+ selections: r
422
+ };
423
+ }
424
+ }
425
+
426
+ var g = /fragment/y;
427
+
428
+ function fragmentDefinition() {
429
+ if (advance(g)) {
430
+ ignored();
431
+ var e = name();
432
+ if (!e) {
433
+ throw error("FragmentDefinition");
434
+ }
435
+ ignored();
436
+ var r = typeCondition();
437
+ if (!r) {
438
+ throw error("FragmentDefinition");
439
+ }
440
+ var i = directives(!1);
441
+ var n = selectionSet();
442
+ if (!n) {
443
+ throw error("FragmentDefinition");
444
+ }
445
+ return {
446
+ kind: "FragmentDefinition",
447
+ name: e,
448
+ typeCondition: r,
449
+ directives: i,
450
+ selectionSet: n
451
+ };
452
+ }
453
+ }
454
+
455
+ var h = /query|mutation|subscription/y;
456
+
457
+ function operationDefinition() {
458
+ var e;
459
+ var r;
460
+ var t = [];
461
+ var a = [];
462
+ if (e = advance(h)) {
463
+ ignored();
464
+ r = name();
465
+ t = function variableDefinitions() {
466
+ var e;
467
+ var r = [];
468
+ ignored();
469
+ if (40 === i.charCodeAt(n)) {
470
+ n++;
471
+ ignored();
472
+ while (e = advance(u)) {
473
+ ignored();
474
+ if (58 !== i.charCodeAt(n++)) {
475
+ throw error("VariableDefinition");
476
+ }
477
+ var t = type();
478
+ if (!t) {
479
+ throw error("VariableDefinition");
480
+ }
481
+ var a = void 0;
482
+ if (61 === i.charCodeAt(n)) {
483
+ n++;
484
+ ignored();
485
+ if (!(a = value(!0))) {
486
+ throw error("VariableDefinition");
487
+ }
488
+ }
489
+ ignored();
490
+ r.push({
491
+ kind: "VariableDefinition",
492
+ variable: {
493
+ kind: "Variable",
494
+ name: {
495
+ kind: "Name",
496
+ value: e.slice(1)
497
+ }
498
+ },
499
+ type: t,
500
+ defaultValue: a,
501
+ directives: directives(!0)
502
+ });
503
+ }
504
+ if (41 !== i.charCodeAt(n++)) {
505
+ throw error("VariableDefinition");
506
+ }
507
+ ignored();
508
+ }
509
+ return r;
510
+ }();
511
+ a = directives(!1);
512
+ }
513
+ var o = selectionSet();
514
+ if (o) {
515
+ return {
516
+ kind: "OperationDefinition",
517
+ operation: e || "query",
518
+ name: r,
519
+ variableDefinitions: t,
520
+ directives: a,
521
+ selectionSet: o
522
+ };
523
+ }
524
+ }
525
+
526
+ function parse(e, r) {
527
+ i = "string" == typeof e.body ? e.body : e;
528
+ n = 0;
529
+ return function document() {
530
+ var e;
531
+ ignored();
532
+ var r = [];
533
+ while (e = fragmentDefinition() || operationDefinition()) {
534
+ r.push(e);
535
+ }
536
+ if (n !== i.length) {
537
+ throw error("Document");
538
+ }
539
+ return {
540
+ kind: "Document",
541
+ definitions: r
542
+ };
543
+ }();
544
+ }
545
+
546
+ function parseValue(e, r) {
547
+ i = "string" == typeof e.body ? e.body : e;
548
+ n = 0;
549
+ ignored();
550
+ var t = value(!1);
551
+ if (!t) {
552
+ throw error("ValueNode");
553
+ }
554
+ return t;
555
+ }
556
+
557
+ function parseType(e, r) {
558
+ i = "string" == typeof e.body ? e.body : e;
559
+ n = 0;
560
+ var t = type();
561
+ if (!t) {
562
+ throw error("TypeNode");
563
+ }
564
+ return t;
565
+ }
566
+
567
+ var y = {};
568
+
569
+ function visit(e, r) {
570
+ var i = [];
571
+ var n = [];
572
+ try {
573
+ var t = function traverse(e, t, a) {
574
+ var o = !1;
575
+ var l = r[e.kind] && r[e.kind].enter || r[e.kind];
576
+ var u = l && l.call(r, e, t, a, n, i);
577
+ if (!1 === u) {
578
+ return e;
579
+ } else if (null === u) {
580
+ return null;
581
+ } else if (u === y) {
582
+ throw y;
583
+ } else if (u && "string" == typeof u.kind) {
584
+ o = u !== e;
585
+ e = u;
586
+ }
587
+ if (a) {
588
+ i.push(a);
589
+ }
590
+ var s;
591
+ var d = {
592
+ ...e
593
+ };
594
+ for (var v in e) {
595
+ n.push(v);
596
+ var c = e[v];
597
+ if (Array.isArray(c)) {
598
+ var f = [];
599
+ for (var p = 0; p < c.length; p++) {
600
+ if (null != c[p] && "string" == typeof c[p].kind) {
601
+ i.push(e);
602
+ n.push(p);
603
+ s = traverse(c[p], p, c);
604
+ n.pop();
605
+ i.pop();
606
+ if (void 0 === s) {
607
+ f.push(c[p]);
608
+ } else if (null === s) {
609
+ o = !0;
610
+ } else {
611
+ o = o || s !== c[p];
612
+ f.push(s);
613
+ }
614
+ }
615
+ }
616
+ c = f;
617
+ } else if (null != c && "string" == typeof c.kind) {
618
+ if (void 0 !== (s = traverse(c, v, e))) {
619
+ o = o || c !== s;
620
+ c = s;
621
+ }
622
+ }
623
+ n.pop();
624
+ if (o) {
625
+ d[v] = c;
626
+ }
627
+ }
628
+ if (a) {
629
+ i.pop();
630
+ }
631
+ var m = r[e.kind] && r[e.kind].leave;
632
+ var g = m && m.call(r, e, t, a, n, i);
633
+ if (g === y) {
634
+ throw y;
635
+ } else if (void 0 !== g) {
636
+ return g;
637
+ } else if (void 0 !== u) {
638
+ return o ? d : u;
639
+ } else {
640
+ return o ? d : e;
641
+ }
642
+ }(e);
643
+ return void 0 !== t && !1 !== t ? t : e;
644
+ } catch (r) {
645
+ if (r !== y) {
646
+ throw r;
647
+ }
648
+ return e;
649
+ }
650
+ }
651
+
652
+ function printString(e) {
653
+ return JSON.stringify(e);
654
+ }
655
+
656
+ function printBlockString(e) {
657
+ return '"""\n' + e.replace(/"""/g, '\\"""') + '\n"""';
658
+ }
659
+
660
+ var hasItems = e => !(!e || !e.length);
661
+
662
+ var S = 80;
663
+
664
+ function print(e) {
665
+ var r;
666
+ switch (e.kind) {
667
+ case "OperationDefinition":
668
+ if ("query" === e.operation && !e.name && !hasItems(e.variableDefinitions) && !hasItems(e.directives)) {
669
+ return print(e.selectionSet);
670
+ }
671
+ r = e.operation;
672
+ if (e.name) {
673
+ r += " " + e.name.value;
674
+ }
675
+ if (hasItems(e.variableDefinitions)) {
676
+ if (!e.name) {
677
+ r += " ";
678
+ }
679
+ r += "(" + e.variableDefinitions.map(print).join(", ") + ")";
680
+ }
681
+ if (hasItems(e.directives)) {
682
+ r += " " + e.directives.map(print).join(" ");
683
+ }
684
+ return r + " " + print(e.selectionSet);
685
+
686
+ case "VariableDefinition":
687
+ r = print(e.variable) + ": " + print(e.type);
688
+ if (e.defaultValue) {
689
+ r += " = " + print(e.defaultValue);
690
+ }
691
+ if (hasItems(e.directives)) {
692
+ r += " " + e.directives.map(print).join(" ");
693
+ }
694
+ return r;
695
+
696
+ case "Field":
697
+ r = (e.alias ? print(e.alias) + ": " : "") + e.name.value;
698
+ if (hasItems(e.arguments)) {
699
+ var i = e.arguments.map(print);
700
+ var n = r + "(" + i.join(", ") + ")";
701
+ r = n.length > S ? r + "(\n " + i.join("\n").replace(/\n/g, "\n ") + "\n)" : n;
702
+ }
703
+ if (hasItems(e.directives)) {
704
+ r += " " + e.directives.map(print).join(" ");
705
+ }
706
+ return e.selectionSet ? r + " " + print(e.selectionSet) : r;
707
+
708
+ case "StringValue":
709
+ return e.block ? printBlockString(e.value) : printString(e.value);
710
+
711
+ case "BooleanValue":
712
+ return "" + e.value;
713
+
714
+ case "NullValue":
715
+ return "null";
716
+
717
+ case "IntValue":
718
+ case "FloatValue":
719
+ case "EnumValue":
720
+ case "Name":
721
+ return e.value;
722
+
723
+ case "ListValue":
724
+ return "[" + e.values.map(print).join(", ") + "]";
725
+
726
+ case "ObjectValue":
727
+ return "{" + e.fields.map(print).join(", ") + "}";
728
+
729
+ case "ObjectField":
730
+ case "Argument":
731
+ return e.name.value + ": " + print(e.value);
732
+
733
+ case "Variable":
734
+ return "$" + e.name.value;
735
+
736
+ case "Document":
737
+ return hasItems(e.definitions) ? e.definitions.map(print).join("\n\n") : "";
738
+
739
+ case "SelectionSet":
740
+ return "{\n " + e.selections.map(print).join("\n").replace(/\n/g, "\n ") + "\n}";
741
+
742
+ case "FragmentSpread":
743
+ r = "..." + e.name.value;
744
+ if (hasItems(e.directives)) {
745
+ r += " " + e.directives.map(print).join(" ");
746
+ }
747
+ return r;
748
+
749
+ case "InlineFragment":
750
+ r = "...";
751
+ if (e.typeCondition) {
752
+ r += " on " + e.typeCondition.name.value;
753
+ }
754
+ if (hasItems(e.directives)) {
755
+ r += " " + e.directives.map(print).join(" ");
756
+ }
757
+ return r + " " + print(e.selectionSet);
758
+
759
+ case "FragmentDefinition":
760
+ r = "fragment " + e.name.value;
761
+ r += " on " + e.typeCondition.name.value;
762
+ if (hasItems(e.directives)) {
763
+ r += " " + e.directives.map(print).join(" ");
764
+ }
765
+ return r + " " + print(e.selectionSet);
766
+
767
+ case "Directive":
768
+ r = "@" + e.name.value;
769
+ if (hasItems(e.arguments)) {
770
+ r += "(" + e.arguments.map(print).join(", ") + ")";
771
+ }
772
+ return r;
773
+
774
+ case "NamedType":
775
+ return e.name.value;
776
+
777
+ case "ListType":
778
+ return "[" + print(e.type) + "]";
779
+
780
+ case "NonNullType":
781
+ return print(e.type) + "!";
782
+
783
+ default:
784
+ return "";
785
+ }
786
+ }
787
+
788
+ function valueFromASTUntyped(e, r) {
789
+ switch (e.kind) {
790
+ case "NullValue":
791
+ return null;
792
+
793
+ case "IntValue":
794
+ return parseInt(e.value, 10);
795
+
796
+ case "FloatValue":
797
+ return parseFloat(e.value);
798
+
799
+ case "StringValue":
800
+ case "EnumValue":
801
+ case "BooleanValue":
802
+ return e.value;
803
+
804
+ case "ListValue":
805
+ var i = [];
806
+ for (var n = 0, t = e.values; n < t.length; n += 1) {
807
+ i.push(valueFromASTUntyped(t[n], r));
808
+ }
809
+ return i;
810
+
811
+ case "ObjectValue":
812
+ var a = Object.create(null);
813
+ for (var o = 0, l = e.fields; o < l.length; o += 1) {
814
+ var u = l[o];
815
+ a[u.name.value] = valueFromASTUntyped(u.value, r);
816
+ }
817
+ return a;
818
+
819
+ case "Variable":
820
+ return r && r[e.name.value];
821
+ }
822
+ }
823
+
824
+ function valueFromTypeNode(e, r, i) {
825
+ if ("Variable" === e.kind) {
826
+ return i ? valueFromTypeNode(i[e.name.value], r, i) : void 0;
827
+ } else if ("NonNullType" === r.kind) {
828
+ return "NullValue" !== e.kind ? valueFromTypeNode(e, r, i) : void 0;
829
+ } else if ("NullValue" === e.kind) {
830
+ return null;
831
+ } else if ("ListType" === r.kind) {
832
+ if ("ListValue" === e.kind) {
833
+ var n = [];
834
+ for (var t = 0, a = e.values; t < a.length; t += 1) {
835
+ var o = valueFromTypeNode(a[t], r.type, i);
836
+ if (void 0 === o) {
837
+ return;
838
+ } else {
839
+ n.push(o);
840
+ }
841
+ }
842
+ return n;
843
+ }
844
+ } else if ("NamedType" === r.kind) {
845
+ switch (r.name.value) {
846
+ case "Int":
847
+ case "Float":
848
+ case "String":
849
+ case "Bool":
850
+ return r.name.value + "Value" === e.kind ? valueFromASTUntyped(e, i) : void 0;
851
+
852
+ default:
853
+ return valueFromASTUntyped(e, i);
854
+ }
855
+ }
856
+ }
857
+
858
+ export { y as BREAK, GraphQLError, e as Kind, r as OperationTypeNode, blockString, parse, parseType, parseValue, print, printBlockString, printString, valueFromASTUntyped, valueFromTypeNode, visit };
859
+ //# sourceMappingURL=graphql.web.mjs.map