@nationalarchives/tdr-generated-graphql 1.0.489 → 1.0.490
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +29 -0
- package/index.js +15 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -160,6 +160,7 @@ export type ClientSideMetadataInput = {
|
|
|
160
160
|
export type Consignment = {
|
|
161
161
|
__typename?: 'Consignment';
|
|
162
162
|
allChecksSucceeded: Scalars['Boolean']['output'];
|
|
163
|
+
clientSideDraftMetadataFileName?: Maybe<Scalars['String']['output']>;
|
|
163
164
|
consignmentReference: Scalars['String']['output'];
|
|
164
165
|
consignmentStatuses: Array<ConsignmentStatus>;
|
|
165
166
|
consignmentType?: Maybe<Scalars['String']['output']>;
|
|
@@ -439,6 +440,7 @@ export type Mutation = {
|
|
|
439
440
|
startUpload: Scalars['String']['output'];
|
|
440
441
|
/** @deprecated Use addOrUpdateBulkFileMetadata(addOrUpdateBulkFileMetadataInput: AddOrUpdateBulkFileMetadataInput!) instead */
|
|
441
442
|
updateBulkFileMetadata: BulkFileMetadata;
|
|
443
|
+
updateClientSideDraftMetadataFileName?: Maybe<Scalars['Int']['output']>;
|
|
442
444
|
updateConsignmentMetadataSchemaLibraryVersion?: Maybe<Scalars['Int']['output']>;
|
|
443
445
|
updateConsignmentSeriesId?: Maybe<Scalars['Int']['output']>;
|
|
444
446
|
updateConsignmentStatus?: Maybe<Scalars['Int']['output']>;
|
|
@@ -487,6 +489,9 @@ export type MutationStartUploadArgs = {
|
|
|
487
489
|
export type MutationUpdateBulkFileMetadataArgs = {
|
|
488
490
|
updateBulkFileMetadataInput: UpdateBulkFileMetadataInput;
|
|
489
491
|
};
|
|
492
|
+
export type MutationUpdateClientSideDraftMetadataFileNameArgs = {
|
|
493
|
+
updateClientSideDraftMetadataFileName: UpdateClientSideDraftMetadataFileNameInput;
|
|
494
|
+
};
|
|
490
495
|
export type MutationUpdateConsignmentMetadataSchemaLibraryVersionArgs = {
|
|
491
496
|
updateMetadataSchemaLibraryVersion: UpdateMetadataSchemaLibraryVersionInput;
|
|
492
497
|
};
|
|
@@ -589,6 +594,10 @@ export type UpdateBulkFileMetadataInput = {
|
|
|
589
594
|
fileIds: Array<Scalars['UUID']['input']>;
|
|
590
595
|
metadataProperties: Array<UpdateFileMetadataInput>;
|
|
591
596
|
};
|
|
597
|
+
export type UpdateClientSideDraftMetadataFileNameInput = {
|
|
598
|
+
clientSideDraftMetadataFileName: Scalars['String']['input'];
|
|
599
|
+
consignmentId: Scalars['UUID']['input'];
|
|
600
|
+
};
|
|
592
601
|
export type UpdateConsignmentSeriesIdInput = {
|
|
593
602
|
consignmentId: Scalars['UUID']['input'];
|
|
594
603
|
seriesId: Scalars['UUID']['input'];
|
|
@@ -780,6 +789,17 @@ export type GetAllDescendantIdsQuery = {
|
|
|
780
789
|
fileType?: string | null;
|
|
781
790
|
}>;
|
|
782
791
|
};
|
|
792
|
+
export type GetClientSideDraftMetadataFileNameQueryVariables = Exact<{
|
|
793
|
+
consignmentId: Scalars['UUID']['input'];
|
|
794
|
+
}>;
|
|
795
|
+
export type GetClientSideDraftMetadataFileNameQuery = {
|
|
796
|
+
__typename?: 'Query';
|
|
797
|
+
getConsignment?: {
|
|
798
|
+
__typename?: 'Consignment';
|
|
799
|
+
consignmentid?: any | null;
|
|
800
|
+
clientSideDraftMetadataFileName?: string | null;
|
|
801
|
+
} | null;
|
|
802
|
+
};
|
|
783
803
|
export type GetConsignmentQueryVariables = Exact<{
|
|
784
804
|
consignmentId: Scalars['UUID']['input'];
|
|
785
805
|
}>;
|
|
@@ -1211,6 +1231,13 @@ export type StartUploadMutation = {
|
|
|
1211
1231
|
__typename?: 'Mutation';
|
|
1212
1232
|
startUpload: string;
|
|
1213
1233
|
};
|
|
1234
|
+
export type UpdateClientSideDraftMetadataFileNameMutationVariables = Exact<{
|
|
1235
|
+
updateClientSideDraftMetadataFileNameInput: UpdateClientSideDraftMetadataFileNameInput;
|
|
1236
|
+
}>;
|
|
1237
|
+
export type UpdateClientSideDraftMetadataFileNameMutation = {
|
|
1238
|
+
__typename?: 'Mutation';
|
|
1239
|
+
updateClientSideDraftMetadataFileName?: number | null;
|
|
1240
|
+
};
|
|
1214
1241
|
export type UpdateConsignmentMetadataSchemaLibraryVersionMutationVariables = Exact<{
|
|
1215
1242
|
updateMetadataSchemaLibraryVersionInput: UpdateMetadataSchemaLibraryVersionInput;
|
|
1216
1243
|
}>;
|
|
@@ -1260,6 +1287,7 @@ export declare const AddTransferAgreementCompliance: import("graphql/language/as
|
|
|
1260
1287
|
export declare const AddTransferAgreementPrivateBeta: import("graphql/language/ast").DocumentNode;
|
|
1261
1288
|
export declare const DeleteFileMetadata: import("graphql/language/ast").DocumentNode;
|
|
1262
1289
|
export declare const GetAllDescendantIds: import("graphql/language/ast").DocumentNode;
|
|
1290
|
+
export declare const GetClientSideDraftMetadataFileName: import("graphql/language/ast").DocumentNode;
|
|
1263
1291
|
export declare const GetConsignment: import("graphql/language/ast").DocumentNode;
|
|
1264
1292
|
export declare const GetConsignmentDetailsForMetadataReview: import("graphql/language/ast").DocumentNode;
|
|
1265
1293
|
export declare const GetConsignmentForExport: import("graphql/language/ast").DocumentNode;
|
|
@@ -1280,6 +1308,7 @@ export declare const GetFileCheckProgressSummary: import("graphql/language/ast")
|
|
|
1280
1308
|
export declare const GetFilesWithUniqueAssetIdKey: import("graphql/language/ast").DocumentNode;
|
|
1281
1309
|
export declare const GetSeries: import("graphql/language/ast").DocumentNode;
|
|
1282
1310
|
export declare const StartUpload: import("graphql/language/ast").DocumentNode;
|
|
1311
|
+
export declare const UpdateClientSideDraftMetadataFileName: import("graphql/language/ast").DocumentNode;
|
|
1283
1312
|
export declare const UpdateConsignmentMetadataSchemaLibraryVersion: import("graphql/language/ast").DocumentNode;
|
|
1284
1313
|
export declare const UpdateConsignmentSeriesId: import("graphql/language/ast").DocumentNode;
|
|
1285
1314
|
export declare const UpdateConsignmentStatus: import("graphql/language/ast").DocumentNode;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{"use strict";var e={156:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTransferInitiated=t.UpdateExportData=t.UpdateConsignmentStatus=t.UpdateConsignmentSeriesId=t.UpdateConsignmentMetadataSchemaLibraryVersion=t.StartUpload=t.GetSeries=t.GetFilesWithUniqueAssetIdKey=t.GetFileCheckProgressSummary=t.GetFileCheckProgress=t.DisplayProperties=t.CustomMetadata=t.GetConsignmentsForMetadataReview=t.GetConsignments=t.GetConsignmentType=t.GetConsignmentSummary=t.GetConsignmentStatus=t.GetConsignmentReference=t.GetConsignmentPaginatedFiles=t.GetConsignmentFolderDetails=t.GetConsignmentFilesMetadata=t.GetConsignmentFiles=t.GetConsignmentForExport=t.GetConsignmentDetailsForMetadataReview=t.GetConsignment=t.GetAllDescendantIds=t.DeleteFileMetadata=t.AddTransferAgreementPrivateBeta=t.AddTransferAgreementCompliance=t.AddOrUpdateBulkFileMetadata=t.AddMultipleFileStatuses=t.AddMultipleFileMetadata=t.AddFinalTransferConfirmation=t.AddFilesAndMetadata=t.AddConsignmentStatus=t.AddConsignment=t.AddBulkFileMetadata=t.AddBulkFfidMetadata=t.AddBulkAntivirusMetadata=t.PropertyType=t.DataType=void 0;const s=i(n(974));var r
|
|
1
|
+
(()=>{"use strict";var e={156:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTransferInitiated=t.UpdateExportData=t.UpdateConsignmentStatus=t.UpdateConsignmentSeriesId=t.UpdateConsignmentMetadataSchemaLibraryVersion=t.UpdateClientSideDraftMetadataFileName=t.StartUpload=t.GetSeries=t.GetFilesWithUniqueAssetIdKey=t.GetFileCheckProgressSummary=t.GetFileCheckProgress=t.DisplayProperties=t.CustomMetadata=t.GetConsignmentsForMetadataReview=t.GetConsignments=t.GetConsignmentType=t.GetConsignmentSummary=t.GetConsignmentStatus=t.GetConsignmentReference=t.GetConsignmentPaginatedFiles=t.GetConsignmentFolderDetails=t.GetConsignmentFilesMetadata=t.GetConsignmentFiles=t.GetConsignmentForExport=t.GetConsignmentDetailsForMetadataReview=t.GetConsignment=t.GetClientSideDraftMetadataFileName=t.GetAllDescendantIds=t.DeleteFileMetadata=t.AddTransferAgreementPrivateBeta=t.AddTransferAgreementCompliance=t.AddOrUpdateBulkFileMetadata=t.AddMultipleFileStatuses=t.AddMultipleFileMetadata=t.AddFinalTransferConfirmation=t.AddFilesAndMetadata=t.AddConsignmentStatus=t.AddConsignment=t.AddBulkFileMetadata=t.AddBulkFfidMetadata=t.AddBulkAntivirusMetadata=t.PropertyType=t.DataType=void 0;const s=i(n(974));var a,r;!function(e){e.Boolean="Boolean",e.DateTime="DateTime",e.Decimal="Decimal",e.Integer="Integer",e.Text="Text"}(a||(t.DataType=a={})),function(e){e.Defined="Defined",e.Supplied="Supplied",e.System="System"}(r||(t.PropertyType=r={})),t.AddBulkAntivirusMetadata=s.default`
|
|
2
2
|
mutation addBulkAntivirusMetadata($input: AddAntivirusMetadataInput!) {
|
|
3
3
|
addBulkAntivirusMetadata(addBulkAntivirusMetadataInput: $input) {
|
|
4
4
|
fileId
|
|
@@ -120,6 +120,13 @@
|
|
|
120
120
|
fileId
|
|
121
121
|
fileType
|
|
122
122
|
}
|
|
123
|
+
}
|
|
124
|
+
`,t.GetClientSideDraftMetadataFileName=s.default`
|
|
125
|
+
query getClientSideDraftMetadataFileName($consignmentId: UUID!) {
|
|
126
|
+
getConsignment(consignmentid: $consignmentId) {
|
|
127
|
+
consignmentid
|
|
128
|
+
clientSideDraftMetadataFileName
|
|
129
|
+
}
|
|
123
130
|
}
|
|
124
131
|
`,t.GetConsignment=s.default`
|
|
125
132
|
query getConsignment($consignmentId: UUID!) {
|
|
@@ -436,6 +443,12 @@
|
|
|
436
443
|
`,t.StartUpload=s.default`
|
|
437
444
|
mutation startUpload($input: StartUploadInput!) {
|
|
438
445
|
startUpload(startUploadInput: $input)
|
|
446
|
+
}
|
|
447
|
+
`,t.UpdateClientSideDraftMetadataFileName=s.default`
|
|
448
|
+
mutation updateClientSideDraftMetadataFileName($updateClientSideDraftMetadataFileNameInput: UpdateClientSideDraftMetadataFileNameInput!) {
|
|
449
|
+
updateClientSideDraftMetadataFileName(
|
|
450
|
+
updateClientSideDraftMetadataFileName: $updateClientSideDraftMetadataFileNameInput
|
|
451
|
+
)
|
|
439
452
|
}
|
|
440
453
|
`,t.UpdateConsignmentMetadataSchemaLibraryVersion=s.default`
|
|
441
454
|
mutation updateConsignmentMetadataSchemaLibraryVersion($updateMetadataSchemaLibraryVersionInput: UpdateMetadataSchemaLibraryVersionInput!) {
|
|
@@ -463,4 +476,4 @@
|
|
|
463
476
|
mutation updateTransferInitiated($consignmentId: UUID!) {
|
|
464
477
|
updateTransferInitiated(consignmentid: $consignmentId)
|
|
465
478
|
}
|
|
466
|
-
`},974:(e,t,n)=>{n.r(t),n.d(t,{default:()=>me,disableExperimentalFragmentVariables:()=>oe,disableFragmentWarnings:()=>re,enableExperimentalFragmentVariables:()=>ae,gql:()=>ie,resetCaches:()=>se});var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},i.apply(this,arguments)};function s(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const r=/\r\n|[\n\r]/g;function a(e,t){let n=0,i=1;for(const a of e.body.matchAll(r)){if("number"==typeof a.index||s(!1),a.index>=t)break;n=a.index+a[0].length,i+=1}return{line:i,column:t+1-n}}function o(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,s=t.line-1,r=e.locationOffset.line-1,a=t.line+r,o=1===t.line?n:0,l=t.column+o,c=`${e.name}:${a}:${l}\n`,u=i.split(/\r\n|[\n\r]/g),p=u[s];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return c+d([[`${a} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+d([[a-1+" |",u[s-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,u[s+1]]])}function d(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class l extends Error{constructor(e,...t){var n,i,s;const{nodes:r,source:o,positions:d,path:u,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=p?p:void 0,this.nodes=c(Array.isArray(r)?r:r?[r]:void 0);const m=c(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==m||null===(i=m[0])||void 0===i?void 0:i.source,this.positions=null!=d?d:null==m?void 0:m.map((e=>e.start)),this.locations=d&&o?d.map((e=>a(o,e))):null==m?void 0:m.map((e=>a(e.source,e.start)));const f="object"==typeof(I=null==p?void 0:p.extensions)&&null!==I?null==p?void 0:p.extensions:void 0;var I;this.extensions=null!==(s=null!=h?h:f)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,l):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+o((t=n.loc).source,a(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+o(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function c(e){return void 0===e||0===e.length?void 0:e}function u(e,t,n){return new l(`Syntax Error: ${n}`,{source:e,positions:[t]})}class p{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class h{constructor(e,t,n,i,s,r){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=s,this.value=r,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}var m,f,I,g,E;function T(e){return e>=48&&e<=57}function N(e){return e>=97&&e<=122||e>=65&&e<=90}function y(e){return N(e)||95===e}function C(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,s=-1;for(let t=0;t<e.length;++t){var r;const a=e[t],o=A(a);o!==a.length&&(i=null!==(r=i)&&void 0!==r?r:t,s=t,0!==t&&o<n&&(n=o))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=i)&&void 0!==t?t:0,s+1)}function A(e){let t=0;for(;t<e.length&&(9===(n=e.charCodeAt(t))||32===n);)++t;var n;return t}new Set(Object.keys({Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]})),function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(m||(m={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(f||(f={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(I||(I={})),(E=g||(g={})).SOF="<SOF>",E.EOF="<EOF>",E.BANG="!",E.DOLLAR="$",E.AMP="&",E.PAREN_L="(",E.PAREN_R=")",E.SPREAD="...",E.COLON=":",E.EQUALS="=",E.AT="@",E.BRACKET_L="[",E.BRACKET_R="]",E.BRACE_L="{",E.PIPE="|",E.BRACE_R="}",E.NAME="Name",E.INT="Int",E.FLOAT="Float",E.STRING="String",E.BLOCK_STRING="BlockString",E.COMMENT="Comment";class D{constructor(e){const t=new h(g.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==g.EOF)do{if(e.next)e=e.next;else{const t=k(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===g.COMMENT);return e}}function v(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function F(e,t){return S(e.charCodeAt(t))&&O(e.charCodeAt(t+1))}function S(e){return e>=55296&&e<=56319}function O(e){return e>=56320&&e<=57343}function x(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return g.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function _(e,t,n,i,s){const r=e.line,a=1+n-e.lineStart;return new h(t,n,i,r,a,s)}function k(e,t){const n=e.source.body,i=n.length;let s=t;for(;s<i;){const t=n.charCodeAt(s);switch(t){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===n.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 35:return M(e,s);case 33:return _(e,g.BANG,s,s+1);case 36:return _(e,g.DOLLAR,s,s+1);case 38:return _(e,g.AMP,s,s+1);case 40:return _(e,g.PAREN_L,s,s+1);case 41:return _(e,g.PAREN_R,s,s+1);case 46:if(46===n.charCodeAt(s+1)&&46===n.charCodeAt(s+2))return _(e,g.SPREAD,s,s+3);break;case 58:return _(e,g.COLON,s,s+1);case 61:return _(e,g.EQUALS,s,s+1);case 64:return _(e,g.AT,s,s+1);case 91:return _(e,g.BRACKET_L,s,s+1);case 93:return _(e,g.BRACKET_R,s,s+1);case 123:return _(e,g.BRACE_L,s,s+1);case 124:return _(e,g.PIPE,s,s+1);case 125:return _(e,g.BRACE_R,s,s+1);case 34:return 34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)?V(e,s):L(e,s)}if(T(t)||45===t)return b(e,s,t);if(y(t))return G(e,s);throw u(e.source,s,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":v(t)||F(n,s)?`Unexpected character: ${x(e,s)}.`:`Invalid character: ${x(e,s)}.`)}return _(e,g.EOF,i,i)}function M(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i;){const e=n.charCodeAt(s);if(10===e||13===e)break;if(v(e))++s;else{if(!F(n,s))break;s+=2}}return _(e,g.COMMENT,t,s,n.slice(t+1,s))}function b(e,t,n){const i=e.source.body;let s=t,r=n,a=!1;if(45===r&&(r=i.charCodeAt(++s)),48===r){if(r=i.charCodeAt(++s),T(r))throw u(e.source,s,`Invalid number, unexpected digit after 0: ${x(e,s)}.`)}else s=R(e,s,r),r=i.charCodeAt(s);if(46===r&&(a=!0,r=i.charCodeAt(++s),s=R(e,s,r),r=i.charCodeAt(s)),69!==r&&101!==r||(a=!0,r=i.charCodeAt(++s),43!==r&&45!==r||(r=i.charCodeAt(++s)),s=R(e,s,r),r=i.charCodeAt(s)),46===r||y(r))throw u(e.source,s,`Invalid number, expected digit but got: ${x(e,s)}.`);return _(e,a?g.FLOAT:g.INT,t,s,i.slice(t,s))}function R(e,t,n){if(!T(n))throw u(e.source,t,`Invalid number, expected digit but got: ${x(e,t)}.`);const i=e.source.body;let s=t+1;for(;T(i.charCodeAt(s));)++s;return s}function L(e,t){const n=e.source.body,i=n.length;let s=t+1,r=s,a="";for(;s<i;){const i=n.charCodeAt(s);if(34===i)return a+=n.slice(r,s),_(e,g.STRING,t,s+1,a);if(92!==i){if(10===i||13===i)break;if(v(i))++s;else{if(!F(n,s))throw u(e.source,s,`Invalid character within String: ${x(e,s)}.`);s+=2}}else{a+=n.slice(r,s);const t=117===n.charCodeAt(s+1)?123===n.charCodeAt(s+2)?P(e,s):U(e,s):B(e,s);a+=t.value,s+=t.size,r=s}}throw u(e.source,s,"Unterminated string.")}function P(e,t){const n=e.source.body;let i=0,s=3;for(;s<12;){const e=n.charCodeAt(t+s++);if(125===e){if(s<5||!v(i))break;return{value:String.fromCodePoint(i),size:s}}if(i=i<<4|w(e),i<0)break}throw u(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+s)}".`)}function U(e,t){const n=e.source.body,i=$(n,t+2);if(v(i))return{value:String.fromCodePoint(i),size:6};if(S(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=$(n,t+8);if(O(e))return{value:String.fromCodePoint(i,e),size:12}}throw u(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function $(e,t){return w(e.charCodeAt(t))<<12|w(e.charCodeAt(t+1))<<8|w(e.charCodeAt(t+2))<<4|w(e.charCodeAt(t+3))}function w(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function B(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw u(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function V(e,t){const n=e.source.body,i=n.length;let s=e.lineStart,r=t+3,a=r,o="";const d=[];for(;r<i;){const i=n.charCodeAt(r);if(34===i&&34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)){o+=n.slice(a,r),d.push(o);const i=_(e,g.BLOCK_STRING,t,r+3,C(d).join("\n"));return e.line+=d.length-1,e.lineStart=s,i}if(92!==i||34!==n.charCodeAt(r+1)||34!==n.charCodeAt(r+2)||34!==n.charCodeAt(r+3))if(10!==i&&13!==i)if(v(i))++r;else{if(!F(n,r))throw u(e.source,r,`Invalid character within String: ${x(e,r)}.`);r+=2}else o+=n.slice(a,r),d.push(o),13===i&&10===n.charCodeAt(r+1)?r+=2:++r,o="",a=r,s=r;else o+=n.slice(a,r),a=r+1,r+=4}throw u(e.source,r,"Unterminated string.")}function G(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i&&(N(r=n.charCodeAt(s))||T(r)||95===r);)++s;var r;return _(e,g.NAME,t,s,n.slice(t,s))}function j(e,t){if(!Boolean(e))throw new Error(t)}function K(e){return q(e,[])}function q(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:q(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),i=e.length-n,s=[];for(let i=0;i<n;++i)s.push(q(e[i],t));return 1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const i=n.map((([e,n])=>e+": "+q(n,t)));return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const Y=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=K(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class J{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||j(!1,`Body must be a string. Received: ${K(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||j(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||j(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Q{constructor(e,t={}){const n=function(e){return Y(e,J)}(e)?e:new J(e);this._lexer=new D(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(g.NAME);return this.node(e,{kind:I.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:I.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF)})}parseDefinition(){if(this.peek(g.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===g.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(g.BRACE_L))return this.node(e,{kind:I.OPERATION_DEFINITION,operation:m.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(g.NAME)&&(n=this.parseName()),this.node(e,{kind:I.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(g.NAME);switch(e.value){case"query":return m.QUERY;case"mutation":return m.MUTATION;case"subscription":return m.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:I.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(g.DOLLAR),this.node(e,{kind:I.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:I.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R)})}parseSelection(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(g.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:I.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),this.node(t,{kind:I.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(g.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(g.NAME)?this.node(e,{kind:I.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:I.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:I.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:I.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this.advanceLexer(),this.node(t,{kind:I.INT,value:t.value});case g.FLOAT:return this.advanceLexer(),this.node(t,{kind:I.FLOAT,value:t.value});case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:I.BOOLEAN,value:!0});case"false":return this.node(t,{kind:I.BOOLEAN,value:!1});case"null":return this.node(t,{kind:I.NULL});default:return this.node(t,{kind:I.ENUM,value:t.value})}case g.DOLLAR:if(e){if(this.expectToken(g.DOLLAR),this._lexer.token.kind===g.NAME){const e=this._lexer.token.value;throw u(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:I.STRING,value:e.value,block:e.kind===g.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:I.LIST,values:this.any(g.BRACKET_L,(()=>this.parseValueLiteral(e)),g.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:I.OBJECT,fields:this.any(g.BRACE_L,(()=>this.parseObjectField(e)),g.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),this.node(t,{kind:I.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(g.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(g.AT),this.node(t,{kind:I.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(g.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(g.BRACKET_R),t=this.node(e,{kind:I.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(g.BANG)?this.node(e,{kind:I.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:I.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return this.node(e,{kind:I.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);const n=this.parseNamedType();return this.node(e,{kind:I.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:I.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();return this.node(e,{kind:I.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:s,fields:r})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(g.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(g.COLON);const s=this.parseTypeReference(),r=this.parseConstDirectives();return this.node(e,{kind:I.FIELD_DEFINITION,description:t,name:n,arguments:i,type:s,directives:r})}parseArgumentDefs(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(g.COLON);const i=this.parseTypeReference();let s;this.expectOptionalToken(g.EQUALS)&&(s=this.parseConstValueLiteral());const r=this.parseConstDirectives();return this.node(e,{kind:I.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:s,directives:r})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();return this.node(e,{kind:I.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:s,fields:r})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:I.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:I.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:I.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw u(this._lexer.source,this._lexer.token.start,`${X(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:I.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:I.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:I.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:I.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:I.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);const n=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const r=this.parseDirectiveLocations();return this.node(e,{kind:I.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:s,locations:r})}parseDirectiveLocations(){return this.delimitedMany(g.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(f,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw u(this._lexer.source,t.start,`Expected ${z(e)}, found ${X(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==g.NAME||t.value!==e)throw u(this._lexer.source,t.start,`Expected "${e}", found ${X(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return u(this._lexer.source,t.start,`Unexpected ${X(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==g.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw u(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function X(e){const t=e.value;return z(e.kind)+(null!=t?` "${t}"`:"")}function z(e){return function(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?`"${e}"`:e}var W=new Map,H=new Map,Z=!0,ee=!1;function te(e){return e.replace(/[\s,]+/g," ").trim()}function ne(e){var t,n,s,r=te(e);if(!W.has(r)){var a=function(e,t){const n=new Q(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}(e,{experimentalFragmentVariables:ee,allowLegacyFragmentVariables:ee});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");W.set(r,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=new Set,s=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=te((a=e.loc).source.body.substring(a.start,a.end)),r=H.get(t);r&&!r.has(i)?Z&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):r||H.set(t,r=new Set),r.add(i),n.has(i)||(n.add(i),s.push(e))}else s.push(e);var a})),i(i({},t),{definitions:s}))))}return W.get(r)}function ie(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]})),ne(i)}function se(){W.clear(),H.clear()}function re(){Z=!1}function ae(){ee=!0}function oe(){ee=!1}var de,le=ie,ce=se,ue=re,pe=ae,he=oe;(de=ie||(ie={})).gql=le,de.resetCaches=ce,de.disableFragmentWarnings=ue,de.enableExperimentalFragmentVariables=pe,de.disableExperimentalFragmentVariables=he,ie.default=ie;const me=ie}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i=n(156);module.exports=i})();
|
|
479
|
+
`},974:(e,t,n)=>{n.r(t),n.d(t,{default:()=>me,disableExperimentalFragmentVariables:()=>oe,disableFragmentWarnings:()=>ae,enableExperimentalFragmentVariables:()=>re,gql:()=>ie,resetCaches:()=>se});var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},i.apply(this,arguments)};function s(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const a=/\r\n|[\n\r]/g;function r(e,t){let n=0,i=1;for(const r of e.body.matchAll(a)){if("number"==typeof r.index||s(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function o(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,s=t.line-1,a=e.locationOffset.line-1,r=t.line+a,o=1===t.line?n:0,l=t.column+o,c=`${e.name}:${r}:${l}\n`,u=i.split(/\r\n|[\n\r]/g),p=u[s];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return c+d([[`${r} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+d([[r-1+" |",u[s-1]],[`${r} |`,p],["|","^".padStart(l)],[`${r+1} |`,u[s+1]]])}function d(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class l extends Error{constructor(e,...t){var n,i,s;const{nodes:a,source:o,positions:d,path:u,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=p?p:void 0,this.nodes=c(Array.isArray(a)?a:a?[a]:void 0);const m=c(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==m||null===(i=m[0])||void 0===i?void 0:i.source,this.positions=null!=d?d:null==m?void 0:m.map((e=>e.start)),this.locations=d&&o?d.map((e=>r(o,e))):null==m?void 0:m.map((e=>r(e.source,e.start)));const f="object"==typeof(I=null==p?void 0:p.extensions)&&null!==I?null==p?void 0:p.extensions:void 0;var I;this.extensions=null!==(s=null!=h?h:f)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,l):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+o((t=n.loc).source,r(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+o(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function c(e){return void 0===e||0===e.length?void 0:e}function u(e,t,n){return new l(`Syntax Error: ${n}`,{source:e,positions:[t]})}class p{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class h{constructor(e,t,n,i,s,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}var m,f,I,g,E;function T(e){return e>=48&&e<=57}function N(e){return e>=97&&e<=122||e>=65&&e<=90}function y(e){return N(e)||95===e}function C(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,s=-1;for(let t=0;t<e.length;++t){var a;const r=e[t],o=D(r);o!==r.length&&(i=null!==(a=i)&&void 0!==a?a:t,s=t,0!==t&&o<n&&(n=o))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=i)&&void 0!==t?t:0,s+1)}function D(e){let t=0;for(;t<e.length&&(9===(n=e.charCodeAt(t))||32===n);)++t;var n;return t}new Set(Object.keys({Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]})),function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(m||(m={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(f||(f={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(I||(I={})),(E=g||(g={})).SOF="<SOF>",E.EOF="<EOF>",E.BANG="!",E.DOLLAR="$",E.AMP="&",E.PAREN_L="(",E.PAREN_R=")",E.SPREAD="...",E.COLON=":",E.EQUALS="=",E.AT="@",E.BRACKET_L="[",E.BRACKET_R="]",E.BRACE_L="{",E.PIPE="|",E.BRACE_R="}",E.NAME="Name",E.INT="Int",E.FLOAT="Float",E.STRING="String",E.BLOCK_STRING="BlockString",E.COMMENT="Comment";class A{constructor(e){const t=new h(g.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==g.EOF)do{if(e.next)e=e.next;else{const t=k(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===g.COMMENT);return e}}function v(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function F(e,t){return S(e.charCodeAt(t))&&O(e.charCodeAt(t+1))}function S(e){return e>=55296&&e<=56319}function O(e){return e>=56320&&e<=57343}function x(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return g.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function _(e,t,n,i,s){const a=e.line,r=1+n-e.lineStart;return new h(t,n,i,a,r,s)}function k(e,t){const n=e.source.body,i=n.length;let s=t;for(;s<i;){const t=n.charCodeAt(s);switch(t){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===n.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 35:return M(e,s);case 33:return _(e,g.BANG,s,s+1);case 36:return _(e,g.DOLLAR,s,s+1);case 38:return _(e,g.AMP,s,s+1);case 40:return _(e,g.PAREN_L,s,s+1);case 41:return _(e,g.PAREN_R,s,s+1);case 46:if(46===n.charCodeAt(s+1)&&46===n.charCodeAt(s+2))return _(e,g.SPREAD,s,s+3);break;case 58:return _(e,g.COLON,s,s+1);case 61:return _(e,g.EQUALS,s,s+1);case 64:return _(e,g.AT,s,s+1);case 91:return _(e,g.BRACKET_L,s,s+1);case 93:return _(e,g.BRACKET_R,s,s+1);case 123:return _(e,g.BRACE_L,s,s+1);case 124:return _(e,g.PIPE,s,s+1);case 125:return _(e,g.BRACE_R,s,s+1);case 34:return 34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)?V(e,s):L(e,s)}if(T(t)||45===t)return b(e,s,t);if(y(t))return G(e,s);throw u(e.source,s,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":v(t)||F(n,s)?`Unexpected character: ${x(e,s)}.`:`Invalid character: ${x(e,s)}.`)}return _(e,g.EOF,i,i)}function M(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i;){const e=n.charCodeAt(s);if(10===e||13===e)break;if(v(e))++s;else{if(!F(n,s))break;s+=2}}return _(e,g.COMMENT,t,s,n.slice(t+1,s))}function b(e,t,n){const i=e.source.body;let s=t,a=n,r=!1;if(45===a&&(a=i.charCodeAt(++s)),48===a){if(a=i.charCodeAt(++s),T(a))throw u(e.source,s,`Invalid number, unexpected digit after 0: ${x(e,s)}.`)}else s=R(e,s,a),a=i.charCodeAt(s);if(46===a&&(r=!0,a=i.charCodeAt(++s),s=R(e,s,a),a=i.charCodeAt(s)),69!==a&&101!==a||(r=!0,a=i.charCodeAt(++s),43!==a&&45!==a||(a=i.charCodeAt(++s)),s=R(e,s,a),a=i.charCodeAt(s)),46===a||y(a))throw u(e.source,s,`Invalid number, expected digit but got: ${x(e,s)}.`);return _(e,r?g.FLOAT:g.INT,t,s,i.slice(t,s))}function R(e,t,n){if(!T(n))throw u(e.source,t,`Invalid number, expected digit but got: ${x(e,t)}.`);const i=e.source.body;let s=t+1;for(;T(i.charCodeAt(s));)++s;return s}function L(e,t){const n=e.source.body,i=n.length;let s=t+1,a=s,r="";for(;s<i;){const i=n.charCodeAt(s);if(34===i)return r+=n.slice(a,s),_(e,g.STRING,t,s+1,r);if(92!==i){if(10===i||13===i)break;if(v(i))++s;else{if(!F(n,s))throw u(e.source,s,`Invalid character within String: ${x(e,s)}.`);s+=2}}else{r+=n.slice(a,s);const t=117===n.charCodeAt(s+1)?123===n.charCodeAt(s+2)?U(e,s):P(e,s):B(e,s);r+=t.value,s+=t.size,a=s}}throw u(e.source,s,"Unterminated string.")}function U(e,t){const n=e.source.body;let i=0,s=3;for(;s<12;){const e=n.charCodeAt(t+s++);if(125===e){if(s<5||!v(i))break;return{value:String.fromCodePoint(i),size:s}}if(i=i<<4|w(e),i<0)break}throw u(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+s)}".`)}function P(e,t){const n=e.source.body,i=$(n,t+2);if(v(i))return{value:String.fromCodePoint(i),size:6};if(S(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=$(n,t+8);if(O(e))return{value:String.fromCodePoint(i,e),size:12}}throw u(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function $(e,t){return w(e.charCodeAt(t))<<12|w(e.charCodeAt(t+1))<<8|w(e.charCodeAt(t+2))<<4|w(e.charCodeAt(t+3))}function w(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function B(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw u(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function V(e,t){const n=e.source.body,i=n.length;let s=e.lineStart,a=t+3,r=a,o="";const d=[];for(;a<i;){const i=n.charCodeAt(a);if(34===i&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){o+=n.slice(r,a),d.push(o);const i=_(e,g.BLOCK_STRING,t,a+3,C(d).join("\n"));return e.line+=d.length-1,e.lineStart=s,i}if(92!==i||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==i&&13!==i)if(v(i))++a;else{if(!F(n,a))throw u(e.source,a,`Invalid character within String: ${x(e,a)}.`);a+=2}else o+=n.slice(r,a),d.push(o),13===i&&10===n.charCodeAt(a+1)?a+=2:++a,o="",r=a,s=a;else o+=n.slice(r,a),r=a+1,a+=4}throw u(e.source,a,"Unterminated string.")}function G(e,t){const n=e.source.body,i=n.length;let s=t+1;for(;s<i&&(N(a=n.charCodeAt(s))||T(a)||95===a);)++s;var a;return _(e,g.NAME,t,s,n.slice(t,s))}function j(e,t){if(!Boolean(e))throw new Error(t)}function K(e){return q(e,[])}function q(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:q(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),i=e.length-n,s=[];for(let i=0;i<n;++i)s.push(q(e[i],t));return 1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const i=n.map((([e,n])=>e+": "+q(n,t)));return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const Y=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=K(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class J{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||j(!1,`Body must be a string. Received: ${K(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||j(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||j(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Q{constructor(e,t={}){const n=function(e){return Y(e,J)}(e)?e:new J(e);this._lexer=new A(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(g.NAME);return this.node(e,{kind:I.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:I.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF)})}parseDefinition(){if(this.peek(g.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===g.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(g.BRACE_L))return this.node(e,{kind:I.OPERATION_DEFINITION,operation:m.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(g.NAME)&&(n=this.parseName()),this.node(e,{kind:I.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(g.NAME);switch(e.value){case"query":return m.QUERY;case"mutation":return m.MUTATION;case"subscription":return m.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:I.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(g.DOLLAR),this.node(e,{kind:I.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:I.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R)})}parseSelection(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(g.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:I.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),this.node(t,{kind:I.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(g.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(g.NAME)?this.node(e,{kind:I.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:I.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:I.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:I.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this.advanceLexer(),this.node(t,{kind:I.INT,value:t.value});case g.FLOAT:return this.advanceLexer(),this.node(t,{kind:I.FLOAT,value:t.value});case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:I.BOOLEAN,value:!0});case"false":return this.node(t,{kind:I.BOOLEAN,value:!1});case"null":return this.node(t,{kind:I.NULL});default:return this.node(t,{kind:I.ENUM,value:t.value})}case g.DOLLAR:if(e){if(this.expectToken(g.DOLLAR),this._lexer.token.kind===g.NAME){const e=this._lexer.token.value;throw u(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:I.STRING,value:e.value,block:e.kind===g.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:I.LIST,values:this.any(g.BRACKET_L,(()=>this.parseValueLiteral(e)),g.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:I.OBJECT,fields:this.any(g.BRACE_L,(()=>this.parseObjectField(e)),g.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),this.node(t,{kind:I.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(g.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(g.AT),this.node(t,{kind:I.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(g.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(g.BRACKET_R),t=this.node(e,{kind:I.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(g.BANG)?this.node(e,{kind:I.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:I.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return this.node(e,{kind:I.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);const n=this.parseNamedType();return this.node(e,{kind:I.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:I.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:I.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(g.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(g.COLON);const s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:I.FIELD_DEFINITION,description:t,name:n,arguments:i,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(g.COLON);const i=this.parseTypeReference();let s;this.expectOptionalToken(g.EQUALS)&&(s=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:I.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:I.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:s,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:I.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:I.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:I.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw u(this._lexer.source,this._lexer.token.start,`${X(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:I.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:I.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:I.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:I.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===s.length)throw this.unexpected();return this.node(e,{kind:I.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:I.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);const n=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:I.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(g.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(f,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw u(this._lexer.source,t.start,`Expected ${z(e)}, found ${X(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==g.NAME||t.value!==e)throw u(this._lexer.source,t.start,`Expected "${e}", found ${X(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return u(this._lexer.source,t.start,`Unexpected ${X(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==g.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw u(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function X(e){const t=e.value;return z(e.kind)+(null!=t?` "${t}"`:"")}function z(e){return function(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?`"${e}"`:e}var W=new Map,H=new Map,Z=!0,ee=!1;function te(e){return e.replace(/[\s,]+/g," ").trim()}function ne(e){var t,n,s,a=te(e);if(!W.has(a)){var r=function(e,t){const n=new Q(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}(e,{experimentalFragmentVariables:ee,allowLegacyFragmentVariables:ee});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");W.set(a,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=r,n=new Set,s=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=te((r=e.loc).source.body.substring(r.start,r.end)),a=H.get(t);a&&!a.has(i)?Z&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||H.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),s.push(e))}else s.push(e);var r})),i(i({},t),{definitions:s}))))}return W.get(a)}function ie(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]})),ne(i)}function se(){W.clear(),H.clear()}function ae(){Z=!1}function re(){ee=!0}function oe(){ee=!1}var de,le=ie,ce=se,ue=ae,pe=re,he=oe;(de=ie||(ie={})).gql=le,de.resetCaches=ce,de.disableFragmentWarnings=ue,de.enableExperimentalFragmentVariables=pe,de.disableExperimentalFragmentVariables=he,ie.default=ie;const me=ie}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,n),a.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i=n(156);module.exports=i})();
|