@powerhousedao/powerhouse-vetra-packages 6.2.2-dev.7 → 6.2.2-dev.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/browser/assets/{entry-Cvoo4_c9.js → entry-D9kxNMhQ.js} +3 -2
  2. package/dist/browser/assets/{projection-entry-DVec8YRh.js → projection-entry-CuhmOECW.js} +4 -4
  3. package/dist/browser/{linting-Dn6pXRkK.js → button-CuO8Gh3v.js} +20 -6
  4. package/dist/browser/button-CuO8Gh3v.js.map +1 -0
  5. package/dist/browser/{connect-KEU-HR3o.js → connect-BQ3NfcJz.js} +916 -200
  6. package/dist/browser/connect-BQ3NfcJz.js.map +1 -0
  7. package/dist/browser/{dist-CXoKspdx.js → dist-B4FWbuEM.js} +10 -2
  8. package/dist/browser/{dist-CXoKspdx.js.map → dist-B4FWbuEM.js.map} +1 -1
  9. package/dist/{node/dist-BeZaEP6S.mjs → browser/dist-BAJ5nRDl.js} +21 -2
  10. package/dist/browser/{dist-D8H48e8N.js.map → dist-BAJ5nRDl.js.map} +1 -1
  11. package/dist/browser/{dist-D5ra2aRj.js → dist-Ha_NNo7z.js} +1987 -1451
  12. package/dist/browser/dist-Ha_NNo7z.js.map +1 -0
  13. package/dist/browser/{document-drive-IdFV1QXL.js → document-drive-BgXuuZ9v.js} +1184 -122
  14. package/dist/browser/document-drive-BgXuuZ9v.js.map +1 -0
  15. package/dist/browser/document-models/index.js +1 -1
  16. package/dist/browser/{documents-D4ek7Ubv.js → documents-J_l59mSV.js} +5 -604
  17. package/dist/browser/documents-J_l59mSV.js.map +1 -0
  18. package/dist/browser/editor-DHPXrcLc.js +25 -0
  19. package/dist/browser/editor-DHPXrcLc.js.map +1 -0
  20. package/dist/browser/{editor-DiZF3ao3.js → editor-XuCmPGuB.js} +671 -236
  21. package/dist/browser/editor-XuCmPGuB.js.map +1 -0
  22. package/dist/browser/editors/document-model-editor/module.js +1 -1
  23. package/dist/browser/editors/generic-drive-explorer/index.js +5 -5
  24. package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
  25. package/dist/{node/folder-view-Cy-QxsDg.mjs → browser/folder-view-CuDz6ylG.js} +73 -46
  26. package/dist/browser/folder-view-CuDz6ylG.js.map +1 -0
  27. package/dist/browser/{graphql-editor-ZLRO_8Ce.js → graphql-editor-DSVq4B4o.js} +8 -7
  28. package/dist/browser/{graphql-editor-ZLRO_8Ce.js.map → graphql-editor-DSVq4B4o.js.map} +1 -1
  29. package/dist/browser/{hooks-CORHBNHb.js → hooks-KKcNp2X0.js} +2 -2
  30. package/dist/browser/{hooks-CORHBNHb.js.map → hooks-KKcNp2X0.js.map} +1 -1
  31. package/dist/browser/index.js +378 -9
  32. package/dist/browser/index.js.map +1 -1
  33. package/dist/browser/{json-editor-DBuZ6gN7.js → json-editor-CKhR3Fvh.js} +4 -4
  34. package/dist/browser/{json-editor-DBuZ6gN7.js.map → json-editor-CKhR3Fvh.js.map} +1 -1
  35. package/dist/browser/{lib-C-f3izXz.js → lib-DMgQj1v2.js} +13 -4
  36. package/dist/browser/lib-DMgQj1v2.js.map +1 -0
  37. package/dist/browser/printer-CEYr4JOg.js +604 -0
  38. package/dist/browser/printer-CEYr4JOg.js.map +1 -0
  39. package/dist/browser/{schema-context-DY-GEGnY.js → schema-context-ZyeclQwy.js} +2 -2
  40. package/dist/browser/{schema-context-DY-GEGnY.js.map → schema-context-ZyeclQwy.js.map} +1 -1
  41. package/dist/browser/{state-schemas-BjQKM498.js → state-schemas-D0_9u4nu.js} +8 -18
  42. package/dist/browser/state-schemas-D0_9u4nu.js.map +1 -0
  43. package/dist/node/{linting-Dx50GuLN.mjs → button-Da7CxMn7.mjs} +20 -7
  44. package/dist/node/button-Da7CxMn7.mjs.map +1 -0
  45. package/dist/node/{connect-KcYZcy_Z.mjs → connect-DOD5zQrl.mjs} +916 -200
  46. package/dist/node/connect-DOD5zQrl.mjs.map +1 -0
  47. package/dist/node/{dist-DJEK2WVi.mjs → dist-CNlIJlyu.mjs} +1992 -1451
  48. package/dist/node/dist-CNlIJlyu.mjs.map +1 -0
  49. package/dist/{browser/dist-D8H48e8N.js → node/dist-CzYOpeXN.mjs} +21 -2
  50. package/dist/node/{dist-BeZaEP6S.mjs.map → dist-CzYOpeXN.mjs.map} +1 -1
  51. package/dist/node/{dist-fA4EItr0.mjs → dist-DT7jI9ol.mjs} +10 -2
  52. package/dist/node/{dist-fA4EItr0.mjs.map → dist-DT7jI9ol.mjs.map} +1 -1
  53. package/dist/node/{document-drive-C8hbqQ3C.mjs → document-drive-BV8zVgUr.mjs} +1184 -122
  54. package/dist/node/document-drive-BV8zVgUr.mjs.map +1 -0
  55. package/dist/node/document-models/index.mjs +1 -1
  56. package/dist/node/{documents-BFBPmyw1.mjs → documents-DCf53bzO.mjs} +3 -3
  57. package/dist/node/{documents-BFBPmyw1.mjs.map → documents-DCf53bzO.mjs.map} +1 -1
  58. package/dist/node/editor-BIIW42CR.mjs +25 -0
  59. package/dist/node/editor-BIIW42CR.mjs.map +1 -0
  60. package/dist/node/{editor-B1KhoF1f.mjs → editor-BznTtugG.mjs} +672 -237
  61. package/dist/node/editor-BznTtugG.mjs.map +1 -0
  62. package/dist/node/editors/document-model-editor/module.mjs +1 -1
  63. package/dist/node/editors/generic-drive-explorer/index.mjs +5 -5
  64. package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
  65. package/dist/{browser/folder-view-DMFqcJhc.js → node/folder-view-WvkfzzHI.mjs} +73 -46
  66. package/dist/node/folder-view-WvkfzzHI.mjs.map +1 -0
  67. package/dist/node/{graphql-DskHmkMe.mjs → graphql-BfAoPeWM.mjs} +2 -2
  68. package/dist/node/{graphql-DskHmkMe.mjs.map → graphql-BfAoPeWM.mjs.map} +1 -1
  69. package/dist/node/{graphql-editor-C5VLRqEf.mjs → graphql-editor-aDsDHPSg.mjs} +7 -7
  70. package/dist/node/{graphql-editor-C5VLRqEf.mjs.map → graphql-editor-aDsDHPSg.mjs.map} +1 -1
  71. package/dist/node/{hooks-DJrjfVaS.mjs → hooks-D0DcS3MV.mjs} +2 -2
  72. package/dist/node/{hooks-DJrjfVaS.mjs.map → hooks-D0DcS3MV.mjs.map} +1 -1
  73. package/dist/node/index.mjs +378 -9
  74. package/dist/node/index.mjs.map +1 -1
  75. package/dist/node/{json-editor-iI2s9a_4.mjs → json-editor-hK4xilEL.mjs} +4 -4
  76. package/dist/node/{json-editor-iI2s9a_4.mjs.map → json-editor-hK4xilEL.mjs.map} +1 -1
  77. package/dist/node/{main-D82dkD7g.mjs → main-DutzjcaZ.mjs} +15 -6
  78. package/dist/node/main-DutzjcaZ.mjs.map +1 -0
  79. package/dist/node/{schema-context-CX5ml_9t.mjs → schema-context-DL8jhi_d.mjs} +3 -3
  80. package/dist/node/{schema-context-CX5ml_9t.mjs.map → schema-context-DL8jhi_d.mjs.map} +1 -1
  81. package/dist/node/{state-schemas-Bl7nA8bB.mjs → state-schemas-CQ4bprzx.mjs} +10 -20
  82. package/dist/{browser/state-schemas-BjQKM498.js.map → node/state-schemas-CQ4bprzx.mjs.map} +1 -1
  83. package/package.json +8 -7
  84. package/dist/browser/connect-KEU-HR3o.js.map +0 -1
  85. package/dist/browser/dist-D5ra2aRj.js.map +0 -1
  86. package/dist/browser/document-drive-IdFV1QXL.js.map +0 -1
  87. package/dist/browser/documents-D4ek7Ubv.js.map +0 -1
  88. package/dist/browser/editor-DiZF3ao3.js.map +0 -1
  89. package/dist/browser/editor-SqNULDP-.js +0 -29
  90. package/dist/browser/editor-SqNULDP-.js.map +0 -1
  91. package/dist/browser/folder-view-DMFqcJhc.js.map +0 -1
  92. package/dist/browser/lib-C-f3izXz.js.map +0 -1
  93. package/dist/browser/linting-Dn6pXRkK.js.map +0 -1
  94. package/dist/node/connect-KcYZcy_Z.mjs.map +0 -1
  95. package/dist/node/dist-DJEK2WVi.mjs.map +0 -1
  96. package/dist/node/document-drive-C8hbqQ3C.mjs.map +0 -1
  97. package/dist/node/editor-B1KhoF1f.mjs.map +0 -1
  98. package/dist/node/editor-yBGEvMGD.mjs +0 -29
  99. package/dist/node/editor-yBGEvMGD.mjs.map +0 -1
  100. package/dist/node/folder-view-Cy-QxsDg.mjs.map +0 -1
  101. package/dist/node/linting-Dx50GuLN.mjs.map +0 -1
  102. package/dist/node/main-D82dkD7g.mjs.map +0 -1
  103. package/dist/node/state-schemas-Bl7nA8bB.mjs.map +0 -1
