@salesforce/lds-worker-api 1.404.0-dev1 → 1.404.0-dev10

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.
@@ -4280,7 +4280,7 @@
4280
4280
  }
4281
4281
  callbacks.push(callback);
4282
4282
  }
4283
- // version: 1.404.0-dev1-48073cfce6
4283
+ // version: 1.404.0-dev10-5a5eea9232
4284
4284
 
4285
4285
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4286
4286
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5324,7 +5324,7 @@
5324
5324
  const { apiFamily, name } = metadata;
5325
5325
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5326
5326
  }
5327
- // version: 1.404.0-dev1-48073cfce6
5327
+ // version: 1.404.0-dev10-5a5eea9232
5328
5328
 
5329
5329
  /**
5330
5330
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -25684,6 +25684,18 @@
25684
25684
  untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
25685
25685
  }
25686
25686
  }
25687
+ if (ArrayIsArray$1$1(untrustedConfig_fields_prop)) {
25688
+ const untrustedConfig_fields_prop_array = [];
25689
+ for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
25690
+ const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
25691
+ if (typeof untrustedConfig_fields_prop_item === 'string') {
25692
+ untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
25693
+ }
25694
+ }
25695
+ if (untrustedConfig_fields_object !== undefined) {
25696
+ untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
25697
+ }
25698
+ }
25687
25699
  }
25688
25700
  if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
25689
25701
  config.fields = untrustedConfig_fields_object;
@@ -32189,12 +32201,29 @@
32189
32201
  if (obj_fields_prop_union3_error != null) {
32190
32202
  obj_fields_prop_union3 = obj_fields_prop_union3_error.message;
32191
32203
  }
32192
- if (obj_fields_prop_union0 && obj_fields_prop_union1 && obj_fields_prop_union2 && obj_fields_prop_union3) {
32204
+ let obj_fields_prop_union4 = null;
32205
+ const obj_fields_prop_union4_error = (() => {
32206
+ if (!ArrayIsArray$3(obj_fields_prop)) {
32207
+ return new TypeError('Expected "array" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
32208
+ }
32209
+ for (let i = 0; i < obj_fields_prop.length; i++) {
32210
+ const obj_fields_prop_item = obj_fields_prop[i];
32211
+ const path_fields_prop_item = path_fields_prop + '[' + i + ']';
32212
+ if (typeof obj_fields_prop_item !== 'string') {
32213
+ return new TypeError('Expected "string" but received "' + typeof obj_fields_prop_item + '" (at "' + path_fields_prop_item + '")');
32214
+ }
32215
+ }
32216
+ })();
32217
+ if (obj_fields_prop_union4_error != null) {
32218
+ obj_fields_prop_union4 = obj_fields_prop_union4_error.message;
32219
+ }
32220
+ if (obj_fields_prop_union0 && obj_fields_prop_union1 && obj_fields_prop_union2 && obj_fields_prop_union3 && obj_fields_prop_union4) {
32193
32221
  let message = 'Object doesn\'t match union (at "' + path_fields_prop + '")';
32194
32222
  message += '\n' + obj_fields_prop_union0.split('\n').map((line) => '\t' + line).join('\n');
32195
32223
  message += '\n' + obj_fields_prop_union1.split('\n').map((line) => '\t' + line).join('\n');
32196
32224
  message += '\n' + obj_fields_prop_union2.split('\n').map((line) => '\t' + line).join('\n');
32197
32225
  message += '\n' + obj_fields_prop_union3.split('\n').map((line) => '\t' + line).join('\n');
32226
+ message += '\n' + obj_fields_prop_union4.split('\n').map((line) => '\t' + line).join('\n');
32198
32227
  return new TypeError(message);
32199
32228
  }
32200
32229
  }
@@ -34346,6 +34375,18 @@
34346
34375
  untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
34347
34376
  }
34348
34377
  }
34378
+ if (ArrayIsArray$1$1(untrustedConfig_fields_prop)) {
34379
+ const untrustedConfig_fields_prop_array = [];
34380
+ for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
34381
+ const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
34382
+ if (typeof untrustedConfig_fields_prop_item === 'string') {
34383
+ untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
34384
+ }
34385
+ }
34386
+ if (untrustedConfig_fields_object !== undefined) {
34387
+ untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
34388
+ }
34389
+ }
34349
34390
  }
34350
34391
  if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
34351
34392
  config.fields = untrustedConfig_fields_object;
@@ -35438,7 +35479,7 @@
35438
35479
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
35439
35480
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
35440
35481
  });
35441
- // version: 1.404.0-dev1-9582436c8f
35482
+ // version: 1.404.0-dev10-1e49deeb66
35442
35483
 
35443
35484
  var allowUpdatesForNonCachedRecords = {
35444
35485
  isOpen: function (e) {
@@ -36062,7 +36103,7 @@
36062
36103
  * An exported enum describing the different kinds of tokens that the
36063
36104
  * lexer emits.
36064
36105
  */
