parse-dashboard 4.1.2-alpha.1 → 4.1.2-alpha.2

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.
@@ -33,8 +33,9 @@ program.option('--createUser', 'helper tool to allow you to generate secure user
33
33
  program.option('--createMFA', 'helper tool to allow you to generate multi-factor authentication secrets.');
34
34
 
35
35
  program.parse(process.argv);
36
+ const options = program.opts();
36
37
 
37
- for (const key in program) {
38
+ for (const key in options) {
38
39
  const func = CLIHelper[key];
39
40
  if (func && typeof func === 'function') {
40
41
  func();
@@ -42,31 +43,31 @@ for (const key in program) {
42
43
  }
43
44
  }
44
45
 
45
- const host = program.host || process.env.HOST || '0.0.0.0';
46
- const port = program.port || process.env.PORT || 4040;
47
- const mountPath = program.mountPath || process.env.MOUNT_PATH || '/';
48
- const allowInsecureHTTP = program.allowInsecureHTTP || process.env.PARSE_DASHBOARD_ALLOW_INSECURE_HTTP;
49
- const cookieSessionSecret = program.cookieSessionSecret || process.env.PARSE_DASHBOARD_COOKIE_SESSION_SECRET;
50
- const trustProxy = program.trustProxy || process.env.PARSE_DASHBOARD_TRUST_PROXY;
51
- const dev = program.dev;
46
+ const host = options.host || process.env.HOST || '0.0.0.0';
47
+ const port = options.port || process.env.PORT || 4040;
48
+ const mountPath = options.mountPath || process.env.MOUNT_PATH || '/';
49
+ const allowInsecureHTTP = options.allowInsecureHTTP || process.env.PARSE_DASHBOARD_ALLOW_INSECURE_HTTP;
50
+ const cookieSessionSecret = options.cookieSessionSecret || process.env.PARSE_DASHBOARD_COOKIE_SESSION_SECRET;
51
+ const trustProxy = options.trustProxy || process.env.PARSE_DASHBOARD_TRUST_PROXY;
52
+ const dev = options.dev;
52
53
 
53
54
  if (trustProxy && allowInsecureHTTP) {
54
55
  console.log('Set only trustProxy *or* allowInsecureHTTP, not both. Only one is needed to handle being behind a proxy.');
55
56
  process.exit(-1);
56
57
  }
57
58
 
58
- let explicitConfigFileProvided = !!program.config;
59
+ let explicitConfigFileProvided = !!options.config;
59
60
  let configFile = null;
60
61
  let configFromCLI = null;
61
- let configServerURL = program.serverURL || process.env.PARSE_DASHBOARD_SERVER_URL;
62
- let configGraphQLServerURL = program.graphQLServerURL || process.env.PARSE_DASHBOARD_GRAPHQL_SERVER_URL;
63
- let configMasterKey = program.masterKey || process.env.PARSE_DASHBOARD_MASTER_KEY;
64
- let configAppId = program.appId || process.env.PARSE_DASHBOARD_APP_ID;
65
- let configAppName = program.appName || process.env.PARSE_DASHBOARD_APP_NAME;
66
- let configUserId = program.userId || process.env.PARSE_DASHBOARD_USER_ID;
67
- let configUserPassword = program.userPassword || process.env.PARSE_DASHBOARD_USER_PASSWORD;
68
- let configSSLKey = program.sslKey || process.env.PARSE_DASHBOARD_SSL_KEY;
69
- let configSSLCert = program.sslCert || process.env.PARSE_DASHBOARD_SSL_CERT;
62
+ let configServerURL = options.serverURL || process.env.PARSE_DASHBOARD_SERVER_URL;
63
+ let configGraphQLServerURL = options.graphQLServerURL || process.env.PARSE_DASHBOARD_GRAPHQL_SERVER_URL;
64
+ let configMasterKey = options.masterKey || process.env.PARSE_DASHBOARD_MASTER_KEY;
65
+ let configAppId = options.appId || process.env.PARSE_DASHBOARD_APP_ID;
66
+ let configAppName = options.appName || process.env.PARSE_DASHBOARD_APP_NAME;
67
+ let configUserId = options.userId || process.env.PARSE_DASHBOARD_USER_ID;
68
+ let configUserPassword = options.userPassword || process.env.PARSE_DASHBOARD_USER_PASSWORD;
69
+ let configSSLKey = options.sslKey || process.env.PARSE_DASHBOARD_SSL_KEY;
70
+ let configSSLCert = options.sslCert || process.env.PARSE_DASHBOARD_SSL_CERT;
70
71
 
71
72
  function handleSIGs(server) {
72
73
  const signals = {
@@ -86,7 +87,7 @@ function handleSIGs(server) {
86
87
  });
87
88
  }
88
89
 
89
- if (!program.config && !process.env.PARSE_DASHBOARD_CONFIG) {
90
+ if (!options.config && !process.env.PARSE_DASHBOARD_CONFIG) {
90
91
  if (configServerURL && configMasterKey && configAppId) {
91
92
  configFromCLI = {
92
93
  data: {
@@ -114,13 +115,13 @@ if (!program.config && !process.env.PARSE_DASHBOARD_CONFIG) {
114
115
  } else if (!configServerURL && !configMasterKey && !configAppName) {
115
116
  configFile = path.join(__dirname, 'parse-dashboard-config.json');
116
117
  }
117
- } else if (!program.config && process.env.PARSE_DASHBOARD_CONFIG) {
118
+ } else if (!options.config && process.env.PARSE_DASHBOARD_CONFIG) {
118
119
  configFromCLI = {
119
120
  data: JSON.parse(process.env.PARSE_DASHBOARD_CONFIG)
120
121
  };
121
122
  } else {
122
- configFile = program.config;
123
- if (program.appId || program.serverURL || program.masterKey || program.appName || program.graphQLServerURL) {
123
+ configFile = options.config;
124
+ if (options.appId || options.serverURL || options.masterKey || options.appName || options.graphQLServerURL) {
124
125
  console.log('You must provide either a config file or other CLI options (appName, appId, masterKey, serverURL, and graphQLServerURL); not both.');
125
126
  process.exit(3);
126
127
  }
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[798],{24798:(e,n,t)=>{t.r(n),t.d(n,{BREAK:()=>ne.$_,BreakingChangeType:()=>Cn,DEFAULT_DEPRECATION_REASON:()=>K.SY,DangerousChangeType:()=>Gn,DirectiveLocation:()=>te.B,ExecutableDefinitionsRule:()=>pe.i,FieldsOnCorrectTypeRule:()=>de.A,FragmentsOnCompositeTypesRule:()=>fe.T,GRAPHQL_MAX_INT:()=>z.HI,GRAPHQL_MIN_INT:()=>z.st,GraphQLBoolean:()=>z.EZ,GraphQLDeprecatedDirective:()=>K.fg,GraphQLDirective:()=>K.NZ,GraphQLEnumType:()=>_.mR,GraphQLError:()=>y.__,GraphQLFloat:()=>z.av,GraphQLID:()=>z.km,GraphQLIncludeDirective:()=>K.Yf,GraphQLInputObjectType:()=>_.sR,GraphQLInt:()=>z._o,GraphQLInterfaceType:()=>_.oW,GraphQLList:()=>_.p2,GraphQLNonNull:()=>_.bM,GraphQLObjectType:()=>_.h6,GraphQLScalarType:()=>_.n2,GraphQLSchema:()=>H.XO,GraphQLSkipDirective:()=>K.QE,GraphQLSpecifiedByDirective:()=>K.df,GraphQLString:()=>z.kH,GraphQLUnionType:()=>_.Gp,Kind:()=>h.h,KnownArgumentNamesRule:()=>me.e,KnownDirectivesRule:()=>ye.J,KnownFragmentNamesRule:()=>Ee.a,KnownTypeNamesRule:()=>ve.I,Lexer:()=>W.h,Location:()=>T.Ye,LoneAnonymousOperationRule:()=>Te.F,LoneSchemaDefinitionRule:()=>Ce.t,NoDeprecatedCustomRule:()=>He.r,NoFragmentCyclesRule:()=>he.H,NoSchemaIntrospectionCustomRule:()=>ue,NoUndefinedVariablesRule:()=>_e.$,NoUnusedFragmentsRule:()=>Ne.J,NoUnusedVariablesRule:()=>De.p,OperationTypeNode:()=>T.ku,OverlappingFieldsCanBeMergedRule:()=>Re.y,PossibleFragmentSpreadsRule:()=>ge.a,PossibleTypeExtensionsRule:()=>qe.g,ProvidedRequiredArgumentsRule:()=>Ie.s,ScalarLeafsRule:()=>Ae.O,SchemaMetaFieldDef:()=>N.Az,SingleFieldSubscriptionsRule:()=>Oe.Z,Source:()=>Y.H,Token:()=>T.WU,TokenKind:()=>J.T,TypeInfo:()=>rt.a,TypeKind:()=>N.zU,TypeMetaFieldDef:()=>N.tF,TypeNameMetaFieldDef:()=>N.hU,UniqueArgumentDefinitionNamesRule:()=>ke.L,UniqueArgumentNamesRule:()=>be.L,UniqueDirectiveNamesRule:()=>Qe.o,UniqueDirectivesPerLocationRule:()=>we.k,UniqueEnumValueNamesRule:()=>xe.L,UniqueFieldDefinitionNamesRule:()=>je.y,UniqueFragmentNamesRule:()=>Ve.N,UniqueInputFieldNamesRule:()=>Se.P,UniqueOperationNamesRule:()=>Le.H,UniqueOperationTypesRule:()=>Ge.q,UniqueTypeNamesRule:()=>Pe.P,UniqueVariableNamesRule:()=>Me.H,ValidationContext:()=>ce._t,ValuesOfCorrectTypeRule:()=>$e.j,VariablesAreInputTypesRule:()=>Fe.I,VariablesInAllowedPositionRule:()=>Ue.w,__Directive:()=>N.l3,__DirectiveLocation:()=>N.x2,__EnumValue:()=>N.jT,__Field:()=>N.e_,__InputValue:()=>N.XQ,__Schema:()=>N.TK,__Type:()=>N.qz,__TypeKind:()=>N.PX,assertAbstractType:()=>_.fU,assertCompositeType:()=>_.M_,assertDirective:()=>K.CO,assertEnumType:()=>_.Zu,assertEnumValueName:()=>X.g,assertInputObjectType:()=>_.U8,assertInputType:()=>_.qT,assertInterfaceType:()=>_.k2,assertLeafType:()=>_.H5,assertListType:()=>_.kS,assertName:()=>X.i,assertNamedType:()=>_.rM,assertNonNullType:()=>_.E$,assertNullableType:()=>_.i_,assertObjectType:()=>_.Z6,assertOutputType:()=>_.Gt,assertScalarType:()=>_.Pt,assertSchema:()=>H.EO,assertType:()=>_.p_,assertUnionType:()=>_.rc,assertValidName:()=>$n,assertValidSchema:()=>u.J,assertWrappingType:()=>_.vX,astFromValue:()=>yn.J,buildASTSchema:()=>an,buildClientSchema:()=>nt.Z,buildSchema:()=>sn,coerceInputValue:()=>it.K,concatAST:()=>wn,createSourceEventStream:()=>se,defaultFieldResolver:()=>x,defaultTypeResolver:()=>P,doTypesOverlap:()=>at.zR,execute:()=>I,executeSync:()=>A,extendSchema:()=>en,findBreakingChanges:()=>Pn,findDangerousChanges:()=>xn,formatError:()=>y.Z,getDirectiveValues:()=>R.zu,getEnterLeaveForKind:()=>ne.Eu,getIntrospectionQuery:()=>Ye.K,getLocation:()=>B.k,getNamedType:()=>_.xC,getNullableType:()=>_.tf,getOperationAST:()=>ze,getOperationRootType:()=>Xe,getVariableValues:()=>R.QF,getVisitFn:()=>ne.CK,graphql:()=>k,graphqlSync:()=>Q,introspectionFromSchema:()=>Be,introspectionTypes:()=>N.nL,isAbstractType:()=>_.m0,isCompositeType:()=>_.Gv,isConstValueNode:()=>oe.Of,isDefinitionNode:()=>oe.Ir,isDirective:()=>K.wX,isEnumType:()=>_.EM,isEqualType:()=>at._7,isExecutableDefinitionNode:()=>oe.Wk,isInputObjectType:()=>_.hL,isInputType:()=>_.j$,isInterfaceType:()=>_.oT,isIntrospectionType:()=>N.s9,isLeafType:()=>_.UT,isListType:()=>_.HG,isNamedType:()=>_.Zs,isNonNullType:()=>_.zM,isNullableType:()=>_.zP,isObjectType:()=>_.lp,isOutputType:()=>_.SZ,isRequiredArgument:()=>_.dK,isRequiredInputField:()=>_.Wd,isScalarType:()=>_.KA,isSchema:()=>H.nN,isSelectionNode:()=>oe.pO,isSpecifiedDirective:()=>K.xg,isSpecifiedScalarType:()=>z.u1,isType:()=>_.P9,isTypeDefinitionNode:()=>oe.zT,isTypeExtensionNode:()=>oe.D$,isTypeNode:()=>oe.VB,isTypeSubTypeOf:()=>at.uJ,isTypeSystemDefinitionNode:()=>oe.G4,isTypeSystemExtensionNode:()=>oe.aU,isUnionType:()=>_.EN,isValidNameError:()=>Fn,isValueNode:()=>oe.nr,isWrappingType:()=>_.fw,lexicographicSortSchema:()=>ln,locatedError:()=>v,parse:()=>s.Qc,parseConstValue:()=>s.tl,parseType:()=>s.gZ,parseValue:()=>s.H2,print:()=>ee.S,printError:()=>y.OS,printIntrospectionSchema:()=>vn,printLocation:()=>Z.Q,printSchema:()=>En,printSourceLocation:()=>Z.z,printType:()=>Nn,resolveObjMapThunk:()=>_.WB,resolveReadonlyArrayThunk:()=>_._9,responsePathAsArray:()=>m.N,separateOperations:()=>Vn,specifiedDirectives:()=>K.V4,specifiedRules:()=>le.i,specifiedScalarTypes:()=>z.HS,stripIgnoredCharacters:()=>Mn,subscribe:()=>ae,syntaxError:()=>Ke.h,typeFromAST:()=>tt._,validate:()=>c.Gu,validateSchema:()=>u.F,valueFromAST:()=>Je.u,valueFromASTUntyped:()=>ot.M,version:()=>o,versionInfo:()=>r,visit:()=>ne.Vn,visitInParallel:()=>ne.j1,visitWithTypeInfo:()=>rt.y});const o="16.3.0",r=Object.freeze({major:16,minor:3,patch:0,preReleaseTag:null});var i=t(34317);function a(e){return"function"==typeof(null==e?void 0:e.then)}var s=t(65449),u=t(96374),c=t(59047),l=t(57493),p=t(87021),d=t(98130),f=t(52689),m=t(88274),y=t(7990);class E extends Error{constructor(e){super("Unexpected error value: "+(0,l.X)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function v(e,n,t){var o;const r=(i=e)instanceof Error?i:new E(i);var i,a;return a=r,Array.isArray(a.path)?r:new y.__(r.message,null!==(o=r.nodes)&&void 0!==o?o:n,r.source,r.positions,t,r)}var T=t(35239),h=t(57554),_=t(84553),N=t(82299),D=t(36819),R=t(93059);const g=function(e){let n;return function(e,t,o){void 0===n&&(n=new WeakMap);let r=n.get(e);void 0===r&&(r=new WeakMap,n.set(e,r));let i=r.get(t);void 0===i&&(i=new WeakMap,r.set(t,i));let a=i.get(o);return void 0===a&&(s=e,u=t,c=o,a=(0,D.w)(s.schema,s.fragments,s.variableValues,u,c),i.set(o,a)),a;var s,u,c}}();function I(e){arguments.length<2||(0,i.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:n,document:t,variableValues:o,rootValue:r}=e;b(n,t,o);const s=w(e);if(!("schema"in s))return{errors:s};try{const{operation:e}=s,n=V(s,e,r);return a(n)?n.then((e=>O(e,s.errors)),(e=>(s.errors.push(e),O(null,s.errors)))):O(n,s.errors)}catch(e){return s.errors.push(e),O(null,s.errors)}}function A(e){const n=I(e);if(a(n))throw new Error("GraphQL execution failed to complete synchronously.");return n}function O(e,n){return 0===n.length?{data:e}:{errors:n,data:e}}function b(e,n,t){n||(0,i.a)(!1,"Must provide document."),(0,u.J)(e),null==t||(0,f.y)(t)||(0,i.a)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function w(e){var n,t;const{schema:o,document:r,rootValue:i,contextValue:a,variableValues:s,operationName:u,fieldResolver:c,typeResolver:l,subscribeFieldResolver:p}=e;let d;const f=Object.create(null);for(const e of r.definitions)switch(e.kind){case h.h.OPERATION_DEFINITION:if(null==u){if(void 0!==d)return[new y.__("Must provide operation name if query contains multiple operations.")];d=e}else(null===(n=e.name)||void 0===n?void 0:n.value)===u&&(d=e);break;case h.h.FRAGMENT_DEFINITION:f[e.name.value]=e}if(!d)return null!=u?[new y.__(`Unknown operation named "${u}".`)]:[new y.__("Must provide an operation.")];const m=null!==(t=d.variableDefinitions)&&void 0!==t?t:[],E=(0,R.QF)(o,m,null!=s?s:{},{maxErrors:50});return E.errors?E.errors:{schema:o,fragments:f,rootValue:i,contextValue:a,operation:d,variableValues:E.coerced,fieldResolver:null!=c?c:x,typeResolver:null!=l?l:P,subscribeFieldResolver:null!=p?p:x,errors:[]}}function V(e,n,t){const o=e.schema.getRootType(n.operation);if(null==o)throw new y.__(`Schema is not configured to execute ${n.operation} operation.`,n);const r=(0,D.g)(e.schema,e.fragments,e.variableValues,o,n.selectionSet),i=void 0;switch(n.operation){case T.ku.QUERY:return S(e,o,t,i,r);case T.ku.MUTATION:return function(e,n,t,o,r){return function(e,n,t){let o=Object.create(null);for(const t of e)o=a(o)?o.then((e=>n(e,t))):n(o,t);return o}(r.entries(),((o,[r,i])=>{const s=(0,m.Q)(undefined,r,n.name),u=L(e,n,t,i,s);return void 0===u?o:a(u)?u.then((e=>(o[r]=e,o))):(o[r]=u,o)}))}(e,o,t,0,r);case T.ku.SUBSCRIPTION:return S(e,o,t,i,r)}}function S(e,n,t,o,r){const i=Object.create(null);let s=!1;for(const[u,c]of r.entries()){const r=L(e,n,t,c,(0,m.Q)(o,u,n.name));void 0!==r&&(i[u]=r,a(r)&&(s=!0))}return s?(u=i,Promise.all(Object.values(u)).then((e=>{const n=Object.create(null);for(const[t,o]of Object.keys(u).entries())n[o]=e[t];return n}))):i;var u}function L(e,n,t,o,r){var i;const s=j(e.schema,n,o[0]);if(!s)return;const u=s.type,c=null!==(i=s.resolve)&&void 0!==i?i:e.fieldResolver,l=M(e,s,o,n,r);try{const n=c(t,(0,R.LX)(s,o[0],e.variableValues),e.contextValue,l);let i;return i=a(n)?n.then((n=>F(e,u,o,l,r,n))):F(e,u,o,l,r,n),a(i)?i.then(void 0,(n=>$(v(n,o,(0,m.N)(r)),u,e))):i}catch(n){return $(v(n,o,(0,m.N)(r)),u,e)}}function M(e,n,t,o,r){return{fieldName:n.name,fieldNodes:t,returnType:n.type,parentType:o,path:r,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function $(e,n,t){if((0,_.zM)(n))throw e;return t.errors.push(e),null}function F(e,n,t,o,r,i){if(i instanceof Error)throw i;if((0,_.zM)(n)){const a=F(e,n.ofType,t,o,r,i);if(null===a)throw new Error(`Cannot return null for non-nullable field ${o.parentType.name}.${o.fieldName}.`);return a}return null==i?null:(0,_.HG)(n)?function(e,n,t,o,r,i){if(!(0,d.i)(i))throw new y.__(`Expected Iterable, but did not find one for field "${o.parentType.name}.${o.fieldName}".`);const s=n.ofType;let u=!1;const c=Array.from(i,((n,i)=>{const c=(0,m.Q)(r,i,void 0);try{let r;return r=a(n)?n.then((n=>F(e,s,t,o,c,n))):F(e,s,t,o,c,n),a(r)?(u=!0,r.then(void 0,(n=>$(v(n,t,(0,m.N)(c)),s,e)))):r}catch(n){return $(v(n,t,(0,m.N)(c)),s,e)}}));return u?Promise.all(c):c}(e,n,t,o,r,i):(0,_.UT)(n)?function(e,n){const t=e.serialize(n);if(null==t)throw new Error(`Expected \`${(0,l.X)(e)}.serialize(${(0,l.X)(n)})\` to return non-nullable value, returned: ${(0,l.X)(t)}`);return t}(n,i):(0,_.m0)(n)?function(e,n,t,o,r,i){var s;const u=null!==(s=n.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,l=u(i,c,o,n);return a(l)?l.then((a=>C(e,U(a,e,n,t,o,i),t,o,r,i))):C(e,U(l,e,n,t,o,i),t,o,r,i)}(e,n,t,o,r,i):(0,_.lp)(n)?C(e,n,t,o,r,i):void(0,p.k)(!1,"Cannot complete value of unexpected output type: "+(0,l.X)(n))}function U(e,n,t,o,r,i){if(null==e)throw new y.__(`Abstract type "${t.name}" must resolve to an Object type at runtime for field "${r.parentType.name}.${r.fieldName}". Either the "${t.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,o);if((0,_.lp)(e))throw new y.__("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new y.__(`Abstract type "${t.name}" must resolve to an Object type at runtime for field "${r.parentType.name}.${r.fieldName}" with value ${(0,l.X)(i)}, received "${(0,l.X)(e)}".`);const a=n.schema.getType(e);if(null==a)throw new y.__(`Abstract type "${t.name}" was resolved to a type "${e}" that does not exist inside the schema.`,o);if(!(0,_.lp)(a))throw new y.__(`Abstract type "${t.name}" was resolved to a non-object type "${e}".`,o);if(!n.schema.isSubType(t,a))throw new y.__(`Runtime Object type "${a.name}" is not a possible type for "${t.name}".`,o);return a}function C(e,n,t,o,r,i){const s=g(e,n,t);if(n.isTypeOf){const u=n.isTypeOf(i,e.contextValue,o);if(a(u))return u.then((o=>{if(!o)throw G(n,i,t);return S(e,n,i,r,s)}));if(!u)throw G(n,i,t)}return S(e,n,i,r,s)}function G(e,n,t){return new y.__(`Expected value of type "${e.name}" but got: ${(0,l.X)(n)}.`,t)}const P=function(e,n,t,o){if((0,f.y)(e)&&"string"==typeof e.__typename)return e.__typename;const r=t.schema.getPossibleTypes(o),i=[];for(let o=0;o<r.length;o++){const s=r[o];if(s.isTypeOf){const r=s.isTypeOf(e,n,t);if(a(r))i[o]=r;else if(r)return s.name}}return i.length?Promise.all(i).then((e=>{for(let n=0;n<e.length;n++)if(e[n])return r[n].name})):void 0},x=function(e,n,t,o){if((0,f.y)(e)||"function"==typeof e){const r=e[o.fieldName];return"function"==typeof r?e[o.fieldName](n,t,o):r}};function j(e,n,t){const o=t.name.value;return o===N.Az.name&&e.getQueryType()===n?N.Az:o===N.tF.name&&e.getQueryType()===n?N.tF:o===N.hU.name?N.hU:n.getFields()[o]}function k(e){return new Promise((n=>n(q(e))))}function Q(e){const n=q(e);if(a(n))throw new Error("GraphQL execution failed to complete synchronously.");return n}function q(e){arguments.length<2||(0,i.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:n,source:t,rootValue:o,contextValue:r,variableValues:a,operationName:l,fieldResolver:p,typeResolver:d}=e,f=(0,u.F)(n);if(f.length>0)return{errors:f};let m;try{m=(0,s.Qc)(t)}catch(e){return{errors:[e]}}const y=(0,c.Gu)(n,m);return y.length>0?{errors:y}:I({schema:n,document:m,rootValue:o,contextValue:r,variableValues:a,operationName:l,fieldResolver:p,typeResolver:d})}var H=t(12640),K=t(73798),z=t(62697),X=t(82293),Y=t(23476),B=t(31472),Z=t(56403),W=t(78636),J=t(20471),ee=t(54785),ne=t(43165),te=t(65916),oe=t(14734);function re(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}function ie(e,n){const t=e[Symbol.asyncIterator]();async function o(e){if(e.done)return e;try{return{value:await n(e.value),done:!1}}catch(e){if("function"==typeof t.return)try{await t.return()}catch(e){}throw e}}return{next:async()=>o(await t.next()),return:async()=>"function"==typeof t.return?o(await t.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof t.throw)return o(await t.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function ae(e){arguments.length<2||(0,i.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:n,document:t,rootValue:o,contextValue:r,variableValues:a,operationName:s,fieldResolver:u,subscribeFieldResolver:c}=e,l=await se(n,t,o,r,a,s,c);if(!re(l))return l;const p=e=>I({schema:n,document:t,rootValue:e,contextValue:r,variableValues:a,operationName:s,fieldResolver:u});return ie(l,p)}async function se(e,n,t,o,r,i,a){b(e,n,r);const s=w({schema:e,document:n,rootValue:t,contextValue:o,variableValues:r,operationName:i,subscribeFieldResolver:a});if(!("schema"in s))return{errors:s};try{const e=await async function(e){const{schema:n,fragments:t,operation:o,variableValues:r,rootValue:i}=e,a=n.getSubscriptionType();if(null==a)throw new y.__("Schema is not configured to execute subscription operation.",o);const s=(0,D.g)(n,t,r,a,o.selectionSet),[u,c]=[...s.entries()][0],l=j(n,a,c[0]);if(!l){const e=c[0].name.value;throw new y.__(`The subscription field "${e}" is not defined.`,c)}const p=(0,m.Q)(void 0,u,a.name),d=M(e,l,c,a,p);try{var f;const n=(0,R.LX)(l,c[0],r),t=e.contextValue,o=null!==(f=l.subscribe)&&void 0!==f?f:e.subscribeFieldResolver,a=await o(i,n,t,d);if(a instanceof Error)throw a;return a}catch(e){throw v(e,c,(0,m.N)(p))}}(s);if(!re(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,l.X)(e)}.`);return e}catch(e){if(e instanceof y.__)return{errors:[e]};throw e}}function ue(e){return{Field(n){const t=(0,_.xC)(e.getType());t&&(0,N.s9)(t)&&e.reportError(new y.__(`GraphQL introspection has been disabled, but the requested query contained the field "${n.name.value}".`,n))}}}var ce=t(81931),le=t(49159),pe=t(33023),de=t(78781),fe=t(38494),me=t(61479),ye=t(16125),Ee=t(85612),ve=t(30265),Te=t(15607),he=t(94736),_e=t(22795),Ne=t(1742),De=t(17839),Re=t(11504),ge=t(88191),Ie=t(35410),Ae=t(18748),Oe=t(57342),be=t(56092),we=t(89421),Ve=t(41941),Se=t(41267),Le=t(5754),Me=t(76890),$e=t(73254),Fe=t(40516),Ue=t(52244),Ce=t(6575),Ge=t(14510),Pe=t(48888),xe=t(50666),je=t(86608),ke=t(68305),Qe=t(76362),qe=t(90297),He=t(33034),Ke=t(23445);function ze(e,n){let t=null;for(const r of e.definitions){var o;if(r.kind===h.h.OPERATION_DEFINITION)if(null==n){if(t)return null;t=r}else if((null===(o=r.name)||void 0===o?void 0:o.value)===n)return r}return t}function Xe(e,n){if("query"===n.operation){const t=e.getQueryType();if(!t)throw new y.__("Schema does not define the required query root type.",n);return t}if("mutation"===n.operation){const t=e.getMutationType();if(!t)throw new y.__("Schema is not configured for mutations.",n);return t}if("subscription"===n.operation){const t=e.getSubscriptionType();if(!t)throw new y.__("Schema is not configured for subscriptions.",n);return t}throw new y.__("Can only have query, mutation and subscription operations.",n)}var Ye=t(90724);function Be(e,n){const t={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...n},o=A({schema:e,document:(0,s.Qc)((0,Ye.K)(t))});return!o.errors&&o.data||(0,p.k)(!1),o.data}var Ze=t(6981),We=t(58037),Je=t(83178);function en(e,n,t){(0,H.EO)(e),null!=n&&n.kind===h.h.DOCUMENT||(0,i.a)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,c.ED)(n,e);const o=e.toConfig(),r=nn(o,n,t);return o===r?e:new H.XO(r)}function nn(e,n,t){var o,r,i,a;const s=[],u=Object.create(null),c=[];let d;const f=[];for(const e of n.definitions)if(e.kind===h.h.SCHEMA_DEFINITION)d=e;else if(e.kind===h.h.SCHEMA_EXTENSION)f.push(e);else if((0,oe.zT)(e))s.push(e);else if((0,oe.D$)(e)){const n=e.name.value,t=u[n];u[n]=t?t.concat([e]):[e]}else e.kind===h.h.DIRECTIVE_DEFINITION&&c.push(e);if(0===Object.keys(u).length&&0===s.length&&0===c.length&&0===f.length&&null==d)return e;const m=Object.create(null);for(const n of e.types)m[n.name]=(y=n,(0,N.s9)(y)||(0,z.u1)(y)?y:(0,_.KA)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[t.name])&&void 0!==n?n:[];let r=t.specifiedByURL;for(const e of o){var i;r=null!==(i=rn(e))&&void 0!==i?i:r}return new _.n2({...t,specifiedByURL:r,extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):(0,_.lp)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[t.name])&&void 0!==n?n:[];return new _.h6({...t,interfaces:()=>[...e.getInterfaces().map(D),...L(o)],fields:()=>({...(0,We.j)(t.fields,R),...b(o)}),extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):(0,_.oT)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[t.name])&&void 0!==n?n:[];return new _.oW({...t,interfaces:()=>[...e.getInterfaces().map(D),...L(o)],fields:()=>({...(0,We.j)(t.fields,R),...b(o)}),extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):(0,_.EN)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[t.name])&&void 0!==n?n:[];return new _.Gp({...t,types:()=>[...e.getTypes().map(D),...M(o)],extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):(0,_.EM)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[e.name])&&void 0!==n?n:[];return new _.mR({...t,values:{...t.values,...S(o)},extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):(0,_.hL)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[t.name])&&void 0!==n?n:[];return new _.sR({...t,fields:()=>({...(0,We.j)(t.fields,(e=>({...e,type:T(e.type)}))),...V(o)}),extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):void(0,p.k)(!1,"Unexpected type: "+(0,l.X)(y)));var y;for(const e of s){var E;const n=e.name.value;m[n]=null!==(E=tn[n])&&void 0!==E?E:$(e)}const v={query:e.query&&D(e.query),mutation:e.mutation&&D(e.mutation),subscription:e.subscription&&D(e.subscription),...d&&I([d]),...I(f)};return{description:null===(o=d)||void 0===o||null===(r=o.description)||void 0===r?void 0:r.value,...v,types:Object.values(m),directives:[...e.directives.map((function(e){const n=e.toConfig();return new K.NZ({...n,args:(0,We.j)(n.args,g)})})),...c.map((function(e){var n;return new K.NZ({name:e.name.value,description:null===(n=e.description)||void 0===n?void 0:n.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:w(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(i=d)&&void 0!==i?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null==t?void 0:t.assumeValid)&&void 0!==a&&a};function T(e){return(0,_.HG)(e)?new _.p2(T(e.ofType)):(0,_.zM)(e)?new _.bM(T(e.ofType)):D(e)}function D(e){return m[e.name]}function R(e){return{...e,type:T(e.type),args:e.args&&(0,We.j)(e.args,g)}}function g(e){return{...e,type:T(e.type)}}function I(e){const n={};for(const o of e){var t;const e=null!==(t=o.operationTypes)&&void 0!==t?t:[];for(const t of e)n[t.operation]=A(t.type)}return n}function A(e){var n;const t=e.name.value,o=null!==(n=tn[t])&&void 0!==n?n:m[t];if(void 0===o)throw new Error(`Unknown type: "${t}".`);return o}function O(e){return e.kind===h.h.LIST_TYPE?new _.p2(O(e.type)):e.kind===h.h.NON_NULL_TYPE?new _.bM(O(e.type)):A(e)}function b(e){const n=Object.create(null);for(const r of e){var t;const e=null!==(t=r.fields)&&void 0!==t?t:[];for(const t of e){var o;n[t.name.value]={type:O(t.type),description:null===(o=t.description)||void 0===o?void 0:o.value,args:w(t.arguments),deprecationReason:on(t),astNode:t}}}return n}function w(e){const n=null!=e?e:[],t=Object.create(null);for(const e of n){var o;const n=O(e.type);t[e.name.value]={type:n,description:null===(o=e.description)||void 0===o?void 0:o.value,defaultValue:(0,Je.u)(e.defaultValue,n),deprecationReason:on(e),astNode:e}}return t}function V(e){const n=Object.create(null);for(const r of e){var t;const e=null!==(t=r.fields)&&void 0!==t?t:[];for(const t of e){var o;const e=O(t.type);n[t.name.value]={type:e,description:null===(o=t.description)||void 0===o?void 0:o.value,defaultValue:(0,Je.u)(t.defaultValue,e),deprecationReason:on(t),astNode:t}}}return n}function S(e){const n=Object.create(null);for(const r of e){var t;const e=null!==(t=r.values)&&void 0!==t?t:[];for(const t of e){var o;n[t.name.value]={description:null===(o=t.description)||void 0===o?void 0:o.value,deprecationReason:on(t),astNode:t}}}return n}function L(e){return e.flatMap((e=>{var n,t;return null!==(n=null===(t=e.interfaces)||void 0===t?void 0:t.map(A))&&void 0!==n?n:[]}))}function M(e){return e.flatMap((e=>{var n,t;return null!==(n=null===(t=e.types)||void 0===t?void 0:t.map(A))&&void 0!==n?n:[]}))}function $(e){var n;const t=e.name.value,o=null!==(n=u[t])&&void 0!==n?n:[];switch(e.kind){case h.h.OBJECT_TYPE_DEFINITION:{var r;const n=[e,...o];return new _.h6({name:t,description:null===(r=e.description)||void 0===r?void 0:r.value,interfaces:()=>L(n),fields:()=>b(n),astNode:e,extensionASTNodes:o})}case h.h.INTERFACE_TYPE_DEFINITION:{var i;const n=[e,...o];return new _.oW({name:t,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>L(n),fields:()=>b(n),astNode:e,extensionASTNodes:o})}case h.h.ENUM_TYPE_DEFINITION:{var a;const n=[e,...o];return new _.mR({name:t,description:null===(a=e.description)||void 0===a?void 0:a.value,values:S(n),astNode:e,extensionASTNodes:o})}case h.h.UNION_TYPE_DEFINITION:{var s;const n=[e,...o];return new _.Gp({name:t,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>M(n),astNode:e,extensionASTNodes:o})}case h.h.SCALAR_TYPE_DEFINITION:var c;return new _.n2({name:t,description:null===(c=e.description)||void 0===c?void 0:c.value,specifiedByURL:rn(e),astNode:e,extensionASTNodes:o});case h.h.INPUT_OBJECT_TYPE_DEFINITION:{var l;const n=[e,...o];return new _.sR({name:t,description:null===(l=e.description)||void 0===l?void 0:l.value,fields:()=>V(n),astNode:e,extensionASTNodes:o})}}}}const tn=(0,Ze.P)([...z.HS,...N.nL],(e=>e.name));function on(e){const n=(0,R.zu)(K.fg,e);return null==n?void 0:n.reason}function rn(e){const n=(0,R.zu)(K.df,e);return null==n?void 0:n.url}function an(e,n){null!=e&&e.kind===h.h.DOCUMENT||(0,i.a)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,c.zo)(e);const t=nn({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,n);if(null==t.astNode)for(const e of t.types)switch(e.name){case"Query":t.query=e;break;case"Mutation":t.mutation=e;break;case"Subscription":t.subscription=e}const o=[...t.directives,...K.V4.filter((e=>t.directives.every((n=>n.name!==e.name))))];return new H.XO({...t,directives:o})}function sn(e,n){return an((0,s.Qc)(e,{noLocation:null==n?void 0:n.noLocation,allowLegacyFragmentVariables:null==n?void 0:n.allowLegacyFragmentVariables}),{assumeValidSDL:null==n?void 0:n.assumeValidSDL,assumeValid:null==n?void 0:n.assumeValid})}var un=t(51195),cn=t(81403);function ln(e){const n=e.toConfig(),t=(0,un.w)(dn(n.types),(e=>e.name),(function(e){if((0,_.KA)(e)||(0,N.s9)(e))return e;if((0,_.lp)(e)){const n=e.toConfig();return new _.h6({...n,interfaces:()=>u(n.interfaces),fields:()=>s(n.fields)})}if((0,_.oT)(e)){const n=e.toConfig();return new _.oW({...n,interfaces:()=>u(n.interfaces),fields:()=>s(n.fields)})}if((0,_.EN)(e)){const n=e.toConfig();return new _.Gp({...n,types:()=>u(n.types)})}if((0,_.EM)(e)){const n=e.toConfig();return new _.mR({...n,values:pn(n.values,(e=>e))})}if((0,_.hL)(e)){const n=e.toConfig();return new _.sR({...n,fields:()=>pn(n.fields,(e=>({...e,type:o(e.type)})))})}(0,p.k)(!1,"Unexpected type: "+(0,l.X)(e))}));return new H.XO({...n,types:Object.values(t),directives:dn(n.directives).map((function(e){const n=e.toConfig();return new K.NZ({...n,locations:fn(n.locations,(e=>e)),args:a(n.args)})})),query:i(n.query),mutation:i(n.mutation),subscription:i(n.subscription)});function o(e){return(0,_.HG)(e)?new _.p2(o(e.ofType)):(0,_.zM)(e)?new _.bM(o(e.ofType)):r(e)}function r(e){return t[e.name]}function i(e){return e&&r(e)}function a(e){return pn(e,(e=>({...e,type:o(e.type)})))}function s(e){return pn(e,(e=>({...e,type:o(e.type),args:e.args&&a(e.args)})))}function u(e){return dn(e).map(r)}}function pn(e,n){const t=Object.create(null);for(const o of Object.keys(e).sort(cn.K))t[o]=n(e[o]);return t}function dn(e){return fn(e,(e=>e.name))}function fn(e,n){return e.slice().sort(((e,t)=>{const o=n(e),r=n(t);return(0,cn.K)(o,r)}))}var mn=t(25965),yn=t(29936);function En(e){return hn(e,(e=>!(0,K.xg)(e)),Tn)}function vn(e){return hn(e,K.xg,N.s9)}function Tn(e){return!(0,z.u1)(e)&&!(0,N.s9)(e)}function hn(e,n,t){const o=e.getDirectives().filter(n),r=Object.values(e.getTypeMap()).filter(t);return[_n(e),...o.map((e=>function(e){return bn(e)+"directive @"+e.name+In(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...r.map((e=>Nn(e)))].filter(Boolean).join("\n\n")}function _n(e){if(null==e.description&&function(e){const n=e.getQueryType();if(n&&"Query"!==n.name)return!1;const t=e.getMutationType();if(t&&"Mutation"!==t.name)return!1;const o=e.getSubscriptionType();return!o||"Subscription"===o.name}(e))return;const n=[],t=e.getQueryType();t&&n.push(` query: ${t.name}`);const o=e.getMutationType();o&&n.push(` mutation: ${o.name}`);const r=e.getSubscriptionType();return r&&n.push(` subscription: ${r.name}`),bn(e)+`schema {\n${n.join("\n")}\n}`}function Nn(e){return(0,_.KA)(e)?function(e){return bn(e)+`scalar ${e.name}`+(null==(n=e).specifiedByURL?"":` @specifiedBy(url: ${(0,ee.S)({kind:h.h.STRING,value:n.specifiedByURL})})`);var n}(e):(0,_.lp)(e)?function(e){return bn(e)+`type ${e.name}`+Dn(e)+Rn(e)}(e):(0,_.oT)(e)?function(e){return bn(e)+`interface ${e.name}`+Dn(e)+Rn(e)}(e):(0,_.EN)(e)?function(e){const n=e.getTypes(),t=n.length?" = "+n.join(" | "):"";return bn(e)+"union "+e.name+t}(e):(0,_.EM)(e)?function(e){const n=e.getValues().map(((e,n)=>bn(e," ",!n)+" "+e.name+On(e.deprecationReason)));return bn(e)+`enum ${e.name}`+gn(n)}(e):(0,_.hL)(e)?function(e){const n=Object.values(e.getFields()).map(((e,n)=>bn(e," ",!n)+" "+An(e)));return bn(e)+`input ${e.name}`+gn(n)}(e):void(0,p.k)(!1,"Unexpected type: "+(0,l.X)(e))}function Dn(e){const n=e.getInterfaces();return n.length?" implements "+n.map((e=>e.name)).join(" & "):""}function Rn(e){return gn(Object.values(e.getFields()).map(((e,n)=>bn(e," ",!n)+" "+e.name+In(e.args," ")+": "+String(e.type)+On(e.deprecationReason))))}function gn(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function In(e,n=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(An).join(", ")+")":"(\n"+e.map(((e,t)=>bn(e," "+n,!t)+" "+n+An(e))).join("\n")+"\n"+n+")"}function An(e){const n=(0,yn.J)(e.defaultValue,e.type);let t=e.name+": "+String(e.type);return n&&(t+=` = ${(0,ee.S)(n)}`),t+On(e.deprecationReason)}function On(e){return null==e?"":e!==K.SY?` @deprecated(reason: ${(0,ee.S)({kind:h.h.STRING,value:e})})`:" @deprecated"}function bn(e,n="",t=!0){const{description:o}=e;return null==o?"":(n&&!t?"\n"+n:n)+(0,ee.S)({kind:h.h.STRING,value:o,block:(0,mn.MZ)(o)}).replace(/\n/g,"\n"+n)+"\n"}function wn(e){const n=[];for(const t of e)n.push(...t.definitions);return{kind:h.h.DOCUMENT,definitions:n}}function Vn(e){const n=[],t=Object.create(null);for(const o of e.definitions)switch(o.kind){case h.h.OPERATION_DEFINITION:n.push(o);break;case h.h.FRAGMENT_DEFINITION:t[o.name.value]=Ln(o.selectionSet)}const o=Object.create(null);for(const r of n){const n=new Set;for(const e of Ln(r.selectionSet))Sn(n,t,e);o[r.name?r.name.value:""]={kind:h.h.DOCUMENT,definitions:e.definitions.filter((e=>e===r||e.kind===h.h.FRAGMENT_DEFINITION&&n.has(e.name.value)))}}return o}function Sn(e,n,t){if(!e.has(t)){e.add(t);const o=n[t];if(void 0!==o)for(const t of o)Sn(e,n,t)}}function Ln(e){const n=[];return(0,ne.Vn)(e,{FragmentSpread(e){n.push(e.name.value)}}),n}function Mn(e){const n=(0,Y.T)(e)?e:new Y.H(e),t=n.body,o=new W.h(n);let r="",i=!1;for(;o.advance().kind!==J.T.EOF;){const e=o.token,n=e.kind,a=!(0,W.u)(e.kind);i&&(a||e.kind===J.T.SPREAD)&&(r+=" ");const s=t.slice(e.start,e.end);n===J.T.BLOCK_STRING?r+=(0,mn.LZ)(e.value,{minimize:!0}):r+=s,i=a}return r}function $n(e){const n=Fn(e);if(n)throw n;return e}function Fn(e){if("string"==typeof e||(0,i.a)(!1,"Expected name to be a string."),e.startsWith("__"))return new y.__(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,X.i)(e)}catch(e){return e}}var Un=t(57488);let Cn,Gn;function Pn(e,n){return jn(e,n).filter((e=>e.type in Cn))}function xn(e,n){return jn(e,n).filter((e=>e.type in Gn))}function jn(e,n){return[...Qn(e,n),...kn(e,n)]}function kn(e,n){const t=[],o=et(e.getDirectives(),n.getDirectives());for(const e of o.removed)t.push({type:Cn.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,n]of o.persisted){const o=et(e.args,n.args);for(const n of o.added)(0,_.dK)(n)&&t.push({type:Cn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${n.name} on directive ${e.name} was added.`});for(const n of o.removed)t.push({type:Cn.DIRECTIVE_ARG_REMOVED,description:`${n.name} was removed from ${e.name}.`});e.isRepeatable&&!n.isRepeatable&&t.push({type:Cn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const o of e.locations)n.locations.includes(o)||t.push({type:Cn.DIRECTIVE_LOCATION_REMOVED,description:`${o} was removed from ${e.name}.`})}return t}function Qn(e,n){const t=[],o=et(Object.values(e.getTypeMap()),Object.values(n.getTypeMap()));for(const e of o.removed)t.push({type:Cn.TYPE_REMOVED,description:(0,z.u1)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,n]of o.persisted)(0,_.EM)(e)&&(0,_.EM)(n)?t.push(...Kn(e,n)):(0,_.EN)(e)&&(0,_.EN)(n)?t.push(...Hn(e,n)):(0,_.hL)(e)&&(0,_.hL)(n)?t.push(...qn(e,n)):(0,_.lp)(e)&&(0,_.lp)(n)||(0,_.oT)(e)&&(0,_.oT)(n)?t.push(...Xn(e,n),...zn(e,n)):e.constructor!==n.constructor&&t.push({type:Cn.TYPE_CHANGED_KIND,description:`${e.name} changed from ${Wn(e)} to ${Wn(n)}.`});return t}function qn(e,n){const t=[],o=et(Object.values(e.getFields()),Object.values(n.getFields()));for(const n of o.added)(0,_.Wd)(n)?t.push({type:Cn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${n.name} on input type ${e.name} was added.`}):t.push({type:Gn.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${n.name} on input type ${e.name} was added.`});for(const n of o.removed)t.push({type:Cn.FIELD_REMOVED,description:`${e.name}.${n.name} was removed.`});for(const[n,r]of o.persisted)Zn(n.type,r.type)||t.push({type:Cn.FIELD_CHANGED_KIND,description:`${e.name}.${n.name} changed type from ${String(n.type)} to ${String(r.type)}.`});return t}function Hn(e,n){const t=[],o=et(e.getTypes(),n.getTypes());for(const n of o.added)t.push({type:Gn.TYPE_ADDED_TO_UNION,description:`${n.name} was added to union type ${e.name}.`});for(const n of o.removed)t.push({type:Cn.TYPE_REMOVED_FROM_UNION,description:`${n.name} was removed from union type ${e.name}.`});return t}function Kn(e,n){const t=[],o=et(e.getValues(),n.getValues());for(const n of o.added)t.push({type:Gn.VALUE_ADDED_TO_ENUM,description:`${n.name} was added to enum type ${e.name}.`});for(const n of o.removed)t.push({type:Cn.VALUE_REMOVED_FROM_ENUM,description:`${n.name} was removed from enum type ${e.name}.`});return t}function zn(e,n){const t=[],o=et(e.getInterfaces(),n.getInterfaces());for(const n of o.added)t.push({type:Gn.IMPLEMENTED_INTERFACE_ADDED,description:`${n.name} added to interfaces implemented by ${e.name}.`});for(const n of o.removed)t.push({type:Cn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${n.name}.`});return t}function Xn(e,n){const t=[],o=et(Object.values(e.getFields()),Object.values(n.getFields()));for(const n of o.removed)t.push({type:Cn.FIELD_REMOVED,description:`${e.name}.${n.name} was removed.`});for(const[n,r]of o.persisted)t.push(...Yn(e,n,r)),Bn(n.type,r.type)||t.push({type:Cn.FIELD_CHANGED_KIND,description:`${e.name}.${n.name} changed type from ${String(n.type)} to ${String(r.type)}.`});return t}function Yn(e,n,t){const o=[],r=et(n.args,t.args);for(const t of r.removed)o.push({type:Cn.ARG_REMOVED,description:`${e.name}.${n.name} arg ${t.name} was removed.`});for(const[t,i]of r.persisted)if(Zn(t.type,i.type)){if(void 0!==t.defaultValue)if(void 0===i.defaultValue)o.push({type:Gn.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${n.name} arg ${t.name} defaultValue was removed.`});else{const r=Jn(t.defaultValue,t.type),a=Jn(i.defaultValue,i.type);r!==a&&o.push({type:Gn.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${n.name} arg ${t.name} has changed defaultValue from ${r} to ${a}.`})}}else o.push({type:Cn.ARG_CHANGED_KIND,description:`${e.name}.${n.name} arg ${t.name} has changed type from ${String(t.type)} to ${String(i.type)}.`});for(const t of r.added)(0,_.dK)(t)?o.push({type:Cn.REQUIRED_ARG_ADDED,description:`A required arg ${t.name} on ${e.name}.${n.name} was added.`}):o.push({type:Gn.OPTIONAL_ARG_ADDED,description:`An optional arg ${t.name} on ${e.name}.${n.name} was added.`});return o}function Bn(e,n){return(0,_.HG)(e)?(0,_.HG)(n)&&Bn(e.ofType,n.ofType)||(0,_.zM)(n)&&Bn(e,n.ofType):(0,_.zM)(e)?(0,_.zM)(n)&&Bn(e.ofType,n.ofType):(0,_.Zs)(n)&&e.name===n.name||(0,_.zM)(n)&&Bn(e,n.ofType)}function Zn(e,n){return(0,_.HG)(e)?(0,_.HG)(n)&&Zn(e.ofType,n.ofType):(0,_.zM)(e)?(0,_.zM)(n)&&Zn(e.ofType,n.ofType)||!(0,_.zM)(n)&&Zn(e.ofType,n):(0,_.Zs)(n)&&e.name===n.name}function Wn(e){return(0,_.KA)(e)?"a Scalar type":(0,_.lp)(e)?"an Object type":(0,_.oT)(e)?"an Interface type":(0,_.EN)(e)?"a Union type":(0,_.EM)(e)?"an Enum type":(0,_.hL)(e)?"an Input type":void(0,p.k)(!1,"Unexpected type: "+(0,l.X)(e))}function Jn(e,n){const t=(0,yn.J)(e,n);return null!=t||(0,p.k)(!1),(0,ee.S)((0,Un.n)(t))}function et(e,n){const t=[],o=[],r=[],i=(0,Ze.P)(e,(({name:e})=>e)),a=(0,Ze.P)(n,(({name:e})=>e));for(const n of e){const e=a[n.name];void 0===e?o.push(n):r.push([n,e])}for(const e of n)void 0===i[e.name]&&t.push(e);return{added:t,persisted:r,removed:o}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Cn||(Cn={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Gn||(Gn={}));var nt=t(80707),tt=t(39842),ot=t(81532),rt=t(95335),it=t(79392),at=t(63459)}}]);
1
+ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[798],{24798:(e,n,t)=>{t.r(n),t.d(n,{BREAK:()=>ne.$_,BreakingChangeType:()=>Cn,DEFAULT_DEPRECATION_REASON:()=>K.SY,DangerousChangeType:()=>Gn,DirectiveLocation:()=>te.B,ExecutableDefinitionsRule:()=>pe.i,FieldsOnCorrectTypeRule:()=>de.A,FragmentsOnCompositeTypesRule:()=>fe.T,GRAPHQL_MAX_INT:()=>z.HI,GRAPHQL_MIN_INT:()=>z.st,GraphQLBoolean:()=>z.EZ,GraphQLDeprecatedDirective:()=>K.fg,GraphQLDirective:()=>K.NZ,GraphQLEnumType:()=>_.mR,GraphQLError:()=>y.__,GraphQLFloat:()=>z.av,GraphQLID:()=>z.km,GraphQLIncludeDirective:()=>K.Yf,GraphQLInputObjectType:()=>_.sR,GraphQLInt:()=>z._o,GraphQLInterfaceType:()=>_.oW,GraphQLList:()=>_.p2,GraphQLNonNull:()=>_.bM,GraphQLObjectType:()=>_.h6,GraphQLScalarType:()=>_.n2,GraphQLSchema:()=>H.XO,GraphQLSkipDirective:()=>K.QE,GraphQLSpecifiedByDirective:()=>K.df,GraphQLString:()=>z.kH,GraphQLUnionType:()=>_.Gp,Kind:()=>h.h,KnownArgumentNamesRule:()=>me.e,KnownDirectivesRule:()=>ye.J,KnownFragmentNamesRule:()=>Ee.a,KnownTypeNamesRule:()=>ve.I,Lexer:()=>W.h,Location:()=>T.Ye,LoneAnonymousOperationRule:()=>Te.F,LoneSchemaDefinitionRule:()=>Ce.t,NoDeprecatedCustomRule:()=>He.r,NoFragmentCyclesRule:()=>he.H,NoSchemaIntrospectionCustomRule:()=>ue,NoUndefinedVariablesRule:()=>_e.$,NoUnusedFragmentsRule:()=>Ne.J,NoUnusedVariablesRule:()=>De.p,OperationTypeNode:()=>T.ku,OverlappingFieldsCanBeMergedRule:()=>Re.y,PossibleFragmentSpreadsRule:()=>ge.a,PossibleTypeExtensionsRule:()=>qe.g,ProvidedRequiredArgumentsRule:()=>Ie.s,ScalarLeafsRule:()=>Ae.O,SchemaMetaFieldDef:()=>N.Az,SingleFieldSubscriptionsRule:()=>Oe.Z,Source:()=>Y.H,Token:()=>T.WU,TokenKind:()=>J.T,TypeInfo:()=>rt.a,TypeKind:()=>N.zU,TypeMetaFieldDef:()=>N.tF,TypeNameMetaFieldDef:()=>N.hU,UniqueArgumentDefinitionNamesRule:()=>ke.L,UniqueArgumentNamesRule:()=>be.L,UniqueDirectiveNamesRule:()=>Qe.o,UniqueDirectivesPerLocationRule:()=>we.k,UniqueEnumValueNamesRule:()=>xe.L,UniqueFieldDefinitionNamesRule:()=>je.y,UniqueFragmentNamesRule:()=>Ve.N,UniqueInputFieldNamesRule:()=>Se.P,UniqueOperationNamesRule:()=>Le.H,UniqueOperationTypesRule:()=>Ge.q,UniqueTypeNamesRule:()=>Pe.P,UniqueVariableNamesRule:()=>Me.H,ValidationContext:()=>ce._t,ValuesOfCorrectTypeRule:()=>$e.j,VariablesAreInputTypesRule:()=>Fe.I,VariablesInAllowedPositionRule:()=>Ue.w,__Directive:()=>N.l3,__DirectiveLocation:()=>N.x2,__EnumValue:()=>N.jT,__Field:()=>N.e_,__InputValue:()=>N.XQ,__Schema:()=>N.TK,__Type:()=>N.qz,__TypeKind:()=>N.PX,assertAbstractType:()=>_.fU,assertCompositeType:()=>_.M_,assertDirective:()=>K.CO,assertEnumType:()=>_.Zu,assertEnumValueName:()=>X.g,assertInputObjectType:()=>_.U8,assertInputType:()=>_.qT,assertInterfaceType:()=>_.k2,assertLeafType:()=>_.H5,assertListType:()=>_.kS,assertName:()=>X.i,assertNamedType:()=>_.rM,assertNonNullType:()=>_.E$,assertNullableType:()=>_.i_,assertObjectType:()=>_.Z6,assertOutputType:()=>_.Gt,assertScalarType:()=>_.Pt,assertSchema:()=>H.EO,assertType:()=>_.p_,assertUnionType:()=>_.rc,assertValidName:()=>$n,assertValidSchema:()=>u.J,assertWrappingType:()=>_.vX,astFromValue:()=>yn.J,buildASTSchema:()=>an,buildClientSchema:()=>nt.Z,buildSchema:()=>sn,coerceInputValue:()=>it.K,concatAST:()=>wn,createSourceEventStream:()=>se,defaultFieldResolver:()=>x,defaultTypeResolver:()=>P,doTypesOverlap:()=>at.zR,execute:()=>I,executeSync:()=>A,extendSchema:()=>en,findBreakingChanges:()=>Pn,findDangerousChanges:()=>xn,formatError:()=>y.Z,getArgumentValues:()=>R.LX,getDirectiveValues:()=>R.zu,getEnterLeaveForKind:()=>ne.Eu,getIntrospectionQuery:()=>Ye.K,getLocation:()=>B.k,getNamedType:()=>_.xC,getNullableType:()=>_.tf,getOperationAST:()=>ze,getOperationRootType:()=>Xe,getVariableValues:()=>R.QF,getVisitFn:()=>ne.CK,graphql:()=>k,graphqlSync:()=>Q,introspectionFromSchema:()=>Be,introspectionTypes:()=>N.nL,isAbstractType:()=>_.m0,isCompositeType:()=>_.Gv,isConstValueNode:()=>oe.Of,isDefinitionNode:()=>oe.Ir,isDirective:()=>K.wX,isEnumType:()=>_.EM,isEqualType:()=>at._7,isExecutableDefinitionNode:()=>oe.Wk,isInputObjectType:()=>_.hL,isInputType:()=>_.j$,isInterfaceType:()=>_.oT,isIntrospectionType:()=>N.s9,isLeafType:()=>_.UT,isListType:()=>_.HG,isNamedType:()=>_.Zs,isNonNullType:()=>_.zM,isNullableType:()=>_.zP,isObjectType:()=>_.lp,isOutputType:()=>_.SZ,isRequiredArgument:()=>_.dK,isRequiredInputField:()=>_.Wd,isScalarType:()=>_.KA,isSchema:()=>H.nN,isSelectionNode:()=>oe.pO,isSpecifiedDirective:()=>K.xg,isSpecifiedScalarType:()=>z.u1,isType:()=>_.P9,isTypeDefinitionNode:()=>oe.zT,isTypeExtensionNode:()=>oe.D$,isTypeNode:()=>oe.VB,isTypeSubTypeOf:()=>at.uJ,isTypeSystemDefinitionNode:()=>oe.G4,isTypeSystemExtensionNode:()=>oe.aU,isUnionType:()=>_.EN,isValidNameError:()=>Fn,isValueNode:()=>oe.nr,isWrappingType:()=>_.fw,lexicographicSortSchema:()=>ln,locatedError:()=>v,parse:()=>s.Qc,parseConstValue:()=>s.tl,parseType:()=>s.gZ,parseValue:()=>s.H2,print:()=>ee.S,printError:()=>y.OS,printIntrospectionSchema:()=>vn,printLocation:()=>Z.Q,printSchema:()=>En,printSourceLocation:()=>Z.z,printType:()=>Nn,resolveObjMapThunk:()=>_.WB,resolveReadonlyArrayThunk:()=>_._9,responsePathAsArray:()=>m.N,separateOperations:()=>Vn,specifiedDirectives:()=>K.V4,specifiedRules:()=>le.i,specifiedScalarTypes:()=>z.HS,stripIgnoredCharacters:()=>Mn,subscribe:()=>ae,syntaxError:()=>Ke.h,typeFromAST:()=>tt._,validate:()=>c.Gu,validateSchema:()=>u.F,valueFromAST:()=>Je.u,valueFromASTUntyped:()=>ot.M,version:()=>o,versionInfo:()=>r,visit:()=>ne.Vn,visitInParallel:()=>ne.j1,visitWithTypeInfo:()=>rt.y});const o="16.4.0",r=Object.freeze({major:16,minor:4,patch:0,preReleaseTag:null});var i=t(34317);function a(e){return"function"==typeof(null==e?void 0:e.then)}var s=t(65449),u=t(96374),c=t(59047),l=t(57493),p=t(87021),d=t(98130),f=t(52689),m=t(88274),y=t(7990);class E extends Error{constructor(e){super("Unexpected error value: "+(0,l.X)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function v(e,n,t){var o;const r=(i=e)instanceof Error?i:new E(i);var i,a;return a=r,Array.isArray(a.path)?r:new y.__(r.message,{nodes:null!==(o=r.nodes)&&void 0!==o?o:n,source:r.source,positions:r.positions,path:t,originalError:r})}var T=t(35239),h=t(57554),_=t(84553),N=t(82299),D=t(36819),R=t(93059);const g=function(e){let n;return function(e,t,o){void 0===n&&(n=new WeakMap);let r=n.get(e);void 0===r&&(r=new WeakMap,n.set(e,r));let i=r.get(t);void 0===i&&(i=new WeakMap,r.set(t,i));let a=i.get(o);return void 0===a&&(s=e,u=t,c=o,a=(0,D.w)(s.schema,s.fragments,s.variableValues,u,c),i.set(o,a)),a;var s,u,c}}();function I(e){arguments.length<2||(0,i.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:n,document:t,variableValues:o,rootValue:r}=e;b(n,t,o);const s=w(e);if(!("schema"in s))return{errors:s};try{const{operation:e}=s,n=V(s,e,r);return a(n)?n.then((e=>O(e,s.errors)),(e=>(s.errors.push(e),O(null,s.errors)))):O(n,s.errors)}catch(e){return s.errors.push(e),O(null,s.errors)}}function A(e){const n=I(e);if(a(n))throw new Error("GraphQL execution failed to complete synchronously.");return n}function O(e,n){return 0===n.length?{data:e}:{errors:n,data:e}}function b(e,n,t){n||(0,i.a)(!1,"Must provide document."),(0,u.J)(e),null==t||(0,f.y)(t)||(0,i.a)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function w(e){var n,t;const{schema:o,document:r,rootValue:i,contextValue:a,variableValues:s,operationName:u,fieldResolver:c,typeResolver:l,subscribeFieldResolver:p}=e;let d;const f=Object.create(null);for(const e of r.definitions)switch(e.kind){case h.h.OPERATION_DEFINITION:if(null==u){if(void 0!==d)return[new y.__("Must provide operation name if query contains multiple operations.")];d=e}else(null===(n=e.name)||void 0===n?void 0:n.value)===u&&(d=e);break;case h.h.FRAGMENT_DEFINITION:f[e.name.value]=e}if(!d)return null!=u?[new y.__(`Unknown operation named "${u}".`)]:[new y.__("Must provide an operation.")];const m=null!==(t=d.variableDefinitions)&&void 0!==t?t:[],E=(0,R.QF)(o,m,null!=s?s:{},{maxErrors:50});return E.errors?E.errors:{schema:o,fragments:f,rootValue:i,contextValue:a,operation:d,variableValues:E.coerced,fieldResolver:null!=c?c:x,typeResolver:null!=l?l:P,subscribeFieldResolver:null!=p?p:x,errors:[]}}function V(e,n,t){const o=e.schema.getRootType(n.operation);if(null==o)throw new y.__(`Schema is not configured to execute ${n.operation} operation.`,{nodes:n});const r=(0,D.g)(e.schema,e.fragments,e.variableValues,o,n.selectionSet),i=void 0;switch(n.operation){case T.ku.QUERY:return S(e,o,t,i,r);case T.ku.MUTATION:return function(e,n,t,o,r){return function(e,n,t){let o=Object.create(null);for(const t of e)o=a(o)?o.then((e=>n(e,t))):n(o,t);return o}(r.entries(),((o,[r,i])=>{const s=(0,m.Q)(undefined,r,n.name),u=L(e,n,t,i,s);return void 0===u?o:a(u)?u.then((e=>(o[r]=e,o))):(o[r]=u,o)}))}(e,o,t,0,r);case T.ku.SUBSCRIPTION:return S(e,o,t,i,r)}}function S(e,n,t,o,r){const i=Object.create(null);let s=!1;for(const[u,c]of r.entries()){const r=L(e,n,t,c,(0,m.Q)(o,u,n.name));void 0!==r&&(i[u]=r,a(r)&&(s=!0))}return s?(u=i,Promise.all(Object.values(u)).then((e=>{const n=Object.create(null);for(const[t,o]of Object.keys(u).entries())n[o]=e[t];return n}))):i;var u}function L(e,n,t,o,r){var i;const s=j(e.schema,n,o[0]);if(!s)return;const u=s.type,c=null!==(i=s.resolve)&&void 0!==i?i:e.fieldResolver,l=M(e,s,o,n,r);try{const n=c(t,(0,R.LX)(s,o[0],e.variableValues),e.contextValue,l);let i;return i=a(n)?n.then((n=>F(e,u,o,l,r,n))):F(e,u,o,l,r,n),a(i)?i.then(void 0,(n=>$(v(n,o,(0,m.N)(r)),u,e))):i}catch(n){return $(v(n,o,(0,m.N)(r)),u,e)}}function M(e,n,t,o,r){return{fieldName:n.name,fieldNodes:t,returnType:n.type,parentType:o,path:r,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function $(e,n,t){if((0,_.zM)(n))throw e;return t.errors.push(e),null}function F(e,n,t,o,r,i){if(i instanceof Error)throw i;if((0,_.zM)(n)){const a=F(e,n.ofType,t,o,r,i);if(null===a)throw new Error(`Cannot return null for non-nullable field ${o.parentType.name}.${o.fieldName}.`);return a}return null==i?null:(0,_.HG)(n)?function(e,n,t,o,r,i){if(!(0,d.i)(i))throw new y.__(`Expected Iterable, but did not find one for field "${o.parentType.name}.${o.fieldName}".`);const s=n.ofType;let u=!1;const c=Array.from(i,((n,i)=>{const c=(0,m.Q)(r,i,void 0);try{let r;return r=a(n)?n.then((n=>F(e,s,t,o,c,n))):F(e,s,t,o,c,n),a(r)?(u=!0,r.then(void 0,(n=>$(v(n,t,(0,m.N)(c)),s,e)))):r}catch(n){return $(v(n,t,(0,m.N)(c)),s,e)}}));return u?Promise.all(c):c}(e,n,t,o,r,i):(0,_.UT)(n)?function(e,n){const t=e.serialize(n);if(null==t)throw new Error(`Expected \`${(0,l.X)(e)}.serialize(${(0,l.X)(n)})\` to return non-nullable value, returned: ${(0,l.X)(t)}`);return t}(n,i):(0,_.m0)(n)?function(e,n,t,o,r,i){var s;const u=null!==(s=n.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,l=u(i,c,o,n);return a(l)?l.then((a=>C(e,U(a,e,n,t,o,i),t,o,r,i))):C(e,U(l,e,n,t,o,i),t,o,r,i)}(e,n,t,o,r,i):(0,_.lp)(n)?C(e,n,t,o,r,i):void(0,p.k)(!1,"Cannot complete value of unexpected output type: "+(0,l.X)(n))}function U(e,n,t,o,r,i){if(null==e)throw new y.__(`Abstract type "${t.name}" must resolve to an Object type at runtime for field "${r.parentType.name}.${r.fieldName}". Either the "${t.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,o);if((0,_.lp)(e))throw new y.__("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new y.__(`Abstract type "${t.name}" must resolve to an Object type at runtime for field "${r.parentType.name}.${r.fieldName}" with value ${(0,l.X)(i)}, received "${(0,l.X)(e)}".`);const a=n.schema.getType(e);if(null==a)throw new y.__(`Abstract type "${t.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:o});if(!(0,_.lp)(a))throw new y.__(`Abstract type "${t.name}" was resolved to a non-object type "${e}".`,{nodes:o});if(!n.schema.isSubType(t,a))throw new y.__(`Runtime Object type "${a.name}" is not a possible type for "${t.name}".`,{nodes:o});return a}function C(e,n,t,o,r,i){const s=g(e,n,t);if(n.isTypeOf){const u=n.isTypeOf(i,e.contextValue,o);if(a(u))return u.then((o=>{if(!o)throw G(n,i,t);return S(e,n,i,r,s)}));if(!u)throw G(n,i,t)}return S(e,n,i,r,s)}function G(e,n,t){return new y.__(`Expected value of type "${e.name}" but got: ${(0,l.X)(n)}.`,{nodes:t})}const P=function(e,n,t,o){if((0,f.y)(e)&&"string"==typeof e.__typename)return e.__typename;const r=t.schema.getPossibleTypes(o),i=[];for(let o=0;o<r.length;o++){const s=r[o];if(s.isTypeOf){const r=s.isTypeOf(e,n,t);if(a(r))i[o]=r;else if(r)return s.name}}return i.length?Promise.all(i).then((e=>{for(let n=0;n<e.length;n++)if(e[n])return r[n].name})):void 0},x=function(e,n,t,o){if((0,f.y)(e)||"function"==typeof e){const r=e[o.fieldName];return"function"==typeof r?e[o.fieldName](n,t,o):r}};function j(e,n,t){const o=t.name.value;return o===N.Az.name&&e.getQueryType()===n?N.Az:o===N.tF.name&&e.getQueryType()===n?N.tF:o===N.hU.name?N.hU:n.getFields()[o]}function k(e){return new Promise((n=>n(q(e))))}function Q(e){const n=q(e);if(a(n))throw new Error("GraphQL execution failed to complete synchronously.");return n}function q(e){arguments.length<2||(0,i.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:n,source:t,rootValue:o,contextValue:r,variableValues:a,operationName:l,fieldResolver:p,typeResolver:d}=e,f=(0,u.F)(n);if(f.length>0)return{errors:f};let m;try{m=(0,s.Qc)(t)}catch(e){return{errors:[e]}}const y=(0,c.Gu)(n,m);return y.length>0?{errors:y}:I({schema:n,document:m,rootValue:o,contextValue:r,variableValues:a,operationName:l,fieldResolver:p,typeResolver:d})}var H=t(12640),K=t(73798),z=t(62697),X=t(82293),Y=t(23476),B=t(31472),Z=t(56403),W=t(78636),J=t(20471),ee=t(54785),ne=t(43165),te=t(65916),oe=t(14734);function re(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}function ie(e,n){const t=e[Symbol.asyncIterator]();async function o(e){if(e.done)return e;try{return{value:await n(e.value),done:!1}}catch(e){if("function"==typeof t.return)try{await t.return()}catch(e){}throw e}}return{next:async()=>o(await t.next()),return:async()=>"function"==typeof t.return?o(await t.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof t.throw)return o(await t.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function ae(e){arguments.length<2||(0,i.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:n,document:t,rootValue:o,contextValue:r,variableValues:a,operationName:s,fieldResolver:u,subscribeFieldResolver:c}=e,l=await se(n,t,o,r,a,s,c);if(!re(l))return l;const p=e=>I({schema:n,document:t,rootValue:e,contextValue:r,variableValues:a,operationName:s,fieldResolver:u});return ie(l,p)}async function se(e,n,t,o,r,i,a){b(e,n,r);const s=w({schema:e,document:n,rootValue:t,contextValue:o,variableValues:r,operationName:i,subscribeFieldResolver:a});if(!("schema"in s))return{errors:s};try{const e=await async function(e){const{schema:n,fragments:t,operation:o,variableValues:r,rootValue:i}=e,a=n.getSubscriptionType();if(null==a)throw new y.__("Schema is not configured to execute subscription operation.",{nodes:o});const s=(0,D.g)(n,t,r,a,o.selectionSet),[u,c]=[...s.entries()][0],l=j(n,a,c[0]);if(!l){const e=c[0].name.value;throw new y.__(`The subscription field "${e}" is not defined.`,{nodes:c})}const p=(0,m.Q)(void 0,u,a.name),d=M(e,l,c,a,p);try{var f;const n=(0,R.LX)(l,c[0],r),t=e.contextValue,o=null!==(f=l.subscribe)&&void 0!==f?f:e.subscribeFieldResolver,a=await o(i,n,t,d);if(a instanceof Error)throw a;return a}catch(e){throw v(e,c,(0,m.N)(p))}}(s);if(!re(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,l.X)(e)}.`);return e}catch(e){if(e instanceof y.__)return{errors:[e]};throw e}}function ue(e){return{Field(n){const t=(0,_.xC)(e.getType());t&&(0,N.s9)(t)&&e.reportError(new y.__(`GraphQL introspection has been disabled, but the requested query contained the field "${n.name.value}".`,{nodes:n}))}}}var ce=t(81931),le=t(49159),pe=t(33023),de=t(78781),fe=t(38494),me=t(61479),ye=t(16125),Ee=t(85612),ve=t(30265),Te=t(15607),he=t(94736),_e=t(22795),Ne=t(1742),De=t(17839),Re=t(11504),ge=t(88191),Ie=t(35410),Ae=t(18748),Oe=t(57342),be=t(56092),we=t(89421),Ve=t(41941),Se=t(41267),Le=t(5754),Me=t(76890),$e=t(73254),Fe=t(40516),Ue=t(52244),Ce=t(6575),Ge=t(14510),Pe=t(48888),xe=t(50666),je=t(86608),ke=t(68305),Qe=t(76362),qe=t(90297),He=t(33034),Ke=t(23445);function ze(e,n){let t=null;for(const r of e.definitions){var o;if(r.kind===h.h.OPERATION_DEFINITION)if(null==n){if(t)return null;t=r}else if((null===(o=r.name)||void 0===o?void 0:o.value)===n)return r}return t}function Xe(e,n){if("query"===n.operation){const t=e.getQueryType();if(!t)throw new y.__("Schema does not define the required query root type.",{nodes:n});return t}if("mutation"===n.operation){const t=e.getMutationType();if(!t)throw new y.__("Schema is not configured for mutations.",{nodes:n});return t}if("subscription"===n.operation){const t=e.getSubscriptionType();if(!t)throw new y.__("Schema is not configured for subscriptions.",{nodes:n});return t}throw new y.__("Can only have query, mutation and subscription operations.",{nodes:n})}var Ye=t(90724);function Be(e,n){const t={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...n},o=A({schema:e,document:(0,s.Qc)((0,Ye.K)(t))});return!o.errors&&o.data||(0,p.k)(!1),o.data}var Ze=t(6981),We=t(58037),Je=t(83178);function en(e,n,t){(0,H.EO)(e),null!=n&&n.kind===h.h.DOCUMENT||(0,i.a)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,c.ED)(n,e);const o=e.toConfig(),r=nn(o,n,t);return o===r?e:new H.XO(r)}function nn(e,n,t){var o,r,i,a;const s=[],u=Object.create(null),c=[];let d;const f=[];for(const e of n.definitions)if(e.kind===h.h.SCHEMA_DEFINITION)d=e;else if(e.kind===h.h.SCHEMA_EXTENSION)f.push(e);else if((0,oe.zT)(e))s.push(e);else if((0,oe.D$)(e)){const n=e.name.value,t=u[n];u[n]=t?t.concat([e]):[e]}else e.kind===h.h.DIRECTIVE_DEFINITION&&c.push(e);if(0===Object.keys(u).length&&0===s.length&&0===c.length&&0===f.length&&null==d)return e;const m=Object.create(null);for(const n of e.types)m[n.name]=(y=n,(0,N.s9)(y)||(0,z.u1)(y)?y:(0,_.KA)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[t.name])&&void 0!==n?n:[];let r=t.specifiedByURL;for(const e of o){var i;r=null!==(i=rn(e))&&void 0!==i?i:r}return new _.n2({...t,specifiedByURL:r,extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):(0,_.lp)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[t.name])&&void 0!==n?n:[];return new _.h6({...t,interfaces:()=>[...e.getInterfaces().map(D),...L(o)],fields:()=>({...(0,We.j)(t.fields,R),...b(o)}),extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):(0,_.oT)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[t.name])&&void 0!==n?n:[];return new _.oW({...t,interfaces:()=>[...e.getInterfaces().map(D),...L(o)],fields:()=>({...(0,We.j)(t.fields,R),...b(o)}),extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):(0,_.EN)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[t.name])&&void 0!==n?n:[];return new _.Gp({...t,types:()=>[...e.getTypes().map(D),...M(o)],extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):(0,_.EM)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[e.name])&&void 0!==n?n:[];return new _.mR({...t,values:{...t.values,...S(o)},extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):(0,_.hL)(y)?function(e){var n;const t=e.toConfig(),o=null!==(n=u[t.name])&&void 0!==n?n:[];return new _.sR({...t,fields:()=>({...(0,We.j)(t.fields,(e=>({...e,type:T(e.type)}))),...V(o)}),extensionASTNodes:t.extensionASTNodes.concat(o)})}(y):void(0,p.k)(!1,"Unexpected type: "+(0,l.X)(y)));var y;for(const e of s){var E;const n=e.name.value;m[n]=null!==(E=tn[n])&&void 0!==E?E:$(e)}const v={query:e.query&&D(e.query),mutation:e.mutation&&D(e.mutation),subscription:e.subscription&&D(e.subscription),...d&&I([d]),...I(f)};return{description:null===(o=d)||void 0===o||null===(r=o.description)||void 0===r?void 0:r.value,...v,types:Object.values(m),directives:[...e.directives.map((function(e){const n=e.toConfig();return new K.NZ({...n,args:(0,We.j)(n.args,g)})})),...c.map((function(e){var n;return new K.NZ({name:e.name.value,description:null===(n=e.description)||void 0===n?void 0:n.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:w(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(i=d)&&void 0!==i?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null==t?void 0:t.assumeValid)&&void 0!==a&&a};function T(e){return(0,_.HG)(e)?new _.p2(T(e.ofType)):(0,_.zM)(e)?new _.bM(T(e.ofType)):D(e)}function D(e){return m[e.name]}function R(e){return{...e,type:T(e.type),args:e.args&&(0,We.j)(e.args,g)}}function g(e){return{...e,type:T(e.type)}}function I(e){const n={};for(const o of e){var t;const e=null!==(t=o.operationTypes)&&void 0!==t?t:[];for(const t of e)n[t.operation]=A(t.type)}return n}function A(e){var n;const t=e.name.value,o=null!==(n=tn[t])&&void 0!==n?n:m[t];if(void 0===o)throw new Error(`Unknown type: "${t}".`);return o}function O(e){return e.kind===h.h.LIST_TYPE?new _.p2(O(e.type)):e.kind===h.h.NON_NULL_TYPE?new _.bM(O(e.type)):A(e)}function b(e){const n=Object.create(null);for(const r of e){var t;const e=null!==(t=r.fields)&&void 0!==t?t:[];for(const t of e){var o;n[t.name.value]={type:O(t.type),description:null===(o=t.description)||void 0===o?void 0:o.value,args:w(t.arguments),deprecationReason:on(t),astNode:t}}}return n}function w(e){const n=null!=e?e:[],t=Object.create(null);for(const e of n){var o;const n=O(e.type);t[e.name.value]={type:n,description:null===(o=e.description)||void 0===o?void 0:o.value,defaultValue:(0,Je.u)(e.defaultValue,n),deprecationReason:on(e),astNode:e}}return t}function V(e){const n=Object.create(null);for(const r of e){var t;const e=null!==(t=r.fields)&&void 0!==t?t:[];for(const t of e){var o;const e=O(t.type);n[t.name.value]={type:e,description:null===(o=t.description)||void 0===o?void 0:o.value,defaultValue:(0,Je.u)(t.defaultValue,e),deprecationReason:on(t),astNode:t}}}return n}function S(e){const n=Object.create(null);for(const r of e){var t;const e=null!==(t=r.values)&&void 0!==t?t:[];for(const t of e){var o;n[t.name.value]={description:null===(o=t.description)||void 0===o?void 0:o.value,deprecationReason:on(t),astNode:t}}}return n}function L(e){return e.flatMap((e=>{var n,t;return null!==(n=null===(t=e.interfaces)||void 0===t?void 0:t.map(A))&&void 0!==n?n:[]}))}function M(e){return e.flatMap((e=>{var n,t;return null!==(n=null===(t=e.types)||void 0===t?void 0:t.map(A))&&void 0!==n?n:[]}))}function $(e){var n;const t=e.name.value,o=null!==(n=u[t])&&void 0!==n?n:[];switch(e.kind){case h.h.OBJECT_TYPE_DEFINITION:{var r;const n=[e,...o];return new _.h6({name:t,description:null===(r=e.description)||void 0===r?void 0:r.value,interfaces:()=>L(n),fields:()=>b(n),astNode:e,extensionASTNodes:o})}case h.h.INTERFACE_TYPE_DEFINITION:{var i;const n=[e,...o];return new _.oW({name:t,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>L(n),fields:()=>b(n),astNode:e,extensionASTNodes:o})}case h.h.ENUM_TYPE_DEFINITION:{var a;const n=[e,...o];return new _.mR({name:t,description:null===(a=e.description)||void 0===a?void 0:a.value,values:S(n),astNode:e,extensionASTNodes:o})}case h.h.UNION_TYPE_DEFINITION:{var s;const n=[e,...o];return new _.Gp({name:t,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>M(n),astNode:e,extensionASTNodes:o})}case h.h.SCALAR_TYPE_DEFINITION:var c;return new _.n2({name:t,description:null===(c=e.description)||void 0===c?void 0:c.value,specifiedByURL:rn(e),astNode:e,extensionASTNodes:o});case h.h.INPUT_OBJECT_TYPE_DEFINITION:{var l;const n=[e,...o];return new _.sR({name:t,description:null===(l=e.description)||void 0===l?void 0:l.value,fields:()=>V(n),astNode:e,extensionASTNodes:o})}}}}const tn=(0,Ze.P)([...z.HS,...N.nL],(e=>e.name));function on(e){const n=(0,R.zu)(K.fg,e);return null==n?void 0:n.reason}function rn(e){const n=(0,R.zu)(K.df,e);return null==n?void 0:n.url}function an(e,n){null!=e&&e.kind===h.h.DOCUMENT||(0,i.a)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,c.zo)(e);const t=nn({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,n);if(null==t.astNode)for(const e of t.types)switch(e.name){case"Query":t.query=e;break;case"Mutation":t.mutation=e;break;case"Subscription":t.subscription=e}const o=[...t.directives,...K.V4.filter((e=>t.directives.every((n=>n.name!==e.name))))];return new H.XO({...t,directives:o})}function sn(e,n){return an((0,s.Qc)(e,{noLocation:null==n?void 0:n.noLocation,allowLegacyFragmentVariables:null==n?void 0:n.allowLegacyFragmentVariables}),{assumeValidSDL:null==n?void 0:n.assumeValidSDL,assumeValid:null==n?void 0:n.assumeValid})}var un=t(51195),cn=t(81403);function ln(e){const n=e.toConfig(),t=(0,un.w)(dn(n.types),(e=>e.name),(function(e){if((0,_.KA)(e)||(0,N.s9)(e))return e;if((0,_.lp)(e)){const n=e.toConfig();return new _.h6({...n,interfaces:()=>u(n.interfaces),fields:()=>s(n.fields)})}if((0,_.oT)(e)){const n=e.toConfig();return new _.oW({...n,interfaces:()=>u(n.interfaces),fields:()=>s(n.fields)})}if((0,_.EN)(e)){const n=e.toConfig();return new _.Gp({...n,types:()=>u(n.types)})}if((0,_.EM)(e)){const n=e.toConfig();return new _.mR({...n,values:pn(n.values,(e=>e))})}if((0,_.hL)(e)){const n=e.toConfig();return new _.sR({...n,fields:()=>pn(n.fields,(e=>({...e,type:o(e.type)})))})}(0,p.k)(!1,"Unexpected type: "+(0,l.X)(e))}));return new H.XO({...n,types:Object.values(t),directives:dn(n.directives).map((function(e){const n=e.toConfig();return new K.NZ({...n,locations:fn(n.locations,(e=>e)),args:a(n.args)})})),query:i(n.query),mutation:i(n.mutation),subscription:i(n.subscription)});function o(e){return(0,_.HG)(e)?new _.p2(o(e.ofType)):(0,_.zM)(e)?new _.bM(o(e.ofType)):r(e)}function r(e){return t[e.name]}function i(e){return e&&r(e)}function a(e){return pn(e,(e=>({...e,type:o(e.type)})))}function s(e){return pn(e,(e=>({...e,type:o(e.type),args:e.args&&a(e.args)})))}function u(e){return dn(e).map(r)}}function pn(e,n){const t=Object.create(null);for(const o of Object.keys(e).sort(cn.K))t[o]=n(e[o]);return t}function dn(e){return fn(e,(e=>e.name))}function fn(e,n){return e.slice().sort(((e,t)=>{const o=n(e),r=n(t);return(0,cn.K)(o,r)}))}var mn=t(25965),yn=t(29936);function En(e){return hn(e,(e=>!(0,K.xg)(e)),Tn)}function vn(e){return hn(e,K.xg,N.s9)}function Tn(e){return!(0,z.u1)(e)&&!(0,N.s9)(e)}function hn(e,n,t){const o=e.getDirectives().filter(n),r=Object.values(e.getTypeMap()).filter(t);return[_n(e),...o.map((e=>function(e){return bn(e)+"directive @"+e.name+In(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...r.map((e=>Nn(e)))].filter(Boolean).join("\n\n")}function _n(e){if(null==e.description&&function(e){const n=e.getQueryType();if(n&&"Query"!==n.name)return!1;const t=e.getMutationType();if(t&&"Mutation"!==t.name)return!1;const o=e.getSubscriptionType();return!o||"Subscription"===o.name}(e))return;const n=[],t=e.getQueryType();t&&n.push(` query: ${t.name}`);const o=e.getMutationType();o&&n.push(` mutation: ${o.name}`);const r=e.getSubscriptionType();return r&&n.push(` subscription: ${r.name}`),bn(e)+`schema {\n${n.join("\n")}\n}`}function Nn(e){return(0,_.KA)(e)?function(e){return bn(e)+`scalar ${e.name}`+(null==(n=e).specifiedByURL?"":` @specifiedBy(url: ${(0,ee.S)({kind:h.h.STRING,value:n.specifiedByURL})})`);var n}(e):(0,_.lp)(e)?function(e){return bn(e)+`type ${e.name}`+Dn(e)+Rn(e)}(e):(0,_.oT)(e)?function(e){return bn(e)+`interface ${e.name}`+Dn(e)+Rn(e)}(e):(0,_.EN)(e)?function(e){const n=e.getTypes(),t=n.length?" = "+n.join(" | "):"";return bn(e)+"union "+e.name+t}(e):(0,_.EM)(e)?function(e){const n=e.getValues().map(((e,n)=>bn(e," ",!n)+" "+e.name+On(e.deprecationReason)));return bn(e)+`enum ${e.name}`+gn(n)}(e):(0,_.hL)(e)?function(e){const n=Object.values(e.getFields()).map(((e,n)=>bn(e," ",!n)+" "+An(e)));return bn(e)+`input ${e.name}`+gn(n)}(e):void(0,p.k)(!1,"Unexpected type: "+(0,l.X)(e))}function Dn(e){const n=e.getInterfaces();return n.length?" implements "+n.map((e=>e.name)).join(" & "):""}function Rn(e){return gn(Object.values(e.getFields()).map(((e,n)=>bn(e," ",!n)+" "+e.name+In(e.args," ")+": "+String(e.type)+On(e.deprecationReason))))}function gn(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function In(e,n=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(An).join(", ")+")":"(\n"+e.map(((e,t)=>bn(e," "+n,!t)+" "+n+An(e))).join("\n")+"\n"+n+")"}function An(e){const n=(0,yn.J)(e.defaultValue,e.type);let t=e.name+": "+String(e.type);return n&&(t+=` = ${(0,ee.S)(n)}`),t+On(e.deprecationReason)}function On(e){return null==e?"":e!==K.SY?` @deprecated(reason: ${(0,ee.S)({kind:h.h.STRING,value:e})})`:" @deprecated"}function bn(e,n="",t=!0){const{description:o}=e;return null==o?"":(n&&!t?"\n"+n:n)+(0,ee.S)({kind:h.h.STRING,value:o,block:(0,mn.MZ)(o)}).replace(/\n/g,"\n"+n)+"\n"}function wn(e){const n=[];for(const t of e)n.push(...t.definitions);return{kind:h.h.DOCUMENT,definitions:n}}function Vn(e){const n=[],t=Object.create(null);for(const o of e.definitions)switch(o.kind){case h.h.OPERATION_DEFINITION:n.push(o);break;case h.h.FRAGMENT_DEFINITION:t[o.name.value]=Ln(o.selectionSet)}const o=Object.create(null);for(const r of n){const n=new Set;for(const e of Ln(r.selectionSet))Sn(n,t,e);o[r.name?r.name.value:""]={kind:h.h.DOCUMENT,definitions:e.definitions.filter((e=>e===r||e.kind===h.h.FRAGMENT_DEFINITION&&n.has(e.name.value)))}}return o}function Sn(e,n,t){if(!e.has(t)){e.add(t);const o=n[t];if(void 0!==o)for(const t of o)Sn(e,n,t)}}function Ln(e){const n=[];return(0,ne.Vn)(e,{FragmentSpread(e){n.push(e.name.value)}}),n}function Mn(e){const n=(0,Y.T)(e)?e:new Y.H(e),t=n.body,o=new W.h(n);let r="",i=!1;for(;o.advance().kind!==J.T.EOF;){const e=o.token,n=e.kind,a=!(0,W.u)(e.kind);i&&(a||e.kind===J.T.SPREAD)&&(r+=" ");const s=t.slice(e.start,e.end);n===J.T.BLOCK_STRING?r+=(0,mn.LZ)(e.value,{minimize:!0}):r+=s,i=a}return r}function $n(e){const n=Fn(e);if(n)throw n;return e}function Fn(e){if("string"==typeof e||(0,i.a)(!1,"Expected name to be a string."),e.startsWith("__"))return new y.__(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,X.i)(e)}catch(e){return e}}var Un=t(57488);let Cn,Gn;function Pn(e,n){return jn(e,n).filter((e=>e.type in Cn))}function xn(e,n){return jn(e,n).filter((e=>e.type in Gn))}function jn(e,n){return[...Qn(e,n),...kn(e,n)]}function kn(e,n){const t=[],o=et(e.getDirectives(),n.getDirectives());for(const e of o.removed)t.push({type:Cn.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,n]of o.persisted){const o=et(e.args,n.args);for(const n of o.added)(0,_.dK)(n)&&t.push({type:Cn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${n.name} on directive ${e.name} was added.`});for(const n of o.removed)t.push({type:Cn.DIRECTIVE_ARG_REMOVED,description:`${n.name} was removed from ${e.name}.`});e.isRepeatable&&!n.isRepeatable&&t.push({type:Cn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const o of e.locations)n.locations.includes(o)||t.push({type:Cn.DIRECTIVE_LOCATION_REMOVED,description:`${o} was removed from ${e.name}.`})}return t}function Qn(e,n){const t=[],o=et(Object.values(e.getTypeMap()),Object.values(n.getTypeMap()));for(const e of o.removed)t.push({type:Cn.TYPE_REMOVED,description:(0,z.u1)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,n]of o.persisted)(0,_.EM)(e)&&(0,_.EM)(n)?t.push(...Kn(e,n)):(0,_.EN)(e)&&(0,_.EN)(n)?t.push(...Hn(e,n)):(0,_.hL)(e)&&(0,_.hL)(n)?t.push(...qn(e,n)):(0,_.lp)(e)&&(0,_.lp)(n)||(0,_.oT)(e)&&(0,_.oT)(n)?t.push(...Xn(e,n),...zn(e,n)):e.constructor!==n.constructor&&t.push({type:Cn.TYPE_CHANGED_KIND,description:`${e.name} changed from ${Wn(e)} to ${Wn(n)}.`});return t}function qn(e,n){const t=[],o=et(Object.values(e.getFields()),Object.values(n.getFields()));for(const n of o.added)(0,_.Wd)(n)?t.push({type:Cn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${n.name} on input type ${e.name} was added.`}):t.push({type:Gn.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${n.name} on input type ${e.name} was added.`});for(const n of o.removed)t.push({type:Cn.FIELD_REMOVED,description:`${e.name}.${n.name} was removed.`});for(const[n,r]of o.persisted)Zn(n.type,r.type)||t.push({type:Cn.FIELD_CHANGED_KIND,description:`${e.name}.${n.name} changed type from ${String(n.type)} to ${String(r.type)}.`});return t}function Hn(e,n){const t=[],o=et(e.getTypes(),n.getTypes());for(const n of o.added)t.push({type:Gn.TYPE_ADDED_TO_UNION,description:`${n.name} was added to union type ${e.name}.`});for(const n of o.removed)t.push({type:Cn.TYPE_REMOVED_FROM_UNION,description:`${n.name} was removed from union type ${e.name}.`});return t}function Kn(e,n){const t=[],o=et(e.getValues(),n.getValues());for(const n of o.added)t.push({type:Gn.VALUE_ADDED_TO_ENUM,description:`${n.name} was added to enum type ${e.name}.`});for(const n of o.removed)t.push({type:Cn.VALUE_REMOVED_FROM_ENUM,description:`${n.name} was removed from enum type ${e.name}.`});return t}function zn(e,n){const t=[],o=et(e.getInterfaces(),n.getInterfaces());for(const n of o.added)t.push({type:Gn.IMPLEMENTED_INTERFACE_ADDED,description:`${n.name} added to interfaces implemented by ${e.name}.`});for(const n of o.removed)t.push({type:Cn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${n.name}.`});return t}function Xn(e,n){const t=[],o=et(Object.values(e.getFields()),Object.values(n.getFields()));for(const n of o.removed)t.push({type:Cn.FIELD_REMOVED,description:`${e.name}.${n.name} was removed.`});for(const[n,r]of o.persisted)t.push(...Yn(e,n,r)),Bn(n.type,r.type)||t.push({type:Cn.FIELD_CHANGED_KIND,description:`${e.name}.${n.name} changed type from ${String(n.type)} to ${String(r.type)}.`});return t}function Yn(e,n,t){const o=[],r=et(n.args,t.args);for(const t of r.removed)o.push({type:Cn.ARG_REMOVED,description:`${e.name}.${n.name} arg ${t.name} was removed.`});for(const[t,i]of r.persisted)if(Zn(t.type,i.type)){if(void 0!==t.defaultValue)if(void 0===i.defaultValue)o.push({type:Gn.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${n.name} arg ${t.name} defaultValue was removed.`});else{const r=Jn(t.defaultValue,t.type),a=Jn(i.defaultValue,i.type);r!==a&&o.push({type:Gn.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${n.name} arg ${t.name} has changed defaultValue from ${r} to ${a}.`})}}else o.push({type:Cn.ARG_CHANGED_KIND,description:`${e.name}.${n.name} arg ${t.name} has changed type from ${String(t.type)} to ${String(i.type)}.`});for(const t of r.added)(0,_.dK)(t)?o.push({type:Cn.REQUIRED_ARG_ADDED,description:`A required arg ${t.name} on ${e.name}.${n.name} was added.`}):o.push({type:Gn.OPTIONAL_ARG_ADDED,description:`An optional arg ${t.name} on ${e.name}.${n.name} was added.`});return o}function Bn(e,n){return(0,_.HG)(e)?(0,_.HG)(n)&&Bn(e.ofType,n.ofType)||(0,_.zM)(n)&&Bn(e,n.ofType):(0,_.zM)(e)?(0,_.zM)(n)&&Bn(e.ofType,n.ofType):(0,_.Zs)(n)&&e.name===n.name||(0,_.zM)(n)&&Bn(e,n.ofType)}function Zn(e,n){return(0,_.HG)(e)?(0,_.HG)(n)&&Zn(e.ofType,n.ofType):(0,_.zM)(e)?(0,_.zM)(n)&&Zn(e.ofType,n.ofType)||!(0,_.zM)(n)&&Zn(e.ofType,n):(0,_.Zs)(n)&&e.name===n.name}function Wn(e){return(0,_.KA)(e)?"a Scalar type":(0,_.lp)(e)?"an Object type":(0,_.oT)(e)?"an Interface type":(0,_.EN)(e)?"a Union type":(0,_.EM)(e)?"an Enum type":(0,_.hL)(e)?"an Input type":void(0,p.k)(!1,"Unexpected type: "+(0,l.X)(e))}function Jn(e,n){const t=(0,yn.J)(e,n);return null!=t||(0,p.k)(!1),(0,ee.S)((0,Un.n)(t))}function et(e,n){const t=[],o=[],r=[],i=(0,Ze.P)(e,(({name:e})=>e)),a=(0,Ze.P)(n,(({name:e})=>e));for(const n of e){const e=a[n.name];void 0===e?o.push(n):r.push([n,e])}for(const e of n)void 0===i[e.name]&&t.push(e);return{added:t,persisted:r,removed:o}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Cn||(Cn={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Gn||(Gn={}));var nt=t(80707),tt=t(39842),ot=t(81532),rt=t(95335),it=t(79392),at=t(63459)}}]);