@@ -0,0 +1,604 @@
1
+ import { a as printBlockString, c as Kind, d as QueryDocumentKeys, f as isNode, g as devAssert, r as inspect } from "./parser-CkF6Qt8V.js";
2
+ //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printString.mjs
3
+ /**
4
+ * Prints a string as a GraphQL StringValue literal. Replaces control characters
5
+ * and excluded characters (" U+0022 and \\ U+005C) with escape sequences.
6
+ */
7
+ function printString(str) {
8
+ return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
9
+ }
10
+ const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
11
+ function escapedReplacer(str) {
12
+ return escapeSequences[str.charCodeAt(0)];
13
+ }
14
+ const escapeSequences = [
15
+ "\\u0000",
16
+ "\\u0001",
17
+ "\\u0002",
18
+ "\\u0003",
19
+ "\\u0004",
20
+ "\\u0005",
21
+ "\\u0006",
22
+ "\\u0007",
23
+ "\\b",
24
+ "\\t",
25
+ "\\n",
26
+ "\\u000B",
27
+ "\\f",
28
+ "\\r",
29
+ "\\u000E",
30
+ "\\u000F",
31
+ "\\u0010",
32
+ "\\u0011",
33
+ "\\u0012",
34
+ "\\u0013",
35
+ "\\u0014",
36
+ "\\u0015",
37
+ "\\u0016",
38
+ "\\u0017",
39
+ "\\u0018",
40
+ "\\u0019",
41
+ "\\u001A",
42
+ "\\u001B",
43
+ "\\u001C",
44
+ "\\u001D",
45
+ "\\u001E",
46
+ "\\u001F",
47
+ "",
48
+ "",
49
+ "\\\"",
50
+ "",
51
+ "",
52
+ "",
53
+ "",
54
+ "",
55
+ "",
56
+ "",
57
+ "",
58
+ "",
59
+ "",
60
+ "",
61
+ "",
62
+ "",
63
+ "",
64
+ "",
65
+ "",
66
+ "",
67
+ "",
68
+ "",
69
+ "",
70
+ "",
71
+ "",
72
+ "",
73
+ "",
74
+ "",
75
+ "",
76
+ "",
77
+ "",
78
+ "",
79
+ "",
80
+ "",
81
+ "",
82
+ "",
83
+ "",
84
+ "",
85
+ "",
86
+ "",
87
+ "",
88
+ "",
89
+ "",
90
+ "",
91
+ "",
92
+ "",
93
+ "",
94
+ "",
95
+ "",
96
+ "",
97
+ "",
98
+ "",
99
+ "",
100
+ "",
101
+ "",
102
+ "",
103
+ "",
104
+ "",
105
+ "",
106
+ "",
107
+ "\\\\",
108
+ "",
109
+ "",
110
+ "",
111
+ "",
112
+ "",
113
+ "",
114
+ "",
115
+ "",
116
+ "",
117
+ "",
118
+ "",
119
+ "",
120
+ "",
121
+ "",
122
+ "",
123
+ "",
124
+ "",
125
+ "",
126
+ "",
127
+ "",
128
+ "",
129
+ "",
130
+ "",
131
+ "",
132
+ "",
133
+ "",
134
+ "",
135
+ "",
136
+ "",
137
+ "",
138
+ "",
139
+ "",
140
+ "",
141
+ "",
142
+ "\\u007F",
143
+ "\\u0080",
144
+ "\\u0081",
145
+ "\\u0082",
146
+ "\\u0083",
147
+ "\\u0084",
148
+ "\\u0085",
149
+ "\\u0086",
150
+ "\\u0087",
151
+ "\\u0088",
152
+ "\\u0089",
153
+ "\\u008A",
154
+ "\\u008B",
155
+ "\\u008C",
156
+ "\\u008D",
157
+ "\\u008E",
158
+ "\\u008F",
159
+ "\\u0090",
160
+ "\\u0091",
161
+ "\\u0092",
162
+ "\\u0093",
163
+ "\\u0094",
164
+ "\\u0095",
165
+ "\\u0096",
166
+ "\\u0097",
167
+ "\\u0098",
168
+ "\\u0099",
169
+ "\\u009A",
170
+ "\\u009B",
171
+ "\\u009C",
172
+ "\\u009D",
173
+ "\\u009E",
174
+ "\\u009F"
175
+ ];
176
+ //#endregion
177
+ //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/visitor.mjs
178
+ /**
179
+ * A visitor is provided to visit, it contains the collection of
180
+ * relevant functions to be called during the visitor's traversal.
181
+ */
182
+ const BREAK = Object.freeze({});
183
+ /**
184
+ * visit() will walk through an AST using a depth-first traversal, calling
185
+ * the visitor's enter function at each node in the traversal, and calling the
186
+ * leave function after visiting that node and all of its child nodes.
187
+ *
188
+ * By returning different values from the enter and leave functions, the
189
+ * behavior of the visitor can be altered, including skipping over a sub-tree of
190
+ * the AST (by returning false), editing the AST by returning a value or null
191
+ * to remove the value, or to stop the whole traversal by returning BREAK.
192
+ *
193
+ * When using visit() to edit an AST, the original AST will not be modified, and
194
+ * a new version of the AST with the changes applied will be returned from the
195
+ * visit function.
196
+ *
197
+ * ```ts
198
+ * const editedAST = visit(ast, {
199
+ * enter(node, key, parent, path, ancestors) {
200
+ * // @return
201
+ * // undefined: no action
202
+ * // false: skip visiting this node
203
+ * // visitor.BREAK: stop visiting altogether
204
+ * // null: delete this node
205
+ * // any value: replace this node with the returned value
206
+ * },
207
+ * leave(node, key, parent, path, ancestors) {
208
+ * // @return
209
+ * // undefined: no action
210
+ * // false: no action
211
+ * // visitor.BREAK: stop visiting altogether
212
+ * // null: delete this node
213
+ * // any value: replace this node with the returned value
214
+ * }
215
+ * });
216
+ * ```
217
+ *
218
+ * Alternatively to providing enter() and leave() functions, a visitor can
219
+ * instead provide functions named the same as the kinds of AST nodes, or
220
+ * enter/leave visitors at a named key, leading to three permutations of the
221
+ * visitor API:
222
+ *
223
+ * 1) Named visitors triggered when entering a node of a specific kind.
224
+ *
225
+ * ```ts
226
+ * visit(ast, {
227
+ * Kind(node) {
228
+ * // enter the "Kind" node
229
+ * }
230
+ * })
231
+ * ```
232
+ *
233
+ * 2) Named visitors that trigger upon entering and leaving a node of a specific kind.
234
+ *
235
+ * ```ts
236
+ * visit(ast, {
237
+ * Kind: {
238
+ * enter(node) {
239
+ * // enter the "Kind" node
240
+ * }
241
+ * leave(node) {
242
+ * // leave the "Kind" node
243
+ * }
244
+ * }
245
+ * })
246
+ * ```
247
+ *
248
+ * 3) Generic visitors that trigger upon entering and leaving any node.
249
+ *
250
+ * ```ts
251
+ * visit(ast, {
252
+ * enter(node) {
253
+ * // enter any node
254
+ * },
255
+ * leave(node) {
256
+ * // leave any node
257
+ * }
258
+ * })
259
+ * ```
260
+ */
261
+ function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
262
+ const enterLeaveMap = /* @__PURE__ */ new Map();
263
+ for (const kind of Object.values(Kind)) enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
264
+ let stack = void 0;
265
+ let inArray = Array.isArray(root);
266
+ let keys = [root];
267
+ let index = -1;
268
+ let edits = [];
269
+ let node = root;
270
+ let key = void 0;
271
+ let parent = void 0;
272
+ const path = [];
273
+ const ancestors = [];
274
+ do {
275
+ index++;
276
+ const isLeaving = index === keys.length;
277
+ const isEdited = isLeaving && edits.length !== 0;
278
+ if (isLeaving) {
279
+ key = ancestors.length === 0 ? void 0 : path[path.length - 1];
280
+ node = parent;
281
+ parent = ancestors.pop();
282
+ if (isEdited) if (inArray) {
283
+ node = node.slice();
284
+ let editOffset = 0;
285
+ for (const [editKey, editValue] of edits) {
286
+ const arrayKey = editKey - editOffset;
287
+ if (editValue === null) {
288
+ node.splice(arrayKey, 1);
289
+ editOffset++;
290
+ } else node[arrayKey] = editValue;
291
+ }
292
+ } else {
293
+ node = { ...node };
294
+ for (const [editKey, editValue] of edits) node[editKey] = editValue;
295
+ }
296
+ index = stack.index;
297
+ keys = stack.keys;
298
+ edits = stack.edits;
299
+ inArray = stack.inArray;
300
+ stack = stack.prev;
301
+ } else if (parent) {
302
+ key = inArray ? index : keys[index];
303
+ node = parent[key];
304
+ if (node === null || node === void 0) continue;
305
+ path.push(key);
306
+ }
307
+ let result;
308
+ if (!Array.isArray(node)) {
309
+ var _enterLeaveMap$get, _enterLeaveMap$get2;
310
+ isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
311
+ const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
312
+ result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
313
+ if (result === BREAK) break;
314
+ if (result === false) {
315
+ if (!isLeaving) {
316
+ path.pop();
317
+ continue;
318
+ }
319
+ } else if (result !== void 0) {
320
+ edits.push([key, result]);
321
+ if (!isLeaving) if (isNode(result)) node = result;
322
+ else {
323
+ path.pop();
324
+ continue;
325
+ }
326
+ }
327
+ }
328
+ if (result === void 0 && isEdited) edits.push([key, node]);
329
+ if (isLeaving) path.pop();
330
+ else {
331
+ var _node$kind;
332
+ stack = {
333
+ inArray,
334
+ index,
335
+ keys,
336
+ edits,
337
+ prev: stack
338
+ };
339
+ inArray = Array.isArray(node);
340
+ keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
341
+ index = -1;
342
+ edits = [];
343
+ if (parent) ancestors.push(parent);
344
+ parent = node;
345
+ }
346
+ } while (stack !== void 0);
347
+ if (edits.length !== 0) return edits[edits.length - 1][1];
348
+ return root;
349
+ }
350
+ /**
351
+ * Creates a new visitor instance which delegates to many visitors to run in
352
+ * parallel. Each visitor will be visited for each node before moving on.
353
+ *
354
+ * If a prior visitor edits a node, no following visitors will see that node.
355
+ */
356
+ function visitInParallel(visitors) {
357
+ const skipping = new Array(visitors.length).fill(null);
358
+ const mergedVisitor = Object.create(null);
359
+ for (const kind of Object.values(Kind)) {
360
+ let hasVisitor = false;
361
+ const enterList = new Array(visitors.length).fill(void 0);
362
+ const leaveList = new Array(visitors.length).fill(void 0);
363
+ for (let i = 0; i < visitors.length; ++i) {
364
+ const { enter, leave } = getEnterLeaveForKind(visitors[i], kind);
365
+ hasVisitor || (hasVisitor = enter != null || leave != null);
366
+ enterList[i] = enter;
367
+ leaveList[i] = leave;
368
+ }
369
+ if (!hasVisitor) continue;
370
+ mergedVisitor[kind] = {
371
+ enter(...args) {
372
+ const node = args[0];
373
+ for (let i = 0; i < visitors.length; i++) if (skipping[i] === null) {
374
+ var _enterList$i;
375
+ const result = (_enterList$i = enterList[i]) === null || _enterList$i === void 0 ? void 0 : _enterList$i.apply(visitors[i], args);
376
+ if (result === false) skipping[i] = node;
377
+ else if (result === BREAK) skipping[i] = BREAK;
378
+ else if (result !== void 0) return result;
379
+ }
380
+ },
381
+ leave(...args) {
382
+ const node = args[0];
383
+ for (let i = 0; i < visitors.length; i++) if (skipping[i] === null) {
384
+ var _leaveList$i;
385
+ const result = (_leaveList$i = leaveList[i]) === null || _leaveList$i === void 0 ? void 0 : _leaveList$i.apply(visitors[i], args);
386
+ if (result === BREAK) skipping[i] = BREAK;
387
+ else if (result !== void 0 && result !== false) return result;
388
+ } else if (skipping[i] === node) skipping[i] = null;
389
+ }
390
+ };
391
+ }
392
+ return mergedVisitor;
393
+ }
394
+ /**
395
+ * Given a visitor instance and a node kind, return EnterLeaveVisitor for that kind.
396
+ */
397
+ function getEnterLeaveForKind(visitor, kind) {
398
+ const kindVisitor = visitor[kind];
399
+ if (typeof kindVisitor === "object") return kindVisitor;
400
+ else if (typeof kindVisitor === "function") return {
401
+ enter: kindVisitor,
402
+ leave: void 0
403
+ };
404
+ return {
405
+ enter: visitor.enter,
406
+ leave: visitor.leave
407
+ };
408
+ }
409
+ //#endregion
410
+ //#region ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printer.mjs
411
+ /**
412
+ * Converts an AST into a string, using one set of reasonable
413
+ * formatting rules.
414
+ */
415
+ function print(ast) {
416
+ return visit(ast, printDocASTReducer);
417
+ }
418
+ const MAX_LINE_LENGTH = 80;
419
+ const printDocASTReducer = {
420
+ Name: { leave: (node) => node.value },
421
+ Variable: { leave: (node) => "$" + node.name },
422
+ Document: { leave: (node) => join(node.definitions, "\n\n") },
423
+ OperationDefinition: { leave(node) {
424
+ const varDefs = hasMultilineItems(node.variableDefinitions) ? wrap("(\n", join(node.variableDefinitions, "\n"), "\n)") : wrap("(", join(node.variableDefinitions, ", "), ")");
425
+ const prefix = wrap("", node.description, "\n") + join([
426
+ node.operation,
427
+ join([node.name, varDefs]),
428
+ join(node.directives, " ")
429
+ ], " ");
430
+ return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
431
+ } },
432
+ VariableDefinition: { leave: ({ variable, type, defaultValue, directives, description }) => wrap("", description, "\n") + variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " ")) },
433
+ SelectionSet: { leave: ({ selections }) => block(selections) },
434
+ Field: { leave({ alias, name, arguments: args, directives, selectionSet }) {
435
+ const prefix = wrap("", alias, ": ") + name;
436
+ let argsLine = prefix + wrap("(", join(args, ", "), ")");
437
+ if (argsLine.length > MAX_LINE_LENGTH) argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
438
+ return join([
439
+ argsLine,
440
+ join(directives, " "),
441
+ selectionSet
442
+ ], " ");
443
+ } },
444
+ Argument: { leave: ({ name, value }) => name + ": " + value },
445
+ FragmentSpread: { leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " ")) },
446
+ InlineFragment: { leave: ({ typeCondition, directives, selectionSet }) => join([
447
+ "...",
448
+ wrap("on ", typeCondition),
449
+ join(directives, " "),
450
+ selectionSet
451
+ ], " ") },
452
+ FragmentDefinition: { leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet, description }) => wrap("", description, "\n") + `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet },
453
+ IntValue: { leave: ({ value }) => value },
454
+ FloatValue: { leave: ({ value }) => value },
455
+ StringValue: { leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value) },
456
+ BooleanValue: { leave: ({ value }) => value ? "true" : "false" },
457
+ NullValue: { leave: () => "null" },
458
+ EnumValue: { leave: ({ value }) => value },
459
+ ListValue: { leave: ({ values }) => "[" + join(values, ", ") + "]" },
460
+ ObjectValue: { leave: ({ fields }) => "{" + join(fields, ", ") + "}" },
461
+ ObjectField: { leave: ({ name, value }) => name + ": " + value },
462
+ Directive: { leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")") },
463
+ NamedType: { leave: ({ name }) => name },
464
+ ListType: { leave: ({ type }) => "[" + type + "]" },
465
+ NonNullType: { leave: ({ type }) => type + "!" },
466
+ SchemaDefinition: { leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join([
467
+ "schema",
468
+ join(directives, " "),
469
+ block(operationTypes)
470
+ ], " ") },
471
+ OperationTypeDefinition: { leave: ({ operation, type }) => operation + ": " + type },
472
+ ScalarTypeDefinition: { leave: ({ description, name, directives }) => wrap("", description, "\n") + join([
473
+ "scalar",
474
+ name,
475
+ join(directives, " ")
476
+ ], " ") },
477
+ ObjectTypeDefinition: { leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join([
478
+ "type",
479
+ name,
480
+ wrap("implements ", join(interfaces, " & ")),
481
+ join(directives, " "),
482
+ block(fields)
483
+ ], " ") },
484
+ FieldDefinition: { leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type + wrap(" ", join(directives, " ")) },
485
+ InputValueDefinition: { leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join([
486
+ name + ": " + type,
487
+ wrap("= ", defaultValue),
488
+ join(directives, " ")
489
+ ], " ") },
490
+ InterfaceTypeDefinition: { leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join([
491
+ "interface",
492
+ name,
493
+ wrap("implements ", join(interfaces, " & ")),
494
+ join(directives, " "),
495
+ block(fields)
496
+ ], " ") },
497
+ UnionTypeDefinition: { leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join([
498
+ "union",
499
+ name,
500
+ join(directives, " "),
501
+ wrap("= ", join(types, " | "))
502
+ ], " ") },
503
+ EnumTypeDefinition: { leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join([
504
+ "enum",
505
+ name,
506
+ join(directives, " "),
507
+ block(values)
508
+ ], " ") },
509
+ EnumValueDefinition: { leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ") },
510
+ InputObjectTypeDefinition: { leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join([
511
+ "input",
512
+ name,
513
+ join(directives, " "),
514
+ block(fields)
515
+ ], " ") },
516
+ DirectiveDefinition: { leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ") },
517
+ SchemaExtension: { leave: ({ directives, operationTypes }) => join([
518
+ "extend schema",
519
+ join(directives, " "),
520
+ block(operationTypes)
521
+ ], " ") },
522
+ ScalarTypeExtension: { leave: ({ name, directives }) => join([
523
+ "extend scalar",
524
+ name,
525
+ join(directives, " ")
526
+ ], " ") },
527
+ ObjectTypeExtension: { leave: ({ name, interfaces, directives, fields }) => join([
528
+ "extend type",
529
+ name,
530
+ wrap("implements ", join(interfaces, " & ")),
531
+ join(directives, " "),
532
+ block(fields)
533
+ ], " ") },
534
+ InterfaceTypeExtension: { leave: ({ name, interfaces, directives, fields }) => join([
535
+ "extend interface",
536
+ name,
537
+ wrap("implements ", join(interfaces, " & ")),
538
+ join(directives, " "),
539
+ block(fields)
540
+ ], " ") },
541
+ UnionTypeExtension: { leave: ({ name, directives, types }) => join([
542
+ "extend union",
543
+ name,
544
+ join(directives, " "),
545
+ wrap("= ", join(types, " | "))
546
+ ], " ") },
547
+ EnumTypeExtension: { leave: ({ name, directives, values }) => join([
548
+ "extend enum",
549
+ name,
550
+ join(directives, " "),
551
+ block(values)
552
+ ], " ") },
553
+ InputObjectTypeExtension: { leave: ({ name, directives, fields }) => join([
554
+ "extend input",
555
+ name,
556
+ join(directives, " "),
557
+ block(fields)
558
+ ], " ") },
559
+ TypeCoordinate: { leave: ({ name }) => name },
560
+ MemberCoordinate: { leave: ({ name, memberName }) => join([name, wrap(".", memberName)]) },
561
+ ArgumentCoordinate: { leave: ({ name, fieldName, argumentName }) => join([
562
+ name,
563
+ wrap(".", fieldName),
564
+ wrap("(", argumentName, ":)")
565
+ ]) },
566
+ DirectiveCoordinate: { leave: ({ name }) => join(["@", name]) },
567
+ DirectiveArgumentCoordinate: { leave: ({ name, argumentName }) => join([
568
+ "@",
569
+ name,
570
+ wrap("(", argumentName, ":)")
571
+ ]) }
572
+ };
573
+ /**
574
+ * Given maybeArray, print an empty string if it is null or empty, otherwise
575
+ * print all items together separated by separator if provided
576
+ */
577
+ function join(maybeArray, separator = "") {
578
+ var _maybeArray$filter$jo;
579
+ return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
580
+ }
581
+ /**
582
+ * Given array, print each item on its own line, wrapped in an indented `{ }` block.
583
+ */
584
+ function block(array) {
585
+ return wrap("{\n", indent(join(array, "\n")), "\n}");
586
+ }
587
+ /**
588
+ * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.
589
+ */
590
+ function wrap(start, maybeString, end = "") {
591
+ return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
592
+ }
593
+ function indent(str) {
594
+ return wrap(" ", str.replace(/\n/g, "\n "));
595
+ }
596
+ function hasMultilineItems(maybeArray) {
597
+ var _maybeArray$some;
598
+ /* c8 ignore next */
599
+ return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
600
+ }
601
+ //#endregion
602
+ export { visitInParallel as a, visit as i, BREAK as n, getEnterLeaveForKind as r, print as t };
603
+
604
+ //# sourceMappingURL=printer-CEYr4JOg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"printer-CEYr4JOg.js","names":[],"sources":["../../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printString.mjs","../../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/visitor.mjs","../../../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/language/printer.mjs"],"sourcesContent":["/**\n * Prints a string as a GraphQL StringValue literal. Replaces control characters\n * and excluded characters (\" U+0022 and \\\\ U+005C) with escape sequences.\n */\nexport function printString(str) {\n return `\"${str.replace(escapedRegExp, escapedReplacer)}\"`;\n} // eslint-disable-next-line no-control-regex\n\nconst escapedRegExp = /[\\x00-\\x1f\\x22\\x5c\\x7f-\\x9f]/g;\n\nfunction escapedReplacer(str) {\n return escapeSequences[str.charCodeAt(0)];\n} // prettier-ignore\n\nconst escapeSequences = [\n '\\\\u0000',\n '\\\\u0001',\n '\\\\u0002',\n '\\\\u0003',\n '\\\\u0004',\n '\\\\u0005',\n '\\\\u0006',\n '\\\\u0007',\n '\\\\b',\n '\\\\t',\n '\\\\n',\n '\\\\u000B',\n '\\\\f',\n '\\\\r',\n '\\\\u000E',\n '\\\\u000F',\n '\\\\u0010',\n '\\\\u0011',\n '\\\\u0012',\n '\\\\u0013',\n '\\\\u0014',\n '\\\\u0015',\n '\\\\u0016',\n '\\\\u0017',\n '\\\\u0018',\n '\\\\u0019',\n '\\\\u001A',\n '\\\\u001B',\n '\\\\u001C',\n '\\\\u001D',\n '\\\\u001E',\n '\\\\u001F',\n '',\n '',\n '\\\\\"',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 2F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 3F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 4F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '\\\\\\\\',\n '',\n '',\n '', // 5F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '', // 6F\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '',\n '\\\\u007F',\n '\\\\u0080',\n '\\\\u0081',\n '\\\\u0082',\n '\\\\u0083',\n '\\\\u0084',\n '\\\\u0085',\n '\\\\u0086',\n '\\\\u0087',\n '\\\\u0088',\n '\\\\u0089',\n '\\\\u008A',\n '\\\\u008B',\n '\\\\u008C',\n '\\\\u008D',\n '\\\\u008E',\n '\\\\u008F',\n '\\\\u0090',\n '\\\\u0091',\n '\\\\u0092',\n '\\\\u0093',\n '\\\\u0094',\n '\\\\u0095',\n '\\\\u0096',\n '\\\\u0097',\n '\\\\u0098',\n '\\\\u0099',\n '\\\\u009A',\n '\\\\u009B',\n '\\\\u009C',\n '\\\\u009D',\n '\\\\u009E',\n '\\\\u009F',\n];\n","import { devAssert } from '../jsutils/devAssert.mjs';\nimport { inspect } from '../jsutils/inspect.mjs';\nimport { isNode, QueryDocumentKeys } from './ast.mjs';\nimport { Kind } from './kinds.mjs';\n/**\n * A visitor is provided to visit, it contains the collection of\n * relevant functions to be called during the visitor's traversal.\n */\n\nexport const BREAK = Object.freeze({});\n/**\n * visit() will walk through an AST using a depth-first traversal, calling\n * the visitor's enter function at each node in the traversal, and calling the\n * leave function after visiting that node and all of its child nodes.\n *\n * By returning different values from the enter and leave functions, the\n * behavior of the visitor can be altered, including skipping over a sub-tree of\n * the AST (by returning false), editing the AST by returning a value or null\n * to remove the value, or to stop the whole traversal by returning BREAK.\n *\n * When using visit() to edit an AST, the original AST will not be modified, and\n * a new version of the AST with the changes applied will be returned from the\n * visit function.\n *\n * ```ts\n * const editedAST = visit(ast, {\n * enter(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: skip visiting this node\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * },\n * leave(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: no action\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * }\n * });\n * ```\n *\n * Alternatively to providing enter() and leave() functions, a visitor can\n * instead provide functions named the same as the kinds of AST nodes, or\n * enter/leave visitors at a named key, leading to three permutations of the\n * visitor API:\n *\n * 1) Named visitors triggered when entering a node of a specific kind.\n *\n * ```ts\n * visit(ast, {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * })\n * ```\n *\n * 2) Named visitors that trigger upon entering and leaving a node of a specific kind.\n *\n * ```ts\n * visit(ast, {\n * Kind: {\n * enter(node) {\n * // enter the \"Kind\" node\n * }\n * leave(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n * ```\n *\n * 3) Generic visitors that trigger upon entering and leaving any node.\n *\n * ```ts\n * visit(ast, {\n * enter(node) {\n * // enter any node\n * },\n * leave(node) {\n * // leave any node\n * }\n * })\n * ```\n */\n\nexport function visit(root, visitor, visitorKeys = QueryDocumentKeys) {\n const enterLeaveMap = new Map();\n\n for (const kind of Object.values(Kind)) {\n enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));\n }\n /* eslint-disable no-undef-init */\n\n let stack = undefined;\n let inArray = Array.isArray(root);\n let keys = [root];\n let index = -1;\n let edits = [];\n let node = root;\n let key = undefined;\n let parent = undefined;\n const path = [];\n const ancestors = [];\n /* eslint-enable no-undef-init */\n\n do {\n index++;\n const isLeaving = index === keys.length;\n const isEdited = isLeaving && edits.length !== 0;\n\n if (isLeaving) {\n key = ancestors.length === 0 ? undefined : path[path.length - 1];\n node = parent;\n parent = ancestors.pop();\n\n if (isEdited) {\n if (inArray) {\n node = node.slice();\n let editOffset = 0;\n\n for (const [editKey, editValue] of edits) {\n const arrayKey = editKey - editOffset;\n\n if (editValue === null) {\n node.splice(arrayKey, 1);\n editOffset++;\n } else {\n node[arrayKey] = editValue;\n }\n }\n } else {\n node = { ...node };\n\n for (const [editKey, editValue] of edits) {\n node[editKey] = editValue;\n }\n }\n }\n\n index = stack.index;\n keys = stack.keys;\n edits = stack.edits;\n inArray = stack.inArray;\n stack = stack.prev;\n } else if (parent) {\n key = inArray ? index : keys[index];\n node = parent[key];\n\n if (node === null || node === undefined) {\n continue;\n }\n\n path.push(key);\n }\n\n let result;\n\n if (!Array.isArray(node)) {\n var _enterLeaveMap$get, _enterLeaveMap$get2;\n\n isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);\n const visitFn = isLeaving\n ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null ||\n _enterLeaveMap$get === void 0\n ? void 0\n : _enterLeaveMap$get.leave\n : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null ||\n _enterLeaveMap$get2 === void 0\n ? void 0\n : _enterLeaveMap$get2.enter;\n result =\n visitFn === null || visitFn === void 0\n ? void 0\n : visitFn.call(visitor, node, key, parent, path, ancestors);\n\n if (result === BREAK) {\n break;\n }\n\n if (result === false) {\n if (!isLeaving) {\n path.pop();\n continue;\n }\n } else if (result !== undefined) {\n edits.push([key, result]);\n\n if (!isLeaving) {\n if (isNode(result)) {\n node = result;\n } else {\n path.pop();\n continue;\n }\n }\n }\n }\n\n if (result === undefined && isEdited) {\n edits.push([key, node]);\n }\n\n if (isLeaving) {\n path.pop();\n } else {\n var _node$kind;\n\n stack = {\n inArray,\n index,\n keys,\n edits,\n prev: stack,\n };\n inArray = Array.isArray(node);\n keys = inArray\n ? node\n : (_node$kind = visitorKeys[node.kind]) !== null &&\n _node$kind !== void 0\n ? _node$kind\n : [];\n index = -1;\n edits = [];\n\n if (parent) {\n ancestors.push(parent);\n }\n\n parent = node;\n }\n } while (stack !== undefined);\n\n if (edits.length !== 0) {\n // New root\n return edits[edits.length - 1][1];\n }\n\n return root;\n}\n/**\n * Creates a new visitor instance which delegates to many visitors to run in\n * parallel. Each visitor will be visited for each node before moving on.\n *\n * If a prior visitor edits a node, no following visitors will see that node.\n */\n\nexport function visitInParallel(visitors) {\n const skipping = new Array(visitors.length).fill(null);\n const mergedVisitor = Object.create(null);\n\n for (const kind of Object.values(Kind)) {\n let hasVisitor = false;\n const enterList = new Array(visitors.length).fill(undefined);\n const leaveList = new Array(visitors.length).fill(undefined);\n\n for (let i = 0; i < visitors.length; ++i) {\n const { enter, leave } = getEnterLeaveForKind(visitors[i], kind);\n hasVisitor || (hasVisitor = enter != null || leave != null);\n enterList[i] = enter;\n leaveList[i] = leave;\n }\n\n if (!hasVisitor) {\n continue;\n }\n\n const mergedEnterLeave = {\n enter(...args) {\n const node = args[0];\n\n for (let i = 0; i < visitors.length; i++) {\n if (skipping[i] === null) {\n var _enterList$i;\n\n const result =\n (_enterList$i = enterList[i]) === null || _enterList$i === void 0\n ? void 0\n : _enterList$i.apply(visitors[i], args);\n\n if (result === false) {\n skipping[i] = node;\n } else if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined) {\n return result;\n }\n }\n }\n },\n\n leave(...args) {\n const node = args[0];\n\n for (let i = 0; i < visitors.length; i++) {\n if (skipping[i] === null) {\n var _leaveList$i;\n\n const result =\n (_leaveList$i = leaveList[i]) === null || _leaveList$i === void 0\n ? void 0\n : _leaveList$i.apply(visitors[i], args);\n\n if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined && result !== false) {\n return result;\n }\n } else if (skipping[i] === node) {\n skipping[i] = null;\n }\n }\n },\n };\n mergedVisitor[kind] = mergedEnterLeave;\n }\n\n return mergedVisitor;\n}\n/**\n * Given a visitor instance and a node kind, return EnterLeaveVisitor for that kind.\n */\n\nexport function getEnterLeaveForKind(visitor, kind) {\n const kindVisitor = visitor[kind];\n\n if (typeof kindVisitor === 'object') {\n // { Kind: { enter() {}, leave() {} } }\n return kindVisitor;\n } else if (typeof kindVisitor === 'function') {\n // { Kind() {} }\n return {\n enter: kindVisitor,\n leave: undefined,\n };\n } // { enter() {}, leave() {} }\n\n return {\n enter: visitor.enter,\n leave: visitor.leave,\n };\n}\n/**\n * Given a visitor instance, if it is leaving or not, and a node kind, return\n * the function the visitor runtime should call.\n *\n * @deprecated Please use `getEnterLeaveForKind` instead. Will be removed in v17\n */\n\n/* c8 ignore next 8 */\n\nexport function getVisitFn(visitor, kind, isLeaving) {\n const { enter, leave } = getEnterLeaveForKind(visitor, kind);\n return isLeaving ? leave : enter;\n}\n","import { printBlockString } from './blockString.mjs';\nimport { printString } from './printString.mjs';\nimport { visit } from './visitor.mjs';\n/**\n * Converts an AST into a string, using one set of reasonable\n * formatting rules.\n */\n\nexport function print(ast) {\n return visit(ast, printDocASTReducer);\n}\nconst MAX_LINE_LENGTH = 80;\nconst printDocASTReducer = {\n Name: {\n leave: (node) => node.value,\n },\n Variable: {\n leave: (node) => '$' + node.name,\n },\n // Document\n Document: {\n leave: (node) => join(node.definitions, '\\n\\n'),\n },\n OperationDefinition: {\n leave(node) {\n const varDefs = hasMultilineItems(node.variableDefinitions)\n ? wrap('(\\n', join(node.variableDefinitions, '\\n'), '\\n)')\n : wrap('(', join(node.variableDefinitions, ', '), ')');\n const prefix =\n wrap('', node.description, '\\n') +\n join(\n [\n node.operation,\n join([node.name, varDefs]),\n join(node.directives, ' '),\n ],\n ' ',\n ); // Anonymous queries with no directives or variable definitions can use\n // the query short form.\n\n return (prefix === 'query' ? '' : prefix + ' ') + node.selectionSet;\n },\n },\n VariableDefinition: {\n leave: ({ variable, type, defaultValue, directives, description }) =>\n wrap('', description, '\\n') +\n variable +\n ': ' +\n type +\n wrap(' = ', defaultValue) +\n wrap(' ', join(directives, ' ')),\n },\n SelectionSet: {\n leave: ({ selections }) => block(selections),\n },\n Field: {\n leave({ alias, name, arguments: args, directives, selectionSet }) {\n const prefix = wrap('', alias, ': ') + name;\n let argsLine = prefix + wrap('(', join(args, ', '), ')');\n\n if (argsLine.length > MAX_LINE_LENGTH) {\n argsLine = prefix + wrap('(\\n', indent(join(args, '\\n')), '\\n)');\n }\n\n return join([argsLine, join(directives, ' '), selectionSet], ' ');\n },\n },\n Argument: {\n leave: ({ name, value }) => name + ': ' + value,\n },\n // Fragments\n FragmentSpread: {\n leave: ({ name, directives }) =>\n '...' + name + wrap(' ', join(directives, ' ')),\n },\n InlineFragment: {\n leave: ({ typeCondition, directives, selectionSet }) =>\n join(\n [\n '...',\n wrap('on ', typeCondition),\n join(directives, ' '),\n selectionSet,\n ],\n ' ',\n ),\n },\n FragmentDefinition: {\n leave: ({\n name,\n typeCondition,\n variableDefinitions,\n directives,\n selectionSet,\n description,\n }) =>\n wrap('', description, '\\n') + // Note: fragment variable definitions are experimental and may be changed\n // or removed in the future.\n `fragment ${name}${wrap('(', join(variableDefinitions, ', '), ')')} ` +\n `on ${typeCondition} ${wrap('', join(directives, ' '), ' ')}` +\n selectionSet,\n },\n // Value\n IntValue: {\n leave: ({ value }) => value,\n },\n FloatValue: {\n leave: ({ value }) => value,\n },\n StringValue: {\n leave: ({ value, block: isBlockString }) =>\n isBlockString ? printBlockString(value) : printString(value),\n },\n BooleanValue: {\n leave: ({ value }) => (value ? 'true' : 'false'),\n },\n NullValue: {\n leave: () => 'null',\n },\n EnumValue: {\n leave: ({ value }) => value,\n },\n ListValue: {\n leave: ({ values }) => '[' + join(values, ', ') + ']',\n },\n ObjectValue: {\n leave: ({ fields }) => '{' + join(fields, ', ') + '}',\n },\n ObjectField: {\n leave: ({ name, value }) => name + ': ' + value,\n },\n // Directive\n Directive: {\n leave: ({ name, arguments: args }) =>\n '@' + name + wrap('(', join(args, ', '), ')'),\n },\n // Type\n NamedType: {\n leave: ({ name }) => name,\n },\n ListType: {\n leave: ({ type }) => '[' + type + ']',\n },\n NonNullType: {\n leave: ({ type }) => type + '!',\n },\n // Type System Definitions\n SchemaDefinition: {\n leave: ({ description, directives, operationTypes }) =>\n wrap('', description, '\\n') +\n join(['schema', join(directives, ' '), block(operationTypes)], ' '),\n },\n OperationTypeDefinition: {\n leave: ({ operation, type }) => operation + ': ' + type,\n },\n ScalarTypeDefinition: {\n leave: ({ description, name, directives }) =>\n wrap('', description, '\\n') +\n join(['scalar', name, join(directives, ' ')], ' '),\n },\n ObjectTypeDefinition: {\n leave: ({ description, name, interfaces, directives, fields }) =>\n wrap('', description, '\\n') +\n join(\n [\n 'type',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n FieldDefinition: {\n leave: ({ description, name, arguments: args, type, directives }) =>\n wrap('', description, '\\n') +\n name +\n (hasMultilineItems(args)\n ? wrap('(\\n', indent(join(args, '\\n')), '\\n)')\n : wrap('(', join(args, ', '), ')')) +\n ': ' +\n type +\n wrap(' ', join(directives, ' ')),\n },\n InputValueDefinition: {\n leave: ({ description, name, type, defaultValue, directives }) =>\n wrap('', description, '\\n') +\n join(\n [name + ': ' + type, wrap('= ', defaultValue), join(directives, ' ')],\n ' ',\n ),\n },\n InterfaceTypeDefinition: {\n leave: ({ description, name, interfaces, directives, fields }) =>\n wrap('', description, '\\n') +\n join(\n [\n 'interface',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n UnionTypeDefinition: {\n leave: ({ description, name, directives, types }) =>\n wrap('', description, '\\n') +\n join(\n ['union', name, join(directives, ' '), wrap('= ', join(types, ' | '))],\n ' ',\n ),\n },\n EnumTypeDefinition: {\n leave: ({ description, name, directives, values }) =>\n wrap('', description, '\\n') +\n join(['enum', name, join(directives, ' '), block(values)], ' '),\n },\n EnumValueDefinition: {\n leave: ({ description, name, directives }) =>\n wrap('', description, '\\n') + join([name, join(directives, ' ')], ' '),\n },\n InputObjectTypeDefinition: {\n leave: ({ description, name, directives, fields }) =>\n wrap('', description, '\\n') +\n join(['input', name, join(directives, ' '), block(fields)], ' '),\n },\n DirectiveDefinition: {\n leave: ({ description, name, arguments: args, repeatable, locations }) =>\n wrap('', description, '\\n') +\n 'directive @' +\n name +\n (hasMultilineItems(args)\n ? wrap('(\\n', indent(join(args, '\\n')), '\\n)')\n : wrap('(', join(args, ', '), ')')) +\n (repeatable ? ' repeatable' : '') +\n ' on ' +\n join(locations, ' | '),\n },\n SchemaExtension: {\n leave: ({ directives, operationTypes }) =>\n join(\n ['extend schema', join(directives, ' '), block(operationTypes)],\n ' ',\n ),\n },\n ScalarTypeExtension: {\n leave: ({ name, directives }) =>\n join(['extend scalar', name, join(directives, ' ')], ' '),\n },\n ObjectTypeExtension: {\n leave: ({ name, interfaces, directives, fields }) =>\n join(\n [\n 'extend type',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n InterfaceTypeExtension: {\n leave: ({ name, interfaces, directives, fields }) =>\n join(\n [\n 'extend interface',\n name,\n wrap('implements ', join(interfaces, ' & ')),\n join(directives, ' '),\n block(fields),\n ],\n ' ',\n ),\n },\n UnionTypeExtension: {\n leave: ({ name, directives, types }) =>\n join(\n [\n 'extend union',\n name,\n join(directives, ' '),\n wrap('= ', join(types, ' | ')),\n ],\n ' ',\n ),\n },\n EnumTypeExtension: {\n leave: ({ name, directives, values }) =>\n join(['extend enum', name, join(directives, ' '), block(values)], ' '),\n },\n InputObjectTypeExtension: {\n leave: ({ name, directives, fields }) =>\n join(['extend input', name, join(directives, ' '), block(fields)], ' '),\n },\n // Schema Coordinates\n TypeCoordinate: {\n leave: ({ name }) => name,\n },\n MemberCoordinate: {\n leave: ({ name, memberName }) => join([name, wrap('.', memberName)]),\n },\n ArgumentCoordinate: {\n leave: ({ name, fieldName, argumentName }) =>\n join([name, wrap('.', fieldName), wrap('(', argumentName, ':)')]),\n },\n DirectiveCoordinate: {\n leave: ({ name }) => join(['@', name]),\n },\n DirectiveArgumentCoordinate: {\n leave: ({ name, argumentName }) =>\n join(['@', name, wrap('(', argumentName, ':)')]),\n },\n};\n/**\n * Given maybeArray, print an empty string if it is null or empty, otherwise\n * print all items together separated by separator if provided\n */\n\nfunction join(maybeArray, separator = '') {\n var _maybeArray$filter$jo;\n\n return (_maybeArray$filter$jo =\n maybeArray === null || maybeArray === void 0\n ? void 0\n : maybeArray.filter((x) => x).join(separator)) !== null &&\n _maybeArray$filter$jo !== void 0\n ? _maybeArray$filter$jo\n : '';\n}\n/**\n * Given array, print each item on its own line, wrapped in an indented `{ }` block.\n */\n\nfunction block(array) {\n return wrap('{\\n', indent(join(array, '\\n')), '\\n}');\n}\n/**\n * If maybeString is not null or empty, then wrap with start and end, otherwise print an empty string.\n */\n\nfunction wrap(start, maybeString, end = '') {\n return maybeString != null && maybeString !== ''\n ? start + maybeString + end\n : '';\n}\n\nfunction indent(str) {\n return wrap(' ', str.replace(/\\n/g, '\\n '));\n}\n\nfunction hasMultilineItems(maybeArray) {\n var _maybeArray$some;\n\n // FIXME: https://github.com/graphql/graphql-js/issues/2203\n\n /* c8 ignore next */\n return (_maybeArray$some =\n maybeArray === null || maybeArray === void 0\n ? void 0\n : maybeArray.some((str) => str.includes('\\n'))) !== null &&\n _maybeArray$some !== void 0\n ? _maybeArray$some\n : false;\n}\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;;;AAIA,SAAgB,YAAY,KAAK;AAC/B,QAAO,IAAI,IAAI,QAAQ,eAAe,gBAAgB,CAAC;;AAGzD,MAAM,gBAAgB;AAEtB,SAAS,gBAAgB,KAAK;AAC5B,QAAO,gBAAgB,IAAI,WAAW,EAAE;;AAG1C,MAAM,kBAAkB;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;;;;ACtKD,MAAa,QAAQ,OAAO,OAAO,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFtC,SAAgB,MAAM,MAAM,SAAS,cAAc,mBAAmB;CACpE,MAAM,gCAAgB,IAAI,KAAK;AAE/B,MAAK,MAAM,QAAQ,OAAO,OAAO,KAAK,CACpC,eAAc,IAAI,MAAM,qBAAqB,SAAS,KAAK,CAAC;CAI9D,IAAI,QAAQ,KAAA;CACZ,IAAI,UAAU,MAAM,QAAQ,KAAK;CACjC,IAAI,OAAO,CAAC,KAAK;CACjB,IAAI,QAAQ;CACZ,IAAI,QAAQ,EAAE;CACd,IAAI,OAAO;CACX,IAAI,MAAM,KAAA;CACV,IAAI,SAAS,KAAA;CACb,MAAM,OAAO,EAAE;CACf,MAAM,YAAY,EAAE;AAGpB,IAAG;AACD;EACA,MAAM,YAAY,UAA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