36065
- var TokenKind$3 = Object.freeze({
36106
+ var TokenKind$2 = Object.freeze({
36066
36107
  SOF: '<SOF>',
36067
36108
  EOF: '<EOF>',
36068
36109
  BANG: '!',
@@ -36282,7 +36323,7 @@
36282
36323
  /**
36283
36324
  * The set of allowed directive location values.
36284
36325
  */
36285
- var DirectiveLocation$3 = Object.freeze({
36326
+ var DirectiveLocation$2 = Object.freeze({
36286
36327
  // Request Definitions
36287
36328
  QUERY: 'QUERY',
36288
36329
  MUTATION: 'MUTATION',
@@ -36460,7 +36501,7 @@
36460
36501
  * The character offset at which the current line begins.
36461
36502
  */
36462
36503
  function Lexer(source) {
36463
- var startOfFileToken = new Token$1(TokenKind$3.SOF, 0, 0, 0, 0, null);
36504
+ var startOfFileToken = new Token$1(TokenKind$2.SOF, 0, 0, 0, 0, null);
36464
36505
  this.source = source;
36465
36506
  this.lastToken = startOfFileToken;
36466
36507
  this.token = startOfFileToken;
@@ -36488,13 +36529,13 @@
36488
36529
  _proto.lookahead = function lookahead() {
36489
36530
  var token = this.token;
36490
36531
 
36491
- if (token.kind !== TokenKind$3.EOF) {
36532
+ if (token.kind !== TokenKind$2.EOF) {
36492
36533
  do {
36493
36534
  var _token$next;
36494
36535
 
36495
36536
  // Note: next is only mutable during parsing, so we cast to allow this.
36496
36537
  token = (_token$next = token.next) !== null && _token$next !== void 0 ? _token$next : token.next = readToken(this, token);
36497
- } while (token.kind === TokenKind$3.COMMENT);
36538
+ } while (token.kind === TokenKind$2.COMMENT);
36498
36539
  }
36499
36540
 
36500
36541
  return token;
@@ -36507,12 +36548,12 @@
36507
36548
  */
36508
36549
 
36509
36550
  function isPunctuatorTokenKind(kind) {
36510
- return kind === TokenKind$3.BANG || kind === TokenKind$3.DOLLAR || kind === TokenKind$3.AMP || kind === TokenKind$3.PAREN_L || kind === TokenKind$3.PAREN_R || kind === TokenKind$3.SPREAD || kind === TokenKind$3.COLON || kind === TokenKind$3.EQUALS || kind === TokenKind$3.AT || kind === TokenKind$3.BRACKET_L || kind === TokenKind$3.BRACKET_R || kind === TokenKind$3.BRACE_L || kind === TokenKind$3.PIPE || kind === TokenKind$3.BRACE_R;
36551
+ return kind === TokenKind$2.BANG || kind === TokenKind$2.DOLLAR || kind === TokenKind$2.AMP || kind === TokenKind$2.PAREN_L || kind === TokenKind$2.PAREN_R || kind === TokenKind$2.SPREAD || kind === TokenKind$2.COLON || kind === TokenKind$2.EQUALS || kind === TokenKind$2.AT || kind === TokenKind$2.BRACKET_L || kind === TokenKind$2.BRACKET_R || kind === TokenKind$2.BRACE_L || kind === TokenKind$2.PIPE || kind === TokenKind$2.BRACE_R;
36511
36552
  }
36512
36553
 
36513
36554
  function printCharCode(code) {
36514
36555
  return (// NaN/undefined represents access beyond the end of the file.
36515
- isNaN(code) ? TokenKind$3.EOF : // Trust JSON for ASCII.
36556
+ isNaN(code) ? TokenKind$2.EOF : // Trust JSON for ASCII.
36516
36557
  code < 0x007f ? JSON.stringify(String.fromCharCode(code)) : // Otherwise print the escaped form.
36517
36558
  "\"\\u".concat(('00' + code.toString(16).toUpperCase()).slice(-4), "\"")
36518
36559
  );
@@ -36572,7 +36613,7 @@
36572
36613
 
36573
36614
  case 33:
36574
36615
  // !
36575
- return new Token$1(TokenKind$3.BANG, pos, pos + 1, _line, _col, prev);
36616
+ return new Token$1(TokenKind$2.BANG, pos, pos + 1, _line, _col, prev);
36576
36617
 
36577
36618
  case 35:
36578
36619
  // #
@@ -36580,59 +36621,59 @@
36580
36621
 
36581
36622
  case 36:
36582
36623
  // $
36583
- return new Token$1(TokenKind$3.DOLLAR, pos, pos + 1, _line, _col, prev);
36624
+ return new Token$1(TokenKind$2.DOLLAR, pos, pos + 1, _line, _col, prev);
36584
36625
 
36585
36626
  case 38:
36586
36627
  // &
36587
- return new Token$1(TokenKind$3.AMP, pos, pos + 1, _line, _col, prev);
36628
+ return new Token$1(TokenKind$2.AMP, pos, pos + 1, _line, _col, prev);
36588
36629
 
36589
36630
  case 40:
36590
36631
  // (
36591
- return new Token$1(TokenKind$3.PAREN_L, pos, pos + 1, _line, _col, prev);
36632
+ return new Token$1(TokenKind$2.PAREN_L, pos, pos + 1, _line, _col, prev);
36592
36633
 
36593
36634
  case 41:
36594
36635
  // )
36595
- return new Token$1(TokenKind$3.PAREN_R, pos, pos + 1, _line, _col, prev);
36636
+ return new Token$1(TokenKind$2.PAREN_R, pos, pos + 1, _line, _col, prev);
36596
36637
 
36597
36638
  case 46:
36598
36639
  // .
36599
36640
  if (body.charCodeAt(pos + 1) === 46 && body.charCodeAt(pos + 2) === 46) {
36600
- return new Token$1(TokenKind$3.SPREAD, pos, pos + 3, _line, _col, prev);
36641
+ return new Token$1(TokenKind$2.SPREAD, pos, pos + 3, _line, _col, prev);
36601
36642
  }
36602
36643
 
36603
36644
  break;
36604
36645
 
36605
36646
  case 58:
36606
36647
  // :
36607
- return new Token$1(TokenKind$3.COLON, pos, pos + 1, _line, _col, prev);
36648
+ return new Token$1(TokenKind$2.COLON, pos, pos + 1, _line, _col, prev);
36608
36649
 
36609
36650
  case 61:
36610
36651
  // =
36611
- return new Token$1(TokenKind$3.EQUALS, pos, pos + 1, _line, _col, prev);
36652
+ return new Token$1(TokenKind$2.EQUALS, pos, pos + 1, _line, _col, prev);
36612
36653
 
36613
36654
  case 64:
36614
36655
  // @
36615
- return new Token$1(TokenKind$3.AT, pos, pos + 1, _line, _col, prev);
36656
+ return new Token$1(TokenKind$2.AT, pos, pos + 1, _line, _col, prev);
36616
36657
 
36617
36658
  case 91:
36618
36659
  // [
36619
- return new Token$1(TokenKind$3.BRACKET_L, pos, pos + 1, _line, _col, prev);
36660
+ return new Token$1(TokenKind$2.BRACKET_L, pos, pos + 1, _line, _col, prev);
36620
36661
 
36621
36662
  case 93:
36622
36663
  // ]
36623
- return new Token$1(TokenKind$3.BRACKET_R, pos, pos + 1, _line, _col, prev);
36664
+ return new Token$1(TokenKind$2.BRACKET_R, pos, pos + 1, _line, _col, prev);
36624
36665
 
36625
36666
  case 123:
36626
36667
  // {
36627
- return new Token$1(TokenKind$3.BRACE_L, pos, pos + 1, _line, _col, prev);
36668
+ return new Token$1(TokenKind$2.BRACE_L, pos, pos + 1, _line, _col, prev);
36628
36669
 
36629
36670
  case 124:
36630
36671
  // |
36631
- return new Token$1(TokenKind$3.PIPE, pos, pos + 1, _line, _col, prev);
36672
+ return new Token$1(TokenKind$2.PIPE, pos, pos + 1, _line, _col, prev);
36632
36673
 
36633
36674
  case 125:
36634
36675
  // }
36635
- return new Token$1(TokenKind$3.BRACE_R, pos, pos + 1, _line, _col, prev);
36676
+ return new Token$1(TokenKind$2.BRACE_R, pos, pos + 1, _line, _col, prev);
36636
36677
 
36637
36678
  case 34:
36638
36679
  // "
@@ -36780,7 +36821,7 @@
36780
36821
 
36781
36822
  var line = lexer.line;
36782
36823
  var col = 1 + pos - lexer.lineStart;
36783
- return new Token$1(TokenKind$3.EOF, bodyLength, bodyLength, line, col, prev);
36824
+ return new Token$1(TokenKind$2.EOF, bodyLength, bodyLength, line, col, prev);
36784
36825
  }
36785
36826
  /**
36786
36827
  * Report a message that an unexpected character was encountered.
@@ -36816,7 +36857,7 @@
36816
36857
  } while (!isNaN(code) && ( // SourceCharacter but not LineTerminator
36817
36858
  code > 0x001f || code === 0x0009));
36818
36859
 
36819
- return new Token$1(TokenKind$3.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));
36860
+ return new Token$1(TokenKind$2.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));
36820
36861
  }
36821
36862
  /**
36822
36863
  * Reads a number token from the source file, either a float
@@ -36877,7 +36918,7 @@
36877
36918
  throw syntaxError(source, position, "Invalid number, expected digit but got: ".concat(printCharCode(code), "."));
36878
36919
  }
36879
36920
 
36880
- return new Token$1(isFloat ? TokenKind$3.FLOAT : TokenKind$3.INT, start, position, line, col, prev, body.slice(start, position));
36921
+ return new Token$1(isFloat ? TokenKind$2.FLOAT : TokenKind$2.INT, start, position, line, col, prev, body.slice(start, position));
36881
36922
  }
36882
36923
  /**
36883
36924
  * Returns the new position in the source after reading digits.
@@ -36920,7 +36961,7 @@
36920
36961
  // Closing Quote (")
36921
36962
  if (code === 34) {
36922
36963
  value += body.slice(chunkStart, position);
36923
- return new Token$1(TokenKind$3.STRING, start, position + 1, line, col, prev, value);
36964
+ return new Token$1(TokenKind$2.STRING, start, position + 1, line, col, prev, value);
36924
36965
  } // SourceCharacter
36925
36966
 
36926
36967
 
@@ -37012,7 +37053,7 @@
37012
37053
  // Closing Triple-Quote (""")
37013
37054
  if (code === 34 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34) {
37014
37055
  rawValue += body.slice(chunkStart, position);
37015
- return new Token$1(TokenKind$3.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));
37056
+ return new Token$1(TokenKind$2.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));
37016
37057
  } // SourceCharacter
37017
37058
 
37018
37059
 
@@ -37099,7 +37140,7 @@
37099
37140
  ++position;
37100
37141
  }
37101
37142
 
37102
- return new Token$1(TokenKind$3.NAME, start, position, line, col, prev, body.slice(start, position));
37143
+ return new Token$1(TokenKind$2.NAME, start, position, line, col, prev, body.slice(start, position));
37103
37144
  } // _ A-Z a-z
37104
37145
 
37105
37146
 
@@ -37145,7 +37186,7 @@
37145
37186
  var _proto = Parser.prototype;
37146
37187
 
37147
37188
  _proto.parseName = function parseName() {
37148
- var token = this.expectToken(TokenKind$3.NAME);
37189
+ var token = this.expectToken(TokenKind$2.NAME);
37149
37190
  return {
37150
37191
  kind: Kind$3.NAME,
37151
37192
  value: token.value,
@@ -37162,7 +37203,7 @@
37162
37203
  var start = this._lexer.token;
37163
37204
  return {
37164
37205
  kind: Kind$3.DOCUMENT,
37165
- definitions: this.many(TokenKind$3.SOF, this.parseDefinition, TokenKind$3.EOF),
37206
+ definitions: this.many(TokenKind$2.SOF, this.parseDefinition, TokenKind$2.EOF),
37166
37207
  loc: this.loc(start)
37167
37208
  };
37168
37209
  }
@@ -37179,7 +37220,7 @@
37179
37220
  ;
37180
37221
 
37181
37222
  _proto.parseDefinition = function parseDefinition() {
37182
- if (this.peek(TokenKind$3.NAME)) {
37223
+ if (this.peek(TokenKind$2.NAME)) {
37183
37224
  switch (this._lexer.token.value) {
37184
37225
  case 'query':
37185
37226
  case 'mutation':
@@ -37202,7 +37243,7 @@
37202
37243
  case 'extend':
37203
37244
  return this.parseTypeSystemExtension();
37204
37245
  }
37205
- } else if (this.peek(TokenKind$3.BRACE_L)) {
37246
+ } else if (this.peek(TokenKind$2.BRACE_L)) {
37206
37247
  return this.parseOperationDefinition();
37207
37248
  } else if (this.peekDescription()) {
37208
37249
  return this.parseTypeSystemDefinition();
@@ -37221,7 +37262,7 @@
37221
37262
  _proto.parseOperationDefinition = function parseOperationDefinition() {
37222
37263
  var start = this._lexer.token;
37223
37264
 
37224
- if (this.peek(TokenKind$3.BRACE_L)) {
37265
+ if (this.peek(TokenKind$2.BRACE_L)) {
37225
37266
  return {
37226
37267
  kind: Kind$3.OPERATION_DEFINITION,
37227
37268
  operation: 'query',
@@ -37236,7 +37277,7 @@
37236
37277
  var operation = this.parseOperationType();
37237
37278
  var name;
37238
37279
 
37239
- if (this.peek(TokenKind$3.NAME)) {
37280
+ if (this.peek(TokenKind$2.NAME)) {
37240
37281
  name = this.parseName();
37241
37282
  }
37242
37283
 
@@ -37256,7 +37297,7 @@
37256
37297
  ;
37257
37298
 
37258
37299
  _proto.parseOperationType = function parseOperationType() {
37259
- var operationToken = this.expectToken(TokenKind$3.NAME);
37300
+ var operationToken = this.expectToken(TokenKind$2.NAME);
37260
37301
 
37261
37302
  switch (operationToken.value) {
37262
37303
  case 'query':
@@ -37277,7 +37318,7 @@
37277
37318
  ;
37278
37319
 
37279
37320
  _proto.parseVariableDefinitions = function parseVariableDefinitions() {
37280
- return this.optionalMany(TokenKind$3.PAREN_L, this.parseVariableDefinition, TokenKind$3.PAREN_R);
37321
+ return this.optionalMany(TokenKind$2.PAREN_L, this.parseVariableDefinition, TokenKind$2.PAREN_R);
37281
37322
  }
37282
37323
  /**
37283
37324
  * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
@@ -37289,8 +37330,8 @@
37289
37330
  return {
37290
37331
  kind: Kind$3.VARIABLE_DEFINITION,
37291
37332
  variable: this.parseVariable(),
37292
- type: (this.expectToken(TokenKind$3.COLON), this.parseTypeReference()),
37293
- defaultValue: this.expectOptionalToken(TokenKind$3.EQUALS) ? this.parseValueLiteral(true) : undefined,
37333
+ type: (this.expectToken(TokenKind$2.COLON), this.parseTypeReference()),
37334
+ defaultValue: this.expectOptionalToken(TokenKind$2.EQUALS) ? this.parseValueLiteral(true) : undefined,
37294
37335
  directives: this.parseDirectives(true),
37295
37336
  loc: this.loc(start)
37296
37337
  };
@@ -37302,7 +37343,7 @@
37302
37343
 
37303
37344
  _proto.parseVariable = function parseVariable() {
37304
37345
  var start = this._lexer.token;
37305
- this.expectToken(TokenKind$3.DOLLAR);
37346
+ this.expectToken(TokenKind$2.DOLLAR);
37306
37347
  return {
37307
37348
  kind: Kind$3.VARIABLE,
37308
37349
  name: this.parseName(),
@@ -37318,7 +37359,7 @@
37318
37359
  var start = this._lexer.token;
37319
37360
  return {
37320
37361
  kind: Kind$3.SELECTION_SET,
37321
- selections: this.many(TokenKind$3.BRACE_L, this.parseSelection, TokenKind$3.BRACE_R),
37362
+ selections: this.many(TokenKind$2.BRACE_L, this.parseSelection, TokenKind$2.BRACE_R),
37322
37363
  loc: this.loc(start)
37323
37364
  };
37324
37365
  }
@@ -37331,7 +37372,7 @@
37331
37372
  ;
37332
37373
 
37333
37374
  _proto.parseSelection = function parseSelection() {
37334
- return this.peek(TokenKind$3.SPREAD) ? this.parseFragment() : this.parseField();
37375
+ return this.peek(TokenKind$2.SPREAD) ? this.parseFragment() : this.parseField();
37335
37376
  }
37336
37377
  /**
37337
37378
  * Field : Alias? Name Arguments? Directives? SelectionSet?
@@ -37346,7 +37387,7 @@
37346
37387
  var alias;
37347
37388
  var name;
37348
37389
 
37349
- if (this.expectOptionalToken(TokenKind$3.COLON)) {
37390
+ if (this.expectOptionalToken(TokenKind$2.COLON)) {
37350
37391
  alias = nameOrAlias;
37351
37392
  name = this.parseName();
37352
37393
  } else {
@@ -37359,7 +37400,7 @@
37359
37400
  name: name,
37360
37401
  arguments: this.parseArguments(false),
37361
37402
  directives: this.parseDirectives(false),
37362
- selectionSet: this.peek(TokenKind$3.BRACE_L) ? this.parseSelectionSet() : undefined,
37403
+ selectionSet: this.peek(TokenKind$2.BRACE_L) ? this.parseSelectionSet() : undefined,
37363
37404
  loc: this.loc(start)
37364
37405
  };
37365
37406
  }
@@ -37370,7 +37411,7 @@
37370
37411
 
37371
37412
  _proto.parseArguments = function parseArguments(isConst) {
37372
37413
  var item = isConst ? this.parseConstArgument : this.parseArgument;
37373
- return this.optionalMany(TokenKind$3.PAREN_L, item, TokenKind$3.PAREN_R);
37414
+ return this.optionalMany(TokenKind$2.PAREN_L, item, TokenKind$2.PAREN_R);
37374
37415
  }
37375
37416
  /**
37376
37417
  * Argument[Const] : Name : Value[?Const]
@@ -37380,7 +37421,7 @@
37380
37421
  _proto.parseArgument = function parseArgument() {
37381
37422
  var start = this._lexer.token;
37382
37423
  var name = this.parseName();
37383
- this.expectToken(TokenKind$3.COLON);
37424
+ this.expectToken(TokenKind$2.COLON);
37384
37425
  return {
37385
37426
  kind: Kind$3.ARGUMENT,
37386
37427
  name: name,
@@ -37394,7 +37435,7 @@
37394
37435
  return {
37395
37436
  kind: Kind$3.ARGUMENT,
37396
37437
  name: this.parseName(),
37397
- value: (this.expectToken(TokenKind$3.COLON), this.parseValueLiteral(true)),
37438
+ value: (this.expectToken(TokenKind$2.COLON), this.parseValueLiteral(true)),
37398
37439
  loc: this.loc(start)
37399
37440
  };
37400
37441
  } // Implements the parsing rules in the Fragments section.
@@ -37410,10 +37451,10 @@
37410
37451
 
37411
37452
  _proto.parseFragment = function parseFragment() {
37412
37453
  var start = this._lexer.token;
37413
- this.expectToken(TokenKind$3.SPREAD);
37454
+ this.expectToken(TokenKind$2.SPREAD);
37414
37455
  var hasTypeCondition = this.expectOptionalKeyword('on');
37415
37456
 
37416
- if (!hasTypeCondition && this.peek(TokenKind$3.NAME)) {
37457
+ if (!hasTypeCondition && this.peek(TokenKind$2.NAME)) {
37417
37458
  return {
37418
37459
  kind: Kind$3.FRAGMENT_SPREAD,
37419
37460
  name: this.parseFragmentName(),
@@ -37504,13 +37545,13 @@
37504
37545
  var token = this._lexer.token;
37505
37546
 
37506
37547
  switch (token.kind) {
37507
- case TokenKind$3.BRACKET_L:
37548
+ case TokenKind$2.BRACKET_L:
37508
37549
  return this.parseList(isConst);
37509
37550
 
37510
- case TokenKind$3.BRACE_L:
37551
+ case TokenKind$2.BRACE_L:
37511
37552
  return this.parseObject(isConst);
37512
37553
 
37513
- case TokenKind$3.INT:
37554
+ case TokenKind$2.INT:
37514
37555
  this._lexer.advance();
37515
37556
 
37516
37557
  return {
@@ -37519,7 +37560,7 @@
37519
37560
  loc: this.loc(token)
37520
37561
  };
37521
37562
 
37522
- case TokenKind$3.FLOAT:
37563
+ case TokenKind$2.FLOAT:
37523
37564
  this._lexer.advance();
37524
37565
 
37525
37566
  return {
@@ -37528,11 +37569,11 @@
37528
37569
  loc: this.loc(token)
37529
37570
  };
37530
37571
 
37531
- case TokenKind$3.STRING:
37532
- case TokenKind$3.BLOCK_STRING:
37572
+ case TokenKind$2.STRING:
37573
+ case TokenKind$2.BLOCK_STRING:
37533
37574
  return this.parseStringLiteral();
37534
37575
 
37535
- case TokenKind$3.NAME:
37576
+ case TokenKind$2.NAME:
37536
37577
  this._lexer.advance();
37537
37578
 
37538
37579
  switch (token.value) {
@@ -37564,7 +37605,7 @@
37564
37605
  };
37565
37606
  }
37566
37607
 
37567
- case TokenKind$3.DOLLAR:
37608
+ case TokenKind$2.DOLLAR:
37568
37609
  if (!isConst) {
37569
37610
  return this.parseVariable();
37570
37611
  }
@@ -37583,7 +37624,7 @@
37583
37624
  return {
37584
37625
  kind: Kind$3.STRING,
37585
37626
  value: token.value,
37586
- block: token.kind === TokenKind$3.BLOCK_STRING,
37627
+ block: token.kind === TokenKind$2.BLOCK_STRING,
37587
37628
  loc: this.loc(token)
37588
37629
  };
37589
37630
  }
@@ -37605,7 +37646,7 @@
37605
37646
 
37606
37647
  return {
37607
37648
  kind: Kind$3.LIST,
37608
- values: this.any(TokenKind$3.BRACKET_L, item, TokenKind$3.BRACKET_R),
37649
+ values: this.any(TokenKind$2.BRACKET_L, item, TokenKind$2.BRACKET_R),
37609
37650
  loc: this.loc(start)
37610
37651
  };
37611
37652
  }
@@ -37627,7 +37668,7 @@
37627
37668
 
37628
37669
  return {
37629
37670
  kind: Kind$3.OBJECT,
37630
- fields: this.any(TokenKind$3.BRACE_L, item, TokenKind$3.BRACE_R),
37671
+ fields: this.any(TokenKind$2.BRACE_L, item, TokenKind$2.BRACE_R),
37631
37672
  loc: this.loc(start)
37632
37673
  };
37633
37674
  }
@@ -37639,7 +37680,7 @@
37639
37680
  _proto.parseObjectField = function parseObjectField(isConst) {
37640
37681
  var start = this._lexer.token;
37641
37682
  var name = this.parseName();
37642
- this.expectToken(TokenKind$3.COLON);
37683
+ this.expectToken(TokenKind$2.COLON);
37643
37684
  return {
37644
37685
  kind: Kind$3.OBJECT_FIELD,
37645
37686
  name: name,
@@ -37656,7 +37697,7 @@
37656
37697
  _proto.parseDirectives = function parseDirectives(isConst) {
37657
37698
  var directives = [];
37658
37699
 
37659
- while (this.peek(TokenKind$3.AT)) {
37700
+ while (this.peek(TokenKind$2.AT)) {
37660
37701
  directives.push(this.parseDirective(isConst));
37661
37702
  }
37662
37703
 
@@ -37669,7 +37710,7 @@
37669
37710
 
37670
37711
  _proto.parseDirective = function parseDirective(isConst) {
37671
37712
  var start = this._lexer.token;
37672
- this.expectToken(TokenKind$3.AT);
37713
+ this.expectToken(TokenKind$2.AT);
37673
37714
  return {
37674
37715
  kind: Kind$3.DIRECTIVE,
37675
37716
  name: this.parseName(),
@@ -37690,9 +37731,9 @@
37690
37731
  var start = this._lexer.token;
37691
37732
  var type;
37692
37733
 
37693
- if (this.expectOptionalToken(TokenKind$3.BRACKET_L)) {
37734
+ if (this.expectOptionalToken(TokenKind$2.BRACKET_L)) {
37694
37735
  type = this.parseTypeReference();
37695
- this.expectToken(TokenKind$3.BRACKET_R);
37736
+ this.expectToken(TokenKind$2.BRACKET_R);
37696
37737
  type = {
37697
37738
  kind: Kind$3.LIST_TYPE,
37698
37739
  type: type,
@@ -37702,7 +37743,7 @@
37702
37743
  type = this.parseNamedType();
37703
37744
  }
37704
37745
 
37705
- if (this.expectOptionalToken(TokenKind$3.BANG)) {
37746
+ if (this.expectOptionalToken(TokenKind$2.BANG)) {
37706
37747
  return {
37707
37748
  kind: Kind$3.NON_NULL_TYPE,
37708
37749
  type: type,
@@ -37746,7 +37787,7 @@
37746
37787
  // Many definitions begin with a description and require a lookahead.
37747
37788
  var keywordToken = this.peekDescription() ? this._lexer.lookahead() : this._lexer.token;
37748
37789
 
37749
- if (keywordToken.kind === TokenKind$3.NAME) {
37790
+ if (keywordToken.kind === TokenKind$2.NAME) {
37750
37791
  switch (keywordToken.value) {
37751
37792
  case 'schema':
37752
37793
  return this.parseSchemaDefinition();
@@ -37778,7 +37819,7 @@
37778
37819
  };
37779
37820
 
37780
37821
  _proto.peekDescription = function peekDescription() {
37781
- return this.peek(TokenKind$3.STRING) || this.peek(TokenKind$3.BLOCK_STRING);
37822
+ return this.peek(TokenKind$2.STRING) || this.peek(TokenKind$2.BLOCK_STRING);
37782
37823
  }
37783
37824
  /**
37784
37825
  * Description : StringValue
@@ -37800,7 +37841,7 @@
37800
37841
  var description = this.parseDescription();
37801
37842
  this.expectKeyword('schema');
37802
37843
  var directives = this.parseDirectives(true);
37803
- var operationTypes = this.many(TokenKind$3.BRACE_L, this.parseOperationTypeDefinition, TokenKind$3.BRACE_R);
37844
+ var operationTypes = this.many(TokenKind$2.BRACE_L, this.parseOperationTypeDefinition, TokenKind$2.BRACE_R);
37804
37845
  return {
37805
37846
  kind: Kind$3.SCHEMA_DEFINITION,
37806
37847
  description: description,
@@ -37817,7 +37858,7 @@
37817
37858
  _proto.parseOperationTypeDefinition = function parseOperationTypeDefinition() {
37818
37859
  var start = this._lexer.token;
37819
37860
  var operation = this.parseOperationType();
37820
- this.expectToken(TokenKind$3.COLON);
37861
+ this.expectToken(TokenKind$2.COLON);
37821
37862
  var type = this.parseNamedType();
37822
37863
  return {
37823
37864
  kind: Kind$3.OPERATION_TYPE_DEFINITION,
@@ -37887,16 +37928,16 @@
37887
37928
  if (((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.allowLegacySDLImplementsInterfaces) === true) {
37888
37929
  var types = []; // Optional leading ampersand
37889
37930
 
37890
- this.expectOptionalToken(TokenKind$3.AMP);
37931
+ this.expectOptionalToken(TokenKind$2.AMP);
37891
37932
 
37892
37933
  do {
37893
37934
  types.push(this.parseNamedType());
37894
- } while (this.expectOptionalToken(TokenKind$3.AMP) || this.peek(TokenKind$3.NAME));
37935
+ } while (this.expectOptionalToken(TokenKind$2.AMP) || this.peek(TokenKind$2.NAME));
37895
37936
 
37896
37937
  return types;
37897
37938
  }
37898
37939
 
37899
- return this.delimitedMany(TokenKind$3.AMP, this.parseNamedType);
37940
+ return this.delimitedMany(TokenKind$2.AMP, this.parseNamedType);
37900
37941
  }
37901
37942
  /**
37902
37943
  * FieldsDefinition : { FieldDefinition+ }
@@ -37907,7 +37948,7 @@
37907
37948
  var _this$_options3;
37908
37949
 
37909
37950
  // Legacy support for the SDL?
37910
- if (((_this$_options3 = this._options) === null || _this$_options3 === void 0 ? void 0 : _this$_options3.allowLegacySDLEmptyFields) === true && this.peek(TokenKind$3.BRACE_L) && this._lexer.lookahead().kind === TokenKind$3.BRACE_R) {
37951
+ if (((_this$_options3 = this._options) === null || _this$_options3 === void 0 ? void 0 : _this$_options3.allowLegacySDLEmptyFields) === true && this.peek(TokenKind$2.BRACE_L) && this._lexer.lookahead().kind === TokenKind$2.BRACE_R) {
37911
37952
  this._lexer.advance();
37912
37953
 
37913
37954
  this._lexer.advance();
@@ -37915,7 +37956,7 @@
37915
37956
  return [];
37916
37957
  }
37917
37958
 
37918
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseFieldDefinition, TokenKind$3.BRACE_R);
37959
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseFieldDefinition, TokenKind$2.BRACE_R);
37919
37960
  }
37920
37961
  /**
37921
37962
  * FieldDefinition :
@@ -37928,7 +37969,7 @@
37928
37969
  var description = this.parseDescription();
37929
37970
  var name = this.parseName();
37930
37971
  var args = this.parseArgumentDefs();
37931
- this.expectToken(TokenKind$3.COLON);
37972
+ this.expectToken(TokenKind$2.COLON);
37932
37973
  var type = this.parseTypeReference();
37933
37974
  var directives = this.parseDirectives(true);
37934
37975
  return {
@@ -37947,7 +37988,7 @@
37947
37988
  ;
37948
37989
 
37949
37990
  _proto.parseArgumentDefs = function parseArgumentDefs() {
37950
- return this.optionalMany(TokenKind$3.PAREN_L, this.parseInputValueDef, TokenKind$3.PAREN_R);
37991
+ return this.optionalMany(TokenKind$2.PAREN_L, this.parseInputValueDef, TokenKind$2.PAREN_R);
37951
37992
  }
37952
37993
  /**
37953
37994
  * InputValueDefinition :
@@ -37959,11 +38000,11 @@
37959
38000
  var start = this._lexer.token;
37960
38001
  var description = this.parseDescription();
37961
38002
  var name = this.parseName();
37962
- this.expectToken(TokenKind$3.COLON);
38003
+ this.expectToken(TokenKind$2.COLON);
37963
38004
  var type = this.parseTypeReference();
37964
38005
  var defaultValue;
37965
38006
 
37966
- if (this.expectOptionalToken(TokenKind$3.EQUALS)) {
38007
+ if (this.expectOptionalToken(TokenKind$2.EQUALS)) {
37967
38008
  defaultValue = this.parseValueLiteral(true);
37968
38009
  }
37969
38010
 
@@ -38032,7 +38073,7 @@
38032
38073
  ;
38033
38074
 
38034
38075
  _proto.parseUnionMemberTypes = function parseUnionMemberTypes() {
38035
- return this.expectOptionalToken(TokenKind$3.EQUALS) ? this.delimitedMany(TokenKind$3.PIPE, this.parseNamedType) : [];
38076
+ return this.expectOptionalToken(TokenKind$2.EQUALS) ? this.delimitedMany(TokenKind$2.PIPE, this.parseNamedType) : [];
38036
38077
  }
38037
38078
  /**
38038
38079
  * EnumTypeDefinition :
@@ -38062,7 +38103,7 @@
38062
38103
  ;
38063
38104
 
38064
38105
  _proto.parseEnumValuesDefinition = function parseEnumValuesDefinition() {
38065
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseEnumValueDefinition, TokenKind$3.BRACE_R);
38106
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseEnumValueDefinition, TokenKind$2.BRACE_R);
38066
38107
  }
38067
38108
  /**
38068
38109
  * EnumValueDefinition : Description? EnumValue Directives[Const]?
@@ -38112,7 +38153,7 @@
38112
38153
  ;
38113
38154
 
38114
38155
  _proto.parseInputFieldsDefinition = function parseInputFieldsDefinition() {
38115
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseInputValueDef, TokenKind$3.BRACE_R);
38156
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseInputValueDef, TokenKind$2.BRACE_R);
38116
38157
  }
38117
38158
  /**
38118
38159
  * TypeSystemExtension :
@@ -38132,7 +38173,7 @@
38132
38173
  _proto.parseTypeSystemExtension = function parseTypeSystemExtension() {
38133
38174
  var keywordToken = this._lexer.lookahead();
38134
38175
 
38135
- if (keywordToken.kind === TokenKind$3.NAME) {
38176
+ if (keywordToken.kind === TokenKind$2.NAME) {
38136
38177
  switch (keywordToken.value) {
38137
38178
  case 'schema':
38138
38179
  return this.parseSchemaExtension();
@@ -38171,7 +38212,7 @@
38171
38212
  this.expectKeyword('extend');
38172
38213
  this.expectKeyword('schema');
38173
38214
  var directives = this.parseDirectives(true);
38174
- var operationTypes = this.optionalMany(TokenKind$3.BRACE_L, this.parseOperationTypeDefinition, TokenKind$3.BRACE_R);
38215
+ var operationTypes = this.optionalMany(TokenKind$2.BRACE_L, this.parseOperationTypeDefinition, TokenKind$2.BRACE_R);
38175
38216
 
38176
38217
  if (directives.length === 0 && operationTypes.length === 0) {
38177
38218
  throw this.unexpected();
@@ -38359,7 +38400,7 @@
38359
38400
  var start = this._lexer.token;
38360
38401
  var description = this.parseDescription();
38361
38402
  this.expectKeyword('directive');
38362
- this.expectToken(TokenKind$3.AT);
38403
+ this.expectToken(TokenKind$2.AT);
38363
38404
  var name = this.parseName();
38364
38405
  var args = this.parseArgumentDefs();
38365
38406
  var repeatable = this.expectOptionalKeyword('repeatable');
@@ -38383,7 +38424,7 @@
38383
38424
  ;
38384
38425
 
38385
38426
  _proto.parseDirectiveLocations = function parseDirectiveLocations() {
38386
- return this.delimitedMany(TokenKind$3.PIPE, this.parseDirectiveLocation);
38427
+ return this.delimitedMany(TokenKind$2.PIPE, this.parseDirectiveLocation);
38387
38428
  }
38388
38429
  /*
38389
38430
  * DirectiveLocation :
@@ -38418,7 +38459,7 @@
38418
38459
  var start = this._lexer.token;
38419
38460
  var name = this.parseName();
38420
38461
 
38421
- if (DirectiveLocation$3[name.value] !== undefined) {
38462
+ if (DirectiveLocation$2[name.value] !== undefined) {
38422
38463
  return name;
38423
38464
  }
38424
38465
 
@@ -38488,7 +38529,7 @@
38488
38529
  _proto.expectKeyword = function expectKeyword(value) {
38489
38530
  var token = this._lexer.token;
38490
38531
 
38491
- if (token.kind === TokenKind$3.NAME && token.value === value) {
38532
+ if (token.kind === TokenKind$2.NAME && token.value === value) {
38492
38533
  this._lexer.advance();
38493
38534
  } else {
38494
38535
  throw syntaxError(this._lexer.source, token.start, "Expected \"".concat(value, "\", found ").concat(getTokenDesc(token), "."));
@@ -38503,7 +38544,7 @@
38503
38544
  _proto.expectOptionalKeyword = function expectOptionalKeyword(value) {
38504
38545
  var token = this._lexer.token;
38505
38546
 
38506
- if (token.kind === TokenKind$3.NAME && token.value === value) {
38547
+ if (token.kind === TokenKind$2.NAME && token.value === value) {
38507
38548
  this._lexer.advance();
38508
38549
 
38509
38550
  return true;
@@ -41442,79 +41483,79 @@
41442
41483
  description: 'A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.',
41443
41484
  values: {
41444
41485
  QUERY: {
41445
- value: DirectiveLocation$3.QUERY,
41486
+ value: DirectiveLocation$2.QUERY,
41446
41487
  description: 'Location adjacent to a query operation.'
41447
41488
  },
41448
41489
  MUTATION: {
41449
- value: DirectiveLocation$3.MUTATION,
41490
+ value: DirectiveLocation$2.MUTATION,
41450
41491
  description: 'Location adjacent to a mutation operation.'
41451
41492
  },
41452
41493
  SUBSCRIPTION: {
41453
- value: DirectiveLocation$3.SUBSCRIPTION,
41494
+ value: DirectiveLocation$2.SUBSCRIPTION,
41454
41495
  description: 'Location adjacent to a subscription operation.'
41455
41496
  },
41456
41497
  FIELD: {
41457
- value: DirectiveLocation$3.FIELD,
41498
+ value: DirectiveLocation$2.FIELD,
41458
41499
  description: 'Location adjacent to a field.'
41459
41500
  },
41460
41501
  FRAGMENT_DEFINITION: {
41461
- value: DirectiveLocation$3.FRAGMENT_DEFINITION,
41502
+ value: DirectiveLocation$2.FRAGMENT_DEFINITION,
41462
41503
  description: 'Location adjacent to a fragment definition.'
41463
41504
  },
41464
41505
  FRAGMENT_SPREAD: {
41465
- value: DirectiveLocation$3.FRAGMENT_SPREAD,
41506
+ value: DirectiveLocation$2.FRAGMENT_SPREAD,
41466
41507
  description: 'Location adjacent to a fragment spread.'
41467
41508
  },
41468
41509
  INLINE_FRAGMENT: {
41469
- value: DirectiveLocation$3.INLINE_FRAGMENT,
41510
+ value: DirectiveLocation$2.INLINE_FRAGMENT,
41470
41511
  description: 'Location adjacent to an inline fragment.'
41471
41512
  },
41472
41513
  VARIABLE_DEFINITION: {
41473
- value: DirectiveLocation$3.VARIABLE_DEFINITION,
41514
+ value: DirectiveLocation$2.VARIABLE_DEFINITION,
41474
41515
  description: 'Location adjacent to a variable definition.'
41475
41516
  },
41476
41517
  SCHEMA: {
41477
- value: DirectiveLocation$3.SCHEMA,
41518
+ value: DirectiveLocation$2.SCHEMA,
41478
41519
  description: 'Location adjacent to a schema definition.'
41479
41520
  },
41480
41521
  SCALAR: {
41481
- value: DirectiveLocation$3.SCALAR,
41522
+ value: DirectiveLocation$2.SCALAR,
41482
41523
  description: 'Location adjacent to a scalar definition.'
41483
41524
  },
41484
41525
  OBJECT: {
41485
- value: DirectiveLocation$3.OBJECT,
41526
+ value: DirectiveLocation$2.OBJECT,
41486
41527
  description: 'Location adjacent to an object type definition.'
41487
41528
  },
41488
41529
  FIELD_DEFINITION: {
41489
- value: DirectiveLocation$3.FIELD_DEFINITION,
41530
+ value: DirectiveLocation$2.FIELD_DEFINITION,
41490
41531
  description: 'Location adjacent to a field definition.'
41491
41532
  },
41492
41533
  ARGUMENT_DEFINITION: {
41493
- value: DirectiveLocation$3.ARGUMENT_DEFINITION,
41534
+ value: DirectiveLocation$2.ARGUMENT_DEFINITION,
41494
41535
  description: 'Location adjacent to an argument definition.'
41495
41536
  },
41496
41537
  INTERFACE: {
41497
- value: DirectiveLocation$3.INTERFACE,
41538
+ value: DirectiveLocation$2.INTERFACE,
41498
41539
  description: 'Location adjacent to an interface definition.'
41499
41540
  },
41500
41541
  UNION: {
41501
- value: DirectiveLocation$3.UNION,
41542
+ value: DirectiveLocation$2.UNION,
41502
41543
  description: 'Location adjacent to a union definition.'
41503
41544
  },
41504
41545
  ENUM: {
41505
- value: DirectiveLocation$3.ENUM,
41546
+ value: DirectiveLocation$2.ENUM,
41506
41547
  description: 'Location adjacent to an enum definition.'
41507
41548
  },
41508
41549
  ENUM_VALUE: {
41509
- value: DirectiveLocation$3.ENUM_VALUE,
41550
+ value: DirectiveLocation$2.ENUM_VALUE,
41510
41551
  description: 'Location adjacent to an enum value definition.'
41511
41552
  },
41512
41553
  INPUT_OBJECT: {
41513
- value: DirectiveLocation$3.INPUT_OBJECT,
41554
+ value: DirectiveLocation$2.INPUT_OBJECT,
41514
41555
  description: 'Location adjacent to an input object type definition.'
41515
41556
  },
41516
41557
  INPUT_FIELD_DEFINITION: {
41517
- value: DirectiveLocation$3.INPUT_FIELD_DEFINITION,
41558
+ value: DirectiveLocation$2.INPUT_FIELD_DEFINITION,
41518
41559
  description: 'Location adjacent to an input object field definition.'
41519
41560
  }
41520
41561
  }
@@ -41997,7 +42038,7 @@
41997
42038
  var GraphQLIncludeDirective = new GraphQLDirective({
41998
42039
  name: 'include',
41999
42040
  description: 'Directs the executor to include this field or fragment only when the `if` argument is true.',
42000
- locations: [DirectiveLocation$3.FIELD, DirectiveLocation$3.FRAGMENT_SPREAD, DirectiveLocation$3.INLINE_FRAGMENT],
42041
+ locations: [DirectiveLocation$2.FIELD, DirectiveLocation$2.FRAGMENT_SPREAD, DirectiveLocation$2.INLINE_FRAGMENT],
42001
42042
  args: {
42002
42043
  if: {
42003
42044
  type: new GraphQLNonNull(GraphQLBoolean),
@@ -42012,7 +42053,7 @@
42012
42053
  var GraphQLSkipDirective = new GraphQLDirective({
42013
42054
  name: 'skip',
42014
42055
  description: 'Directs the executor to skip this field or fragment when the `if` argument is true.',
42015
- locations: [DirectiveLocation$3.FIELD, DirectiveLocation$3.FRAGMENT_SPREAD, DirectiveLocation$3.INLINE_FRAGMENT],
42056
+ locations: [DirectiveLocation$2.FIELD, DirectiveLocation$2.FRAGMENT_SPREAD, DirectiveLocation$2.INLINE_FRAGMENT],
42016
42057
  args: {
42017
42058
  if: {
42018
42059
  type: new GraphQLNonNull(GraphQLBoolean),
@@ -42032,7 +42073,7 @@
42032
42073
  var GraphQLDeprecatedDirective = new GraphQLDirective({
42033
42074
  name: 'deprecated',
42034
42075
  description: 'Marks an element of a GraphQL schema as no longer supported.',
42035
- locations: [DirectiveLocation$3.FIELD_DEFINITION, DirectiveLocation$3.ARGUMENT_DEFINITION, DirectiveLocation$3.INPUT_FIELD_DEFINITION, DirectiveLocation$3.ENUM_VALUE],
42076
+ locations: [DirectiveLocation$2.FIELD_DEFINITION, DirectiveLocation$2.ARGUMENT_DEFINITION, DirectiveLocation$2.INPUT_FIELD_DEFINITION, DirectiveLocation$2.ENUM_VALUE],
42036
42077
  args: {
42037
42078
  reason: {
42038
42079
  type: GraphQLString,
@@ -42048,7 +42089,7 @@
42048
42089
  var GraphQLSpecifiedByDirective = new GraphQLDirective({
42049
42090
  name: 'specifiedBy',
42050
42091
  description: 'Exposes a URL that specifies the behaviour of this scalar.',
42051
- locations: [DirectiveLocation$3.SCALAR],
42092
+ locations: [DirectiveLocation$2.SCALAR],
42052
42093
  args: {
42053
42094
  url: {
42054
42095
  type: new GraphQLNonNull(GraphQLString),
@@ -43083,58 +43124,58 @@
43083
43124
  return getDirectiveLocationForOperation(appliedTo.operation);
43084
43125
 
43085
43126
  case Kind$3.FIELD:
43086
- return DirectiveLocation$3.FIELD;
43127
+ return DirectiveLocation$2.FIELD;
43087
43128
 
43088
43129
  case Kind$3.FRAGMENT_SPREAD:
43089
- return DirectiveLocation$3.FRAGMENT_SPREAD;
43130
+ return DirectiveLocation$2.FRAGMENT_SPREAD;
43090
43131
 
43091
43132
  case Kind$3.INLINE_FRAGMENT:
43092
- return DirectiveLocation$3.INLINE_FRAGMENT;
43133
+ return DirectiveLocation$2.INLINE_FRAGMENT;
43093
43134
 
43094
43135
  case Kind$3.FRAGMENT_DEFINITION:
43095
- return DirectiveLocation$3.FRAGMENT_DEFINITION;
43136
+ return DirectiveLocation$2.FRAGMENT_DEFINITION;
43096
43137
 
43097
43138
  case Kind$3.VARIABLE_DEFINITION:
43098
- return DirectiveLocation$3.VARIABLE_DEFINITION;
43139
+ return DirectiveLocation$2.VARIABLE_DEFINITION;
43099
43140
 
43100
43141
  case Kind$3.SCHEMA_DEFINITION:
43101
43142
  case Kind$3.SCHEMA_EXTENSION:
43102
- return DirectiveLocation$3.SCHEMA;
43143
+ return DirectiveLocation$2.SCHEMA;
43103
43144
 
43104
43145
  case Kind$3.SCALAR_TYPE_DEFINITION:
43105
43146
  case Kind$3.SCALAR_TYPE_EXTENSION:
43106
- return DirectiveLocation$3.SCALAR;
43147
+ return DirectiveLocation$2.SCALAR;
43107
43148
 
43108
43149
  case Kind$3.OBJECT_TYPE_DEFINITION:
43109
43150
  case Kind$3.OBJECT_TYPE_EXTENSION:
43110
- return DirectiveLocation$3.OBJECT;
43151
+ return DirectiveLocation$2.OBJECT;
43111
43152
 
43112
43153
  case Kind$3.FIELD_DEFINITION:
43113
- return DirectiveLocation$3.FIELD_DEFINITION;
43154
+ return DirectiveLocation$2.FIELD_DEFINITION;
43114
43155
 
43115
43156
  case Kind$3.INTERFACE_TYPE_DEFINITION:
43116
43157
  case Kind$3.INTERFACE_TYPE_EXTENSION:
43117
- return DirectiveLocation$3.INTERFACE;
43158
+ return DirectiveLocation$2.INTERFACE;
43118
43159
 
43119
43160
  case Kind$3.UNION_TYPE_DEFINITION:
43120
43161
  case Kind$3.UNION_TYPE_EXTENSION:
43121
- return DirectiveLocation$3.UNION;
43162
+ return DirectiveLocation$2.UNION;
43122
43163
 
43123
43164
  case Kind$3.ENUM_TYPE_DEFINITION:
43124
43165
  case Kind$3.ENUM_TYPE_EXTENSION:
43125
- return DirectiveLocation$3.ENUM;
43166
+ return DirectiveLocation$2.ENUM;
43126
43167
 
43127
43168
  case Kind$3.ENUM_VALUE_DEFINITION:
43128
- return DirectiveLocation$3.ENUM_VALUE;
43169
+ return DirectiveLocation$2.ENUM_VALUE;
43129
43170
 
43130
43171
  case Kind$3.INPUT_OBJECT_TYPE_DEFINITION:
43131
43172
  case Kind$3.INPUT_OBJECT_TYPE_EXTENSION:
43132
- return DirectiveLocation$3.INPUT_OBJECT;
43173
+ return DirectiveLocation$2.INPUT_OBJECT;
43133
43174
 
43134
43175
  case Kind$3.INPUT_VALUE_DEFINITION:
43135
43176
  {
43136
43177
  var parentNode = ancestors[ancestors.length - 3];
43137
- return parentNode.kind === Kind$3.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation$3.INPUT_FIELD_DEFINITION : DirectiveLocation$3.ARGUMENT_DEFINITION;
43178
+ return parentNode.kind === Kind$3.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation$2.INPUT_FIELD_DEFINITION : DirectiveLocation$2.ARGUMENT_DEFINITION;
43138
43179
  }
43139
43180
  }
43140
43181
  }
@@ -43142,13 +43183,13 @@
43142
43183
  function getDirectiveLocationForOperation(operation) {
43143
43184
  switch (operation) {
43144
43185
  case 'query':
43145
- return DirectiveLocation$3.QUERY;
43186
+ return DirectiveLocation$2.QUERY;
43146
43187
 
43147
43188
  case 'mutation':
43148
- return DirectiveLocation$3.MUTATION;
43189
+ return DirectiveLocation$2.MUTATION;
43149
43190
 
43150
43191
  case 'subscription':
43151
- return DirectiveLocation$3.SUBSCRIPTION;
43192
+ return DirectiveLocation$2.SUBSCRIPTION;
43152
43193
  } // istanbul ignore next (Not reachable. All possible types have been considered)
43153
43194
 
43154
43195
 
@@ -46035,7 +46076,7 @@
46035
46076
  var comments = [];
46036
46077
  var token = loc.startToken.prev;
46037
46078
 
46038
- while (token != null && token.kind === TokenKind$3.COMMENT && token.next && token.prev && token.line + 1 === token.next.line && token.line !== token.prev.line) {
46079
+ while (token != null && token.kind === TokenKind$2.COMMENT && token.next && token.prev && token.line + 1 === token.next.line && token.line !== token.prev.line) {
46039
46080
  var value = String(token.value);
46040
46081
  comments.push(value);
46041
46082
  token = token.prev;
@@ -46197,7 +46238,7 @@
46197
46238
  var strippedBody = '';
46198
46239
  var wasLastAddedTokenNonPunctuator = false;
46199
46240
 
46200
- while (lexer.advance().kind !== TokenKind$3.EOF) {
46241
+ while (lexer.advance().kind !== TokenKind$2.EOF) {
46201
46242
  var currentToken = lexer.token;
46202
46243
  var tokenKind = currentToken.kind;
46203
46244
  /**
@@ -46209,14 +46250,14 @@
46209
46250
  var isNonPunctuator = !isPunctuatorTokenKind(currentToken.kind);
46210
46251
 
46211
46252
  if (wasLastAddedTokenNonPunctuator) {
46212
- if (isNonPunctuator || currentToken.kind === TokenKind$3.SPREAD) {
46253
+ if (isNonPunctuator || currentToken.kind === TokenKind$2.SPREAD) {
46213
46254
  strippedBody += ' ';
46214
46255
  }
46215
46256
  }
46216
46257
 
46217
46258
  var tokenBody = body.slice(currentToken.start, currentToken.end);
46218
46259
 
46219
- if (tokenKind === TokenKind$3.BLOCK_STRING) {
46260
+ if (tokenKind === TokenKind$2.BLOCK_STRING) {
46220
46261
  strippedBody += dedentBlockString(tokenBody);
46221
46262
  } else {
46222
46263
  strippedBody += tokenBody;
@@ -46649,7 +46690,7 @@
46649
46690
  * Opaque reference map to return keys to userland
46650
46691
  * As a user shouldn't have access to the Document
46651
46692
  */
46652
- const referenceMap$2 = new WeakMap();
46693
+ const referenceMap$1 = new WeakMap();
46653
46694
  /**
46654
46695
  * Strips characters that are not significant to the validity or execution
46655
46696
  * of a GraphQL document:
@@ -46697,7 +46738,7 @@
46697
46738
  return doc;
46698
46739
  }
46699
46740
  function updateReferenceMapWithKnownKey(doc, key) {
46700
- referenceMap$2.set(key, doc);
46741
+ referenceMap$1.set(key, doc);
46701
46742
  }
46702
46743
  function updateReferenceMapAndGetKey(doc) {
46703
46744
  // the key is a String object so that legacy locker does not replace its identity.
@@ -46722,7 +46763,7 @@
46722
46763
  outputString += substitution;
46723
46764
  }
46724
46765
  else if (typeof substitution === 'object') {
46725
- const doc = referenceMap$2.get(substitution);
46766
+ const doc = referenceMap$1.get(substitution);
46726
46767
  if (doc === undefined) {
46727
46768
  return null;
46728
46769
  }
@@ -46743,8 +46784,8 @@
46743
46784
  *
46744
46785
  * @param astReference - ast reference passed from user land
46745
46786
  */
46746
- const astResolver$2 = function (astReference) {
46747
- return referenceMap$2.get(astReference);
46787
+ const astResolver$1 = function (astReference) {
46788
+ return referenceMap$1.get(astReference);
46748
46789
  };
46749
46790
  /**
46750
46791
  *
@@ -46943,6 +46984,15 @@
46943
46984
  return luvioDocumentNode;
46944
46985
  }
46945
46986
 
46987
+ var graphqlRelationshipFieldsPerf = {
46988
+ isOpen: function (e) {
46989
+ return e.fallback;
46990
+ },
46991
+ hasError: function () {
46992
+ return !0;
46993
+ },
46994
+ };
46995
+
46946
46996
  var FIRST_DAY_OF_WEEK = 0;
46947
46997
 
46948
46998
  var graphqQueryFieldLimit = {
@@ -47401,6 +47451,906 @@
47401
47451
  return ok$3(data);
47402
47452
  }
47403
47453
 
47454
+ /**
47455
+ * Copyright (c) 2022, Salesforce, Inc.,
47456
+ * All rights reserved.
47457
+ * For full license text, see the LICENSE.txt file
47458
+ */
47459
+
47460
+ /*!
47461
+ * Copyright (c) 2022, Salesforce, Inc.,
47462
+ * All rights reserved.
47463
+ * For full license text, see the LICENSE.txt file
47464
+ */
47465
+ function devAssert(condition, message) {
47466
+ const booleanCondition = Boolean(condition);
47467
+ if (!booleanCondition) {
47468
+ throw new Error(message);
47469
+ }
47470
+ }
47471
+ const MAX_ARRAY_LENGTH$1 = 10;
47472
+ const MAX_RECURSIVE_DEPTH$1 = 2;
47473
+ function inspect$1(value) {
47474
+ return formatValue$1(value, []);
47475
+ }
47476
+ function formatValue$1(value, seenValues) {
47477
+ switch (typeof value) {
47478
+ case "string":
47479
+ return JSON.stringify(value);
47480
+ case "function":
47481
+ return value.name ? `[function ${value.name}]` : "[function]";
47482
+ case "object":
47483
+ return formatObjectValue$1(value, seenValues);
47484
+ default:
47485
+ return String(value);
47486
+ }
47487
+ }
47488
+ function formatObjectValue$1(value, previouslySeenValues) {
47489
+ if (value === null) {
47490
+ return "null";
47491
+ }
47492
+ if (previouslySeenValues.includes(value)) {
47493
+ return "[Circular]";
47494
+ }
47495
+ const seenValues = [...previouslySeenValues, value];
47496
+ if (isJSONable(value)) {
47497
+ const jsonValue = value.toJSON();
47498
+ if (jsonValue !== value) {
47499
+ return typeof jsonValue === "string" ? jsonValue : formatValue$1(jsonValue, seenValues);
47500
+ }
47501
+ } else if (Array.isArray(value)) {
47502
+ return formatArray$1(value, seenValues);
47503
+ }
47504
+ return formatObject$1(value, seenValues);
47505
+ }
47506
+ function isJSONable(value) {
47507
+ return typeof value.toJSON === "function";
47508
+ }
47509
+ function formatObject$1(object, seenValues) {
47510
+ const entries = Object.entries(object);
47511
+ if (entries.length === 0) {
47512
+ return "{}";
47513
+ }
47514
+ if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
47515
+ return "[" + getObjectTag$1(object) + "]";
47516
+ }
47517
+ const properties = entries.map(
47518
+ ([key, value]) => key + ": " + formatValue$1(value, seenValues)
47519
+ );
47520
+ return "{ " + properties.join(", ") + " }";
47521
+ }
47522
+ function formatArray$1(array, seenValues) {
47523
+ if (array.length === 0) {
47524
+ return "[]";
47525
+ }
47526
+ if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
47527
+ return "[Array]";
47528
+ }
47529
+ const len = Math.min(MAX_ARRAY_LENGTH$1, array.length);
47530
+ const remaining = array.length - len;
47531
+ const items = [];
47532
+ for (let i = 0; i < len; ++i) {
47533
+ items.push(formatValue$1(array[i], seenValues));
47534
+ }
47535
+ if (remaining === 1) {
47536
+ items.push("... 1 more item");
47537
+ } else if (remaining > 1) {
47538
+ items.push(`... ${remaining} more items`);
47539
+ }
47540
+ return "[" + items.join(", ") + "]";
47541
+ }
47542
+ function getObjectTag$1(object) {
47543
+ const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
47544
+ if (tag === "Object" && typeof object.constructor === "function") {
47545
+ const name = object.constructor.name;
47546
+ if (typeof name === "string" && name !== "") {
47547
+ return name;
47548
+ }
47549
+ }
47550
+ return tag;
47551
+ }
47552
+ var Kind$2;
47553
+ (function(Kind2) {
47554
+ Kind2["NAME"] = "Name";
47555
+ Kind2["DOCUMENT"] = "Document";
47556
+ Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
47557
+ Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
47558
+ Kind2["SELECTION_SET"] = "SelectionSet";
47559
+ Kind2["FIELD"] = "Field";
47560
+ Kind2["ARGUMENT"] = "Argument";
47561
+ Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
47562
+ Kind2["INLINE_FRAGMENT"] = "InlineFragment";
47563
+ Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
47564
+ Kind2["VARIABLE"] = "Variable";
47565
+ Kind2["INT"] = "IntValue";
47566
+ Kind2["FLOAT"] = "FloatValue";
47567
+ Kind2["STRING"] = "StringValue";
47568
+ Kind2["BOOLEAN"] = "BooleanValue";
47569
+ Kind2["NULL"] = "NullValue";
47570
+ Kind2["ENUM"] = "EnumValue";
47571
+ Kind2["LIST"] = "ListValue";
47572
+ Kind2["OBJECT"] = "ObjectValue";
47573
+ Kind2["OBJECT_FIELD"] = "ObjectField";
47574
+ Kind2["DIRECTIVE"] = "Directive";
47575
+ Kind2["NAMED_TYPE"] = "NamedType";
47576
+ Kind2["LIST_TYPE"] = "ListType";
47577
+ Kind2["NON_NULL_TYPE"] = "NonNullType";
47578
+ Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
47579
+ Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
47580
+ Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
47581
+ Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
47582
+ Kind2["FIELD_DEFINITION"] = "FieldDefinition";
47583
+ Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
47584
+ Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
47585
+ Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
47586
+ Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
47587
+ Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
47588
+ Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
47589
+ Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
47590
+ Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
47591
+ Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
47592
+ Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
47593
+ Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
47594
+ Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
47595
+ Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
47596
+ Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
47597
+ })(Kind$2 || (Kind$2 = {}));
47598
+ var TokenKind$1;
47599
+ (function(TokenKind2) {
47600
+ TokenKind2["SOF"] = "<SOF>";
47601
+ TokenKind2["EOF"] = "<EOF>";
47602
+ TokenKind2["BANG"] = "!";
47603
+ TokenKind2["DOLLAR"] = "$";
47604
+ TokenKind2["AMP"] = "&";
47605
+ TokenKind2["PAREN_L"] = "(";
47606
+ TokenKind2["PAREN_R"] = ")";
47607
+ TokenKind2["SPREAD"] = "...";
47608
+ TokenKind2["COLON"] = ":";
47609
+ TokenKind2["EQUALS"] = "=";
47610
+ TokenKind2["AT"] = "@";
47611
+ TokenKind2["BRACKET_L"] = "[";
47612
+ TokenKind2["BRACKET_R"] = "]";
47613
+ TokenKind2["BRACE_L"] = "{";
47614
+ TokenKind2["PIPE"] = "|";
47615
+ TokenKind2["BRACE_R"] = "}";
47616
+ TokenKind2["NAME"] = "Name";
47617
+ TokenKind2["INT"] = "Int";
47618
+ TokenKind2["FLOAT"] = "Float";
47619
+ TokenKind2["STRING"] = "String";
47620
+ TokenKind2["BLOCK_STRING"] = "BlockString";
47621
+ TokenKind2["COMMENT"] = "Comment";
47622
+ })(TokenKind$1 || (TokenKind$1 = {}));
47623
+ const QueryDocumentKeys$2 = {
47624
+ Name: [],
47625
+ Document: ["definitions"],
47626
+ OperationDefinition: [
47627
+ "name",
47628
+ "variableDefinitions",
47629
+ "directives",
47630
+ "selectionSet"
47631
+ ],
47632
+ VariableDefinition: ["variable", "type", "defaultValue", "directives"],
47633
+ Variable: ["name"],
47634
+ SelectionSet: ["selections"],
47635
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
47636
+ Argument: ["name", "value"],
47637
+ FragmentSpread: ["name", "directives"],
47638
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
47639
+ FragmentDefinition: [
47640
+ "name",
47641
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
47642
+ "variableDefinitions",
47643
+ "typeCondition",
47644
+ "directives",
47645
+ "selectionSet"
47646
+ ],
47647
+ IntValue: [],
47648
+ FloatValue: [],
47649
+ StringValue: [],
47650
+ BooleanValue: [],
47651
+ NullValue: [],
47652
+ EnumValue: [],
47653
+ ListValue: ["values"],
47654
+ ObjectValue: ["fields"],
47655
+ ObjectField: ["name", "value"],
47656
+ Directive: ["name", "arguments"],
47657
+ NamedType: ["name"],
47658
+ ListType: ["type"],
47659
+ NonNullType: ["type"],
47660
+ SchemaDefinition: ["description", "directives", "operationTypes"],
47661
+ OperationTypeDefinition: ["type"],
47662
+ ScalarTypeDefinition: ["description", "name", "directives"],
47663
+ ObjectTypeDefinition: [
47664
+ "description",
47665
+ "name",
47666
+ "interfaces",
47667
+ "directives",
47668
+ "fields"
47669
+ ],
47670
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
47671
+ InputValueDefinition: [
47672
+ "description",
47673
+ "name",
47674
+ "type",
47675
+ "defaultValue",
47676
+ "directives"
47677
+ ],
47678
+ InterfaceTypeDefinition: [
47679
+ "description",
47680
+ "name",
47681
+ "interfaces",
47682
+ "directives",
47683
+ "fields"
47684
+ ],
47685
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
47686
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
47687
+ EnumValueDefinition: ["description", "name", "directives"],
47688
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
47689
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
47690
+ SchemaExtension: ["directives", "operationTypes"],
47691
+ ScalarTypeExtension: ["name", "directives"],
47692
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
47693
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
47694
+ UnionTypeExtension: ["name", "directives", "types"],
47695
+ EnumTypeExtension: ["name", "directives", "values"],
47696
+ InputObjectTypeExtension: ["name", "directives", "fields"]
47697
+ };
47698
+ const kindValues = new Set(Object.keys(QueryDocumentKeys$2));
47699
+ function isNode$1(maybeNode) {
47700
+ const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
47701
+ return typeof maybeKind === "string" && kindValues.has(maybeKind);
47702
+ }
47703
+ var OperationTypeNode$1;
47704
+ (function(OperationTypeNode2) {
47705
+ OperationTypeNode2["QUERY"] = "query";
47706
+ OperationTypeNode2["MUTATION"] = "mutation";
47707
+ OperationTypeNode2["SUBSCRIPTION"] = "subscription";
47708
+ })(OperationTypeNode$1 || (OperationTypeNode$1 = {}));
47709
+ function isWhiteSpace(code) {
47710
+ return code === 9 || code === 32;
47711
+ }
47712
+ function printBlockString(value, options) {
47713
+ const escapedValue = value.replace(/"""/g, '\\"""');
47714
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
47715
+ const isSingleLine = lines.length === 1;
47716
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
47717
+ const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
47718
+ const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
47719
+ const hasTrailingSlash = value.endsWith("\\");
47720
+ const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
47721
+ const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
47722
+ (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
47723
+ let result = "";
47724
+ const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
47725
+ if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
47726
+ result += "\n";
47727
+ }
47728
+ result += escapedValue;
47729
+ if (printAsMultipleLines || forceTrailingNewline) {
47730
+ result += "\n";
47731
+ }
47732
+ return '"""' + result + '"""';
47733
+ }
47734
+ var DirectiveLocation$1;
47735
+ (function(DirectiveLocation2) {
47736
+ DirectiveLocation2["QUERY"] = "QUERY";
47737
+ DirectiveLocation2["MUTATION"] = "MUTATION";
47738
+ DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
47739
+ DirectiveLocation2["FIELD"] = "FIELD";
47740
+ DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
47741
+ DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
47742
+ DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
47743
+ DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
47744
+ DirectiveLocation2["SCHEMA"] = "SCHEMA";
47745
+ DirectiveLocation2["SCALAR"] = "SCALAR";
47746
+ DirectiveLocation2["OBJECT"] = "OBJECT";
47747
+ DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
47748
+ DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
47749
+ DirectiveLocation2["INTERFACE"] = "INTERFACE";
47750
+ DirectiveLocation2["UNION"] = "UNION";
47751
+ DirectiveLocation2["ENUM"] = "ENUM";
47752
+ DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
47753
+ DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
47754
+ DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
47755
+ })(DirectiveLocation$1 || (DirectiveLocation$1 = {}));
47756
+ function printString(str) {
47757
+ return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
47758
+ }
47759
+ const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
47760
+ function escapedReplacer(str) {
47761
+ return escapeSequences[str.charCodeAt(0)];
47762
+ }
47763
+ const escapeSequences = [
47764
+ "\\u0000",
47765
+ "\\u0001",
47766
+ "\\u0002",
47767
+ "\\u0003",
47768
+ "\\u0004",
47769
+ "\\u0005",
47770
+ "\\u0006",
47771
+ "\\u0007",
47772
+ "\\b",
47773
+ "\\t",
47774
+ "\\n",
47775
+ "\\u000B",
47776
+ "\\f",
47777
+ "\\r",
47778
+ "\\u000E",
47779
+ "\\u000F",
47780
+ "\\u0010",
47781
+ "\\u0011",
47782
+ "\\u0012",
47783
+ "\\u0013",
47784
+ "\\u0014",
47785
+ "\\u0015",
47786
+ "\\u0016",
47787
+ "\\u0017",
47788
+ "\\u0018",
47789
+ "\\u0019",
47790
+ "\\u001A",
47791
+ "\\u001B",
47792
+ "\\u001C",
47793
+ "\\u001D",
47794
+ "\\u001E",
47795
+ "\\u001F",
47796
+ "",
47797
+ "",
47798
+ '\\"',
47799
+ "",
47800
+ "",
47801
+ "",
47802
+ "",
47803
+ "",
47804
+ "",
47805
+ "",
47806
+ "",
47807
+ "",
47808
+ "",
47809
+ "",
47810
+ "",
47811
+ "",
47812
+ // 2F
47813
+ "",
47814
+ "",
47815
+ "",
47816
+ "",
47817
+ "",
47818
+ "",
47819
+ "",
47820
+ "",
47821
+ "",
47822
+ "",
47823
+ "",
47824
+ "",
47825
+ "",
47826
+ "",
47827
+ "",
47828
+ "",
47829
+ // 3F
47830
+ "",
47831
+ "",
47832
+ "",
47833
+ "",
47834
+ "",
47835
+ "",
47836
+ "",
47837
+ "",
47838
+ "",
47839
+ "",
47840
+ "",
47841
+ "",
47842
+ "",
47843
+ "",
47844
+ "",
47845
+ "",
47846
+ // 4F
47847
+ "",
47848
+ "",
47849
+ "",
47850
+ "",
47851
+ "",
47852
+ "",
47853
+ "",
47854
+ "",
47855
+ "",
47856
+ "",
47857
+ "",
47858
+ "",
47859
+ "\\\\",
47860
+ "",
47861
+ "",
47862
+ "",
47863
+ // 5F
47864
+ "",
47865
+ "",
47866
+ "",
47867
+ "",
47868
+ "",
47869
+ "",
47870
+ "",
47871
+ "",
47872
+ "",
47873
+ "",
47874
+ "",
47875
+ "",
47876
+ "",
47877
+ "",
47878
+ "",
47879
+ "",
47880
+ // 6F
47881
+ "",
47882
+ "",
47883
+ "",
47884
+ "",
47885
+ "",
47886
+ "",
47887
+ "",
47888
+ "",
47889
+ "",
47890
+ "",
47891
+ "",
47892
+ "",
47893
+ "",
47894
+ "",
47895
+ "",
47896
+ "\\u007F",
47897
+ "\\u0080",
47898
+ "\\u0081",
47899
+ "\\u0082",
47900
+ "\\u0083",
47901
+ "\\u0084",
47902
+ "\\u0085",
47903
+ "\\u0086",
47904
+ "\\u0087",
47905
+ "\\u0088",
47906
+ "\\u0089",
47907
+ "\\u008A",
47908
+ "\\u008B",
47909
+ "\\u008C",
47910
+ "\\u008D",
47911
+ "\\u008E",
47912
+ "\\u008F",
47913
+ "\\u0090",
47914
+ "\\u0091",
47915
+ "\\u0092",
47916
+ "\\u0093",
47917
+ "\\u0094",
47918
+ "\\u0095",
47919
+ "\\u0096",
47920
+ "\\u0097",
47921
+ "\\u0098",
47922
+ "\\u0099",
47923
+ "\\u009A",
47924
+ "\\u009B",
47925
+ "\\u009C",
47926
+ "\\u009D",
47927
+ "\\u009E",
47928
+ "\\u009F"
47929
+ ];
47930
+ const BREAK$1 = Object.freeze({});
47931
+ function visit$1(root, visitor, visitorKeys = QueryDocumentKeys$2) {
47932
+ const enterLeaveMap = /* @__PURE__ */ new Map();
47933
+ for (const kind of Object.values(Kind$2)) {
47934
+ enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
47935
+ }
47936
+ let stack = void 0;
47937
+ let inArray = Array.isArray(root);
47938
+ let keys = [root];
47939
+ let index = -1;
47940
+ let edits = [];
47941
+ let node = root;
47942
+ let key = void 0;
47943
+ let parent = void 0;
47944
+ const path = [];
47945
+ const ancestors = [];
47946
+ do {
47947
+ index++;
47948
+ const isLeaving = index === keys.length;
47949
+ const isEdited = isLeaving && edits.length !== 0;
47950
+ if (isLeaving) {
47951
+ key = ancestors.length === 0 ? void 0 : path[path.length - 1];
47952
+ node = parent;
47953
+ parent = ancestors.pop();
47954
+ if (isEdited) {
47955
+ if (inArray) {
47956
+ node = node.slice();
47957
+ let editOffset = 0;
47958
+ for (const [editKey, editValue] of edits) {
47959
+ const arrayKey = editKey - editOffset;
47960
+ if (editValue === null) {
47961
+ node.splice(arrayKey, 1);
47962
+ editOffset++;
47963
+ } else {
47964
+ node[arrayKey] = editValue;
47965
+ }
47966
+ }
47967
+ } else {
47968
+ node = { ...node };
47969
+ for (const [editKey, editValue] of edits) {
47970
+ node[editKey] = editValue;
47971
+ }
47972
+ }
47973
+ }
47974
+ index = stack.index;
47975
+ keys = stack.keys;
47976
+ edits = stack.edits;
47977
+ inArray = stack.inArray;
47978
+ stack = stack.prev;
47979
+ } else if (parent) {
47980
+ key = inArray ? index : keys[index];
47981
+ node = parent[key];
47982
+ if (node === null || node === void 0) {
47983
+ continue;
47984
+ }
47985
+ path.push(key);
47986
+ }
47987
+ let result;
47988
+ if (!Array.isArray(node)) {
47989
+ var _enterLeaveMap$get, _enterLeaveMap$get2;
47990
+ isNode$1(node) || devAssert(false, `Invalid AST Node: ${inspect$1(node)}.`);
47991
+ 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;
47992
+ result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
47993
+ if (result === BREAK$1) {
47994
+ break;
47995
+ }
47996
+ if (result === false) {
47997
+ if (!isLeaving) {
47998
+ path.pop();
47999
+ continue;
48000
+ }
48001
+ } else if (result !== void 0) {
48002
+ edits.push([key, result]);
48003
+ if (!isLeaving) {
48004
+ if (isNode$1(result)) {
48005
+ node = result;
48006
+ } else {
48007
+ path.pop();
48008
+ continue;
48009
+ }
48010
+ }
48011
+ }
48012
+ }
48013
+ if (result === void 0 && isEdited) {
48014
+ edits.push([key, node]);
48015
+ }
48016
+ if (isLeaving) {
48017
+ path.pop();
48018
+ } else {
48019
+ var _node$kind;
48020
+ stack = {
48021
+ inArray,
48022
+ index,
48023
+ keys,
48024
+ edits,
48025
+ prev: stack
48026
+ };
48027
+ inArray = Array.isArray(node);
48028
+ keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
48029
+ index = -1;
48030
+ edits = [];
48031
+ if (parent) {
48032
+ ancestors.push(parent);
48033
+ }
48034
+ parent = node;
48035
+ }
48036
+ } while (stack !== void 0);
48037
+ if (edits.length !== 0) {
48038
+ return edits[edits.length - 1][1];
48039
+ }
48040
+ return root;
48041
+ }
48042
+ function getEnterLeaveForKind(visitor, kind) {
48043
+ const kindVisitor = visitor[kind];
48044
+ if (typeof kindVisitor === "object") {
48045
+ return kindVisitor;
48046
+ } else if (typeof kindVisitor === "function") {
48047
+ return {
48048
+ enter: kindVisitor,
48049
+ leave: void 0
48050
+ };
48051
+ }
48052
+ return {
48053
+ enter: visitor.enter,
48054
+ leave: visitor.leave
48055
+ };
48056
+ }
48057
+ function print(ast) {
48058
+ return visit$1(ast, printDocASTReducer);
48059
+ }
48060
+ const MAX_LINE_LENGTH = 80;
48061
+ const printDocASTReducer = {
48062
+ Name: {
48063
+ leave: (node) => node.value
48064
+ },
48065
+ Variable: {
48066
+ leave: (node) => "$" + node.name
48067
+ },
48068
+ // Document
48069
+ Document: {
48070
+ leave: (node) => join$2(node.definitions, "\n\n")
48071
+ },
48072
+ OperationDefinition: {
48073
+ leave(node) {
48074
+ const varDefs = wrap("(", join$2(node.variableDefinitions, ", "), ")");
48075
+ const prefix = join$2(
48076
+ [
48077
+ node.operation,
48078
+ join$2([node.name, varDefs]),
48079
+ join$2(node.directives, " ")
48080
+ ],
48081
+ " "
48082
+ );
48083
+ return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
48084
+ }
48085
+ },
48086
+ VariableDefinition: {
48087
+ leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join$2(directives, " "))
48088
+ },
48089
+ SelectionSet: {
48090
+ leave: ({ selections }) => block(selections)
48091
+ },
48092
+ Field: {
48093
+ leave({ alias, name, arguments: args, directives, selectionSet }) {
48094
+ const prefix = wrap("", alias, ": ") + name;
48095
+ let argsLine = prefix + wrap("(", join$2(args, ", "), ")");
48096
+ if (argsLine.length > MAX_LINE_LENGTH) {
48097
+ argsLine = prefix + wrap("(\n", indent(join$2(args, "\n")), "\n)");
48098
+ }
48099
+ return join$2([argsLine, join$2(directives, " "), selectionSet], " ");
48100
+ }
48101
+ },
48102
+ Argument: {
48103
+ leave: ({ name, value }) => name + ": " + value
48104
+ },
48105
+ // Fragments
48106
+ FragmentSpread: {
48107
+ leave: ({ name, directives }) => "..." + name + wrap(" ", join$2(directives, " "))
48108
+ },
48109
+ InlineFragment: {
48110
+ leave: ({ typeCondition, directives, selectionSet }) => join$2(
48111
+ [
48112
+ "...",
48113
+ wrap("on ", typeCondition),
48114
+ join$2(directives, " "),
48115
+ selectionSet
48116
+ ],
48117
+ " "
48118
+ )
48119
+ },
48120
+ FragmentDefinition: {
48121
+ leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
48122
+ // or removed in the future.
48123
+ `fragment ${name}${wrap("(", join$2(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join$2(directives, " "), " ")}` + selectionSet
48124
+ )
48125
+ },
48126
+ // Value
48127
+ IntValue: {
48128
+ leave: ({ value }) => value
48129
+ },
48130
+ FloatValue: {
48131
+ leave: ({ value }) => value
48132
+ },
48133
+ StringValue: {
48134
+ leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
48135
+ },
48136
+ BooleanValue: {
48137
+ leave: ({ value }) => value ? "true" : "false"
48138
+ },
48139
+ NullValue: {
48140
+ leave: () => "null"
48141
+ },
48142
+ EnumValue: {
48143
+ leave: ({ value }) => value
48144
+ },
48145
+ ListValue: {
48146
+ leave: ({ values }) => "[" + join$2(values, ", ") + "]"
48147
+ },
48148
+ ObjectValue: {
48149
+ leave: ({ fields }) => "{" + join$2(fields, ", ") + "}"
48150
+ },
48151
+ ObjectField: {
48152
+ leave: ({ name, value }) => name + ": " + value
48153
+ },
48154
+ // Directive
48155
+ Directive: {
48156
+ leave: ({ name, arguments: args }) => "@" + name + wrap("(", join$2(args, ", "), ")")
48157
+ },
48158
+ // Type
48159
+ NamedType: {
48160
+ leave: ({ name }) => name
48161
+ },
48162
+ ListType: {
48163
+ leave: ({ type }) => "[" + type + "]"
48164
+ },
48165
+ NonNullType: {
48166
+ leave: ({ type }) => type + "!"
48167
+ },
48168
+ // Type System Definitions
48169
+ SchemaDefinition: {
48170
+ leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join$2(["schema", join$2(directives, " "), block(operationTypes)], " ")
48171
+ },
48172
+ OperationTypeDefinition: {
48173
+ leave: ({ operation, type }) => operation + ": " + type
48174
+ },
48175
+ ScalarTypeDefinition: {
48176
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join$2(["scalar", name, join$2(directives, " ")], " ")
48177
+ },
48178
+ ObjectTypeDefinition: {
48179
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join$2(
48180
+ [
48181
+ "type",
48182
+ name,
48183
+ wrap("implements ", join$2(interfaces, " & ")),
48184
+ join$2(directives, " "),
48185
+ block(fields)
48186
+ ],
48187
+ " "
48188
+ )
48189
+ },
48190
+ FieldDefinition: {
48191
+ leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join$2(args, "\n")), "\n)") : wrap("(", join$2(args, ", "), ")")) + ": " + type + wrap(" ", join$2(directives, " "))
48192
+ },
48193
+ InputValueDefinition: {
48194
+ leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join$2(
48195
+ [name + ": " + type, wrap("= ", defaultValue), join$2(directives, " ")],
48196
+ " "
48197
+ )
48198
+ },
48199
+ InterfaceTypeDefinition: {
48200
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join$2(
48201
+ [
48202
+ "interface",
48203
+ name,
48204
+ wrap("implements ", join$2(interfaces, " & ")),
48205
+ join$2(directives, " "),
48206
+ block(fields)
48207
+ ],
48208
+ " "
48209
+ )
48210
+ },
48211
+ UnionTypeDefinition: {
48212
+ leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join$2(
48213
+ ["union", name, join$2(directives, " "), wrap("= ", join$2(types, " | "))],
48214
+ " "
48215
+ )
48216
+ },
48217
+ EnumTypeDefinition: {
48218
+ leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join$2(["enum", name, join$2(directives, " "), block(values)], " ")
48219
+ },
48220
+ EnumValueDefinition: {
48221
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join$2([name, join$2(directives, " ")], " ")
48222
+ },
48223
+ InputObjectTypeDefinition: {
48224
+ leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join$2(["input", name, join$2(directives, " "), block(fields)], " ")
48225
+ },
48226
+ DirectiveDefinition: {
48227
+ leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join$2(args, "\n")), "\n)") : wrap("(", join$2(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join$2(locations, " | ")
48228
+ },
48229
+ SchemaExtension: {
48230
+ leave: ({ directives, operationTypes }) => join$2(
48231
+ ["extend schema", join$2(directives, " "), block(operationTypes)],
48232
+ " "
48233
+ )
48234
+ },
48235
+ ScalarTypeExtension: {
48236
+ leave: ({ name, directives }) => join$2(["extend scalar", name, join$2(directives, " ")], " ")
48237
+ },
48238
+ ObjectTypeExtension: {
48239
+ leave: ({ name, interfaces, directives, fields }) => join$2(
48240
+ [
48241
+ "extend type",
48242
+ name,
48243
+ wrap("implements ", join$2(interfaces, " & ")),
48244
+ join$2(directives, " "),
48245
+ block(fields)
48246
+ ],
48247
+ " "
48248
+ )
48249
+ },
48250
+ InterfaceTypeExtension: {
48251
+ leave: ({ name, interfaces, directives, fields }) => join$2(
48252
+ [
48253
+ "extend interface",
48254
+ name,
48255
+ wrap("implements ", join$2(interfaces, " & ")),
48256
+ join$2(directives, " "),
48257
+ block(fields)
48258
+ ],
48259
+ " "
48260
+ )
48261
+ },
48262
+ UnionTypeExtension: {
48263
+ leave: ({ name, directives, types }) => join$2(
48264
+ [
48265
+ "extend union",
48266
+ name,
48267
+ join$2(directives, " "),
48268
+ wrap("= ", join$2(types, " | "))
48269
+ ],
48270
+ " "
48271
+ )
48272
+ },
48273
+ EnumTypeExtension: {
48274
+ leave: ({ name, directives, values }) => join$2(["extend enum", name, join$2(directives, " "), block(values)], " ")
48275
+ },
48276
+ InputObjectTypeExtension: {
48277
+ leave: ({ name, directives, fields }) => join$2(["extend input", name, join$2(directives, " "), block(fields)], " ")
48278
+ }
48279
+ };
48280
+ function join$2(maybeArray, separator = "") {
48281
+ var _maybeArray$filter$jo;
48282
+ 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 : "";
48283
+ }
48284
+ function block(array) {
48285
+ return wrap("{\n", indent(join$2(array, "\n")), "\n}");
48286
+ }
48287
+ function wrap(start, maybeString, end = "") {
48288
+ return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
48289
+ }
48290
+ function indent(str) {
48291
+ return wrap(" ", str.replace(/\n/g, "\n "));
48292
+ }
48293
+ function hasMultilineItems(maybeArray) {
48294
+ var _maybeArray$some;
48295
+ return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
48296
+ }
48297
+ const referenceMap = /* @__PURE__ */ new WeakMap();
48298
+ const astResolver = function(astReference) {
48299
+ return referenceMap.get(astReference);
48300
+ };
48301
+ function findExecutableOperation$2(document, operationName) {
48302
+ const operations = document.definitions.filter(
48303
+ (def) => def.kind === Kind$2.OPERATION_DEFINITION
48304
+ );
48305
+ if (operations.length === 0) {
48306
+ return void 0;
48307
+ }
48308
+ if (operations.length === 1 && !operationName) {
48309
+ return operations[0];
48310
+ }
48311
+ if (operationName) {
48312
+ return operations.find((op) => {
48313
+ var _a;
48314
+ return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
48315
+ });
48316
+ }
48317
+ return void 0;
48318
+ }
48319
+ function validateGraphQLOperations(config, options) {
48320
+ const executableOperation = findExecutableOperation$2(config.query, config.operationName);
48321
+ if (executableOperation) {
48322
+ const operationType = executableOperation.operation;
48323
+ if (!options.acceptedOperations.includes(operationType)) {
48324
+ const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
48325
+ throw new Error(
48326
+ `${operationTypeCapitalized} operations are not supported in this context`
48327
+ );
48328
+ }
48329
+ }
48330
+ }
48331
+ function resolveAst(ast) {
48332
+ if (ast === null || ast === void 0) {
48333
+ return;
48334
+ }
48335
+ const result = astResolver(ast);
48336
+ if (result === void 0) {
48337
+ throw new Error("Could not resolve AST. Did you parse the query with gql?");
48338
+ }
48339
+ return result;
48340
+ }
48341
+ function wrapConfigAndVerify(config, options) {
48342
+ if (config == null ? void 0 : config.query) {
48343
+ config = { ...config, query: resolveAst(config.query) };
48344
+ if (config.query === void 0) {
48345
+ throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
48346
+ }
48347
+ validateGraphQLOperations(config, {
48348
+ acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
48349
+ });
48350
+ }
48351
+ return config;
48352
+ }
48353
+
47404
48354
  var productConsumedSideEffects = {
47405
48355
  isOpen: function (e) {
47406
48356
  return e.fallback;
@@ -47425,7 +48375,7 @@
47425
48375
 
47426
48376
 
47427
48377
  const { parse: parse$7, stringify: stringify$7 } = JSON;
47428
- const { join: join$2, push: push$2, unshift } = Array.prototype;
48378
+ const { join: join$1, push: push$2, unshift } = Array.prototype;
47429
48379
  const { isArray: isArray$5 } = Array;
47430
48380
  const { entries: entries$4, keys: keys$6 } = Object;
47431
48381
 
@@ -47559,14 +48509,14 @@
47559
48509
  const { fields, optionalFields } = params;
47560
48510
  const queryString = [];
47561
48511
  if (fields !== undefined && fields.length > 0) {
47562
- const fieldString = join$2.call(fields, ',');
48512
+ const fieldString = join$1.call(fields, ',');
47563
48513
  push$2.call(queryString, `fields=${encodeURIComponent(fieldString)}`);
47564
48514
  }
47565
48515
  if (optionalFields !== undefined && optionalFields.length > 0) {
47566
- const optionalFieldString = join$2.call(optionalFields, ',');
48516
+ const optionalFieldString = join$1.call(optionalFields, ',');
47567
48517
  push$2.call(queryString, `optionalFields=${encodeURIComponent(optionalFieldString)}`);
47568
48518
  }
47569
- return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$2.call(queryString, '&')}`;
48519
+ return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$1.call(queryString, '&')}`;
47570
48520
  }
47571
48521
  function buildGetRecordByFieldsCompositeRequest(resourceRequest, recordsCompositeRequest) {
47572
48522
  const { fieldsArray, optionalFieldsArray, fieldsLength, optionalFieldsLength } = recordsCompositeRequest;
@@ -60521,10 +61471,36 @@
60521
61471
  if (obj_fields_prop_union3_error != null) {
60522
61472
  obj_fields_prop_union3 = obj_fields_prop_union3_error.message;
60523
61473
  }
61474
+ let obj_fields_prop_union4 = null;
61475
+ const obj_fields_prop_union4_error = (() => {
61476
+ if (!ArrayIsArray$2(obj_fields_prop)) {
61477
+ return new TypeError('Expected "array" but received "' +
61478
+ typeof obj_fields_prop +
61479
+ '" (at "' +
61480
+ path_fields_prop +
61481
+ '")');
61482
+ }
61483
+ for (let j = 0; j < obj_fields_prop.length; j++) {
61484
+ const obj_fields_prop_item = obj_fields_prop[j];
61485
+ const path_fields_prop_item = path_fields_prop + '[' + j + ']';
61486
+ if (typeof obj_fields_prop_item !== 'string') {
61487
+ return new TypeError('Expected "string" but received "' +
61488
+ typeof obj_fields_prop_item +
61489
+ '" (at "' +
61490
+ path_fields_prop_item +
61491
+ '")');
61492
+ }
61493
+ }
61494
+ })();
61495
+ // eslint-disable-next-line eqeqeq
61496
+ if (obj_fields_prop_union4_error != null) {
61497
+ obj_fields_prop_union4 = obj_fields_prop_union4_error.message;
61498
+ }
60524
61499
  if (obj_fields_prop_union0 &&
60525
61500
  obj_fields_prop_union1 &&
60526
61501
  obj_fields_prop_union2 &&
60527
- obj_fields_prop_union3) {
61502
+ obj_fields_prop_union3 &&
61503
+ obj_fields_prop_union4) {
60528
61504
  let message = 'Object doesn\'t match union (at "' + path_fields_prop + '")';
60529
61505
  message +=
60530
61506
  '\n' +
@@ -60550,6 +61526,12 @@
60550
61526
  .split('\n')
60551
61527
  .map((line) => '\t' + line)
60552
61528
  .join('\n');
61529
+ message +=
61530
+ '\n' +
61531
+ obj_fields_prop_union4
61532
+ .split('\n')
61533
+ .map((line) => '\t' + line)
61534
+ .join('\n');
60553
61535
  return new TypeError(message);
60554
61536
  }
60555
61537
  }
@@ -83293,18 +84275,34 @@
83293
84275
  async function batchRecordQuery(ids) {
83294
84276
  const varbinds = Array(ids.length).fill('?').join(',');
83295
84277
  const { rows } = await query(`select data from lds_data where key like 'UiApi::RecordRepresentation:%' and json_extract(data,'$.id') in (${varbinds})`, ids);
83296
- return ids.map((id) => {
83297
- let foundRow = null;
84278
+ if (graphqlRelationshipFieldsPerf.isOpen({ fallback: false })) {
84279
+ // old, non-performant logic fallback
84280
+ return ids.map((id) => {
84281
+ let foundRow = null;
84282
+ rows.forEach((row) => {
84283
+ if (!row[0])
84284
+ return null;
84285
+ const record = parse$5(row[0]);
84286
+ if (record.id === id) {
84287
+ foundRow = record;
84288
+ }
84289
+ });
84290
+ return foundRow;
84291
+ });
84292
+ }
84293
+ else {
84294
+ // DEFAULT PERFORMANT LOGIC - Use kill switch gate to revert
84295
+ // Build a map of id -> record (O(m) with single parse per record)
84296
+ const recordMap = new Map();
83298
84297
  rows.forEach((row) => {
83299
84298
  if (!row[0])
83300
- return null;
84299
+ return;
83301
84300
  const record = parse$5(row[0]);
83302
- if (record.id === id) {
83303
- foundRow = record;
83304
- }
84301
+ recordMap.set(record.id, record);
83305
84302
  });
83306
- return foundRow;
83307
- });
84303
+ // Map ids to records (O(n) lookup)
84304
+ return ids.map((id) => recordMap.get(id) || null);
84305
+ }
83308
84306
  }
83309
84307
  return new DataLoader(batchRecordQuery);
83310
84308
  }
@@ -85587,7 +86585,7 @@
85587
86585
  /**
85588
86586
  * The set of allowed kind values for AST nodes.
85589
86587
  */
85590
- var Kind$1$1 = Object.freeze({
86588
+ var Kind$1 = Object.freeze({
85591
86589
  // Name
85592
86590
  NAME: 'Name',
85593
86591
  // Document
@@ -85783,7 +86781,7 @@
85783
86781
  * @internal
85784
86782
  */
85785
86783
 
85786
- function isNode$1(maybeNode) {
86784
+ function isNode(maybeNode) {
85787
86785
  return maybeNode != null && typeof maybeNode.kind === 'string';
85788
86786
  }
85789
86787
  /**
@@ -85791,17 +86789,17 @@
85791
86789
  */
85792
86790
 
85793
86791
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
85794
- var MAX_ARRAY_LENGTH$1 = 10;
85795
- var MAX_RECURSIVE_DEPTH$1 = 2;
86792
+ var MAX_ARRAY_LENGTH = 10;
86793
+ var MAX_RECURSIVE_DEPTH = 2;
85796
86794
  /**
85797
86795
  * Used to print values in error messages.
85798
86796
  */
85799
86797
 
85800
- function inspect$1(value) {
85801
- return formatValue$1(value, []);
86798
+ function inspect(value) {
86799
+ return formatValue(value, []);
85802
86800
  }
85803
86801
 
85804
- function formatValue$1(value, seenValues) {
86802
+ function formatValue(value, seenValues) {
85805
86803
  switch (_typeof(value)) {
85806
86804
  case 'string':
85807
86805
  return JSON.stringify(value);
@@ -85814,14 +86812,14 @@
85814
86812
  return 'null';
85815
86813
  }
85816
86814
 
85817
- return formatObjectValue$1(value, seenValues);
86815
+ return formatObjectValue(value, seenValues);
85818
86816
 
85819
86817
  default:
85820
86818
  return String(value);
85821
86819
  }
85822
86820
  }
85823
86821
 
85824
- function formatObjectValue$1(value, previouslySeenValues) {
86822
+ function formatObjectValue(value, previouslySeenValues) {
85825
86823
  if (previouslySeenValues.indexOf(value) !== -1) {
85826
86824
  return '[Circular]';
85827
86825
  }
@@ -85833,48 +86831,48 @@
85833
86831
  var customValue = customInspectFn.call(value); // check for infinite recursion
85834
86832
 
85835
86833
  if (customValue !== value) {
85836
- return typeof customValue === 'string' ? customValue : formatValue$1(customValue, seenValues);
86834
+ return typeof customValue === 'string' ? customValue : formatValue(customValue, seenValues);
85837
86835
  }
85838
86836
  } else if (Array.isArray(value)) {
85839
- return formatArray$1(value, seenValues);
86837
+ return formatArray(value, seenValues);
85840
86838
  }
85841
86839
 
85842
- return formatObject$1(value, seenValues);
86840
+ return formatObject(value, seenValues);
85843
86841
  }
85844
86842
 
85845
- function formatObject$1(object, seenValues) {
86843
+ function formatObject(object, seenValues) {
85846
86844
  var keys = Object.keys(object);
85847
86845
 
85848
86846
  if (keys.length === 0) {
85849
86847
  return '{}';
85850
86848
  }
85851
86849
 
85852
- if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
85853
- return '[' + getObjectTag$1(object) + ']';
86850
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
86851
+ return '[' + getObjectTag(object) + ']';
85854
86852
  }
85855
86853
 
85856
86854
  var properties = keys.map(function (key) {
85857
- var value = formatValue$1(object[key], seenValues);
86855
+ var value = formatValue(object[key], seenValues);
85858
86856
  return key + ': ' + value;
85859
86857
  });
85860
86858
  return '{ ' + properties.join(', ') + ' }';
85861
86859
  }
85862
86860
 
85863
- function formatArray$1(array, seenValues) {
86861
+ function formatArray(array, seenValues) {
85864
86862
  if (array.length === 0) {
85865
86863
  return '[]';
85866
86864
  }
85867
86865
 
85868
- if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
86866
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
85869
86867
  return '[Array]';
85870
86868
  }
85871
86869
 
85872
- var len = Math.min(MAX_ARRAY_LENGTH$1, array.length);
86870
+ var len = Math.min(MAX_ARRAY_LENGTH, array.length);
85873
86871
  var remaining = array.length - len;
85874
86872
  var items = [];
85875
86873
 
85876
86874
  for (var i = 0; i < len; ++i) {
85877
- items.push(formatValue$1(array[i], seenValues));
86875
+ items.push(formatValue(array[i], seenValues));
85878
86876
  }
85879
86877
 
85880
86878
  if (remaining === 1) {
@@ -85898,7 +86896,7 @@
85898
86896
  }
85899
86897
  }
85900
86898
 
85901
- function getObjectTag$1(object) {
86899
+ function getObjectTag(object) {
85902
86900
  var tag = Object.prototype.toString.call(object).replace(/^\[object /, '').replace(/]$/, '');
85903
86901
 
85904
86902
  if (tag === 'Object' && typeof object.constructor === 'function') {
@@ -85917,7 +86915,7 @@
85917
86915
  * relevant functions to be called during the visitor's traversal.
85918
86916
  */
85919
86917
 
85920
- var QueryDocumentKeys$1$1 = {
86918
+ var QueryDocumentKeys$1 = {
85921
86919
  Name: [],
85922
86920
  Document: ['definitions'],
85923
86921
  OperationDefinition: ['name', 'variableDefinitions', 'directives', 'selectionSet'],
@@ -85964,7 +86962,7 @@
85964
86962
  EnumTypeExtension: ['name', 'directives', 'values'],
85965
86963
  InputObjectTypeExtension: ['name', 'directives', 'fields']
85966
86964
  };
85967
- var BREAK$1 = Object.freeze({});
86965
+ var BREAK = Object.freeze({});
85968
86966
  /**
85969
86967
  * visit() will walk through an AST using a depth-first traversal, calling
85970
86968
  * the visitor's enter function at each node in the traversal, and calling the
@@ -86052,8 +87050,8 @@
86052
87050
  * })
86053
87051
  */
86054
87052
 
86055
- function visit$1(root, visitor) {
86056
- var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys$1$1;
87053
+ function visit(root, visitor) {
87054
+ var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys$1;
86057
87055
 
86058
87056
  /* eslint-disable no-undef-init */
86059
87057
  var stack = undefined;
@@ -86133,8 +87131,8 @@
86133
87131
  var result = void 0;
86134
87132
 
86135
87133
  if (!Array.isArray(node)) {
86136
- if (!isNode$1(node)) {
86137
- throw new Error("Invalid AST Node: ".concat(inspect$1(node), "."));
87134
+ if (!isNode(node)) {
87135
+ throw new Error("Invalid AST Node: ".concat(inspect(node), "."));
86138
87136
  }
86139
87137
 
86140
87138
  var visitFn = getVisitFn(visitor, node.kind, isLeaving);
@@ -86142,7 +87140,7 @@
86142
87140
  if (visitFn) {
86143
87141
  result = visitFn.call(visitor, node, key, parent, path, ancestors);
86144
87142
 
86145
- if (result === BREAK$1) {
87143
+ if (result === BREAK) {
86146
87144
  break;
86147
87145
  }
86148
87146
 
@@ -86155,7 +87153,7 @@
86155
87153
  edits.push([key, result]);
86156
87154
 
86157
87155
  if (!isLeaving) {
86158
- if (isNode$1(result)) {
87156
+ if (isNode(result)) {
86159
87157
  node = result;
86160
87158
  } else {
86161
87159
  path.pop();
@@ -86331,7 +87329,7 @@
86331
87329
  function selectionIncludesHasNextPage(selections, fragments) {
86332
87330
  for (let selection of selections) {
86333
87331
  switch (selection.kind) {
86334
- case Kind$1$1.FIELD: {
87332
+ case Kind$1.FIELD: {
86335
87333
  if (selection.name.value === 'pageInfo') {
86336
87334
  if (!selection.selectionSet)
86337
87335
  continue;
@@ -86342,7 +87340,7 @@
86342
87340
  }
86343
87341
  break;
86344
87342
  }
86345
- case Kind$1$1.FRAGMENT_SPREAD: {
87343
+ case Kind$1.FRAGMENT_SPREAD: {
86346
87344
  let fragment = fragments[selection.name.value];
86347
87345
  if (!fragment)
86348
87346
  return false;
@@ -86351,7 +87349,7 @@
86351
87349
  }
86352
87350
  break;
86353
87351
  }
86354
- case Kind$1$1.INLINE_FRAGMENT:
87352
+ case Kind$1.INLINE_FRAGMENT:
86355
87353
  if (selectionIncludesHasNextPage(selection.selectionSet.selections, fragments)) {
86356
87354
  return true;
86357
87355
  }
@@ -89466,7 +90464,7 @@
89466
90464
  }) {
89467
90465
  const { maxFieldCount, maxRecordLimit, singleRecordField, maxFieldSize } = enforcedLimits;
89468
90466
  const fieldsWithDataType = findFieldTypeInObjectInfo(objectInfos, singleRecordField);
89469
- const documentNode = visit$1(ast, {
90467
+ const documentNode = visit(ast, {
89470
90468
  Field(node) {
89471
90469
  // is it a record query?
89472
90470
  if (!isRecordQuery(node)) {
@@ -89516,7 +90514,7 @@
89516
90514
  return {
89517
90515
  ...argument,
89518
90516
  value: {
89519
- kind: Kind$1$1.INT,
90517
+ kind: Kind$1.INT,
89520
90518
  value: recordLimit,
89521
90519
  },
89522
90520
  };
@@ -90146,7 +91144,7 @@
90146
91144
 
90147
91145
  const { keys: keys$2$1, create: create$2$1, assign: assign$1$1, entries: entries$2 } = Object;
90148
91146
  const { stringify: stringify$4, parse: parse$4 } = JSON;
90149
- const { push: push$3, join: join$1, slice } = Array.prototype;
91147
+ const { push: push$3, join, slice } = Array.prototype;
90150
91148
  const { isArray: isArray$2$1, from } = Array;
90151
91149
 
90152
91150
  function ldsParamsToString(params) {
@@ -90327,10 +91325,10 @@
90327
91325
  fields.forEach(this.addField, this);
90328
91326
  }
90329
91327
  toQueryParameterValue() {
90330
- const joinedFields = join$1.call(Object.keys(this.fields), SEPARATOR_BETWEEN_FIELDS);
91328
+ const joinedFields = join.call(Object.keys(this.fields), SEPARATOR_BETWEEN_FIELDS);
90331
91329
  return this.isUnScoped()
90332
91330
  ? joinedFields
90333
- : join$1.call([this.scope, joinedFields], SEPARATOR_BETWEEN_SCOPE_AND_FIELDS);
91331
+ : join.call([this.scope, joinedFields], SEPARATOR_BETWEEN_SCOPE_AND_FIELDS);
90334
91332
  }
90335
91333
  toQueryParams() {
90336
91334
  return this.isUnScoped() ? Object.keys(this.fields) : this.toQueryParameterValue();
@@ -90398,7 +91396,7 @@
90398
91396
  if (chunk !== undefined)
90399
91397
  result.push(chunk);
90400
91398
  }
90401
- return join$1.call(result, SEPARATOR_BETWEEN_SCOPES);
91399
+ return join.call(result, SEPARATOR_BETWEEN_SCOPES);
90402
91400
  }
90403
91401
  /**
90404
91402
  * split the ScopedFields into multiple ScopedFields
@@ -90575,7 +91573,7 @@
90575
91573
  queryString.push(`${key}=${isArray$2$1(value) ? value.join(',') : value}`);
90576
91574
  }
90577
91575
  }
90578
- return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$1.call(queryString, '&')}`;
91576
+ return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join.call(queryString, '&')}`;
90579
91577
  }
90580
91578
  function shouldUseAggregateUiForFields(fieldsArray, optionalFieldsArray, maxLengthPerChunk) {
90581
91579
  return fieldsArray.length + optionalFieldsArray.length >= maxLengthPerChunk;
@@ -95589,7 +96587,12 @@
95589
96587
  this.coerceAuraErrors
95590
96588
  );
95591
96589
  } else if (this.shouldUseFetch()) {
95592
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
96590
+ const params = this.fetchParams;
96591
+ try {
96592
+ return this.convertFetchResponseToData(this.services.fetch(...params));
96593
+ } catch (reason) {
96594
+ return resolvedPromiseLike$2(err$1(toError(reason)));
96595
+ }
95593
96596
  }
95594
96597
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
95595
96598
  }
@@ -96187,7 +97190,12 @@
96187
97190
  (errs) => this.coerceAuraErrors(errs)
96188
97191
  );
96189
97192
  } else if (this.shouldUseFetch()) {
96190
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
97193
+ const params = this.fetchParams;
97194
+ try {
97195
+ return this.convertFetchResponseToData(this.services.fetch(...params));
97196
+ } catch (reason) {
97197
+ return resolvedPromiseLike$2(err$1(toError(reason)));
97198
+ }
96191
97199
  }
96192
97200
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
96193
97201
  }
@@ -96326,7 +97334,12 @@
96326
97334
  (errs) => this.coerceAuraErrors(errs)
96327
97335
  );
96328
97336
  } else if (this.shouldUseFetch()) {
96329
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
97337
+ const params = this.fetchParams;
97338
+ try {
97339
+ return this.convertFetchResponseToData(this.services.fetch(...params));
97340
+ } catch (reason) {
97341
+ return resolvedPromiseLike$2(err$1(toError(reason)));
97342
+ }
96330
97343
  }
96331
97344
  return resolvedPromiseLike$2(err$1(toError("Aura/Fetch network services not found")));
96332
97345
  }
@@ -96546,7 +97559,11 @@
96546
97559
  this.services = services;
96547
97560
  }
96548
97561
  fetch() {
96549
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
97562
+ try {
97563
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
97564
+ } catch (reason) {
97565
+ return resolvedPromiseLike$2(err$1(toError(reason)));
97566
+ }
96550
97567
  }
96551
97568
  async coerceError(errorResponse) {
96552
97569
  return toError(errorResponse.statusText);
@@ -96610,7 +97627,11 @@
96610
97627
  return this.fetch();
96611
97628
  }
96612
97629
  fetch() {
96613
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
97630
+ try {
97631
+ return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
97632
+ } catch (reason) {
97633
+ return resolvedPromiseLike$2(err$1(toError(reason)));
97634
+ }
96614
97635
  }
96615
97636
  async coerceError(errorResponse) {
96616
97637
  return toError(errorResponse.statusText);
@@ -97087,9 +98108,13 @@
97087
98108
  }
97088
98109
  get expiredChecks() {
97089
98110
  return [
97090
- (cacheControlMetadata) => cacheControlMetadata.type === "no-store"
98111
+ ...super.expiredChecks,
98112
+ (cacheControlMetadata) => cacheControlMetadata.type === "no-cache"
97091
98113
  ];
97092
98114
  }
98115
+ // Note: If we add support for `stale-while-revalidate` in the future, we may
98116
+ // need to further override expiredChecks to allow stale entries that are within the
98117
+ // stale-while-revalidate window to be returned for only-if-cached requests.
97093
98118
  collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
97094
98119
  if (this.services.instrumentation) {
97095
98120
  const meter = this.services.instrumentation.metrics.getMeter("onestore");
@@ -97611,7 +98636,7 @@
97611
98636
  },
97612
98637
  };
97613
98638
  }
97614
- // version: 1.404.0-dev1-9582436c8f
98639
+ // version: 1.404.0-dev10-1e49deeb66
97615
98640
 
97616
98641
  /**
97617
98642
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -97637,908 +98662,14 @@
97637
98662
  },
97638
98663
  };
97639
98664
  }
97640
- // version: 1.404.0-dev1-9582436c8f
98665
+ // version: 1.404.0-dev10-1e49deeb66
97641
98666
 
97642
98667
  /*!
97643
98668
  * Copyright (c) 2022, Salesforce, Inc.,
97644
98669
  * All rights reserved.
97645
98670
  * For full license text, see the LICENSE.txt file
97646
98671
  */
97647
- function devAssert(condition, message) {
97648
- const booleanCondition = Boolean(condition);
97649
- if (!booleanCondition) {
97650
- throw new Error(message);
97651
- }
97652
- }
97653
- const MAX_ARRAY_LENGTH = 10;
97654
- const MAX_RECURSIVE_DEPTH = 2;
97655
- function inspect(value) {
97656
- return formatValue(value, []);
97657
- }
97658
- function formatValue(value, seenValues) {
97659
- switch (typeof value) {
97660
- case "string":
97661
- return JSON.stringify(value);
97662
- case "function":
97663
- return value.name ? `[function ${value.name}]` : "[function]";
97664
- case "object":
97665
- return formatObjectValue(value, seenValues);
97666
- default:
97667
- return String(value);
97668
- }
97669
- }
97670
- function formatObjectValue(value, previouslySeenValues) {
97671
- if (value === null) {
97672
- return "null";
97673
- }
97674
- if (previouslySeenValues.includes(value)) {
97675
- return "[Circular]";
97676
- }
97677
- const seenValues = [...previouslySeenValues, value];
97678
- if (isJSONable(value)) {
97679
- const jsonValue = value.toJSON();
97680
- if (jsonValue !== value) {
97681
- return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
97682
- }
97683
- } else if (Array.isArray(value)) {
97684
- return formatArray(value, seenValues);
97685
- }
97686
- return formatObject(value, seenValues);
97687
- }
97688
- function isJSONable(value) {
97689
- return typeof value.toJSON === "function";
97690
- }
97691
- function formatObject(object, seenValues) {
97692
- const entries = Object.entries(object);
97693
- if (entries.length === 0) {
97694
- return "{}";
97695
- }
97696
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
97697
- return "[" + getObjectTag(object) + "]";
97698
- }
97699
- const properties = entries.map(
97700
- ([key, value]) => key + ": " + formatValue(value, seenValues)
97701
- );
97702
- return "{ " + properties.join(", ") + " }";
97703
- }
97704
- function formatArray(array, seenValues) {
97705
- if (array.length === 0) {
97706
- return "[]";
97707
- }
97708
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
97709
- return "[Array]";
97710
- }
97711
- const len = Math.min(MAX_ARRAY_LENGTH, array.length);
97712
- const remaining = array.length - len;
97713
- const items = [];
97714
- for (let i = 0; i < len; ++i) {
97715
- items.push(formatValue(array[i], seenValues));
97716
- }
97717
- if (remaining === 1) {
97718
- items.push("... 1 more item");
97719
- } else if (remaining > 1) {
97720
- items.push(`... ${remaining} more items`);
97721
- }
97722
- return "[" + items.join(", ") + "]";
97723
- }
97724
- function getObjectTag(object) {
97725
- const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
97726
- if (tag === "Object" && typeof object.constructor === "function") {
97727
- const name = object.constructor.name;
97728
- if (typeof name === "string" && name !== "") {
97729
- return name;
97730
- }
97731
- }
97732
- return tag;
97733
- }
97734
- var Kind$2;
97735
- (function(Kind2) {
97736
- Kind2["NAME"] = "Name";
97737
- Kind2["DOCUMENT"] = "Document";
97738
- Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
97739
- Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
97740
- Kind2["SELECTION_SET"] = "SelectionSet";
97741
- Kind2["FIELD"] = "Field";
97742
- Kind2["ARGUMENT"] = "Argument";
97743
- Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
97744
- Kind2["INLINE_FRAGMENT"] = "InlineFragment";
97745
- Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
97746
- Kind2["VARIABLE"] = "Variable";
97747
- Kind2["INT"] = "IntValue";
97748
- Kind2["FLOAT"] = "FloatValue";
97749
- Kind2["STRING"] = "StringValue";
97750
- Kind2["BOOLEAN"] = "BooleanValue";
97751
- Kind2["NULL"] = "NullValue";
97752
- Kind2["ENUM"] = "EnumValue";
97753
- Kind2["LIST"] = "ListValue";
97754
- Kind2["OBJECT"] = "ObjectValue";
97755
- Kind2["OBJECT_FIELD"] = "ObjectField";
97756
- Kind2["DIRECTIVE"] = "Directive";
97757
- Kind2["NAMED_TYPE"] = "NamedType";
97758
- Kind2["LIST_TYPE"] = "ListType";
97759
- Kind2["NON_NULL_TYPE"] = "NonNullType";
97760
- Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
97761
- Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
97762
- Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
97763
- Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
97764
- Kind2["FIELD_DEFINITION"] = "FieldDefinition";
97765
- Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
97766
- Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
97767
- Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
97768
- Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
97769
- Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
97770
- Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
97771
- Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
97772
- Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
97773
- Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
97774
- Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
97775
- Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
97776
- Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
97777
- Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
97778
- Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
97779
- })(Kind$2 || (Kind$2 = {}));
97780
- var TokenKind$2;
97781
- (function(TokenKind2) {
97782
- TokenKind2["SOF"] = "<SOF>";
97783
- TokenKind2["EOF"] = "<EOF>";
97784
- TokenKind2["BANG"] = "!";
97785
- TokenKind2["DOLLAR"] = "$";
97786
- TokenKind2["AMP"] = "&";
97787
- TokenKind2["PAREN_L"] = "(";
97788
- TokenKind2["PAREN_R"] = ")";
97789
- TokenKind2["SPREAD"] = "...";
97790
- TokenKind2["COLON"] = ":";
97791
- TokenKind2["EQUALS"] = "=";
97792
- TokenKind2["AT"] = "@";
97793
- TokenKind2["BRACKET_L"] = "[";
97794
- TokenKind2["BRACKET_R"] = "]";
97795
- TokenKind2["BRACE_L"] = "{";
97796
- TokenKind2["PIPE"] = "|";
97797
- TokenKind2["BRACE_R"] = "}";
97798
- TokenKind2["NAME"] = "Name";
97799
- TokenKind2["INT"] = "Int";
97800
- TokenKind2["FLOAT"] = "Float";
97801
- TokenKind2["STRING"] = "String";
97802
- TokenKind2["BLOCK_STRING"] = "BlockString";
97803
- TokenKind2["COMMENT"] = "Comment";
97804
- })(TokenKind$2 || (TokenKind$2 = {}));
97805
- const QueryDocumentKeys$2 = {
97806
- Name: [],
97807
- Document: ["definitions"],
97808
- OperationDefinition: [
97809
- "name",
97810
- "variableDefinitions",
97811
- "directives",
97812
- "selectionSet"
97813
- ],
97814
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
97815
- Variable: ["name"],
97816
- SelectionSet: ["selections"],
97817
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
97818
- Argument: ["name", "value"],
97819
- FragmentSpread: ["name", "directives"],
97820
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
97821
- FragmentDefinition: [
97822
- "name",
97823
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
97824
- "variableDefinitions",
97825
- "typeCondition",
97826
- "directives",
97827
- "selectionSet"
97828
- ],
97829
- IntValue: [],
97830
- FloatValue: [],
97831
- StringValue: [],
97832
- BooleanValue: [],
97833
- NullValue: [],
97834
- EnumValue: [],
97835
- ListValue: ["values"],
97836
- ObjectValue: ["fields"],
97837
- ObjectField: ["name", "value"],
97838
- Directive: ["name", "arguments"],
97839
- NamedType: ["name"],
97840
- ListType: ["type"],
97841
- NonNullType: ["type"],
97842
- SchemaDefinition: ["description", "directives", "operationTypes"],
97843
- OperationTypeDefinition: ["type"],
97844
- ScalarTypeDefinition: ["description", "name", "directives"],
97845
- ObjectTypeDefinition: [
97846
- "description",
97847
- "name",
97848
- "interfaces",
97849
- "directives",
97850
- "fields"
97851
- ],
97852
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
97853
- InputValueDefinition: [
97854
- "description",
97855
- "name",
97856
- "type",
97857
- "defaultValue",
97858
- "directives"
97859
- ],
97860
- InterfaceTypeDefinition: [
97861
- "description",
97862
- "name",
97863
- "interfaces",
97864
- "directives",
97865
- "fields"
97866
- ],
97867
- UnionTypeDefinition: ["description", "name", "directives", "types"],
97868
- EnumTypeDefinition: ["description", "name", "directives", "values"],
97869
- EnumValueDefinition: ["description", "name", "directives"],
97870
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
97871
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
97872
- SchemaExtension: ["directives", "operationTypes"],
97873
- ScalarTypeExtension: ["name", "directives"],
97874
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
97875
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
97876
- UnionTypeExtension: ["name", "directives", "types"],
97877
- EnumTypeExtension: ["name", "directives", "values"],
97878
- InputObjectTypeExtension: ["name", "directives", "fields"]
97879
- };
97880
- const kindValues = new Set(Object.keys(QueryDocumentKeys$2));
97881
- function isNode(maybeNode) {
97882
- const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
97883
- return typeof maybeKind === "string" && kindValues.has(maybeKind);
97884
- }
97885
- var OperationTypeNode$2;
97886
- (function(OperationTypeNode2) {
97887
- OperationTypeNode2["QUERY"] = "query";
97888
- OperationTypeNode2["MUTATION"] = "mutation";
97889
- OperationTypeNode2["SUBSCRIPTION"] = "subscription";
97890
- })(OperationTypeNode$2 || (OperationTypeNode$2 = {}));
97891
- function isWhiteSpace(code) {
97892
- return code === 9 || code === 32;
97893
- }
97894
- function printBlockString(value, options) {
97895
- const escapedValue = value.replace(/"""/g, '\\"""');
97896
- const lines = escapedValue.split(/\r\n|[\n\r]/g);
97897
- const isSingleLine = lines.length === 1;
97898
- const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
97899
- const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
97900
- const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
97901
- const hasTrailingSlash = value.endsWith("\\");
97902
- const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
97903
- const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
97904
- (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
97905
- let result = "";
97906
- const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
97907
- if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
97908
- result += "\n";
97909
- }
97910
- result += escapedValue;
97911
- if (printAsMultipleLines || forceTrailingNewline) {
97912
- result += "\n";
97913
- }
97914
- return '"""' + result + '"""';
97915
- }
97916
- var DirectiveLocation$2;
97917
- (function(DirectiveLocation2) {
97918
- DirectiveLocation2["QUERY"] = "QUERY";
97919
- DirectiveLocation2["MUTATION"] = "MUTATION";
97920
- DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
97921
- DirectiveLocation2["FIELD"] = "FIELD";
97922
- DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
97923
- DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
97924
- DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
97925
- DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
97926
- DirectiveLocation2["SCHEMA"] = "SCHEMA";
97927
- DirectiveLocation2["SCALAR"] = "SCALAR";
97928
- DirectiveLocation2["OBJECT"] = "OBJECT";
97929
- DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
97930
- DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
97931
- DirectiveLocation2["INTERFACE"] = "INTERFACE";
97932
- DirectiveLocation2["UNION"] = "UNION";
97933
- DirectiveLocation2["ENUM"] = "ENUM";
97934
- DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
97935
- DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
97936
- DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
97937
- })(DirectiveLocation$2 || (DirectiveLocation$2 = {}));
97938
- function printString(str) {
97939
- return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
97940
- }
97941
- const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
97942
- function escapedReplacer(str) {
97943
- return escapeSequences[str.charCodeAt(0)];
97944
- }
97945
- const escapeSequences = [
97946
- "\\u0000",
97947
- "\\u0001",
97948
- "\\u0002",
97949
- "\\u0003",
97950
- "\\u0004",
97951
- "\\u0005",
97952
- "\\u0006",
97953
- "\\u0007",
97954
- "\\b",
97955
- "\\t",
97956
- "\\n",
97957
- "\\u000B",
97958
- "\\f",
97959
- "\\r",
97960
- "\\u000E",
97961
- "\\u000F",
97962
- "\\u0010",
97963
- "\\u0011",
97964
- "\\u0012",
97965
- "\\u0013",
97966
- "\\u0014",
97967
- "\\u0015",
97968
- "\\u0016",
97969
- "\\u0017",
97970
- "\\u0018",
97971
- "\\u0019",
97972
- "\\u001A",
97973
- "\\u001B",
97974
- "\\u001C",
97975
- "\\u001D",
97976
- "\\u001E",
97977
- "\\u001F",
97978
- "",
97979
- "",
97980
- '\\"',
97981
- "",
97982
- "",
97983
- "",
97984
- "",
97985
- "",
97986
- "",
97987
- "",
97988
- "",
97989
- "",
97990
- "",
97991
- "",
97992
- "",
97993
- "",
97994
- // 2F
97995
- "",
97996
- "",
97997
- "",
97998
- "",
97999
- "",
98000
- "",
98001
- "",
98002
- "",
98003
- "",
98004
- "",
98005
- "",
98006
- "",
98007
- "",
98008
- "",
98009
- "",
98010
- "",
98011
- // 3F
98012
- "",
98013
- "",
98014
- "",
98015
- "",
98016
- "",
98017
- "",
98018
- "",
98019
- "",
98020
- "",
98021
- "",
98022
- "",
98023
- "",
98024
- "",
98025
- "",
98026
- "",
98027
- "",
98028
- // 4F
98029
- "",
98030
- "",
98031
- "",
98032
- "",
98033
- "",
98034
- "",
98035
- "",
98036
- "",
98037
- "",
98038
- "",
98039
- "",
98040
- "",
98041
- "\\\\",
98042
- "",
98043
- "",
98044
- "",
98045
- // 5F
98046
- "",
98047
- "",
98048
- "",
98049
- "",
98050
- "",
98051
- "",
98052
- "",
98053
- "",
98054
- "",
98055
- "",
98056
- "",
98057
- "",
98058
- "",
98059
- "",
98060
- "",
98061
- "",
98062
- // 6F
98063
- "",
98064
- "",
98065
- "",
98066
- "",
98067
- "",
98068
- "",
98069
- "",
98070
- "",
98071
- "",
98072
- "",
98073
- "",
98074
- "",
98075
- "",
98076
- "",
98077
- "",
98078
- "\\u007F",
98079
- "\\u0080",
98080
- "\\u0081",
98081
- "\\u0082",
98082
- "\\u0083",
98083
- "\\u0084",
98084
- "\\u0085",
98085
- "\\u0086",
98086
- "\\u0087",
98087
- "\\u0088",
98088
- "\\u0089",
98089
- "\\u008A",
98090
- "\\u008B",
98091
- "\\u008C",
98092
- "\\u008D",
98093
- "\\u008E",
98094
- "\\u008F",
98095
- "\\u0090",
98096
- "\\u0091",
98097
- "\\u0092",
98098
- "\\u0093",
98099
- "\\u0094",
98100
- "\\u0095",
98101
- "\\u0096",
98102
- "\\u0097",
98103
- "\\u0098",
98104
- "\\u0099",
98105
- "\\u009A",
98106
- "\\u009B",
98107
- "\\u009C",
98108
- "\\u009D",
98109
- "\\u009E",
98110
- "\\u009F"
98111
- ];
98112
- const BREAK = Object.freeze({});
98113
- function visit(root, visitor, visitorKeys = QueryDocumentKeys$2) {
98114
- const enterLeaveMap = /* @__PURE__ */ new Map();
98115
- for (const kind of Object.values(Kind$2)) {
98116
- enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
98117
- }
98118
- let stack = void 0;
98119
- let inArray = Array.isArray(root);
98120
- let keys = [root];
98121
- let index = -1;
98122
- let edits = [];
98123
- let node = root;
98124
- let key = void 0;
98125
- let parent = void 0;
98126
- const path = [];
98127
- const ancestors = [];
98128
- do {
98129
- index++;
98130
- const isLeaving = index === keys.length;
98131
- const isEdited = isLeaving && edits.length !== 0;
98132
- if (isLeaving) {
98133
- key = ancestors.length === 0 ? void 0 : path[path.length - 1];
98134
- node = parent;
98135
- parent = ancestors.pop();
98136
- if (isEdited) {
98137
- if (inArray) {
98138
- node = node.slice();
98139
- let editOffset = 0;
98140
- for (const [editKey, editValue] of edits) {
98141
- const arrayKey = editKey - editOffset;
98142
- if (editValue === null) {
98143
- node.splice(arrayKey, 1);
98144
- editOffset++;
98145
- } else {
98146
- node[arrayKey] = editValue;
98147
- }
98148
- }
98149
- } else {
98150
- node = { ...node };
98151
- for (const [editKey, editValue] of edits) {
98152
- node[editKey] = editValue;
98153
- }
98154
- }
98155
- }
98156
- index = stack.index;
98157
- keys = stack.keys;
98158
- edits = stack.edits;
98159
- inArray = stack.inArray;
98160
- stack = stack.prev;
98161
- } else if (parent) {
98162
- key = inArray ? index : keys[index];
98163
- node = parent[key];
98164
- if (node === null || node === void 0) {
98165
- continue;
98166
- }
98167
- path.push(key);
98168
- }
98169
- let result;
98170
- if (!Array.isArray(node)) {
98171
- var _enterLeaveMap$get, _enterLeaveMap$get2;
98172
- isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
98173
- 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;
98174
- result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
98175
- if (result === BREAK) {
98176
- break;
98177
- }
98178
- if (result === false) {
98179
- if (!isLeaving) {
98180
- path.pop();
98181
- continue;
98182
- }
98183
- } else if (result !== void 0) {
98184
- edits.push([key, result]);
98185
- if (!isLeaving) {
98186
- if (isNode(result)) {
98187
- node = result;
98188
- } else {
98189
- path.pop();
98190
- continue;
98191
- }
98192
- }
98193
- }
98194
- }
98195
- if (result === void 0 && isEdited) {
98196
- edits.push([key, node]);
98197
- }
98198
- if (isLeaving) {
98199
- path.pop();
98200
- } else {
98201
- var _node$kind;
98202
- stack = {
98203
- inArray,
98204
- index,
98205
- keys,
98206
- edits,
98207
- prev: stack
98208
- };
98209
- inArray = Array.isArray(node);
98210
- keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
98211
- index = -1;
98212
- edits = [];
98213
- if (parent) {
98214
- ancestors.push(parent);
98215
- }
98216
- parent = node;
98217
- }
98218
- } while (stack !== void 0);
98219
- if (edits.length !== 0) {
98220
- return edits[edits.length - 1][1];
98221
- }
98222
- return root;
98223
- }
98224
- function getEnterLeaveForKind(visitor, kind) {
98225
- const kindVisitor = visitor[kind];
98226
- if (typeof kindVisitor === "object") {
98227
- return kindVisitor;
98228
- } else if (typeof kindVisitor === "function") {
98229
- return {
98230
- enter: kindVisitor,
98231
- leave: void 0
98232
- };
98233
- }
98234
- return {
98235
- enter: visitor.enter,
98236
- leave: visitor.leave
98237
- };
98238
- }
98239
- function print(ast) {
98240
- return visit(ast, printDocASTReducer);
98241
- }
98242
- const MAX_LINE_LENGTH = 80;
98243
- const printDocASTReducer = {
98244
- Name: {
98245
- leave: (node) => node.value
98246
- },
98247
- Variable: {
98248
- leave: (node) => "$" + node.name
98249
- },
98250
- // Document
98251
- Document: {
98252
- leave: (node) => join(node.definitions, "\n\n")
98253
- },
98254
- OperationDefinition: {
98255
- leave(node) {
98256
- const varDefs = wrap("(", join(node.variableDefinitions, ", "), ")");
98257
- const prefix = join(
98258
- [
98259
- node.operation,
98260
- join([node.name, varDefs]),
98261
- join(node.directives, " ")
98262
- ],
98263
- " "
98264
- );
98265
- return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
98266
- }
98267
- },
98268
- VariableDefinition: {
98269
- leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " "))
98270
- },
98271
- SelectionSet: {
98272
- leave: ({ selections }) => block(selections)
98273
- },
98274
- Field: {
98275
- leave({ alias, name, arguments: args, directives, selectionSet }) {
98276
- const prefix = wrap("", alias, ": ") + name;
98277
- let argsLine = prefix + wrap("(", join(args, ", "), ")");
98278
- if (argsLine.length > MAX_LINE_LENGTH) {
98279
- argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
98280
- }
98281
- return join([argsLine, join(directives, " "), selectionSet], " ");
98282
- }
98283
- },
98284
- Argument: {
98285
- leave: ({ name, value }) => name + ": " + value
98286
- },
98287
- // Fragments
98288
- FragmentSpread: {
98289
- leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
98290
- },
98291
- InlineFragment: {
98292
- leave: ({ typeCondition, directives, selectionSet }) => join(
98293
- [
98294
- "...",
98295
- wrap("on ", typeCondition),
98296
- join(directives, " "),
98297
- selectionSet
98298
- ],
98299
- " "
98300
- )
98301
- },
98302
- FragmentDefinition: {
98303
- leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
98304
- // or removed in the future.
98305
- `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
98306
- )
98307
- },
98308
- // Value
98309
- IntValue: {
98310
- leave: ({ value }) => value
98311
- },
98312
- FloatValue: {
98313
- leave: ({ value }) => value
98314
- },
98315
- StringValue: {
98316
- leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
98317
- },
98318
- BooleanValue: {
98319
- leave: ({ value }) => value ? "true" : "false"
98320
- },
98321
- NullValue: {
98322
- leave: () => "null"
98323
- },
98324
- EnumValue: {
98325
- leave: ({ value }) => value
98326
- },
98327
- ListValue: {
98328
- leave: ({ values }) => "[" + join(values, ", ") + "]"
98329
- },
98330
- ObjectValue: {
98331
- leave: ({ fields }) => "{" + join(fields, ", ") + "}"
98332
- },
98333
- ObjectField: {
98334
- leave: ({ name, value }) => name + ": " + value
98335
- },
98336
- // Directive
98337
- Directive: {
98338
- leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
98339
- },
98340
- // Type
98341
- NamedType: {
98342
- leave: ({ name }) => name
98343
- },
98344
- ListType: {
98345
- leave: ({ type }) => "[" + type + "]"
98346
- },
98347
- NonNullType: {
98348
- leave: ({ type }) => type + "!"
98349
- },
98350
- // Type System Definitions
98351
- SchemaDefinition: {
98352
- leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
98353
- },
98354
- OperationTypeDefinition: {
98355
- leave: ({ operation, type }) => operation + ": " + type
98356
- },
98357
- ScalarTypeDefinition: {
98358
- leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
98359
- },
98360
- ObjectTypeDefinition: {
98361
- leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
98362
- [
98363
- "type",
98364
- name,
98365
- wrap("implements ", join(interfaces, " & ")),
98366
- join(directives, " "),
98367
- block(fields)
98368
- ],
98369
- " "
98370
- )
98371
- },
98372
- FieldDefinition: {
98373
- 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, " "))
98374
- },
98375
- InputValueDefinition: {
98376
- leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join(
98377
- [name + ": " + type, wrap("= ", defaultValue), join(directives, " ")],
98378
- " "
98379
- )
98380
- },
98381
- InterfaceTypeDefinition: {
98382
- leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
98383
- [
98384
- "interface",
98385
- name,
98386
- wrap("implements ", join(interfaces, " & ")),
98387
- join(directives, " "),
98388
- block(fields)
98389
- ],
98390
- " "
98391
- )
98392
- },
98393
- UnionTypeDefinition: {
98394
- leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join(
98395
- ["union", name, join(directives, " "), wrap("= ", join(types, " | "))],
98396
- " "
98397
- )
98398
- },
98399
- EnumTypeDefinition: {
98400
- leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
98401
- },
98402
- EnumValueDefinition: {
98403
- leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
98404
- },
98405
- InputObjectTypeDefinition: {
98406
- leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
98407
- },
98408
- DirectiveDefinition: {
98409
- 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, " | ")
98410
- },
98411
- SchemaExtension: {
98412
- leave: ({ directives, operationTypes }) => join(
98413
- ["extend schema", join(directives, " "), block(operationTypes)],
98414
- " "
98415
- )
98416
- },
98417
- ScalarTypeExtension: {
98418
- leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
98419
- },
98420
- ObjectTypeExtension: {
98421
- leave: ({ name, interfaces, directives, fields }) => join(
98422
- [
98423
- "extend type",
98424
- name,
98425
- wrap("implements ", join(interfaces, " & ")),
98426
- join(directives, " "),
98427
- block(fields)
98428
- ],
98429
- " "
98430
- )
98431
- },
98432
- InterfaceTypeExtension: {
98433
- leave: ({ name, interfaces, directives, fields }) => join(
98434
- [
98435
- "extend interface",
98436
- name,
98437
- wrap("implements ", join(interfaces, " & ")),
98438
- join(directives, " "),
98439
- block(fields)
98440
- ],
98441
- " "
98442
- )
98443
- },
98444
- UnionTypeExtension: {
98445
- leave: ({ name, directives, types }) => join(
98446
- [
98447
- "extend union",
98448
- name,
98449
- join(directives, " "),
98450
- wrap("= ", join(types, " | "))
98451
- ],
98452
- " "
98453
- )
98454
- },
98455
- EnumTypeExtension: {
98456
- leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
98457
- },
98458
- InputObjectTypeExtension: {
98459
- leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
98460
- }
98461
- };
98462
- function join(maybeArray, separator = "") {
98463
- var _maybeArray$filter$jo;
98464
- 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 : "";
98465
- }
98466
- function block(array) {
98467
- return wrap("{\n", indent(join(array, "\n")), "\n}");
98468
- }
98469
- function wrap(start, maybeString, end = "") {
98470
- return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
98471
- }
98472
- function indent(str) {
98473
- return wrap(" ", str.replace(/\n/g, "\n "));
98474
- }
98475
- function hasMultilineItems(maybeArray) {
98476
- var _maybeArray$some;
98477
- return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
98478
- }
98479
- const referenceMap$1 = /* @__PURE__ */ new WeakMap();
98480
- const astResolver$1 = function(astReference) {
98481
- return referenceMap$1.get(astReference);
98482
- };
98483
- function findExecutableOperation$1(document, operationName) {
98484
- const operations = document.definitions.filter(
98485
- (def) => def.kind === Kind$2.OPERATION_DEFINITION
98486
- );
98487
- if (operations.length === 0) {
98488
- return void 0;
98489
- }
98490
- if (operations.length === 1 && !operationName) {
98491
- return operations[0];
98492
- }
98493
- if (operationName) {
98494
- return operations.find((op) => {
98495
- var _a;
98496
- return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
98497
- });
98498
- }
98499
- return void 0;
98500
- }
98501
- function validateGraphQLOperations(config, options) {
98502
- const executableOperation = findExecutableOperation$1(config.query, config.operationName);
98503
- if (executableOperation) {
98504
- const operationType = executableOperation.operation;
98505
- if (!options.acceptedOperations.includes(operationType)) {
98506
- const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
98507
- throw new Error(
98508
- `${operationTypeCapitalized} operations are not supported in this context`
98509
- );
98510
- }
98511
- }
98512
- }
98513
- function resolveAst$1(ast) {
98514
- if (ast === null || ast === void 0) {
98515
- return;
98516
- }
98517
- const result = astResolver$1(ast);
98518
- if (result === void 0) {
98519
- throw new Error("Could not resolve AST. Did you parse the query with gql?");
98520
- }
98521
- return result;
98522
- }
98523
- function wrapConfigAndVerify(config, options) {
98524
- if (config == null ? void 0 : config.query) {
98525
- config = { ...config, query: resolveAst$1(config.query) };
98526
- if (config.query === void 0) {
98527
- throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
98528
- }
98529
- validateGraphQLOperations(config, {
98530
- acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
98531
- });
98532
- }
98533
- return config;
98534
- }
98535
-
98536
- /*!
98537
- * Copyright (c) 2022, Salesforce, Inc.,
98538
- * All rights reserved.
98539
- * For full license text, see the LICENSE.txt file
98540
- */
98541
- function findExecutableOperation$2(input) {
98672
+ function findExecutableOperation$1(input) {
98542
98673
  const operations = input.query.definitions.filter(
98543
98674
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
98544
98675
  );
@@ -98561,7 +98692,7 @@
98561
98692
  return err$1(new Error("Multiple operations found in query, and no operation name provided"));
98562
98693
  }
98563
98694
  function buildGraphQLInputExtension$1(input) {
98564
- const operationResult = findExecutableOperation$2(input);
98695
+ const operationResult = findExecutableOperation$1(input);
98565
98696
  if (operationResult.isErr()) {
98566
98697
  return err$1(operationResult.error);
98567
98698
  }
@@ -98594,7 +98725,7 @@
98594
98725
  }
98595
98726
  };
98596
98727
  function addTypenameToDocument(doc) {
98597
- return visit(doc, {
98728
+ return visit$1(doc, {
98598
98729
  SelectionSet: {
98599
98730
  enter(node, _key, parent) {
98600
98731
  if (isOperationDefinition(parent)) {
@@ -98641,7 +98772,7 @@
98641
98772
  this.services = services;
98642
98773
  }
98643
98774
  get operationType() {
98644
- const operationResult = findExecutableOperation$2(this.config);
98775
+ const operationResult = findExecutableOperation$1(this.config);
98645
98776
  if (operationResult.isErr()) {
98646
98777
  return "mutation";
98647
98778
  }
@@ -98742,11 +98873,26 @@
98742
98873
  return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
98743
98874
  });
98744
98875
  } else if (this.shouldUseFetch()) {
98745
- return this.convertFetchResponseToData(
98746
- this.services.fetch(...this.originalFetchParams)
98747
- ).then((result) => {
98748
- return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
98749
- });
98876
+ const params = this.originalFetchParams;
98877
+ try {
98878
+ return this.convertFetchResponseToData(this.services.fetch(...params)).then(
98879
+ (result) => {
98880
+ return buildSubscribableResult$1(
98881
+ result,
98882
+ this.buildSubscribe(),
98883
+ () => this.refresh()
98884
+ );
98885
+ }
98886
+ );
98887
+ } catch (reason) {
98888
+ return resolvedPromiseLike$2(
98889
+ buildSubscribableResult$1(
98890
+ err$1(toError(reason)),
98891
+ this.buildSubscribe(),
98892
+ () => this.refresh()
98893
+ )
98894
+ );
98895
+ }
98750
98896
  }
98751
98897
  return resolvedPromiseLike$2(
98752
98898
  buildSubscribableResult$1(
@@ -98814,7 +98960,7 @@
98814
98960
  return this.documentRootType;
98815
98961
  }
98816
98962
  get operationType() {
98817
- const operationResult = findExecutableOperation$2(this.config);
98963
+ const operationResult = findExecutableOperation$1(this.config);
98818
98964
  if (operationResult.isErr()) {
98819
98965
  return "mutation";
98820
98966
  }
@@ -100020,7 +100166,7 @@
100020
100166
  }
100021
100167
  update(config, _context) {
100022
100168
  this.unsubscribe();
100023
- const resolvedQuery = resolveAst$1(config.query);
100169
+ const resolvedQuery = resolveAst(config.query);
100024
100170
  if (resolvedQuery) {
100025
100171
  validateGraphQLOperations(
100026
100172
  { query: resolvedQuery, operationName: config == null ? void 0 : config.operationName },
@@ -100061,7 +100207,12 @@
100061
100207
  * All rights reserved.
100062
100208
  * For full license text, see the LICENSE.txt file
100063
100209
  */
100064
- function buildServiceDescriptor$1(interceptors = { request: [], response: [], finally: [] }, retryService) {
100210
+ function buildServiceDescriptor$1(interceptors = {
100211
+ request: [],
100212
+ retry: void 0,
100213
+ response: [],
100214
+ finally: []
100215
+ }, retryService) {
100065
100216
  return {
100066
100217
  type: "fetch",
100067
100218
  version: "1.0",
@@ -100070,6 +100221,7 @@
100070
100221
  const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
100071
100222
  const {
100072
100223
  request: requestInterceptors = [],
100224
+ retry: retryInterceptor = void 0,
100073
100225
  response: responseInterceptors = [],
100074
100226
  finally: finallyInterceptors = []
100075
100227
  } = interceptors;
@@ -100078,10 +100230,14 @@
100078
100230
  resolvedPromiseLike$2(args)
100079
100231
  );
100080
100232
  return Promise.resolve(pending).then((args2) => {
100081
- if (retryService) {
100082
- return retryService.applyRetry(() => fetch(...args2));
100233
+ if (retryInterceptor) {
100234
+ return retryInterceptor(args2, retryService, context);
100235
+ } else {
100236
+ if (retryService) {
100237
+ return retryService.applyRetry(() => fetch(...args2));
100238
+ }
100239
+ return fetch(...args2);
100083
100240
  }
100084
- return fetch(...args2);
100085
100241
  }).then((response) => {
100086
100242
  return responseInterceptors.reduce(
100087
100243
  (previousPromise, interceptor) => previousPromise.then((response2) => interceptor(response2, context)),
@@ -101091,7 +101247,7 @@
101091
101247
  id: '@salesforce/lds-network-adapter',
101092
101248
  instrument: instrument$2,
101093
101249
  });
101094
- // version: 1.404.0-dev1-48073cfce6
101250
+ // version: 1.404.0-dev10-5a5eea9232
101095
101251
 
101096
101252
  const { create: create$3, keys: keys$3 } = Object;
101097
101253
  const { stringify, parse } = JSON;
@@ -101468,7 +101624,7 @@
101468
101624
  * All rights reserved.
101469
101625
  * For full license text, see the LICENSE.txt file
101470
101626
  */
101471
- var Kind$1;
101627
+ var Kind;
101472
101628
  (function(Kind2) {
101473
101629
  Kind2["NAME"] = "Name";
101474
101630
  Kind2["DOCUMENT"] = "Document";
@@ -101513,8 +101669,8 @@
101513
101669
  Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
101514
101670
  Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
101515
101671
  Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
101516
- })(Kind$1 || (Kind$1 = {}));
101517
- var TokenKind$1;
101672
+ })(Kind || (Kind = {}));
101673
+ var TokenKind;
101518
101674
  (function(TokenKind2) {
101519
101675
  TokenKind2["SOF"] = "<SOF>";
101520
101676
  TokenKind2["EOF"] = "<EOF>";
@@ -101538,8 +101694,8 @@
101538
101694
  TokenKind2["STRING"] = "String";
101539
101695
  TokenKind2["BLOCK_STRING"] = "BlockString";
101540
101696
  TokenKind2["COMMENT"] = "Comment";
101541
- })(TokenKind$1 || (TokenKind$1 = {}));
101542
- const QueryDocumentKeys$1 = {
101697
+ })(TokenKind || (TokenKind = {}));
101698
+ const QueryDocumentKeys = {
101543
101699
  Name: [],
101544
101700
  Document: ["definitions"],
101545
101701
  OperationDefinition: [
@@ -101614,14 +101770,14 @@
101614
101770
  EnumTypeExtension: ["name", "directives", "values"],
101615
101771
  InputObjectTypeExtension: ["name", "directives", "fields"]
101616
101772
  };
101617
- new Set(Object.keys(QueryDocumentKeys$1));
101618
- var OperationTypeNode$1;
101773
+ new Set(Object.keys(QueryDocumentKeys));
101774
+ var OperationTypeNode;
101619
101775
  (function(OperationTypeNode2) {
101620
101776
  OperationTypeNode2["QUERY"] = "query";
101621
101777
  OperationTypeNode2["MUTATION"] = "mutation";
101622
101778
  OperationTypeNode2["SUBSCRIPTION"] = "subscription";
101623
- })(OperationTypeNode$1 || (OperationTypeNode$1 = {}));
101624
- var DirectiveLocation$1;
101779
+ })(OperationTypeNode || (OperationTypeNode = {}));
101780
+ var DirectiveLocation;
101625
101781
  (function(DirectiveLocation2) {
101626
101782
  DirectiveLocation2["QUERY"] = "QUERY";
101627
101783
  DirectiveLocation2["MUTATION"] = "MUTATION";
@@ -101642,7 +101798,7 @@
101642
101798
  DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
101643
101799
  DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
101644
101800
  DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
101645
- })(DirectiveLocation$1 || (DirectiveLocation$1 = {}));
101801
+ })(DirectiveLocation || (DirectiveLocation = {}));
101646
101802
 
101647
101803
  /*!
101648
101804
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -101650,15 +101806,15 @@
101650
101806
  * For full license text, see the LICENSE.txt file
101651
101807
  */
101652
101808
  function extractValue(valueNode, variableDefinitions, expectedType) {
101653
- if (valueNode.kind === Kind$1.VARIABLE) {
101809
+ if (valueNode.kind === Kind.VARIABLE) {
101654
101810
  const variableResult = extractVariableValue(valueNode.name.value, variableDefinitions);
101655
101811
  if (variableResult.isErr()) {
101656
101812
  return variableResult;
101657
101813
  }
101658
101814
  return validateExpectedType(variableResult.value, expectedType);
101659
- } else if (valueNode.kind === Kind$1.NULL) {
101815
+ } else if (valueNode.kind === Kind.NULL) {
101660
101816
  return validateExpectedType(null, expectedType);
101661
- } else if (valueNode.kind === Kind$1.LIST) {
101817
+ } else if (valueNode.kind === Kind.LIST) {
101662
101818
  const values = [];
101663
101819
  for (const val of valueNode.values) {
101664
101820
  const extractedResult = extractValue(val, variableDefinitions);
@@ -101668,7 +101824,7 @@
101668
101824
  values.push(extractedResult.value);
101669
101825
  }
101670
101826
  return validateExpectedType(values, expectedType);
101671
- } else if (valueNode.kind === Kind$1.OBJECT) {
101827
+ } else if (valueNode.kind === Kind.OBJECT) {
101672
101828
  const value = {};
101673
101829
  for (const field of valueNode.fields) {
101674
101830
  const extractedResult = extractValue(field.value, variableDefinitions);
@@ -101678,10 +101834,10 @@
101678
101834
  value[field.name.value] = extractedResult.value;
101679
101835
  }
101680
101836
  return validateExpectedType(value, expectedType);
101681
- } else if (valueNode.kind === Kind$1.INT) {
101837
+ } else if (valueNode.kind === Kind.INT) {
101682
101838
  const value = parseInt(valueNode.value, 10);
101683
101839
  return validateExpectedType(value, expectedType);
101684
- } else if (valueNode.kind === Kind$1.FLOAT) {
101840
+ } else if (valueNode.kind === Kind.FLOAT) {
101685
101841
  const value = parseFloat(valueNode.value);
101686
101842
  return validateExpectedType(value, expectedType);
101687
101843
  } else {
@@ -101760,7 +101916,7 @@
101760
101916
  }
101761
101917
  function findExecutableOperation(input) {
101762
101918
  const operations = input.query.definitions.filter(
101763
- (def) => def.kind === Kind$1.OPERATION_DEFINITION
101919
+ (def) => def.kind === Kind.OPERATION_DEFINITION
101764
101920
  );
101765
101921
  if (operations.length === 0) {
101766
101922
  return err$3(new Error("No operations found in query"));
@@ -101816,7 +101972,7 @@
101816
101972
  const baseAliasedSelection = {
101817
101973
  ...newSelection,
101818
101974
  alias: {
101819
- kind: Kind$1.NAME,
101975
+ kind: Kind.NAME,
101820
101976
  value: baseInjectedAlias
101821
101977
  }
101822
101978
  };
@@ -101827,7 +101983,7 @@
101827
101983
  return {
101828
101984
  ...newSelection,
101829
101985
  alias: {
101830
- kind: Kind$1.NAME,
101986
+ kind: Kind.NAME,
101831
101987
  value: fieldName
101832
101988
  }
101833
101989
  };
@@ -101840,11 +101996,11 @@
101840
101996
  if (a.kind !== b.kind) {
101841
101997
  return false;
101842
101998
  }
101843
- if (a.kind === Kind$1.FIELD) {
101999
+ if (a.kind === Kind.FIELD) {
101844
102000
  const bField = b;
101845
102001
  return !!(a.name.value === bField.name.value) && !!(((_a = a.alias) == null ? void 0 : _a.value) === ((_b = bField.alias) == null ? void 0 : _b.value)) && argumentsEqual(a.arguments, bField.arguments) && selectionSetsEqual((_c = a.selectionSet) == null ? void 0 : _c.selections, (_d = bField.selectionSet) == null ? void 0 : _d.selections) && directivesEqual(a.directives, bField.directives);
101846
102002
  }
101847
- if (a.kind === Kind$1.FRAGMENT_SPREAD) {
102003
+ if (a.kind === Kind.FRAGMENT_SPREAD) {
101848
102004
  const bFragmentSpread = b;
101849
102005
  return a.name.value === bFragmentSpread.name.value && directivesEqual(a.directives, bFragmentSpread.directives);
101850
102006
  }
@@ -101856,23 +102012,23 @@
101856
102012
  return false;
101857
102013
  }
101858
102014
  switch (a.kind) {
101859
- case Kind$1.STRING:
101860
- case Kind$1.INT:
101861
- case Kind$1.FLOAT:
101862
- case Kind$1.BOOLEAN:
101863
- case Kind$1.ENUM:
102015
+ case Kind.STRING:
102016
+ case Kind.INT:
102017
+ case Kind.FLOAT:
102018
+ case Kind.BOOLEAN:
102019
+ case Kind.ENUM:
101864
102020
  return a.value === b.value;
101865
- case Kind$1.NULL:
102021
+ case Kind.NULL:
101866
102022
  return true;
101867
- case Kind$1.VARIABLE:
102023
+ case Kind.VARIABLE:
101868
102024
  return a.name.value === b.name.value;
101869
- case Kind$1.LIST:
102025
+ case Kind.LIST:
101870
102026
  const bList = b;
101871
102027
  if (a.values.length !== bList.values.length) {
101872
102028
  return false;
101873
102029
  }
101874
102030
  return a.values.every((val, index) => argumentValueEquals(val, bList.values[index]));
101875
- case Kind$1.OBJECT:
102031
+ case Kind.OBJECT:
101876
102032
  const bObject = b;
101877
102033
  if (a.fields.length !== bObject.fields.length) {
101878
102034
  return false;
@@ -101973,23 +102129,23 @@
101973
102129
  return ok$3(`${canonicalFieldName}::${stableJSONStringify$3({ args: formattedArguments })}`);
101974
102130
  }
101975
102131
  ({
101976
- kind: Kind$1.FIELD,
102132
+ kind: Kind.FIELD,
101977
102133
  name: {
101978
- kind: Kind$1.NAME,
102134
+ kind: Kind.NAME,
101979
102135
  value: "__typename"
101980
102136
  }
101981
102137
  });
101982
102138
  function isField(node) {
101983
- return node.kind === Kind$1.FIELD;
102139
+ return node.kind === Kind.FIELD;
101984
102140
  }
101985
102141
  function isFragmentSpread(node) {
101986
- return node.kind === Kind$1.FRAGMENT_SPREAD;
102142
+ return node.kind === Kind.FRAGMENT_SPREAD;
101987
102143
  }
101988
102144
  function isInlineFragment(node) {
101989
- return node.kind === Kind$1.INLINE_FRAGMENT;
102145
+ return node.kind === Kind.INLINE_FRAGMENT;
101990
102146
  }
101991
102147
  function isFragmentDefinition(node) {
101992
- return node.kind === Kind$1.FRAGMENT_DEFINITION;
102148
+ return node.kind === Kind.FRAGMENT_DEFINITION;
101993
102149
  }
101994
102150
  function extractIfArgument(directive, variables, directiveName) {
101995
102151
  var _a;
@@ -102296,9 +102452,9 @@
102296
102452
  }
102297
102453
  const newTypenameSelection = buildAugmentedFieldSelection(
102298
102454
  {
102299
- kind: Kind$1.FIELD,
102455
+ kind: Kind.FIELD,
102300
102456
  name: {
102301
- kind: Kind$1.NAME,
102457
+ kind: Kind.NAME,
102302
102458
  value: "__typename"
102303
102459
  }
102304
102460
  },
@@ -102325,7 +102481,7 @@
102325
102481
  {
102326
102482
  ...selection,
102327
102483
  selectionSet: {
102328
- kind: Kind$1.SELECTION_SET,
102484
+ kind: Kind.SELECTION_SET,
102329
102485
  selections: result.selections
102330
102486
  }
102331
102487
  }
@@ -102351,7 +102507,7 @@
102351
102507
  {
102352
102508
  ...fragment,
102353
102509
  selectionSet: {
102354
- kind: Kind$1.SELECTION_SET,
102510
+ kind: Kind.SELECTION_SET,
102355
102511
  selections: augmentedFragmentSelections.selections
102356
102512
  }
102357
102513
  }
@@ -102383,7 +102539,7 @@
102383
102539
  [fragment.name.value]: {
102384
102540
  ...fragment,
102385
102541
  selectionSet: {
102386
- kind: Kind$1.SELECTION_SET,
102542
+ kind: Kind.SELECTION_SET,
102387
102543
  selections: augmentedFragment.selections
102388
102544
  }
102389
102545
  }
@@ -102705,9 +102861,9 @@
102705
102861
  let augmentedFragments = result.fragments;
102706
102862
  const newSelection = buildAugmentedFieldSelection(
102707
102863
  {
102708
- kind: Kind$1.FIELD,
102864
+ kind: Kind.FIELD,
102709
102865
  name: {
102710
- kind: Kind$1.NAME,
102866
+ kind: Kind.NAME,
102711
102867
  value: this.idField
102712
102868
  }
102713
102869
  },
@@ -102775,7 +102931,7 @@
102775
102931
  buildKeyParams(input) {
102776
102932
  var _a;
102777
102933
  const idField = input.selections.find(
102778
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === this.idField
102934
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === this.idField
102779
102935
  );
102780
102936
  if (!idField) {
102781
102937
  throw new Error(`Id field ${this.idField} not found in selections`);
@@ -102837,7 +102993,7 @@
102837
102993
  }
102838
102994
  const operation = operationResult.value;
102839
102995
  const fragmentDefinitions = input.query.definitions.filter(
102840
- (def) => def.kind === Kind$1.FRAGMENT_DEFINITION
102996
+ (def) => def.kind === Kind.FRAGMENT_DEFINITION
102841
102997
  );
102842
102998
  const fragments = fragmentDefinitions.reduce(
102843
102999
  (acc, def) => {
@@ -102854,13 +103010,13 @@
102854
103010
  let augmentedFragments = result.fragments;
102855
103011
  const augmentedOperation = {
102856
103012
  ...operation,
102857
- selectionSet: { kind: Kind$1.SELECTION_SET, selections: augmentedOperationSelections }
103013
+ selectionSet: { kind: Kind.SELECTION_SET, selections: augmentedOperationSelections }
102858
103014
  };
102859
103015
  return ok$3({
102860
103016
  ...input.query,
102861
103017
  definitions: [
102862
- ...input.query.definitions.filter((def) => def.kind !== Kind$1.FRAGMENT_DEFINITION).map((def) => {
102863
- if (def.kind !== Kind$1.OPERATION_DEFINITION || def !== operation) {
103018
+ ...input.query.definitions.filter((def) => def.kind !== Kind.FRAGMENT_DEFINITION).map((def) => {
103019
+ if (def.kind !== Kind.OPERATION_DEFINITION || def !== operation) {
102864
103020
  return def;
102865
103021
  }
102866
103022
  return augmentedOperation;
@@ -102969,7 +103125,7 @@
102969
103125
  let augmentedFragments = { ...input.fragments };
102970
103126
  input.selections.forEach((selection) => {
102971
103127
  var _a;
102972
- if (selection.kind === Kind$1.FIELD) {
103128
+ if (selection.kind === Kind.FIELD) {
102973
103129
  if (Object.keys(this.fields).includes(selection.name.value)) {
102974
103130
  const field = this.fields[selection.name.value];
102975
103131
  const result2 = field.augmentSelections({
@@ -102978,7 +103134,7 @@
102978
103134
  });
102979
103135
  augmentedSelections.push({
102980
103136
  ...selection,
102981
- selectionSet: { kind: Kind$1.SELECTION_SET, selections: result2.selections }
103137
+ selectionSet: { kind: Kind.SELECTION_SET, selections: result2.selections }
102982
103138
  });
102983
103139
  augmentedFragments = result2.fragments;
102984
103140
  } else {
@@ -102996,7 +103152,7 @@
102996
103152
  augmentedSelections.push(...result.selections);
102997
103153
  augmentedFragments = result.fragments;
102998
103154
  const newSelection = buildAugmentedFieldSelection(
102999
- { kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
103155
+ { kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
103000
103156
  augmentedSelections,
103001
103157
  input.fragments
103002
103158
  );
@@ -103008,7 +103164,7 @@
103008
103164
  getTypeDiscriminator(data, selections) {
103009
103165
  var _a;
103010
103166
  const typenameSelection = selections.find(
103011
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
103167
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
103012
103168
  );
103013
103169
  if (typenameSelection) {
103014
103170
  return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
@@ -103019,7 +103175,7 @@
103019
103175
  verifyInterfaceFields(selections) {
103020
103176
  let selectionErr;
103021
103177
  selections.forEach((selection) => {
103022
- if (selection.kind === Kind$1.FIELD) {
103178
+ if (selection.kind === Kind.FIELD) {
103023
103179
  const fieldName = selection.name.value;
103024
103180
  const selectionAllowed = fieldName === "__typename" || Object.keys(this.fields).includes(fieldName);
103025
103181
  if (!selectionAllowed) {
@@ -103143,7 +103299,7 @@
103143
103299
  augmentedSelections.push(...result.selections);
103144
103300
  augmentedFragments = result.fragments;
103145
103301
  const newSelection = buildAugmentedFieldSelection(
103146
- { kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
103302
+ { kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
103147
103303
  augmentedSelections,
103148
103304
  input.fragments
103149
103305
  );
@@ -103155,7 +103311,7 @@
103155
103311
  getTypeDiscriminator(data, selections) {
103156
103312
  var _a;
103157
103313
  const typenameSelection = selections.find(
103158
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
103314
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
103159
103315
  );
103160
103316
  if (typenameSelection) {
103161
103317
  return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
@@ -103166,7 +103322,7 @@
103166
103322
  verifyUnionFields(selections) {
103167
103323
  let selectionErr;
103168
103324
  selections.forEach((selection) => {
103169
- if (selection.kind === Kind$1.FIELD) {
103325
+ if (selection.kind === Kind.FIELD) {
103170
103326
  const fieldName = selection.name.value;
103171
103327
  const selectionAllowed = fieldName === "__typename";
103172
103328
  if (!selectionAllowed) {
@@ -103203,12 +103359,12 @@
103203
103359
  selections: [...input.selections, ...augmentedSelections],
103204
103360
  fragments: augmentedFragments
103205
103361
  });
103206
- const typeSelections = result.selections.filter((selection) => selection.kind !== Kind$1.FIELD).map((selection) => {
103207
- if (selection.kind === Kind$1.INLINE_FRAGMENT) {
103362
+ const typeSelections = result.selections.filter((selection) => selection.kind !== Kind.FIELD).map((selection) => {
103363
+ if (selection.kind === Kind.INLINE_FRAGMENT) {
103208
103364
  return {
103209
103365
  ...selection,
103210
103366
  selectionSet: {
103211
- kind: Kind$1.SELECTION_SET,
103367
+ kind: Kind.SELECTION_SET,
103212
103368
  selections: selection.selectionSet.selections
103213
103369
  }
103214
103370
  };
@@ -103231,202 +103387,6 @@
103231
103387
  additionalProperties: true
103232
103388
  };
103233
103389
 
103234
- /**
103235
- * Copyright (c) 2022, Salesforce, Inc.,
103236
- * All rights reserved.
103237
- * For full license text, see the LICENSE.txt file
103238
- */
103239
-
103240
- var Kind;
103241
- (function(Kind2) {
103242
- Kind2["NAME"] = "Name";
103243
- Kind2["DOCUMENT"] = "Document";
103244
- Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
103245
- Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
103246
- Kind2["SELECTION_SET"] = "SelectionSet";
103247
- Kind2["FIELD"] = "Field";
103248
- Kind2["ARGUMENT"] = "Argument";
103249
- Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
103250
- Kind2["INLINE_FRAGMENT"] = "InlineFragment";
103251
- Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
103252
- Kind2["VARIABLE"] = "Variable";
103253
- Kind2["INT"] = "IntValue";
103254
- Kind2["FLOAT"] = "FloatValue";
103255
- Kind2["STRING"] = "StringValue";
103256
- Kind2["BOOLEAN"] = "BooleanValue";
103257
- Kind2["NULL"] = "NullValue";
103258
- Kind2["ENUM"] = "EnumValue";
103259
- Kind2["LIST"] = "ListValue";
103260
- Kind2["OBJECT"] = "ObjectValue";
103261
- Kind2["OBJECT_FIELD"] = "ObjectField";
103262
- Kind2["DIRECTIVE"] = "Directive";
103263
- Kind2["NAMED_TYPE"] = "NamedType";
103264
- Kind2["LIST_TYPE"] = "ListType";
103265
- Kind2["NON_NULL_TYPE"] = "NonNullType";
103266
- Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
103267
- Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
103268
- Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
103269
- Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
103270
- Kind2["FIELD_DEFINITION"] = "FieldDefinition";
103271
- Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
103272
- Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
103273
- Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
103274
- Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
103275
- Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
103276
- Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
103277
- Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
103278
- Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
103279
- Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
103280
- Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
103281
- Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
103282
- Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
103283
- Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
103284
- Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
103285
- })(Kind || (Kind = {}));
103286
- var TokenKind;
103287
- (function(TokenKind2) {
103288
- TokenKind2["SOF"] = "<SOF>";
103289
- TokenKind2["EOF"] = "<EOF>";
103290
- TokenKind2["BANG"] = "!";
103291
- TokenKind2["DOLLAR"] = "$";
103292
- TokenKind2["AMP"] = "&";
103293
- TokenKind2["PAREN_L"] = "(";
103294
- TokenKind2["PAREN_R"] = ")";
103295
- TokenKind2["SPREAD"] = "...";
103296
- TokenKind2["COLON"] = ":";
103297
- TokenKind2["EQUALS"] = "=";
103298
- TokenKind2["AT"] = "@";
103299
- TokenKind2["BRACKET_L"] = "[";
103300
- TokenKind2["BRACKET_R"] = "]";
103301
- TokenKind2["BRACE_L"] = "{";
103302
- TokenKind2["PIPE"] = "|";
103303
- TokenKind2["BRACE_R"] = "}";
103304
- TokenKind2["NAME"] = "Name";
103305
- TokenKind2["INT"] = "Int";
103306
- TokenKind2["FLOAT"] = "Float";
103307
- TokenKind2["STRING"] = "String";
103308
- TokenKind2["BLOCK_STRING"] = "BlockString";
103309
- TokenKind2["COMMENT"] = "Comment";
103310
- })(TokenKind || (TokenKind = {}));
103311
- const QueryDocumentKeys = {
103312
- Name: [],
103313
- Document: ["definitions"],
103314
- OperationDefinition: [
103315
- "name",
103316
- "variableDefinitions",
103317
- "directives",
103318
- "selectionSet"
103319
- ],
103320
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
103321
- Variable: ["name"],
103322
- SelectionSet: ["selections"],
103323
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
103324
- Argument: ["name", "value"],
103325
- FragmentSpread: ["name", "directives"],
103326
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
103327
- FragmentDefinition: [
103328
- "name",
103329
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
103330
- "variableDefinitions",
103331
- "typeCondition",
103332
- "directives",
103333
- "selectionSet"
103334
- ],
103335
- IntValue: [],
103336
- FloatValue: [],
103337
- StringValue: [],
103338
- BooleanValue: [],
103339
- NullValue: [],
103340
- EnumValue: [],
103341
- ListValue: ["values"],
103342
- ObjectValue: ["fields"],
103343
- ObjectField: ["name", "value"],
103344
- Directive: ["name", "arguments"],
103345
- NamedType: ["name"],
103346
- ListType: ["type"],
103347
- NonNullType: ["type"],
103348
- SchemaDefinition: ["description", "directives", "operationTypes"],
103349
- OperationTypeDefinition: ["type"],
103350
- ScalarTypeDefinition: ["description", "name", "directives"],
103351
- ObjectTypeDefinition: [
103352
- "description",
103353
- "name",
103354
- "interfaces",
103355
- "directives",
103356
- "fields"
103357
- ],
103358
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
103359
- InputValueDefinition: [
103360
- "description",
103361
- "name",
103362
- "type",
103363
- "defaultValue",
103364
- "directives"
103365
- ],
103366
- InterfaceTypeDefinition: [
103367
- "description",
103368
- "name",
103369
- "interfaces",
103370
- "directives",
103371
- "fields"
103372
- ],
103373
- UnionTypeDefinition: ["description", "name", "directives", "types"],
103374
- EnumTypeDefinition: ["description", "name", "directives", "values"],
103375
- EnumValueDefinition: ["description", "name", "directives"],
103376
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
103377
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
103378
- SchemaExtension: ["directives", "operationTypes"],
103379
- ScalarTypeExtension: ["name", "directives"],
103380
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
103381
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
103382
- UnionTypeExtension: ["name", "directives", "types"],
103383
- EnumTypeExtension: ["name", "directives", "values"],
103384
- InputObjectTypeExtension: ["name", "directives", "fields"]
103385
- };
103386
- new Set(Object.keys(QueryDocumentKeys));
103387
- var OperationTypeNode;
103388
- (function(OperationTypeNode2) {
103389
- OperationTypeNode2["QUERY"] = "query";
103390
- OperationTypeNode2["MUTATION"] = "mutation";
103391
- OperationTypeNode2["SUBSCRIPTION"] = "subscription";
103392
- })(OperationTypeNode || (OperationTypeNode = {}));
103393
- var DirectiveLocation;
103394
- (function(DirectiveLocation2) {
103395
- DirectiveLocation2["QUERY"] = "QUERY";
103396
- DirectiveLocation2["MUTATION"] = "MUTATION";
103397
- DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
103398
- DirectiveLocation2["FIELD"] = "FIELD";
103399
- DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
103400
- DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
103401
- DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
103402
- DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
103403
- DirectiveLocation2["SCHEMA"] = "SCHEMA";
103404
- DirectiveLocation2["SCALAR"] = "SCALAR";
103405
- DirectiveLocation2["OBJECT"] = "OBJECT";
103406
- DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
103407
- DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
103408
- DirectiveLocation2["INTERFACE"] = "INTERFACE";
103409
- DirectiveLocation2["UNION"] = "UNION";
103410
- DirectiveLocation2["ENUM"] = "ENUM";
103411
- DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
103412
- DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
103413
- DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
103414
- })(DirectiveLocation || (DirectiveLocation = {}));
103415
- const referenceMap = /* @__PURE__ */ new WeakMap();
103416
- const astResolver = function(astReference) {
103417
- return referenceMap.get(astReference);
103418
- };
103419
- function resolveAst(ast) {
103420
- if (ast === null || ast === void 0) {
103421
- return;
103422
- }
103423
- const result = astResolver(ast);
103424
- if (result === void 0) {
103425
- throw new Error("Could not resolve AST. Did you parse the query with gql?");
103426
- }
103427
- return result;
103428
- }
103429
-
103430
103390
  /**
103431
103391
  * Copyright (c) 2022, Salesforce, Inc.,
103432
103392
  * All rights reserved.
@@ -115100,7 +115060,7 @@ keys: keys$2,
115100
115060
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
115101
115061
  }
115102
115062
  }
115103
- // version: 1.404.0-dev1-9582436c8f
115063
+ // version: 1.404.0-dev10-1e49deeb66
115104
115064
 
115105
115065
  function createFragmentMap(documentNode) {
115106
115066
  const fragments = {};
@@ -143794,12 +143754,12 @@ keys: keys$2,
143794
143754
  const graphqlBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'graphqlBatch', factory), graphqlBatchMetadata);
143795
143755
  return {
143796
143756
  // Wire Adapters
143797
- graphqlBatch: createGraphQLWireAdapterConstructor(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$2),
143757
+ graphqlBatch: createGraphQLWireAdapterConstructor(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$1),
143798
143758
  // One Store Enabled Adapters
143799
- graphql: createGraphQLWireAdapterConstructor(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$2),
143800
- graphql_imperative: createGraphQLImperativeAdapter(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$2),
143759
+ graphql: createGraphQLWireAdapterConstructor(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$1),
143760
+ graphql_imperative: createGraphQLImperativeAdapter(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$1),
143801
143761
  // Imperative Adapters
143802
- graphqlBatch_imperative: createGraphQLImperativeAdapter(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$2),
143762
+ graphqlBatch_imperative: createGraphQLImperativeAdapter(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$1),
143803
143763
  };
143804
143764
  }
143805
143765
  withDefaultLuvio((luvio) => {
@@ -144325,7 +144285,7 @@ keys: keys$2,
144325
144285
  configuration: { ...configurationForGraphQLAdapters$1 },
144326
144286
  instrument: instrument$1,
144327
144287
  });
144328
- // version: 1.404.0-dev1-9582436c8f
144288
+ // version: 1.404.0-dev10-1e49deeb66
144329
144289
 
144330
144290
  // On core the unstable adapters are re-exported with different names,
144331
144291
  // we want to match them here.
@@ -144451,7 +144411,7 @@ keys: keys$2,
144451
144411
  }
144452
144412
  const { query, variables } = validatedConfig;
144453
144413
  // Forward to new adapter
144454
- const resolvedQuery = astResolver$2(query);
144414
+ const resolvedQuery = astResolver$1(query);
144455
144415
  if (resolvedQuery === undefined) {
144456
144416
  return null;
144457
144417
  }
@@ -144477,7 +144437,7 @@ keys: keys$2,
144477
144437
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
144478
144438
  graphQLImperative = ldsAdapter;
144479
144439
  });
144480
- // version: 1.404.0-dev1-9582436c8f
144440
+ // version: 1.404.0-dev10-1e49deeb66
144481
144441
 
144482
144442
  var gqlApi = /*#__PURE__*/Object.freeze({
144483
144443
  __proto__: null,
@@ -145276,7 +145236,7 @@ keys: keys$2,
145276
145236
  function register(r) {
145277
145237
  callbacks$1.forEach((callback) => callback(r));
145278
145238
  }
145279
- // version: 1.404.0-dev1-48073cfce6
145239
+ // version: 1.404.0-dev10-5a5eea9232
145280
145240
 
145281
145241
  /**
145282
145242
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -146613,4 +146573,4 @@ keys: keys$2,
146613
146573
  exports.subscribeToAdapter = subscribeToAdapter;
146614
146574
 
146615
146575
  }));
146616
- // version: 1.404.0-dev1-48073cfce6
146576
+ // version: 1.404.0-dev10-5a5eea9232