@jackchuka/gql-ingest 2.0.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/cli.js +34 -34
  2. package/package.json +2 -2
package/bin/cli.js CHANGED
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
- var th=Object.create;var xc=Object.defineProperty;var ih=Object.getOwnPropertyDescriptor;var oh=Object.getOwnPropertyNames;var sh=Object.getPrototypeOf,ah=Object.prototype.hasOwnProperty;var y=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var uh=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of oh(r))!ah.call(e,i)&&i!==n&&xc(e,i,{get:()=>r[i],enumerable:!(t=ih(r,i))||t.enumerable});return e};var ch=(e,r,n)=>(n=e!=null?th(sh(e)):{},uh(r||!e||!e.__esModule?xc(n,"default",{value:e,enumerable:!0}):n,e));var $l=y(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.versionInfo=vn.version=void 0;var wv="16.11.0";vn.version=wv;var xv=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});vn.versionInfo=xv});var Se=y(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.devAssert=Fv;function Fv(e,r){if(!!!e)throw new Error(r)}});var Zt=y(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.isPromise=kv;function kv(e){return typeof e?.then=="function"}});var sr=y(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.isObjectLike=Cv;function Cv(e){return typeof e=="object"&&e!==null}});var Oe=y(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.invariant=qv;function qv(e,r){if(!!!e)throw new Error(r??"Unexpected invariant triggered.")}});var ei=y($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.getLocation=Vv;var Mv=Oe(),Gv=/\r\n|[\n\r]/g;function Vv(e,r){let n=0,t=1;for(let i of e.body.matchAll(Gv)){if(typeof i.index=="number"||(0,Mv.invariant)(!1),i.index>=r)break;n=i.index+i[0].length,t+=1}return{line:t,column:r+1-n}}});var Ko=y(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.printLocation=Uv;ri.printSourceLocation=Bl;var Qv=ei();function Uv(e){return Bl(e.source,(0,Qv.getLocation)(e.source,e.start))}function Bl(e,r){let n=e.locationOffset.column-1,t="".padStart(n)+e.body,i=r.line-1,o=e.locationOffset.line-1,s=r.line+o,a=r.line===1?n:0,u=r.column+a,c=`${e.name}:${s}:${u}
3
- `,l=t.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){let f=Math.floor(u/80),m=u%80,h=[];for(let O=0;O<p.length;O+=80)h.push(p.slice(O,O+80));return c+Kl([[`${s} |`,h[0]],...h.slice(1,f+1).map(O=>["|",O]),["|","^".padStart(m)],["|",h[f+1]]])}return c+Kl([[`${s-1} |`,l[i-1]],[`${s} |`,p],["|","^".padStart(u)],[`${s+1} |`,l[i+1]]])}function Kl(e){let r=e.filter(([t,i])=>i!==void 0),n=Math.max(...r.map(([t])=>t.length));return r.map(([t,i])=>t.padStart(n)+(i?" "+i:"")).join(`
4
- `)}});var P=y(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.GraphQLError=void 0;Tn.formatError=Yv;Tn.printError=Bv;var $v=sr(),Yl=ei(),Hl=Ko();function Kv(e){let r=e[0];return r==null||"kind"in r||"length"in r?{nodes:r,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:r}var Bo=class e extends Error{constructor(r,...n){var t,i,o;let{nodes:s,source:a,positions:u,path:c,originalError:l,extensions:p}=Kv(n);super(r),this.name="GraphQLError",this.path=c??void 0,this.originalError=l??void 0,this.nodes=Jl(Array.isArray(s)?s:s?[s]:void 0);let f=Jl((t=this.nodes)===null||t===void 0?void 0:t.map(h=>h.loc).filter(h=>h!=null));this.source=a??(f==null||(i=f[0])===null||i===void 0?void 0:i.source),this.positions=u??f?.map(h=>h.start),this.locations=u&&a?u.map(h=>(0,Yl.getLocation)(a,h)):f?.map(h=>(0,Yl.getLocation)(h.source,h.start));let m=(0,$v.isObjectLike)(l?.extensions)?l?.extensions:void 0;this.extensions=(o=p??m)!==null&&o!==void 0?o: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}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let r=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(r+=`
2
+ var ih=Object.create;var xc=Object.defineProperty;var oh=Object.getOwnPropertyDescriptor;var sh=Object.getOwnPropertyNames;var ah=Object.getPrototypeOf,uh=Object.prototype.hasOwnProperty;var y=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ch=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of sh(r))!uh.call(e,i)&&i!==n&&xc(e,i,{get:()=>r[i],enumerable:!(t=oh(r,i))||t.enumerable});return e};var lh=(e,r,n)=>(n=e!=null?ih(ah(e)):{},ch(r||!e||!e.__esModule?xc(n,"default",{value:e,enumerable:!0}):n,e));var Kl=y(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.versionInfo=vn.version=void 0;var wv="16.11.0";vn.version=wv;var xv=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});vn.versionInfo=xv});var Se=y(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.devAssert=Fv;function Fv(e,r){if(!!!e)throw new Error(r)}});var Zt=y(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.isPromise=kv;function kv(e){return typeof e?.then=="function"}});var sr=y(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.isObjectLike=Cv;function Cv(e){return typeof e=="object"&&e!==null}});var Oe=y(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.invariant=qv;function qv(e,r){if(!!!e)throw new Error(r??"Unexpected invariant triggered.")}});var ei=y($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.getLocation=Vv;var Mv=Oe(),Gv=/\r\n|[\n\r]/g;function Vv(e,r){let n=0,t=1;for(let i of e.body.matchAll(Gv)){if(typeof i.index=="number"||(0,Mv.invariant)(!1),i.index>=r)break;n=i.index+i[0].length,t+=1}return{line:t,column:r+1-n}}});var Ko=y(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.printLocation=Uv;ri.printSourceLocation=Yl;var Qv=ei();function Uv(e){return Yl(e.source,(0,Qv.getLocation)(e.source,e.start))}function Yl(e,r){let n=e.locationOffset.column-1,t="".padStart(n)+e.body,i=r.line-1,o=e.locationOffset.line-1,s=r.line+o,a=r.line===1?n:0,u=r.column+a,c=`${e.name}:${s}:${u}
3
+ `,l=t.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){let f=Math.floor(u/80),m=u%80,h=[];for(let O=0;O<p.length;O+=80)h.push(p.slice(O,O+80));return c+Bl([[`${s} |`,h[0]],...h.slice(1,f+1).map(O=>["|",O]),["|","^".padStart(m)],["|",h[f+1]]])}return c+Bl([[`${s-1} |`,l[i-1]],[`${s} |`,p],["|","^".padStart(u)],[`${s+1} |`,l[i+1]]])}function Bl(e){let r=e.filter(([t,i])=>i!==void 0),n=Math.max(...r.map(([t])=>t.length));return r.map(([t,i])=>t.padStart(n)+(i?" "+i:"")).join(`
4
+ `)}});var P=y(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.GraphQLError=void 0;Tn.formatError=Yv;Tn.printError=Bv;var $v=sr(),Hl=ei(),Jl=Ko();function Kv(e){let r=e[0];return r==null||"kind"in r||"length"in r?{nodes:r,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:r}var Bo=class e extends Error{constructor(r,...n){var t,i,o;let{nodes:s,source:a,positions:u,path:c,originalError:l,extensions:p}=Kv(n);super(r),this.name="GraphQLError",this.path=c??void 0,this.originalError=l??void 0,this.nodes=Wl(Array.isArray(s)?s:s?[s]:void 0);let f=Wl((t=this.nodes)===null||t===void 0?void 0:t.map(h=>h.loc).filter(h=>h!=null));this.source=a??(f==null||(i=f[0])===null||i===void 0?void 0:i.source),this.positions=u??f?.map(h=>h.start),this.locations=u&&a?u.map(h=>(0,Hl.getLocation)(a,h)):f?.map(h=>(0,Hl.getLocation)(h.source,h.start));let m=(0,$v.isObjectLike)(l?.extensions)?l?.extensions:void 0;this.extensions=(o=p??m)!==null&&o!==void 0?o: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}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let r=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(r+=`
5
5
 
6
- `+(0,Hl.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)r+=`
6
+ `+(0,Jl.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)r+=`
7
7
 
8
- `+(0,Hl.printSourceLocation)(this.source,n);return r}toJSON(){let r={message:this.message};return this.locations!=null&&(r.locations=this.locations),this.path!=null&&(r.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(r.extensions=this.extensions),r}};Tn.GraphQLError=Bo;function Jl(e){return e===void 0||e.length===0?void 0:e}function Bv(e){return e.toString()}function Yv(e){return e.toJSON()}});var ni=y(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.syntaxError=Jv;var Hv=P();function Jv(e,r,n){return new Hv.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[r]})}});var ar=y(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.Token=Ce.QueryDocumentKeys=Ce.OperationTypeNode=Ce.Location=void 0;Ce.isNode=Xv;var Ho=class{constructor(r,n,t){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=t}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Ce.Location=Ho;var Jo=class{constructor(r,n,t,i,o,s){this.kind=r,this.start=n,this.end=t,this.line=i,this.column=o,this.value=s,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}}};Ce.Token=Jo;var Wl={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"]};Ce.QueryDocumentKeys=Wl;var Wv=new Set(Object.keys(Wl));function Xv(e){let r=e?.kind;return typeof r=="string"&&Wv.has(r)}var Wo;Ce.OperationTypeNode=Wo;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Wo||(Ce.OperationTypeNode=Wo={}))});var gn=y(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.DirectiveLocation=void 0;var Xo;Qn.DirectiveLocation=Xo;(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"})(Xo||(Qn.DirectiveLocation=Xo={}))});var V=y(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.Kind=void 0;var zo;Un.Kind=zo;(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"})(zo||(Un.Kind=zo={}))});var ti=y($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.isDigit=Xl;$r.isLetter=Zo;$r.isNameContinue=eT;$r.isNameStart=Zv;$r.isWhiteSpace=zv;function zv(e){return e===9||e===32}function Xl(e){return e>=48&&e<=57}function Zo(e){return e>=97&&e<=122||e>=65&&e<=90}function Zv(e){return Zo(e)||e===95}function eT(e){return Zo(e)||Xl(e)||e===95}});var Kn=y($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.dedentBlockStringLines=rT;$n.isPrintableAsBlockString=tT;$n.printBlockString=iT;var es=ti();function rT(e){var r;let n=Number.MAX_SAFE_INTEGER,t=null,i=-1;for(let s=0;s<e.length;++s){var o;let a=e[s],u=nT(a);u!==a.length&&(t=(o=t)!==null&&o!==void 0?o:s,i=s,s!==0&&u<n&&(n=u))}return e.map((s,a)=>a===0?s:s.slice(n)).slice((r=t)!==null&&r!==void 0?r:0,i+1)}function nT(e){let r=0;for(;r<e.length&&(0,es.isWhiteSpace)(e.charCodeAt(r));)++r;return r}function tT(e){if(e==="")return!0;let r=!0,n=!1,t=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(r&&!i)return!1;i=!0,r=!0,n=!1;break;case 9:case 32:n||(n=r);break;default:t&&(t=n),r=!1}return!(r||t&&i)}function iT(e,r){let n=e.replace(/"""/g,'\\"""'),t=n.split(/\r\n|[\n\r]/g),i=t.length===1,o=t.length>1&&t.slice(1).every(m=>m.length===0||(0,es.isWhiteSpace)(m.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=a||u,l=!(r!=null&&r.minimize)&&(!i||e.length>70||c||o||s),p="",f=i&&(0,es.isWhiteSpace)(e.charCodeAt(0));return(l&&!f||o)&&(p+=`
8
+ `+(0,Jl.printSourceLocation)(this.source,n);return r}toJSON(){let r={message:this.message};return this.locations!=null&&(r.locations=this.locations),this.path!=null&&(r.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(r.extensions=this.extensions),r}};Tn.GraphQLError=Bo;function Wl(e){return e===void 0||e.length===0?void 0:e}function Bv(e){return e.toString()}function Yv(e){return e.toJSON()}});var ni=y(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.syntaxError=Jv;var Hv=P();function Jv(e,r,n){return new Hv.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[r]})}});var ar=y(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.Token=Ce.QueryDocumentKeys=Ce.OperationTypeNode=Ce.Location=void 0;Ce.isNode=Xv;var Ho=class{constructor(r,n,t){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=t}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Ce.Location=Ho;var Jo=class{constructor(r,n,t,i,o,s){this.kind=r,this.start=n,this.end=t,this.line=i,this.column=o,this.value=s,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}}};Ce.Token=Jo;var Xl={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"]};Ce.QueryDocumentKeys=Xl;var Wv=new Set(Object.keys(Xl));function Xv(e){let r=e?.kind;return typeof r=="string"&&Wv.has(r)}var Wo;Ce.OperationTypeNode=Wo;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Wo||(Ce.OperationTypeNode=Wo={}))});var gn=y(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.DirectiveLocation=void 0;var Xo;Qn.DirectiveLocation=Xo;(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"})(Xo||(Qn.DirectiveLocation=Xo={}))});var V=y(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.Kind=void 0;var zo;Un.Kind=zo;(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"})(zo||(Un.Kind=zo={}))});var ti=y($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.isDigit=zl;$r.isLetter=Zo;$r.isNameContinue=eT;$r.isNameStart=Zv;$r.isWhiteSpace=zv;function zv(e){return e===9||e===32}function zl(e){return e>=48&&e<=57}function Zo(e){return e>=97&&e<=122||e>=65&&e<=90}function Zv(e){return Zo(e)||e===95}function eT(e){return Zo(e)||zl(e)||e===95}});var Kn=y($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.dedentBlockStringLines=rT;$n.isPrintableAsBlockString=tT;$n.printBlockString=iT;var es=ti();function rT(e){var r;let n=Number.MAX_SAFE_INTEGER,t=null,i=-1;for(let s=0;s<e.length;++s){var o;let a=e[s],u=nT(a);u!==a.length&&(t=(o=t)!==null&&o!==void 0?o:s,i=s,s!==0&&u<n&&(n=u))}return e.map((s,a)=>a===0?s:s.slice(n)).slice((r=t)!==null&&r!==void 0?r:0,i+1)}function nT(e){let r=0;for(;r<e.length&&(0,es.isWhiteSpace)(e.charCodeAt(r));)++r;return r}function tT(e){if(e==="")return!0;let r=!0,n=!1,t=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(r&&!i)return!1;i=!0,r=!0,n=!1;break;case 9:case 32:n||(n=r);break;default:t&&(t=n),r=!1}return!(r||t&&i)}function iT(e,r){let n=e.replace(/"""/g,'\\"""'),t=n.split(/\r\n|[\n\r]/g),i=t.length===1,o=t.length>1&&t.slice(1).every(m=>m.length===0||(0,es.isWhiteSpace)(m.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=a||u,l=!(r!=null&&r.minimize)&&(!i||e.length>70||c||o||s),p="",f=i&&(0,es.isWhiteSpace)(e.charCodeAt(0));return(l&&!f||o)&&(p+=`
9
9
  `),p+=n,(l||c)&&(p+=`
10
- `),'"""'+p+'"""'}});var Yn=y(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.TokenKind=void 0;var rs;Bn.TokenKind=rs;(function(e){e.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"})(rs||(Bn.TokenKind=rs={}))});var oi=y(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.Lexer=void 0;Jn.isPunctuatorTokenKind=sT;var Je=ni(),Zl=ar(),oT=Kn(),Kr=ti(),M=Yn(),ts=class{constructor(r){let n=new Zl.Token(M.TokenKind.SOF,0,0,0,0);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let r=this.token;if(r.kind!==M.TokenKind.EOF)do if(r.next)r=r.next;else{let n=aT(this,r.end);r.next=n,n.prev=r,r=n}while(r.kind===M.TokenKind.COMMENT);return r}};Jn.Lexer=ts;function sT(e){return e===M.TokenKind.BANG||e===M.TokenKind.DOLLAR||e===M.TokenKind.AMP||e===M.TokenKind.PAREN_L||e===M.TokenKind.PAREN_R||e===M.TokenKind.SPREAD||e===M.TokenKind.COLON||e===M.TokenKind.EQUALS||e===M.TokenKind.AT||e===M.TokenKind.BRACKET_L||e===M.TokenKind.BRACKET_R||e===M.TokenKind.BRACE_L||e===M.TokenKind.PIPE||e===M.TokenKind.BRACE_R}function bn(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ii(e,r){return ep(e.charCodeAt(r))&&rp(e.charCodeAt(r+1))}function ep(e){return e>=55296&&e<=56319}function rp(e){return e>=56320&&e<=57343}function Br(e,r){let n=e.source.body.codePointAt(r);if(n===void 0)return M.TokenKind.EOF;if(n>=32&&n<=126){let t=String.fromCodePoint(n);return t==='"'?`'"'`:`"${t}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function fe(e,r,n,t,i){let o=e.line,s=1+n-e.lineStart;return new Zl.Token(r,n,t,o,s,i)}function aT(e,r){let n=e.source.body,t=n.length,i=r;for(;i<t;){let o=n.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return uT(e,i);case 33:return fe(e,M.TokenKind.BANG,i,i+1);case 36:return fe(e,M.TokenKind.DOLLAR,i,i+1);case 38:return fe(e,M.TokenKind.AMP,i,i+1);case 40:return fe(e,M.TokenKind.PAREN_L,i,i+1);case 41:return fe(e,M.TokenKind.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return fe(e,M.TokenKind.SPREAD,i,i+3);break;case 58:return fe(e,M.TokenKind.COLON,i,i+1);case 61:return fe(e,M.TokenKind.EQUALS,i,i+1);case 64:return fe(e,M.TokenKind.AT,i,i+1);case 91:return fe(e,M.TokenKind.BRACKET_L,i,i+1);case 93:return fe(e,M.TokenKind.BRACKET_R,i,i+1);case 123:return fe(e,M.TokenKind.BRACE_L,i,i+1);case 124:return fe(e,M.TokenKind.PIPE,i,i+1);case 125:return fe(e,M.TokenKind.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?mT(e,i):lT(e,i)}if((0,Kr.isDigit)(o)||o===45)return cT(e,i,o);if((0,Kr.isNameStart)(o))return hT(e,i);throw(0,Je.syntaxError)(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:bn(o)||ii(n,i)?`Unexpected character: ${Br(e,i)}.`:`Invalid character: ${Br(e,i)}.`)}return fe(e,M.TokenKind.EOF,t,t)}function uT(e,r){let n=e.source.body,t=n.length,i=r+1;for(;i<t;){let o=n.charCodeAt(i);if(o===10||o===13)break;if(bn(o))++i;else if(ii(n,i))i+=2;else break}return fe(e,M.TokenKind.COMMENT,r,i,n.slice(r+1,i))}function cT(e,r,n){let t=e.source.body,i=r,o=n,s=!1;if(o===45&&(o=t.charCodeAt(++i)),o===48){if(o=t.charCodeAt(++i),(0,Kr.isDigit)(o))throw(0,Je.syntaxError)(e.source,i,`Invalid number, unexpected digit after 0: ${Br(e,i)}.`)}else i=ns(e,i,o),o=t.charCodeAt(i);if(o===46&&(s=!0,o=t.charCodeAt(++i),i=ns(e,i,o),o=t.charCodeAt(i)),(o===69||o===101)&&(s=!0,o=t.charCodeAt(++i),(o===43||o===45)&&(o=t.charCodeAt(++i)),i=ns(e,i,o),o=t.charCodeAt(i)),o===46||(0,Kr.isNameStart)(o))throw(0,Je.syntaxError)(e.source,i,`Invalid number, expected digit but got: ${Br(e,i)}.`);return fe(e,s?M.TokenKind.FLOAT:M.TokenKind.INT,r,i,t.slice(r,i))}function ns(e,r,n){if(!(0,Kr.isDigit)(n))throw(0,Je.syntaxError)(e.source,r,`Invalid number, expected digit but got: ${Br(e,r)}.`);let t=e.source.body,i=r+1;for(;(0,Kr.isDigit)(t.charCodeAt(i));)++i;return i}function lT(e,r){let n=e.source.body,t=n.length,i=r+1,o=i,s="";for(;i<t;){let a=n.charCodeAt(i);if(a===34)return s+=n.slice(o,i),fe(e,M.TokenKind.STRING,r,i+1,s);if(a===92){s+=n.slice(o,i);let u=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?pT(e,i):fT(e,i):dT(e,i);s+=u.value,i+=u.size,o=i;continue}if(a===10||a===13)break;if(bn(a))++i;else if(ii(n,i))i+=2;else throw(0,Je.syntaxError)(e.source,i,`Invalid character within String: ${Br(e,i)}.`)}throw(0,Je.syntaxError)(e.source,i,"Unterminated string.")}function pT(e,r){let n=e.source.body,t=0,i=3;for(;i<12;){let o=n.charCodeAt(r+i++);if(o===125){if(i<5||!bn(t))break;return{value:String.fromCodePoint(t),size:i}}if(t=t<<4|Hn(o),t<0)break}throw(0,Je.syntaxError)(e.source,r,`Invalid Unicode escape sequence: "${n.slice(r,r+i)}".`)}function fT(e,r){let n=e.source.body,t=zl(n,r+2);if(bn(t))return{value:String.fromCodePoint(t),size:6};if(ep(t)&&n.charCodeAt(r+6)===92&&n.charCodeAt(r+7)===117){let i=zl(n,r+8);if(rp(i))return{value:String.fromCodePoint(t,i),size:12}}throw(0,Je.syntaxError)(e.source,r,`Invalid Unicode escape sequence: "${n.slice(r,r+6)}".`)}function zl(e,r){return Hn(e.charCodeAt(r))<<12|Hn(e.charCodeAt(r+1))<<8|Hn(e.charCodeAt(r+2))<<4|Hn(e.charCodeAt(r+3))}function Hn(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function dT(e,r){let n=e.source.body;switch(n.charCodeAt(r+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:`
10
+ `),'"""'+p+'"""'}});var Yn=y(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.TokenKind=void 0;var rs;Bn.TokenKind=rs;(function(e){e.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"})(rs||(Bn.TokenKind=rs={}))});var oi=y(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.Lexer=void 0;Jn.isPunctuatorTokenKind=sT;var Je=ni(),ep=ar(),oT=Kn(),Kr=ti(),M=Yn(),ts=class{constructor(r){let n=new ep.Token(M.TokenKind.SOF,0,0,0,0);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let r=this.token;if(r.kind!==M.TokenKind.EOF)do if(r.next)r=r.next;else{let n=aT(this,r.end);r.next=n,n.prev=r,r=n}while(r.kind===M.TokenKind.COMMENT);return r}};Jn.Lexer=ts;function sT(e){return e===M.TokenKind.BANG||e===M.TokenKind.DOLLAR||e===M.TokenKind.AMP||e===M.TokenKind.PAREN_L||e===M.TokenKind.PAREN_R||e===M.TokenKind.SPREAD||e===M.TokenKind.COLON||e===M.TokenKind.EQUALS||e===M.TokenKind.AT||e===M.TokenKind.BRACKET_L||e===M.TokenKind.BRACKET_R||e===M.TokenKind.BRACE_L||e===M.TokenKind.PIPE||e===M.TokenKind.BRACE_R}function bn(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ii(e,r){return rp(e.charCodeAt(r))&&np(e.charCodeAt(r+1))}function rp(e){return e>=55296&&e<=56319}function np(e){return e>=56320&&e<=57343}function Br(e,r){let n=e.source.body.codePointAt(r);if(n===void 0)return M.TokenKind.EOF;if(n>=32&&n<=126){let t=String.fromCodePoint(n);return t==='"'?`'"'`:`"${t}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function fe(e,r,n,t,i){let o=e.line,s=1+n-e.lineStart;return new ep.Token(r,n,t,o,s,i)}function aT(e,r){let n=e.source.body,t=n.length,i=r;for(;i<t;){let o=n.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return uT(e,i);case 33:return fe(e,M.TokenKind.BANG,i,i+1);case 36:return fe(e,M.TokenKind.DOLLAR,i,i+1);case 38:return fe(e,M.TokenKind.AMP,i,i+1);case 40:return fe(e,M.TokenKind.PAREN_L,i,i+1);case 41:return fe(e,M.TokenKind.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return fe(e,M.TokenKind.SPREAD,i,i+3);break;case 58:return fe(e,M.TokenKind.COLON,i,i+1);case 61:return fe(e,M.TokenKind.EQUALS,i,i+1);case 64:return fe(e,M.TokenKind.AT,i,i+1);case 91:return fe(e,M.TokenKind.BRACKET_L,i,i+1);case 93:return fe(e,M.TokenKind.BRACKET_R,i,i+1);case 123:return fe(e,M.TokenKind.BRACE_L,i,i+1);case 124:return fe(e,M.TokenKind.PIPE,i,i+1);case 125:return fe(e,M.TokenKind.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?mT(e,i):lT(e,i)}if((0,Kr.isDigit)(o)||o===45)return cT(e,i,o);if((0,Kr.isNameStart)(o))return hT(e,i);throw(0,Je.syntaxError)(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:bn(o)||ii(n,i)?`Unexpected character: ${Br(e,i)}.`:`Invalid character: ${Br(e,i)}.`)}return fe(e,M.TokenKind.EOF,t,t)}function uT(e,r){let n=e.source.body,t=n.length,i=r+1;for(;i<t;){let o=n.charCodeAt(i);if(o===10||o===13)break;if(bn(o))++i;else if(ii(n,i))i+=2;else break}return fe(e,M.TokenKind.COMMENT,r,i,n.slice(r+1,i))}function cT(e,r,n){let t=e.source.body,i=r,o=n,s=!1;if(o===45&&(o=t.charCodeAt(++i)),o===48){if(o=t.charCodeAt(++i),(0,Kr.isDigit)(o))throw(0,Je.syntaxError)(e.source,i,`Invalid number, unexpected digit after 0: ${Br(e,i)}.`)}else i=ns(e,i,o),o=t.charCodeAt(i);if(o===46&&(s=!0,o=t.charCodeAt(++i),i=ns(e,i,o),o=t.charCodeAt(i)),(o===69||o===101)&&(s=!0,o=t.charCodeAt(++i),(o===43||o===45)&&(o=t.charCodeAt(++i)),i=ns(e,i,o),o=t.charCodeAt(i)),o===46||(0,Kr.isNameStart)(o))throw(0,Je.syntaxError)(e.source,i,`Invalid number, expected digit but got: ${Br(e,i)}.`);return fe(e,s?M.TokenKind.FLOAT:M.TokenKind.INT,r,i,t.slice(r,i))}function ns(e,r,n){if(!(0,Kr.isDigit)(n))throw(0,Je.syntaxError)(e.source,r,`Invalid number, expected digit but got: ${Br(e,r)}.`);let t=e.source.body,i=r+1;for(;(0,Kr.isDigit)(t.charCodeAt(i));)++i;return i}function lT(e,r){let n=e.source.body,t=n.length,i=r+1,o=i,s="";for(;i<t;){let a=n.charCodeAt(i);if(a===34)return s+=n.slice(o,i),fe(e,M.TokenKind.STRING,r,i+1,s);if(a===92){s+=n.slice(o,i);let u=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?pT(e,i):fT(e,i):dT(e,i);s+=u.value,i+=u.size,o=i;continue}if(a===10||a===13)break;if(bn(a))++i;else if(ii(n,i))i+=2;else throw(0,Je.syntaxError)(e.source,i,`Invalid character within String: ${Br(e,i)}.`)}throw(0,Je.syntaxError)(e.source,i,"Unterminated string.")}function pT(e,r){let n=e.source.body,t=0,i=3;for(;i<12;){let o=n.charCodeAt(r+i++);if(o===125){if(i<5||!bn(t))break;return{value:String.fromCodePoint(t),size:i}}if(t=t<<4|Hn(o),t<0)break}throw(0,Je.syntaxError)(e.source,r,`Invalid Unicode escape sequence: "${n.slice(r,r+i)}".`)}function fT(e,r){let n=e.source.body,t=Zl(n,r+2);if(bn(t))return{value:String.fromCodePoint(t),size:6};if(rp(t)&&n.charCodeAt(r+6)===92&&n.charCodeAt(r+7)===117){let i=Zl(n,r+8);if(np(i))return{value:String.fromCodePoint(t,i),size:12}}throw(0,Je.syntaxError)(e.source,r,`Invalid Unicode escape sequence: "${n.slice(r,r+6)}".`)}function Zl(e,r){return Hn(e.charCodeAt(r))<<12|Hn(e.charCodeAt(r+1))<<8|Hn(e.charCodeAt(r+2))<<4|Hn(e.charCodeAt(r+3))}function Hn(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function dT(e,r){let n=e.source.body;switch(n.charCodeAt(r+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:`
11
11
  `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,Je.syntaxError)(e.source,r,`Invalid character escape sequence: "${n.slice(r,r+2)}".`)}function mT(e,r){let n=e.source.body,t=n.length,i=e.lineStart,o=r+3,s=o,a="",u=[];for(;o<t;){let c=n.charCodeAt(o);if(c===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){a+=n.slice(s,o),u.push(a);let l=fe(e,M.TokenKind.BLOCK_STRING,r,o+3,(0,oT.dedentBlockStringLines)(u).join(`
12
- `));return e.line+=u.length-1,e.lineStart=i,l}if(c===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){a+=n.slice(s,o),s=o+1,o+=4;continue}if(c===10||c===13){a+=n.slice(s,o),u.push(a),c===13&&n.charCodeAt(o+1)===10?o+=2:++o,a="",s=o,i=o;continue}if(bn(c))++o;else if(ii(n,o))o+=2;else throw(0,Je.syntaxError)(e.source,o,`Invalid character within String: ${Br(e,o)}.`)}throw(0,Je.syntaxError)(e.source,o,"Unterminated string.")}function hT(e,r){let n=e.source.body,t=n.length,i=r+1;for(;i<t;){let o=n.charCodeAt(i);if((0,Kr.isNameContinue)(o))++i;else break}return fe(e,M.TokenKind.NAME,r,i,n.slice(r,i))}});var J=y(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.inspect=vT;var yT=10,np=2;function vT(e){return si(e,[])}function si(e,r){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return TT(e,r);default:return String(e)}}function TT(e,r){if(e===null)return"null";if(r.includes(e))return"[Circular]";let n=[...r,e];if(gT(e)){let t=e.toJSON();if(t!==e)return typeof t=="string"?t:si(t,n)}else if(Array.isArray(e))return ET(e,n);return bT(e,n)}function gT(e){return typeof e.toJSON=="function"}function bT(e,r){let n=Object.entries(e);return n.length===0?"{}":r.length>np?"["+_T(e)+"]":"{ "+n.map(([i,o])=>i+": "+si(o,r)).join(", ")+" }"}function ET(e,r){if(e.length===0)return"[]";if(r.length>np)return"[Array]";let n=Math.min(yT,e.length),t=e.length-n,i=[];for(let o=0;o<n;++o)i.push(si(e[o],r));return t===1?i.push("... 1 more item"):t>1&&i.push(`... ${t} more items`),"["+i.join(", ")+"]"}function _T(e){let r=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(r==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return r}});var Wn=y(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.instanceOf=void 0;var OT=J(),NT=globalThis.process&&process.env.NODE_ENV==="production",IT=NT?function(r,n){return r instanceof n}:function(r,n){if(r instanceof n)return!0;if(typeof r=="object"&&r!==null){var t;let i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in r?r[Symbol.toStringTag]:(t=r.constructor)===null||t===void 0?void 0:t.name;if(i===o){let s=(0,OT.inspect)(r);throw new Error(`Cannot use ${i} "${s}" from another module or realm.
12
+ `));return e.line+=u.length-1,e.lineStart=i,l}if(c===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){a+=n.slice(s,o),s=o+1,o+=4;continue}if(c===10||c===13){a+=n.slice(s,o),u.push(a),c===13&&n.charCodeAt(o+1)===10?o+=2:++o,a="",s=o,i=o;continue}if(bn(c))++o;else if(ii(n,o))o+=2;else throw(0,Je.syntaxError)(e.source,o,`Invalid character within String: ${Br(e,o)}.`)}throw(0,Je.syntaxError)(e.source,o,"Unterminated string.")}function hT(e,r){let n=e.source.body,t=n.length,i=r+1;for(;i<t;){let o=n.charCodeAt(i);if((0,Kr.isNameContinue)(o))++i;else break}return fe(e,M.TokenKind.NAME,r,i,n.slice(r,i))}});var J=y(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.inspect=vT;var yT=10,tp=2;function vT(e){return si(e,[])}function si(e,r){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return TT(e,r);default:return String(e)}}function TT(e,r){if(e===null)return"null";if(r.includes(e))return"[Circular]";let n=[...r,e];if(gT(e)){let t=e.toJSON();if(t!==e)return typeof t=="string"?t:si(t,n)}else if(Array.isArray(e))return ET(e,n);return bT(e,n)}function gT(e){return typeof e.toJSON=="function"}function bT(e,r){let n=Object.entries(e);return n.length===0?"{}":r.length>tp?"["+_T(e)+"]":"{ "+n.map(([i,o])=>i+": "+si(o,r)).join(", ")+" }"}function ET(e,r){if(e.length===0)return"[]";if(r.length>tp)return"[Array]";let n=Math.min(yT,e.length),t=e.length-n,i=[];for(let o=0;o<n;++o)i.push(si(e[o],r));return t===1?i.push("... 1 more item"):t>1&&i.push(`... ${t} more items`),"["+i.join(", ")+"]"}function _T(e){let r=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(r==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return r}});var Wn=y(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.instanceOf=void 0;var OT=J(),NT=globalThis.process&&process.env.NODE_ENV==="production",IT=NT?function(r,n){return r instanceof n}:function(r,n){if(r instanceof n)return!0;if(typeof r=="object"&&r!==null){var t;let i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in r?r[Symbol.toStringTag]:(t=r.constructor)===null||t===void 0?void 0:t.name;if(i===o){let s=(0,OT.inspect)(r);throw new Error(`Cannot use ${i} "${s}" from another module or realm.
13
13
 
14
14
  Ensure that there is only one instance of "graphql" in the node_modules
15
15
  directory. If different versions of "graphql" are the dependencies of other
@@ -20,7 +20,7 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
20
20
  Duplicate "graphql" modules cannot be used at the same time since different
21
21
  versions may have different capabilities and behavior. The data from one
22
22
  version used in the function from another could produce confusing and
23
- spurious results.`)}}return!1};ai.instanceOf=IT});var ci=y(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.Source=void 0;Xn.isSource=DT;var os=Se(),LT=J(),ST=Wn(),ui=class{constructor(r,n="GraphQL request",t={line:1,column:1}){typeof r=="string"||(0,os.devAssert)(!1,`Body must be a string. Received: ${(0,LT.inspect)(r)}.`),this.body=r,this.name=n,this.locationOffset=t,this.locationOffset.line>0||(0,os.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,os.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Xn.Source=ui;function DT(e){return(0,ST.instanceOf)(e,ui)}});var En=y(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.Parser=void 0;Pr.parse=RT;Pr.parseConstValue=PT;Pr.parseType=wT;Pr.parseValue=jT;var Yr=ni(),zn=ar(),AT=gn(),x=V(),ip=oi(),tp=ci(),E=Yn();function RT(e,r){let n=new Hr(e,r),t=n.parseDocument();return Object.defineProperty(t,"tokenCount",{enumerable:!1,value:n.tokenCount}),t}function jT(e,r){let n=new Hr(e,r);n.expectToken(E.TokenKind.SOF);let t=n.parseValueLiteral(!1);return n.expectToken(E.TokenKind.EOF),t}function PT(e,r){let n=new Hr(e,r);n.expectToken(E.TokenKind.SOF);let t=n.parseConstValueLiteral();return n.expectToken(E.TokenKind.EOF),t}function wT(e,r){let n=new Hr(e,r);n.expectToken(E.TokenKind.SOF);let t=n.parseTypeReference();return n.expectToken(E.TokenKind.EOF),t}var Hr=class{constructor(r,n={}){let t=(0,tp.isSource)(r)?r:new tp.Source(r);this._lexer=new ip.Lexer(t),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let r=this.expectToken(E.TokenKind.NAME);return this.node(r,{kind:x.Kind.NAME,value:r.value})}parseDocument(){return this.node(this._lexer.token,{kind:x.Kind.DOCUMENT,definitions:this.many(E.TokenKind.SOF,this.parseDefinition,E.TokenKind.EOF)})}parseDefinition(){if(this.peek(E.TokenKind.BRACE_L))return this.parseOperationDefinition();let r=this.peekDescription(),n=r?this._lexer.lookahead():this._lexer.token;if(n.kind===E.TokenKind.NAME){switch(n.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(r)throw(0,Yr.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let r=this._lexer.token;if(this.peek(E.TokenKind.BRACE_L))return this.node(r,{kind:x.Kind.OPERATION_DEFINITION,operation:zn.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),t;return this.peek(E.TokenKind.NAME)&&(t=this.parseName()),this.node(r,{kind:x.Kind.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let r=this.expectToken(E.TokenKind.NAME);switch(r.value){case"query":return zn.OperationTypeNode.QUERY;case"mutation":return zn.OperationTypeNode.MUTATION;case"subscription":return zn.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(r)}parseVariableDefinitions(){return this.optionalMany(E.TokenKind.PAREN_L,this.parseVariableDefinition,E.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:x.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(E.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let r=this._lexer.token;return this.expectToken(E.TokenKind.DOLLAR),this.node(r,{kind:x.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:x.Kind.SELECTION_SET,selections:this.many(E.TokenKind.BRACE_L,this.parseSelection,E.TokenKind.BRACE_R)})}parseSelection(){return this.peek(E.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let r=this._lexer.token,n=this.parseName(),t,i;return this.expectOptionalToken(E.TokenKind.COLON)?(t=n,i=this.parseName()):i=n,this.node(r,{kind:x.Kind.FIELD,alias:t,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(E.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(r){let n=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(E.TokenKind.PAREN_L,n,E.TokenKind.PAREN_R)}parseArgument(r=!1){let n=this._lexer.token,t=this.parseName();return this.expectToken(E.TokenKind.COLON),this.node(n,{kind:x.Kind.ARGUMENT,name:t,value:this.parseValueLiteral(r)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let r=this._lexer.token;this.expectToken(E.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(E.TokenKind.NAME)?this.node(r,{kind:x.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(r,{kind:x.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let r=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(r,{kind:x.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(r,{kind:x.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(r){let n=this._lexer.token;switch(n.kind){case E.TokenKind.BRACKET_L:return this.parseList(r);case E.TokenKind.BRACE_L:return this.parseObject(r);case E.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:x.Kind.INT,value:n.value});case E.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:x.Kind.FLOAT,value:n.value});case E.TokenKind.STRING:case E.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case E.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:x.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:x.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:x.Kind.NULL});default:return this.node(n,{kind:x.Kind.ENUM,value:n.value})}case E.TokenKind.DOLLAR:if(r)if(this.expectToken(E.TokenKind.DOLLAR),this._lexer.token.kind===E.TokenKind.NAME){let t=this._lexer.token.value;throw(0,Yr.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${t}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let r=this._lexer.token;return this.advanceLexer(),this.node(r,{kind:x.Kind.STRING,value:r.value,block:r.kind===E.TokenKind.BLOCK_STRING})}parseList(r){let n=()=>this.parseValueLiteral(r);return this.node(this._lexer.token,{kind:x.Kind.LIST,values:this.any(E.TokenKind.BRACKET_L,n,E.TokenKind.BRACKET_R)})}parseObject(r){let n=()=>this.parseObjectField(r);return this.node(this._lexer.token,{kind:x.Kind.OBJECT,fields:this.any(E.TokenKind.BRACE_L,n,E.TokenKind.BRACE_R)})}parseObjectField(r){let n=this._lexer.token,t=this.parseName();return this.expectToken(E.TokenKind.COLON),this.node(n,{kind:x.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(r)})}parseDirectives(r){let n=[];for(;this.peek(E.TokenKind.AT);)n.push(this.parseDirective(r));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(r){let n=this._lexer.token;return this.expectToken(E.TokenKind.AT),this.node(n,{kind:x.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r)})}parseTypeReference(){let r=this._lexer.token,n;if(this.expectOptionalToken(E.TokenKind.BRACKET_L)){let t=this.parseTypeReference();this.expectToken(E.TokenKind.BRACKET_R),n=this.node(r,{kind:x.Kind.LIST_TYPE,type:t})}else n=this.parseNamedType();return this.expectOptionalToken(E.TokenKind.BANG)?this.node(r,{kind:x.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:x.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(E.TokenKind.STRING)||this.peek(E.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.many(E.TokenKind.BRACE_L,this.parseOperationTypeDefinition,E.TokenKind.BRACE_R);return this.node(r,{kind:x.Kind.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:i})}parseOperationTypeDefinition(){let r=this._lexer.token,n=this.parseOperationType();this.expectToken(E.TokenKind.COLON);let t=this.parseNamedType();return this.node(r,{kind:x.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t})}parseScalarTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();return this.node(r,{kind:x.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:i})}parseObjectTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(r,{kind:x.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(E.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseFieldDefinition,E.TokenKind.BRACE_R)}parseFieldDefinition(){let r=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseArgumentDefs();this.expectToken(E.TokenKind.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(r,{kind:x.Kind.FIELD_DEFINITION,description:n,name:t,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(E.TokenKind.PAREN_L,this.parseInputValueDef,E.TokenKind.PAREN_R)}parseInputValueDef(){let r=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(E.TokenKind.COLON);let i=this.parseTypeReference(),o;this.expectOptionalToken(E.TokenKind.EQUALS)&&(o=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(r,{kind:x.Kind.INPUT_VALUE_DEFINITION,description:n,name:t,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(r,{kind:x.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(r,{kind:x.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(E.TokenKind.EQUALS)?this.delimitedMany(E.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(r,{kind:x.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseEnumValueDefinition,E.TokenKind.BRACE_R)}parseEnumValueDefinition(){let r=this._lexer.token,n=this.parseDescription(),t=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(r,{kind:x.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Yr.syntaxError)(this._lexer.source,this._lexer.token.start,`${li(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(r,{kind:x.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseInputValueDef,E.TokenKind.BRACE_R)}parseTypeSystemExtension(){let r=this._lexer.lookahead();if(r.kind===E.TokenKind.NAME)switch(r.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(r)}parseSchemaExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),t=this.optionalMany(E.TokenKind.BRACE_L,this.parseOperationTypeDefinition,E.TokenKind.BRACE_R);if(n.length===0&&t.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t})}parseScalarTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),t=this.parseConstDirectives();if(t.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t})}parseObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(t.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:o})}parseInterfaceTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(t.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:o})}parseUnionTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(t.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:i})}parseEnumTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(t.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:i})}parseInputObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(t.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:i})}parseDirectiveDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.TokenKind.AT);let t=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(r,{kind:x.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(E.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let r=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(AT.DirectiveLocation,n.value))return n;throw this.unexpected(r)}node(r,n){return this._options.noLocation!==!0&&(n.loc=new zn.Location(r,this._lexer.lastToken,this._lexer.source)),n}peek(r){return this._lexer.token.kind===r}expectToken(r){let n=this._lexer.token;if(n.kind===r)return this.advanceLexer(),n;throw(0,Yr.syntaxError)(this._lexer.source,n.start,`Expected ${op(r)}, found ${li(n)}.`)}expectOptionalToken(r){return this._lexer.token.kind===r?(this.advanceLexer(),!0):!1}expectKeyword(r){let n=this._lexer.token;if(n.kind===E.TokenKind.NAME&&n.value===r)this.advanceLexer();else throw(0,Yr.syntaxError)(this._lexer.source,n.start,`Expected "${r}", found ${li(n)}.`)}expectOptionalKeyword(r){let n=this._lexer.token;return n.kind===E.TokenKind.NAME&&n.value===r?(this.advanceLexer(),!0):!1}unexpected(r){let n=r??this._lexer.token;return(0,Yr.syntaxError)(this._lexer.source,n.start,`Unexpected ${li(n)}.`)}any(r,n,t){this.expectToken(r);let i=[];for(;!this.expectOptionalToken(t);)i.push(n.call(this));return i}optionalMany(r,n,t){if(this.expectOptionalToken(r)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(t));return i}return[]}many(r,n,t){this.expectToken(r);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(t));return i}delimitedMany(r,n){this.expectOptionalToken(r);let t=[];do t.push(n.call(this));while(this.expectOptionalToken(r));return t}advanceLexer(){let{maxTokens:r}=this._options,n=this._lexer.advance();if(n.kind!==E.TokenKind.EOF&&(++this._tokenCounter,r!==void 0&&this._tokenCounter>r))throw(0,Yr.syntaxError)(this._lexer.source,n.start,`Document contains more that ${r} tokens. Parsing aborted.`)}};Pr.Parser=Hr;function li(e){let r=e.value;return op(e.kind)+(r!=null?` "${r}"`:"")}function op(e){return(0,ip.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var wr=y(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.didYouMean=FT;var xT=5;function FT(e,r){let[n,t]=r?[e,r]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=t.map(u=>`"${u}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let s=o.slice(0,xT),a=s.pop();return i+s.join(", ")+", or "+a+"?"}});var sp=y(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.identityFunc=kT;function kT(e){return e}});var xr=y(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.keyMap=CT;function CT(e,r){let n=Object.create(null);for(let t of e)n[r(t)]=t;return n}});var Zn=y(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.keyValMap=qT;function qT(e,r,n){let t=Object.create(null);for(let i of e)t[r(i)]=n(i);return t}});var ps=y(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.mapValue=MT;function MT(e,r){let n=Object.create(null);for(let t of Object.keys(e))n[t]=r(e[t],t);return n}});var et=y(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.naturalCompare=GT;function GT(e,r){let n=0,t=0;for(;n<e.length&&t<r.length;){let i=e.charCodeAt(n),o=r.charCodeAt(t);if(pi(i)&&pi(o)){let s=0;do++n,s=s*10+i-fs,i=e.charCodeAt(n);while(pi(i)&&s>0);let a=0;do++t,a=a*10+o-fs,o=r.charCodeAt(t);while(pi(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++t}}return e.length-r.length}var fs=48,VT=57;function pi(e){return!isNaN(e)&&fs<=e&&e<=VT}});var Fr=y(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.suggestionList=UT;var QT=et();function UT(e,r){let n=Object.create(null),t=new ms(e),i=Math.floor(e.length*.4)+1;for(let o of r){let s=t.measure(o,i);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{let a=n[o]-n[s];return a!==0?a:(0,QT.naturalCompare)(o,s)})}var ms=class{constructor(r){this._input=r,this._inputLowerCase=r.toLowerCase(),this._inputArray=ap(this._inputLowerCase),this._rows=[new Array(r.length+1).fill(0),new Array(r.length+1).fill(0),new Array(r.length+1).fill(0)]}measure(r,n){if(this._input===r)return 0;let t=r.toLowerCase();if(this._inputLowerCase===t)return 1;let i=ap(t),o=this._inputArray;if(i.length<o.length){let l=i;i=o,o=l}let s=i.length,a=o.length;if(s-a>n)return;let u=this._rows;for(let l=0;l<=a;l++)u[0][l]=l;for(let l=1;l<=s;l++){let p=u[(l-1)%3],f=u[l%3],m=f[0]=l;for(let h=1;h<=a;h++){let O=i[l-1]===o[h-1]?0:1,j=Math.min(p[h]+1,f[h-1]+1,p[h-1]+O);if(l>1&&h>1&&i[l-1]===o[h-2]&&i[l-2]===o[h-1]){let C=u[(l-2)%3][h-2];j=Math.min(j,C+1)}j<m&&(m=j),f[h]=j}if(m>n)return}let c=u[s%3][a];return c<=n?c:void 0}};function ap(e){let r=e.length,n=new Array(r);for(let t=0;t<r;++t)n[t]=e.charCodeAt(t);return n}});var fi=y(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.toObjMap=$T;function $T(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let r=Object.create(null);for(let[n,t]of Object.entries(e))r[n]=t;return r}});var up=y(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.printString=KT;function KT(e){return`"${e.replace(BT,YT)}"`}var BT=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function YT(e){return HT[e.charCodeAt(0)]}var HT=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var Jr=y(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.BREAK=void 0;kr.getEnterLeaveForKind=di;kr.getVisitFn=ZT;kr.visit=XT;kr.visitInParallel=zT;var JT=Se(),WT=J(),Ts=ar(),cp=V(),_n=Object.freeze({});kr.BREAK=_n;function XT(e,r,n=Ts.QueryDocumentKeys){let t=new Map;for(let C of Object.values(cp.Kind))t.set(C,di(r,C));let i,o=Array.isArray(e),s=[e],a=-1,u=[],c=e,l,p,f=[],m=[];do{a++;let C=a===s.length,A=C&&u.length!==0;if(C){if(l=m.length===0?void 0:f[f.length-1],c=p,p=m.pop(),A)if(o){c=c.slice();let ie=0;for(let[gr,Ar]of u){let ln=gr-ie;Ar===null?(c.splice(ln,1),ie++):c[ln]=Ar}}else{c={...c};for(let[ie,gr]of u)c[ie]=gr}a=i.index,s=i.keys,u=i.edits,o=i.inArray,i=i.prev}else if(p){if(l=o?a:s[a],c=p[l],c==null)continue;f.push(l)}let ce;if(!Array.isArray(c)){var h,O;(0,Ts.isNode)(c)||(0,JT.devAssert)(!1,`Invalid AST Node: ${(0,WT.inspect)(c)}.`);let ie=C?(h=t.get(c.kind))===null||h===void 0?void 0:h.leave:(O=t.get(c.kind))===null||O===void 0?void 0:O.enter;if(ce=ie?.call(r,c,l,p,f,m),ce===_n)break;if(ce===!1){if(!C){f.pop();continue}}else if(ce!==void 0&&(u.push([l,ce]),!C))if((0,Ts.isNode)(ce))c=ce;else{f.pop();continue}}if(ce===void 0&&A&&u.push([l,c]),C)f.pop();else{var j;i={inArray:o,index:a,keys:s,edits:u,prev:i},o=Array.isArray(c),s=o?c:(j=n[c.kind])!==null&&j!==void 0?j:[],a=-1,u=[],p&&m.push(p),p=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function zT(e){let r=new Array(e.length).fill(null),n=Object.create(null);for(let t of Object.values(cp.Kind)){let i=!1,o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let u=0;u<e.length;++u){let{enter:c,leave:l}=di(e[u],t);i||(i=c!=null||l!=null),o[u]=c,s[u]=l}if(!i)continue;let a={enter(...u){let c=u[0];for(let p=0;p<e.length;p++)if(r[p]===null){var l;let f=(l=o[p])===null||l===void 0?void 0:l.apply(e[p],u);if(f===!1)r[p]=c;else if(f===_n)r[p]=_n;else if(f!==void 0)return f}},leave(...u){let c=u[0];for(let p=0;p<e.length;p++)if(r[p]===null){var l;let f=(l=s[p])===null||l===void 0?void 0:l.apply(e[p],u);if(f===_n)r[p]=_n;else if(f!==void 0&&f!==!1)return f}else r[p]===c&&(r[p]=null)}};n[t]=a}return n}function di(e,r){let n=e[r];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function ZT(e,r,n){let{enter:t,leave:i}=di(e,r);return n?i:t}});var xe=y(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.print=tg;var eg=Kn(),rg=up(),ng=Jr();function tg(e){return(0,ng.visit)(e,og)}var ig=80,og={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>I(e.definitions,`
23
+ spurious results.`)}}return!1};ai.instanceOf=IT});var ci=y(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.Source=void 0;Xn.isSource=DT;var os=Se(),LT=J(),ST=Wn(),ui=class{constructor(r,n="GraphQL request",t={line:1,column:1}){typeof r=="string"||(0,os.devAssert)(!1,`Body must be a string. Received: ${(0,LT.inspect)(r)}.`),this.body=r,this.name=n,this.locationOffset=t,this.locationOffset.line>0||(0,os.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,os.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Xn.Source=ui;function DT(e){return(0,ST.instanceOf)(e,ui)}});var En=y(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.Parser=void 0;Pr.parse=RT;Pr.parseConstValue=PT;Pr.parseType=wT;Pr.parseValue=jT;var Yr=ni(),zn=ar(),AT=gn(),x=V(),op=oi(),ip=ci(),E=Yn();function RT(e,r){let n=new Hr(e,r),t=n.parseDocument();return Object.defineProperty(t,"tokenCount",{enumerable:!1,value:n.tokenCount}),t}function jT(e,r){let n=new Hr(e,r);n.expectToken(E.TokenKind.SOF);let t=n.parseValueLiteral(!1);return n.expectToken(E.TokenKind.EOF),t}function PT(e,r){let n=new Hr(e,r);n.expectToken(E.TokenKind.SOF);let t=n.parseConstValueLiteral();return n.expectToken(E.TokenKind.EOF),t}function wT(e,r){let n=new Hr(e,r);n.expectToken(E.TokenKind.SOF);let t=n.parseTypeReference();return n.expectToken(E.TokenKind.EOF),t}var Hr=class{constructor(r,n={}){let t=(0,ip.isSource)(r)?r:new ip.Source(r);this._lexer=new op.Lexer(t),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let r=this.expectToken(E.TokenKind.NAME);return this.node(r,{kind:x.Kind.NAME,value:r.value})}parseDocument(){return this.node(this._lexer.token,{kind:x.Kind.DOCUMENT,definitions:this.many(E.TokenKind.SOF,this.parseDefinition,E.TokenKind.EOF)})}parseDefinition(){if(this.peek(E.TokenKind.BRACE_L))return this.parseOperationDefinition();let r=this.peekDescription(),n=r?this._lexer.lookahead():this._lexer.token;if(n.kind===E.TokenKind.NAME){switch(n.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(r)throw(0,Yr.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let r=this._lexer.token;if(this.peek(E.TokenKind.BRACE_L))return this.node(r,{kind:x.Kind.OPERATION_DEFINITION,operation:zn.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),t;return this.peek(E.TokenKind.NAME)&&(t=this.parseName()),this.node(r,{kind:x.Kind.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let r=this.expectToken(E.TokenKind.NAME);switch(r.value){case"query":return zn.OperationTypeNode.QUERY;case"mutation":return zn.OperationTypeNode.MUTATION;case"subscription":return zn.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(r)}parseVariableDefinitions(){return this.optionalMany(E.TokenKind.PAREN_L,this.parseVariableDefinition,E.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:x.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(E.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let r=this._lexer.token;return this.expectToken(E.TokenKind.DOLLAR),this.node(r,{kind:x.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:x.Kind.SELECTION_SET,selections:this.many(E.TokenKind.BRACE_L,this.parseSelection,E.TokenKind.BRACE_R)})}parseSelection(){return this.peek(E.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let r=this._lexer.token,n=this.parseName(),t,i;return this.expectOptionalToken(E.TokenKind.COLON)?(t=n,i=this.parseName()):i=n,this.node(r,{kind:x.Kind.FIELD,alias:t,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(E.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(r){let n=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(E.TokenKind.PAREN_L,n,E.TokenKind.PAREN_R)}parseArgument(r=!1){let n=this._lexer.token,t=this.parseName();return this.expectToken(E.TokenKind.COLON),this.node(n,{kind:x.Kind.ARGUMENT,name:t,value:this.parseValueLiteral(r)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let r=this._lexer.token;this.expectToken(E.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(E.TokenKind.NAME)?this.node(r,{kind:x.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(r,{kind:x.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let r=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(r,{kind:x.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(r,{kind:x.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(r){let n=this._lexer.token;switch(n.kind){case E.TokenKind.BRACKET_L:return this.parseList(r);case E.TokenKind.BRACE_L:return this.parseObject(r);case E.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:x.Kind.INT,value:n.value});case E.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:x.Kind.FLOAT,value:n.value});case E.TokenKind.STRING:case E.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case E.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:x.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:x.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:x.Kind.NULL});default:return this.node(n,{kind:x.Kind.ENUM,value:n.value})}case E.TokenKind.DOLLAR:if(r)if(this.expectToken(E.TokenKind.DOLLAR),this._lexer.token.kind===E.TokenKind.NAME){let t=this._lexer.token.value;throw(0,Yr.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${t}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let r=this._lexer.token;return this.advanceLexer(),this.node(r,{kind:x.Kind.STRING,value:r.value,block:r.kind===E.TokenKind.BLOCK_STRING})}parseList(r){let n=()=>this.parseValueLiteral(r);return this.node(this._lexer.token,{kind:x.Kind.LIST,values:this.any(E.TokenKind.BRACKET_L,n,E.TokenKind.BRACKET_R)})}parseObject(r){let n=()=>this.parseObjectField(r);return this.node(this._lexer.token,{kind:x.Kind.OBJECT,fields:this.any(E.TokenKind.BRACE_L,n,E.TokenKind.BRACE_R)})}parseObjectField(r){let n=this._lexer.token,t=this.parseName();return this.expectToken(E.TokenKind.COLON),this.node(n,{kind:x.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(r)})}parseDirectives(r){let n=[];for(;this.peek(E.TokenKind.AT);)n.push(this.parseDirective(r));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(r){let n=this._lexer.token;return this.expectToken(E.TokenKind.AT),this.node(n,{kind:x.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r)})}parseTypeReference(){let r=this._lexer.token,n;if(this.expectOptionalToken(E.TokenKind.BRACKET_L)){let t=this.parseTypeReference();this.expectToken(E.TokenKind.BRACKET_R),n=this.node(r,{kind:x.Kind.LIST_TYPE,type:t})}else n=this.parseNamedType();return this.expectOptionalToken(E.TokenKind.BANG)?this.node(r,{kind:x.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:x.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(E.TokenKind.STRING)||this.peek(E.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.many(E.TokenKind.BRACE_L,this.parseOperationTypeDefinition,E.TokenKind.BRACE_R);return this.node(r,{kind:x.Kind.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:i})}parseOperationTypeDefinition(){let r=this._lexer.token,n=this.parseOperationType();this.expectToken(E.TokenKind.COLON);let t=this.parseNamedType();return this.node(r,{kind:x.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t})}parseScalarTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();return this.node(r,{kind:x.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:i})}parseObjectTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(r,{kind:x.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(E.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseFieldDefinition,E.TokenKind.BRACE_R)}parseFieldDefinition(){let r=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseArgumentDefs();this.expectToken(E.TokenKind.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(r,{kind:x.Kind.FIELD_DEFINITION,description:n,name:t,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(E.TokenKind.PAREN_L,this.parseInputValueDef,E.TokenKind.PAREN_R)}parseInputValueDef(){let r=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(E.TokenKind.COLON);let i=this.parseTypeReference(),o;this.expectOptionalToken(E.TokenKind.EQUALS)&&(o=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(r,{kind:x.Kind.INPUT_VALUE_DEFINITION,description:n,name:t,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(r,{kind:x.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(r,{kind:x.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(E.TokenKind.EQUALS)?this.delimitedMany(E.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(r,{kind:x.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseEnumValueDefinition,E.TokenKind.BRACE_R)}parseEnumValueDefinition(){let r=this._lexer.token,n=this.parseDescription(),t=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(r,{kind:x.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Yr.syntaxError)(this._lexer.source,this._lexer.token.start,`${li(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(r,{kind:x.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(E.TokenKind.BRACE_L,this.parseInputValueDef,E.TokenKind.BRACE_R)}parseTypeSystemExtension(){let r=this._lexer.lookahead();if(r.kind===E.TokenKind.NAME)switch(r.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(r)}parseSchemaExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),t=this.optionalMany(E.TokenKind.BRACE_L,this.parseOperationTypeDefinition,E.TokenKind.BRACE_R);if(n.length===0&&t.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t})}parseScalarTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),t=this.parseConstDirectives();if(t.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t})}parseObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(t.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:o})}parseInterfaceTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(t.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:o})}parseUnionTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(t.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:i})}parseEnumTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(t.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:i})}parseInputObjectTypeExtension(){let r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(t.length===0&&i.length===0)throw this.unexpected();return this.node(r,{kind:x.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:i})}parseDirectiveDefinition(){let r=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.TokenKind.AT);let t=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(r,{kind:x.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(E.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let r=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(AT.DirectiveLocation,n.value))return n;throw this.unexpected(r)}node(r,n){return this._options.noLocation!==!0&&(n.loc=new zn.Location(r,this._lexer.lastToken,this._lexer.source)),n}peek(r){return this._lexer.token.kind===r}expectToken(r){let n=this._lexer.token;if(n.kind===r)return this.advanceLexer(),n;throw(0,Yr.syntaxError)(this._lexer.source,n.start,`Expected ${sp(r)}, found ${li(n)}.`)}expectOptionalToken(r){return this._lexer.token.kind===r?(this.advanceLexer(),!0):!1}expectKeyword(r){let n=this._lexer.token;if(n.kind===E.TokenKind.NAME&&n.value===r)this.advanceLexer();else throw(0,Yr.syntaxError)(this._lexer.source,n.start,`Expected "${r}", found ${li(n)}.`)}expectOptionalKeyword(r){let n=this._lexer.token;return n.kind===E.TokenKind.NAME&&n.value===r?(this.advanceLexer(),!0):!1}unexpected(r){let n=r??this._lexer.token;return(0,Yr.syntaxError)(this._lexer.source,n.start,`Unexpected ${li(n)}.`)}any(r,n,t){this.expectToken(r);let i=[];for(;!this.expectOptionalToken(t);)i.push(n.call(this));return i}optionalMany(r,n,t){if(this.expectOptionalToken(r)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(t));return i}return[]}many(r,n,t){this.expectToken(r);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(t));return i}delimitedMany(r,n){this.expectOptionalToken(r);let t=[];do t.push(n.call(this));while(this.expectOptionalToken(r));return t}advanceLexer(){let{maxTokens:r}=this._options,n=this._lexer.advance();if(n.kind!==E.TokenKind.EOF&&(++this._tokenCounter,r!==void 0&&this._tokenCounter>r))throw(0,Yr.syntaxError)(this._lexer.source,n.start,`Document contains more that ${r} tokens. Parsing aborted.`)}};Pr.Parser=Hr;function li(e){let r=e.value;return sp(e.kind)+(r!=null?` "${r}"`:"")}function sp(e){return(0,op.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var wr=y(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.didYouMean=FT;var xT=5;function FT(e,r){let[n,t]=r?[e,r]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=t.map(u=>`"${u}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let s=o.slice(0,xT),a=s.pop();return i+s.join(", ")+", or "+a+"?"}});var ap=y(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.identityFunc=kT;function kT(e){return e}});var xr=y(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.keyMap=CT;function CT(e,r){let n=Object.create(null);for(let t of e)n[r(t)]=t;return n}});var Zn=y(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.keyValMap=qT;function qT(e,r,n){let t=Object.create(null);for(let i of e)t[r(i)]=n(i);return t}});var ps=y(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.mapValue=MT;function MT(e,r){let n=Object.create(null);for(let t of Object.keys(e))n[t]=r(e[t],t);return n}});var et=y(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.naturalCompare=GT;function GT(e,r){let n=0,t=0;for(;n<e.length&&t<r.length;){let i=e.charCodeAt(n),o=r.charCodeAt(t);if(pi(i)&&pi(o)){let s=0;do++n,s=s*10+i-fs,i=e.charCodeAt(n);while(pi(i)&&s>0);let a=0;do++t,a=a*10+o-fs,o=r.charCodeAt(t);while(pi(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++t}}return e.length-r.length}var fs=48,VT=57;function pi(e){return!isNaN(e)&&fs<=e&&e<=VT}});var Fr=y(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.suggestionList=UT;var QT=et();function UT(e,r){let n=Object.create(null),t=new ms(e),i=Math.floor(e.length*.4)+1;for(let o of r){let s=t.measure(o,i);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{let a=n[o]-n[s];return a!==0?a:(0,QT.naturalCompare)(o,s)})}var ms=class{constructor(r){this._input=r,this._inputLowerCase=r.toLowerCase(),this._inputArray=up(this._inputLowerCase),this._rows=[new Array(r.length+1).fill(0),new Array(r.length+1).fill(0),new Array(r.length+1).fill(0)]}measure(r,n){if(this._input===r)return 0;let t=r.toLowerCase();if(this._inputLowerCase===t)return 1;let i=up(t),o=this._inputArray;if(i.length<o.length){let l=i;i=o,o=l}let s=i.length,a=o.length;if(s-a>n)return;let u=this._rows;for(let l=0;l<=a;l++)u[0][l]=l;for(let l=1;l<=s;l++){let p=u[(l-1)%3],f=u[l%3],m=f[0]=l;for(let h=1;h<=a;h++){let O=i[l-1]===o[h-1]?0:1,j=Math.min(p[h]+1,f[h-1]+1,p[h-1]+O);if(l>1&&h>1&&i[l-1]===o[h-2]&&i[l-2]===o[h-1]){let C=u[(l-2)%3][h-2];j=Math.min(j,C+1)}j<m&&(m=j),f[h]=j}if(m>n)return}let c=u[s%3][a];return c<=n?c:void 0}};function up(e){let r=e.length,n=new Array(r);for(let t=0;t<r;++t)n[t]=e.charCodeAt(t);return n}});var fi=y(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.toObjMap=$T;function $T(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let r=Object.create(null);for(let[n,t]of Object.entries(e))r[n]=t;return r}});var cp=y(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.printString=KT;function KT(e){return`"${e.replace(BT,YT)}"`}var BT=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function YT(e){return HT[e.charCodeAt(0)]}var HT=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var Jr=y(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.BREAK=void 0;kr.getEnterLeaveForKind=di;kr.getVisitFn=ZT;kr.visit=XT;kr.visitInParallel=zT;var JT=Se(),WT=J(),Ts=ar(),lp=V(),_n=Object.freeze({});kr.BREAK=_n;function XT(e,r,n=Ts.QueryDocumentKeys){let t=new Map;for(let C of Object.values(lp.Kind))t.set(C,di(r,C));let i,o=Array.isArray(e),s=[e],a=-1,u=[],c=e,l,p,f=[],m=[];do{a++;let C=a===s.length,A=C&&u.length!==0;if(C){if(l=m.length===0?void 0:f[f.length-1],c=p,p=m.pop(),A)if(o){c=c.slice();let ie=0;for(let[gr,Ar]of u){let ln=gr-ie;Ar===null?(c.splice(ln,1),ie++):c[ln]=Ar}}else{c={...c};for(let[ie,gr]of u)c[ie]=gr}a=i.index,s=i.keys,u=i.edits,o=i.inArray,i=i.prev}else if(p){if(l=o?a:s[a],c=p[l],c==null)continue;f.push(l)}let ce;if(!Array.isArray(c)){var h,O;(0,Ts.isNode)(c)||(0,JT.devAssert)(!1,`Invalid AST Node: ${(0,WT.inspect)(c)}.`);let ie=C?(h=t.get(c.kind))===null||h===void 0?void 0:h.leave:(O=t.get(c.kind))===null||O===void 0?void 0:O.enter;if(ce=ie?.call(r,c,l,p,f,m),ce===_n)break;if(ce===!1){if(!C){f.pop();continue}}else if(ce!==void 0&&(u.push([l,ce]),!C))if((0,Ts.isNode)(ce))c=ce;else{f.pop();continue}}if(ce===void 0&&A&&u.push([l,c]),C)f.pop();else{var j;i={inArray:o,index:a,keys:s,edits:u,prev:i},o=Array.isArray(c),s=o?c:(j=n[c.kind])!==null&&j!==void 0?j:[],a=-1,u=[],p&&m.push(p),p=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function zT(e){let r=new Array(e.length).fill(null),n=Object.create(null);for(let t of Object.values(lp.Kind)){let i=!1,o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let u=0;u<e.length;++u){let{enter:c,leave:l}=di(e[u],t);i||(i=c!=null||l!=null),o[u]=c,s[u]=l}if(!i)continue;let a={enter(...u){let c=u[0];for(let p=0;p<e.length;p++)if(r[p]===null){var l;let f=(l=o[p])===null||l===void 0?void 0:l.apply(e[p],u);if(f===!1)r[p]=c;else if(f===_n)r[p]=_n;else if(f!==void 0)return f}},leave(...u){let c=u[0];for(let p=0;p<e.length;p++)if(r[p]===null){var l;let f=(l=s[p])===null||l===void 0?void 0:l.apply(e[p],u);if(f===_n)r[p]=_n;else if(f!==void 0&&f!==!1)return f}else r[p]===c&&(r[p]=null)}};n[t]=a}return n}function di(e,r){let n=e[r];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function ZT(e,r,n){let{enter:t,leave:i}=di(e,r);return n?i:t}});var xe=y(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.print=tg;var eg=Kn(),rg=cp(),ng=Jr();function tg(e){return(0,ng.visit)(e,og)}var ig=80,og={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>I(e.definitions,`
24
24
 
25
25
  `)},OperationDefinition:{leave(e){let r=G("(",I(e.variableDefinitions,", "),")"),n=I([e.operation,I([e.name,r]),I(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:r,defaultValue:n,directives:t})=>e+": "+r+G(" = ",n)+G(" ",I(t," "))},SelectionSet:{leave:({selections:e})=>We(e)},Field:{leave({alias:e,name:r,arguments:n,directives:t,selectionSet:i}){let o=G("",e,": ")+r,s=o+G("(",I(n,", "),")");return s.length>ig&&(s=o+G(`(
26
26
  `,mi(I(n,`
@@ -29,7 +29,7 @@ spurious results.`)}}return!1};ai.instanceOf=IT});var ci=y(Xn=>{"use strict";Obj
29
29
  `)+I(["schema",I(r," "),We(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:r})=>e+": "+r},ScalarTypeDefinition:{leave:({description:e,name:r,directives:n})=>G("",e,`
30
30
  `)+I(["scalar",r,I(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:r,interfaces:n,directives:t,fields:i})=>G("",e,`
31
31
  `)+I(["type",r,G("implements ",I(n," & ")),I(t," "),We(i)]," ")},FieldDefinition:{leave:({description:e,name:r,arguments:n,type:t,directives:i})=>G("",e,`
32
- `)+r+(lp(n)?G(`(
32
+ `)+r+(pp(n)?G(`(
33
33
  `,mi(I(n,`
34
34
  `)),`
35
35
  )`):G("(",I(n,", "),")"))+": "+t+G(" ",I(i," "))},InputValueDefinition:{leave:({description:e,name:r,type:n,defaultValue:t,directives:i})=>G("",e,`
@@ -39,23 +39,23 @@ spurious results.`)}}return!1};ai.instanceOf=IT});var ci=y(Xn=>{"use strict";Obj
39
39
  `)+I(["enum",r,I(n," "),We(t)]," ")},EnumValueDefinition:{leave:({description:e,name:r,directives:n})=>G("",e,`
40
40
  `)+I([r,I(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:r,directives:n,fields:t})=>G("",e,`
41
41
  `)+I(["input",r,I(n," "),We(t)]," ")},DirectiveDefinition:{leave:({description:e,name:r,arguments:n,repeatable:t,locations:i})=>G("",e,`
42
- `)+"directive @"+r+(lp(n)?G(`(
42
+ `)+"directive @"+r+(pp(n)?G(`(
43
43
  `,mi(I(n,`
44
44
  `)),`
45
45
  )`):G("(",I(n,", "),")"))+(t?" repeatable":"")+" on "+I(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:r})=>I(["extend schema",I(e," "),We(r)]," ")},ScalarTypeExtension:{leave:({name:e,directives:r})=>I(["extend scalar",e,I(r," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:r,directives:n,fields:t})=>I(["extend type",e,G("implements ",I(r," & ")),I(n," "),We(t)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:r,directives:n,fields:t})=>I(["extend interface",e,G("implements ",I(r," & ")),I(n," "),We(t)]," ")},UnionTypeExtension:{leave:({name:e,directives:r,types:n})=>I(["extend union",e,I(r," "),G("= ",I(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:r,values:n})=>I(["extend enum",e,I(r," "),We(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:r,fields:n})=>I(["extend input",e,I(r," "),We(n)]," ")}};function I(e,r=""){var n;return(n=e?.filter(t=>t).join(r))!==null&&n!==void 0?n:""}function We(e){return G(`{
46
46
  `,mi(I(e,`
47
47
  `)),`
48
48
  }`)}function G(e,r,n=""){return r!=null&&r!==""?e+r+n:""}function mi(e){return G(" ",e.replace(/\n/g,`
49
- `))}function lp(e){var r;return(r=e?.some(n=>n.includes(`
50
- `)))!==null&&r!==void 0?r:!1}});var _s=y(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.valueFromASTUntyped=bs;var sg=Zn(),Er=V();function bs(e,r){switch(e.kind){case Er.Kind.NULL:return null;case Er.Kind.INT:return parseInt(e.value,10);case Er.Kind.FLOAT:return parseFloat(e.value);case Er.Kind.STRING:case Er.Kind.ENUM:case Er.Kind.BOOLEAN:return e.value;case Er.Kind.LIST:return e.values.map(n=>bs(n,r));case Er.Kind.OBJECT:return(0,sg.keyValMap)(e.fields,n=>n.name.value,n=>bs(n.value,r));case Er.Kind.VARIABLE:return r?.[e.name.value]}}});var rt=y(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.assertEnumValueName=ag;yi.assertName=dp;var pp=Se(),hi=P(),fp=ti();function dp(e){if(e!=null||(0,pp.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,pp.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new hi.GraphQLError("Expected name to be a non-empty string.");for(let r=1;r<e.length;++r)if(!(0,fp.isNameContinue)(e.charCodeAt(r)))throw new hi.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,fp.isNameStart)(e.charCodeAt(0)))throw new hi.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function ag(e){if(e==="true"||e==="false"||e==="null")throw new hi.GraphQLError(`Enum values cannot be named: ${e}`);return dp(e)}});var Q=y(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.GraphQLUnionType=D.GraphQLScalarType=D.GraphQLObjectType=D.GraphQLNonNull=D.GraphQLList=D.GraphQLInterfaceType=D.GraphQLInputObjectType=D.GraphQLEnumType=void 0;D.argsToArgsConfig=Lp;D.assertAbstractType=Sg;D.assertCompositeType=Lg;D.assertEnumType=gg;D.assertInputObjectType=bg;D.assertInputType=Og;D.assertInterfaceType=vg;D.assertLeafType=Ig;D.assertListType=Eg;D.assertNamedType=jg;D.assertNonNullType=_g;D.assertNullableType=Ag;D.assertObjectType=yg;D.assertOutputType=Ng;D.assertScalarType=hg;D.assertType=mg;D.assertUnionType=Tg;D.assertWrappingType=Dg;D.defineArguments=Np;D.getNamedType=Pg;D.getNullableType=Rg;D.isAbstractType=bp;D.isCompositeType=gp;D.isEnumType=Zr;D.isInputObjectType=tt;D.isInputType=Os;D.isInterfaceType=Xr;D.isLeafType=Tp;D.isListType=Di;D.isNamedType=Ep;D.isNonNullType=qr;D.isNullableType=Is;D.isObjectType=Nn;D.isOutputType=Ns;D.isRequiredArgument=wg;D.isRequiredInputField=kg;D.isScalarType=Wr;D.isType=Si;D.isUnionType=zr;D.isWrappingType=it;D.resolveObjMapThunk=Ss;D.resolveReadonlyArrayThunk=Ls;var ge=Se(),ug=wr(),mp=sp(),z=J(),Cr=Wn(),cg=sr(),lg=xr(),vp=Zn(),Li=ps(),pg=Fr(),ur=fi(),nt=P(),fg=V(),hp=xe(),dg=_s(),cr=rt();function Si(e){return Wr(e)||Nn(e)||Xr(e)||zr(e)||Zr(e)||tt(e)||Di(e)||qr(e)}function mg(e){if(!Si(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL type.`);return e}function Wr(e){return(0,Cr.instanceOf)(e,bi)}function hg(e){if(!Wr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Scalar type.`);return e}function Nn(e){return(0,Cr.instanceOf)(e,Ei)}function yg(e){if(!Nn(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Object type.`);return e}function Xr(e){return(0,Cr.instanceOf)(e,_i)}function vg(e){if(!Xr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Interface type.`);return e}function zr(e){return(0,Cr.instanceOf)(e,Oi)}function Tg(e){if(!zr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Union type.`);return e}function Zr(e){return(0,Cr.instanceOf)(e,Ni)}function gg(e){if(!Zr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Enum type.`);return e}function tt(e){return(0,Cr.instanceOf)(e,Ii)}function bg(e){if(!tt(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Input Object type.`);return e}function Di(e){return(0,Cr.instanceOf)(e,Ti)}function Eg(e){if(!Di(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL List type.`);return e}function qr(e){return(0,Cr.instanceOf)(e,gi)}function _g(e){if(!qr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function Os(e){return Wr(e)||Zr(e)||tt(e)||it(e)&&Os(e.ofType)}function Og(e){if(!Os(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL input type.`);return e}function Ns(e){return Wr(e)||Nn(e)||Xr(e)||zr(e)||Zr(e)||it(e)&&Ns(e.ofType)}function Ng(e){if(!Ns(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL output type.`);return e}function Tp(e){return Wr(e)||Zr(e)}function Ig(e){if(!Tp(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL leaf type.`);return e}function gp(e){return Nn(e)||Xr(e)||zr(e)}function Lg(e){if(!gp(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL composite type.`);return e}function bp(e){return Xr(e)||zr(e)}function Sg(e){if(!bp(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL abstract type.`);return e}var Ti=class{constructor(r){Si(r)||(0,ge.devAssert)(!1,`Expected ${(0,z.inspect)(r)} to be a GraphQL type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};D.GraphQLList=Ti;var gi=class{constructor(r){Is(r)||(0,ge.devAssert)(!1,`Expected ${(0,z.inspect)(r)} to be a GraphQL nullable type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};D.GraphQLNonNull=gi;function it(e){return Di(e)||qr(e)}function Dg(e){if(!it(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL wrapping type.`);return e}function Is(e){return Si(e)&&!qr(e)}function Ag(e){if(!Is(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL nullable type.`);return e}function Rg(e){if(e)return qr(e)?e.ofType:e}function Ep(e){return Wr(e)||Nn(e)||Xr(e)||zr(e)||Zr(e)||tt(e)}function jg(e){if(!Ep(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL named type.`);return e}function Pg(e){if(e){let r=e;for(;it(r);)r=r.ofType;return r}}function Ls(e){return typeof e=="function"?e():e}function Ss(e){return typeof e=="function"?e():e}var bi=class{constructor(r){var n,t,i,o;let s=(n=r.parseValue)!==null&&n!==void 0?n:mp.identityFunc;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.specifiedByURL=r.specifiedByURL,this.serialize=(t=r.serialize)!==null&&t!==void 0?t:mp.identityFunc,this.parseValue=s,this.parseLiteral=(i=r.parseLiteral)!==null&&i!==void 0?i:(a,u)=>s((0,dg.valueFromASTUntyped)(a,u)),this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(o=r.extensionASTNodes)!==null&&o!==void 0?o:[],r.specifiedByURL==null||typeof r.specifiedByURL=="string"||(0,ge.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,z.inspect)(r.specifiedByURL)}.`),r.serialize==null||typeof r.serialize=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),r.parseLiteral&&(typeof r.parseValue=="function"&&typeof r.parseLiteral=="function"||(0,ge.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLScalarType=bi;var Ei=class{constructor(r){var n;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>Op(r),this._interfaces=()=>_p(r),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,z.inspect)(r.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ip(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLObjectType=Ei;function _p(e){var r;let n=Ls((r=e.interfaces)!==null&&r!==void 0?r:[]);return Array.isArray(n)||(0,ge.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Op(e){let r=Ss(e.fields);return On(r)||(0,ge.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,Li.mapValue)(r,(n,t)=>{var i;On(n)||(0,ge.devAssert)(!1,`${e.name}.${t} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,ge.devAssert)(!1,`${e.name}.${t} field resolver must be a function if provided, but got: ${(0,z.inspect)(n.resolve)}.`);let o=(i=n.args)!==null&&i!==void 0?i:{};return On(o)||(0,ge.devAssert)(!1,`${e.name}.${t} args must be an object with argument names as keys.`),{name:(0,cr.assertName)(t),description:n.description,type:n.type,args:Np(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,ur.toObjMap)(n.extensions),astNode:n.astNode}})}function Np(e){return Object.entries(e).map(([r,n])=>({name:(0,cr.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ur.toObjMap)(n.extensions),astNode:n.astNode}))}function On(e){return(0,cg.isObjectLike)(e)&&!Array.isArray(e)}function Ip(e){return(0,Li.mapValue)(e,r=>({description:r.description,type:r.type,args:Lp(r.args),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function Lp(e){return(0,vp.keyValMap)(e,r=>r.name,r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function wg(e){return qr(e.type)&&e.defaultValue===void 0}var _i=class{constructor(r){var n;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Op.bind(void 0,r),this._interfaces=_p.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,z.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ip(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLInterfaceType=_i;var Oi=class{constructor(r){var n;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=xg.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,z.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLUnionType=Oi;function xg(e){let r=Ls(e.types);return Array.isArray(r)||(0,ge.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),r}var Ni=class{constructor(r){var n;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof r.values=="function"?r.values:yp(this.name,r.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=yp(this.name,this._values())),this._values}getValue(r){return this._nameLookup===null&&(this._nameLookup=(0,lg.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[r]}serialize(r){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(t=>[t.value,t])));let n=this._valueLookup.get(r);if(n===void 0)throw new nt.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,z.inspect)(r)}`);return n.name}parseValue(r){if(typeof r!="string"){let t=(0,z.inspect)(r);throw new nt.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+vi(this,t))}let n=this.getValue(r);if(n==null)throw new nt.GraphQLError(`Value "${r}" does not exist in "${this.name}" enum.`+vi(this,r));return n.value}parseLiteral(r,n){if(r.kind!==fg.Kind.ENUM){let i=(0,hp.print)(r);throw new nt.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+vi(this,i),{nodes:r})}let t=this.getValue(r.value);if(t==null){let i=(0,hp.print)(r);throw new nt.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+vi(this,i),{nodes:r})}return t.value}toConfig(){let r=(0,vp.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLEnumType=Ni;function vi(e,r){let n=e.getValues().map(i=>i.name),t=(0,pg.suggestionList)(r,n);return(0,ug.didYouMean)("the enum value",t)}function yp(e,r){return On(r)||(0,ge.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(r).map(([n,t])=>(On(t)||(0,ge.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,z.inspect)(t)}.`),{name:(0,cr.assertEnumValueName)(n),description:t.description,value:t.value!==void 0?t.value:n,deprecationReason:t.deprecationReason,extensions:(0,ur.toObjMap)(t.extensions),astNode:t.astNode}))}var Ii=class{constructor(r){var n,t;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(t=r.isOneOf)!==null&&t!==void 0?t:!1,this._fields=Fg.bind(void 0,r)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let r=(0,Li.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLInputObjectType=Ii;function Fg(e){let r=Ss(e.fields);return On(r)||(0,ge.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,Li.mapValue)(r,(n,t)=>(!("resolve"in n)||(0,ge.devAssert)(!1,`${e.name}.${t} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,cr.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ur.toObjMap)(n.extensions),astNode:n.astNode}))}function kg(e){return qr(e.type)&&e.defaultValue===void 0}});var st=y(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.doTypesOverlap=Cg;ot.isEqualType=Ds;ot.isTypeSubTypeOf=Ai;var Ne=Q();function Ds(e,r){return e===r?!0:(0,Ne.isNonNullType)(e)&&(0,Ne.isNonNullType)(r)||(0,Ne.isListType)(e)&&(0,Ne.isListType)(r)?Ds(e.ofType,r.ofType):!1}function Ai(e,r,n){return r===n?!0:(0,Ne.isNonNullType)(n)?(0,Ne.isNonNullType)(r)?Ai(e,r.ofType,n.ofType):!1:(0,Ne.isNonNullType)(r)?Ai(e,r.ofType,n):(0,Ne.isListType)(n)?(0,Ne.isListType)(r)?Ai(e,r.ofType,n.ofType):!1:(0,Ne.isListType)(r)?!1:(0,Ne.isAbstractType)(n)&&((0,Ne.isInterfaceType)(r)||(0,Ne.isObjectType)(r))&&e.isSubType(n,r)}function Cg(e,r,n){return r===n?!0:(0,Ne.isAbstractType)(r)?(0,Ne.isAbstractType)(n)?e.getPossibleTypes(r).some(t=>e.isSubType(n,t)):e.isSubType(r,n):(0,Ne.isAbstractType)(n)?e.isSubType(n,r):!1}});var lr=y(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.GraphQLString=he.GraphQLInt=he.GraphQLID=he.GraphQLFloat=he.GraphQLBoolean=he.GRAPHQL_MIN_INT=he.GRAPHQL_MAX_INT=void 0;he.isSpecifiedScalarType=qg;he.specifiedScalarTypes=void 0;var Xe=J(),Sp=sr(),be=P(),en=V(),at=xe(),ut=Q(),Ri=2147483647;he.GRAPHQL_MAX_INT=Ri;var ji=-2147483648;he.GRAPHQL_MIN_INT=ji;var Dp=new ut.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let r=ct(e);if(typeof r=="boolean")return r?1:0;let n=r;if(typeof r=="string"&&r!==""&&(n=Number(r)),typeof n!="number"||!Number.isInteger(n))throw new be.GraphQLError(`Int cannot represent non-integer value: ${(0,Xe.inspect)(r)}`);if(n>Ri||n<ji)throw new be.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,Xe.inspect)(r));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new be.GraphQLError(`Int cannot represent non-integer value: ${(0,Xe.inspect)(e)}`);if(e>Ri||e<ji)throw new be.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==en.Kind.INT)throw new be.GraphQLError(`Int cannot represent non-integer value: ${(0,at.print)(e)}`,{nodes:e});let r=parseInt(e.value,10);if(r>Ri||r<ji)throw new be.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return r}});he.GraphQLInt=Dp;var Ap=new ut.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let r=ct(e);if(typeof r=="boolean")return r?1:0;let n=r;if(typeof r=="string"&&r!==""&&(n=Number(r)),typeof n!="number"||!Number.isFinite(n))throw new be.GraphQLError(`Float cannot represent non numeric value: ${(0,Xe.inspect)(r)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new be.GraphQLError(`Float cannot represent non numeric value: ${(0,Xe.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==en.Kind.FLOAT&&e.kind!==en.Kind.INT)throw new be.GraphQLError(`Float cannot represent non numeric value: ${(0,at.print)(e)}`,e);return parseFloat(e.value)}});he.GraphQLFloat=Ap;var Rp=new ut.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let r=ct(e);if(typeof r=="string")return r;if(typeof r=="boolean")return r?"true":"false";if(typeof r=="number"&&Number.isFinite(r))return r.toString();throw new be.GraphQLError(`String cannot represent value: ${(0,Xe.inspect)(e)}`)},parseValue(e){if(typeof e!="string")throw new be.GraphQLError(`String cannot represent a non string value: ${(0,Xe.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==en.Kind.STRING)throw new be.GraphQLError(`String cannot represent a non string value: ${(0,at.print)(e)}`,{nodes:e});return e.value}});he.GraphQLString=Rp;var jp=new ut.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let r=ct(e);if(typeof r=="boolean")return r;if(Number.isFinite(r))return r!==0;throw new be.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Xe.inspect)(r)}`)},parseValue(e){if(typeof e!="boolean")throw new be.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Xe.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==en.Kind.BOOLEAN)throw new be.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,at.print)(e)}`,{nodes:e});return e.value}});he.GraphQLBoolean=jp;var Pp=new ut.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let r=ct(e);if(typeof r=="string")return r;if(Number.isInteger(r))return String(r);throw new be.GraphQLError(`ID cannot represent value: ${(0,Xe.inspect)(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new be.GraphQLError(`ID cannot represent value: ${(0,Xe.inspect)(e)}`)},parseLiteral(e){if(e.kind!==en.Kind.STRING&&e.kind!==en.Kind.INT)throw new be.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,at.print)(e),{nodes:e});return e.value}});he.GraphQLID=Pp;var wp=Object.freeze([Rp,Dp,Ap,jp,Pp]);he.specifiedScalarTypes=wp;function qg(e){return wp.some(({name:r})=>e.name===r)}function ct(e){if((0,Sp.isObjectLike)(e)){if(typeof e.valueOf=="function"){let r=e.valueOf();if(!(0,Sp.isObjectLike)(r))return r}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Re=y(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.GraphQLSpecifiedByDirective=le.GraphQLSkipDirective=le.GraphQLOneOfDirective=le.GraphQLIncludeDirective=le.GraphQLDirective=le.GraphQLDeprecatedDirective=le.DEFAULT_DEPRECATION_REASON=void 0;le.assertDirective=$g;le.isDirective=Fp;le.isSpecifiedDirective=Kg;le.specifiedDirectives=void 0;var xp=Se(),Mg=J(),Gg=Wn(),Vg=sr(),Qg=fi(),qe=gn(),Ug=rt(),lt=Q(),Pi=lr();function Fp(e){return(0,Gg.instanceOf)(e,_r)}function $g(e){if(!Fp(e))throw new Error(`Expected ${(0,Mg.inspect)(e)} to be a GraphQL directive.`);return e}var _r=class{constructor(r){var n,t;this.name=(0,Ug.assertName)(r.name),this.description=r.description,this.locations=r.locations,this.isRepeatable=(n=r.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,Qg.toObjMap)(r.extensions),this.astNode=r.astNode,Array.isArray(r.locations)||(0,xp.devAssert)(!1,`@${r.name} locations must be an Array.`);let i=(t=r.args)!==null&&t!==void 0?t:{};(0,Vg.isObjectLike)(i)&&!Array.isArray(i)||(0,xp.devAssert)(!1,`@${r.name} args must be an object with argument names as keys.`),this.args=(0,lt.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,lt.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};le.GraphQLDirective=_r;var kp=new _r({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[qe.DirectiveLocation.FIELD,qe.DirectiveLocation.FRAGMENT_SPREAD,qe.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new lt.GraphQLNonNull(Pi.GraphQLBoolean),description:"Included when true."}}});le.GraphQLIncludeDirective=kp;var Cp=new _r({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[qe.DirectiveLocation.FIELD,qe.DirectiveLocation.FRAGMENT_SPREAD,qe.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new lt.GraphQLNonNull(Pi.GraphQLBoolean),description:"Skipped when true."}}});le.GraphQLSkipDirective=Cp;var qp="No longer supported";le.DEFAULT_DEPRECATION_REASON=qp;var Mp=new _r({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[qe.DirectiveLocation.FIELD_DEFINITION,qe.DirectiveLocation.ARGUMENT_DEFINITION,qe.DirectiveLocation.INPUT_FIELD_DEFINITION,qe.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Pi.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:qp}}});le.GraphQLDeprecatedDirective=Mp;var Gp=new _r({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[qe.DirectiveLocation.SCALAR],args:{url:{type:new lt.GraphQLNonNull(Pi.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});le.GraphQLSpecifiedByDirective=Gp;var Vp=new _r({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[qe.DirectiveLocation.INPUT_OBJECT],args:{}});le.GraphQLOneOfDirective=Vp;var Qp=Object.freeze([kp,Cp,Mp,Gp,Vp]);le.specifiedDirectives=Qp;function Kg(e){return Qp.some(({name:r})=>r===e.name)}});var wi=y(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.isIterableObject=Bg;function Bg(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}});var dt=y(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.astFromValue=ft;var Up=J(),Yg=Oe(),Hg=wi(),Jg=sr(),Me=V(),pt=Q(),Wg=lr();function ft(e,r){if((0,pt.isNonNullType)(r)){let n=ft(e,r.ofType);return n?.kind===Me.Kind.NULL?null:n}if(e===null)return{kind:Me.Kind.NULL};if(e===void 0)return null;if((0,pt.isListType)(r)){let n=r.ofType;if((0,Hg.isIterableObject)(e)){let t=[];for(let i of e){let o=ft(i,n);o!=null&&t.push(o)}return{kind:Me.Kind.LIST,values:t}}return ft(e,n)}if((0,pt.isInputObjectType)(r)){if(!(0,Jg.isObjectLike)(e))return null;let n=[];for(let t of Object.values(r.getFields())){let i=ft(e[t.name],t.type);i&&n.push({kind:Me.Kind.OBJECT_FIELD,name:{kind:Me.Kind.NAME,value:t.name},value:i})}return{kind:Me.Kind.OBJECT,fields:n}}if((0,pt.isLeafType)(r)){let n=r.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Me.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let t=String(n);return $p.test(t)?{kind:Me.Kind.INT,value:t}:{kind:Me.Kind.FLOAT,value:t}}if(typeof n=="string")return(0,pt.isEnumType)(r)?{kind:Me.Kind.ENUM,value:n}:r===Wg.GraphQLID&&$p.test(n)?{kind:Me.Kind.INT,value:n}:{kind:Me.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,Up.inspect)(n)}.`)}(0,Yg.invariant)(!1,"Unexpected input type: "+(0,Up.inspect)(r))}var $p=/^-?(?:0|[1-9][0-9]*)$/});var Ve=y(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.introspectionTypes=W.__TypeKind=W.__Type=W.__Schema=W.__InputValue=W.__Field=W.__EnumValue=W.__DirectiveLocation=W.__Directive=W.TypeNameMetaFieldDef=W.TypeMetaFieldDef=W.TypeKind=W.SchemaMetaFieldDef=void 0;W.isIntrospectionType=ib;var Xg=J(),zg=Oe(),ye=gn(),Zg=xe(),eb=dt(),N=Q(),X=lr(),js=new N.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:X.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Ge))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new N.GraphQLNonNull(Ge),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ge,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ge,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Ps))),resolve:e=>e.getDirectives()}})});W.__Schema=js;var Ps=new N.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
49
+ `))}function pp(e){var r;return(r=e?.some(n=>n.includes(`
50
+ `)))!==null&&r!==void 0?r:!1}});var _s=y(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.valueFromASTUntyped=bs;var sg=Zn(),Er=V();function bs(e,r){switch(e.kind){case Er.Kind.NULL:return null;case Er.Kind.INT:return parseInt(e.value,10);case Er.Kind.FLOAT:return parseFloat(e.value);case Er.Kind.STRING:case Er.Kind.ENUM:case Er.Kind.BOOLEAN:return e.value;case Er.Kind.LIST:return e.values.map(n=>bs(n,r));case Er.Kind.OBJECT:return(0,sg.keyValMap)(e.fields,n=>n.name.value,n=>bs(n.value,r));case Er.Kind.VARIABLE:return r?.[e.name.value]}}});var rt=y(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.assertEnumValueName=ag;yi.assertName=mp;var fp=Se(),hi=P(),dp=ti();function mp(e){if(e!=null||(0,fp.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,fp.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new hi.GraphQLError("Expected name to be a non-empty string.");for(let r=1;r<e.length;++r)if(!(0,dp.isNameContinue)(e.charCodeAt(r)))throw new hi.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,dp.isNameStart)(e.charCodeAt(0)))throw new hi.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function ag(e){if(e==="true"||e==="false"||e==="null")throw new hi.GraphQLError(`Enum values cannot be named: ${e}`);return mp(e)}});var Q=y(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.GraphQLUnionType=D.GraphQLScalarType=D.GraphQLObjectType=D.GraphQLNonNull=D.GraphQLList=D.GraphQLInterfaceType=D.GraphQLInputObjectType=D.GraphQLEnumType=void 0;D.argsToArgsConfig=Sp;D.assertAbstractType=Sg;D.assertCompositeType=Lg;D.assertEnumType=gg;D.assertInputObjectType=bg;D.assertInputType=Og;D.assertInterfaceType=vg;D.assertLeafType=Ig;D.assertListType=Eg;D.assertNamedType=jg;D.assertNonNullType=_g;D.assertNullableType=Ag;D.assertObjectType=yg;D.assertOutputType=Ng;D.assertScalarType=hg;D.assertType=mg;D.assertUnionType=Tg;D.assertWrappingType=Dg;D.defineArguments=Ip;D.getNamedType=Pg;D.getNullableType=Rg;D.isAbstractType=Ep;D.isCompositeType=bp;D.isEnumType=Zr;D.isInputObjectType=tt;D.isInputType=Os;D.isInterfaceType=Xr;D.isLeafType=gp;D.isListType=Di;D.isNamedType=_p;D.isNonNullType=qr;D.isNullableType=Is;D.isObjectType=Nn;D.isOutputType=Ns;D.isRequiredArgument=wg;D.isRequiredInputField=kg;D.isScalarType=Wr;D.isType=Si;D.isUnionType=zr;D.isWrappingType=it;D.resolveObjMapThunk=Ss;D.resolveReadonlyArrayThunk=Ls;var ge=Se(),ug=wr(),hp=ap(),z=J(),Cr=Wn(),cg=sr(),lg=xr(),Tp=Zn(),Li=ps(),pg=Fr(),ur=fi(),nt=P(),fg=V(),yp=xe(),dg=_s(),cr=rt();function Si(e){return Wr(e)||Nn(e)||Xr(e)||zr(e)||Zr(e)||tt(e)||Di(e)||qr(e)}function mg(e){if(!Si(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL type.`);return e}function Wr(e){return(0,Cr.instanceOf)(e,bi)}function hg(e){if(!Wr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Scalar type.`);return e}function Nn(e){return(0,Cr.instanceOf)(e,Ei)}function yg(e){if(!Nn(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Object type.`);return e}function Xr(e){return(0,Cr.instanceOf)(e,_i)}function vg(e){if(!Xr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Interface type.`);return e}function zr(e){return(0,Cr.instanceOf)(e,Oi)}function Tg(e){if(!zr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Union type.`);return e}function Zr(e){return(0,Cr.instanceOf)(e,Ni)}function gg(e){if(!Zr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Enum type.`);return e}function tt(e){return(0,Cr.instanceOf)(e,Ii)}function bg(e){if(!tt(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Input Object type.`);return e}function Di(e){return(0,Cr.instanceOf)(e,Ti)}function Eg(e){if(!Di(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL List type.`);return e}function qr(e){return(0,Cr.instanceOf)(e,gi)}function _g(e){if(!qr(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function Os(e){return Wr(e)||Zr(e)||tt(e)||it(e)&&Os(e.ofType)}function Og(e){if(!Os(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL input type.`);return e}function Ns(e){return Wr(e)||Nn(e)||Xr(e)||zr(e)||Zr(e)||it(e)&&Ns(e.ofType)}function Ng(e){if(!Ns(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL output type.`);return e}function gp(e){return Wr(e)||Zr(e)}function Ig(e){if(!gp(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL leaf type.`);return e}function bp(e){return Nn(e)||Xr(e)||zr(e)}function Lg(e){if(!bp(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL composite type.`);return e}function Ep(e){return Xr(e)||zr(e)}function Sg(e){if(!Ep(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL abstract type.`);return e}var Ti=class{constructor(r){Si(r)||(0,ge.devAssert)(!1,`Expected ${(0,z.inspect)(r)} to be a GraphQL type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};D.GraphQLList=Ti;var gi=class{constructor(r){Is(r)||(0,ge.devAssert)(!1,`Expected ${(0,z.inspect)(r)} to be a GraphQL nullable type.`),this.ofType=r}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};D.GraphQLNonNull=gi;function it(e){return Di(e)||qr(e)}function Dg(e){if(!it(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL wrapping type.`);return e}function Is(e){return Si(e)&&!qr(e)}function Ag(e){if(!Is(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL nullable type.`);return e}function Rg(e){if(e)return qr(e)?e.ofType:e}function _p(e){return Wr(e)||Nn(e)||Xr(e)||zr(e)||Zr(e)||tt(e)}function jg(e){if(!_p(e))throw new Error(`Expected ${(0,z.inspect)(e)} to be a GraphQL named type.`);return e}function Pg(e){if(e){let r=e;for(;it(r);)r=r.ofType;return r}}function Ls(e){return typeof e=="function"?e():e}function Ss(e){return typeof e=="function"?e():e}var bi=class{constructor(r){var n,t,i,o;let s=(n=r.parseValue)!==null&&n!==void 0?n:hp.identityFunc;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.specifiedByURL=r.specifiedByURL,this.serialize=(t=r.serialize)!==null&&t!==void 0?t:hp.identityFunc,this.parseValue=s,this.parseLiteral=(i=r.parseLiteral)!==null&&i!==void 0?i:(a,u)=>s((0,dg.valueFromASTUntyped)(a,u)),this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(o=r.extensionASTNodes)!==null&&o!==void 0?o:[],r.specifiedByURL==null||typeof r.specifiedByURL=="string"||(0,ge.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,z.inspect)(r.specifiedByURL)}.`),r.serialize==null||typeof r.serialize=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),r.parseLiteral&&(typeof r.parseValue=="function"&&typeof r.parseLiteral=="function"||(0,ge.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLScalarType=bi;var Ei=class{constructor(r){var n;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>Np(r),this._interfaces=()=>Op(r),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,z.inspect)(r.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Lp(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLObjectType=Ei;function Op(e){var r;let n=Ls((r=e.interfaces)!==null&&r!==void 0?r:[]);return Array.isArray(n)||(0,ge.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Np(e){let r=Ss(e.fields);return On(r)||(0,ge.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,Li.mapValue)(r,(n,t)=>{var i;On(n)||(0,ge.devAssert)(!1,`${e.name}.${t} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,ge.devAssert)(!1,`${e.name}.${t} field resolver must be a function if provided, but got: ${(0,z.inspect)(n.resolve)}.`);let o=(i=n.args)!==null&&i!==void 0?i:{};return On(o)||(0,ge.devAssert)(!1,`${e.name}.${t} args must be an object with argument names as keys.`),{name:(0,cr.assertName)(t),description:n.description,type:n.type,args:Ip(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,ur.toObjMap)(n.extensions),astNode:n.astNode}})}function Ip(e){return Object.entries(e).map(([r,n])=>({name:(0,cr.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ur.toObjMap)(n.extensions),astNode:n.astNode}))}function On(e){return(0,cg.isObjectLike)(e)&&!Array.isArray(e)}function Lp(e){return(0,Li.mapValue)(e,r=>({description:r.description,type:r.type,args:Sp(r.args),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function Sp(e){return(0,Tp.keyValMap)(e,r=>r.name,r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}))}function wg(e){return qr(e.type)&&e.defaultValue===void 0}var _i=class{constructor(r){var n;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Np.bind(void 0,r),this._interfaces=Op.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,z.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Lp(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLInterfaceType=_i;var Oi=class{constructor(r){var n;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.resolveType=r.resolveType,this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=xg.bind(void 0,r),r.resolveType==null||typeof r.resolveType=="function"||(0,ge.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,z.inspect)(r.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLUnionType=Oi;function xg(e){let r=Ls(e.types);return Array.isArray(r)||(0,ge.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),r}var Ni=class{constructor(r){var n;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof r.values=="function"?r.values:vp(this.name,r.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=vp(this.name,this._values())),this._values}getValue(r){return this._nameLookup===null&&(this._nameLookup=(0,lg.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[r]}serialize(r){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(t=>[t.value,t])));let n=this._valueLookup.get(r);if(n===void 0)throw new nt.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,z.inspect)(r)}`);return n.name}parseValue(r){if(typeof r!="string"){let t=(0,z.inspect)(r);throw new nt.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+vi(this,t))}let n=this.getValue(r);if(n==null)throw new nt.GraphQLError(`Value "${r}" does not exist in "${this.name}" enum.`+vi(this,r));return n.value}parseLiteral(r,n){if(r.kind!==fg.Kind.ENUM){let i=(0,yp.print)(r);throw new nt.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+vi(this,i),{nodes:r})}let t=this.getValue(r.value);if(t==null){let i=(0,yp.print)(r);throw new nt.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+vi(this,i),{nodes:r})}return t.value}toConfig(){let r=(0,Tp.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLEnumType=Ni;function vi(e,r){let n=e.getValues().map(i=>i.name),t=(0,pg.suggestionList)(r,n);return(0,ug.didYouMean)("the enum value",t)}function vp(e,r){return On(r)||(0,ge.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(r).map(([n,t])=>(On(t)||(0,ge.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,z.inspect)(t)}.`),{name:(0,cr.assertEnumValueName)(n),description:t.description,value:t.value!==void 0?t.value:n,deprecationReason:t.deprecationReason,extensions:(0,ur.toObjMap)(t.extensions),astNode:t.astNode}))}var Ii=class{constructor(r){var n,t;this.name=(0,cr.assertName)(r.name),this.description=r.description,this.extensions=(0,ur.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(t=r.isOneOf)!==null&&t!==void 0?t:!1,this._fields=Fg.bind(void 0,r)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let r=(0,Li.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:r,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};D.GraphQLInputObjectType=Ii;function Fg(e){let r=Ss(e.fields);return On(r)||(0,ge.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,Li.mapValue)(r,(n,t)=>(!("resolve"in n)||(0,ge.devAssert)(!1,`${e.name}.${t} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,cr.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ur.toObjMap)(n.extensions),astNode:n.astNode}))}function kg(e){return qr(e.type)&&e.defaultValue===void 0}});var st=y(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.doTypesOverlap=Cg;ot.isEqualType=Ds;ot.isTypeSubTypeOf=Ai;var Ne=Q();function Ds(e,r){return e===r?!0:(0,Ne.isNonNullType)(e)&&(0,Ne.isNonNullType)(r)||(0,Ne.isListType)(e)&&(0,Ne.isListType)(r)?Ds(e.ofType,r.ofType):!1}function Ai(e,r,n){return r===n?!0:(0,Ne.isNonNullType)(n)?(0,Ne.isNonNullType)(r)?Ai(e,r.ofType,n.ofType):!1:(0,Ne.isNonNullType)(r)?Ai(e,r.ofType,n):(0,Ne.isListType)(n)?(0,Ne.isListType)(r)?Ai(e,r.ofType,n.ofType):!1:(0,Ne.isListType)(r)?!1:(0,Ne.isAbstractType)(n)&&((0,Ne.isInterfaceType)(r)||(0,Ne.isObjectType)(r))&&e.isSubType(n,r)}function Cg(e,r,n){return r===n?!0:(0,Ne.isAbstractType)(r)?(0,Ne.isAbstractType)(n)?e.getPossibleTypes(r).some(t=>e.isSubType(n,t)):e.isSubType(r,n):(0,Ne.isAbstractType)(n)?e.isSubType(n,r):!1}});var lr=y(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.GraphQLString=he.GraphQLInt=he.GraphQLID=he.GraphQLFloat=he.GraphQLBoolean=he.GRAPHQL_MIN_INT=he.GRAPHQL_MAX_INT=void 0;he.isSpecifiedScalarType=qg;he.specifiedScalarTypes=void 0;var Xe=J(),Dp=sr(),be=P(),en=V(),at=xe(),ut=Q(),Ri=2147483647;he.GRAPHQL_MAX_INT=Ri;var ji=-2147483648;he.GRAPHQL_MIN_INT=ji;var Ap=new ut.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let r=ct(e);if(typeof r=="boolean")return r?1:0;let n=r;if(typeof r=="string"&&r!==""&&(n=Number(r)),typeof n!="number"||!Number.isInteger(n))throw new be.GraphQLError(`Int cannot represent non-integer value: ${(0,Xe.inspect)(r)}`);if(n>Ri||n<ji)throw new be.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,Xe.inspect)(r));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new be.GraphQLError(`Int cannot represent non-integer value: ${(0,Xe.inspect)(e)}`);if(e>Ri||e<ji)throw new be.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==en.Kind.INT)throw new be.GraphQLError(`Int cannot represent non-integer value: ${(0,at.print)(e)}`,{nodes:e});let r=parseInt(e.value,10);if(r>Ri||r<ji)throw new be.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return r}});he.GraphQLInt=Ap;var Rp=new ut.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let r=ct(e);if(typeof r=="boolean")return r?1:0;let n=r;if(typeof r=="string"&&r!==""&&(n=Number(r)),typeof n!="number"||!Number.isFinite(n))throw new be.GraphQLError(`Float cannot represent non numeric value: ${(0,Xe.inspect)(r)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new be.GraphQLError(`Float cannot represent non numeric value: ${(0,Xe.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==en.Kind.FLOAT&&e.kind!==en.Kind.INT)throw new be.GraphQLError(`Float cannot represent non numeric value: ${(0,at.print)(e)}`,e);return parseFloat(e.value)}});he.GraphQLFloat=Rp;var jp=new ut.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let r=ct(e);if(typeof r=="string")return r;if(typeof r=="boolean")return r?"true":"false";if(typeof r=="number"&&Number.isFinite(r))return r.toString();throw new be.GraphQLError(`String cannot represent value: ${(0,Xe.inspect)(e)}`)},parseValue(e){if(typeof e!="string")throw new be.GraphQLError(`String cannot represent a non string value: ${(0,Xe.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==en.Kind.STRING)throw new be.GraphQLError(`String cannot represent a non string value: ${(0,at.print)(e)}`,{nodes:e});return e.value}});he.GraphQLString=jp;var Pp=new ut.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let r=ct(e);if(typeof r=="boolean")return r;if(Number.isFinite(r))return r!==0;throw new be.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Xe.inspect)(r)}`)},parseValue(e){if(typeof e!="boolean")throw new be.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,Xe.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==en.Kind.BOOLEAN)throw new be.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,at.print)(e)}`,{nodes:e});return e.value}});he.GraphQLBoolean=Pp;var wp=new ut.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let r=ct(e);if(typeof r=="string")return r;if(Number.isInteger(r))return String(r);throw new be.GraphQLError(`ID cannot represent value: ${(0,Xe.inspect)(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new be.GraphQLError(`ID cannot represent value: ${(0,Xe.inspect)(e)}`)},parseLiteral(e){if(e.kind!==en.Kind.STRING&&e.kind!==en.Kind.INT)throw new be.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,at.print)(e),{nodes:e});return e.value}});he.GraphQLID=wp;var xp=Object.freeze([jp,Ap,Rp,Pp,wp]);he.specifiedScalarTypes=xp;function qg(e){return xp.some(({name:r})=>e.name===r)}function ct(e){if((0,Dp.isObjectLike)(e)){if(typeof e.valueOf=="function"){let r=e.valueOf();if(!(0,Dp.isObjectLike)(r))return r}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Re=y(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.GraphQLSpecifiedByDirective=le.GraphQLSkipDirective=le.GraphQLOneOfDirective=le.GraphQLIncludeDirective=le.GraphQLDirective=le.GraphQLDeprecatedDirective=le.DEFAULT_DEPRECATION_REASON=void 0;le.assertDirective=$g;le.isDirective=kp;le.isSpecifiedDirective=Kg;le.specifiedDirectives=void 0;var Fp=Se(),Mg=J(),Gg=Wn(),Vg=sr(),Qg=fi(),qe=gn(),Ug=rt(),lt=Q(),Pi=lr();function kp(e){return(0,Gg.instanceOf)(e,_r)}function $g(e){if(!kp(e))throw new Error(`Expected ${(0,Mg.inspect)(e)} to be a GraphQL directive.`);return e}var _r=class{constructor(r){var n,t;this.name=(0,Ug.assertName)(r.name),this.description=r.description,this.locations=r.locations,this.isRepeatable=(n=r.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,Qg.toObjMap)(r.extensions),this.astNode=r.astNode,Array.isArray(r.locations)||(0,Fp.devAssert)(!1,`@${r.name} locations must be an Array.`);let i=(t=r.args)!==null&&t!==void 0?t:{};(0,Vg.isObjectLike)(i)&&!Array.isArray(i)||(0,Fp.devAssert)(!1,`@${r.name} args must be an object with argument names as keys.`),this.args=(0,lt.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,lt.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};le.GraphQLDirective=_r;var Cp=new _r({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[qe.DirectiveLocation.FIELD,qe.DirectiveLocation.FRAGMENT_SPREAD,qe.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new lt.GraphQLNonNull(Pi.GraphQLBoolean),description:"Included when true."}}});le.GraphQLIncludeDirective=Cp;var qp=new _r({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[qe.DirectiveLocation.FIELD,qe.DirectiveLocation.FRAGMENT_SPREAD,qe.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new lt.GraphQLNonNull(Pi.GraphQLBoolean),description:"Skipped when true."}}});le.GraphQLSkipDirective=qp;var Mp="No longer supported";le.DEFAULT_DEPRECATION_REASON=Mp;var Gp=new _r({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[qe.DirectiveLocation.FIELD_DEFINITION,qe.DirectiveLocation.ARGUMENT_DEFINITION,qe.DirectiveLocation.INPUT_FIELD_DEFINITION,qe.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Pi.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Mp}}});le.GraphQLDeprecatedDirective=Gp;var Vp=new _r({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[qe.DirectiveLocation.SCALAR],args:{url:{type:new lt.GraphQLNonNull(Pi.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});le.GraphQLSpecifiedByDirective=Vp;var Qp=new _r({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[qe.DirectiveLocation.INPUT_OBJECT],args:{}});le.GraphQLOneOfDirective=Qp;var Up=Object.freeze([Cp,qp,Gp,Vp,Qp]);le.specifiedDirectives=Up;function Kg(e){return Up.some(({name:r})=>r===e.name)}});var wi=y(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.isIterableObject=Bg;function Bg(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}});var dt=y(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.astFromValue=ft;var $p=J(),Yg=Oe(),Hg=wi(),Jg=sr(),Me=V(),pt=Q(),Wg=lr();function ft(e,r){if((0,pt.isNonNullType)(r)){let n=ft(e,r.ofType);return n?.kind===Me.Kind.NULL?null:n}if(e===null)return{kind:Me.Kind.NULL};if(e===void 0)return null;if((0,pt.isListType)(r)){let n=r.ofType;if((0,Hg.isIterableObject)(e)){let t=[];for(let i of e){let o=ft(i,n);o!=null&&t.push(o)}return{kind:Me.Kind.LIST,values:t}}return ft(e,n)}if((0,pt.isInputObjectType)(r)){if(!(0,Jg.isObjectLike)(e))return null;let n=[];for(let t of Object.values(r.getFields())){let i=ft(e[t.name],t.type);i&&n.push({kind:Me.Kind.OBJECT_FIELD,name:{kind:Me.Kind.NAME,value:t.name},value:i})}return{kind:Me.Kind.OBJECT,fields:n}}if((0,pt.isLeafType)(r)){let n=r.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Me.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let t=String(n);return Kp.test(t)?{kind:Me.Kind.INT,value:t}:{kind:Me.Kind.FLOAT,value:t}}if(typeof n=="string")return(0,pt.isEnumType)(r)?{kind:Me.Kind.ENUM,value:n}:r===Wg.GraphQLID&&Kp.test(n)?{kind:Me.Kind.INT,value:n}:{kind:Me.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,$p.inspect)(n)}.`)}(0,Yg.invariant)(!1,"Unexpected input type: "+(0,$p.inspect)(r))}var Kp=/^-?(?:0|[1-9][0-9]*)$/});var Ve=y(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.introspectionTypes=W.__TypeKind=W.__Type=W.__Schema=W.__InputValue=W.__Field=W.__EnumValue=W.__DirectiveLocation=W.__Directive=W.TypeNameMetaFieldDef=W.TypeMetaFieldDef=W.TypeKind=W.SchemaMetaFieldDef=void 0;W.isIntrospectionType=ib;var Xg=J(),zg=Oe(),ye=gn(),Zg=xe(),eb=dt(),N=Q(),X=lr(),js=new N.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:X.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Ge))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new N.GraphQLNonNull(Ge),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ge,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ge,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Ps))),resolve:e=>e.getDirectives()}})});W.__Schema=js;var Ps=new N.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
51
51
 
52
- In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(ws))),resolve:e=>e.locations},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(mt))),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});W.__Directive=Ps;var ws=new N.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ye.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ye.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ye.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ye.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ye.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ye.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ye.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ye.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ye.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ye.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ye.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ye.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ye.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ye.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ye.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ye.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ye.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ye.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ye.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});W.__DirectiveLocation=ws;var Ge=new N.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new N.GraphQLNonNull(ks),resolve(e){if((0,N.isScalarType)(e))return ve.SCALAR;if((0,N.isObjectType)(e))return ve.OBJECT;if((0,N.isInterfaceType)(e))return ve.INTERFACE;if((0,N.isUnionType)(e))return ve.UNION;if((0,N.isEnumType)(e))return ve.ENUM;if((0,N.isInputObjectType)(e))return ve.INPUT_OBJECT;if((0,N.isListType)(e))return ve.LIST;if((0,N.isNonNullType)(e))return ve.NON_NULL;(0,zg.invariant)(!1,`Unexpected type: "${(0,Xg.inspect)(e)}".`)}},name:{type:X.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:X.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:X.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new N.GraphQLList(new N.GraphQLNonNull(xs)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,N.isObjectType)(e)||(0,N.isInterfaceType)(e)){let n=Object.values(e.getFields());return r?n:n.filter(t=>t.deprecationReason==null)}}},interfaces:{type:new N.GraphQLList(new N.GraphQLNonNull(Ge)),resolve(e){if((0,N.isObjectType)(e)||(0,N.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new N.GraphQLList(new N.GraphQLNonNull(Ge)),resolve(e,r,n,{schema:t}){if((0,N.isAbstractType)(e))return t.getPossibleTypes(e)}},enumValues:{type:new N.GraphQLList(new N.GraphQLNonNull(Fs)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,N.isEnumType)(e)){let n=e.getValues();return r?n:n.filter(t=>t.deprecationReason==null)}}},inputFields:{type:new N.GraphQLList(new N.GraphQLNonNull(mt)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,N.isInputObjectType)(e)){let n=Object.values(e.getFields());return r?n:n.filter(t=>t.deprecationReason==null)}}},ofType:{type:Ge,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:X.GraphQLBoolean,resolve:e=>{if((0,N.isInputObjectType)(e))return e.isOneOf}}})});W.__Type=Ge;var xs=new N.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(mt))),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new N.GraphQLNonNull(Ge),resolve:e=>e.type},isDeprecated:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:X.GraphQLString,resolve:e=>e.deprecationReason}})});W.__Field=xs;var mt=new N.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},type:{type:new N.GraphQLNonNull(Ge),resolve:e=>e.type},defaultValue:{type:X.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:r,defaultValue:n}=e,t=(0,eb.astFromValue)(n,r);return t?(0,Zg.print)(t):null}},isDeprecated:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:X.GraphQLString,resolve:e=>e.deprecationReason}})});W.__InputValue=mt;var Fs=new N.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:X.GraphQLString,resolve:e=>e.deprecationReason}})});W.__EnumValue=Fs;var ve;W.TypeKind=ve;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(ve||(W.TypeKind=ve={}));var ks=new N.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ve.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ve.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ve.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ve.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ve.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ve.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ve.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ve.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});W.__TypeKind=ks;var rb={name:"__schema",type:new N.GraphQLNonNull(js),description:"Access the current type schema of this server.",args:[],resolve:(e,r,n,{schema:t})=>t,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.SchemaMetaFieldDef=rb;var nb={name:"__type",type:Ge,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new N.GraphQLNonNull(X.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:r},n,{schema:t})=>t.getType(r),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.TypeMetaFieldDef=nb;var tb={name:"__typename",type:new N.GraphQLNonNull(X.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,r,n,{parentType:t})=>t.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.TypeNameMetaFieldDef=tb;var Kp=Object.freeze([js,Ps,ws,Ge,xs,mt,Fs,ks]);W.introspectionTypes=Kp;function ib(e){return Kp.some(({name:r})=>e.name===r)}});var rn=y(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.GraphQLSchema=void 0;In.assertSchema=cb;In.isSchema=Yp;var xi=Se(),qs=J(),ob=Wn(),sb=sr(),ab=fi(),Cs=ar(),ze=Q(),Bp=Re(),ub=Ve();function Yp(e){return(0,ob.instanceOf)(e,Fi)}function cb(e){if(!Yp(e))throw new Error(`Expected ${(0,qs.inspect)(e)} to be a GraphQL schema.`);return e}var Fi=class{constructor(r){var n,t;this.__validationErrors=r.assumeValid===!0?[]:void 0,(0,sb.isObjectLike)(r)||(0,xi.devAssert)(!1,"Must provide configuration object."),!r.types||Array.isArray(r.types)||(0,xi.devAssert)(!1,`"types" must be Array if provided but got: ${(0,qs.inspect)(r.types)}.`),!r.directives||Array.isArray(r.directives)||(0,xi.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,qs.inspect)(r.directives)}.`),this.description=r.description,this.extensions=(0,ab.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=r.query,this._mutationType=r.mutation,this._subscriptionType=r.subscription,this._directives=(t=r.directives)!==null&&t!==void 0?t:Bp.specifiedDirectives;let i=new Set(r.types);if(r.types!=null)for(let o of r.types)i.delete(o),Ze(o,i);this._queryType!=null&&Ze(this._queryType,i),this._mutationType!=null&&Ze(this._mutationType,i),this._subscriptionType!=null&&Ze(this._subscriptionType,i);for(let o of this._directives)if((0,Bp.isDirective)(o))for(let s of o.args)Ze(s.type,i);Ze(ub.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let o of i){if(o==null)continue;let s=o.name;if(s||(0,xi.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,(0,ze.isInterfaceType)(o)){for(let a of o.getInterfaces())if((0,ze.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(o)}}else if((0,ze.isObjectType)(o)){for(let a of o.getInterfaces())if((0,ze.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(r){switch(r){case Cs.OperationTypeNode.QUERY:return this.getQueryType();case Cs.OperationTypeNode.MUTATION:return this.getMutationType();case Cs.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(r){return this.getTypeMap()[r]}getPossibleTypes(r){return(0,ze.isUnionType)(r)?r.getTypes():this.getImplementations(r).objects}getImplementations(r){let n=this._implementationsMap[r.name];return n??{objects:[],interfaces:[]}}isSubType(r,n){let t=this._subTypeMap[r.name];if(t===void 0){if(t=Object.create(null),(0,ze.isUnionType)(r))for(let i of r.getTypes())t[i.name]=!0;else{let i=this.getImplementations(r);for(let o of i.objects)t[o.name]=!0;for(let o of i.interfaces)t[o.name]=!0}this._subTypeMap[r.name]=t}return t[n.name]!==void 0}getDirectives(){return this._directives}getDirective(r){return this.getDirectives().find(n=>n.name===r)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};In.GraphQLSchema=Fi;function Ze(e,r){let n=(0,ze.getNamedType)(e);if(!r.has(n)){if(r.add(n),(0,ze.isUnionType)(n))for(let t of n.getTypes())Ze(t,r);else if((0,ze.isObjectType)(n)||(0,ze.isInterfaceType)(n)){for(let t of n.getInterfaces())Ze(t,r);for(let t of Object.values(n.getFields())){Ze(t.type,r);for(let i of t.args)Ze(i.type,r)}}else if((0,ze.isInputObjectType)(n))for(let t of Object.values(n.getFields()))Ze(t.type,r)}return r}});var yt=y(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.assertValidSchema=db;ki.validateSchema=Zp;var Ie=J(),lb=P(),Ms=ar(),Hp=st(),oe=Q(),zp=Re(),pb=Ve(),fb=rn();function Zp(e){if((0,fb.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let r=new Vs(e);mb(r),hb(r),yb(r);let n=r.getErrors();return e.__validationErrors=n,n}function db(e){let r=Zp(e);if(r.length!==0)throw new Error(r.map(n=>n.message).join(`
52
+ In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(ws))),resolve:e=>e.locations},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(mt))),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});W.__Directive=Ps;var ws=new N.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ye.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ye.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ye.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ye.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ye.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ye.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ye.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ye.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ye.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ye.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ye.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ye.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ye.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ye.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ye.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ye.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ye.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ye.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ye.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});W.__DirectiveLocation=ws;var Ge=new N.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new N.GraphQLNonNull(ks),resolve(e){if((0,N.isScalarType)(e))return ve.SCALAR;if((0,N.isObjectType)(e))return ve.OBJECT;if((0,N.isInterfaceType)(e))return ve.INTERFACE;if((0,N.isUnionType)(e))return ve.UNION;if((0,N.isEnumType)(e))return ve.ENUM;if((0,N.isInputObjectType)(e))return ve.INPUT_OBJECT;if((0,N.isListType)(e))return ve.LIST;if((0,N.isNonNullType)(e))return ve.NON_NULL;(0,zg.invariant)(!1,`Unexpected type: "${(0,Xg.inspect)(e)}".`)}},name:{type:X.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:X.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:X.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new N.GraphQLList(new N.GraphQLNonNull(xs)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,N.isObjectType)(e)||(0,N.isInterfaceType)(e)){let n=Object.values(e.getFields());return r?n:n.filter(t=>t.deprecationReason==null)}}},interfaces:{type:new N.GraphQLList(new N.GraphQLNonNull(Ge)),resolve(e){if((0,N.isObjectType)(e)||(0,N.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new N.GraphQLList(new N.GraphQLNonNull(Ge)),resolve(e,r,n,{schema:t}){if((0,N.isAbstractType)(e))return t.getPossibleTypes(e)}},enumValues:{type:new N.GraphQLList(new N.GraphQLNonNull(Fs)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,N.isEnumType)(e)){let n=e.getValues();return r?n:n.filter(t=>t.deprecationReason==null)}}},inputFields:{type:new N.GraphQLList(new N.GraphQLNonNull(mt)),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){if((0,N.isInputObjectType)(e)){let n=Object.values(e.getFields());return r?n:n.filter(t=>t.deprecationReason==null)}}},ofType:{type:Ge,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:X.GraphQLBoolean,resolve:e=>{if((0,N.isInputObjectType)(e))return e.isOneOf}}})});W.__Type=Ge;var xs=new N.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(mt))),args:{includeDeprecated:{type:X.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:r}){return r?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new N.GraphQLNonNull(Ge),resolve:e=>e.type},isDeprecated:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:X.GraphQLString,resolve:e=>e.deprecationReason}})});W.__Field=xs;var mt=new N.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},type:{type:new N.GraphQLNonNull(Ge),resolve:e=>e.type},defaultValue:{type:X.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:r,defaultValue:n}=e,t=(0,eb.astFromValue)(n,r);return t?(0,Zg.print)(t):null}},isDeprecated:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:X.GraphQLString,resolve:e=>e.deprecationReason}})});W.__InputValue=mt;var Fs=new N.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new N.GraphQLNonNull(X.GraphQLString),resolve:e=>e.name},description:{type:X.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new N.GraphQLNonNull(X.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:X.GraphQLString,resolve:e=>e.deprecationReason}})});W.__EnumValue=Fs;var ve;W.TypeKind=ve;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(ve||(W.TypeKind=ve={}));var ks=new N.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ve.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ve.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ve.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ve.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ve.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ve.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ve.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ve.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});W.__TypeKind=ks;var rb={name:"__schema",type:new N.GraphQLNonNull(js),description:"Access the current type schema of this server.",args:[],resolve:(e,r,n,{schema:t})=>t,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.SchemaMetaFieldDef=rb;var nb={name:"__type",type:Ge,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new N.GraphQLNonNull(X.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:r},n,{schema:t})=>t.getType(r),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.TypeMetaFieldDef=nb;var tb={name:"__typename",type:new N.GraphQLNonNull(X.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,r,n,{parentType:t})=>t.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};W.TypeNameMetaFieldDef=tb;var Bp=Object.freeze([js,Ps,ws,Ge,xs,mt,Fs,ks]);W.introspectionTypes=Bp;function ib(e){return Bp.some(({name:r})=>e.name===r)}});var rn=y(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.GraphQLSchema=void 0;In.assertSchema=cb;In.isSchema=Hp;var xi=Se(),qs=J(),ob=Wn(),sb=sr(),ab=fi(),Cs=ar(),ze=Q(),Yp=Re(),ub=Ve();function Hp(e){return(0,ob.instanceOf)(e,Fi)}function cb(e){if(!Hp(e))throw new Error(`Expected ${(0,qs.inspect)(e)} to be a GraphQL schema.`);return e}var Fi=class{constructor(r){var n,t;this.__validationErrors=r.assumeValid===!0?[]:void 0,(0,sb.isObjectLike)(r)||(0,xi.devAssert)(!1,"Must provide configuration object."),!r.types||Array.isArray(r.types)||(0,xi.devAssert)(!1,`"types" must be Array if provided but got: ${(0,qs.inspect)(r.types)}.`),!r.directives||Array.isArray(r.directives)||(0,xi.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,qs.inspect)(r.directives)}.`),this.description=r.description,this.extensions=(0,ab.toObjMap)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=(n=r.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=r.query,this._mutationType=r.mutation,this._subscriptionType=r.subscription,this._directives=(t=r.directives)!==null&&t!==void 0?t:Yp.specifiedDirectives;let i=new Set(r.types);if(r.types!=null)for(let o of r.types)i.delete(o),Ze(o,i);this._queryType!=null&&Ze(this._queryType,i),this._mutationType!=null&&Ze(this._mutationType,i),this._subscriptionType!=null&&Ze(this._subscriptionType,i);for(let o of this._directives)if((0,Yp.isDirective)(o))for(let s of o.args)Ze(s.type,i);Ze(ub.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let o of i){if(o==null)continue;let s=o.name;if(s||(0,xi.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,(0,ze.isInterfaceType)(o)){for(let a of o.getInterfaces())if((0,ze.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(o)}}else if((0,ze.isObjectType)(o)){for(let a of o.getInterfaces())if((0,ze.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(r){switch(r){case Cs.OperationTypeNode.QUERY:return this.getQueryType();case Cs.OperationTypeNode.MUTATION:return this.getMutationType();case Cs.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(r){return this.getTypeMap()[r]}getPossibleTypes(r){return(0,ze.isUnionType)(r)?r.getTypes():this.getImplementations(r).objects}getImplementations(r){let n=this._implementationsMap[r.name];return n??{objects:[],interfaces:[]}}isSubType(r,n){let t=this._subTypeMap[r.name];if(t===void 0){if(t=Object.create(null),(0,ze.isUnionType)(r))for(let i of r.getTypes())t[i.name]=!0;else{let i=this.getImplementations(r);for(let o of i.objects)t[o.name]=!0;for(let o of i.interfaces)t[o.name]=!0}this._subTypeMap[r.name]=t}return t[n.name]!==void 0}getDirectives(){return this._directives}getDirective(r){return this.getDirectives().find(n=>n.name===r)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};In.GraphQLSchema=Fi;function Ze(e,r){let n=(0,ze.getNamedType)(e);if(!r.has(n)){if(r.add(n),(0,ze.isUnionType)(n))for(let t of n.getTypes())Ze(t,r);else if((0,ze.isObjectType)(n)||(0,ze.isInterfaceType)(n)){for(let t of n.getInterfaces())Ze(t,r);for(let t of Object.values(n.getFields())){Ze(t.type,r);for(let i of t.args)Ze(i.type,r)}}else if((0,ze.isInputObjectType)(n))for(let t of Object.values(n.getFields()))Ze(t.type,r)}return r}});var yt=y(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.assertValidSchema=db;ki.validateSchema=ef;var Ie=J(),lb=P(),Ms=ar(),Jp=st(),oe=Q(),Zp=Re(),pb=Ve(),fb=rn();function ef(e){if((0,fb.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let r=new Vs(e);mb(r),hb(r),yb(r);let n=r.getErrors();return e.__validationErrors=n,n}function db(e){let r=ef(e);if(r.length!==0)throw new Error(r.map(n=>n.message).join(`
53
53
 
54
- `))}var Vs=class{constructor(r){this._errors=[],this.schema=r}reportError(r,n){let t=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new lb.GraphQLError(r,{nodes:t}))}getErrors(){return this._errors}};function mb(e){let r=e.schema,n=r.getQueryType();if(!n)e.reportError("Query root type must be provided.",r.astNode);else if(!(0,oe.isObjectType)(n)){var t;e.reportError(`Query root type must be Object type, it cannot be ${(0,Ie.inspect)(n)}.`,(t=Gs(r,Ms.OperationTypeNode.QUERY))!==null&&t!==void 0?t:n.astNode)}let i=r.getMutationType();if(i&&!(0,oe.isObjectType)(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,Ie.inspect)(i)}.`,(o=Gs(r,Ms.OperationTypeNode.MUTATION))!==null&&o!==void 0?o:i.astNode)}let s=r.getSubscriptionType();if(s&&!(0,oe.isObjectType)(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,Ie.inspect)(s)}.`,(a=Gs(r,Ms.OperationTypeNode.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function Gs(e,r){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(t=>{var i;return(i=t?.operationTypes)!==null&&i!==void 0?i:[]}).find(t=>t.operation===r))===null||n===void 0?void 0:n.type}function hb(e){for(let n of e.schema.getDirectives()){if(!(0,zp.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,Ie.inspect)(n)}.`,n?.astNode);continue}nn(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(let t of n.args)if(nn(e,t),(0,oe.isInputType)(t.type)||e.reportError(`The type of @${n.name}(${t.name}:) must be Input Type but got: ${(0,Ie.inspect)(t.type)}.`,t.astNode),(0,oe.isRequiredArgument)(t)&&t.deprecationReason!=null){var r;e.reportError(`Required argument @${n.name}(${t.name}:) cannot be deprecated.`,[Qs(t.astNode),(r=t.astNode)===null||r===void 0?void 0:r.type])}}}function nn(e,r){r.name.startsWith("__")&&e.reportError(`Name "${r.name}" must not begin with "__", which is reserved by GraphQL introspection.`,r.astNode)}function yb(e){let r=Ob(e),n=e.schema.getTypeMap();for(let t of Object.values(n)){if(!(0,oe.isNamedType)(t)){e.reportError(`Expected GraphQL named type but got: ${(0,Ie.inspect)(t)}.`,t.astNode);continue}(0,pb.isIntrospectionType)(t)||nn(e,t),(0,oe.isObjectType)(t)||(0,oe.isInterfaceType)(t)?(Jp(e,t),Wp(e,t)):(0,oe.isUnionType)(t)?gb(e,t):(0,oe.isEnumType)(t)?bb(e,t):(0,oe.isInputObjectType)(t)&&(Eb(e,t),r(t))}}function Jp(e,r){let n=Object.values(r.getFields());n.length===0&&e.reportError(`Type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let s of n){if(nn(e,s),!(0,oe.isOutputType)(s.type)){var t;e.reportError(`The type of ${r.name}.${s.name} must be Output Type but got: ${(0,Ie.inspect)(s.type)}.`,(t=s.astNode)===null||t===void 0?void 0:t.type)}for(let a of s.args){let u=a.name;if(nn(e,a),!(0,oe.isInputType)(a.type)){var i;e.reportError(`The type of ${r.name}.${s.name}(${u}:) must be Input Type but got: ${(0,Ie.inspect)(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if((0,oe.isRequiredArgument)(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${r.name}.${s.name}(${u}:) cannot be deprecated.`,[Qs(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function Wp(e,r){let n=Object.create(null);for(let t of r.getInterfaces()){if(!(0,oe.isInterfaceType)(t)){e.reportError(`Type ${(0,Ie.inspect)(r)} must only implement Interface types, it cannot implement ${(0,Ie.inspect)(t)}.`,ht(r,t));continue}if(r===t){e.reportError(`Type ${r.name} cannot implement itself because it would create a circular reference.`,ht(r,t));continue}if(n[t.name]){e.reportError(`Type ${r.name} can only implement ${t.name} once.`,ht(r,t));continue}n[t.name]=!0,Tb(e,r,t),vb(e,r,t)}}function vb(e,r,n){let t=r.getFields();for(let u of Object.values(n.getFields())){let c=u.name,l=t[c];if(!l){e.reportError(`Interface field ${n.name}.${c} expected but ${r.name} does not provide it.`,[u.astNode,r.astNode,...r.extensionASTNodes]);continue}if(!(0,Hp.isTypeSubTypeOf)(e.schema,l.type,u.type)){var i,o;e.reportError(`Interface field ${n.name}.${c} expects type ${(0,Ie.inspect)(u.type)} but ${r.name}.${c} is type ${(0,Ie.inspect)(l.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(o=l.astNode)===null||o===void 0?void 0:o.type])}for(let p of u.args){let f=p.name,m=l.args.find(h=>h.name===f);if(!m){e.reportError(`Interface field argument ${n.name}.${c}(${f}:) expected but ${r.name}.${c} does not provide it.`,[p.astNode,l.astNode]);continue}if(!(0,Hp.isEqualType)(p.type,m.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${c}(${f}:) expects type ${(0,Ie.inspect)(p.type)} but ${r.name}.${c}(${f}:) is type ${(0,Ie.inspect)(m.type)}.`,[(s=p.astNode)===null||s===void 0?void 0:s.type,(a=m.astNode)===null||a===void 0?void 0:a.type])}}for(let p of l.args){let f=p.name;!u.args.find(h=>h.name===f)&&(0,oe.isRequiredArgument)(p)&&e.reportError(`Object field ${r.name}.${c} includes required argument ${f} that is missing from the Interface field ${n.name}.${c}.`,[p.astNode,u.astNode])}}}function Tb(e,r,n){let t=r.getInterfaces();for(let i of n.getInterfaces())t.includes(i)||e.reportError(i===r?`Type ${r.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${r.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...ht(n,i),...ht(r,n)])}function gb(e,r){let n=r.getTypes();n.length===0&&e.reportError(`Union type ${r.name} must define one or more member types.`,[r.astNode,...r.extensionASTNodes]);let t=Object.create(null);for(let i of n){if(t[i.name]){e.reportError(`Union type ${r.name} can only include type ${i.name} once.`,Xp(r,i.name));continue}t[i.name]=!0,(0,oe.isObjectType)(i)||e.reportError(`Union type ${r.name} can only include Object types, it cannot include ${(0,Ie.inspect)(i)}.`,Xp(r,String(i)))}}function bb(e,r){let n=r.getValues();n.length===0&&e.reportError(`Enum type ${r.name} must define one or more values.`,[r.astNode,...r.extensionASTNodes]);for(let t of n)nn(e,t)}function Eb(e,r){let n=Object.values(r.getFields());n.length===0&&e.reportError(`Input Object type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let o of n){if(nn(e,o),!(0,oe.isInputType)(o.type)){var t;e.reportError(`The type of ${r.name}.${o.name} must be Input Type but got: ${(0,Ie.inspect)(o.type)}.`,(t=o.astNode)===null||t===void 0?void 0:t.type)}if((0,oe.isRequiredInputField)(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${r.name}.${o.name} cannot be deprecated.`,[Qs(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}r.isOneOf&&_b(r,o,e)}}function _b(e,r,n){if((0,oe.isNonNullType)(r.type)){var t;n.reportError(`OneOf input field ${e.name}.${r.name} must be nullable.`,(t=r.astNode)===null||t===void 0?void 0:t.type)}r.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${r.name} cannot have a default value.`,r.astNode)}function Ob(e){let r=Object.create(null),n=[],t=Object.create(null);return i;function i(o){if(r[o.name])return;r[o.name]=!0,t[o.name]=n.length;let s=Object.values(o.getFields());for(let a of s)if((0,oe.isNonNullType)(a.type)&&(0,oe.isInputObjectType)(a.type.ofType)){let u=a.type.ofType,c=t[u.name];if(n.push(a),c===void 0)i(u);else{let l=n.slice(c),p=l.map(f=>f.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${p}".`,l.map(f=>f.astNode))}n.pop()}t[o.name]=void 0}}function ht(e,r){let{astNode:n,extensionASTNodes:t}=e;return(n!=null?[n,...t]:t).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===r.name)}function Xp(e,r){let{astNode:n,extensionASTNodes:t}=e;return(n!=null?[n,...t]:t).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===r)}function Qs(e){var r;return e==null||(r=e.directives)===null||r===void 0?void 0:r.find(n=>n.name.value===zp.GraphQLDeprecatedDirective.name)}});var pr=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.typeFromAST=$s;var Us=V(),ef=Q();function $s(e,r){switch(r.kind){case Us.Kind.LIST_TYPE:{let n=$s(e,r.type);return n&&new ef.GraphQLList(n)}case Us.Kind.NON_NULL_TYPE:{let n=$s(e,r.type);return n&&new ef.GraphQLNonNull(n)}case Us.Kind.NAMED_TYPE:return e.getType(r.name.value)}}});var Ci=y(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.TypeInfo=void 0;vt.visitWithTypeInfo=Lb;var Nb=ar(),se=V(),rf=Jr(),ae=Q(),Ln=Ve(),nf=pr(),Bs=class{constructor(r,n,t){this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=t??Ib,n&&((0,ae.isInputType)(n)&&this._inputTypeStack.push(n),(0,ae.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,ae.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(r){let n=this._schema;switch(r.kind){case se.Kind.SELECTION_SET:{let i=(0,ae.getNamedType)(this.getType());this._parentTypeStack.push((0,ae.isCompositeType)(i)?i:void 0);break}case se.Kind.FIELD:{let i=this.getParentType(),o,s;i&&(o=this._getFieldDef(n,i,r),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push((0,ae.isOutputType)(s)?s:void 0);break}case se.Kind.DIRECTIVE:this._directive=n.getDirective(r.name.value);break;case se.Kind.OPERATION_DEFINITION:{let i=n.getRootType(r.operation);this._typeStack.push((0,ae.isObjectType)(i)?i:void 0);break}case se.Kind.INLINE_FRAGMENT:case se.Kind.FRAGMENT_DEFINITION:{let i=r.typeCondition,o=i?(0,nf.typeFromAST)(n,i):(0,ae.getNamedType)(this.getType());this._typeStack.push((0,ae.isOutputType)(o)?o:void 0);break}case se.Kind.VARIABLE_DEFINITION:{let i=(0,nf.typeFromAST)(n,r.type);this._inputTypeStack.push((0,ae.isInputType)(i)?i:void 0);break}case se.Kind.ARGUMENT:{var t;let i,o,s=(t=this.getDirective())!==null&&t!==void 0?t:this.getFieldDef();s&&(i=s.args.find(a=>a.name===r.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,ae.isInputType)(o)?o:void 0);break}case se.Kind.LIST:{let i=(0,ae.getNullableType)(this.getInputType()),o=(0,ae.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,ae.isInputType)(o)?o:void 0);break}case se.Kind.OBJECT_FIELD:{let i=(0,ae.getNamedType)(this.getInputType()),o,s;(0,ae.isInputObjectType)(i)&&(s=i.getFields()[r.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push((0,ae.isInputType)(o)?o:void 0);break}case se.Kind.ENUM:{let i=(0,ae.getNamedType)(this.getInputType()),o;(0,ae.isEnumType)(i)&&(o=i.getValue(r.value)),this._enumValue=o;break}default:}}leave(r){switch(r.kind){case se.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case se.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case se.Kind.DIRECTIVE:this._directive=null;break;case se.Kind.OPERATION_DEFINITION:case se.Kind.INLINE_FRAGMENT:case se.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case se.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case se.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case se.Kind.LIST:case se.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case se.Kind.ENUM:this._enumValue=null;break;default:}}};vt.TypeInfo=Bs;function Ib(e,r,n){let t=n.name.value;if(t===Ln.SchemaMetaFieldDef.name&&e.getQueryType()===r)return Ln.SchemaMetaFieldDef;if(t===Ln.TypeMetaFieldDef.name&&e.getQueryType()===r)return Ln.TypeMetaFieldDef;if(t===Ln.TypeNameMetaFieldDef.name&&(0,ae.isCompositeType)(r))return Ln.TypeNameMetaFieldDef;if((0,ae.isObjectType)(r)||(0,ae.isInterfaceType)(r))return r.getFields()[t]}function Lb(e,r){return{enter(...n){let t=n[0];e.enter(t);let i=(0,rf.getEnterLeaveForKind)(r,t.kind).enter;if(i){let o=i.apply(r,n);return o!==void 0&&(e.leave(t),(0,Nb.isNode)(o)&&e.enter(o)),o}},leave(...n){let t=n[0],i=(0,rf.getEnterLeaveForKind)(r,t.kind).leave,o;return i&&(o=i.apply(r,n)),e.leave(t),o}}}});var tn=y(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.isConstValueNode=Ys;Qe.isDefinitionNode=Sb;Qe.isExecutableDefinitionNode=tf;Qe.isSelectionNode=Db;Qe.isTypeDefinitionNode=af;Qe.isTypeExtensionNode=cf;Qe.isTypeNode=Ab;Qe.isTypeSystemDefinitionNode=sf;Qe.isTypeSystemExtensionNode=uf;Qe.isValueNode=of;var U=V();function Sb(e){return tf(e)||sf(e)||uf(e)}function tf(e){return e.kind===U.Kind.OPERATION_DEFINITION||e.kind===U.Kind.FRAGMENT_DEFINITION}function Db(e){return e.kind===U.Kind.FIELD||e.kind===U.Kind.FRAGMENT_SPREAD||e.kind===U.Kind.INLINE_FRAGMENT}function of(e){return e.kind===U.Kind.VARIABLE||e.kind===U.Kind.INT||e.kind===U.Kind.FLOAT||e.kind===U.Kind.STRING||e.kind===U.Kind.BOOLEAN||e.kind===U.Kind.NULL||e.kind===U.Kind.ENUM||e.kind===U.Kind.LIST||e.kind===U.Kind.OBJECT}function Ys(e){return of(e)&&(e.kind===U.Kind.LIST?e.values.some(Ys):e.kind===U.Kind.OBJECT?e.fields.some(r=>Ys(r.value)):e.kind!==U.Kind.VARIABLE)}function Ab(e){return e.kind===U.Kind.NAMED_TYPE||e.kind===U.Kind.LIST_TYPE||e.kind===U.Kind.NON_NULL_TYPE}function sf(e){return e.kind===U.Kind.SCHEMA_DEFINITION||af(e)||e.kind===U.Kind.DIRECTIVE_DEFINITION}function af(e){return e.kind===U.Kind.SCALAR_TYPE_DEFINITION||e.kind===U.Kind.OBJECT_TYPE_DEFINITION||e.kind===U.Kind.INTERFACE_TYPE_DEFINITION||e.kind===U.Kind.UNION_TYPE_DEFINITION||e.kind===U.Kind.ENUM_TYPE_DEFINITION||e.kind===U.Kind.INPUT_OBJECT_TYPE_DEFINITION}function uf(e){return e.kind===U.Kind.SCHEMA_EXTENSION||cf(e)}function cf(e){return e.kind===U.Kind.SCALAR_TYPE_EXTENSION||e.kind===U.Kind.OBJECT_TYPE_EXTENSION||e.kind===U.Kind.INTERFACE_TYPE_EXTENSION||e.kind===U.Kind.UNION_TYPE_EXTENSION||e.kind===U.Kind.ENUM_TYPE_EXTENSION||e.kind===U.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var Js=y(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.ExecutableDefinitionsRule=Pb;var Rb=P(),lf=V(),jb=tn();function Pb(e){return{Document(r){for(let n of r.definitions)if(!(0,jb.isExecutableDefinitionNode)(n)){let t=n.kind===lf.Kind.SCHEMA_DEFINITION||n.kind===lf.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new Rb.GraphQLError(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}});var Xs=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.FieldsOnCorrectTypeRule=kb;var pf=wr(),wb=et(),xb=Fr(),Fb=P(),Tt=Q();function kb(e){return{Field(r){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),o=r.name.value,s=(0,pf.didYouMean)("to use an inline fragment on",Cb(i,n,o));s===""&&(s=(0,pf.didYouMean)(qb(n,o))),e.reportError(new Fb.GraphQLError(`Cannot query field "${o}" on type "${n.name}".`+s,{nodes:r}))}}}}function Cb(e,r,n){if(!(0,Tt.isAbstractType)(r))return[];let t=new Set,i=Object.create(null);for(let s of e.getPossibleTypes(r))if(s.getFields()[n]){t.add(s),i[s.name]=1;for(let a of s.getInterfaces()){var o;a.getFields()[n]&&(t.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...t].sort((s,a)=>{let u=i[a.name]-i[s.name];return u!==0?u:(0,Tt.isInterfaceType)(s)&&e.isSubType(s,a)?-1:(0,Tt.isInterfaceType)(a)&&e.isSubType(a,s)?1:(0,wb.naturalCompare)(s.name,a.name)}).map(s=>s.name)}function qb(e,r){if((0,Tt.isObjectType)(e)||(0,Tt.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,xb.suggestionList)(r,n)}return[]}});var Zs=y(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.FragmentsOnCompositeTypesRule=Mb;var ff=P(),df=xe(),mf=Q(),hf=pr();function Mb(e){return{InlineFragment(r){let n=r.typeCondition;if(n){let t=(0,hf.typeFromAST)(e.getSchema(),n);if(t&&!(0,mf.isCompositeType)(t)){let i=(0,df.print)(n);e.reportError(new ff.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(r){let n=(0,hf.typeFromAST)(e.getSchema(),r.typeCondition);if(n&&!(0,mf.isCompositeType)(n)){let t=(0,df.print)(r.typeCondition);e.reportError(new ff.GraphQLError(`Fragment "${r.name.value}" cannot condition on non composite type "${t}".`,{nodes:r.typeCondition}))}}}}});var ea=y(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.KnownArgumentNamesOnDirectivesRule=gf;qi.KnownArgumentNamesRule=Qb;var yf=wr(),vf=Fr(),Tf=P(),Gb=V(),Vb=Re();function Qb(e){return{...gf(e),Argument(r){let n=e.getArgument(),t=e.getFieldDef(),i=e.getParentType();if(!n&&t&&i){let o=r.name.value,s=t.args.map(u=>u.name),a=(0,vf.suggestionList)(o,s);e.reportError(new Tf.GraphQLError(`Unknown argument "${o}" on field "${i.name}.${t.name}".`+(0,yf.didYouMean)(a),{nodes:r}))}}}}function gf(e){let r=Object.create(null),n=e.getSchema(),t=n?n.getDirectives():Vb.specifiedDirectives;for(let s of t)r[s.name]=s.args.map(a=>a.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===Gb.Kind.DIRECTIVE_DEFINITION){var o;let a=(o=s.arguments)!==null&&o!==void 0?o:[];r[s.name.value]=a.map(u=>u.name.value)}return{Directive(s){let a=s.name.value,u=r[a];if(s.arguments&&u)for(let c of s.arguments){let l=c.name.value;if(!u.includes(l)){let p=(0,vf.suggestionList)(l,u);e.reportError(new Tf.GraphQLError(`Unknown argument "${l}" on directive "@${a}".`+(0,yf.didYouMean)(p),{nodes:c}))}}return!1}}}});var ia=y(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.KnownDirectivesRule=Kb;var Ub=J(),ra=Oe(),bf=P(),na=ar(),Te=gn(),ee=V(),$b=Re();function Kb(e){let r=Object.create(null),n=e.getSchema(),t=n?n.getDirectives():$b.specifiedDirectives;for(let o of t)r[o.name]=o.locations;let i=e.getDocument().definitions;for(let o of i)o.kind===ee.Kind.DIRECTIVE_DEFINITION&&(r[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,u,c){let l=o.name.value,p=r[l];if(!p){e.reportError(new bf.GraphQLError(`Unknown directive "@${l}".`,{nodes:o}));return}let f=Bb(c);f&&!p.includes(f)&&e.reportError(new bf.GraphQLError(`Directive "@${l}" may not be used on ${f}.`,{nodes:o}))}}}function Bb(e){let r=e[e.length-1];switch("kind"in r||(0,ra.invariant)(!1),r.kind){case ee.Kind.OPERATION_DEFINITION:return Yb(r.operation);case ee.Kind.FIELD:return Te.DirectiveLocation.FIELD;case ee.Kind.FRAGMENT_SPREAD:return Te.DirectiveLocation.FRAGMENT_SPREAD;case ee.Kind.INLINE_FRAGMENT:return Te.DirectiveLocation.INLINE_FRAGMENT;case ee.Kind.FRAGMENT_DEFINITION:return Te.DirectiveLocation.FRAGMENT_DEFINITION;case ee.Kind.VARIABLE_DEFINITION:return Te.DirectiveLocation.VARIABLE_DEFINITION;case ee.Kind.SCHEMA_DEFINITION:case ee.Kind.SCHEMA_EXTENSION:return Te.DirectiveLocation.SCHEMA;case ee.Kind.SCALAR_TYPE_DEFINITION:case ee.Kind.SCALAR_TYPE_EXTENSION:return Te.DirectiveLocation.SCALAR;case ee.Kind.OBJECT_TYPE_DEFINITION:case ee.Kind.OBJECT_TYPE_EXTENSION:return Te.DirectiveLocation.OBJECT;case ee.Kind.FIELD_DEFINITION:return Te.DirectiveLocation.FIELD_DEFINITION;case ee.Kind.INTERFACE_TYPE_DEFINITION:case ee.Kind.INTERFACE_TYPE_EXTENSION:return Te.DirectiveLocation.INTERFACE;case ee.Kind.UNION_TYPE_DEFINITION:case ee.Kind.UNION_TYPE_EXTENSION:return Te.DirectiveLocation.UNION;case ee.Kind.ENUM_TYPE_DEFINITION:case ee.Kind.ENUM_TYPE_EXTENSION:return Te.DirectiveLocation.ENUM;case ee.Kind.ENUM_VALUE_DEFINITION:return Te.DirectiveLocation.ENUM_VALUE;case ee.Kind.INPUT_OBJECT_TYPE_DEFINITION:case ee.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Te.DirectiveLocation.INPUT_OBJECT;case ee.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,ra.invariant)(!1),n.kind===ee.Kind.INPUT_OBJECT_TYPE_DEFINITION?Te.DirectiveLocation.INPUT_FIELD_DEFINITION:Te.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,ra.invariant)(!1,"Unexpected kind: "+(0,Ub.inspect)(r.kind))}}function Yb(e){switch(e){case na.OperationTypeNode.QUERY:return Te.DirectiveLocation.QUERY;case na.OperationTypeNode.MUTATION:return Te.DirectiveLocation.MUTATION;case na.OperationTypeNode.SUBSCRIPTION:return Te.DirectiveLocation.SUBSCRIPTION}}});var sa=y(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.KnownFragmentNamesRule=Jb;var Hb=P();function Jb(e){return{FragmentSpread(r){let n=r.name.value;e.getFragment(n)||e.reportError(new Hb.GraphQLError(`Unknown fragment "${n}".`,{nodes:r.name}))}}}});var ca=y(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.KnownTypeNamesRule=r0;var Wb=wr(),Xb=Fr(),zb=P(),aa=tn(),Zb=Ve(),e0=lr();function r0(e){let r=e.getSchema(),n=r?r.getTypeMap():Object.create(null),t=Object.create(null);for(let o of e.getDocument().definitions)(0,aa.isTypeDefinitionNode)(o)&&(t[o.name.value]=!0);let i=[...Object.keys(n),...Object.keys(t)];return{NamedType(o,s,a,u,c){let l=o.name.value;if(!n[l]&&!t[l]){var p;let f=(p=c[2])!==null&&p!==void 0?p:a,m=f!=null&&n0(f);if(m&&Ef.includes(l))return;let h=(0,Xb.suggestionList)(l,m?Ef.concat(i):i);e.reportError(new zb.GraphQLError(`Unknown type "${l}".`+(0,Wb.didYouMean)(h),{nodes:o}))}}}}var Ef=[...e0.specifiedScalarTypes,...Zb.introspectionTypes].map(e=>e.name);function n0(e){return"kind"in e&&((0,aa.isTypeSystemDefinitionNode)(e)||(0,aa.isTypeSystemExtensionNode)(e))}});var pa=y(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.LoneAnonymousOperationRule=o0;var t0=P(),i0=V();function o0(e){let r=0;return{Document(n){r=n.definitions.filter(t=>t.kind===i0.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&r>1&&e.reportError(new t0.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var da=y(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.LoneSchemaDefinitionRule=s0;var _f=P();function s0(e){var r,n,t;let i=e.getSchema(),o=(r=(n=(t=i?.astNode)!==null&&t!==void 0?t:i?.getQueryType())!==null&&n!==void 0?n:i?.getMutationType())!==null&&r!==void 0?r:i?.getSubscriptionType(),s=0;return{SchemaDefinition(a){if(o){e.reportError(new _f.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new _f.GraphQLError("Must provide only one schema definition.",{nodes:a})),++s}}}});var ha=y(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.MaxIntrospectionDepthRule=c0;var a0=P(),Of=V(),u0=3;function c0(e){function r(n,t=Object.create(null),i=0){if(n.kind===Of.Kind.FRAGMENT_SPREAD){let o=n.name.value;if(t[o]===!0)return!1;let s=e.getFragment(o);if(!s)return!1;try{return t[o]=!0,r(s,t,i)}finally{t[o]=void 0}}if(n.kind===Of.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=u0))return!0;if("selectionSet"in n&&n.selectionSet){for(let o of n.selectionSet.selections)if(r(o,t,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&r(n))return e.reportError(new a0.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var va=y(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.NoFragmentCyclesRule=p0;var l0=P();function p0(e){let r=Object.create(null),n=[],t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(r[o.name.value])return;let s=o.name.value;r[s]=!0;let a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){t[s]=n.length;for(let u of a){let c=u.name.value,l=t[c];if(n.push(u),l===void 0){let p=e.getFragment(c);p&&i(p)}else{let p=n.slice(l),f=p.slice(0,-1).map(m=>'"'+m.name.value+'"').join(", ");e.reportError(new l0.GraphQLError(`Cannot spread fragment "${c}" within itself`+(f!==""?` via ${f}.`:"."),{nodes:p}))}n.pop()}t[s]=void 0}}}});var ga=y(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.NoUndefinedVariablesRule=d0;var f0=P();function d0(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(n){let t=e.getRecursiveVariableUsages(n);for(let{node:i}of t){let o=i.name.value;r[o]!==!0&&e.reportError(new f0.GraphQLError(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){r[n.variable.name.value]=!0}}}});var Ea=y(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.NoUnusedFragmentsRule=h0;var m0=P();function h0(e){let r=[],n=[];return{OperationDefinition(t){return r.push(t),!1},FragmentDefinition(t){return n.push(t),!1},Document:{leave(){let t=Object.create(null);for(let i of r)for(let o of e.getRecursivelyReferencedFragments(i))t[o.name.value]=!0;for(let i of n){let o=i.name.value;t[o]!==!0&&e.reportError(new m0.GraphQLError(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}});var Oa=y(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.NoUnusedVariablesRule=v0;var y0=P();function v0(e){let r=[];return{OperationDefinition:{enter(){r=[]},leave(n){let t=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:o}of i)t[o.name.value]=!0;for(let o of r){let s=o.variable.name.value;t[s]!==!0&&e.reportError(new y0.GraphQLError(n.name?`Variable "$${s}" is never used in operation "${n.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(n){r.push(n)}}}});var La=y(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.sortValueNode=Na;var T0=et(),Or=V();function Na(e){switch(e.kind){case Or.Kind.OBJECT:return{...e,fields:g0(e.fields)};case Or.Kind.LIST:return{...e,values:e.values.map(Na)};case Or.Kind.INT:case Or.Kind.FLOAT:case Or.Kind.STRING:case Or.Kind.BOOLEAN:case Or.Kind.NULL:case Or.Kind.ENUM:case Or.Kind.VARIABLE:return e}}function g0(e){return e.map(r=>({...r,value:Na(r.value)})).sort((r,n)=>(0,T0.naturalCompare)(r.name.value,n.name.value))}});var wa=y(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.OverlappingFieldsCanBeMergedRule=O0;var Nf=J(),b0=P(),Sa=V(),E0=xe(),je=Q(),_0=La(),Lf=pr();function Sf(e){return Array.isArray(e)?e.map(([r,n])=>`subfields "${r}" conflict because `+Sf(n)).join(" and "):e}function O0(e){let r=new Qi,n=new Ra,t=new Map;return{SelectionSet(i){let o=N0(e,t,r,n,e.getParentType(),i);for(let[[s,a],u,c]of o){let l=Sf(a);e.reportError(new b0.GraphQLError(`Fields "${s}" conflict because ${l}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(c)}))}}}}function N0(e,r,n,t,i,o){let s=[],[a,u]=Vi(e,r,i,o);if(L0(e,s,r,n,t,a),u.length!==0)for(let c=0;c<u.length;c++){Mi(e,s,r,n,t,!1,a,u[c]);for(let l=c+1;l<u.length;l++)Gi(e,s,r,n,t,!1,u[c],u[l])}return s}function Mi(e,r,n,t,i,o,s,a){if(t.has(s,a,o))return;t.add(s,a,o);let u=e.getFragment(a);if(!u)return;let[c,l]=Aa(e,n,u);if(s!==c){ja(e,r,n,t,i,o,s,c);for(let p of l)Mi(e,r,n,t,i,o,s,p)}}function Gi(e,r,n,t,i,o,s,a){if(s===a||i.has(s,a,o))return;i.add(s,a,o);let u=e.getFragment(s),c=e.getFragment(a);if(!u||!c)return;let[l,p]=Aa(e,n,u),[f,m]=Aa(e,n,c);ja(e,r,n,t,i,o,l,f);for(let h of m)Gi(e,r,n,t,i,o,s,h);for(let h of p)Gi(e,r,n,t,i,o,h,a)}function I0(e,r,n,t,i,o,s,a,u){let c=[],[l,p]=Vi(e,r,o,s),[f,m]=Vi(e,r,a,u);ja(e,c,r,n,t,i,l,f);for(let h of m)Mi(e,c,r,n,t,i,l,h);for(let h of p)Mi(e,c,r,n,t,i,f,h);for(let h of p)for(let O of m)Gi(e,c,r,n,t,i,h,O);return c}function L0(e,r,n,t,i,o){for(let[s,a]of Object.entries(o))if(a.length>1)for(let u=0;u<a.length;u++)for(let c=u+1;c<a.length;c++){let l=Df(e,n,t,i,!1,s,a[u],a[c]);l&&r.push(l)}}function ja(e,r,n,t,i,o,s,a){for(let[u,c]of Object.entries(s)){let l=a[u];if(l)for(let p of c)for(let f of l){let m=Df(e,n,t,i,o,u,p,f);m&&r.push(m)}}}function Df(e,r,n,t,i,o,s,a){let[u,c,l]=s,[p,f,m]=a,h=i||u!==p&&(0,je.isObjectType)(u)&&(0,je.isObjectType)(p);if(!h){let ce=c.name.value,ie=f.name.value;if(ce!==ie)return[[o,`"${ce}" and "${ie}" are different fields`],[c],[f]];if(!S0(c,f))return[[o,"they have differing arguments"],[c],[f]]}let O=l?.type,j=m?.type;if(O&&j&&Da(O,j))return[[o,`they return conflicting types "${(0,Nf.inspect)(O)}" and "${(0,Nf.inspect)(j)}"`],[c],[f]];let C=c.selectionSet,A=f.selectionSet;if(C&&A){let ce=I0(e,r,n,t,h,(0,je.getNamedType)(O),C,(0,je.getNamedType)(j),A);return D0(ce,o,c,f)}}function S0(e,r){let n=e.arguments,t=r.arguments;if(n===void 0||n.length===0)return t===void 0||t.length===0;if(t===void 0||t.length===0||n.length!==t.length)return!1;let i=new Map(t.map(({name:o,value:s})=>[o.value,s]));return n.every(o=>{let s=o.value,a=i.get(o.name.value);return a===void 0?!1:If(s)===If(a)})}function If(e){return(0,E0.print)((0,_0.sortValueNode)(e))}function Da(e,r){return(0,je.isListType)(e)?(0,je.isListType)(r)?Da(e.ofType,r.ofType):!0:(0,je.isListType)(r)?!0:(0,je.isNonNullType)(e)?(0,je.isNonNullType)(r)?Da(e.ofType,r.ofType):!0:(0,je.isNonNullType)(r)?!0:(0,je.isLeafType)(e)||(0,je.isLeafType)(r)?e!==r:!1}function Vi(e,r,n,t){let i=r.get(t);if(i)return i;let o=Object.create(null),s=Object.create(null);Af(e,n,t,o,s);let a=[o,Object.keys(s)];return r.set(t,a),a}function Aa(e,r,n){let t=r.get(n.selectionSet);if(t)return t;let i=(0,Lf.typeFromAST)(e.getSchema(),n.typeCondition);return Vi(e,r,i,n.selectionSet)}function Af(e,r,n,t,i){for(let o of n.selections)switch(o.kind){case Sa.Kind.FIELD:{let s=o.name.value,a;((0,je.isObjectType)(r)||(0,je.isInterfaceType)(r))&&(a=r.getFields()[s]);let u=o.alias?o.alias.value:s;t[u]||(t[u]=[]),t[u].push([r,o,a]);break}case Sa.Kind.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case Sa.Kind.INLINE_FRAGMENT:{let s=o.typeCondition,a=s?(0,Lf.typeFromAST)(e.getSchema(),s):r;Af(e,a,o.selectionSet,t,i);break}}}function D0(e,r,n,t){if(e.length>0)return[[r,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[t,...e.map(([,,i])=>i).flat()]]}var Qi=class{constructor(){this._data=new Map}has(r,n,t){var i;let o=(i=this._data.get(r))===null||i===void 0?void 0:i.get(n);return o===void 0?!1:t?!0:t===o}add(r,n,t){let i=this._data.get(r);i===void 0?this._data.set(r,new Map([[n,t]])):i.set(n,t)}},Ra=class{constructor(){this._orderedPairSet=new Qi}has(r,n,t){return r<n?this._orderedPairSet.has(r,n,t):this._orderedPairSet.has(n,r,t)}add(r,n,t){r<n?this._orderedPairSet.add(r,n,t):this._orderedPairSet.add(n,r,t)}}});var ka=y(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.PossibleFragmentSpreadsRule=R0;var Ui=J(),Rf=P(),xa=Q(),jf=st(),A0=pr();function R0(e){return{InlineFragment(r){let n=e.getType(),t=e.getParentType();if((0,xa.isCompositeType)(n)&&(0,xa.isCompositeType)(t)&&!(0,jf.doTypesOverlap)(e.getSchema(),n,t)){let i=(0,Ui.inspect)(t),o=(0,Ui.inspect)(n);e.reportError(new Rf.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:r}))}},FragmentSpread(r){let n=r.name.value,t=j0(e,n),i=e.getParentType();if(t&&i&&!(0,jf.doTypesOverlap)(e.getSchema(),t,i)){let o=(0,Ui.inspect)(i),s=(0,Ui.inspect)(t);e.reportError(new Rf.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:r}))}}}}function j0(e,r){let n=e.getFragment(r);if(n){let t=(0,A0.typeFromAST)(e.getSchema(),n.typeCondition);if((0,xa.isCompositeType)(t))return t}}});var qa=y(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.PossibleTypeExtensionsRule=F0;var P0=wr(),wf=J(),xf=Oe(),w0=Fr(),Pf=P(),ne=V(),x0=tn(),Sn=Q();function F0(e){let r=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,x0.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:t,ObjectTypeExtension:t,InterfaceTypeExtension:t,UnionTypeExtension:t,EnumTypeExtension:t,InputObjectTypeExtension:t};function t(i){let o=i.name.value,s=n[o],a=r?.getType(o),u;if(s?u=k0[s.kind]:a&&(u=C0(a)),u){if(u!==i.kind){let c=q0(i.kind);e.reportError(new Pf.GraphQLError(`Cannot extend non-${c} type "${o}".`,{nodes:s?[s,i]:i}))}}else{let c=Object.keys({...n,...r?.getTypeMap()}),l=(0,w0.suggestionList)(o,c);e.reportError(new Pf.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,P0.didYouMean)(l),{nodes:i.name}))}}}var k0={[ne.Kind.SCALAR_TYPE_DEFINITION]:ne.Kind.SCALAR_TYPE_EXTENSION,[ne.Kind.OBJECT_TYPE_DEFINITION]:ne.Kind.OBJECT_TYPE_EXTENSION,[ne.Kind.INTERFACE_TYPE_DEFINITION]:ne.Kind.INTERFACE_TYPE_EXTENSION,[ne.Kind.UNION_TYPE_DEFINITION]:ne.Kind.UNION_TYPE_EXTENSION,[ne.Kind.ENUM_TYPE_DEFINITION]:ne.Kind.ENUM_TYPE_EXTENSION,[ne.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ne.Kind.INPUT_OBJECT_TYPE_EXTENSION};function C0(e){if((0,Sn.isScalarType)(e))return ne.Kind.SCALAR_TYPE_EXTENSION;if((0,Sn.isObjectType)(e))return ne.Kind.OBJECT_TYPE_EXTENSION;if((0,Sn.isInterfaceType)(e))return ne.Kind.INTERFACE_TYPE_EXTENSION;if((0,Sn.isUnionType)(e))return ne.Kind.UNION_TYPE_EXTENSION;if((0,Sn.isEnumType)(e))return ne.Kind.ENUM_TYPE_EXTENSION;if((0,Sn.isInputObjectType)(e))return ne.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,xf.invariant)(!1,"Unexpected type: "+(0,wf.inspect)(e))}function q0(e){switch(e){case ne.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case ne.Kind.OBJECT_TYPE_EXTENSION:return"object";case ne.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case ne.Kind.UNION_TYPE_EXTENSION:return"union";case ne.Kind.ENUM_TYPE_EXTENSION:return"enum";case ne.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,xf.invariant)(!1,"Unexpected kind: "+(0,wf.inspect)(e))}}});var Ga=y($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.ProvidedRequiredArgumentsOnDirectivesRule=Mf;$i.ProvidedRequiredArgumentsRule=V0;var kf=J(),Ff=xr(),Cf=P(),qf=V(),M0=xe(),Ma=Q(),G0=Re();function V0(e){return{...Mf(e),Field:{leave(r){var n;let t=e.getFieldDef();if(!t)return!1;let i=new Set((n=r.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(let o of t.args)if(!i.has(o.name)&&(0,Ma.isRequiredArgument)(o)){let s=(0,kf.inspect)(o.type);e.reportError(new Cf.GraphQLError(`Field "${t.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:r}))}}}}}function Mf(e){var r;let n=Object.create(null),t=e.getSchema(),i=(r=t?.getDirectives())!==null&&r!==void 0?r:G0.specifiedDirectives;for(let a of i)n[a.name]=(0,Ff.keyMap)(a.args.filter(Ma.isRequiredArgument),u=>u.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===qf.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];n[a.name.value]=(0,Ff.keyMap)(u.filter(Q0),c=>c.name.value)}return{Directive:{leave(a){let u=a.name.value,c=n[u];if(c){var l;let p=(l=a.arguments)!==null&&l!==void 0?l:[],f=new Set(p.map(m=>m.name.value));for(let[m,h]of Object.entries(c))if(!f.has(m)){let O=(0,Ma.isType)(h.type)?(0,kf.inspect)(h.type):(0,M0.print)(h.type);e.reportError(new Cf.GraphQLError(`Directive "@${u}" argument "${m}" of type "${O}" is required, but it was not provided.`,{nodes:a}))}}}}}}function Q0(e){return e.type.kind===qf.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var $a=y(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.ScalarLeafsRule=U0;var Va=J(),Qa=P(),Gf=Q();function U0(e){return{Field(r){let n=e.getType(),t=r.selectionSet;if(n)if((0,Gf.isLeafType)((0,Gf.getNamedType)(n))){if(t){let i=r.name.value,o=(0,Va.inspect)(n);e.reportError(new Qa.GraphQLError(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:t}))}}else if(t){if(t.selections.length===0){let i=r.name.value,o=(0,Va.inspect)(n);e.reportError(new Qa.GraphQLError(`Field "${i}" of type "${o}" must have at least one field selected.`,{nodes:r}))}}else{let i=r.name.value,o=(0,Va.inspect)(n);e.reportError(new Qa.GraphQLError(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:r}))}}}}});var Ba=y(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.printPathArray=$0;function $0(e){return e.map(r=>typeof r=="number"?"["+r.toString()+"]":"."+r).join("")}});var gt=y(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.addPath=K0;Ki.pathToArray=B0;function K0(e,r,n){return{prev:e,key:r,typename:n}}function B0(e){let r=[],n=e;for(;n;)r.push(n.key),n=n.prev;return r.reverse()}});var Ha=y(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.coerceInputValue=Z0;var Y0=wr(),Bi=J(),H0=Oe(),J0=wi(),W0=sr(),er=gt(),X0=Ba(),z0=Fr(),Nr=P(),bt=Q();function Z0(e,r,n=eE){return Et(e,r,n,void 0)}function eE(e,r,n){let t="Invalid value "+(0,Bi.inspect)(r);throw e.length>0&&(t+=` at "value${(0,X0.printPathArray)(e)}"`),n.message=t+": "+n.message,n}function Et(e,r,n,t){if((0,bt.isNonNullType)(r)){if(e!=null)return Et(e,r.ofType,n,t);n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Expected non-nullable type "${(0,Bi.inspect)(r)}" not to be null.`));return}if(e==null)return null;if((0,bt.isListType)(r)){let i=r.ofType;return(0,J0.isIterableObject)(e)?Array.from(e,(o,s)=>{let a=(0,er.addPath)(t,s,void 0);return Et(o,i,n,a)}):[Et(e,i,n,t)]}if((0,bt.isInputObjectType)(r)){if(!(0,W0.isObjectLike)(e)||Array.isArray(e)){n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Expected type "${r.name}" to be an object.`));return}let i={},o=r.getFields();for(let s of Object.values(o)){let a=e[s.name];if(a===void 0){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if((0,bt.isNonNullType)(s.type)){let u=(0,Bi.inspect)(s.type);n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Field "${s.name}" of required type "${u}" was not provided.`))}continue}i[s.name]=Et(a,s.type,n,(0,er.addPath)(t,s.name,r.name))}for(let s of Object.keys(e))if(!o[s]){let a=(0,z0.suggestionList)(s,Object.keys(r.getFields()));n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Field "${s}" is not defined by type "${r.name}".`+(0,Y0.didYouMean)(a)))}if(r.isOneOf){let s=Object.keys(i);s.length!==1&&n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Exactly one key must be specified for OneOf type "${r.name}".`));let a=s[0],u=i[a];u===null&&n((0,er.pathToArray)(t).concat(a),u,new Nr.GraphQLError(`Field "${a}" must be non-null.`))}return i}if((0,bt.isLeafType)(r)){let i;try{i=r.parseValue(e)}catch(o){o instanceof Nr.GraphQLError?n((0,er.pathToArray)(t),e,o):n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Expected type "${r.name}". `+o.message,{originalError:o}));return}return i===void 0&&n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Expected type "${r.name}".`)),i}(0,H0.invariant)(!1,"Unexpected input type: "+(0,Bi.inspect)(r))}});var Ot=y(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.valueFromAST=_t;var rE=J(),nE=Oe(),tE=xr(),Dn=V(),on=Q();function _t(e,r,n){if(e){if(e.kind===Dn.Kind.VARIABLE){let t=e.name.value;if(n==null||n[t]===void 0)return;let i=n[t];return i===null&&(0,on.isNonNullType)(r)?void 0:i}if((0,on.isNonNullType)(r))return e.kind===Dn.Kind.NULL?void 0:_t(e,r.ofType,n);if(e.kind===Dn.Kind.NULL)return null;if((0,on.isListType)(r)){let t=r.ofType;if(e.kind===Dn.Kind.LIST){let o=[];for(let s of e.values)if(Vf(s,n)){if((0,on.isNonNullType)(t))return;o.push(null)}else{let a=_t(s,t,n);if(a===void 0)return;o.push(a)}return o}let i=_t(e,t,n);return i===void 0?void 0:[i]}if((0,on.isInputObjectType)(r)){if(e.kind!==Dn.Kind.OBJECT)return;let t=Object.create(null),i=(0,tE.keyMap)(e.fields,o=>o.name.value);for(let o of Object.values(r.getFields())){let s=i[o.name];if(!s||Vf(s.value,n)){if(o.defaultValue!==void 0)t[o.name]=o.defaultValue;else if((0,on.isNonNullType)(o.type))return;continue}let a=_t(s.value,o.type,n);if(a===void 0)return;t[o.name]=a}if(r.isOneOf){let o=Object.keys(t);if(o.length!==1||t[o[0]]===null)return}return t}if((0,on.isLeafType)(r)){let t;try{t=r.parseLiteral(e,n)}catch{return}return t===void 0?void 0:t}(0,nE.invariant)(!1,"Unexpected input type: "+(0,rE.inspect)(r))}}function Vf(e,r){return e.kind===Dn.Kind.VARIABLE&&(r==null||r[e.name.value]===void 0)}});var jn=y(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getArgumentValues=Kf;Nt.getDirectiveValues=lE;Nt.getVariableValues=uE;var An=J(),iE=xr(),oE=Ba(),Ir=P(),Qf=V(),Uf=xe(),Rn=Q(),sE=Ha(),aE=pr(),$f=Ot();function uE(e,r,n,t){let i=[],o=t?.maxErrors;try{let s=cE(e,r,n,a=>{if(o!=null&&i.length>=o)throw new Ir.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function cE(e,r,n,t){let i={};for(let o of r){let s=o.variable.name.value,a=(0,aE.typeFromAST)(e,o.type);if(!(0,Rn.isInputType)(a)){let c=(0,Uf.print)(o.type);t(new Ir.GraphQLError(`Variable "$${s}" expected value of type "${c}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!Bf(n,s)){if(o.defaultValue)i[s]=(0,$f.valueFromAST)(o.defaultValue,a);else if((0,Rn.isNonNullType)(a)){let c=(0,An.inspect)(a);t(new Ir.GraphQLError(`Variable "$${s}" of required type "${c}" was not provided.`,{nodes:o}))}continue}let u=n[s];if(u===null&&(0,Rn.isNonNullType)(a)){let c=(0,An.inspect)(a);t(new Ir.GraphQLError(`Variable "$${s}" of non-null type "${c}" must not be null.`,{nodes:o}));continue}i[s]=(0,sE.coerceInputValue)(u,a,(c,l,p)=>{let f=`Variable "$${s}" got invalid value `+(0,An.inspect)(l);c.length>0&&(f+=` at "${s}${(0,oE.printPathArray)(c)}"`),t(new Ir.GraphQLError(f+"; "+p.message,{nodes:o,originalError:p}))})}return i}function Kf(e,r,n){var t;let i={},o=(t=r.arguments)!==null&&t!==void 0?t:[],s=(0,iE.keyMap)(o,a=>a.name.value);for(let a of e.args){let u=a.name,c=a.type,l=s[u];if(!l){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,Rn.isNonNullType)(c))throw new Ir.GraphQLError(`Argument "${u}" of required type "${(0,An.inspect)(c)}" was not provided.`,{nodes:r});continue}let p=l.value,f=p.kind===Qf.Kind.NULL;if(p.kind===Qf.Kind.VARIABLE){let h=p.name.value;if(n==null||!Bf(n,h)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,Rn.isNonNullType)(c))throw new Ir.GraphQLError(`Argument "${u}" of required type "${(0,An.inspect)(c)}" was provided the variable "$${h}" which was not provided a runtime value.`,{nodes:p});continue}f=n[h]==null}if(f&&(0,Rn.isNonNullType)(c))throw new Ir.GraphQLError(`Argument "${u}" of non-null type "${(0,An.inspect)(c)}" must not be null.`,{nodes:p});let m=(0,$f.valueFromAST)(p,c,n);if(m===void 0)throw new Ir.GraphQLError(`Argument "${u}" has invalid value ${(0,Uf.print)(p)}.`,{nodes:p});i[u]=m}return i}function lE(e,r,n){var t;let i=(t=r.directives)===null||t===void 0?void 0:t.find(o=>o.name.value===e.name);if(i)return Kf(e,i,n)}function Bf(e,r){return Object.prototype.hasOwnProperty.call(e,r)}});var Ji=y(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.collectFields=dE;Hi.collectSubfields=mE;var Wa=V(),pE=Q(),Yf=Re(),fE=pr(),Hf=jn();function dE(e,r,n,t,i){let o=new Map;return Yi(e,r,n,t,i,o,new Set),o}function mE(e,r,n,t,i){let o=new Map,s=new Set;for(let a of i)a.selectionSet&&Yi(e,r,n,t,a.selectionSet,o,s);return o}function Yi(e,r,n,t,i,o,s){for(let a of i.selections)switch(a.kind){case Wa.Kind.FIELD:{if(!Xa(n,a))continue;let u=hE(a),c=o.get(u);c!==void 0?c.push(a):o.set(u,[a]);break}case Wa.Kind.INLINE_FRAGMENT:{if(!Xa(n,a)||!Jf(e,a,t))continue;Yi(e,r,n,t,a.selectionSet,o,s);break}case Wa.Kind.FRAGMENT_SPREAD:{let u=a.name.value;if(s.has(u)||!Xa(n,a))continue;s.add(u);let c=r[u];if(!c||!Jf(e,c,t))continue;Yi(e,r,n,t,c.selectionSet,o,s);break}}}function Xa(e,r){let n=(0,Hf.getDirectiveValues)(Yf.GraphQLSkipDirective,r,e);if(n?.if===!0)return!1;let t=(0,Hf.getDirectiveValues)(Yf.GraphQLIncludeDirective,r,e);return t?.if!==!1}function Jf(e,r,n){let t=r.typeCondition;if(!t)return!0;let i=(0,fE.typeFromAST)(e,t);return i===n?!0:(0,pE.isAbstractType)(i)?e.isSubType(i,n):!1}function hE(e){return e.alias?e.alias.value:e.name.value}});var Za=y(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.SingleFieldSubscriptionsRule=TE;var Wf=P(),yE=V(),vE=Ji();function TE(e){return{OperationDefinition(r){if(r.operation==="subscription"){let n=e.getSchema(),t=n.getSubscriptionType();if(t){let i=r.name?r.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(let c of s.definitions)c.kind===yE.Kind.FRAGMENT_DEFINITION&&(a[c.name.value]=c);let u=(0,vE.collectFields)(n,a,o,t,r.selectionSet);if(u.size>1){let p=[...u.values()].slice(1).flat();e.reportError(new Wf.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:p}))}for(let c of u.values())c[0].name.value.startsWith("__")&&e.reportError(new Wf.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}});var Wi=y(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.groupBy=gE;function gE(e,r){let n=new Map;for(let t of e){let i=r(t),o=n.get(i);o===void 0?n.set(i,[t]):o.push(t)}return n}});var nu=y(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.UniqueArgumentDefinitionNamesRule=_E;var bE=Wi(),EE=P();function _E(e){return{DirectiveDefinition(t){var i;let o=(i=t.arguments)!==null&&i!==void 0?i:[];return n(`@${t.name.value}`,o)},InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(t){var i;let o=t.name.value,s=(i=t.fields)!==null&&i!==void 0?i:[];for(let u of s){var a;let c=u.name.value,l=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${o}.${c}`,l)}return!1}function n(t,i){let o=(0,bE.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new EE.GraphQLError(`Argument "${t}(${s}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}});var iu=y(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.UniqueArgumentNamesRule=IE;var OE=Wi(),NE=P();function IE(e){return{Field:r,Directive:r};function r(n){var t;let i=(t=n.arguments)!==null&&t!==void 0?t:[],o=(0,OE.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new NE.GraphQLError(`There can be only one argument named "${s}".`,{nodes:a.map(u=>u.name)}))}}});var su=y(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.UniqueDirectiveNamesRule=LE;var Xf=P();function LE(e){let r=Object.create(null),n=e.getSchema();return{DirectiveDefinition(t){let i=t.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new Xf.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:t.name}));return}return r[i]?e.reportError(new Xf.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[r[i],t.name]})):r[i]=t.name,!1}}}});var cu=y(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.UniqueDirectivesPerLocationRule=AE;var SE=P(),au=V(),zf=tn(),DE=Re();function AE(e){let r=Object.create(null),n=e.getSchema(),t=n?n.getDirectives():DE.specifiedDirectives;for(let a of t)r[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===au.Kind.DIRECTIVE_DEFINITION&&(r[a.name.value]=!a.repeatable);let o=Object.create(null),s=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===au.Kind.SCHEMA_DEFINITION||a.kind===au.Kind.SCHEMA_EXTENSION)u=o;else if((0,zf.isTypeDefinitionNode)(a)||(0,zf.isTypeExtensionNode)(a)){let c=a.name.value;u=s[c],u===void 0&&(s[c]=u=Object.create(null))}else u=Object.create(null);for(let c of a.directives){let l=c.name.value;r[l]&&(u[l]?e.reportError(new SE.GraphQLError(`The directive "@${l}" can only be used once at this location.`,{nodes:[u[l],c]})):u[l]=c)}}}}});var pu=y(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.UniqueEnumValueNamesRule=jE;var Zf=P(),RE=Q();function jE(e){let r=e.getSchema(),n=r?r.getTypeMap():Object.create(null),t=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;let a=o.name.value;t[a]||(t[a]=Object.create(null));let u=(s=o.values)!==null&&s!==void 0?s:[],c=t[a];for(let l of u){let p=l.name.value,f=n[a];(0,RE.isEnumType)(f)&&f.getValue(p)?e.reportError(new Zf.GraphQLError(`Enum value "${a}.${p}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[p]?e.reportError(new Zf.GraphQLError(`Enum value "${a}.${p}" can only be defined once.`,{nodes:[c[p],l.name]})):c[p]=l.name}return!1}}});var mu=y(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.UniqueFieldDefinitionNamesRule=PE;var ed=P(),fu=Q();function PE(e){let r=e.getSchema(),n=r?r.getTypeMap():Object.create(null),t=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var s;let a=o.name.value;t[a]||(t[a]=Object.create(null));let u=(s=o.fields)!==null&&s!==void 0?s:[],c=t[a];for(let l of u){let p=l.name.value;wE(n[a],p)?e.reportError(new ed.GraphQLError(`Field "${a}.${p}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[p]?e.reportError(new ed.GraphQLError(`Field "${a}.${p}" can only be defined once.`,{nodes:[c[p],l.name]})):c[p]=l.name}return!1}}function wE(e,r){return(0,fu.isObjectType)(e)||(0,fu.isInterfaceType)(e)||(0,fu.isInputObjectType)(e)?e.getFields()[r]!=null:!1}});var yu=y(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.UniqueFragmentNamesRule=FE;var xE=P();function FE(e){let r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let t=n.name.value;return r[t]?e.reportError(new xE.GraphQLError(`There can be only one fragment named "${t}".`,{nodes:[r[t],n.name]})):r[t]=n.name,!1}}}});var Tu=y(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.UniqueInputFieldNamesRule=qE;var kE=Oe(),CE=P();function qE(e){let r=[],n=Object.create(null);return{ObjectValue:{enter(){r.push(n),n=Object.create(null)},leave(){let t=r.pop();t||(0,kE.invariant)(!1),n=t}},ObjectField(t){let i=t.name.value;n[i]?e.reportError(new CE.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],t.name]})):n[i]=t.name}}}});var bu=y(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.UniqueOperationNamesRule=GE;var ME=P();function GE(e){let r=Object.create(null);return{OperationDefinition(n){let t=n.name;return t&&(r[t.value]?e.reportError(new ME.GraphQLError(`There can be only one operation named "${t.value}".`,{nodes:[r[t.value],t]})):r[t.value]=t),!1},FragmentDefinition:()=>!1}}});var _u=y(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.UniqueOperationTypesRule=VE;var rd=P();function VE(e){let r=e.getSchema(),n=Object.create(null),t=r?{query:r.getQueryType(),mutation:r.getMutationType(),subscription:r.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){var s;let a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(let u of a){let c=u.operation,l=n[c];t[c]?e.reportError(new rd.GraphQLError(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:u})):l?e.reportError(new rd.GraphQLError(`There can be only one ${c} type in schema.`,{nodes:[l,u]})):n[c]=u}return!1}}});var Nu=y(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.UniqueTypeNamesRule=QE;var nd=P();function QE(e){let r=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:t,ObjectTypeDefinition:t,InterfaceTypeDefinition:t,UnionTypeDefinition:t,EnumTypeDefinition:t,InputObjectTypeDefinition:t};function t(i){let o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new nd.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return r[o]?e.reportError(new nd.GraphQLError(`There can be only one type named "${o}".`,{nodes:[r[o],i.name]})):r[o]=i.name,!1}}});var Lu=y(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.UniqueVariableNamesRule=KE;var UE=Wi(),$E=P();function KE(e){return{OperationDefinition(r){var n;let t=(n=r.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,UE.groupBy)(t,o=>o.variable.name.value);for(let[o,s]of i)s.length>1&&e.reportError(new $E.GraphQLError(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}});var Au=y(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.ValuesOfCorrectTypeRule=JE;var BE=wr(),It=J(),YE=xr(),HE=Fr(),dr=P(),Su=V(),Xi=xe(),fr=Q();function JE(e){let r={};return{OperationDefinition:{enter(){r={}}},VariableDefinition(n){r[n.variable.name.value]=n},ListValue(n){let t=(0,fr.getNullableType)(e.getParentInputType());if(!(0,fr.isListType)(t))return sn(e,n),!1},ObjectValue(n){let t=(0,fr.getNamedType)(e.getInputType());if(!(0,fr.isInputObjectType)(t))return sn(e,n),!1;let i=(0,YE.keyMap)(n.fields,o=>o.name.value);for(let o of Object.values(t.getFields()))if(!i[o.name]&&(0,fr.isRequiredInputField)(o)){let a=(0,It.inspect)(o.type);e.reportError(new dr.GraphQLError(`Field "${t.name}.${o.name}" of required type "${a}" was not provided.`,{nodes:n}))}t.isOneOf&&WE(e,n,t,i,r)},ObjectField(n){let t=(0,fr.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,fr.isInputObjectType)(t)){let o=(0,HE.suggestionList)(n.name.value,Object.keys(t.getFields()));e.reportError(new dr.GraphQLError(`Field "${n.name.value}" is not defined by type "${t.name}".`+(0,BE.didYouMean)(o),{nodes:n}))}},NullValue(n){let t=e.getInputType();(0,fr.isNonNullType)(t)&&e.reportError(new dr.GraphQLError(`Expected value of type "${(0,It.inspect)(t)}", found ${(0,Xi.print)(n)}.`,{nodes:n}))},EnumValue:n=>sn(e,n),IntValue:n=>sn(e,n),FloatValue:n=>sn(e,n),StringValue:n=>sn(e,n),BooleanValue:n=>sn(e,n)}}function sn(e,r){let n=e.getInputType();if(!n)return;let t=(0,fr.getNamedType)(n);if(!(0,fr.isLeafType)(t)){let i=(0,It.inspect)(n);e.reportError(new dr.GraphQLError(`Expected value of type "${i}", found ${(0,Xi.print)(r)}.`,{nodes:r}));return}try{if(t.parseLiteral(r,void 0)===void 0){let o=(0,It.inspect)(n);e.reportError(new dr.GraphQLError(`Expected value of type "${o}", found ${(0,Xi.print)(r)}.`,{nodes:r}))}}catch(i){let o=(0,It.inspect)(n);i instanceof dr.GraphQLError?e.reportError(i):e.reportError(new dr.GraphQLError(`Expected value of type "${o}", found ${(0,Xi.print)(r)}; `+i.message,{nodes:r,originalError:i}))}}function WE(e,r,n,t,i){var o;let s=Object.keys(t);if(s.length!==1){e.reportError(new dr.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[r]}));return}let u=(o=t[s[0]])===null||o===void 0?void 0:o.value,c=!u||u.kind===Su.Kind.NULL,l=u?.kind===Su.Kind.VARIABLE;if(c){e.reportError(new dr.GraphQLError(`Field "${n.name}.${s[0]}" must be non-null.`,{nodes:[r]}));return}if(l){let p=u.name.value;i[p].type.kind!==Su.Kind.NON_NULL_TYPE&&e.reportError(new dr.GraphQLError(`Variable "${p}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[r]}))}}});var ju=y(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.VariablesAreInputTypesRule=r_;var XE=P(),zE=xe(),ZE=Q(),e_=pr();function r_(e){return{VariableDefinition(r){let n=(0,e_.typeFromAST)(e.getSchema(),r.type);if(n!==void 0&&!(0,ZE.isInputType)(n)){let t=r.variable.name.value,i=(0,zE.print)(r.type);e.reportError(new XE.GraphQLError(`Variable "$${t}" cannot be non-input type "${i}".`,{nodes:r.type}))}}}}});var wu=y(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.VariablesInAllowedPositionRule=i_;var td=J(),id=P(),n_=V(),zi=Q(),od=st(),t_=pr();function i_(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(n){let t=e.getRecursiveVariableUsages(n);for(let{node:i,type:o,defaultValue:s,parentType:a}of t){let u=i.name.value,c=r[u];if(c&&o){let l=e.getSchema(),p=(0,t_.typeFromAST)(l,c.type);if(p&&!o_(l,p,c.defaultValue,o,s)){let f=(0,td.inspect)(p),m=(0,td.inspect)(o);e.reportError(new id.GraphQLError(`Variable "$${u}" of type "${f}" used in position expecting type "${m}".`,{nodes:[c,i]}))}(0,zi.isInputObjectType)(a)&&a.isOneOf&&(0,zi.isNullableType)(p)&&e.reportError(new id.GraphQLError(`Variable "$${u}" is of type "${p}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[c,i]}))}}}},VariableDefinition(n){r[n.variable.name.value]=n}}}function o_(e,r,n,t,i){if((0,zi.isNonNullType)(t)&&!(0,zi.isNonNullType)(r)){if(!(n!=null&&n.kind!==n_.Kind.NULL)&&!(i!==void 0))return!1;let a=t.ofType;return(0,od.isTypeSubTypeOf)(e,r,a)}return(0,od.isTypeSubTypeOf)(e,r,t)}});var xu=y(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.specifiedSDLRules=Mr.specifiedRules=Mr.recommendedRules=void 0;var s_=Js(),a_=Xs(),u_=Zs(),sd=ea(),ad=ia(),c_=sa(),ud=ca(),l_=pa(),p_=da(),f_=ha(),d_=va(),m_=ga(),h_=Ea(),y_=Oa(),v_=wa(),T_=ka(),g_=qa(),cd=Ga(),b_=$a(),E_=Za(),__=nu(),ld=iu(),O_=su(),pd=cu(),N_=pu(),I_=mu(),L_=yu(),fd=Tu(),S_=bu(),D_=_u(),A_=Nu(),R_=Lu(),j_=Au(),P_=ju(),w_=wu(),dd=Object.freeze([f_.MaxIntrospectionDepthRule]);Mr.recommendedRules=dd;var x_=Object.freeze([s_.ExecutableDefinitionsRule,S_.UniqueOperationNamesRule,l_.LoneAnonymousOperationRule,E_.SingleFieldSubscriptionsRule,ud.KnownTypeNamesRule,u_.FragmentsOnCompositeTypesRule,P_.VariablesAreInputTypesRule,b_.ScalarLeafsRule,a_.FieldsOnCorrectTypeRule,L_.UniqueFragmentNamesRule,c_.KnownFragmentNamesRule,h_.NoUnusedFragmentsRule,T_.PossibleFragmentSpreadsRule,d_.NoFragmentCyclesRule,R_.UniqueVariableNamesRule,m_.NoUndefinedVariablesRule,y_.NoUnusedVariablesRule,ad.KnownDirectivesRule,pd.UniqueDirectivesPerLocationRule,sd.KnownArgumentNamesRule,ld.UniqueArgumentNamesRule,j_.ValuesOfCorrectTypeRule,cd.ProvidedRequiredArgumentsRule,w_.VariablesInAllowedPositionRule,v_.OverlappingFieldsCanBeMergedRule,fd.UniqueInputFieldNamesRule,...dd]);Mr.specifiedRules=x_;var F_=Object.freeze([p_.LoneSchemaDefinitionRule,D_.UniqueOperationTypesRule,A_.UniqueTypeNamesRule,N_.UniqueEnumValueNamesRule,I_.UniqueFieldDefinitionNamesRule,__.UniqueArgumentDefinitionNamesRule,O_.UniqueDirectiveNamesRule,ud.KnownTypeNamesRule,ad.KnownDirectivesRule,pd.UniqueDirectivesPerLocationRule,g_.PossibleTypeExtensionsRule,sd.KnownArgumentNamesOnDirectivesRule,ld.UniqueArgumentNamesRule,fd.UniqueInputFieldNamesRule,cd.ProvidedRequiredArgumentsOnDirectivesRule]);Mr.specifiedSDLRules=F_});var Cu=y(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.ValidationContext=Gr.SDLValidationContext=Gr.ASTValidationContext=void 0;var md=V(),k_=Jr(),hd=Ci(),Lt=class{constructor(r,n){this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(r){this._onError(r)}getDocument(){return this._ast}getFragment(r){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let t of this.getDocument().definitions)t.kind===md.Kind.FRAGMENT_DEFINITION&&(n[t.name.value]=t);this._fragments=n}return n[r]}getFragmentSpreads(r){let n=this._fragmentSpreads.get(r);if(!n){n=[];let t=[r],i;for(;i=t.pop();)for(let o of i.selections)o.kind===md.Kind.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&t.push(o.selectionSet);this._fragmentSpreads.set(r,n)}return n}getRecursivelyReferencedFragments(r){let n=this._recursivelyReferencedFragments.get(r);if(!n){n=[];let t=Object.create(null),i=[r.selectionSet],o;for(;o=i.pop();)for(let s of this.getFragmentSpreads(o)){let a=s.name.value;if(t[a]!==!0){t[a]=!0;let u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(r,n)}return n}};Gr.ASTValidationContext=Lt;var Fu=class extends Lt{constructor(r,n,t){super(r,t),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Gr.SDLValidationContext=Fu;var ku=class extends Lt{constructor(r,n,t,i){super(n,i),this._schema=r,this._typeInfo=t,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(r){let n=this._variableUsages.get(r);if(!n){let t=[],i=new hd.TypeInfo(this._schema);(0,k_.visit)(r,(0,hd.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(o){t.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()})}})),n=t,this._variableUsages.set(r,n)}return n}getRecursiveVariableUsages(r){let n=this._recursiveVariableUsages.get(r);if(!n){n=this.getVariableUsages(r);for(let t of this.getRecursivelyReferencedFragments(r))n=n.concat(this.getVariableUsages(t));this._recursiveVariableUsages.set(r,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};Gr.ValidationContext=ku});var St=y(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.assertValidSDL=V_;Pn.assertValidSDLExtension=Q_;Pn.validate=G_;Pn.validateSDL=qu;var C_=Se(),q_=P(),Zi=Jr(),M_=yt(),yd=Ci(),vd=xu(),Td=Cu();function G_(e,r,n=vd.specifiedRules,t,i=new yd.TypeInfo(e)){var o;let s=(o=t?.maxErrors)!==null&&o!==void 0?o:100;r||(0,C_.devAssert)(!1,"Must provide document."),(0,M_.assertValidSchema)(e);let a=Object.freeze({}),u=[],c=new Td.ValidationContext(e,r,i,p=>{if(u.length>=s)throw u.push(new q_.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(p)}),l=(0,Zi.visitInParallel)(n.map(p=>p(c)));try{(0,Zi.visit)(r,(0,yd.visitWithTypeInfo)(i,l))}catch(p){if(p!==a)throw p}return u}function qu(e,r,n=vd.specifiedSDLRules){let t=[],i=new Td.SDLValidationContext(e,r,s=>{t.push(s)}),o=n.map(s=>s(i));return(0,Zi.visit)(e,(0,Zi.visitInParallel)(o)),t}function V_(e){let r=qu(e);if(r.length!==0)throw new Error(r.map(n=>n.message).join(`
54
+ `))}var Vs=class{constructor(r){this._errors=[],this.schema=r}reportError(r,n){let t=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new lb.GraphQLError(r,{nodes:t}))}getErrors(){return this._errors}};function mb(e){let r=e.schema,n=r.getQueryType();if(!n)e.reportError("Query root type must be provided.",r.astNode);else if(!(0,oe.isObjectType)(n)){var t;e.reportError(`Query root type must be Object type, it cannot be ${(0,Ie.inspect)(n)}.`,(t=Gs(r,Ms.OperationTypeNode.QUERY))!==null&&t!==void 0?t:n.astNode)}let i=r.getMutationType();if(i&&!(0,oe.isObjectType)(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,Ie.inspect)(i)}.`,(o=Gs(r,Ms.OperationTypeNode.MUTATION))!==null&&o!==void 0?o:i.astNode)}let s=r.getSubscriptionType();if(s&&!(0,oe.isObjectType)(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,Ie.inspect)(s)}.`,(a=Gs(r,Ms.OperationTypeNode.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function Gs(e,r){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(t=>{var i;return(i=t?.operationTypes)!==null&&i!==void 0?i:[]}).find(t=>t.operation===r))===null||n===void 0?void 0:n.type}function hb(e){for(let n of e.schema.getDirectives()){if(!(0,Zp.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,Ie.inspect)(n)}.`,n?.astNode);continue}nn(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(let t of n.args)if(nn(e,t),(0,oe.isInputType)(t.type)||e.reportError(`The type of @${n.name}(${t.name}:) must be Input Type but got: ${(0,Ie.inspect)(t.type)}.`,t.astNode),(0,oe.isRequiredArgument)(t)&&t.deprecationReason!=null){var r;e.reportError(`Required argument @${n.name}(${t.name}:) cannot be deprecated.`,[Qs(t.astNode),(r=t.astNode)===null||r===void 0?void 0:r.type])}}}function nn(e,r){r.name.startsWith("__")&&e.reportError(`Name "${r.name}" must not begin with "__", which is reserved by GraphQL introspection.`,r.astNode)}function yb(e){let r=Ob(e),n=e.schema.getTypeMap();for(let t of Object.values(n)){if(!(0,oe.isNamedType)(t)){e.reportError(`Expected GraphQL named type but got: ${(0,Ie.inspect)(t)}.`,t.astNode);continue}(0,pb.isIntrospectionType)(t)||nn(e,t),(0,oe.isObjectType)(t)||(0,oe.isInterfaceType)(t)?(Wp(e,t),Xp(e,t)):(0,oe.isUnionType)(t)?gb(e,t):(0,oe.isEnumType)(t)?bb(e,t):(0,oe.isInputObjectType)(t)&&(Eb(e,t),r(t))}}function Wp(e,r){let n=Object.values(r.getFields());n.length===0&&e.reportError(`Type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let s of n){if(nn(e,s),!(0,oe.isOutputType)(s.type)){var t;e.reportError(`The type of ${r.name}.${s.name} must be Output Type but got: ${(0,Ie.inspect)(s.type)}.`,(t=s.astNode)===null||t===void 0?void 0:t.type)}for(let a of s.args){let u=a.name;if(nn(e,a),!(0,oe.isInputType)(a.type)){var i;e.reportError(`The type of ${r.name}.${s.name}(${u}:) must be Input Type but got: ${(0,Ie.inspect)(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if((0,oe.isRequiredArgument)(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${r.name}.${s.name}(${u}:) cannot be deprecated.`,[Qs(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function Xp(e,r){let n=Object.create(null);for(let t of r.getInterfaces()){if(!(0,oe.isInterfaceType)(t)){e.reportError(`Type ${(0,Ie.inspect)(r)} must only implement Interface types, it cannot implement ${(0,Ie.inspect)(t)}.`,ht(r,t));continue}if(r===t){e.reportError(`Type ${r.name} cannot implement itself because it would create a circular reference.`,ht(r,t));continue}if(n[t.name]){e.reportError(`Type ${r.name} can only implement ${t.name} once.`,ht(r,t));continue}n[t.name]=!0,Tb(e,r,t),vb(e,r,t)}}function vb(e,r,n){let t=r.getFields();for(let u of Object.values(n.getFields())){let c=u.name,l=t[c];if(!l){e.reportError(`Interface field ${n.name}.${c} expected but ${r.name} does not provide it.`,[u.astNode,r.astNode,...r.extensionASTNodes]);continue}if(!(0,Jp.isTypeSubTypeOf)(e.schema,l.type,u.type)){var i,o;e.reportError(`Interface field ${n.name}.${c} expects type ${(0,Ie.inspect)(u.type)} but ${r.name}.${c} is type ${(0,Ie.inspect)(l.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(o=l.astNode)===null||o===void 0?void 0:o.type])}for(let p of u.args){let f=p.name,m=l.args.find(h=>h.name===f);if(!m){e.reportError(`Interface field argument ${n.name}.${c}(${f}:) expected but ${r.name}.${c} does not provide it.`,[p.astNode,l.astNode]);continue}if(!(0,Jp.isEqualType)(p.type,m.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${c}(${f}:) expects type ${(0,Ie.inspect)(p.type)} but ${r.name}.${c}(${f}:) is type ${(0,Ie.inspect)(m.type)}.`,[(s=p.astNode)===null||s===void 0?void 0:s.type,(a=m.astNode)===null||a===void 0?void 0:a.type])}}for(let p of l.args){let f=p.name;!u.args.find(h=>h.name===f)&&(0,oe.isRequiredArgument)(p)&&e.reportError(`Object field ${r.name}.${c} includes required argument ${f} that is missing from the Interface field ${n.name}.${c}.`,[p.astNode,u.astNode])}}}function Tb(e,r,n){let t=r.getInterfaces();for(let i of n.getInterfaces())t.includes(i)||e.reportError(i===r?`Type ${r.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${r.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...ht(n,i),...ht(r,n)])}function gb(e,r){let n=r.getTypes();n.length===0&&e.reportError(`Union type ${r.name} must define one or more member types.`,[r.astNode,...r.extensionASTNodes]);let t=Object.create(null);for(let i of n){if(t[i.name]){e.reportError(`Union type ${r.name} can only include type ${i.name} once.`,zp(r,i.name));continue}t[i.name]=!0,(0,oe.isObjectType)(i)||e.reportError(`Union type ${r.name} can only include Object types, it cannot include ${(0,Ie.inspect)(i)}.`,zp(r,String(i)))}}function bb(e,r){let n=r.getValues();n.length===0&&e.reportError(`Enum type ${r.name} must define one or more values.`,[r.astNode,...r.extensionASTNodes]);for(let t of n)nn(e,t)}function Eb(e,r){let n=Object.values(r.getFields());n.length===0&&e.reportError(`Input Object type ${r.name} must define one or more fields.`,[r.astNode,...r.extensionASTNodes]);for(let o of n){if(nn(e,o),!(0,oe.isInputType)(o.type)){var t;e.reportError(`The type of ${r.name}.${o.name} must be Input Type but got: ${(0,Ie.inspect)(o.type)}.`,(t=o.astNode)===null||t===void 0?void 0:t.type)}if((0,oe.isRequiredInputField)(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${r.name}.${o.name} cannot be deprecated.`,[Qs(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}r.isOneOf&&_b(r,o,e)}}function _b(e,r,n){if((0,oe.isNonNullType)(r.type)){var t;n.reportError(`OneOf input field ${e.name}.${r.name} must be nullable.`,(t=r.astNode)===null||t===void 0?void 0:t.type)}r.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${r.name} cannot have a default value.`,r.astNode)}function Ob(e){let r=Object.create(null),n=[],t=Object.create(null);return i;function i(o){if(r[o.name])return;r[o.name]=!0,t[o.name]=n.length;let s=Object.values(o.getFields());for(let a of s)if((0,oe.isNonNullType)(a.type)&&(0,oe.isInputObjectType)(a.type.ofType)){let u=a.type.ofType,c=t[u.name];if(n.push(a),c===void 0)i(u);else{let l=n.slice(c),p=l.map(f=>f.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${p}".`,l.map(f=>f.astNode))}n.pop()}t[o.name]=void 0}}function ht(e,r){let{astNode:n,extensionASTNodes:t}=e;return(n!=null?[n,...t]:t).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===r.name)}function zp(e,r){let{astNode:n,extensionASTNodes:t}=e;return(n!=null?[n,...t]:t).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===r)}function Qs(e){var r;return e==null||(r=e.directives)===null||r===void 0?void 0:r.find(n=>n.name.value===Zp.GraphQLDeprecatedDirective.name)}});var pr=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.typeFromAST=$s;var Us=V(),rf=Q();function $s(e,r){switch(r.kind){case Us.Kind.LIST_TYPE:{let n=$s(e,r.type);return n&&new rf.GraphQLList(n)}case Us.Kind.NON_NULL_TYPE:{let n=$s(e,r.type);return n&&new rf.GraphQLNonNull(n)}case Us.Kind.NAMED_TYPE:return e.getType(r.name.value)}}});var Ci=y(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.TypeInfo=void 0;vt.visitWithTypeInfo=Lb;var Nb=ar(),se=V(),nf=Jr(),ae=Q(),Ln=Ve(),tf=pr(),Bs=class{constructor(r,n,t){this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=t??Ib,n&&((0,ae.isInputType)(n)&&this._inputTypeStack.push(n),(0,ae.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,ae.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(r){let n=this._schema;switch(r.kind){case se.Kind.SELECTION_SET:{let i=(0,ae.getNamedType)(this.getType());this._parentTypeStack.push((0,ae.isCompositeType)(i)?i:void 0);break}case se.Kind.FIELD:{let i=this.getParentType(),o,s;i&&(o=this._getFieldDef(n,i,r),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push((0,ae.isOutputType)(s)?s:void 0);break}case se.Kind.DIRECTIVE:this._directive=n.getDirective(r.name.value);break;case se.Kind.OPERATION_DEFINITION:{let i=n.getRootType(r.operation);this._typeStack.push((0,ae.isObjectType)(i)?i:void 0);break}case se.Kind.INLINE_FRAGMENT:case se.Kind.FRAGMENT_DEFINITION:{let i=r.typeCondition,o=i?(0,tf.typeFromAST)(n,i):(0,ae.getNamedType)(this.getType());this._typeStack.push((0,ae.isOutputType)(o)?o:void 0);break}case se.Kind.VARIABLE_DEFINITION:{let i=(0,tf.typeFromAST)(n,r.type);this._inputTypeStack.push((0,ae.isInputType)(i)?i:void 0);break}case se.Kind.ARGUMENT:{var t;let i,o,s=(t=this.getDirective())!==null&&t!==void 0?t:this.getFieldDef();s&&(i=s.args.find(a=>a.name===r.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,ae.isInputType)(o)?o:void 0);break}case se.Kind.LIST:{let i=(0,ae.getNullableType)(this.getInputType()),o=(0,ae.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,ae.isInputType)(o)?o:void 0);break}case se.Kind.OBJECT_FIELD:{let i=(0,ae.getNamedType)(this.getInputType()),o,s;(0,ae.isInputObjectType)(i)&&(s=i.getFields()[r.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push((0,ae.isInputType)(o)?o:void 0);break}case se.Kind.ENUM:{let i=(0,ae.getNamedType)(this.getInputType()),o;(0,ae.isEnumType)(i)&&(o=i.getValue(r.value)),this._enumValue=o;break}default:}}leave(r){switch(r.kind){case se.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case se.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case se.Kind.DIRECTIVE:this._directive=null;break;case se.Kind.OPERATION_DEFINITION:case se.Kind.INLINE_FRAGMENT:case se.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case se.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case se.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case se.Kind.LIST:case se.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case se.Kind.ENUM:this._enumValue=null;break;default:}}};vt.TypeInfo=Bs;function Ib(e,r,n){let t=n.name.value;if(t===Ln.SchemaMetaFieldDef.name&&e.getQueryType()===r)return Ln.SchemaMetaFieldDef;if(t===Ln.TypeMetaFieldDef.name&&e.getQueryType()===r)return Ln.TypeMetaFieldDef;if(t===Ln.TypeNameMetaFieldDef.name&&(0,ae.isCompositeType)(r))return Ln.TypeNameMetaFieldDef;if((0,ae.isObjectType)(r)||(0,ae.isInterfaceType)(r))return r.getFields()[t]}function Lb(e,r){return{enter(...n){let t=n[0];e.enter(t);let i=(0,nf.getEnterLeaveForKind)(r,t.kind).enter;if(i){let o=i.apply(r,n);return o!==void 0&&(e.leave(t),(0,Nb.isNode)(o)&&e.enter(o)),o}},leave(...n){let t=n[0],i=(0,nf.getEnterLeaveForKind)(r,t.kind).leave,o;return i&&(o=i.apply(r,n)),e.leave(t),o}}}});var tn=y(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.isConstValueNode=Ys;Qe.isDefinitionNode=Sb;Qe.isExecutableDefinitionNode=of;Qe.isSelectionNode=Db;Qe.isTypeDefinitionNode=uf;Qe.isTypeExtensionNode=lf;Qe.isTypeNode=Ab;Qe.isTypeSystemDefinitionNode=af;Qe.isTypeSystemExtensionNode=cf;Qe.isValueNode=sf;var U=V();function Sb(e){return of(e)||af(e)||cf(e)}function of(e){return e.kind===U.Kind.OPERATION_DEFINITION||e.kind===U.Kind.FRAGMENT_DEFINITION}function Db(e){return e.kind===U.Kind.FIELD||e.kind===U.Kind.FRAGMENT_SPREAD||e.kind===U.Kind.INLINE_FRAGMENT}function sf(e){return e.kind===U.Kind.VARIABLE||e.kind===U.Kind.INT||e.kind===U.Kind.FLOAT||e.kind===U.Kind.STRING||e.kind===U.Kind.BOOLEAN||e.kind===U.Kind.NULL||e.kind===U.Kind.ENUM||e.kind===U.Kind.LIST||e.kind===U.Kind.OBJECT}function Ys(e){return sf(e)&&(e.kind===U.Kind.LIST?e.values.some(Ys):e.kind===U.Kind.OBJECT?e.fields.some(r=>Ys(r.value)):e.kind!==U.Kind.VARIABLE)}function Ab(e){return e.kind===U.Kind.NAMED_TYPE||e.kind===U.Kind.LIST_TYPE||e.kind===U.Kind.NON_NULL_TYPE}function af(e){return e.kind===U.Kind.SCHEMA_DEFINITION||uf(e)||e.kind===U.Kind.DIRECTIVE_DEFINITION}function uf(e){return e.kind===U.Kind.SCALAR_TYPE_DEFINITION||e.kind===U.Kind.OBJECT_TYPE_DEFINITION||e.kind===U.Kind.INTERFACE_TYPE_DEFINITION||e.kind===U.Kind.UNION_TYPE_DEFINITION||e.kind===U.Kind.ENUM_TYPE_DEFINITION||e.kind===U.Kind.INPUT_OBJECT_TYPE_DEFINITION}function cf(e){return e.kind===U.Kind.SCHEMA_EXTENSION||lf(e)}function lf(e){return e.kind===U.Kind.SCALAR_TYPE_EXTENSION||e.kind===U.Kind.OBJECT_TYPE_EXTENSION||e.kind===U.Kind.INTERFACE_TYPE_EXTENSION||e.kind===U.Kind.UNION_TYPE_EXTENSION||e.kind===U.Kind.ENUM_TYPE_EXTENSION||e.kind===U.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var Js=y(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.ExecutableDefinitionsRule=Pb;var Rb=P(),pf=V(),jb=tn();function Pb(e){return{Document(r){for(let n of r.definitions)if(!(0,jb.isExecutableDefinitionNode)(n)){let t=n.kind===pf.Kind.SCHEMA_DEFINITION||n.kind===pf.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new Rb.GraphQLError(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}});var Xs=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.FieldsOnCorrectTypeRule=kb;var ff=wr(),wb=et(),xb=Fr(),Fb=P(),Tt=Q();function kb(e){return{Field(r){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),o=r.name.value,s=(0,ff.didYouMean)("to use an inline fragment on",Cb(i,n,o));s===""&&(s=(0,ff.didYouMean)(qb(n,o))),e.reportError(new Fb.GraphQLError(`Cannot query field "${o}" on type "${n.name}".`+s,{nodes:r}))}}}}function Cb(e,r,n){if(!(0,Tt.isAbstractType)(r))return[];let t=new Set,i=Object.create(null);for(let s of e.getPossibleTypes(r))if(s.getFields()[n]){t.add(s),i[s.name]=1;for(let a of s.getInterfaces()){var o;a.getFields()[n]&&(t.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...t].sort((s,a)=>{let u=i[a.name]-i[s.name];return u!==0?u:(0,Tt.isInterfaceType)(s)&&e.isSubType(s,a)?-1:(0,Tt.isInterfaceType)(a)&&e.isSubType(a,s)?1:(0,wb.naturalCompare)(s.name,a.name)}).map(s=>s.name)}function qb(e,r){if((0,Tt.isObjectType)(e)||(0,Tt.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,xb.suggestionList)(r,n)}return[]}});var Zs=y(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.FragmentsOnCompositeTypesRule=Mb;var df=P(),mf=xe(),hf=Q(),yf=pr();function Mb(e){return{InlineFragment(r){let n=r.typeCondition;if(n){let t=(0,yf.typeFromAST)(e.getSchema(),n);if(t&&!(0,hf.isCompositeType)(t)){let i=(0,mf.print)(n);e.reportError(new df.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(r){let n=(0,yf.typeFromAST)(e.getSchema(),r.typeCondition);if(n&&!(0,hf.isCompositeType)(n)){let t=(0,mf.print)(r.typeCondition);e.reportError(new df.GraphQLError(`Fragment "${r.name.value}" cannot condition on non composite type "${t}".`,{nodes:r.typeCondition}))}}}}});var ea=y(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.KnownArgumentNamesOnDirectivesRule=bf;qi.KnownArgumentNamesRule=Qb;var vf=wr(),Tf=Fr(),gf=P(),Gb=V(),Vb=Re();function Qb(e){return{...bf(e),Argument(r){let n=e.getArgument(),t=e.getFieldDef(),i=e.getParentType();if(!n&&t&&i){let o=r.name.value,s=t.args.map(u=>u.name),a=(0,Tf.suggestionList)(o,s);e.reportError(new gf.GraphQLError(`Unknown argument "${o}" on field "${i.name}.${t.name}".`+(0,vf.didYouMean)(a),{nodes:r}))}}}}function bf(e){let r=Object.create(null),n=e.getSchema(),t=n?n.getDirectives():Vb.specifiedDirectives;for(let s of t)r[s.name]=s.args.map(a=>a.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===Gb.Kind.DIRECTIVE_DEFINITION){var o;let a=(o=s.arguments)!==null&&o!==void 0?o:[];r[s.name.value]=a.map(u=>u.name.value)}return{Directive(s){let a=s.name.value,u=r[a];if(s.arguments&&u)for(let c of s.arguments){let l=c.name.value;if(!u.includes(l)){let p=(0,Tf.suggestionList)(l,u);e.reportError(new gf.GraphQLError(`Unknown argument "${l}" on directive "@${a}".`+(0,vf.didYouMean)(p),{nodes:c}))}}return!1}}}});var ia=y(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.KnownDirectivesRule=Kb;var Ub=J(),ra=Oe(),Ef=P(),na=ar(),Te=gn(),ee=V(),$b=Re();function Kb(e){let r=Object.create(null),n=e.getSchema(),t=n?n.getDirectives():$b.specifiedDirectives;for(let o of t)r[o.name]=o.locations;let i=e.getDocument().definitions;for(let o of i)o.kind===ee.Kind.DIRECTIVE_DEFINITION&&(r[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,u,c){let l=o.name.value,p=r[l];if(!p){e.reportError(new Ef.GraphQLError(`Unknown directive "@${l}".`,{nodes:o}));return}let f=Bb(c);f&&!p.includes(f)&&e.reportError(new Ef.GraphQLError(`Directive "@${l}" may not be used on ${f}.`,{nodes:o}))}}}function Bb(e){let r=e[e.length-1];switch("kind"in r||(0,ra.invariant)(!1),r.kind){case ee.Kind.OPERATION_DEFINITION:return Yb(r.operation);case ee.Kind.FIELD:return Te.DirectiveLocation.FIELD;case ee.Kind.FRAGMENT_SPREAD:return Te.DirectiveLocation.FRAGMENT_SPREAD;case ee.Kind.INLINE_FRAGMENT:return Te.DirectiveLocation.INLINE_FRAGMENT;case ee.Kind.FRAGMENT_DEFINITION:return Te.DirectiveLocation.FRAGMENT_DEFINITION;case ee.Kind.VARIABLE_DEFINITION:return Te.DirectiveLocation.VARIABLE_DEFINITION;case ee.Kind.SCHEMA_DEFINITION:case ee.Kind.SCHEMA_EXTENSION:return Te.DirectiveLocation.SCHEMA;case ee.Kind.SCALAR_TYPE_DEFINITION:case ee.Kind.SCALAR_TYPE_EXTENSION:return Te.DirectiveLocation.SCALAR;case ee.Kind.OBJECT_TYPE_DEFINITION:case ee.Kind.OBJECT_TYPE_EXTENSION:return Te.DirectiveLocation.OBJECT;case ee.Kind.FIELD_DEFINITION:return Te.DirectiveLocation.FIELD_DEFINITION;case ee.Kind.INTERFACE_TYPE_DEFINITION:case ee.Kind.INTERFACE_TYPE_EXTENSION:return Te.DirectiveLocation.INTERFACE;case ee.Kind.UNION_TYPE_DEFINITION:case ee.Kind.UNION_TYPE_EXTENSION:return Te.DirectiveLocation.UNION;case ee.Kind.ENUM_TYPE_DEFINITION:case ee.Kind.ENUM_TYPE_EXTENSION:return Te.DirectiveLocation.ENUM;case ee.Kind.ENUM_VALUE_DEFINITION:return Te.DirectiveLocation.ENUM_VALUE;case ee.Kind.INPUT_OBJECT_TYPE_DEFINITION:case ee.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Te.DirectiveLocation.INPUT_OBJECT;case ee.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,ra.invariant)(!1),n.kind===ee.Kind.INPUT_OBJECT_TYPE_DEFINITION?Te.DirectiveLocation.INPUT_FIELD_DEFINITION:Te.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,ra.invariant)(!1,"Unexpected kind: "+(0,Ub.inspect)(r.kind))}}function Yb(e){switch(e){case na.OperationTypeNode.QUERY:return Te.DirectiveLocation.QUERY;case na.OperationTypeNode.MUTATION:return Te.DirectiveLocation.MUTATION;case na.OperationTypeNode.SUBSCRIPTION:return Te.DirectiveLocation.SUBSCRIPTION}}});var sa=y(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.KnownFragmentNamesRule=Jb;var Hb=P();function Jb(e){return{FragmentSpread(r){let n=r.name.value;e.getFragment(n)||e.reportError(new Hb.GraphQLError(`Unknown fragment "${n}".`,{nodes:r.name}))}}}});var ca=y(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.KnownTypeNamesRule=r0;var Wb=wr(),Xb=Fr(),zb=P(),aa=tn(),Zb=Ve(),e0=lr();function r0(e){let r=e.getSchema(),n=r?r.getTypeMap():Object.create(null),t=Object.create(null);for(let o of e.getDocument().definitions)(0,aa.isTypeDefinitionNode)(o)&&(t[o.name.value]=!0);let i=[...Object.keys(n),...Object.keys(t)];return{NamedType(o,s,a,u,c){let l=o.name.value;if(!n[l]&&!t[l]){var p;let f=(p=c[2])!==null&&p!==void 0?p:a,m=f!=null&&n0(f);if(m&&_f.includes(l))return;let h=(0,Xb.suggestionList)(l,m?_f.concat(i):i);e.reportError(new zb.GraphQLError(`Unknown type "${l}".`+(0,Wb.didYouMean)(h),{nodes:o}))}}}}var _f=[...e0.specifiedScalarTypes,...Zb.introspectionTypes].map(e=>e.name);function n0(e){return"kind"in e&&((0,aa.isTypeSystemDefinitionNode)(e)||(0,aa.isTypeSystemExtensionNode)(e))}});var pa=y(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.LoneAnonymousOperationRule=o0;var t0=P(),i0=V();function o0(e){let r=0;return{Document(n){r=n.definitions.filter(t=>t.kind===i0.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&r>1&&e.reportError(new t0.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var da=y(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.LoneSchemaDefinitionRule=s0;var Of=P();function s0(e){var r,n,t;let i=e.getSchema(),o=(r=(n=(t=i?.astNode)!==null&&t!==void 0?t:i?.getQueryType())!==null&&n!==void 0?n:i?.getMutationType())!==null&&r!==void 0?r:i?.getSubscriptionType(),s=0;return{SchemaDefinition(a){if(o){e.reportError(new Of.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new Of.GraphQLError("Must provide only one schema definition.",{nodes:a})),++s}}}});var ha=y(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.MaxIntrospectionDepthRule=c0;var a0=P(),Nf=V(),u0=3;function c0(e){function r(n,t=Object.create(null),i=0){if(n.kind===Nf.Kind.FRAGMENT_SPREAD){let o=n.name.value;if(t[o]===!0)return!1;let s=e.getFragment(o);if(!s)return!1;try{return t[o]=!0,r(s,t,i)}finally{t[o]=void 0}}if(n.kind===Nf.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=u0))return!0;if("selectionSet"in n&&n.selectionSet){for(let o of n.selectionSet.selections)if(r(o,t,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&r(n))return e.reportError(new a0.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var va=y(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.NoFragmentCyclesRule=p0;var l0=P();function p0(e){let r=Object.create(null),n=[],t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(r[o.name.value])return;let s=o.name.value;r[s]=!0;let a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){t[s]=n.length;for(let u of a){let c=u.name.value,l=t[c];if(n.push(u),l===void 0){let p=e.getFragment(c);p&&i(p)}else{let p=n.slice(l),f=p.slice(0,-1).map(m=>'"'+m.name.value+'"').join(", ");e.reportError(new l0.GraphQLError(`Cannot spread fragment "${c}" within itself`+(f!==""?` via ${f}.`:"."),{nodes:p}))}n.pop()}t[s]=void 0}}}});var ga=y(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.NoUndefinedVariablesRule=d0;var f0=P();function d0(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(n){let t=e.getRecursiveVariableUsages(n);for(let{node:i}of t){let o=i.name.value;r[o]!==!0&&e.reportError(new f0.GraphQLError(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){r[n.variable.name.value]=!0}}}});var Ea=y(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.NoUnusedFragmentsRule=h0;var m0=P();function h0(e){let r=[],n=[];return{OperationDefinition(t){return r.push(t),!1},FragmentDefinition(t){return n.push(t),!1},Document:{leave(){let t=Object.create(null);for(let i of r)for(let o of e.getRecursivelyReferencedFragments(i))t[o.name.value]=!0;for(let i of n){let o=i.name.value;t[o]!==!0&&e.reportError(new m0.GraphQLError(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}});var Oa=y(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.NoUnusedVariablesRule=v0;var y0=P();function v0(e){let r=[];return{OperationDefinition:{enter(){r=[]},leave(n){let t=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:o}of i)t[o.name.value]=!0;for(let o of r){let s=o.variable.name.value;t[s]!==!0&&e.reportError(new y0.GraphQLError(n.name?`Variable "$${s}" is never used in operation "${n.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(n){r.push(n)}}}});var La=y(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.sortValueNode=Na;var T0=et(),Or=V();function Na(e){switch(e.kind){case Or.Kind.OBJECT:return{...e,fields:g0(e.fields)};case Or.Kind.LIST:return{...e,values:e.values.map(Na)};case Or.Kind.INT:case Or.Kind.FLOAT:case Or.Kind.STRING:case Or.Kind.BOOLEAN:case Or.Kind.NULL:case Or.Kind.ENUM:case Or.Kind.VARIABLE:return e}}function g0(e){return e.map(r=>({...r,value:Na(r.value)})).sort((r,n)=>(0,T0.naturalCompare)(r.name.value,n.name.value))}});var wa=y(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.OverlappingFieldsCanBeMergedRule=O0;var If=J(),b0=P(),Sa=V(),E0=xe(),je=Q(),_0=La(),Sf=pr();function Df(e){return Array.isArray(e)?e.map(([r,n])=>`subfields "${r}" conflict because `+Df(n)).join(" and "):e}function O0(e){let r=new Qi,n=new Ra,t=new Map;return{SelectionSet(i){let o=N0(e,t,r,n,e.getParentType(),i);for(let[[s,a],u,c]of o){let l=Df(a);e.reportError(new b0.GraphQLError(`Fields "${s}" conflict because ${l}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(c)}))}}}}function N0(e,r,n,t,i,o){let s=[],[a,u]=Vi(e,r,i,o);if(L0(e,s,r,n,t,a),u.length!==0)for(let c=0;c<u.length;c++){Mi(e,s,r,n,t,!1,a,u[c]);for(let l=c+1;l<u.length;l++)Gi(e,s,r,n,t,!1,u[c],u[l])}return s}function Mi(e,r,n,t,i,o,s,a){if(t.has(s,a,o))return;t.add(s,a,o);let u=e.getFragment(a);if(!u)return;let[c,l]=Aa(e,n,u);if(s!==c){ja(e,r,n,t,i,o,s,c);for(let p of l)Mi(e,r,n,t,i,o,s,p)}}function Gi(e,r,n,t,i,o,s,a){if(s===a||i.has(s,a,o))return;i.add(s,a,o);let u=e.getFragment(s),c=e.getFragment(a);if(!u||!c)return;let[l,p]=Aa(e,n,u),[f,m]=Aa(e,n,c);ja(e,r,n,t,i,o,l,f);for(let h of m)Gi(e,r,n,t,i,o,s,h);for(let h of p)Gi(e,r,n,t,i,o,h,a)}function I0(e,r,n,t,i,o,s,a,u){let c=[],[l,p]=Vi(e,r,o,s),[f,m]=Vi(e,r,a,u);ja(e,c,r,n,t,i,l,f);for(let h of m)Mi(e,c,r,n,t,i,l,h);for(let h of p)Mi(e,c,r,n,t,i,f,h);for(let h of p)for(let O of m)Gi(e,c,r,n,t,i,h,O);return c}function L0(e,r,n,t,i,o){for(let[s,a]of Object.entries(o))if(a.length>1)for(let u=0;u<a.length;u++)for(let c=u+1;c<a.length;c++){let l=Af(e,n,t,i,!1,s,a[u],a[c]);l&&r.push(l)}}function ja(e,r,n,t,i,o,s,a){for(let[u,c]of Object.entries(s)){let l=a[u];if(l)for(let p of c)for(let f of l){let m=Af(e,n,t,i,o,u,p,f);m&&r.push(m)}}}function Af(e,r,n,t,i,o,s,a){let[u,c,l]=s,[p,f,m]=a,h=i||u!==p&&(0,je.isObjectType)(u)&&(0,je.isObjectType)(p);if(!h){let ce=c.name.value,ie=f.name.value;if(ce!==ie)return[[o,`"${ce}" and "${ie}" are different fields`],[c],[f]];if(!S0(c,f))return[[o,"they have differing arguments"],[c],[f]]}let O=l?.type,j=m?.type;if(O&&j&&Da(O,j))return[[o,`they return conflicting types "${(0,If.inspect)(O)}" and "${(0,If.inspect)(j)}"`],[c],[f]];let C=c.selectionSet,A=f.selectionSet;if(C&&A){let ce=I0(e,r,n,t,h,(0,je.getNamedType)(O),C,(0,je.getNamedType)(j),A);return D0(ce,o,c,f)}}function S0(e,r){let n=e.arguments,t=r.arguments;if(n===void 0||n.length===0)return t===void 0||t.length===0;if(t===void 0||t.length===0||n.length!==t.length)return!1;let i=new Map(t.map(({name:o,value:s})=>[o.value,s]));return n.every(o=>{let s=o.value,a=i.get(o.name.value);return a===void 0?!1:Lf(s)===Lf(a)})}function Lf(e){return(0,E0.print)((0,_0.sortValueNode)(e))}function Da(e,r){return(0,je.isListType)(e)?(0,je.isListType)(r)?Da(e.ofType,r.ofType):!0:(0,je.isListType)(r)?!0:(0,je.isNonNullType)(e)?(0,je.isNonNullType)(r)?Da(e.ofType,r.ofType):!0:(0,je.isNonNullType)(r)?!0:(0,je.isLeafType)(e)||(0,je.isLeafType)(r)?e!==r:!1}function Vi(e,r,n,t){let i=r.get(t);if(i)return i;let o=Object.create(null),s=Object.create(null);Rf(e,n,t,o,s);let a=[o,Object.keys(s)];return r.set(t,a),a}function Aa(e,r,n){let t=r.get(n.selectionSet);if(t)return t;let i=(0,Sf.typeFromAST)(e.getSchema(),n.typeCondition);return Vi(e,r,i,n.selectionSet)}function Rf(e,r,n,t,i){for(let o of n.selections)switch(o.kind){case Sa.Kind.FIELD:{let s=o.name.value,a;((0,je.isObjectType)(r)||(0,je.isInterfaceType)(r))&&(a=r.getFields()[s]);let u=o.alias?o.alias.value:s;t[u]||(t[u]=[]),t[u].push([r,o,a]);break}case Sa.Kind.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case Sa.Kind.INLINE_FRAGMENT:{let s=o.typeCondition,a=s?(0,Sf.typeFromAST)(e.getSchema(),s):r;Rf(e,a,o.selectionSet,t,i);break}}}function D0(e,r,n,t){if(e.length>0)return[[r,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[t,...e.map(([,,i])=>i).flat()]]}var Qi=class{constructor(){this._data=new Map}has(r,n,t){var i;let o=(i=this._data.get(r))===null||i===void 0?void 0:i.get(n);return o===void 0?!1:t?!0:t===o}add(r,n,t){let i=this._data.get(r);i===void 0?this._data.set(r,new Map([[n,t]])):i.set(n,t)}},Ra=class{constructor(){this._orderedPairSet=new Qi}has(r,n,t){return r<n?this._orderedPairSet.has(r,n,t):this._orderedPairSet.has(n,r,t)}add(r,n,t){r<n?this._orderedPairSet.add(r,n,t):this._orderedPairSet.add(n,r,t)}}});var ka=y(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.PossibleFragmentSpreadsRule=R0;var Ui=J(),jf=P(),xa=Q(),Pf=st(),A0=pr();function R0(e){return{InlineFragment(r){let n=e.getType(),t=e.getParentType();if((0,xa.isCompositeType)(n)&&(0,xa.isCompositeType)(t)&&!(0,Pf.doTypesOverlap)(e.getSchema(),n,t)){let i=(0,Ui.inspect)(t),o=(0,Ui.inspect)(n);e.reportError(new jf.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:r}))}},FragmentSpread(r){let n=r.name.value,t=j0(e,n),i=e.getParentType();if(t&&i&&!(0,Pf.doTypesOverlap)(e.getSchema(),t,i)){let o=(0,Ui.inspect)(i),s=(0,Ui.inspect)(t);e.reportError(new jf.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:r}))}}}}function j0(e,r){let n=e.getFragment(r);if(n){let t=(0,A0.typeFromAST)(e.getSchema(),n.typeCondition);if((0,xa.isCompositeType)(t))return t}}});var qa=y(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.PossibleTypeExtensionsRule=F0;var P0=wr(),xf=J(),Ff=Oe(),w0=Fr(),wf=P(),ne=V(),x0=tn(),Sn=Q();function F0(e){let r=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,x0.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:t,ObjectTypeExtension:t,InterfaceTypeExtension:t,UnionTypeExtension:t,EnumTypeExtension:t,InputObjectTypeExtension:t};function t(i){let o=i.name.value,s=n[o],a=r?.getType(o),u;if(s?u=k0[s.kind]:a&&(u=C0(a)),u){if(u!==i.kind){let c=q0(i.kind);e.reportError(new wf.GraphQLError(`Cannot extend non-${c} type "${o}".`,{nodes:s?[s,i]:i}))}}else{let c=Object.keys({...n,...r?.getTypeMap()}),l=(0,w0.suggestionList)(o,c);e.reportError(new wf.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,P0.didYouMean)(l),{nodes:i.name}))}}}var k0={[ne.Kind.SCALAR_TYPE_DEFINITION]:ne.Kind.SCALAR_TYPE_EXTENSION,[ne.Kind.OBJECT_TYPE_DEFINITION]:ne.Kind.OBJECT_TYPE_EXTENSION,[ne.Kind.INTERFACE_TYPE_DEFINITION]:ne.Kind.INTERFACE_TYPE_EXTENSION,[ne.Kind.UNION_TYPE_DEFINITION]:ne.Kind.UNION_TYPE_EXTENSION,[ne.Kind.ENUM_TYPE_DEFINITION]:ne.Kind.ENUM_TYPE_EXTENSION,[ne.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ne.Kind.INPUT_OBJECT_TYPE_EXTENSION};function C0(e){if((0,Sn.isScalarType)(e))return ne.Kind.SCALAR_TYPE_EXTENSION;if((0,Sn.isObjectType)(e))return ne.Kind.OBJECT_TYPE_EXTENSION;if((0,Sn.isInterfaceType)(e))return ne.Kind.INTERFACE_TYPE_EXTENSION;if((0,Sn.isUnionType)(e))return ne.Kind.UNION_TYPE_EXTENSION;if((0,Sn.isEnumType)(e))return ne.Kind.ENUM_TYPE_EXTENSION;if((0,Sn.isInputObjectType)(e))return ne.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,Ff.invariant)(!1,"Unexpected type: "+(0,xf.inspect)(e))}function q0(e){switch(e){case ne.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case ne.Kind.OBJECT_TYPE_EXTENSION:return"object";case ne.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case ne.Kind.UNION_TYPE_EXTENSION:return"union";case ne.Kind.ENUM_TYPE_EXTENSION:return"enum";case ne.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,Ff.invariant)(!1,"Unexpected kind: "+(0,xf.inspect)(e))}}});var Ga=y($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.ProvidedRequiredArgumentsOnDirectivesRule=Gf;$i.ProvidedRequiredArgumentsRule=V0;var Cf=J(),kf=xr(),qf=P(),Mf=V(),M0=xe(),Ma=Q(),G0=Re();function V0(e){return{...Gf(e),Field:{leave(r){var n;let t=e.getFieldDef();if(!t)return!1;let i=new Set((n=r.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(let o of t.args)if(!i.has(o.name)&&(0,Ma.isRequiredArgument)(o)){let s=(0,Cf.inspect)(o.type);e.reportError(new qf.GraphQLError(`Field "${t.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:r}))}}}}}function Gf(e){var r;let n=Object.create(null),t=e.getSchema(),i=(r=t?.getDirectives())!==null&&r!==void 0?r:G0.specifiedDirectives;for(let a of i)n[a.name]=(0,kf.keyMap)(a.args.filter(Ma.isRequiredArgument),u=>u.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===Mf.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];n[a.name.value]=(0,kf.keyMap)(u.filter(Q0),c=>c.name.value)}return{Directive:{leave(a){let u=a.name.value,c=n[u];if(c){var l;let p=(l=a.arguments)!==null&&l!==void 0?l:[],f=new Set(p.map(m=>m.name.value));for(let[m,h]of Object.entries(c))if(!f.has(m)){let O=(0,Ma.isType)(h.type)?(0,Cf.inspect)(h.type):(0,M0.print)(h.type);e.reportError(new qf.GraphQLError(`Directive "@${u}" argument "${m}" of type "${O}" is required, but it was not provided.`,{nodes:a}))}}}}}}function Q0(e){return e.type.kind===Mf.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var $a=y(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.ScalarLeafsRule=U0;var Va=J(),Qa=P(),Vf=Q();function U0(e){return{Field(r){let n=e.getType(),t=r.selectionSet;if(n)if((0,Vf.isLeafType)((0,Vf.getNamedType)(n))){if(t){let i=r.name.value,o=(0,Va.inspect)(n);e.reportError(new Qa.GraphQLError(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:t}))}}else if(t){if(t.selections.length===0){let i=r.name.value,o=(0,Va.inspect)(n);e.reportError(new Qa.GraphQLError(`Field "${i}" of type "${o}" must have at least one field selected.`,{nodes:r}))}}else{let i=r.name.value,o=(0,Va.inspect)(n);e.reportError(new Qa.GraphQLError(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:r}))}}}}});var Ba=y(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.printPathArray=$0;function $0(e){return e.map(r=>typeof r=="number"?"["+r.toString()+"]":"."+r).join("")}});var gt=y(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.addPath=K0;Ki.pathToArray=B0;function K0(e,r,n){return{prev:e,key:r,typename:n}}function B0(e){let r=[],n=e;for(;n;)r.push(n.key),n=n.prev;return r.reverse()}});var Ha=y(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.coerceInputValue=Z0;var Y0=wr(),Bi=J(),H0=Oe(),J0=wi(),W0=sr(),er=gt(),X0=Ba(),z0=Fr(),Nr=P(),bt=Q();function Z0(e,r,n=eE){return Et(e,r,n,void 0)}function eE(e,r,n){let t="Invalid value "+(0,Bi.inspect)(r);throw e.length>0&&(t+=` at "value${(0,X0.printPathArray)(e)}"`),n.message=t+": "+n.message,n}function Et(e,r,n,t){if((0,bt.isNonNullType)(r)){if(e!=null)return Et(e,r.ofType,n,t);n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Expected non-nullable type "${(0,Bi.inspect)(r)}" not to be null.`));return}if(e==null)return null;if((0,bt.isListType)(r)){let i=r.ofType;return(0,J0.isIterableObject)(e)?Array.from(e,(o,s)=>{let a=(0,er.addPath)(t,s,void 0);return Et(o,i,n,a)}):[Et(e,i,n,t)]}if((0,bt.isInputObjectType)(r)){if(!(0,W0.isObjectLike)(e)||Array.isArray(e)){n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Expected type "${r.name}" to be an object.`));return}let i={},o=r.getFields();for(let s of Object.values(o)){let a=e[s.name];if(a===void 0){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if((0,bt.isNonNullType)(s.type)){let u=(0,Bi.inspect)(s.type);n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Field "${s.name}" of required type "${u}" was not provided.`))}continue}i[s.name]=Et(a,s.type,n,(0,er.addPath)(t,s.name,r.name))}for(let s of Object.keys(e))if(!o[s]){let a=(0,z0.suggestionList)(s,Object.keys(r.getFields()));n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Field "${s}" is not defined by type "${r.name}".`+(0,Y0.didYouMean)(a)))}if(r.isOneOf){let s=Object.keys(i);s.length!==1&&n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Exactly one key must be specified for OneOf type "${r.name}".`));let a=s[0],u=i[a];u===null&&n((0,er.pathToArray)(t).concat(a),u,new Nr.GraphQLError(`Field "${a}" must be non-null.`))}return i}if((0,bt.isLeafType)(r)){let i;try{i=r.parseValue(e)}catch(o){o instanceof Nr.GraphQLError?n((0,er.pathToArray)(t),e,o):n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Expected type "${r.name}". `+o.message,{originalError:o}));return}return i===void 0&&n((0,er.pathToArray)(t),e,new Nr.GraphQLError(`Expected type "${r.name}".`)),i}(0,H0.invariant)(!1,"Unexpected input type: "+(0,Bi.inspect)(r))}});var Ot=y(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.valueFromAST=_t;var rE=J(),nE=Oe(),tE=xr(),Dn=V(),on=Q();function _t(e,r,n){if(e){if(e.kind===Dn.Kind.VARIABLE){let t=e.name.value;if(n==null||n[t]===void 0)return;let i=n[t];return i===null&&(0,on.isNonNullType)(r)?void 0:i}if((0,on.isNonNullType)(r))return e.kind===Dn.Kind.NULL?void 0:_t(e,r.ofType,n);if(e.kind===Dn.Kind.NULL)return null;if((0,on.isListType)(r)){let t=r.ofType;if(e.kind===Dn.Kind.LIST){let o=[];for(let s of e.values)if(Qf(s,n)){if((0,on.isNonNullType)(t))return;o.push(null)}else{let a=_t(s,t,n);if(a===void 0)return;o.push(a)}return o}let i=_t(e,t,n);return i===void 0?void 0:[i]}if((0,on.isInputObjectType)(r)){if(e.kind!==Dn.Kind.OBJECT)return;let t=Object.create(null),i=(0,tE.keyMap)(e.fields,o=>o.name.value);for(let o of Object.values(r.getFields())){let s=i[o.name];if(!s||Qf(s.value,n)){if(o.defaultValue!==void 0)t[o.name]=o.defaultValue;else if((0,on.isNonNullType)(o.type))return;continue}let a=_t(s.value,o.type,n);if(a===void 0)return;t[o.name]=a}if(r.isOneOf){let o=Object.keys(t);if(o.length!==1||t[o[0]]===null)return}return t}if((0,on.isLeafType)(r)){let t;try{t=r.parseLiteral(e,n)}catch{return}return t===void 0?void 0:t}(0,nE.invariant)(!1,"Unexpected input type: "+(0,rE.inspect)(r))}}function Qf(e,r){return e.kind===Dn.Kind.VARIABLE&&(r==null||r[e.name.value]===void 0)}});var jn=y(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getArgumentValues=Bf;Nt.getDirectiveValues=lE;Nt.getVariableValues=uE;var An=J(),iE=xr(),oE=Ba(),Ir=P(),Uf=V(),$f=xe(),Rn=Q(),sE=Ha(),aE=pr(),Kf=Ot();function uE(e,r,n,t){let i=[],o=t?.maxErrors;try{let s=cE(e,r,n,a=>{if(o!=null&&i.length>=o)throw new Ir.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function cE(e,r,n,t){let i={};for(let o of r){let s=o.variable.name.value,a=(0,aE.typeFromAST)(e,o.type);if(!(0,Rn.isInputType)(a)){let c=(0,$f.print)(o.type);t(new Ir.GraphQLError(`Variable "$${s}" expected value of type "${c}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!Yf(n,s)){if(o.defaultValue)i[s]=(0,Kf.valueFromAST)(o.defaultValue,a);else if((0,Rn.isNonNullType)(a)){let c=(0,An.inspect)(a);t(new Ir.GraphQLError(`Variable "$${s}" of required type "${c}" was not provided.`,{nodes:o}))}continue}let u=n[s];if(u===null&&(0,Rn.isNonNullType)(a)){let c=(0,An.inspect)(a);t(new Ir.GraphQLError(`Variable "$${s}" of non-null type "${c}" must not be null.`,{nodes:o}));continue}i[s]=(0,sE.coerceInputValue)(u,a,(c,l,p)=>{let f=`Variable "$${s}" got invalid value `+(0,An.inspect)(l);c.length>0&&(f+=` at "${s}${(0,oE.printPathArray)(c)}"`),t(new Ir.GraphQLError(f+"; "+p.message,{nodes:o,originalError:p}))})}return i}function Bf(e,r,n){var t;let i={},o=(t=r.arguments)!==null&&t!==void 0?t:[],s=(0,iE.keyMap)(o,a=>a.name.value);for(let a of e.args){let u=a.name,c=a.type,l=s[u];if(!l){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,Rn.isNonNullType)(c))throw new Ir.GraphQLError(`Argument "${u}" of required type "${(0,An.inspect)(c)}" was not provided.`,{nodes:r});continue}let p=l.value,f=p.kind===Uf.Kind.NULL;if(p.kind===Uf.Kind.VARIABLE){let h=p.name.value;if(n==null||!Yf(n,h)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,Rn.isNonNullType)(c))throw new Ir.GraphQLError(`Argument "${u}" of required type "${(0,An.inspect)(c)}" was provided the variable "$${h}" which was not provided a runtime value.`,{nodes:p});continue}f=n[h]==null}if(f&&(0,Rn.isNonNullType)(c))throw new Ir.GraphQLError(`Argument "${u}" of non-null type "${(0,An.inspect)(c)}" must not be null.`,{nodes:p});let m=(0,Kf.valueFromAST)(p,c,n);if(m===void 0)throw new Ir.GraphQLError(`Argument "${u}" has invalid value ${(0,$f.print)(p)}.`,{nodes:p});i[u]=m}return i}function lE(e,r,n){var t;let i=(t=r.directives)===null||t===void 0?void 0:t.find(o=>o.name.value===e.name);if(i)return Bf(e,i,n)}function Yf(e,r){return Object.prototype.hasOwnProperty.call(e,r)}});var Ji=y(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.collectFields=dE;Hi.collectSubfields=mE;var Wa=V(),pE=Q(),Hf=Re(),fE=pr(),Jf=jn();function dE(e,r,n,t,i){let o=new Map;return Yi(e,r,n,t,i,o,new Set),o}function mE(e,r,n,t,i){let o=new Map,s=new Set;for(let a of i)a.selectionSet&&Yi(e,r,n,t,a.selectionSet,o,s);return o}function Yi(e,r,n,t,i,o,s){for(let a of i.selections)switch(a.kind){case Wa.Kind.FIELD:{if(!Xa(n,a))continue;let u=hE(a),c=o.get(u);c!==void 0?c.push(a):o.set(u,[a]);break}case Wa.Kind.INLINE_FRAGMENT:{if(!Xa(n,a)||!Wf(e,a,t))continue;Yi(e,r,n,t,a.selectionSet,o,s);break}case Wa.Kind.FRAGMENT_SPREAD:{let u=a.name.value;if(s.has(u)||!Xa(n,a))continue;s.add(u);let c=r[u];if(!c||!Wf(e,c,t))continue;Yi(e,r,n,t,c.selectionSet,o,s);break}}}function Xa(e,r){let n=(0,Jf.getDirectiveValues)(Hf.GraphQLSkipDirective,r,e);if(n?.if===!0)return!1;let t=(0,Jf.getDirectiveValues)(Hf.GraphQLIncludeDirective,r,e);return t?.if!==!1}function Wf(e,r,n){let t=r.typeCondition;if(!t)return!0;let i=(0,fE.typeFromAST)(e,t);return i===n?!0:(0,pE.isAbstractType)(i)?e.isSubType(i,n):!1}function hE(e){return e.alias?e.alias.value:e.name.value}});var Za=y(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.SingleFieldSubscriptionsRule=TE;var Xf=P(),yE=V(),vE=Ji();function TE(e){return{OperationDefinition(r){if(r.operation==="subscription"){let n=e.getSchema(),t=n.getSubscriptionType();if(t){let i=r.name?r.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(let c of s.definitions)c.kind===yE.Kind.FRAGMENT_DEFINITION&&(a[c.name.value]=c);let u=(0,vE.collectFields)(n,a,o,t,r.selectionSet);if(u.size>1){let p=[...u.values()].slice(1).flat();e.reportError(new Xf.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:p}))}for(let c of u.values())c[0].name.value.startsWith("__")&&e.reportError(new Xf.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}});var Wi=y(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.groupBy=gE;function gE(e,r){let n=new Map;for(let t of e){let i=r(t),o=n.get(i);o===void 0?n.set(i,[t]):o.push(t)}return n}});var nu=y(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.UniqueArgumentDefinitionNamesRule=_E;var bE=Wi(),EE=P();function _E(e){return{DirectiveDefinition(t){var i;let o=(i=t.arguments)!==null&&i!==void 0?i:[];return n(`@${t.name.value}`,o)},InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(t){var i;let o=t.name.value,s=(i=t.fields)!==null&&i!==void 0?i:[];for(let u of s){var a;let c=u.name.value,l=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${o}.${c}`,l)}return!1}function n(t,i){let o=(0,bE.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new EE.GraphQLError(`Argument "${t}(${s}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}});var iu=y(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.UniqueArgumentNamesRule=IE;var OE=Wi(),NE=P();function IE(e){return{Field:r,Directive:r};function r(n){var t;let i=(t=n.arguments)!==null&&t!==void 0?t:[],o=(0,OE.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new NE.GraphQLError(`There can be only one argument named "${s}".`,{nodes:a.map(u=>u.name)}))}}});var su=y(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.UniqueDirectiveNamesRule=LE;var zf=P();function LE(e){let r=Object.create(null),n=e.getSchema();return{DirectiveDefinition(t){let i=t.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new zf.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:t.name}));return}return r[i]?e.reportError(new zf.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[r[i],t.name]})):r[i]=t.name,!1}}}});var cu=y(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.UniqueDirectivesPerLocationRule=AE;var SE=P(),au=V(),Zf=tn(),DE=Re();function AE(e){let r=Object.create(null),n=e.getSchema(),t=n?n.getDirectives():DE.specifiedDirectives;for(let a of t)r[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===au.Kind.DIRECTIVE_DEFINITION&&(r[a.name.value]=!a.repeatable);let o=Object.create(null),s=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===au.Kind.SCHEMA_DEFINITION||a.kind===au.Kind.SCHEMA_EXTENSION)u=o;else if((0,Zf.isTypeDefinitionNode)(a)||(0,Zf.isTypeExtensionNode)(a)){let c=a.name.value;u=s[c],u===void 0&&(s[c]=u=Object.create(null))}else u=Object.create(null);for(let c of a.directives){let l=c.name.value;r[l]&&(u[l]?e.reportError(new SE.GraphQLError(`The directive "@${l}" can only be used once at this location.`,{nodes:[u[l],c]})):u[l]=c)}}}}});var pu=y(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.UniqueEnumValueNamesRule=jE;var ed=P(),RE=Q();function jE(e){let r=e.getSchema(),n=r?r.getTypeMap():Object.create(null),t=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;let a=o.name.value;t[a]||(t[a]=Object.create(null));let u=(s=o.values)!==null&&s!==void 0?s:[],c=t[a];for(let l of u){let p=l.name.value,f=n[a];(0,RE.isEnumType)(f)&&f.getValue(p)?e.reportError(new ed.GraphQLError(`Enum value "${a}.${p}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[p]?e.reportError(new ed.GraphQLError(`Enum value "${a}.${p}" can only be defined once.`,{nodes:[c[p],l.name]})):c[p]=l.name}return!1}}});var mu=y(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.UniqueFieldDefinitionNamesRule=PE;var rd=P(),fu=Q();function PE(e){let r=e.getSchema(),n=r?r.getTypeMap():Object.create(null),t=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var s;let a=o.name.value;t[a]||(t[a]=Object.create(null));let u=(s=o.fields)!==null&&s!==void 0?s:[],c=t[a];for(let l of u){let p=l.name.value;wE(n[a],p)?e.reportError(new rd.GraphQLError(`Field "${a}.${p}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[p]?e.reportError(new rd.GraphQLError(`Field "${a}.${p}" can only be defined once.`,{nodes:[c[p],l.name]})):c[p]=l.name}return!1}}function wE(e,r){return(0,fu.isObjectType)(e)||(0,fu.isInterfaceType)(e)||(0,fu.isInputObjectType)(e)?e.getFields()[r]!=null:!1}});var yu=y(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.UniqueFragmentNamesRule=FE;var xE=P();function FE(e){let r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let t=n.name.value;return r[t]?e.reportError(new xE.GraphQLError(`There can be only one fragment named "${t}".`,{nodes:[r[t],n.name]})):r[t]=n.name,!1}}}});var Tu=y(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.UniqueInputFieldNamesRule=qE;var kE=Oe(),CE=P();function qE(e){let r=[],n=Object.create(null);return{ObjectValue:{enter(){r.push(n),n=Object.create(null)},leave(){let t=r.pop();t||(0,kE.invariant)(!1),n=t}},ObjectField(t){let i=t.name.value;n[i]?e.reportError(new CE.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],t.name]})):n[i]=t.name}}}});var bu=y(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.UniqueOperationNamesRule=GE;var ME=P();function GE(e){let r=Object.create(null);return{OperationDefinition(n){let t=n.name;return t&&(r[t.value]?e.reportError(new ME.GraphQLError(`There can be only one operation named "${t.value}".`,{nodes:[r[t.value],t]})):r[t.value]=t),!1},FragmentDefinition:()=>!1}}});var _u=y(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.UniqueOperationTypesRule=VE;var nd=P();function VE(e){let r=e.getSchema(),n=Object.create(null),t=r?{query:r.getQueryType(),mutation:r.getMutationType(),subscription:r.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){var s;let a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(let u of a){let c=u.operation,l=n[c];t[c]?e.reportError(new nd.GraphQLError(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:u})):l?e.reportError(new nd.GraphQLError(`There can be only one ${c} type in schema.`,{nodes:[l,u]})):n[c]=u}return!1}}});var Nu=y(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.UniqueTypeNamesRule=QE;var td=P();function QE(e){let r=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:t,ObjectTypeDefinition:t,InterfaceTypeDefinition:t,UnionTypeDefinition:t,EnumTypeDefinition:t,InputObjectTypeDefinition:t};function t(i){let o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new td.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return r[o]?e.reportError(new td.GraphQLError(`There can be only one type named "${o}".`,{nodes:[r[o],i.name]})):r[o]=i.name,!1}}});var Lu=y(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.UniqueVariableNamesRule=KE;var UE=Wi(),$E=P();function KE(e){return{OperationDefinition(r){var n;let t=(n=r.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,UE.groupBy)(t,o=>o.variable.name.value);for(let[o,s]of i)s.length>1&&e.reportError(new $E.GraphQLError(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}});var Au=y(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.ValuesOfCorrectTypeRule=JE;var BE=wr(),It=J(),YE=xr(),HE=Fr(),dr=P(),Su=V(),Xi=xe(),fr=Q();function JE(e){let r={};return{OperationDefinition:{enter(){r={}}},VariableDefinition(n){r[n.variable.name.value]=n},ListValue(n){let t=(0,fr.getNullableType)(e.getParentInputType());if(!(0,fr.isListType)(t))return sn(e,n),!1},ObjectValue(n){let t=(0,fr.getNamedType)(e.getInputType());if(!(0,fr.isInputObjectType)(t))return sn(e,n),!1;let i=(0,YE.keyMap)(n.fields,o=>o.name.value);for(let o of Object.values(t.getFields()))if(!i[o.name]&&(0,fr.isRequiredInputField)(o)){let a=(0,It.inspect)(o.type);e.reportError(new dr.GraphQLError(`Field "${t.name}.${o.name}" of required type "${a}" was not provided.`,{nodes:n}))}t.isOneOf&&WE(e,n,t,i,r)},ObjectField(n){let t=(0,fr.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,fr.isInputObjectType)(t)){let o=(0,HE.suggestionList)(n.name.value,Object.keys(t.getFields()));e.reportError(new dr.GraphQLError(`Field "${n.name.value}" is not defined by type "${t.name}".`+(0,BE.didYouMean)(o),{nodes:n}))}},NullValue(n){let t=e.getInputType();(0,fr.isNonNullType)(t)&&e.reportError(new dr.GraphQLError(`Expected value of type "${(0,It.inspect)(t)}", found ${(0,Xi.print)(n)}.`,{nodes:n}))},EnumValue:n=>sn(e,n),IntValue:n=>sn(e,n),FloatValue:n=>sn(e,n),StringValue:n=>sn(e,n),BooleanValue:n=>sn(e,n)}}function sn(e,r){let n=e.getInputType();if(!n)return;let t=(0,fr.getNamedType)(n);if(!(0,fr.isLeafType)(t)){let i=(0,It.inspect)(n);e.reportError(new dr.GraphQLError(`Expected value of type "${i}", found ${(0,Xi.print)(r)}.`,{nodes:r}));return}try{if(t.parseLiteral(r,void 0)===void 0){let o=(0,It.inspect)(n);e.reportError(new dr.GraphQLError(`Expected value of type "${o}", found ${(0,Xi.print)(r)}.`,{nodes:r}))}}catch(i){let o=(0,It.inspect)(n);i instanceof dr.GraphQLError?e.reportError(i):e.reportError(new dr.GraphQLError(`Expected value of type "${o}", found ${(0,Xi.print)(r)}; `+i.message,{nodes:r,originalError:i}))}}function WE(e,r,n,t,i){var o;let s=Object.keys(t);if(s.length!==1){e.reportError(new dr.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[r]}));return}let u=(o=t[s[0]])===null||o===void 0?void 0:o.value,c=!u||u.kind===Su.Kind.NULL,l=u?.kind===Su.Kind.VARIABLE;if(c){e.reportError(new dr.GraphQLError(`Field "${n.name}.${s[0]}" must be non-null.`,{nodes:[r]}));return}if(l){let p=u.name.value;i[p].type.kind!==Su.Kind.NON_NULL_TYPE&&e.reportError(new dr.GraphQLError(`Variable "${p}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[r]}))}}});var ju=y(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.VariablesAreInputTypesRule=r_;var XE=P(),zE=xe(),ZE=Q(),e_=pr();function r_(e){return{VariableDefinition(r){let n=(0,e_.typeFromAST)(e.getSchema(),r.type);if(n!==void 0&&!(0,ZE.isInputType)(n)){let t=r.variable.name.value,i=(0,zE.print)(r.type);e.reportError(new XE.GraphQLError(`Variable "$${t}" cannot be non-input type "${i}".`,{nodes:r.type}))}}}}});var wu=y(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.VariablesInAllowedPositionRule=i_;var id=J(),od=P(),n_=V(),zi=Q(),sd=st(),t_=pr();function i_(e){let r=Object.create(null);return{OperationDefinition:{enter(){r=Object.create(null)},leave(n){let t=e.getRecursiveVariableUsages(n);for(let{node:i,type:o,defaultValue:s,parentType:a}of t){let u=i.name.value,c=r[u];if(c&&o){let l=e.getSchema(),p=(0,t_.typeFromAST)(l,c.type);if(p&&!o_(l,p,c.defaultValue,o,s)){let f=(0,id.inspect)(p),m=(0,id.inspect)(o);e.reportError(new od.GraphQLError(`Variable "$${u}" of type "${f}" used in position expecting type "${m}".`,{nodes:[c,i]}))}(0,zi.isInputObjectType)(a)&&a.isOneOf&&(0,zi.isNullableType)(p)&&e.reportError(new od.GraphQLError(`Variable "$${u}" is of type "${p}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[c,i]}))}}}},VariableDefinition(n){r[n.variable.name.value]=n}}}function o_(e,r,n,t,i){if((0,zi.isNonNullType)(t)&&!(0,zi.isNonNullType)(r)){if(!(n!=null&&n.kind!==n_.Kind.NULL)&&!(i!==void 0))return!1;let a=t.ofType;return(0,sd.isTypeSubTypeOf)(e,r,a)}return(0,sd.isTypeSubTypeOf)(e,r,t)}});var xu=y(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.specifiedSDLRules=Mr.specifiedRules=Mr.recommendedRules=void 0;var s_=Js(),a_=Xs(),u_=Zs(),ad=ea(),ud=ia(),c_=sa(),cd=ca(),l_=pa(),p_=da(),f_=ha(),d_=va(),m_=ga(),h_=Ea(),y_=Oa(),v_=wa(),T_=ka(),g_=qa(),ld=Ga(),b_=$a(),E_=Za(),__=nu(),pd=iu(),O_=su(),fd=cu(),N_=pu(),I_=mu(),L_=yu(),dd=Tu(),S_=bu(),D_=_u(),A_=Nu(),R_=Lu(),j_=Au(),P_=ju(),w_=wu(),md=Object.freeze([f_.MaxIntrospectionDepthRule]);Mr.recommendedRules=md;var x_=Object.freeze([s_.ExecutableDefinitionsRule,S_.UniqueOperationNamesRule,l_.LoneAnonymousOperationRule,E_.SingleFieldSubscriptionsRule,cd.KnownTypeNamesRule,u_.FragmentsOnCompositeTypesRule,P_.VariablesAreInputTypesRule,b_.ScalarLeafsRule,a_.FieldsOnCorrectTypeRule,L_.UniqueFragmentNamesRule,c_.KnownFragmentNamesRule,h_.NoUnusedFragmentsRule,T_.PossibleFragmentSpreadsRule,d_.NoFragmentCyclesRule,R_.UniqueVariableNamesRule,m_.NoUndefinedVariablesRule,y_.NoUnusedVariablesRule,ud.KnownDirectivesRule,fd.UniqueDirectivesPerLocationRule,ad.KnownArgumentNamesRule,pd.UniqueArgumentNamesRule,j_.ValuesOfCorrectTypeRule,ld.ProvidedRequiredArgumentsRule,w_.VariablesInAllowedPositionRule,v_.OverlappingFieldsCanBeMergedRule,dd.UniqueInputFieldNamesRule,...md]);Mr.specifiedRules=x_;var F_=Object.freeze([p_.LoneSchemaDefinitionRule,D_.UniqueOperationTypesRule,A_.UniqueTypeNamesRule,N_.UniqueEnumValueNamesRule,I_.UniqueFieldDefinitionNamesRule,__.UniqueArgumentDefinitionNamesRule,O_.UniqueDirectiveNamesRule,cd.KnownTypeNamesRule,ud.KnownDirectivesRule,fd.UniqueDirectivesPerLocationRule,g_.PossibleTypeExtensionsRule,ad.KnownArgumentNamesOnDirectivesRule,pd.UniqueArgumentNamesRule,dd.UniqueInputFieldNamesRule,ld.ProvidedRequiredArgumentsOnDirectivesRule]);Mr.specifiedSDLRules=F_});var Cu=y(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.ValidationContext=Gr.SDLValidationContext=Gr.ASTValidationContext=void 0;var hd=V(),k_=Jr(),yd=Ci(),Lt=class{constructor(r,n){this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(r){this._onError(r)}getDocument(){return this._ast}getFragment(r){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let t of this.getDocument().definitions)t.kind===hd.Kind.FRAGMENT_DEFINITION&&(n[t.name.value]=t);this._fragments=n}return n[r]}getFragmentSpreads(r){let n=this._fragmentSpreads.get(r);if(!n){n=[];let t=[r],i;for(;i=t.pop();)for(let o of i.selections)o.kind===hd.Kind.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&t.push(o.selectionSet);this._fragmentSpreads.set(r,n)}return n}getRecursivelyReferencedFragments(r){let n=this._recursivelyReferencedFragments.get(r);if(!n){n=[];let t=Object.create(null),i=[r.selectionSet],o;for(;o=i.pop();)for(let s of this.getFragmentSpreads(o)){let a=s.name.value;if(t[a]!==!0){t[a]=!0;let u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(r,n)}return n}};Gr.ASTValidationContext=Lt;var Fu=class extends Lt{constructor(r,n,t){super(r,t),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Gr.SDLValidationContext=Fu;var ku=class extends Lt{constructor(r,n,t,i){super(n,i),this._schema=r,this._typeInfo=t,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(r){let n=this._variableUsages.get(r);if(!n){let t=[],i=new yd.TypeInfo(this._schema);(0,k_.visit)(r,(0,yd.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(o){t.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()})}})),n=t,this._variableUsages.set(r,n)}return n}getRecursiveVariableUsages(r){let n=this._recursiveVariableUsages.get(r);if(!n){n=this.getVariableUsages(r);for(let t of this.getRecursivelyReferencedFragments(r))n=n.concat(this.getVariableUsages(t));this._recursiveVariableUsages.set(r,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};Gr.ValidationContext=ku});var St=y(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.assertValidSDL=V_;Pn.assertValidSDLExtension=Q_;Pn.validate=G_;Pn.validateSDL=qu;var C_=Se(),q_=P(),Zi=Jr(),M_=yt(),vd=Ci(),Td=xu(),gd=Cu();function G_(e,r,n=Td.specifiedRules,t,i=new vd.TypeInfo(e)){var o;let s=(o=t?.maxErrors)!==null&&o!==void 0?o:100;r||(0,C_.devAssert)(!1,"Must provide document."),(0,M_.assertValidSchema)(e);let a=Object.freeze({}),u=[],c=new gd.ValidationContext(e,r,i,p=>{if(u.length>=s)throw u.push(new q_.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(p)}),l=(0,Zi.visitInParallel)(n.map(p=>p(c)));try{(0,Zi.visit)(r,(0,vd.visitWithTypeInfo)(i,l))}catch(p){if(p!==a)throw p}return u}function qu(e,r,n=Td.specifiedSDLRules){let t=[],i=new gd.SDLValidationContext(e,r,s=>{t.push(s)}),o=n.map(s=>s(i));return(0,Zi.visit)(e,(0,Zi.visitInParallel)(o)),t}function V_(e){let r=qu(e);if(r.length!==0)throw new Error(r.map(n=>n.message).join(`
55
55
 
56
56
  `))}function Q_(e,r){let n=qu(e,r);if(n.length!==0)throw new Error(n.map(t=>t.message).join(`
57
57
 
58
- `))}});var gd=y(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.memoize3=U_;function U_(e){let r;return function(t,i,o){r===void 0&&(r=new WeakMap);let s=r.get(t);s===void 0&&(s=new WeakMap,r.set(t,s));let a=s.get(i);a===void 0&&(a=new WeakMap,s.set(i,a));let u=a.get(o);return u===void 0&&(u=e(t,i,o),a.set(o,u)),u}}});var bd=y(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.promiseForObject=$_;function $_(e){return Promise.all(Object.values(e)).then(r=>{let n=Object.create(null);for(let[t,i]of Object.keys(e).entries())n[i]=r[t];return n})}});var Ed=y(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.promiseReduce=B_;var K_=Zt();function B_(e,r,n){let t=n;for(let i of e)t=(0,K_.isPromise)(t)?t.then(o=>r(o,i)):r(t,i);return t}});var _d=y(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.toError=H_;var Y_=J();function H_(e){return e instanceof Error?e:new Qu(e)}var Qu=class extends Error{constructor(r){super("Unexpected error value: "+(0,Y_.inspect)(r)),this.name="NonErrorThrown",this.thrownValue=r}}});var eo=y($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.locatedError=X_;var J_=_d(),W_=P();function X_(e,r,n){var t;let i=(0,J_.toError)(e);return z_(i)?i:new W_.GraphQLError(i.message,{nodes:(t=i.nodes)!==null&&t!==void 0?t:r,source:i.source,positions:i.positions,path:n,originalError:i})}function z_(e){return Array.isArray(e.path)}});var At=y($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.assertValidExecutionArguments=Rd;$e.buildExecutionContext=jd;$e.buildResolveInfo=wd;$e.defaultTypeResolver=$e.defaultFieldResolver=void 0;$e.execute=Ad;$e.executeSync=oO;$e.getFieldDef=Fd;var Bu=Se(),an=J(),Z_=Oe(),eO=wi(),Ju=sr(),rr=Zt(),rO=gd(),un=gt(),Od=bd(),nO=Ed(),Ue=P(),no=eo(),Ku=ar(),Nd=V(),Vr=Q(),wn=Ve(),tO=yt(),Sd=Ji(),Dd=jn(),iO=(0,rO.memoize3)((e,r,n)=>(0,Sd.collectSubfields)(e.schema,e.fragments,e.variableValues,r,n));function Ad(e){arguments.length<2||(0,Bu.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,document:n,variableValues:t,rootValue:i}=e;Rd(r,n,t);let o=jd(e);if(!("schema"in o))return{errors:o};try{let{operation:s}=o,a=sO(o,s,i);return(0,rr.isPromise)(a)?a.then(u=>ro(u,o.errors),u=>(o.errors.push(u),ro(null,o.errors))):ro(a,o.errors)}catch(s){return o.errors.push(s),ro(null,o.errors)}}function oO(e){let r=Ad(e);if((0,rr.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function ro(e,r){return r.length===0?{data:e}:{errors:r,data:e}}function Rd(e,r,n){r||(0,Bu.devAssert)(!1,"Must provide document."),(0,tO.assertValidSchema)(e),n==null||(0,Ju.isObjectLike)(n)||(0,Bu.devAssert)(!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 jd(e){var r,n,t;let{schema:i,document:o,rootValue:s,contextValue:a,variableValues:u,operationName:c,fieldResolver:l,typeResolver:p,subscribeFieldResolver:f,options:m}=e,h,O=Object.create(null);for(let A of o.definitions)switch(A.kind){case Nd.Kind.OPERATION_DEFINITION:if(c==null){if(h!==void 0)return[new Ue.GraphQLError("Must provide operation name if query contains multiple operations.")];h=A}else((r=A.name)===null||r===void 0?void 0:r.value)===c&&(h=A);break;case Nd.Kind.FRAGMENT_DEFINITION:O[A.name.value]=A;break;default:}if(!h)return c!=null?[new Ue.GraphQLError(`Unknown operation named "${c}".`)]:[new Ue.GraphQLError("Must provide an operation.")];let j=(n=h.variableDefinitions)!==null&&n!==void 0?n:[],C=(0,Dd.getVariableValues)(i,j,u??{},{maxErrors:(t=m?.maxCoercionErrors)!==null&&t!==void 0?t:50});return C.errors?C.errors:{schema:i,fragments:O,rootValue:s,contextValue:a,operation:h,variableValues:C.coerced,fieldResolver:l??Hu,typeResolver:p??xd,subscribeFieldResolver:f??Hu,errors:[]}}function sO(e,r,n){let t=e.schema.getRootType(r.operation);if(t==null)throw new Ue.GraphQLError(`Schema is not configured to execute ${r.operation} operation.`,{nodes:r});let i=(0,Sd.collectFields)(e.schema,e.fragments,e.variableValues,t,r.selectionSet),o=void 0;switch(r.operation){case Ku.OperationTypeNode.QUERY:return to(e,t,n,o,i);case Ku.OperationTypeNode.MUTATION:return aO(e,t,n,o,i);case Ku.OperationTypeNode.SUBSCRIPTION:return to(e,t,n,o,i)}}function aO(e,r,n,t,i){return(0,nO.promiseReduce)(i.entries(),(o,[s,a])=>{let u=(0,un.addPath)(t,s,r.name),c=Pd(e,r,n,a,u);return c===void 0?o:(0,rr.isPromise)(c)?c.then(l=>(o[s]=l,o)):(o[s]=c,o)},Object.create(null))}function to(e,r,n,t,i){let o=Object.create(null),s=!1;try{for(let[a,u]of i.entries()){let c=(0,un.addPath)(t,a,r.name),l=Pd(e,r,n,u,c);l!==void 0&&(o[a]=l,(0,rr.isPromise)(l)&&(s=!0))}}catch(a){if(s)return(0,Od.promiseForObject)(o).finally(()=>{throw a});throw a}return s?(0,Od.promiseForObject)(o):o}function Pd(e,r,n,t,i){var o;let s=Fd(e.schema,r,t[0]);if(!s)return;let a=s.type,u=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver,c=wd(e,s,t,r,i);try{let l=(0,Dd.getArgumentValues)(s,t[0],e.variableValues),p=e.contextValue,f=u(n,l,p,c),m;return(0,rr.isPromise)(f)?m=f.then(h=>Dt(e,a,t,c,i,h)):m=Dt(e,a,t,c,i,f),(0,rr.isPromise)(m)?m.then(void 0,h=>{let O=(0,no.locatedError)(h,t,(0,un.pathToArray)(i));return io(O,a,e)}):m}catch(l){let p=(0,no.locatedError)(l,t,(0,un.pathToArray)(i));return io(p,a,e)}}function wd(e,r,n,t,i){return{fieldName:r.name,fieldNodes:n,returnType:r.type,parentType:t,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function io(e,r,n){if((0,Vr.isNonNullType)(r))throw e;return n.errors.push(e),null}function Dt(e,r,n,t,i,o){if(o instanceof Error)throw o;if((0,Vr.isNonNullType)(r)){let s=Dt(e,r.ofType,n,t,i,o);if(s===null)throw new Error(`Cannot return null for non-nullable field ${t.parentType.name}.${t.fieldName}.`);return s}if(o==null)return null;if((0,Vr.isListType)(r))return uO(e,r,n,t,i,o);if((0,Vr.isLeafType)(r))return cO(r,o);if((0,Vr.isAbstractType)(r))return lO(e,r,n,t,i,o);if((0,Vr.isObjectType)(r))return Yu(e,r,n,t,i,o);(0,Z_.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,an.inspect)(r))}function uO(e,r,n,t,i,o){if(!(0,eO.isIterableObject)(o))throw new Ue.GraphQLError(`Expected Iterable, but did not find one for field "${t.parentType.name}.${t.fieldName}".`);let s=r.ofType,a=!1,u=Array.from(o,(c,l)=>{let p=(0,un.addPath)(i,l,void 0);try{let f;return(0,rr.isPromise)(c)?f=c.then(m=>Dt(e,s,n,t,p,m)):f=Dt(e,s,n,t,p,c),(0,rr.isPromise)(f)?(a=!0,f.then(void 0,m=>{let h=(0,no.locatedError)(m,n,(0,un.pathToArray)(p));return io(h,s,e)})):f}catch(f){let m=(0,no.locatedError)(f,n,(0,un.pathToArray)(p));return io(m,s,e)}});return a?Promise.all(u):u}function cO(e,r){let n=e.serialize(r);if(n==null)throw new Error(`Expected \`${(0,an.inspect)(e)}.serialize(${(0,an.inspect)(r)})\` to return non-nullable value, returned: ${(0,an.inspect)(n)}`);return n}function lO(e,r,n,t,i,o){var s;let a=(s=r.resolveType)!==null&&s!==void 0?s:e.typeResolver,u=e.contextValue,c=a(o,u,t,r);return(0,rr.isPromise)(c)?c.then(l=>Yu(e,Id(l,e,r,n,t,o),n,t,i,o)):Yu(e,Id(c,e,r,n,t,o),n,t,i,o)}function Id(e,r,n,t,i,o){if(e==null)throw new Ue.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,t);if((0,Vr.isObjectType)(e))throw new Ue.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Ue.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,an.inspect)(o)}, received "${(0,an.inspect)(e)}".`);let s=r.schema.getType(e);if(s==null)throw new Ue.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:t});if(!(0,Vr.isObjectType)(s))throw new Ue.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:t});if(!r.schema.isSubType(n,s))throw new Ue.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:t});return s}function Yu(e,r,n,t,i,o){let s=iO(e,r,n);if(r.isTypeOf){let a=r.isTypeOf(o,e.contextValue,t);if((0,rr.isPromise)(a))return a.then(u=>{if(!u)throw Ld(r,o,n);return to(e,r,o,i,s)});if(!a)throw Ld(r,o,n)}return to(e,r,o,i,s)}function Ld(e,r,n){return new Ue.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,an.inspect)(r)}.`,{nodes:n})}var xd=function(e,r,n,t){if((0,Ju.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(t),o=[];for(let s=0;s<i.length;s++){let a=i[s];if(a.isTypeOf){let u=a.isTypeOf(e,r,n);if((0,rr.isPromise)(u))o[s]=u;else if(u)return a.name}}if(o.length)return Promise.all(o).then(s=>{for(let a=0;a<s.length;a++)if(s[a])return i[a].name})};$e.defaultTypeResolver=xd;var Hu=function(e,r,n,t){if((0,Ju.isObjectLike)(e)||typeof e=="function"){let i=e[t.fieldName];return typeof i=="function"?e[t.fieldName](r,n,t):i}};$e.defaultFieldResolver=Hu;function Fd(e,r,n){let t=n.name.value;return t===wn.SchemaMetaFieldDef.name&&e.getQueryType()===r?wn.SchemaMetaFieldDef:t===wn.TypeMetaFieldDef.name&&e.getQueryType()===r?wn.TypeMetaFieldDef:t===wn.TypeNameMetaFieldDef.name?wn.TypeNameMetaFieldDef:r.getFields()[t]}});var Cd=y(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.graphql=vO;oo.graphqlSync=TO;var pO=Se(),fO=Zt(),dO=En(),mO=yt(),hO=St(),yO=At();function vO(e){return new Promise(r=>r(kd(e)))}function TO(e){let r=kd(e);if((0,fO.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function kd(e){arguments.length<2||(0,pO.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,source:n,rootValue:t,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u}=e,c=(0,mO.validateSchema)(r);if(c.length>0)return{errors:c};let l;try{l=(0,dO.parse)(n)}catch(f){return{errors:[f]}}let p=(0,hO.validate)(r,l);return p.length>0?{errors:p}:(0,yO.execute)({schema:r,document:l,rootValue:t,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u})}});var Gd=y(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});Object.defineProperty(g,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return nr.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(g,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Lr.GRAPHQL_MAX_INT}});Object.defineProperty(g,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Lr.GRAPHQL_MIN_INT}});Object.defineProperty(g,"GraphQLBoolean",{enumerable:!0,get:function(){return Lr.GraphQLBoolean}});Object.defineProperty(g,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return nr.GraphQLDeprecatedDirective}});Object.defineProperty(g,"GraphQLDirective",{enumerable:!0,get:function(){return nr.GraphQLDirective}});Object.defineProperty(g,"GraphQLEnumType",{enumerable:!0,get:function(){return w.GraphQLEnumType}});Object.defineProperty(g,"GraphQLFloat",{enumerable:!0,get:function(){return Lr.GraphQLFloat}});Object.defineProperty(g,"GraphQLID",{enumerable:!0,get:function(){return Lr.GraphQLID}});Object.defineProperty(g,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return nr.GraphQLIncludeDirective}});Object.defineProperty(g,"GraphQLInputObjectType",{enumerable:!0,get:function(){return w.GraphQLInputObjectType}});Object.defineProperty(g,"GraphQLInt",{enumerable:!0,get:function(){return Lr.GraphQLInt}});Object.defineProperty(g,"GraphQLInterfaceType",{enumerable:!0,get:function(){return w.GraphQLInterfaceType}});Object.defineProperty(g,"GraphQLList",{enumerable:!0,get:function(){return w.GraphQLList}});Object.defineProperty(g,"GraphQLNonNull",{enumerable:!0,get:function(){return w.GraphQLNonNull}});Object.defineProperty(g,"GraphQLObjectType",{enumerable:!0,get:function(){return w.GraphQLObjectType}});Object.defineProperty(g,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return nr.GraphQLOneOfDirective}});Object.defineProperty(g,"GraphQLScalarType",{enumerable:!0,get:function(){return w.GraphQLScalarType}});Object.defineProperty(g,"GraphQLSchema",{enumerable:!0,get:function(){return Wu.GraphQLSchema}});Object.defineProperty(g,"GraphQLSkipDirective",{enumerable:!0,get:function(){return nr.GraphQLSkipDirective}});Object.defineProperty(g,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return nr.GraphQLSpecifiedByDirective}});Object.defineProperty(g,"GraphQLString",{enumerable:!0,get:function(){return Lr.GraphQLString}});Object.defineProperty(g,"GraphQLUnionType",{enumerable:!0,get:function(){return w.GraphQLUnionType}});Object.defineProperty(g,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Pe.SchemaMetaFieldDef}});Object.defineProperty(g,"TypeKind",{enumerable:!0,get:function(){return Pe.TypeKind}});Object.defineProperty(g,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Pe.TypeMetaFieldDef}});Object.defineProperty(g,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Pe.TypeNameMetaFieldDef}});Object.defineProperty(g,"__Directive",{enumerable:!0,get:function(){return Pe.__Directive}});Object.defineProperty(g,"__DirectiveLocation",{enumerable:!0,get:function(){return Pe.__DirectiveLocation}});Object.defineProperty(g,"__EnumValue",{enumerable:!0,get:function(){return Pe.__EnumValue}});Object.defineProperty(g,"__Field",{enumerable:!0,get:function(){return Pe.__Field}});Object.defineProperty(g,"__InputValue",{enumerable:!0,get:function(){return Pe.__InputValue}});Object.defineProperty(g,"__Schema",{enumerable:!0,get:function(){return Pe.__Schema}});Object.defineProperty(g,"__Type",{enumerable:!0,get:function(){return Pe.__Type}});Object.defineProperty(g,"__TypeKind",{enumerable:!0,get:function(){return Pe.__TypeKind}});Object.defineProperty(g,"assertAbstractType",{enumerable:!0,get:function(){return w.assertAbstractType}});Object.defineProperty(g,"assertCompositeType",{enumerable:!0,get:function(){return w.assertCompositeType}});Object.defineProperty(g,"assertDirective",{enumerable:!0,get:function(){return nr.assertDirective}});Object.defineProperty(g,"assertEnumType",{enumerable:!0,get:function(){return w.assertEnumType}});Object.defineProperty(g,"assertEnumValueName",{enumerable:!0,get:function(){return Md.assertEnumValueName}});Object.defineProperty(g,"assertInputObjectType",{enumerable:!0,get:function(){return w.assertInputObjectType}});Object.defineProperty(g,"assertInputType",{enumerable:!0,get:function(){return w.assertInputType}});Object.defineProperty(g,"assertInterfaceType",{enumerable:!0,get:function(){return w.assertInterfaceType}});Object.defineProperty(g,"assertLeafType",{enumerable:!0,get:function(){return w.assertLeafType}});Object.defineProperty(g,"assertListType",{enumerable:!0,get:function(){return w.assertListType}});Object.defineProperty(g,"assertName",{enumerable:!0,get:function(){return Md.assertName}});Object.defineProperty(g,"assertNamedType",{enumerable:!0,get:function(){return w.assertNamedType}});Object.defineProperty(g,"assertNonNullType",{enumerable:!0,get:function(){return w.assertNonNullType}});Object.defineProperty(g,"assertNullableType",{enumerable:!0,get:function(){return w.assertNullableType}});Object.defineProperty(g,"assertObjectType",{enumerable:!0,get:function(){return w.assertObjectType}});Object.defineProperty(g,"assertOutputType",{enumerable:!0,get:function(){return w.assertOutputType}});Object.defineProperty(g,"assertScalarType",{enumerable:!0,get:function(){return w.assertScalarType}});Object.defineProperty(g,"assertSchema",{enumerable:!0,get:function(){return Wu.assertSchema}});Object.defineProperty(g,"assertType",{enumerable:!0,get:function(){return w.assertType}});Object.defineProperty(g,"assertUnionType",{enumerable:!0,get:function(){return w.assertUnionType}});Object.defineProperty(g,"assertValidSchema",{enumerable:!0,get:function(){return qd.assertValidSchema}});Object.defineProperty(g,"assertWrappingType",{enumerable:!0,get:function(){return w.assertWrappingType}});Object.defineProperty(g,"getNamedType",{enumerable:!0,get:function(){return w.getNamedType}});Object.defineProperty(g,"getNullableType",{enumerable:!0,get:function(){return w.getNullableType}});Object.defineProperty(g,"introspectionTypes",{enumerable:!0,get:function(){return Pe.introspectionTypes}});Object.defineProperty(g,"isAbstractType",{enumerable:!0,get:function(){return w.isAbstractType}});Object.defineProperty(g,"isCompositeType",{enumerable:!0,get:function(){return w.isCompositeType}});Object.defineProperty(g,"isDirective",{enumerable:!0,get:function(){return nr.isDirective}});Object.defineProperty(g,"isEnumType",{enumerable:!0,get:function(){return w.isEnumType}});Object.defineProperty(g,"isInputObjectType",{enumerable:!0,get:function(){return w.isInputObjectType}});Object.defineProperty(g,"isInputType",{enumerable:!0,get:function(){return w.isInputType}});Object.defineProperty(g,"isInterfaceType",{enumerable:!0,get:function(){return w.isInterfaceType}});Object.defineProperty(g,"isIntrospectionType",{enumerable:!0,get:function(){return Pe.isIntrospectionType}});Object.defineProperty(g,"isLeafType",{enumerable:!0,get:function(){return w.isLeafType}});Object.defineProperty(g,"isListType",{enumerable:!0,get:function(){return w.isListType}});Object.defineProperty(g,"isNamedType",{enumerable:!0,get:function(){return w.isNamedType}});Object.defineProperty(g,"isNonNullType",{enumerable:!0,get:function(){return w.isNonNullType}});Object.defineProperty(g,"isNullableType",{enumerable:!0,get:function(){return w.isNullableType}});Object.defineProperty(g,"isObjectType",{enumerable:!0,get:function(){return w.isObjectType}});Object.defineProperty(g,"isOutputType",{enumerable:!0,get:function(){return w.isOutputType}});Object.defineProperty(g,"isRequiredArgument",{enumerable:!0,get:function(){return w.isRequiredArgument}});Object.defineProperty(g,"isRequiredInputField",{enumerable:!0,get:function(){return w.isRequiredInputField}});Object.defineProperty(g,"isScalarType",{enumerable:!0,get:function(){return w.isScalarType}});Object.defineProperty(g,"isSchema",{enumerable:!0,get:function(){return Wu.isSchema}});Object.defineProperty(g,"isSpecifiedDirective",{enumerable:!0,get:function(){return nr.isSpecifiedDirective}});Object.defineProperty(g,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Lr.isSpecifiedScalarType}});Object.defineProperty(g,"isType",{enumerable:!0,get:function(){return w.isType}});Object.defineProperty(g,"isUnionType",{enumerable:!0,get:function(){return w.isUnionType}});Object.defineProperty(g,"isWrappingType",{enumerable:!0,get:function(){return w.isWrappingType}});Object.defineProperty(g,"resolveObjMapThunk",{enumerable:!0,get:function(){return w.resolveObjMapThunk}});Object.defineProperty(g,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return w.resolveReadonlyArrayThunk}});Object.defineProperty(g,"specifiedDirectives",{enumerable:!0,get:function(){return nr.specifiedDirectives}});Object.defineProperty(g,"specifiedScalarTypes",{enumerable:!0,get:function(){return Lr.specifiedScalarTypes}});Object.defineProperty(g,"validateSchema",{enumerable:!0,get:function(){return qd.validateSchema}});var Wu=rn(),w=Q(),nr=Re(),Lr=lr(),Pe=Ve(),qd=yt(),Md=rt()});var Qd=y($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});Object.defineProperty($,"BREAK",{enumerable:!0,get:function(){return Rt.BREAK}});Object.defineProperty($,"DirectiveLocation",{enumerable:!0,get:function(){return IO.DirectiveLocation}});Object.defineProperty($,"Kind",{enumerable:!0,get:function(){return EO.Kind}});Object.defineProperty($,"Lexer",{enumerable:!0,get:function(){return OO.Lexer}});Object.defineProperty($,"Location",{enumerable:!0,get:function(){return Xu.Location}});Object.defineProperty($,"OperationTypeNode",{enumerable:!0,get:function(){return Xu.OperationTypeNode}});Object.defineProperty($,"Source",{enumerable:!0,get:function(){return gO.Source}});Object.defineProperty($,"Token",{enumerable:!0,get:function(){return Xu.Token}});Object.defineProperty($,"TokenKind",{enumerable:!0,get:function(){return _O.TokenKind}});Object.defineProperty($,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Rt.getEnterLeaveForKind}});Object.defineProperty($,"getLocation",{enumerable:!0,get:function(){return bO.getLocation}});Object.defineProperty($,"getVisitFn",{enumerable:!0,get:function(){return Rt.getVisitFn}});Object.defineProperty($,"isConstValueNode",{enumerable:!0,get:function(){return mr.isConstValueNode}});Object.defineProperty($,"isDefinitionNode",{enumerable:!0,get:function(){return mr.isDefinitionNode}});Object.defineProperty($,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return mr.isExecutableDefinitionNode}});Object.defineProperty($,"isSelectionNode",{enumerable:!0,get:function(){return mr.isSelectionNode}});Object.defineProperty($,"isTypeDefinitionNode",{enumerable:!0,get:function(){return mr.isTypeDefinitionNode}});Object.defineProperty($,"isTypeExtensionNode",{enumerable:!0,get:function(){return mr.isTypeExtensionNode}});Object.defineProperty($,"isTypeNode",{enumerable:!0,get:function(){return mr.isTypeNode}});Object.defineProperty($,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return mr.isTypeSystemDefinitionNode}});Object.defineProperty($,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return mr.isTypeSystemExtensionNode}});Object.defineProperty($,"isValueNode",{enumerable:!0,get:function(){return mr.isValueNode}});Object.defineProperty($,"parse",{enumerable:!0,get:function(){return so.parse}});Object.defineProperty($,"parseConstValue",{enumerable:!0,get:function(){return so.parseConstValue}});Object.defineProperty($,"parseType",{enumerable:!0,get:function(){return so.parseType}});Object.defineProperty($,"parseValue",{enumerable:!0,get:function(){return so.parseValue}});Object.defineProperty($,"print",{enumerable:!0,get:function(){return NO.print}});Object.defineProperty($,"printLocation",{enumerable:!0,get:function(){return Vd.printLocation}});Object.defineProperty($,"printSourceLocation",{enumerable:!0,get:function(){return Vd.printSourceLocation}});Object.defineProperty($,"visit",{enumerable:!0,get:function(){return Rt.visit}});Object.defineProperty($,"visitInParallel",{enumerable:!0,get:function(){return Rt.visitInParallel}});var gO=ci(),bO=ei(),Vd=Ko(),EO=V(),_O=Yn(),OO=oi(),so=En(),NO=xe(),Rt=Jr(),Xu=ar(),mr=tn(),IO=gn()});var Ud=y(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.isAsyncIterable=LO;function LO(e){return typeof e?.[Symbol.asyncIterator]=="function"}});var $d=y(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.mapAsyncIterator=SO;function SO(e,r){let n=e[Symbol.asyncIterator]();async function t(i){if(i.done)return i;try{return{value:await r(i.value),done:!1}}catch(o){if(typeof n.return=="function")try{await n.return()}catch{}throw o}}return{async next(){return t(await n.next())},async return(){return typeof n.return=="function"?t(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw=="function")return t(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}});var Hd=y(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.createSourceEventStream=Yd;ao.subscribe=xO;var DO=Se(),AO=J(),Bd=Ud(),Kd=gt(),ec=P(),RO=eo(),jO=Ji(),jt=At(),PO=$d(),wO=jn();async function xO(e){arguments.length<2||(0,DO.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let r=await Yd(e);if(!(0,Bd.isAsyncIterable)(r))return r;let n=t=>(0,jt.execute)({...e,rootValue:t});return(0,PO.mapAsyncIterator)(r,n)}function FO(e){let r=e[0];return r&&"document"in r?r:{schema:r,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function Yd(...e){let r=FO(e),{schema:n,document:t,variableValues:i}=r;(0,jt.assertValidExecutionArguments)(n,t,i);let o=(0,jt.buildExecutionContext)(r);if(!("schema"in o))return{errors:o};try{let s=await kO(o);if(!(0,Bd.isAsyncIterable)(s))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,AO.inspect)(s)}.`);return s}catch(s){if(s instanceof ec.GraphQLError)return{errors:[s]};throw s}}async function kO(e){let{schema:r,fragments:n,operation:t,variableValues:i,rootValue:o}=e,s=r.getSubscriptionType();if(s==null)throw new ec.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:t});let a=(0,jO.collectFields)(r,n,i,s,t.selectionSet),[u,c]=[...a.entries()][0],l=(0,jt.getFieldDef)(r,s,c[0]);if(!l){let h=c[0].name.value;throw new ec.GraphQLError(`The subscription field "${h}" is not defined.`,{nodes:c})}let p=(0,Kd.addPath)(void 0,u,s.name),f=(0,jt.buildResolveInfo)(e,l,c,s,p);try{var m;let h=(0,wO.getArgumentValues)(l,c[0],i),O=e.contextValue,C=await((m=l.subscribe)!==null&&m!==void 0?m:e.subscribeFieldResolver)(o,h,O,f);if(C instanceof Error)throw C;return C}catch(h){throw(0,RO.locatedError)(h,c,(0,Kd.pathToArray)(p))}}});var Wd=y(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Object.defineProperty(Ke,"createSourceEventStream",{enumerable:!0,get:function(){return Jd.createSourceEventStream}});Object.defineProperty(Ke,"defaultFieldResolver",{enumerable:!0,get:function(){return uo.defaultFieldResolver}});Object.defineProperty(Ke,"defaultTypeResolver",{enumerable:!0,get:function(){return uo.defaultTypeResolver}});Object.defineProperty(Ke,"execute",{enumerable:!0,get:function(){return uo.execute}});Object.defineProperty(Ke,"executeSync",{enumerable:!0,get:function(){return uo.executeSync}});Object.defineProperty(Ke,"getArgumentValues",{enumerable:!0,get:function(){return rc.getArgumentValues}});Object.defineProperty(Ke,"getDirectiveValues",{enumerable:!0,get:function(){return rc.getDirectiveValues}});Object.defineProperty(Ke,"getVariableValues",{enumerable:!0,get:function(){return rc.getVariableValues}});Object.defineProperty(Ke,"responsePathAsArray",{enumerable:!0,get:function(){return CO.pathToArray}});Object.defineProperty(Ke,"subscribe",{enumerable:!0,get:function(){return Jd.subscribe}});var CO=gt(),uo=At(),Jd=Hd(),rc=jn()});var Xd=y(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.NoDeprecatedCustomRule=qO;var nc=Oe(),Pt=P(),tc=Q();function qO(e){return{Field(r){let n=e.getFieldDef(),t=n?.deprecationReason;if(n&&t!=null){let i=e.getParentType();i!=null||(0,nc.invariant)(!1),e.reportError(new Pt.GraphQLError(`The field ${i.name}.${n.name} is deprecated. ${t}`,{nodes:r}))}},Argument(r){let n=e.getArgument(),t=n?.deprecationReason;if(n&&t!=null){let i=e.getDirective();if(i!=null)e.reportError(new Pt.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${t}`,{nodes:r}));else{let o=e.getParentType(),s=e.getFieldDef();o!=null&&s!=null||(0,nc.invariant)(!1),e.reportError(new Pt.GraphQLError(`Field "${o.name}.${s.name}" argument "${n.name}" is deprecated. ${t}`,{nodes:r}))}}},ObjectField(r){let n=(0,tc.getNamedType)(e.getParentInputType());if((0,tc.isInputObjectType)(n)){let t=n.getFields()[r.name.value],i=t?.deprecationReason;i!=null&&e.reportError(new Pt.GraphQLError(`The input field ${n.name}.${t.name} is deprecated. ${i}`,{nodes:r}))}},EnumValue(r){let n=e.getEnumValue(),t=n?.deprecationReason;if(n&&t!=null){let i=(0,tc.getNamedType)(e.getInputType());i!=null||(0,nc.invariant)(!1),e.reportError(new Pt.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${t}`,{nodes:r}))}}}}});var zd=y(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.NoSchemaIntrospectionCustomRule=QO;var MO=P(),GO=Q(),VO=Ve();function QO(e){return{Field(r){let n=(0,GO.getNamedType)(e.getType());n&&(0,VO.isIntrospectionType)(n)&&e.reportError(new MO.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${r.name.value}".`,{nodes:r}))}}}});var em=y(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});Object.defineProperty(k,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return KO.ExecutableDefinitionsRule}});Object.defineProperty(k,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return BO.FieldsOnCorrectTypeRule}});Object.defineProperty(k,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return YO.FragmentsOnCompositeTypesRule}});Object.defineProperty(k,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return HO.KnownArgumentNamesRule}});Object.defineProperty(k,"KnownDirectivesRule",{enumerable:!0,get:function(){return JO.KnownDirectivesRule}});Object.defineProperty(k,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return WO.KnownFragmentNamesRule}});Object.defineProperty(k,"KnownTypeNamesRule",{enumerable:!0,get:function(){return XO.KnownTypeNamesRule}});Object.defineProperty(k,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return zO.LoneAnonymousOperationRule}});Object.defineProperty(k,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return TN.LoneSchemaDefinitionRule}});Object.defineProperty(k,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return vN.MaxIntrospectionDepthRule}});Object.defineProperty(k,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return LN.NoDeprecatedCustomRule}});Object.defineProperty(k,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return ZO.NoFragmentCyclesRule}});Object.defineProperty(k,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return SN.NoSchemaIntrospectionCustomRule}});Object.defineProperty(k,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return eN.NoUndefinedVariablesRule}});Object.defineProperty(k,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return rN.NoUnusedFragmentsRule}});Object.defineProperty(k,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return nN.NoUnusedVariablesRule}});Object.defineProperty(k,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return tN.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(k,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return iN.PossibleFragmentSpreadsRule}});Object.defineProperty(k,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return IN.PossibleTypeExtensionsRule}});Object.defineProperty(k,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return oN.ProvidedRequiredArgumentsRule}});Object.defineProperty(k,"ScalarLeafsRule",{enumerable:!0,get:function(){return sN.ScalarLeafsRule}});Object.defineProperty(k,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return aN.SingleFieldSubscriptionsRule}});Object.defineProperty(k,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return ON.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(k,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return uN.UniqueArgumentNamesRule}});Object.defineProperty(k,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return NN.UniqueDirectiveNamesRule}});Object.defineProperty(k,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return cN.UniqueDirectivesPerLocationRule}});Object.defineProperty(k,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return EN.UniqueEnumValueNamesRule}});Object.defineProperty(k,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return _N.UniqueFieldDefinitionNamesRule}});Object.defineProperty(k,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return lN.UniqueFragmentNamesRule}});Object.defineProperty(k,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return pN.UniqueInputFieldNamesRule}});Object.defineProperty(k,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return fN.UniqueOperationNamesRule}});Object.defineProperty(k,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return gN.UniqueOperationTypesRule}});Object.defineProperty(k,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return bN.UniqueTypeNamesRule}});Object.defineProperty(k,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return dN.UniqueVariableNamesRule}});Object.defineProperty(k,"ValidationContext",{enumerable:!0,get:function(){return $O.ValidationContext}});Object.defineProperty(k,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return mN.ValuesOfCorrectTypeRule}});Object.defineProperty(k,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return hN.VariablesAreInputTypesRule}});Object.defineProperty(k,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return yN.VariablesInAllowedPositionRule}});Object.defineProperty(k,"recommendedRules",{enumerable:!0,get:function(){return Zd.recommendedRules}});Object.defineProperty(k,"specifiedRules",{enumerable:!0,get:function(){return Zd.specifiedRules}});Object.defineProperty(k,"validate",{enumerable:!0,get:function(){return UO.validate}});var UO=St(),$O=Cu(),Zd=xu(),KO=Js(),BO=Xs(),YO=Zs(),HO=ea(),JO=ia(),WO=sa(),XO=ca(),zO=pa(),ZO=va(),eN=ga(),rN=Ea(),nN=Oa(),tN=wa(),iN=ka(),oN=Ga(),sN=$a(),aN=Za(),uN=iu(),cN=cu(),lN=yu(),pN=Tu(),fN=bu(),dN=Lu(),mN=Au(),hN=ju(),yN=wu(),vN=ha(),TN=da(),gN=_u(),bN=Nu(),EN=pu(),_N=mu(),ON=nu(),NN=su(),IN=qa(),LN=Xd(),SN=zd()});var rm=y(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});Object.defineProperty(cn,"GraphQLError",{enumerable:!0,get:function(){return sc.GraphQLError}});Object.defineProperty(cn,"formatError",{enumerable:!0,get:function(){return sc.formatError}});Object.defineProperty(cn,"locatedError",{enumerable:!0,get:function(){return AN.locatedError}});Object.defineProperty(cn,"printError",{enumerable:!0,get:function(){return sc.printError}});Object.defineProperty(cn,"syntaxError",{enumerable:!0,get:function(){return DN.syntaxError}});var sc=P(),DN=ni(),AN=eo()});var uc=y(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.getIntrospectionQuery=RN;function RN(e){let r={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=r.descriptions?"description":"",t=r.specifiedByUrl?"specifiedByURL":"",i=r.directiveIsRepeatable?"isRepeatable":"",o=r.schemaDescription?n:"";function s(u){return r.inputValueDeprecation?u:""}let a=r.oneOf?"isOneOf":"";return`
58
+ `))}});var bd=y(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.memoize3=U_;function U_(e){let r;return function(t,i,o){r===void 0&&(r=new WeakMap);let s=r.get(t);s===void 0&&(s=new WeakMap,r.set(t,s));let a=s.get(i);a===void 0&&(a=new WeakMap,s.set(i,a));let u=a.get(o);return u===void 0&&(u=e(t,i,o),a.set(o,u)),u}}});var Ed=y(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.promiseForObject=$_;function $_(e){return Promise.all(Object.values(e)).then(r=>{let n=Object.create(null);for(let[t,i]of Object.keys(e).entries())n[i]=r[t];return n})}});var _d=y(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.promiseReduce=B_;var K_=Zt();function B_(e,r,n){let t=n;for(let i of e)t=(0,K_.isPromise)(t)?t.then(o=>r(o,i)):r(t,i);return t}});var Od=y(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.toError=H_;var Y_=J();function H_(e){return e instanceof Error?e:new Qu(e)}var Qu=class extends Error{constructor(r){super("Unexpected error value: "+(0,Y_.inspect)(r)),this.name="NonErrorThrown",this.thrownValue=r}}});var eo=y($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.locatedError=X_;var J_=Od(),W_=P();function X_(e,r,n){var t;let i=(0,J_.toError)(e);return z_(i)?i:new W_.GraphQLError(i.message,{nodes:(t=i.nodes)!==null&&t!==void 0?t:r,source:i.source,positions:i.positions,path:n,originalError:i})}function z_(e){return Array.isArray(e.path)}});var At=y($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.assertValidExecutionArguments=jd;$e.buildExecutionContext=Pd;$e.buildResolveInfo=xd;$e.defaultTypeResolver=$e.defaultFieldResolver=void 0;$e.execute=Rd;$e.executeSync=oO;$e.getFieldDef=kd;var Bu=Se(),an=J(),Z_=Oe(),eO=wi(),Ju=sr(),rr=Zt(),rO=bd(),un=gt(),Nd=Ed(),nO=_d(),Ue=P(),no=eo(),Ku=ar(),Id=V(),Vr=Q(),wn=Ve(),tO=yt(),Dd=Ji(),Ad=jn(),iO=(0,rO.memoize3)((e,r,n)=>(0,Dd.collectSubfields)(e.schema,e.fragments,e.variableValues,r,n));function Rd(e){arguments.length<2||(0,Bu.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,document:n,variableValues:t,rootValue:i}=e;jd(r,n,t);let o=Pd(e);if(!("schema"in o))return{errors:o};try{let{operation:s}=o,a=sO(o,s,i);return(0,rr.isPromise)(a)?a.then(u=>ro(u,o.errors),u=>(o.errors.push(u),ro(null,o.errors))):ro(a,o.errors)}catch(s){return o.errors.push(s),ro(null,o.errors)}}function oO(e){let r=Rd(e);if((0,rr.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function ro(e,r){return r.length===0?{data:e}:{errors:r,data:e}}function jd(e,r,n){r||(0,Bu.devAssert)(!1,"Must provide document."),(0,tO.assertValidSchema)(e),n==null||(0,Ju.isObjectLike)(n)||(0,Bu.devAssert)(!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 Pd(e){var r,n,t;let{schema:i,document:o,rootValue:s,contextValue:a,variableValues:u,operationName:c,fieldResolver:l,typeResolver:p,subscribeFieldResolver:f,options:m}=e,h,O=Object.create(null);for(let A of o.definitions)switch(A.kind){case Id.Kind.OPERATION_DEFINITION:if(c==null){if(h!==void 0)return[new Ue.GraphQLError("Must provide operation name if query contains multiple operations.")];h=A}else((r=A.name)===null||r===void 0?void 0:r.value)===c&&(h=A);break;case Id.Kind.FRAGMENT_DEFINITION:O[A.name.value]=A;break;default:}if(!h)return c!=null?[new Ue.GraphQLError(`Unknown operation named "${c}".`)]:[new Ue.GraphQLError("Must provide an operation.")];let j=(n=h.variableDefinitions)!==null&&n!==void 0?n:[],C=(0,Ad.getVariableValues)(i,j,u??{},{maxErrors:(t=m?.maxCoercionErrors)!==null&&t!==void 0?t:50});return C.errors?C.errors:{schema:i,fragments:O,rootValue:s,contextValue:a,operation:h,variableValues:C.coerced,fieldResolver:l??Hu,typeResolver:p??Fd,subscribeFieldResolver:f??Hu,errors:[]}}function sO(e,r,n){let t=e.schema.getRootType(r.operation);if(t==null)throw new Ue.GraphQLError(`Schema is not configured to execute ${r.operation} operation.`,{nodes:r});let i=(0,Dd.collectFields)(e.schema,e.fragments,e.variableValues,t,r.selectionSet),o=void 0;switch(r.operation){case Ku.OperationTypeNode.QUERY:return to(e,t,n,o,i);case Ku.OperationTypeNode.MUTATION:return aO(e,t,n,o,i);case Ku.OperationTypeNode.SUBSCRIPTION:return to(e,t,n,o,i)}}function aO(e,r,n,t,i){return(0,nO.promiseReduce)(i.entries(),(o,[s,a])=>{let u=(0,un.addPath)(t,s,r.name),c=wd(e,r,n,a,u);return c===void 0?o:(0,rr.isPromise)(c)?c.then(l=>(o[s]=l,o)):(o[s]=c,o)},Object.create(null))}function to(e,r,n,t,i){let o=Object.create(null),s=!1;try{for(let[a,u]of i.entries()){let c=(0,un.addPath)(t,a,r.name),l=wd(e,r,n,u,c);l!==void 0&&(o[a]=l,(0,rr.isPromise)(l)&&(s=!0))}}catch(a){if(s)return(0,Nd.promiseForObject)(o).finally(()=>{throw a});throw a}return s?(0,Nd.promiseForObject)(o):o}function wd(e,r,n,t,i){var o;let s=kd(e.schema,r,t[0]);if(!s)return;let a=s.type,u=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver,c=xd(e,s,t,r,i);try{let l=(0,Ad.getArgumentValues)(s,t[0],e.variableValues),p=e.contextValue,f=u(n,l,p,c),m;return(0,rr.isPromise)(f)?m=f.then(h=>Dt(e,a,t,c,i,h)):m=Dt(e,a,t,c,i,f),(0,rr.isPromise)(m)?m.then(void 0,h=>{let O=(0,no.locatedError)(h,t,(0,un.pathToArray)(i));return io(O,a,e)}):m}catch(l){let p=(0,no.locatedError)(l,t,(0,un.pathToArray)(i));return io(p,a,e)}}function xd(e,r,n,t,i){return{fieldName:r.name,fieldNodes:n,returnType:r.type,parentType:t,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function io(e,r,n){if((0,Vr.isNonNullType)(r))throw e;return n.errors.push(e),null}function Dt(e,r,n,t,i,o){if(o instanceof Error)throw o;if((0,Vr.isNonNullType)(r)){let s=Dt(e,r.ofType,n,t,i,o);if(s===null)throw new Error(`Cannot return null for non-nullable field ${t.parentType.name}.${t.fieldName}.`);return s}if(o==null)return null;if((0,Vr.isListType)(r))return uO(e,r,n,t,i,o);if((0,Vr.isLeafType)(r))return cO(r,o);if((0,Vr.isAbstractType)(r))return lO(e,r,n,t,i,o);if((0,Vr.isObjectType)(r))return Yu(e,r,n,t,i,o);(0,Z_.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,an.inspect)(r))}function uO(e,r,n,t,i,o){if(!(0,eO.isIterableObject)(o))throw new Ue.GraphQLError(`Expected Iterable, but did not find one for field "${t.parentType.name}.${t.fieldName}".`);let s=r.ofType,a=!1,u=Array.from(o,(c,l)=>{let p=(0,un.addPath)(i,l,void 0);try{let f;return(0,rr.isPromise)(c)?f=c.then(m=>Dt(e,s,n,t,p,m)):f=Dt(e,s,n,t,p,c),(0,rr.isPromise)(f)?(a=!0,f.then(void 0,m=>{let h=(0,no.locatedError)(m,n,(0,un.pathToArray)(p));return io(h,s,e)})):f}catch(f){let m=(0,no.locatedError)(f,n,(0,un.pathToArray)(p));return io(m,s,e)}});return a?Promise.all(u):u}function cO(e,r){let n=e.serialize(r);if(n==null)throw new Error(`Expected \`${(0,an.inspect)(e)}.serialize(${(0,an.inspect)(r)})\` to return non-nullable value, returned: ${(0,an.inspect)(n)}`);return n}function lO(e,r,n,t,i,o){var s;let a=(s=r.resolveType)!==null&&s!==void 0?s:e.typeResolver,u=e.contextValue,c=a(o,u,t,r);return(0,rr.isPromise)(c)?c.then(l=>Yu(e,Ld(l,e,r,n,t,o),n,t,i,o)):Yu(e,Ld(c,e,r,n,t,o),n,t,i,o)}function Ld(e,r,n,t,i,o){if(e==null)throw new Ue.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,t);if((0,Vr.isObjectType)(e))throw new Ue.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Ue.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,an.inspect)(o)}, received "${(0,an.inspect)(e)}".`);let s=r.schema.getType(e);if(s==null)throw new Ue.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:t});if(!(0,Vr.isObjectType)(s))throw new Ue.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:t});if(!r.schema.isSubType(n,s))throw new Ue.GraphQLError(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:t});return s}function Yu(e,r,n,t,i,o){let s=iO(e,r,n);if(r.isTypeOf){let a=r.isTypeOf(o,e.contextValue,t);if((0,rr.isPromise)(a))return a.then(u=>{if(!u)throw Sd(r,o,n);return to(e,r,o,i,s)});if(!a)throw Sd(r,o,n)}return to(e,r,o,i,s)}function Sd(e,r,n){return new Ue.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,an.inspect)(r)}.`,{nodes:n})}var Fd=function(e,r,n,t){if((0,Ju.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(t),o=[];for(let s=0;s<i.length;s++){let a=i[s];if(a.isTypeOf){let u=a.isTypeOf(e,r,n);if((0,rr.isPromise)(u))o[s]=u;else if(u)return a.name}}if(o.length)return Promise.all(o).then(s=>{for(let a=0;a<s.length;a++)if(s[a])return i[a].name})};$e.defaultTypeResolver=Fd;var Hu=function(e,r,n,t){if((0,Ju.isObjectLike)(e)||typeof e=="function"){let i=e[t.fieldName];return typeof i=="function"?e[t.fieldName](r,n,t):i}};$e.defaultFieldResolver=Hu;function kd(e,r,n){let t=n.name.value;return t===wn.SchemaMetaFieldDef.name&&e.getQueryType()===r?wn.SchemaMetaFieldDef:t===wn.TypeMetaFieldDef.name&&e.getQueryType()===r?wn.TypeMetaFieldDef:t===wn.TypeNameMetaFieldDef.name?wn.TypeNameMetaFieldDef:r.getFields()[t]}});var qd=y(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.graphql=vO;oo.graphqlSync=TO;var pO=Se(),fO=Zt(),dO=En(),mO=yt(),hO=St(),yO=At();function vO(e){return new Promise(r=>r(Cd(e)))}function TO(e){let r=Cd(e);if((0,fO.isPromise)(r))throw new Error("GraphQL execution failed to complete synchronously.");return r}function Cd(e){arguments.length<2||(0,pO.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:r,source:n,rootValue:t,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u}=e,c=(0,mO.validateSchema)(r);if(c.length>0)return{errors:c};let l;try{l=(0,dO.parse)(n)}catch(f){return{errors:[f]}}let p=(0,hO.validate)(r,l);return p.length>0?{errors:p}:(0,yO.execute)({schema:r,document:l,rootValue:t,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u})}});var Vd=y(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});Object.defineProperty(g,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return nr.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(g,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Lr.GRAPHQL_MAX_INT}});Object.defineProperty(g,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Lr.GRAPHQL_MIN_INT}});Object.defineProperty(g,"GraphQLBoolean",{enumerable:!0,get:function(){return Lr.GraphQLBoolean}});Object.defineProperty(g,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return nr.GraphQLDeprecatedDirective}});Object.defineProperty(g,"GraphQLDirective",{enumerable:!0,get:function(){return nr.GraphQLDirective}});Object.defineProperty(g,"GraphQLEnumType",{enumerable:!0,get:function(){return w.GraphQLEnumType}});Object.defineProperty(g,"GraphQLFloat",{enumerable:!0,get:function(){return Lr.GraphQLFloat}});Object.defineProperty(g,"GraphQLID",{enumerable:!0,get:function(){return Lr.GraphQLID}});Object.defineProperty(g,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return nr.GraphQLIncludeDirective}});Object.defineProperty(g,"GraphQLInputObjectType",{enumerable:!0,get:function(){return w.GraphQLInputObjectType}});Object.defineProperty(g,"GraphQLInt",{enumerable:!0,get:function(){return Lr.GraphQLInt}});Object.defineProperty(g,"GraphQLInterfaceType",{enumerable:!0,get:function(){return w.GraphQLInterfaceType}});Object.defineProperty(g,"GraphQLList",{enumerable:!0,get:function(){return w.GraphQLList}});Object.defineProperty(g,"GraphQLNonNull",{enumerable:!0,get:function(){return w.GraphQLNonNull}});Object.defineProperty(g,"GraphQLObjectType",{enumerable:!0,get:function(){return w.GraphQLObjectType}});Object.defineProperty(g,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return nr.GraphQLOneOfDirective}});Object.defineProperty(g,"GraphQLScalarType",{enumerable:!0,get:function(){return w.GraphQLScalarType}});Object.defineProperty(g,"GraphQLSchema",{enumerable:!0,get:function(){return Wu.GraphQLSchema}});Object.defineProperty(g,"GraphQLSkipDirective",{enumerable:!0,get:function(){return nr.GraphQLSkipDirective}});Object.defineProperty(g,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return nr.GraphQLSpecifiedByDirective}});Object.defineProperty(g,"GraphQLString",{enumerable:!0,get:function(){return Lr.GraphQLString}});Object.defineProperty(g,"GraphQLUnionType",{enumerable:!0,get:function(){return w.GraphQLUnionType}});Object.defineProperty(g,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Pe.SchemaMetaFieldDef}});Object.defineProperty(g,"TypeKind",{enumerable:!0,get:function(){return Pe.TypeKind}});Object.defineProperty(g,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Pe.TypeMetaFieldDef}});Object.defineProperty(g,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Pe.TypeNameMetaFieldDef}});Object.defineProperty(g,"__Directive",{enumerable:!0,get:function(){return Pe.__Directive}});Object.defineProperty(g,"__DirectiveLocation",{enumerable:!0,get:function(){return Pe.__DirectiveLocation}});Object.defineProperty(g,"__EnumValue",{enumerable:!0,get:function(){return Pe.__EnumValue}});Object.defineProperty(g,"__Field",{enumerable:!0,get:function(){return Pe.__Field}});Object.defineProperty(g,"__InputValue",{enumerable:!0,get:function(){return Pe.__InputValue}});Object.defineProperty(g,"__Schema",{enumerable:!0,get:function(){return Pe.__Schema}});Object.defineProperty(g,"__Type",{enumerable:!0,get:function(){return Pe.__Type}});Object.defineProperty(g,"__TypeKind",{enumerable:!0,get:function(){return Pe.__TypeKind}});Object.defineProperty(g,"assertAbstractType",{enumerable:!0,get:function(){return w.assertAbstractType}});Object.defineProperty(g,"assertCompositeType",{enumerable:!0,get:function(){return w.assertCompositeType}});Object.defineProperty(g,"assertDirective",{enumerable:!0,get:function(){return nr.assertDirective}});Object.defineProperty(g,"assertEnumType",{enumerable:!0,get:function(){return w.assertEnumType}});Object.defineProperty(g,"assertEnumValueName",{enumerable:!0,get:function(){return Gd.assertEnumValueName}});Object.defineProperty(g,"assertInputObjectType",{enumerable:!0,get:function(){return w.assertInputObjectType}});Object.defineProperty(g,"assertInputType",{enumerable:!0,get:function(){return w.assertInputType}});Object.defineProperty(g,"assertInterfaceType",{enumerable:!0,get:function(){return w.assertInterfaceType}});Object.defineProperty(g,"assertLeafType",{enumerable:!0,get:function(){return w.assertLeafType}});Object.defineProperty(g,"assertListType",{enumerable:!0,get:function(){return w.assertListType}});Object.defineProperty(g,"assertName",{enumerable:!0,get:function(){return Gd.assertName}});Object.defineProperty(g,"assertNamedType",{enumerable:!0,get:function(){return w.assertNamedType}});Object.defineProperty(g,"assertNonNullType",{enumerable:!0,get:function(){return w.assertNonNullType}});Object.defineProperty(g,"assertNullableType",{enumerable:!0,get:function(){return w.assertNullableType}});Object.defineProperty(g,"assertObjectType",{enumerable:!0,get:function(){return w.assertObjectType}});Object.defineProperty(g,"assertOutputType",{enumerable:!0,get:function(){return w.assertOutputType}});Object.defineProperty(g,"assertScalarType",{enumerable:!0,get:function(){return w.assertScalarType}});Object.defineProperty(g,"assertSchema",{enumerable:!0,get:function(){return Wu.assertSchema}});Object.defineProperty(g,"assertType",{enumerable:!0,get:function(){return w.assertType}});Object.defineProperty(g,"assertUnionType",{enumerable:!0,get:function(){return w.assertUnionType}});Object.defineProperty(g,"assertValidSchema",{enumerable:!0,get:function(){return Md.assertValidSchema}});Object.defineProperty(g,"assertWrappingType",{enumerable:!0,get:function(){return w.assertWrappingType}});Object.defineProperty(g,"getNamedType",{enumerable:!0,get:function(){return w.getNamedType}});Object.defineProperty(g,"getNullableType",{enumerable:!0,get:function(){return w.getNullableType}});Object.defineProperty(g,"introspectionTypes",{enumerable:!0,get:function(){return Pe.introspectionTypes}});Object.defineProperty(g,"isAbstractType",{enumerable:!0,get:function(){return w.isAbstractType}});Object.defineProperty(g,"isCompositeType",{enumerable:!0,get:function(){return w.isCompositeType}});Object.defineProperty(g,"isDirective",{enumerable:!0,get:function(){return nr.isDirective}});Object.defineProperty(g,"isEnumType",{enumerable:!0,get:function(){return w.isEnumType}});Object.defineProperty(g,"isInputObjectType",{enumerable:!0,get:function(){return w.isInputObjectType}});Object.defineProperty(g,"isInputType",{enumerable:!0,get:function(){return w.isInputType}});Object.defineProperty(g,"isInterfaceType",{enumerable:!0,get:function(){return w.isInterfaceType}});Object.defineProperty(g,"isIntrospectionType",{enumerable:!0,get:function(){return Pe.isIntrospectionType}});Object.defineProperty(g,"isLeafType",{enumerable:!0,get:function(){return w.isLeafType}});Object.defineProperty(g,"isListType",{enumerable:!0,get:function(){return w.isListType}});Object.defineProperty(g,"isNamedType",{enumerable:!0,get:function(){return w.isNamedType}});Object.defineProperty(g,"isNonNullType",{enumerable:!0,get:function(){return w.isNonNullType}});Object.defineProperty(g,"isNullableType",{enumerable:!0,get:function(){return w.isNullableType}});Object.defineProperty(g,"isObjectType",{enumerable:!0,get:function(){return w.isObjectType}});Object.defineProperty(g,"isOutputType",{enumerable:!0,get:function(){return w.isOutputType}});Object.defineProperty(g,"isRequiredArgument",{enumerable:!0,get:function(){return w.isRequiredArgument}});Object.defineProperty(g,"isRequiredInputField",{enumerable:!0,get:function(){return w.isRequiredInputField}});Object.defineProperty(g,"isScalarType",{enumerable:!0,get:function(){return w.isScalarType}});Object.defineProperty(g,"isSchema",{enumerable:!0,get:function(){return Wu.isSchema}});Object.defineProperty(g,"isSpecifiedDirective",{enumerable:!0,get:function(){return nr.isSpecifiedDirective}});Object.defineProperty(g,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Lr.isSpecifiedScalarType}});Object.defineProperty(g,"isType",{enumerable:!0,get:function(){return w.isType}});Object.defineProperty(g,"isUnionType",{enumerable:!0,get:function(){return w.isUnionType}});Object.defineProperty(g,"isWrappingType",{enumerable:!0,get:function(){return w.isWrappingType}});Object.defineProperty(g,"resolveObjMapThunk",{enumerable:!0,get:function(){return w.resolveObjMapThunk}});Object.defineProperty(g,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return w.resolveReadonlyArrayThunk}});Object.defineProperty(g,"specifiedDirectives",{enumerable:!0,get:function(){return nr.specifiedDirectives}});Object.defineProperty(g,"specifiedScalarTypes",{enumerable:!0,get:function(){return Lr.specifiedScalarTypes}});Object.defineProperty(g,"validateSchema",{enumerable:!0,get:function(){return Md.validateSchema}});var Wu=rn(),w=Q(),nr=Re(),Lr=lr(),Pe=Ve(),Md=yt(),Gd=rt()});var Ud=y($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});Object.defineProperty($,"BREAK",{enumerable:!0,get:function(){return Rt.BREAK}});Object.defineProperty($,"DirectiveLocation",{enumerable:!0,get:function(){return IO.DirectiveLocation}});Object.defineProperty($,"Kind",{enumerable:!0,get:function(){return EO.Kind}});Object.defineProperty($,"Lexer",{enumerable:!0,get:function(){return OO.Lexer}});Object.defineProperty($,"Location",{enumerable:!0,get:function(){return Xu.Location}});Object.defineProperty($,"OperationTypeNode",{enumerable:!0,get:function(){return Xu.OperationTypeNode}});Object.defineProperty($,"Source",{enumerable:!0,get:function(){return gO.Source}});Object.defineProperty($,"Token",{enumerable:!0,get:function(){return Xu.Token}});Object.defineProperty($,"TokenKind",{enumerable:!0,get:function(){return _O.TokenKind}});Object.defineProperty($,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Rt.getEnterLeaveForKind}});Object.defineProperty($,"getLocation",{enumerable:!0,get:function(){return bO.getLocation}});Object.defineProperty($,"getVisitFn",{enumerable:!0,get:function(){return Rt.getVisitFn}});Object.defineProperty($,"isConstValueNode",{enumerable:!0,get:function(){return mr.isConstValueNode}});Object.defineProperty($,"isDefinitionNode",{enumerable:!0,get:function(){return mr.isDefinitionNode}});Object.defineProperty($,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return mr.isExecutableDefinitionNode}});Object.defineProperty($,"isSelectionNode",{enumerable:!0,get:function(){return mr.isSelectionNode}});Object.defineProperty($,"isTypeDefinitionNode",{enumerable:!0,get:function(){return mr.isTypeDefinitionNode}});Object.defineProperty($,"isTypeExtensionNode",{enumerable:!0,get:function(){return mr.isTypeExtensionNode}});Object.defineProperty($,"isTypeNode",{enumerable:!0,get:function(){return mr.isTypeNode}});Object.defineProperty($,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return mr.isTypeSystemDefinitionNode}});Object.defineProperty($,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return mr.isTypeSystemExtensionNode}});Object.defineProperty($,"isValueNode",{enumerable:!0,get:function(){return mr.isValueNode}});Object.defineProperty($,"parse",{enumerable:!0,get:function(){return so.parse}});Object.defineProperty($,"parseConstValue",{enumerable:!0,get:function(){return so.parseConstValue}});Object.defineProperty($,"parseType",{enumerable:!0,get:function(){return so.parseType}});Object.defineProperty($,"parseValue",{enumerable:!0,get:function(){return so.parseValue}});Object.defineProperty($,"print",{enumerable:!0,get:function(){return NO.print}});Object.defineProperty($,"printLocation",{enumerable:!0,get:function(){return Qd.printLocation}});Object.defineProperty($,"printSourceLocation",{enumerable:!0,get:function(){return Qd.printSourceLocation}});Object.defineProperty($,"visit",{enumerable:!0,get:function(){return Rt.visit}});Object.defineProperty($,"visitInParallel",{enumerable:!0,get:function(){return Rt.visitInParallel}});var gO=ci(),bO=ei(),Qd=Ko(),EO=V(),_O=Yn(),OO=oi(),so=En(),NO=xe(),Rt=Jr(),Xu=ar(),mr=tn(),IO=gn()});var $d=y(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.isAsyncIterable=LO;function LO(e){return typeof e?.[Symbol.asyncIterator]=="function"}});var Kd=y(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.mapAsyncIterator=SO;function SO(e,r){let n=e[Symbol.asyncIterator]();async function t(i){if(i.done)return i;try{return{value:await r(i.value),done:!1}}catch(o){if(typeof n.return=="function")try{await n.return()}catch{}throw o}}return{async next(){return t(await n.next())},async return(){return typeof n.return=="function"?t(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw=="function")return t(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}});var Jd=y(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.createSourceEventStream=Hd;ao.subscribe=xO;var DO=Se(),AO=J(),Yd=$d(),Bd=gt(),ec=P(),RO=eo(),jO=Ji(),jt=At(),PO=Kd(),wO=jn();async function xO(e){arguments.length<2||(0,DO.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let r=await Hd(e);if(!(0,Yd.isAsyncIterable)(r))return r;let n=t=>(0,jt.execute)({...e,rootValue:t});return(0,PO.mapAsyncIterator)(r,n)}function FO(e){let r=e[0];return r&&"document"in r?r:{schema:r,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function Hd(...e){let r=FO(e),{schema:n,document:t,variableValues:i}=r;(0,jt.assertValidExecutionArguments)(n,t,i);let o=(0,jt.buildExecutionContext)(r);if(!("schema"in o))return{errors:o};try{let s=await kO(o);if(!(0,Yd.isAsyncIterable)(s))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,AO.inspect)(s)}.`);return s}catch(s){if(s instanceof ec.GraphQLError)return{errors:[s]};throw s}}async function kO(e){let{schema:r,fragments:n,operation:t,variableValues:i,rootValue:o}=e,s=r.getSubscriptionType();if(s==null)throw new ec.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:t});let a=(0,jO.collectFields)(r,n,i,s,t.selectionSet),[u,c]=[...a.entries()][0],l=(0,jt.getFieldDef)(r,s,c[0]);if(!l){let h=c[0].name.value;throw new ec.GraphQLError(`The subscription field "${h}" is not defined.`,{nodes:c})}let p=(0,Bd.addPath)(void 0,u,s.name),f=(0,jt.buildResolveInfo)(e,l,c,s,p);try{var m;let h=(0,wO.getArgumentValues)(l,c[0],i),O=e.contextValue,C=await((m=l.subscribe)!==null&&m!==void 0?m:e.subscribeFieldResolver)(o,h,O,f);if(C instanceof Error)throw C;return C}catch(h){throw(0,RO.locatedError)(h,c,(0,Bd.pathToArray)(p))}}});var Xd=y(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Object.defineProperty(Ke,"createSourceEventStream",{enumerable:!0,get:function(){return Wd.createSourceEventStream}});Object.defineProperty(Ke,"defaultFieldResolver",{enumerable:!0,get:function(){return uo.defaultFieldResolver}});Object.defineProperty(Ke,"defaultTypeResolver",{enumerable:!0,get:function(){return uo.defaultTypeResolver}});Object.defineProperty(Ke,"execute",{enumerable:!0,get:function(){return uo.execute}});Object.defineProperty(Ke,"executeSync",{enumerable:!0,get:function(){return uo.executeSync}});Object.defineProperty(Ke,"getArgumentValues",{enumerable:!0,get:function(){return rc.getArgumentValues}});Object.defineProperty(Ke,"getDirectiveValues",{enumerable:!0,get:function(){return rc.getDirectiveValues}});Object.defineProperty(Ke,"getVariableValues",{enumerable:!0,get:function(){return rc.getVariableValues}});Object.defineProperty(Ke,"responsePathAsArray",{enumerable:!0,get:function(){return CO.pathToArray}});Object.defineProperty(Ke,"subscribe",{enumerable:!0,get:function(){return Wd.subscribe}});var CO=gt(),uo=At(),Wd=Jd(),rc=jn()});var zd=y(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.NoDeprecatedCustomRule=qO;var nc=Oe(),Pt=P(),tc=Q();function qO(e){return{Field(r){let n=e.getFieldDef(),t=n?.deprecationReason;if(n&&t!=null){let i=e.getParentType();i!=null||(0,nc.invariant)(!1),e.reportError(new Pt.GraphQLError(`The field ${i.name}.${n.name} is deprecated. ${t}`,{nodes:r}))}},Argument(r){let n=e.getArgument(),t=n?.deprecationReason;if(n&&t!=null){let i=e.getDirective();if(i!=null)e.reportError(new Pt.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${t}`,{nodes:r}));else{let o=e.getParentType(),s=e.getFieldDef();o!=null&&s!=null||(0,nc.invariant)(!1),e.reportError(new Pt.GraphQLError(`Field "${o.name}.${s.name}" argument "${n.name}" is deprecated. ${t}`,{nodes:r}))}}},ObjectField(r){let n=(0,tc.getNamedType)(e.getParentInputType());if((0,tc.isInputObjectType)(n)){let t=n.getFields()[r.name.value],i=t?.deprecationReason;i!=null&&e.reportError(new Pt.GraphQLError(`The input field ${n.name}.${t.name} is deprecated. ${i}`,{nodes:r}))}},EnumValue(r){let n=e.getEnumValue(),t=n?.deprecationReason;if(n&&t!=null){let i=(0,tc.getNamedType)(e.getInputType());i!=null||(0,nc.invariant)(!1),e.reportError(new Pt.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${t}`,{nodes:r}))}}}}});var Zd=y(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.NoSchemaIntrospectionCustomRule=QO;var MO=P(),GO=Q(),VO=Ve();function QO(e){return{Field(r){let n=(0,GO.getNamedType)(e.getType());n&&(0,VO.isIntrospectionType)(n)&&e.reportError(new MO.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${r.name.value}".`,{nodes:r}))}}}});var rm=y(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});Object.defineProperty(k,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return KO.ExecutableDefinitionsRule}});Object.defineProperty(k,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return BO.FieldsOnCorrectTypeRule}});Object.defineProperty(k,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return YO.FragmentsOnCompositeTypesRule}});Object.defineProperty(k,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return HO.KnownArgumentNamesRule}});Object.defineProperty(k,"KnownDirectivesRule",{enumerable:!0,get:function(){return JO.KnownDirectivesRule}});Object.defineProperty(k,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return WO.KnownFragmentNamesRule}});Object.defineProperty(k,"KnownTypeNamesRule",{enumerable:!0,get:function(){return XO.KnownTypeNamesRule}});Object.defineProperty(k,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return zO.LoneAnonymousOperationRule}});Object.defineProperty(k,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return TN.LoneSchemaDefinitionRule}});Object.defineProperty(k,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return vN.MaxIntrospectionDepthRule}});Object.defineProperty(k,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return LN.NoDeprecatedCustomRule}});Object.defineProperty(k,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return ZO.NoFragmentCyclesRule}});Object.defineProperty(k,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return SN.NoSchemaIntrospectionCustomRule}});Object.defineProperty(k,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return eN.NoUndefinedVariablesRule}});Object.defineProperty(k,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return rN.NoUnusedFragmentsRule}});Object.defineProperty(k,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return nN.NoUnusedVariablesRule}});Object.defineProperty(k,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return tN.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(k,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return iN.PossibleFragmentSpreadsRule}});Object.defineProperty(k,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return IN.PossibleTypeExtensionsRule}});Object.defineProperty(k,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return oN.ProvidedRequiredArgumentsRule}});Object.defineProperty(k,"ScalarLeafsRule",{enumerable:!0,get:function(){return sN.ScalarLeafsRule}});Object.defineProperty(k,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return aN.SingleFieldSubscriptionsRule}});Object.defineProperty(k,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return ON.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(k,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return uN.UniqueArgumentNamesRule}});Object.defineProperty(k,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return NN.UniqueDirectiveNamesRule}});Object.defineProperty(k,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return cN.UniqueDirectivesPerLocationRule}});Object.defineProperty(k,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return EN.UniqueEnumValueNamesRule}});Object.defineProperty(k,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return _N.UniqueFieldDefinitionNamesRule}});Object.defineProperty(k,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return lN.UniqueFragmentNamesRule}});Object.defineProperty(k,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return pN.UniqueInputFieldNamesRule}});Object.defineProperty(k,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return fN.UniqueOperationNamesRule}});Object.defineProperty(k,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return gN.UniqueOperationTypesRule}});Object.defineProperty(k,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return bN.UniqueTypeNamesRule}});Object.defineProperty(k,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return dN.UniqueVariableNamesRule}});Object.defineProperty(k,"ValidationContext",{enumerable:!0,get:function(){return $O.ValidationContext}});Object.defineProperty(k,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return mN.ValuesOfCorrectTypeRule}});Object.defineProperty(k,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return hN.VariablesAreInputTypesRule}});Object.defineProperty(k,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return yN.VariablesInAllowedPositionRule}});Object.defineProperty(k,"recommendedRules",{enumerable:!0,get:function(){return em.recommendedRules}});Object.defineProperty(k,"specifiedRules",{enumerable:!0,get:function(){return em.specifiedRules}});Object.defineProperty(k,"validate",{enumerable:!0,get:function(){return UO.validate}});var UO=St(),$O=Cu(),em=xu(),KO=Js(),BO=Xs(),YO=Zs(),HO=ea(),JO=ia(),WO=sa(),XO=ca(),zO=pa(),ZO=va(),eN=ga(),rN=Ea(),nN=Oa(),tN=wa(),iN=ka(),oN=Ga(),sN=$a(),aN=Za(),uN=iu(),cN=cu(),lN=yu(),pN=Tu(),fN=bu(),dN=Lu(),mN=Au(),hN=ju(),yN=wu(),vN=ha(),TN=da(),gN=_u(),bN=Nu(),EN=pu(),_N=mu(),ON=nu(),NN=su(),IN=qa(),LN=zd(),SN=Zd()});var nm=y(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});Object.defineProperty(cn,"GraphQLError",{enumerable:!0,get:function(){return sc.GraphQLError}});Object.defineProperty(cn,"formatError",{enumerable:!0,get:function(){return sc.formatError}});Object.defineProperty(cn,"locatedError",{enumerable:!0,get:function(){return AN.locatedError}});Object.defineProperty(cn,"printError",{enumerable:!0,get:function(){return sc.printError}});Object.defineProperty(cn,"syntaxError",{enumerable:!0,get:function(){return DN.syntaxError}});var sc=P(),DN=ni(),AN=eo()});var uc=y(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.getIntrospectionQuery=RN;function RN(e){let r={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=r.descriptions?"description":"",t=r.specifiedByUrl?"specifiedByURL":"",i=r.directiveIsRepeatable?"isRepeatable":"",o=r.schemaDescription?n:"";function s(u){return r.inputValueDeprecation?u:""}let a=r.oneOf?"isOneOf":"";return`
59
59
  query IntrospectionQuery {
60
60
  __schema {
61
61
  ${o}
@@ -161,52 +161,52 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
161
161
  }
162
162
  }
163
163
  }
164
- `}});var nm=y(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.getOperationAST=PN;var jN=V();function PN(e,r){let n=null;for(let i of e.definitions)if(i.kind===jN.Kind.OPERATION_DEFINITION){var t;if(r==null){if(n)return null;n=i}else if(((t=i.name)===null||t===void 0?void 0:t.value)===r)return i}return n}});var tm=y(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.getOperationRootType=wN;var co=P();function wN(e,r){if(r.operation==="query"){let n=e.getQueryType();if(!n)throw new co.GraphQLError("Schema does not define the required query root type.",{nodes:r});return n}if(r.operation==="mutation"){let n=e.getMutationType();if(!n)throw new co.GraphQLError("Schema is not configured for mutations.",{nodes:r});return n}if(r.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new co.GraphQLError("Schema is not configured for subscriptions.",{nodes:r});return n}throw new co.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:r})}});var im=y(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.introspectionFromSchema=qN;var xN=Oe(),FN=En(),kN=At(),CN=uc();function qN(e,r){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...r},t=(0,FN.parse)((0,CN.getIntrospectionQuery)(n)),i=(0,kN.executeSync)({schema:e,document:t});return!i.errors&&i.data||(0,xN.invariant)(!1),i.data}});var sm=y(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.buildClientSchema=KN;var MN=Se(),Fe=J(),om=sr(),lo=Zn(),GN=En(),ke=Q(),VN=Re(),hr=Ve(),QN=lr(),UN=rn(),$N=Ot();function KN(e,r){(0,om.isObjectLike)(e)&&(0,om.isObjectLike)(e.__schema)||(0,MN.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Fe.inspect)(e)}.`);let n=e.__schema,t=(0,lo.keyValMap)(n.types,T=>T.name,T=>f(T));for(let T of[...QN.specifiedScalarTypes,...hr.introspectionTypes])t[T.name]&&(t[T.name]=T);let i=n.queryType?l(n.queryType):null,o=n.mutationType?l(n.mutationType):null,s=n.subscriptionType?l(n.subscriptionType):null,a=n.directives?n.directives.map(_o):[];return new UN.GraphQLSchema({description:n.description,query:i,mutation:o,subscription:s,types:Object.values(t),directives:a,assumeValid:r?.assumeValid});function u(T){if(T.kind===hr.TypeKind.LIST){let F=T.ofType;if(!F)throw new Error("Decorated type deeper than introspection query.");return new ke.GraphQLList(u(F))}if(T.kind===hr.TypeKind.NON_NULL){let F=T.ofType;if(!F)throw new Error("Decorated type deeper than introspection query.");let we=u(F);return new ke.GraphQLNonNull((0,ke.assertNullableType)(we))}return c(T)}function c(T){let F=T.name;if(!F)throw new Error(`Unknown type reference: ${(0,Fe.inspect)(T)}.`);let we=t[F];if(!we)throw new Error(`Invalid or incomplete schema, unknown type: ${F}. Ensure that a full introspection query is used in order to build a client schema.`);return we}function l(T){return(0,ke.assertObjectType)(c(T))}function p(T){return(0,ke.assertInterfaceType)(c(T))}function f(T){if(T!=null&&T.name!=null&&T.kind!=null)switch(T.kind){case hr.TypeKind.SCALAR:return m(T);case hr.TypeKind.OBJECT:return O(T);case hr.TypeKind.INTERFACE:return j(T);case hr.TypeKind.UNION:return C(T);case hr.TypeKind.ENUM:return A(T);case hr.TypeKind.INPUT_OBJECT:return ce(T)}let F=(0,Fe.inspect)(T);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${F}.`)}function m(T){return new ke.GraphQLScalarType({name:T.name,description:T.description,specifiedByURL:T.specifiedByURL})}function h(T){if(T.interfaces===null&&T.kind===hr.TypeKind.INTERFACE)return[];if(!T.interfaces){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing interfaces: ${F}.`)}return T.interfaces.map(p)}function O(T){return new ke.GraphQLObjectType({name:T.name,description:T.description,interfaces:()=>h(T),fields:()=>ie(T)})}function j(T){return new ke.GraphQLInterfaceType({name:T.name,description:T.description,interfaces:()=>h(T),fields:()=>ie(T)})}function C(T){if(!T.possibleTypes){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing possibleTypes: ${F}.`)}return new ke.GraphQLUnionType({name:T.name,description:T.description,types:()=>T.possibleTypes.map(l)})}function A(T){if(!T.enumValues){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing enumValues: ${F}.`)}return new ke.GraphQLEnumType({name:T.name,description:T.description,values:(0,lo.keyValMap)(T.enumValues,F=>F.name,F=>({description:F.description,deprecationReason:F.deprecationReason}))})}function ce(T){if(!T.inputFields){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing inputFields: ${F}.`)}return new ke.GraphQLInputObjectType({name:T.name,description:T.description,fields:()=>Ar(T.inputFields),isOneOf:T.isOneOf})}function ie(T){if(!T.fields)throw new Error(`Introspection result missing fields: ${(0,Fe.inspect)(T)}.`);return(0,lo.keyValMap)(T.fields,F=>F.name,gr)}function gr(T){let F=u(T.type);if(!(0,ke.isOutputType)(F)){let we=(0,Fe.inspect)(F);throw new Error(`Introspection must provide output type for fields, but received: ${we}.`)}if(!T.args){let we=(0,Fe.inspect)(T);throw new Error(`Introspection result missing field args: ${we}.`)}return{description:T.description,deprecationReason:T.deprecationReason,type:F,args:Ar(T.args)}}function Ar(T){return(0,lo.keyValMap)(T,F=>F.name,ln)}function ln(T){let F=u(T.type);if(!(0,ke.isInputType)(F)){let pn=(0,Fe.inspect)(F);throw new Error(`Introspection must provide input type for arguments, but received: ${pn}.`)}let we=T.defaultValue!=null?(0,$N.valueFromAST)((0,GN.parseValue)(T.defaultValue),F):void 0;return{description:T.description,type:F,defaultValue:we,deprecationReason:T.deprecationReason}}function _o(T){if(!T.args){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing directive args: ${F}.`)}if(!T.locations){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing directive locations: ${F}.`)}return new VN.GraphQLDirective({name:T.name,description:T.description,isRepeatable:T.isRepeatable,locations:T.locations.slice(),args:Ar(T.args)})}}});var mc=y(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.extendSchema=XN;fo.extendSchemaImpl=mm;var BN=Se(),YN=J(),HN=Oe(),JN=xr(),wt=ps(),Be=V(),am=tn(),te=Q(),xt=Re(),fm=Ve(),dm=lr(),um=rn(),WN=St(),dc=jn(),cm=Ot();function XN(e,r,n){(0,um.assertSchema)(e),r!=null&&r.kind===Be.Kind.DOCUMENT||(0,BN.devAssert)(!1,"Must provide valid Document AST."),n?.assumeValid!==!0&&n?.assumeValidSDL!==!0&&(0,WN.assertValidSDLExtension)(r,e);let t=e.toConfig(),i=mm(t,r,n);return t===i?e:new um.GraphQLSchema(i)}function mm(e,r,n){var t,i,o,s;let a=[],u=Object.create(null),c=[],l,p=[];for(let v of r.definitions)if(v.kind===Be.Kind.SCHEMA_DEFINITION)l=v;else if(v.kind===Be.Kind.SCHEMA_EXTENSION)p.push(v);else if((0,am.isTypeDefinitionNode)(v))a.push(v);else if((0,am.isTypeExtensionNode)(v)){let L=v.name.value,_=u[L];u[L]=_?_.concat([v]):[v]}else v.kind===Be.Kind.DIRECTIVE_DEFINITION&&c.push(v);if(Object.keys(u).length===0&&a.length===0&&c.length===0&&p.length===0&&l==null)return e;let f=Object.create(null);for(let v of e.types)f[v.name]=A(v);for(let v of a){var m;let L=v.name.value;f[L]=(m=lm[L])!==null&&m!==void 0?m:nh(v)}let h={query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription),...l&&we([l]),...we(p)};return{description:(t=l)===null||t===void 0||(i=t.description)===null||i===void 0?void 0:i.value,...h,types:Object.values(f),directives:[...e.directives.map(C),...c.map(rh)],extensions:Object.create(null),astNode:(o=l)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(p),assumeValid:(s=n?.assumeValid)!==null&&s!==void 0?s:!1};function O(v){return(0,te.isListType)(v)?new te.GraphQLList(O(v.ofType)):(0,te.isNonNullType)(v)?new te.GraphQLNonNull(O(v.ofType)):j(v)}function j(v){return f[v.name]}function C(v){let L=v.toConfig();return new xt.GraphQLDirective({...L,args:(0,wt.mapValue)(L.args,F)})}function A(v){if((0,fm.isIntrospectionType)(v)||(0,dm.isSpecifiedScalarType)(v))return v;if((0,te.isScalarType)(v))return gr(v);if((0,te.isObjectType)(v))return Ar(v);if((0,te.isInterfaceType)(v))return ln(v);if((0,te.isUnionType)(v))return _o(v);if((0,te.isEnumType)(v))return ie(v);if((0,te.isInputObjectType)(v))return ce(v);(0,HN.invariant)(!1,"Unexpected type: "+(0,YN.inspect)(v))}function ce(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLInputObjectType({..._,fields:()=>({...(0,wt.mapValue)(_.fields,Z=>({...Z,type:O(Z.type)})),...jc(S)}),extensionASTNodes:_.extensionASTNodes.concat(S)})}function ie(v){var L;let _=v.toConfig(),S=(L=u[v.name])!==null&&L!==void 0?L:[];return new te.GraphQLEnumType({..._,values:{..._.values,...Pc(S)},extensionASTNodes:_.extensionASTNodes.concat(S)})}function gr(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[],Z=_.specifiedByURL;for(let re of S){var de;Z=(de=pm(re))!==null&&de!==void 0?de:Z}return new te.GraphQLScalarType({..._,specifiedByURL:Z,extensionASTNodes:_.extensionASTNodes.concat(S)})}function Ar(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLObjectType({..._,interfaces:()=>[...v.getInterfaces().map(j),...$t(S)],fields:()=>({...(0,wt.mapValue)(_.fields,T),...Ut(S)}),extensionASTNodes:_.extensionASTNodes.concat(S)})}function ln(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLInterfaceType({..._,interfaces:()=>[...v.getInterfaces().map(j),...$t(S)],fields:()=>({...(0,wt.mapValue)(_.fields,T),...Ut(S)}),extensionASTNodes:_.extensionASTNodes.concat(S)})}function _o(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLUnionType({..._,types:()=>[...v.getTypes().map(j),...wc(S)],extensionASTNodes:_.extensionASTNodes.concat(S)})}function T(v){return{...v,type:O(v.type),args:v.args&&(0,wt.mapValue)(v.args,F)}}function F(v){return{...v,type:O(v.type)}}function we(v){let L={};for(let S of v){var _;let Z=(_=S.operationTypes)!==null&&_!==void 0?_:[];for(let de of Z)L[de.operation]=pn(de.type)}return L}function pn(v){var L;let _=v.name.value,S=(L=lm[_])!==null&&L!==void 0?L:f[_];if(S===void 0)throw new Error(`Unknown type: "${_}".`);return S}function kn(v){return v.kind===Be.Kind.LIST_TYPE?new te.GraphQLList(kn(v.type)):v.kind===Be.Kind.NON_NULL_TYPE?new te.GraphQLNonNull(kn(v.type)):pn(v)}function rh(v){var L;return new xt.GraphQLDirective({name:v.name.value,description:(L=v.description)===null||L===void 0?void 0:L.value,locations:v.locations.map(({value:_})=>_),isRepeatable:v.repeatable,args:Rc(v.arguments),astNode:v})}function Ut(v){let L=Object.create(null);for(let Z of v){var _;let de=(_=Z.fields)!==null&&_!==void 0?_:[];for(let re of de){var S;L[re.name.value]={type:kn(re.type),description:(S=re.description)===null||S===void 0?void 0:S.value,args:Rc(re.arguments),deprecationReason:po(re),astNode:re}}}return L}function Rc(v){let L=v??[],_=Object.create(null);for(let Z of L){var S;let de=kn(Z.type);_[Z.name.value]={type:de,description:(S=Z.description)===null||S===void 0?void 0:S.value,defaultValue:(0,cm.valueFromAST)(Z.defaultValue,de),deprecationReason:po(Z),astNode:Z}}return _}function jc(v){let L=Object.create(null);for(let Z of v){var _;let de=(_=Z.fields)!==null&&_!==void 0?_:[];for(let re of de){var S;let fn=kn(re.type);L[re.name.value]={type:fn,description:(S=re.description)===null||S===void 0?void 0:S.value,defaultValue:(0,cm.valueFromAST)(re.defaultValue,fn),deprecationReason:po(re),astNode:re}}}return L}function Pc(v){let L=Object.create(null);for(let Z of v){var _;let de=(_=Z.values)!==null&&_!==void 0?_:[];for(let re of de){var S;L[re.name.value]={description:(S=re.description)===null||S===void 0?void 0:S.value,deprecationReason:po(re),astNode:re}}}return L}function $t(v){return v.flatMap(L=>{var _,S;return(_=(S=L.interfaces)===null||S===void 0?void 0:S.map(pn))!==null&&_!==void 0?_:[]})}function wc(v){return v.flatMap(L=>{var _,S;return(_=(S=L.types)===null||S===void 0?void 0:S.map(pn))!==null&&_!==void 0?_:[]})}function nh(v){var L;let _=v.name.value,S=(L=u[_])!==null&&L!==void 0?L:[];switch(v.kind){case Be.Kind.OBJECT_TYPE_DEFINITION:{var Z;let He=[v,...S];return new te.GraphQLObjectType({name:_,description:(Z=v.description)===null||Z===void 0?void 0:Z.value,interfaces:()=>$t(He),fields:()=>Ut(He),astNode:v,extensionASTNodes:S})}case Be.Kind.INTERFACE_TYPE_DEFINITION:{var de;let He=[v,...S];return new te.GraphQLInterfaceType({name:_,description:(de=v.description)===null||de===void 0?void 0:de.value,interfaces:()=>$t(He),fields:()=>Ut(He),astNode:v,extensionASTNodes:S})}case Be.Kind.ENUM_TYPE_DEFINITION:{var re;let He=[v,...S];return new te.GraphQLEnumType({name:_,description:(re=v.description)===null||re===void 0?void 0:re.value,values:Pc(He),astNode:v,extensionASTNodes:S})}case Be.Kind.UNION_TYPE_DEFINITION:{var fn;let He=[v,...S];return new te.GraphQLUnionType({name:_,description:(fn=v.description)===null||fn===void 0?void 0:fn.value,types:()=>wc(He),astNode:v,extensionASTNodes:S})}case Be.Kind.SCALAR_TYPE_DEFINITION:{var Oo;return new te.GraphQLScalarType({name:_,description:(Oo=v.description)===null||Oo===void 0?void 0:Oo.value,specifiedByURL:pm(v),astNode:v,extensionASTNodes:S})}case Be.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var No;let He=[v,...S];return new te.GraphQLInputObjectType({name:_,description:(No=v.description)===null||No===void 0?void 0:No.value,fields:()=>jc(He),astNode:v,extensionASTNodes:S,isOneOf:zN(v)})}}}}var lm=(0,JN.keyMap)([...dm.specifiedScalarTypes,...fm.introspectionTypes],e=>e.name);function po(e){let r=(0,dc.getDirectiveValues)(xt.GraphQLDeprecatedDirective,e);return r?.reason}function pm(e){let r=(0,dc.getDirectiveValues)(xt.GraphQLSpecifiedByDirective,e);return r?.url}function zN(e){return!!(0,dc.getDirectiveValues)(xt.GraphQLOneOfDirective,e)}});var ym=y(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.buildASTSchema=hm;mo.buildSchema=sI;var ZN=Se(),eI=V(),rI=En(),nI=Re(),tI=rn(),iI=St(),oI=mc();function hm(e,r){e!=null&&e.kind===eI.Kind.DOCUMENT||(0,ZN.devAssert)(!1,"Must provide valid Document AST."),r?.assumeValid!==!0&&r?.assumeValidSDL!==!0&&(0,iI.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},t=(0,oI.extendSchemaImpl)(n,e,r);if(t.astNode==null)for(let o of t.types)switch(o.name){case"Query":t.query=o;break;case"Mutation":t.mutation=o;break;case"Subscription":t.subscription=o;break}let i=[...t.directives,...nI.specifiedDirectives.filter(o=>t.directives.every(s=>s.name!==o.name))];return new tI.GraphQLSchema({...t,directives:i})}function sI(e,r){let n=(0,rI.parse)(e,{noLocation:r?.noLocation,allowLegacyFragmentVariables:r?.allowLegacyFragmentVariables});return hm(n,{assumeValidSDL:r?.assumeValidSDL,assumeValid:r?.assumeValid})}});var gm=y(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.lexicographicSortSchema=dI;var aI=J(),uI=Oe(),cI=Zn(),vm=et(),De=Q(),lI=Re(),pI=Ve(),fI=rn();function dI(e){let r=e.toConfig(),n=(0,cI.keyValMap)(hc(r.types),f=>f.name,p);return new fI.GraphQLSchema({...r,types:Object.values(n),directives:hc(r.directives).map(s),query:o(r.query),mutation:o(r.mutation),subscription:o(r.subscription)});function t(f){return(0,De.isListType)(f)?new De.GraphQLList(t(f.ofType)):(0,De.isNonNullType)(f)?new De.GraphQLNonNull(t(f.ofType)):i(f)}function i(f){return n[f.name]}function o(f){return f&&i(f)}function s(f){let m=f.toConfig();return new lI.GraphQLDirective({...m,locations:Tm(m.locations,h=>h),args:a(m.args)})}function a(f){return ho(f,m=>({...m,type:t(m.type)}))}function u(f){return ho(f,m=>({...m,type:t(m.type),args:m.args&&a(m.args)}))}function c(f){return ho(f,m=>({...m,type:t(m.type)}))}function l(f){return hc(f).map(i)}function p(f){if((0,De.isScalarType)(f)||(0,pI.isIntrospectionType)(f))return f;if((0,De.isObjectType)(f)){let m=f.toConfig();return new De.GraphQLObjectType({...m,interfaces:()=>l(m.interfaces),fields:()=>u(m.fields)})}if((0,De.isInterfaceType)(f)){let m=f.toConfig();return new De.GraphQLInterfaceType({...m,interfaces:()=>l(m.interfaces),fields:()=>u(m.fields)})}if((0,De.isUnionType)(f)){let m=f.toConfig();return new De.GraphQLUnionType({...m,types:()=>l(m.types)})}if((0,De.isEnumType)(f)){let m=f.toConfig();return new De.GraphQLEnumType({...m,values:ho(m.values,h=>h)})}if((0,De.isInputObjectType)(f)){let m=f.toConfig();return new De.GraphQLInputObjectType({...m,fields:()=>c(m.fields)})}(0,uI.invariant)(!1,"Unexpected type: "+(0,aI.inspect)(f))}}function ho(e,r){let n=Object.create(null);for(let t of Object.keys(e).sort(vm.naturalCompare))n[t]=r(e[t]);return n}function hc(e){return Tm(e,r=>r.name)}function Tm(e,r){return e.slice().sort((n,t)=>{let i=r(n),o=r(t);return(0,vm.naturalCompare)(i,o)})}});var Lm=y(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.printIntrospectionSchema=bI;Ft.printSchema=gI;Ft.printType=_m;var mI=J(),hI=Oe(),yI=Kn(),Tc=V(),yo=xe(),xn=Q(),gc=Re(),bm=Ve(),vI=lr(),TI=dt();function gI(e){return Em(e,r=>!(0,gc.isSpecifiedDirective)(r),EI)}function bI(e){return Em(e,gc.isSpecifiedDirective,bm.isIntrospectionType)}function EI(e){return!(0,vI.isSpecifiedScalarType)(e)&&!(0,bm.isIntrospectionType)(e)}function Em(e,r,n){let t=e.getDirectives().filter(r),i=Object.values(e.getTypeMap()).filter(n);return[_I(e),...t.map(o=>RI(o)),...i.map(o=>_m(o))].filter(Boolean).join(`
164
+ `}});var tm=y(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.getOperationAST=PN;var jN=V();function PN(e,r){let n=null;for(let i of e.definitions)if(i.kind===jN.Kind.OPERATION_DEFINITION){var t;if(r==null){if(n)return null;n=i}else if(((t=i.name)===null||t===void 0?void 0:t.value)===r)return i}return n}});var im=y(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.getOperationRootType=wN;var co=P();function wN(e,r){if(r.operation==="query"){let n=e.getQueryType();if(!n)throw new co.GraphQLError("Schema does not define the required query root type.",{nodes:r});return n}if(r.operation==="mutation"){let n=e.getMutationType();if(!n)throw new co.GraphQLError("Schema is not configured for mutations.",{nodes:r});return n}if(r.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new co.GraphQLError("Schema is not configured for subscriptions.",{nodes:r});return n}throw new co.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:r})}});var om=y(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.introspectionFromSchema=qN;var xN=Oe(),FN=En(),kN=At(),CN=uc();function qN(e,r){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...r},t=(0,FN.parse)((0,CN.getIntrospectionQuery)(n)),i=(0,kN.executeSync)({schema:e,document:t});return!i.errors&&i.data||(0,xN.invariant)(!1),i.data}});var am=y(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.buildClientSchema=KN;var MN=Se(),Fe=J(),sm=sr(),lo=Zn(),GN=En(),ke=Q(),VN=Re(),hr=Ve(),QN=lr(),UN=rn(),$N=Ot();function KN(e,r){(0,sm.isObjectLike)(e)&&(0,sm.isObjectLike)(e.__schema)||(0,MN.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Fe.inspect)(e)}.`);let n=e.__schema,t=(0,lo.keyValMap)(n.types,T=>T.name,T=>f(T));for(let T of[...QN.specifiedScalarTypes,...hr.introspectionTypes])t[T.name]&&(t[T.name]=T);let i=n.queryType?l(n.queryType):null,o=n.mutationType?l(n.mutationType):null,s=n.subscriptionType?l(n.subscriptionType):null,a=n.directives?n.directives.map(_o):[];return new UN.GraphQLSchema({description:n.description,query:i,mutation:o,subscription:s,types:Object.values(t),directives:a,assumeValid:r?.assumeValid});function u(T){if(T.kind===hr.TypeKind.LIST){let F=T.ofType;if(!F)throw new Error("Decorated type deeper than introspection query.");return new ke.GraphQLList(u(F))}if(T.kind===hr.TypeKind.NON_NULL){let F=T.ofType;if(!F)throw new Error("Decorated type deeper than introspection query.");let we=u(F);return new ke.GraphQLNonNull((0,ke.assertNullableType)(we))}return c(T)}function c(T){let F=T.name;if(!F)throw new Error(`Unknown type reference: ${(0,Fe.inspect)(T)}.`);let we=t[F];if(!we)throw new Error(`Invalid or incomplete schema, unknown type: ${F}. Ensure that a full introspection query is used in order to build a client schema.`);return we}function l(T){return(0,ke.assertObjectType)(c(T))}function p(T){return(0,ke.assertInterfaceType)(c(T))}function f(T){if(T!=null&&T.name!=null&&T.kind!=null)switch(T.kind){case hr.TypeKind.SCALAR:return m(T);case hr.TypeKind.OBJECT:return O(T);case hr.TypeKind.INTERFACE:return j(T);case hr.TypeKind.UNION:return C(T);case hr.TypeKind.ENUM:return A(T);case hr.TypeKind.INPUT_OBJECT:return ce(T)}let F=(0,Fe.inspect)(T);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${F}.`)}function m(T){return new ke.GraphQLScalarType({name:T.name,description:T.description,specifiedByURL:T.specifiedByURL})}function h(T){if(T.interfaces===null&&T.kind===hr.TypeKind.INTERFACE)return[];if(!T.interfaces){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing interfaces: ${F}.`)}return T.interfaces.map(p)}function O(T){return new ke.GraphQLObjectType({name:T.name,description:T.description,interfaces:()=>h(T),fields:()=>ie(T)})}function j(T){return new ke.GraphQLInterfaceType({name:T.name,description:T.description,interfaces:()=>h(T),fields:()=>ie(T)})}function C(T){if(!T.possibleTypes){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing possibleTypes: ${F}.`)}return new ke.GraphQLUnionType({name:T.name,description:T.description,types:()=>T.possibleTypes.map(l)})}function A(T){if(!T.enumValues){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing enumValues: ${F}.`)}return new ke.GraphQLEnumType({name:T.name,description:T.description,values:(0,lo.keyValMap)(T.enumValues,F=>F.name,F=>({description:F.description,deprecationReason:F.deprecationReason}))})}function ce(T){if(!T.inputFields){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing inputFields: ${F}.`)}return new ke.GraphQLInputObjectType({name:T.name,description:T.description,fields:()=>Ar(T.inputFields),isOneOf:T.isOneOf})}function ie(T){if(!T.fields)throw new Error(`Introspection result missing fields: ${(0,Fe.inspect)(T)}.`);return(0,lo.keyValMap)(T.fields,F=>F.name,gr)}function gr(T){let F=u(T.type);if(!(0,ke.isOutputType)(F)){let we=(0,Fe.inspect)(F);throw new Error(`Introspection must provide output type for fields, but received: ${we}.`)}if(!T.args){let we=(0,Fe.inspect)(T);throw new Error(`Introspection result missing field args: ${we}.`)}return{description:T.description,deprecationReason:T.deprecationReason,type:F,args:Ar(T.args)}}function Ar(T){return(0,lo.keyValMap)(T,F=>F.name,ln)}function ln(T){let F=u(T.type);if(!(0,ke.isInputType)(F)){let pn=(0,Fe.inspect)(F);throw new Error(`Introspection must provide input type for arguments, but received: ${pn}.`)}let we=T.defaultValue!=null?(0,$N.valueFromAST)((0,GN.parseValue)(T.defaultValue),F):void 0;return{description:T.description,type:F,defaultValue:we,deprecationReason:T.deprecationReason}}function _o(T){if(!T.args){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing directive args: ${F}.`)}if(!T.locations){let F=(0,Fe.inspect)(T);throw new Error(`Introspection result missing directive locations: ${F}.`)}return new VN.GraphQLDirective({name:T.name,description:T.description,isRepeatable:T.isRepeatable,locations:T.locations.slice(),args:Ar(T.args)})}}});var mc=y(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.extendSchema=XN;fo.extendSchemaImpl=hm;var BN=Se(),YN=J(),HN=Oe(),JN=xr(),wt=ps(),Be=V(),um=tn(),te=Q(),xt=Re(),dm=Ve(),mm=lr(),cm=rn(),WN=St(),dc=jn(),lm=Ot();function XN(e,r,n){(0,cm.assertSchema)(e),r!=null&&r.kind===Be.Kind.DOCUMENT||(0,BN.devAssert)(!1,"Must provide valid Document AST."),n?.assumeValid!==!0&&n?.assumeValidSDL!==!0&&(0,WN.assertValidSDLExtension)(r,e);let t=e.toConfig(),i=hm(t,r,n);return t===i?e:new cm.GraphQLSchema(i)}function hm(e,r,n){var t,i,o,s;let a=[],u=Object.create(null),c=[],l,p=[];for(let v of r.definitions)if(v.kind===Be.Kind.SCHEMA_DEFINITION)l=v;else if(v.kind===Be.Kind.SCHEMA_EXTENSION)p.push(v);else if((0,um.isTypeDefinitionNode)(v))a.push(v);else if((0,um.isTypeExtensionNode)(v)){let L=v.name.value,_=u[L];u[L]=_?_.concat([v]):[v]}else v.kind===Be.Kind.DIRECTIVE_DEFINITION&&c.push(v);if(Object.keys(u).length===0&&a.length===0&&c.length===0&&p.length===0&&l==null)return e;let f=Object.create(null);for(let v of e.types)f[v.name]=A(v);for(let v of a){var m;let L=v.name.value;f[L]=(m=pm[L])!==null&&m!==void 0?m:th(v)}let h={query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription),...l&&we([l]),...we(p)};return{description:(t=l)===null||t===void 0||(i=t.description)===null||i===void 0?void 0:i.value,...h,types:Object.values(f),directives:[...e.directives.map(C),...c.map(nh)],extensions:Object.create(null),astNode:(o=l)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(p),assumeValid:(s=n?.assumeValid)!==null&&s!==void 0?s:!1};function O(v){return(0,te.isListType)(v)?new te.GraphQLList(O(v.ofType)):(0,te.isNonNullType)(v)?new te.GraphQLNonNull(O(v.ofType)):j(v)}function j(v){return f[v.name]}function C(v){let L=v.toConfig();return new xt.GraphQLDirective({...L,args:(0,wt.mapValue)(L.args,F)})}function A(v){if((0,dm.isIntrospectionType)(v)||(0,mm.isSpecifiedScalarType)(v))return v;if((0,te.isScalarType)(v))return gr(v);if((0,te.isObjectType)(v))return Ar(v);if((0,te.isInterfaceType)(v))return ln(v);if((0,te.isUnionType)(v))return _o(v);if((0,te.isEnumType)(v))return ie(v);if((0,te.isInputObjectType)(v))return ce(v);(0,HN.invariant)(!1,"Unexpected type: "+(0,YN.inspect)(v))}function ce(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLInputObjectType({..._,fields:()=>({...(0,wt.mapValue)(_.fields,Z=>({...Z,type:O(Z.type)})),...jc(S)}),extensionASTNodes:_.extensionASTNodes.concat(S)})}function ie(v){var L;let _=v.toConfig(),S=(L=u[v.name])!==null&&L!==void 0?L:[];return new te.GraphQLEnumType({..._,values:{..._.values,...Pc(S)},extensionASTNodes:_.extensionASTNodes.concat(S)})}function gr(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[],Z=_.specifiedByURL;for(let re of S){var de;Z=(de=fm(re))!==null&&de!==void 0?de:Z}return new te.GraphQLScalarType({..._,specifiedByURL:Z,extensionASTNodes:_.extensionASTNodes.concat(S)})}function Ar(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLObjectType({..._,interfaces:()=>[...v.getInterfaces().map(j),...$t(S)],fields:()=>({...(0,wt.mapValue)(_.fields,T),...Ut(S)}),extensionASTNodes:_.extensionASTNodes.concat(S)})}function ln(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLInterfaceType({..._,interfaces:()=>[...v.getInterfaces().map(j),...$t(S)],fields:()=>({...(0,wt.mapValue)(_.fields,T),...Ut(S)}),extensionASTNodes:_.extensionASTNodes.concat(S)})}function _o(v){var L;let _=v.toConfig(),S=(L=u[_.name])!==null&&L!==void 0?L:[];return new te.GraphQLUnionType({..._,types:()=>[...v.getTypes().map(j),...wc(S)],extensionASTNodes:_.extensionASTNodes.concat(S)})}function T(v){return{...v,type:O(v.type),args:v.args&&(0,wt.mapValue)(v.args,F)}}function F(v){return{...v,type:O(v.type)}}function we(v){let L={};for(let S of v){var _;let Z=(_=S.operationTypes)!==null&&_!==void 0?_:[];for(let de of Z)L[de.operation]=pn(de.type)}return L}function pn(v){var L;let _=v.name.value,S=(L=pm[_])!==null&&L!==void 0?L:f[_];if(S===void 0)throw new Error(`Unknown type: "${_}".`);return S}function kn(v){return v.kind===Be.Kind.LIST_TYPE?new te.GraphQLList(kn(v.type)):v.kind===Be.Kind.NON_NULL_TYPE?new te.GraphQLNonNull(kn(v.type)):pn(v)}function nh(v){var L;return new xt.GraphQLDirective({name:v.name.value,description:(L=v.description)===null||L===void 0?void 0:L.value,locations:v.locations.map(({value:_})=>_),isRepeatable:v.repeatable,args:Rc(v.arguments),astNode:v})}function Ut(v){let L=Object.create(null);for(let Z of v){var _;let de=(_=Z.fields)!==null&&_!==void 0?_:[];for(let re of de){var S;L[re.name.value]={type:kn(re.type),description:(S=re.description)===null||S===void 0?void 0:S.value,args:Rc(re.arguments),deprecationReason:po(re),astNode:re}}}return L}function Rc(v){let L=v??[],_=Object.create(null);for(let Z of L){var S;let de=kn(Z.type);_[Z.name.value]={type:de,description:(S=Z.description)===null||S===void 0?void 0:S.value,defaultValue:(0,lm.valueFromAST)(Z.defaultValue,de),deprecationReason:po(Z),astNode:Z}}return _}function jc(v){let L=Object.create(null);for(let Z of v){var _;let de=(_=Z.fields)!==null&&_!==void 0?_:[];for(let re of de){var S;let fn=kn(re.type);L[re.name.value]={type:fn,description:(S=re.description)===null||S===void 0?void 0:S.value,defaultValue:(0,lm.valueFromAST)(re.defaultValue,fn),deprecationReason:po(re),astNode:re}}}return L}function Pc(v){let L=Object.create(null);for(let Z of v){var _;let de=(_=Z.values)!==null&&_!==void 0?_:[];for(let re of de){var S;L[re.name.value]={description:(S=re.description)===null||S===void 0?void 0:S.value,deprecationReason:po(re),astNode:re}}}return L}function $t(v){return v.flatMap(L=>{var _,S;return(_=(S=L.interfaces)===null||S===void 0?void 0:S.map(pn))!==null&&_!==void 0?_:[]})}function wc(v){return v.flatMap(L=>{var _,S;return(_=(S=L.types)===null||S===void 0?void 0:S.map(pn))!==null&&_!==void 0?_:[]})}function th(v){var L;let _=v.name.value,S=(L=u[_])!==null&&L!==void 0?L:[];switch(v.kind){case Be.Kind.OBJECT_TYPE_DEFINITION:{var Z;let He=[v,...S];return new te.GraphQLObjectType({name:_,description:(Z=v.description)===null||Z===void 0?void 0:Z.value,interfaces:()=>$t(He),fields:()=>Ut(He),astNode:v,extensionASTNodes:S})}case Be.Kind.INTERFACE_TYPE_DEFINITION:{var de;let He=[v,...S];return new te.GraphQLInterfaceType({name:_,description:(de=v.description)===null||de===void 0?void 0:de.value,interfaces:()=>$t(He),fields:()=>Ut(He),astNode:v,extensionASTNodes:S})}case Be.Kind.ENUM_TYPE_DEFINITION:{var re;let He=[v,...S];return new te.GraphQLEnumType({name:_,description:(re=v.description)===null||re===void 0?void 0:re.value,values:Pc(He),astNode:v,extensionASTNodes:S})}case Be.Kind.UNION_TYPE_DEFINITION:{var fn;let He=[v,...S];return new te.GraphQLUnionType({name:_,description:(fn=v.description)===null||fn===void 0?void 0:fn.value,types:()=>wc(He),astNode:v,extensionASTNodes:S})}case Be.Kind.SCALAR_TYPE_DEFINITION:{var Oo;return new te.GraphQLScalarType({name:_,description:(Oo=v.description)===null||Oo===void 0?void 0:Oo.value,specifiedByURL:fm(v),astNode:v,extensionASTNodes:S})}case Be.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var No;let He=[v,...S];return new te.GraphQLInputObjectType({name:_,description:(No=v.description)===null||No===void 0?void 0:No.value,fields:()=>jc(He),astNode:v,extensionASTNodes:S,isOneOf:zN(v)})}}}}var pm=(0,JN.keyMap)([...mm.specifiedScalarTypes,...dm.introspectionTypes],e=>e.name);function po(e){let r=(0,dc.getDirectiveValues)(xt.GraphQLDeprecatedDirective,e);return r?.reason}function fm(e){let r=(0,dc.getDirectiveValues)(xt.GraphQLSpecifiedByDirective,e);return r?.url}function zN(e){return!!(0,dc.getDirectiveValues)(xt.GraphQLOneOfDirective,e)}});var vm=y(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.buildASTSchema=ym;mo.buildSchema=sI;var ZN=Se(),eI=V(),rI=En(),nI=Re(),tI=rn(),iI=St(),oI=mc();function ym(e,r){e!=null&&e.kind===eI.Kind.DOCUMENT||(0,ZN.devAssert)(!1,"Must provide valid Document AST."),r?.assumeValid!==!0&&r?.assumeValidSDL!==!0&&(0,iI.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},t=(0,oI.extendSchemaImpl)(n,e,r);if(t.astNode==null)for(let o of t.types)switch(o.name){case"Query":t.query=o;break;case"Mutation":t.mutation=o;break;case"Subscription":t.subscription=o;break}let i=[...t.directives,...nI.specifiedDirectives.filter(o=>t.directives.every(s=>s.name!==o.name))];return new tI.GraphQLSchema({...t,directives:i})}function sI(e,r){let n=(0,rI.parse)(e,{noLocation:r?.noLocation,allowLegacyFragmentVariables:r?.allowLegacyFragmentVariables});return ym(n,{assumeValidSDL:r?.assumeValidSDL,assumeValid:r?.assumeValid})}});var bm=y(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.lexicographicSortSchema=dI;var aI=J(),uI=Oe(),cI=Zn(),Tm=et(),De=Q(),lI=Re(),pI=Ve(),fI=rn();function dI(e){let r=e.toConfig(),n=(0,cI.keyValMap)(hc(r.types),f=>f.name,p);return new fI.GraphQLSchema({...r,types:Object.values(n),directives:hc(r.directives).map(s),query:o(r.query),mutation:o(r.mutation),subscription:o(r.subscription)});function t(f){return(0,De.isListType)(f)?new De.GraphQLList(t(f.ofType)):(0,De.isNonNullType)(f)?new De.GraphQLNonNull(t(f.ofType)):i(f)}function i(f){return n[f.name]}function o(f){return f&&i(f)}function s(f){let m=f.toConfig();return new lI.GraphQLDirective({...m,locations:gm(m.locations,h=>h),args:a(m.args)})}function a(f){return ho(f,m=>({...m,type:t(m.type)}))}function u(f){return ho(f,m=>({...m,type:t(m.type),args:m.args&&a(m.args)}))}function c(f){return ho(f,m=>({...m,type:t(m.type)}))}function l(f){return hc(f).map(i)}function p(f){if((0,De.isScalarType)(f)||(0,pI.isIntrospectionType)(f))return f;if((0,De.isObjectType)(f)){let m=f.toConfig();return new De.GraphQLObjectType({...m,interfaces:()=>l(m.interfaces),fields:()=>u(m.fields)})}if((0,De.isInterfaceType)(f)){let m=f.toConfig();return new De.GraphQLInterfaceType({...m,interfaces:()=>l(m.interfaces),fields:()=>u(m.fields)})}if((0,De.isUnionType)(f)){let m=f.toConfig();return new De.GraphQLUnionType({...m,types:()=>l(m.types)})}if((0,De.isEnumType)(f)){let m=f.toConfig();return new De.GraphQLEnumType({...m,values:ho(m.values,h=>h)})}if((0,De.isInputObjectType)(f)){let m=f.toConfig();return new De.GraphQLInputObjectType({...m,fields:()=>c(m.fields)})}(0,uI.invariant)(!1,"Unexpected type: "+(0,aI.inspect)(f))}}function ho(e,r){let n=Object.create(null);for(let t of Object.keys(e).sort(Tm.naturalCompare))n[t]=r(e[t]);return n}function hc(e){return gm(e,r=>r.name)}function gm(e,r){return e.slice().sort((n,t)=>{let i=r(n),o=r(t);return(0,Tm.naturalCompare)(i,o)})}});var Sm=y(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.printIntrospectionSchema=bI;Ft.printSchema=gI;Ft.printType=Om;var mI=J(),hI=Oe(),yI=Kn(),Tc=V(),yo=xe(),xn=Q(),gc=Re(),Em=Ve(),vI=lr(),TI=dt();function gI(e){return _m(e,r=>!(0,gc.isSpecifiedDirective)(r),EI)}function bI(e){return _m(e,gc.isSpecifiedDirective,Em.isIntrospectionType)}function EI(e){return!(0,vI.isSpecifiedScalarType)(e)&&!(0,Em.isIntrospectionType)(e)}function _m(e,r,n){let t=e.getDirectives().filter(r),i=Object.values(e.getTypeMap()).filter(n);return[_I(e),...t.map(o=>RI(o)),...i.map(o=>Om(o))].filter(Boolean).join(`
165
165
 
166
166
  `)}function _I(e){if(e.description==null&&OI(e))return;let r=[],n=e.getQueryType();n&&r.push(` query: ${n.name}`);let t=e.getMutationType();t&&r.push(` mutation: ${t.name}`);let i=e.getSubscriptionType();return i&&r.push(` subscription: ${i.name}`),Ye(e)+`schema {
167
167
  ${r.join(`
168
168
  `)}
169
- }`}function OI(e){let r=e.getQueryType();if(r&&r.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let t=e.getSubscriptionType();return!(t&&t.name!=="Subscription")}function _m(e){if((0,xn.isScalarType)(e))return NI(e);if((0,xn.isObjectType)(e))return II(e);if((0,xn.isInterfaceType)(e))return LI(e);if((0,xn.isUnionType)(e))return SI(e);if((0,xn.isEnumType)(e))return DI(e);if((0,xn.isInputObjectType)(e))return AI(e);(0,hI.invariant)(!1,"Unexpected type: "+(0,mI.inspect)(e))}function NI(e){return Ye(e)+`scalar ${e.name}`+jI(e)}function Om(e){let r=e.getInterfaces();return r.length?" implements "+r.map(n=>n.name).join(" & "):""}function II(e){return Ye(e)+`type ${e.name}`+Om(e)+Nm(e)}function LI(e){return Ye(e)+`interface ${e.name}`+Om(e)+Nm(e)}function SI(e){let r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return Ye(e)+"union "+e.name+n}function DI(e){let r=e.getValues().map((n,t)=>Ye(n," ",!t)+" "+n.name+Ec(n.deprecationReason));return Ye(e)+`enum ${e.name}`+bc(r)}function AI(e){let r=Object.values(e.getFields()).map((n,t)=>Ye(n," ",!t)+" "+vc(n));return Ye(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+bc(r)}function Nm(e){let r=Object.values(e.getFields()).map((n,t)=>Ye(n," ",!t)+" "+n.name+Im(n.args," ")+": "+String(n.type)+Ec(n.deprecationReason));return bc(r)}function bc(e){return e.length!==0?` {
169
+ }`}function OI(e){let r=e.getQueryType();if(r&&r.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let t=e.getSubscriptionType();return!(t&&t.name!=="Subscription")}function Om(e){if((0,xn.isScalarType)(e))return NI(e);if((0,xn.isObjectType)(e))return II(e);if((0,xn.isInterfaceType)(e))return LI(e);if((0,xn.isUnionType)(e))return SI(e);if((0,xn.isEnumType)(e))return DI(e);if((0,xn.isInputObjectType)(e))return AI(e);(0,hI.invariant)(!1,"Unexpected type: "+(0,mI.inspect)(e))}function NI(e){return Ye(e)+`scalar ${e.name}`+jI(e)}function Nm(e){let r=e.getInterfaces();return r.length?" implements "+r.map(n=>n.name).join(" & "):""}function II(e){return Ye(e)+`type ${e.name}`+Nm(e)+Im(e)}function LI(e){return Ye(e)+`interface ${e.name}`+Nm(e)+Im(e)}function SI(e){let r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return Ye(e)+"union "+e.name+n}function DI(e){let r=e.getValues().map((n,t)=>Ye(n," ",!t)+" "+n.name+Ec(n.deprecationReason));return Ye(e)+`enum ${e.name}`+bc(r)}function AI(e){let r=Object.values(e.getFields()).map((n,t)=>Ye(n," ",!t)+" "+vc(n));return Ye(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+bc(r)}function Im(e){let r=Object.values(e.getFields()).map((n,t)=>Ye(n," ",!t)+" "+n.name+Lm(n.args," ")+": "+String(n.type)+Ec(n.deprecationReason));return bc(r)}function bc(e){return e.length!==0?` {
170
170
  `+e.join(`
171
171
  `)+`
172
- }`:""}function Im(e,r=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(vc).join(", ")+")":`(
172
+ }`:""}function Lm(e,r=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(vc).join(", ")+")":`(
173
173
  `+e.map((n,t)=>Ye(n," "+r,!t)+" "+r+vc(n)).join(`
174
174
  `)+`
175
- `+r+")"}function vc(e){let r=(0,TI.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return r&&(n+=` = ${(0,yo.print)(r)}`),n+Ec(e.deprecationReason)}function RI(e){return Ye(e)+"directive @"+e.name+Im(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Ec(e){return e==null?"":e!==gc.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,yo.print)({kind:Tc.Kind.STRING,value:e})})`:" @deprecated"}function jI(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,yo.print)({kind:Tc.Kind.STRING,value:e.specifiedByURL})})`}function Ye(e,r="",n=!0){let{description:t}=e;if(t==null)return"";let i=(0,yo.print)({kind:Tc.Kind.STRING,value:t,block:(0,yI.isPrintableAsBlockString)(t)});return(r&&!n?`
175
+ `+r+")"}function vc(e){let r=(0,TI.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return r&&(n+=` = ${(0,yo.print)(r)}`),n+Ec(e.deprecationReason)}function RI(e){return Ye(e)+"directive @"+e.name+Lm(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Ec(e){return e==null?"":e!==gc.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,yo.print)({kind:Tc.Kind.STRING,value:e})})`:" @deprecated"}function jI(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,yo.print)({kind:Tc.Kind.STRING,value:e.specifiedByURL})})`}function Ye(e,r="",n=!0){let{description:t}=e;if(t==null)return"";let i=(0,yo.print)({kind:Tc.Kind.STRING,value:t,block:(0,yI.isPrintableAsBlockString)(t)});return(r&&!n?`
176
176
  `+r:r)+i.replace(/\n/g,`
177
177
  `+r)+`
178
- `}});var Sm=y(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.concatAST=wI;var PI=V();function wI(e){let r=[];for(let n of e)r.push(...n.definitions);return{kind:PI.Kind.DOCUMENT,definitions:r}}});var Rm=y(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.separateOperations=FI;var vo=V(),xI=Jr();function FI(e){let r=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case vo.Kind.OPERATION_DEFINITION:r.push(i);break;case vo.Kind.FRAGMENT_DEFINITION:n[i.name.value]=Dm(i.selectionSet);break;default:}let t=Object.create(null);for(let i of r){let o=new Set;for(let a of Dm(i.selectionSet))Am(o,n,a);let s=i.name?i.name.value:"";t[s]={kind:vo.Kind.DOCUMENT,definitions:e.definitions.filter(a=>a===i||a.kind===vo.Kind.FRAGMENT_DEFINITION&&o.has(a.name.value))}}return t}function Am(e,r,n){if(!e.has(n)){e.add(n);let t=r[n];if(t!==void 0)for(let i of t)Am(e,r,i)}}function Dm(e){let r=[];return(0,xI.visit)(e,{FragmentSpread(n){r.push(n.name.value)}}),r}});var wm=y(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.stripIgnoredCharacters=CI;var kI=Kn(),jm=oi(),Pm=ci(),Nc=Yn();function CI(e){let r=(0,Pm.isSource)(e)?e:new Pm.Source(e),n=r.body,t=new jm.Lexer(r),i="",o=!1;for(;t.advance().kind!==Nc.TokenKind.EOF;){let s=t.token,a=s.kind,u=!(0,jm.isPunctuatorTokenKind)(s.kind);o&&(u||s.kind===Nc.TokenKind.SPREAD)&&(i+=" ");let c=n.slice(s.start,s.end);a===Nc.TokenKind.BLOCK_STRING?i+=(0,kI.printBlockString)(s.value,{minimize:!0}):i+=c,o=u}return i}});var Fm=y(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.assertValidName=VI;To.isValidNameError=xm;var qI=Se(),MI=P(),GI=rt();function VI(e){let r=xm(e);if(r)throw r;return e}function xm(e){if(typeof e=="string"||(0,qI.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new MI.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,GI.assertName)(e)}catch(r){return r}}});var Um=y(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.DangerousChangeType=yr.BreakingChangeType=void 0;yr.findBreakingChanges=YI;yr.findDangerousChanges=HI;var QI=J(),Vm=Oe(),km=xr(),UI=xe(),B=Q(),$I=lr(),KI=dt(),BI=La(),ue;yr.BreakingChangeType=ue;(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"})(ue||(yr.BreakingChangeType=ue={}));var tr;yr.DangerousChangeType=tr;(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"})(tr||(yr.DangerousChangeType=tr={}));function YI(e,r){return Qm(e,r).filter(n=>n.type in ue)}function HI(e,r){return Qm(e,r).filter(n=>n.type in tr)}function Qm(e,r){return[...WI(e,r),...JI(e,r)]}function JI(e,r){let n=[],t=Sr(e.getDirectives(),r.getDirectives());for(let i of t.removed)n.push({type:ue.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,o]of t.persisted){let s=Sr(i.args,o.args);for(let a of s.added)(0,B.isRequiredArgument)(a)&&n.push({type:ue.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${a.name} on directive ${i.name} was added.`});for(let a of s.removed)n.push({type:ue.DIRECTIVE_ARG_REMOVED,description:`${a.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:ue.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let a of i.locations)o.locations.includes(a)||n.push({type:ue.DIRECTIVE_LOCATION_REMOVED,description:`${a} was removed from ${i.name}.`})}return n}function WI(e,r){let n=[],t=Sr(Object.values(e.getTypeMap()),Object.values(r.getTypeMap()));for(let i of t.removed)n.push({type:ue.TYPE_REMOVED,description:(0,$I.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,o]of t.persisted)(0,B.isEnumType)(i)&&(0,B.isEnumType)(o)?n.push(...ZI(i,o)):(0,B.isUnionType)(i)&&(0,B.isUnionType)(o)?n.push(...zI(i,o)):(0,B.isInputObjectType)(i)&&(0,B.isInputObjectType)(o)?n.push(...XI(i,o)):(0,B.isObjectType)(i)&&(0,B.isObjectType)(o)?n.push(...qm(i,o),...Cm(i,o)):(0,B.isInterfaceType)(i)&&(0,B.isInterfaceType)(o)?n.push(...qm(i,o),...Cm(i,o)):i.constructor!==o.constructor&&n.push({type:ue.TYPE_CHANGED_KIND,description:`${i.name} changed from ${Mm(i)} to ${Mm(o)}.`});return n}function XI(e,r){let n=[],t=Sr(Object.values(e.getFields()),Object.values(r.getFields()));for(let i of t.added)(0,B.isRequiredInputField)(i)?n.push({type:ue.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:tr.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of t.removed)n.push({type:ue.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of t.persisted)Ct(i.type,o.type)||n.push({type:ue.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function zI(e,r){let n=[],t=Sr(e.getTypes(),r.getTypes());for(let i of t.added)n.push({type:tr.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of t.removed)n.push({type:ue.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function ZI(e,r){let n=[],t=Sr(e.getValues(),r.getValues());for(let i of t.added)n.push({type:tr.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of t.removed)n.push({type:ue.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function Cm(e,r){let n=[],t=Sr(e.getInterfaces(),r.getInterfaces());for(let i of t.added)n.push({type:tr.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of t.removed)n.push({type:ue.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function qm(e,r){let n=[],t=Sr(Object.values(e.getFields()),Object.values(r.getFields()));for(let i of t.removed)n.push({type:ue.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of t.persisted)n.push(...eL(e,i,o)),kt(i.type,o.type)||n.push({type:ue.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function eL(e,r,n){let t=[],i=Sr(r.args,n.args);for(let o of i.removed)t.push({type:ue.ARG_REMOVED,description:`${e.name}.${r.name} arg ${o.name} was removed.`});for(let[o,s]of i.persisted)if(!Ct(o.type,s.type))t.push({type:ue.ARG_CHANGED_KIND,description:`${e.name}.${r.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(s.type)}.`});else if(o.defaultValue!==void 0)if(s.defaultValue===void 0)t.push({type:tr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${o.name} defaultValue was removed.`});else{let u=Gm(o.defaultValue,o.type),c=Gm(s.defaultValue,s.type);u!==c&&t.push({type:tr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of i.added)(0,B.isRequiredArgument)(o)?t.push({type:ue.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${r.name} was added.`}):t.push({type:tr.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${r.name} was added.`});return t}function kt(e,r){return(0,B.isListType)(e)?(0,B.isListType)(r)&&kt(e.ofType,r.ofType)||(0,B.isNonNullType)(r)&&kt(e,r.ofType):(0,B.isNonNullType)(e)?(0,B.isNonNullType)(r)&&kt(e.ofType,r.ofType):(0,B.isNamedType)(r)&&e.name===r.name||(0,B.isNonNullType)(r)&&kt(e,r.ofType)}function Ct(e,r){return(0,B.isListType)(e)?(0,B.isListType)(r)&&Ct(e.ofType,r.ofType):(0,B.isNonNullType)(e)?(0,B.isNonNullType)(r)&&Ct(e.ofType,r.ofType)||!(0,B.isNonNullType)(r)&&Ct(e.ofType,r):(0,B.isNamedType)(r)&&e.name===r.name}function Mm(e){if((0,B.isScalarType)(e))return"a Scalar type";if((0,B.isObjectType)(e))return"an Object type";if((0,B.isInterfaceType)(e))return"an Interface type";if((0,B.isUnionType)(e))return"a Union type";if((0,B.isEnumType)(e))return"an Enum type";if((0,B.isInputObjectType)(e))return"an Input type";(0,Vm.invariant)(!1,"Unexpected type: "+(0,QI.inspect)(e))}function Gm(e,r){let n=(0,KI.astFromValue)(e,r);return n!=null||(0,Vm.invariant)(!1),(0,UI.print)((0,BI.sortValueNode)(n))}function Sr(e,r){let n=[],t=[],i=[],o=(0,km.keyMap)(e,({name:a})=>a),s=(0,km.keyMap)(r,({name:a})=>a);for(let a of e){let u=s[a.name];u===void 0?t.push(a):i.push([a,u])}for(let a of r)o[a.name]===void 0&&n.push(a);return{added:n,persisted:i,removed:t}}});var Ym=y(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});Object.defineProperty(K,"BreakingChangeType",{enumerable:!0,get:function(){return go.BreakingChangeType}});Object.defineProperty(K,"DangerousChangeType",{enumerable:!0,get:function(){return go.DangerousChangeType}});Object.defineProperty(K,"TypeInfo",{enumerable:!0,get:function(){return Km.TypeInfo}});Object.defineProperty(K,"assertValidName",{enumerable:!0,get:function(){return Bm.assertValidName}});Object.defineProperty(K,"astFromValue",{enumerable:!0,get:function(){return pL.astFromValue}});Object.defineProperty(K,"buildASTSchema",{enumerable:!0,get:function(){return $m.buildASTSchema}});Object.defineProperty(K,"buildClientSchema",{enumerable:!0,get:function(){return oL.buildClientSchema}});Object.defineProperty(K,"buildSchema",{enumerable:!0,get:function(){return $m.buildSchema}});Object.defineProperty(K,"coerceInputValue",{enumerable:!0,get:function(){return fL.coerceInputValue}});Object.defineProperty(K,"concatAST",{enumerable:!0,get:function(){return dL.concatAST}});Object.defineProperty(K,"doTypesOverlap",{enumerable:!0,get:function(){return Sc.doTypesOverlap}});Object.defineProperty(K,"extendSchema",{enumerable:!0,get:function(){return sL.extendSchema}});Object.defineProperty(K,"findBreakingChanges",{enumerable:!0,get:function(){return go.findBreakingChanges}});Object.defineProperty(K,"findDangerousChanges",{enumerable:!0,get:function(){return go.findDangerousChanges}});Object.defineProperty(K,"getIntrospectionQuery",{enumerable:!0,get:function(){return rL.getIntrospectionQuery}});Object.defineProperty(K,"getOperationAST",{enumerable:!0,get:function(){return nL.getOperationAST}});Object.defineProperty(K,"getOperationRootType",{enumerable:!0,get:function(){return tL.getOperationRootType}});Object.defineProperty(K,"introspectionFromSchema",{enumerable:!0,get:function(){return iL.introspectionFromSchema}});Object.defineProperty(K,"isEqualType",{enumerable:!0,get:function(){return Sc.isEqualType}});Object.defineProperty(K,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Sc.isTypeSubTypeOf}});Object.defineProperty(K,"isValidNameError",{enumerable:!0,get:function(){return Bm.isValidNameError}});Object.defineProperty(K,"lexicographicSortSchema",{enumerable:!0,get:function(){return aL.lexicographicSortSchema}});Object.defineProperty(K,"printIntrospectionSchema",{enumerable:!0,get:function(){return Lc.printIntrospectionSchema}});Object.defineProperty(K,"printSchema",{enumerable:!0,get:function(){return Lc.printSchema}});Object.defineProperty(K,"printType",{enumerable:!0,get:function(){return Lc.printType}});Object.defineProperty(K,"separateOperations",{enumerable:!0,get:function(){return mL.separateOperations}});Object.defineProperty(K,"stripIgnoredCharacters",{enumerable:!0,get:function(){return hL.stripIgnoredCharacters}});Object.defineProperty(K,"typeFromAST",{enumerable:!0,get:function(){return uL.typeFromAST}});Object.defineProperty(K,"valueFromAST",{enumerable:!0,get:function(){return cL.valueFromAST}});Object.defineProperty(K,"valueFromASTUntyped",{enumerable:!0,get:function(){return lL.valueFromASTUntyped}});Object.defineProperty(K,"visitWithTypeInfo",{enumerable:!0,get:function(){return Km.visitWithTypeInfo}});var rL=uc(),nL=nm(),tL=tm(),iL=im(),oL=sm(),$m=ym(),sL=mc(),aL=gm(),Lc=Lm(),uL=pr(),cL=Ot(),lL=_s(),pL=dt(),Km=Ci(),fL=Ha(),dL=Sm(),mL=Rm(),hL=wm(),Sc=st(),Bm=Fm(),go=Um()});var Wm=y(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});Object.defineProperty(d,"BREAK",{enumerable:!0,get:function(){return Y.BREAK}});Object.defineProperty(d,"BreakingChangeType",{enumerable:!0,get:function(){return H.BreakingChangeType}});Object.defineProperty(d,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return b.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(d,"DangerousChangeType",{enumerable:!0,get:function(){return H.DangerousChangeType}});Object.defineProperty(d,"DirectiveLocation",{enumerable:!0,get:function(){return Y.DirectiveLocation}});Object.defineProperty(d,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return q.ExecutableDefinitionsRule}});Object.defineProperty(d,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return q.FieldsOnCorrectTypeRule}});Object.defineProperty(d,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return q.FragmentsOnCompositeTypesRule}});Object.defineProperty(d,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return b.GRAPHQL_MAX_INT}});Object.defineProperty(d,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return b.GRAPHQL_MIN_INT}});Object.defineProperty(d,"GraphQLBoolean",{enumerable:!0,get:function(){return b.GraphQLBoolean}});Object.defineProperty(d,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return b.GraphQLDeprecatedDirective}});Object.defineProperty(d,"GraphQLDirective",{enumerable:!0,get:function(){return b.GraphQLDirective}});Object.defineProperty(d,"GraphQLEnumType",{enumerable:!0,get:function(){return b.GraphQLEnumType}});Object.defineProperty(d,"GraphQLError",{enumerable:!0,get:function(){return qt.GraphQLError}});Object.defineProperty(d,"GraphQLFloat",{enumerable:!0,get:function(){return b.GraphQLFloat}});Object.defineProperty(d,"GraphQLID",{enumerable:!0,get:function(){return b.GraphQLID}});Object.defineProperty(d,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return b.GraphQLIncludeDirective}});Object.defineProperty(d,"GraphQLInputObjectType",{enumerable:!0,get:function(){return b.GraphQLInputObjectType}});Object.defineProperty(d,"GraphQLInt",{enumerable:!0,get:function(){return b.GraphQLInt}});Object.defineProperty(d,"GraphQLInterfaceType",{enumerable:!0,get:function(){return b.GraphQLInterfaceType}});Object.defineProperty(d,"GraphQLList",{enumerable:!0,get:function(){return b.GraphQLList}});Object.defineProperty(d,"GraphQLNonNull",{enumerable:!0,get:function(){return b.GraphQLNonNull}});Object.defineProperty(d,"GraphQLObjectType",{enumerable:!0,get:function(){return b.GraphQLObjectType}});Object.defineProperty(d,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return b.GraphQLOneOfDirective}});Object.defineProperty(d,"GraphQLScalarType",{enumerable:!0,get:function(){return b.GraphQLScalarType}});Object.defineProperty(d,"GraphQLSchema",{enumerable:!0,get:function(){return b.GraphQLSchema}});Object.defineProperty(d,"GraphQLSkipDirective",{enumerable:!0,get:function(){return b.GraphQLSkipDirective}});Object.defineProperty(d,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return b.GraphQLSpecifiedByDirective}});Object.defineProperty(d,"GraphQLString",{enumerable:!0,get:function(){return b.GraphQLString}});Object.defineProperty(d,"GraphQLUnionType",{enumerable:!0,get:function(){return b.GraphQLUnionType}});Object.defineProperty(d,"Kind",{enumerable:!0,get:function(){return Y.Kind}});Object.defineProperty(d,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return q.KnownArgumentNamesRule}});Object.defineProperty(d,"KnownDirectivesRule",{enumerable:!0,get:function(){return q.KnownDirectivesRule}});Object.defineProperty(d,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return q.KnownFragmentNamesRule}});Object.defineProperty(d,"KnownTypeNamesRule",{enumerable:!0,get:function(){return q.KnownTypeNamesRule}});Object.defineProperty(d,"Lexer",{enumerable:!0,get:function(){return Y.Lexer}});Object.defineProperty(d,"Location",{enumerable:!0,get:function(){return Y.Location}});Object.defineProperty(d,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return q.LoneAnonymousOperationRule}});Object.defineProperty(d,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return q.LoneSchemaDefinitionRule}});Object.defineProperty(d,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return q.MaxIntrospectionDepthRule}});Object.defineProperty(d,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return q.NoDeprecatedCustomRule}});Object.defineProperty(d,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return q.NoFragmentCyclesRule}});Object.defineProperty(d,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return q.NoSchemaIntrospectionCustomRule}});Object.defineProperty(d,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return q.NoUndefinedVariablesRule}});Object.defineProperty(d,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return q.NoUnusedFragmentsRule}});Object.defineProperty(d,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return q.NoUnusedVariablesRule}});Object.defineProperty(d,"OperationTypeNode",{enumerable:!0,get:function(){return Y.OperationTypeNode}});Object.defineProperty(d,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return q.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(d,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return q.PossibleFragmentSpreadsRule}});Object.defineProperty(d,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return q.PossibleTypeExtensionsRule}});Object.defineProperty(d,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return q.ProvidedRequiredArgumentsRule}});Object.defineProperty(d,"ScalarLeafsRule",{enumerable:!0,get:function(){return q.ScalarLeafsRule}});Object.defineProperty(d,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return b.SchemaMetaFieldDef}});Object.defineProperty(d,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return q.SingleFieldSubscriptionsRule}});Object.defineProperty(d,"Source",{enumerable:!0,get:function(){return Y.Source}});Object.defineProperty(d,"Token",{enumerable:!0,get:function(){return Y.Token}});Object.defineProperty(d,"TokenKind",{enumerable:!0,get:function(){return Y.TokenKind}});Object.defineProperty(d,"TypeInfo",{enumerable:!0,get:function(){return H.TypeInfo}});Object.defineProperty(d,"TypeKind",{enumerable:!0,get:function(){return b.TypeKind}});Object.defineProperty(d,"TypeMetaFieldDef",{enumerable:!0,get:function(){return b.TypeMetaFieldDef}});Object.defineProperty(d,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return b.TypeNameMetaFieldDef}});Object.defineProperty(d,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return q.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(d,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return q.UniqueArgumentNamesRule}});Object.defineProperty(d,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return q.UniqueDirectiveNamesRule}});Object.defineProperty(d,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return q.UniqueDirectivesPerLocationRule}});Object.defineProperty(d,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return q.UniqueEnumValueNamesRule}});Object.defineProperty(d,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return q.UniqueFieldDefinitionNamesRule}});Object.defineProperty(d,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return q.UniqueFragmentNamesRule}});Object.defineProperty(d,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return q.UniqueInputFieldNamesRule}});Object.defineProperty(d,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return q.UniqueOperationNamesRule}});Object.defineProperty(d,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return q.UniqueOperationTypesRule}});Object.defineProperty(d,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return q.UniqueTypeNamesRule}});Object.defineProperty(d,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return q.UniqueVariableNamesRule}});Object.defineProperty(d,"ValidationContext",{enumerable:!0,get:function(){return q.ValidationContext}});Object.defineProperty(d,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return q.ValuesOfCorrectTypeRule}});Object.defineProperty(d,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return q.VariablesAreInputTypesRule}});Object.defineProperty(d,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return q.VariablesInAllowedPositionRule}});Object.defineProperty(d,"__Directive",{enumerable:!0,get:function(){return b.__Directive}});Object.defineProperty(d,"__DirectiveLocation",{enumerable:!0,get:function(){return b.__DirectiveLocation}});Object.defineProperty(d,"__EnumValue",{enumerable:!0,get:function(){return b.__EnumValue}});Object.defineProperty(d,"__Field",{enumerable:!0,get:function(){return b.__Field}});Object.defineProperty(d,"__InputValue",{enumerable:!0,get:function(){return b.__InputValue}});Object.defineProperty(d,"__Schema",{enumerable:!0,get:function(){return b.__Schema}});Object.defineProperty(d,"__Type",{enumerable:!0,get:function(){return b.__Type}});Object.defineProperty(d,"__TypeKind",{enumerable:!0,get:function(){return b.__TypeKind}});Object.defineProperty(d,"assertAbstractType",{enumerable:!0,get:function(){return b.assertAbstractType}});Object.defineProperty(d,"assertCompositeType",{enumerable:!0,get:function(){return b.assertCompositeType}});Object.defineProperty(d,"assertDirective",{enumerable:!0,get:function(){return b.assertDirective}});Object.defineProperty(d,"assertEnumType",{enumerable:!0,get:function(){return b.assertEnumType}});Object.defineProperty(d,"assertEnumValueName",{enumerable:!0,get:function(){return b.assertEnumValueName}});Object.defineProperty(d,"assertInputObjectType",{enumerable:!0,get:function(){return b.assertInputObjectType}});Object.defineProperty(d,"assertInputType",{enumerable:!0,get:function(){return b.assertInputType}});Object.defineProperty(d,"assertInterfaceType",{enumerable:!0,get:function(){return b.assertInterfaceType}});Object.defineProperty(d,"assertLeafType",{enumerable:!0,get:function(){return b.assertLeafType}});Object.defineProperty(d,"assertListType",{enumerable:!0,get:function(){return b.assertListType}});Object.defineProperty(d,"assertName",{enumerable:!0,get:function(){return b.assertName}});Object.defineProperty(d,"assertNamedType",{enumerable:!0,get:function(){return b.assertNamedType}});Object.defineProperty(d,"assertNonNullType",{enumerable:!0,get:function(){return b.assertNonNullType}});Object.defineProperty(d,"assertNullableType",{enumerable:!0,get:function(){return b.assertNullableType}});Object.defineProperty(d,"assertObjectType",{enumerable:!0,get:function(){return b.assertObjectType}});Object.defineProperty(d,"assertOutputType",{enumerable:!0,get:function(){return b.assertOutputType}});Object.defineProperty(d,"assertScalarType",{enumerable:!0,get:function(){return b.assertScalarType}});Object.defineProperty(d,"assertSchema",{enumerable:!0,get:function(){return b.assertSchema}});Object.defineProperty(d,"assertType",{enumerable:!0,get:function(){return b.assertType}});Object.defineProperty(d,"assertUnionType",{enumerable:!0,get:function(){return b.assertUnionType}});Object.defineProperty(d,"assertValidName",{enumerable:!0,get:function(){return H.assertValidName}});Object.defineProperty(d,"assertValidSchema",{enumerable:!0,get:function(){return b.assertValidSchema}});Object.defineProperty(d,"assertWrappingType",{enumerable:!0,get:function(){return b.assertWrappingType}});Object.defineProperty(d,"astFromValue",{enumerable:!0,get:function(){return H.astFromValue}});Object.defineProperty(d,"buildASTSchema",{enumerable:!0,get:function(){return H.buildASTSchema}});Object.defineProperty(d,"buildClientSchema",{enumerable:!0,get:function(){return H.buildClientSchema}});Object.defineProperty(d,"buildSchema",{enumerable:!0,get:function(){return H.buildSchema}});Object.defineProperty(d,"coerceInputValue",{enumerable:!0,get:function(){return H.coerceInputValue}});Object.defineProperty(d,"concatAST",{enumerable:!0,get:function(){return H.concatAST}});Object.defineProperty(d,"createSourceEventStream",{enumerable:!0,get:function(){return vr.createSourceEventStream}});Object.defineProperty(d,"defaultFieldResolver",{enumerable:!0,get:function(){return vr.defaultFieldResolver}});Object.defineProperty(d,"defaultTypeResolver",{enumerable:!0,get:function(){return vr.defaultTypeResolver}});Object.defineProperty(d,"doTypesOverlap",{enumerable:!0,get:function(){return H.doTypesOverlap}});Object.defineProperty(d,"execute",{enumerable:!0,get:function(){return vr.execute}});Object.defineProperty(d,"executeSync",{enumerable:!0,get:function(){return vr.executeSync}});Object.defineProperty(d,"extendSchema",{enumerable:!0,get:function(){return H.extendSchema}});Object.defineProperty(d,"findBreakingChanges",{enumerable:!0,get:function(){return H.findBreakingChanges}});Object.defineProperty(d,"findDangerousChanges",{enumerable:!0,get:function(){return H.findDangerousChanges}});Object.defineProperty(d,"formatError",{enumerable:!0,get:function(){return qt.formatError}});Object.defineProperty(d,"getArgumentValues",{enumerable:!0,get:function(){return vr.getArgumentValues}});Object.defineProperty(d,"getDirectiveValues",{enumerable:!0,get:function(){return vr.getDirectiveValues}});Object.defineProperty(d,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Y.getEnterLeaveForKind}});Object.defineProperty(d,"getIntrospectionQuery",{enumerable:!0,get:function(){return H.getIntrospectionQuery}});Object.defineProperty(d,"getLocation",{enumerable:!0,get:function(){return Y.getLocation}});Object.defineProperty(d,"getNamedType",{enumerable:!0,get:function(){return b.getNamedType}});Object.defineProperty(d,"getNullableType",{enumerable:!0,get:function(){return b.getNullableType}});Object.defineProperty(d,"getOperationAST",{enumerable:!0,get:function(){return H.getOperationAST}});Object.defineProperty(d,"getOperationRootType",{enumerable:!0,get:function(){return H.getOperationRootType}});Object.defineProperty(d,"getVariableValues",{enumerable:!0,get:function(){return vr.getVariableValues}});Object.defineProperty(d,"getVisitFn",{enumerable:!0,get:function(){return Y.getVisitFn}});Object.defineProperty(d,"graphql",{enumerable:!0,get:function(){return Jm.graphql}});Object.defineProperty(d,"graphqlSync",{enumerable:!0,get:function(){return Jm.graphqlSync}});Object.defineProperty(d,"introspectionFromSchema",{enumerable:!0,get:function(){return H.introspectionFromSchema}});Object.defineProperty(d,"introspectionTypes",{enumerable:!0,get:function(){return b.introspectionTypes}});Object.defineProperty(d,"isAbstractType",{enumerable:!0,get:function(){return b.isAbstractType}});Object.defineProperty(d,"isCompositeType",{enumerable:!0,get:function(){return b.isCompositeType}});Object.defineProperty(d,"isConstValueNode",{enumerable:!0,get:function(){return Y.isConstValueNode}});Object.defineProperty(d,"isDefinitionNode",{enumerable:!0,get:function(){return Y.isDefinitionNode}});Object.defineProperty(d,"isDirective",{enumerable:!0,get:function(){return b.isDirective}});Object.defineProperty(d,"isEnumType",{enumerable:!0,get:function(){return b.isEnumType}});Object.defineProperty(d,"isEqualType",{enumerable:!0,get:function(){return H.isEqualType}});Object.defineProperty(d,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Y.isExecutableDefinitionNode}});Object.defineProperty(d,"isInputObjectType",{enumerable:!0,get:function(){return b.isInputObjectType}});Object.defineProperty(d,"isInputType",{enumerable:!0,get:function(){return b.isInputType}});Object.defineProperty(d,"isInterfaceType",{enumerable:!0,get:function(){return b.isInterfaceType}});Object.defineProperty(d,"isIntrospectionType",{enumerable:!0,get:function(){return b.isIntrospectionType}});Object.defineProperty(d,"isLeafType",{enumerable:!0,get:function(){return b.isLeafType}});Object.defineProperty(d,"isListType",{enumerable:!0,get:function(){return b.isListType}});Object.defineProperty(d,"isNamedType",{enumerable:!0,get:function(){return b.isNamedType}});Object.defineProperty(d,"isNonNullType",{enumerable:!0,get:function(){return b.isNonNullType}});Object.defineProperty(d,"isNullableType",{enumerable:!0,get:function(){return b.isNullableType}});Object.defineProperty(d,"isObjectType",{enumerable:!0,get:function(){return b.isObjectType}});Object.defineProperty(d,"isOutputType",{enumerable:!0,get:function(){return b.isOutputType}});Object.defineProperty(d,"isRequiredArgument",{enumerable:!0,get:function(){return b.isRequiredArgument}});Object.defineProperty(d,"isRequiredInputField",{enumerable:!0,get:function(){return b.isRequiredInputField}});Object.defineProperty(d,"isScalarType",{enumerable:!0,get:function(){return b.isScalarType}});Object.defineProperty(d,"isSchema",{enumerable:!0,get:function(){return b.isSchema}});Object.defineProperty(d,"isSelectionNode",{enumerable:!0,get:function(){return Y.isSelectionNode}});Object.defineProperty(d,"isSpecifiedDirective",{enumerable:!0,get:function(){return b.isSpecifiedDirective}});Object.defineProperty(d,"isSpecifiedScalarType",{enumerable:!0,get:function(){return b.isSpecifiedScalarType}});Object.defineProperty(d,"isType",{enumerable:!0,get:function(){return b.isType}});Object.defineProperty(d,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Y.isTypeDefinitionNode}});Object.defineProperty(d,"isTypeExtensionNode",{enumerable:!0,get:function(){return Y.isTypeExtensionNode}});Object.defineProperty(d,"isTypeNode",{enumerable:!0,get:function(){return Y.isTypeNode}});Object.defineProperty(d,"isTypeSubTypeOf",{enumerable:!0,get:function(){return H.isTypeSubTypeOf}});Object.defineProperty(d,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Y.isTypeSystemDefinitionNode}});Object.defineProperty(d,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Y.isTypeSystemExtensionNode}});Object.defineProperty(d,"isUnionType",{enumerable:!0,get:function(){return b.isUnionType}});Object.defineProperty(d,"isValidNameError",{enumerable:!0,get:function(){return H.isValidNameError}});Object.defineProperty(d,"isValueNode",{enumerable:!0,get:function(){return Y.isValueNode}});Object.defineProperty(d,"isWrappingType",{enumerable:!0,get:function(){return b.isWrappingType}});Object.defineProperty(d,"lexicographicSortSchema",{enumerable:!0,get:function(){return H.lexicographicSortSchema}});Object.defineProperty(d,"locatedError",{enumerable:!0,get:function(){return qt.locatedError}});Object.defineProperty(d,"parse",{enumerable:!0,get:function(){return Y.parse}});Object.defineProperty(d,"parseConstValue",{enumerable:!0,get:function(){return Y.parseConstValue}});Object.defineProperty(d,"parseType",{enumerable:!0,get:function(){return Y.parseType}});Object.defineProperty(d,"parseValue",{enumerable:!0,get:function(){return Y.parseValue}});Object.defineProperty(d,"print",{enumerable:!0,get:function(){return Y.print}});Object.defineProperty(d,"printError",{enumerable:!0,get:function(){return qt.printError}});Object.defineProperty(d,"printIntrospectionSchema",{enumerable:!0,get:function(){return H.printIntrospectionSchema}});Object.defineProperty(d,"printLocation",{enumerable:!0,get:function(){return Y.printLocation}});Object.defineProperty(d,"printSchema",{enumerable:!0,get:function(){return H.printSchema}});Object.defineProperty(d,"printSourceLocation",{enumerable:!0,get:function(){return Y.printSourceLocation}});Object.defineProperty(d,"printType",{enumerable:!0,get:function(){return H.printType}});Object.defineProperty(d,"recommendedRules",{enumerable:!0,get:function(){return q.recommendedRules}});Object.defineProperty(d,"resolveObjMapThunk",{enumerable:!0,get:function(){return b.resolveObjMapThunk}});Object.defineProperty(d,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return b.resolveReadonlyArrayThunk}});Object.defineProperty(d,"responsePathAsArray",{enumerable:!0,get:function(){return vr.responsePathAsArray}});Object.defineProperty(d,"separateOperations",{enumerable:!0,get:function(){return H.separateOperations}});Object.defineProperty(d,"specifiedDirectives",{enumerable:!0,get:function(){return b.specifiedDirectives}});Object.defineProperty(d,"specifiedRules",{enumerable:!0,get:function(){return q.specifiedRules}});Object.defineProperty(d,"specifiedScalarTypes",{enumerable:!0,get:function(){return b.specifiedScalarTypes}});Object.defineProperty(d,"stripIgnoredCharacters",{enumerable:!0,get:function(){return H.stripIgnoredCharacters}});Object.defineProperty(d,"subscribe",{enumerable:!0,get:function(){return vr.subscribe}});Object.defineProperty(d,"syntaxError",{enumerable:!0,get:function(){return qt.syntaxError}});Object.defineProperty(d,"typeFromAST",{enumerable:!0,get:function(){return H.typeFromAST}});Object.defineProperty(d,"validate",{enumerable:!0,get:function(){return q.validate}});Object.defineProperty(d,"validateSchema",{enumerable:!0,get:function(){return b.validateSchema}});Object.defineProperty(d,"valueFromAST",{enumerable:!0,get:function(){return H.valueFromAST}});Object.defineProperty(d,"valueFromASTUntyped",{enumerable:!0,get:function(){return H.valueFromASTUntyped}});Object.defineProperty(d,"version",{enumerable:!0,get:function(){return Hm.version}});Object.defineProperty(d,"versionInfo",{enumerable:!0,get:function(){return Hm.versionInfo}});Object.defineProperty(d,"visit",{enumerable:!0,get:function(){return Y.visit}});Object.defineProperty(d,"visitInParallel",{enumerable:!0,get:function(){return Y.visitInParallel}});Object.defineProperty(d,"visitWithTypeInfo",{enumerable:!0,get:function(){return H.visitWithTypeInfo}});var Hm=$l(),Jm=Cd(),b=Gd(),Y=Qd(),vr=Wd(),q=em(),qt=rm(),H=Ym()});var Zm=y((CA,EL)=>{EL.exports={name:"@jackchuka/gql-ingest",version:"2.0.2",description:"A CLI tool for ingesting data from CSV files into a GraphQL API",type:"module",main:"dist/cli.js",bin:{"gql-ingest":"bin/cli.js"},scripts:{build:"node esbuild.config.js","build:types":"tsc --emitDeclarationOnly","build:all":"npm run build && npm run build:types",dev:"ts-node src/cli.ts",test:"jest","test:watch":"jest --watch",prepublishOnly:"npm run build:all"},keywords:["graphql","cli","csv","ingest","api"],author:"jackchuka",license:"MIT",repository:{type:"git",url:"https://github.com/jackchuka/gql-ingest.git"},dependencies:{commander:"^14.0.0","csv-parser":"^3.0.0","graphql-request":"^7.2.0","js-yaml":"^4.1.0"},devDependencies:{"@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^24.0.4",esbuild:"^0.25.5",jest:"^30.0.3","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^5.3.0"},files:["dist/**/*","src/**/*"]}});import{Command as _L}from"commander";import{GraphQLClient as Pv}from"graphql-request";import ql from"fs";import Rv from"path";function Wc(e){return typeof e>"u"||e===null}function lh(e){return typeof e=="object"&&e!==null}function ph(e){return Array.isArray(e)?e:Wc(e)?[]:[e]}function fh(e,r){var n,t,i,o;if(r)for(o=Object.keys(r),n=0,t=o.length;n<t;n+=1)i=o[n],e[i]=r[i];return e}function dh(e,r){var n="",t;for(t=0;t<r;t+=1)n+=e;return n}function mh(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var hh=Wc,yh=lh,vh=ph,Th=dh,gh=mh,bh=fh,me={isNothing:hh,isObject:yh,toArray:vh,repeat:Th,isNegativeZero:gh,extend:bh};function Xc(e,r){var n="",t=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
178
+ `}});var Dm=y(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.concatAST=wI;var PI=V();function wI(e){let r=[];for(let n of e)r.push(...n.definitions);return{kind:PI.Kind.DOCUMENT,definitions:r}}});var jm=y(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.separateOperations=FI;var vo=V(),xI=Jr();function FI(e){let r=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case vo.Kind.OPERATION_DEFINITION:r.push(i);break;case vo.Kind.FRAGMENT_DEFINITION:n[i.name.value]=Am(i.selectionSet);break;default:}let t=Object.create(null);for(let i of r){let o=new Set;for(let a of Am(i.selectionSet))Rm(o,n,a);let s=i.name?i.name.value:"";t[s]={kind:vo.Kind.DOCUMENT,definitions:e.definitions.filter(a=>a===i||a.kind===vo.Kind.FRAGMENT_DEFINITION&&o.has(a.name.value))}}return t}function Rm(e,r,n){if(!e.has(n)){e.add(n);let t=r[n];if(t!==void 0)for(let i of t)Rm(e,r,i)}}function Am(e){let r=[];return(0,xI.visit)(e,{FragmentSpread(n){r.push(n.name.value)}}),r}});var xm=y(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.stripIgnoredCharacters=CI;var kI=Kn(),Pm=oi(),wm=ci(),Nc=Yn();function CI(e){let r=(0,wm.isSource)(e)?e:new wm.Source(e),n=r.body,t=new Pm.Lexer(r),i="",o=!1;for(;t.advance().kind!==Nc.TokenKind.EOF;){let s=t.token,a=s.kind,u=!(0,Pm.isPunctuatorTokenKind)(s.kind);o&&(u||s.kind===Nc.TokenKind.SPREAD)&&(i+=" ");let c=n.slice(s.start,s.end);a===Nc.TokenKind.BLOCK_STRING?i+=(0,kI.printBlockString)(s.value,{minimize:!0}):i+=c,o=u}return i}});var km=y(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.assertValidName=VI;To.isValidNameError=Fm;var qI=Se(),MI=P(),GI=rt();function VI(e){let r=Fm(e);if(r)throw r;return e}function Fm(e){if(typeof e=="string"||(0,qI.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new MI.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,GI.assertName)(e)}catch(r){return r}}});var $m=y(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.DangerousChangeType=yr.BreakingChangeType=void 0;yr.findBreakingChanges=YI;yr.findDangerousChanges=HI;var QI=J(),Qm=Oe(),Cm=xr(),UI=xe(),B=Q(),$I=lr(),KI=dt(),BI=La(),ue;yr.BreakingChangeType=ue;(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"})(ue||(yr.BreakingChangeType=ue={}));var tr;yr.DangerousChangeType=tr;(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"})(tr||(yr.DangerousChangeType=tr={}));function YI(e,r){return Um(e,r).filter(n=>n.type in ue)}function HI(e,r){return Um(e,r).filter(n=>n.type in tr)}function Um(e,r){return[...WI(e,r),...JI(e,r)]}function JI(e,r){let n=[],t=Sr(e.getDirectives(),r.getDirectives());for(let i of t.removed)n.push({type:ue.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,o]of t.persisted){let s=Sr(i.args,o.args);for(let a of s.added)(0,B.isRequiredArgument)(a)&&n.push({type:ue.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${a.name} on directive ${i.name} was added.`});for(let a of s.removed)n.push({type:ue.DIRECTIVE_ARG_REMOVED,description:`${a.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:ue.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let a of i.locations)o.locations.includes(a)||n.push({type:ue.DIRECTIVE_LOCATION_REMOVED,description:`${a} was removed from ${i.name}.`})}return n}function WI(e,r){let n=[],t=Sr(Object.values(e.getTypeMap()),Object.values(r.getTypeMap()));for(let i of t.removed)n.push({type:ue.TYPE_REMOVED,description:(0,$I.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,o]of t.persisted)(0,B.isEnumType)(i)&&(0,B.isEnumType)(o)?n.push(...ZI(i,o)):(0,B.isUnionType)(i)&&(0,B.isUnionType)(o)?n.push(...zI(i,o)):(0,B.isInputObjectType)(i)&&(0,B.isInputObjectType)(o)?n.push(...XI(i,o)):(0,B.isObjectType)(i)&&(0,B.isObjectType)(o)?n.push(...Mm(i,o),...qm(i,o)):(0,B.isInterfaceType)(i)&&(0,B.isInterfaceType)(o)?n.push(...Mm(i,o),...qm(i,o)):i.constructor!==o.constructor&&n.push({type:ue.TYPE_CHANGED_KIND,description:`${i.name} changed from ${Gm(i)} to ${Gm(o)}.`});return n}function XI(e,r){let n=[],t=Sr(Object.values(e.getFields()),Object.values(r.getFields()));for(let i of t.added)(0,B.isRequiredInputField)(i)?n.push({type:ue.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:tr.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of t.removed)n.push({type:ue.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of t.persisted)Ct(i.type,o.type)||n.push({type:ue.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function zI(e,r){let n=[],t=Sr(e.getTypes(),r.getTypes());for(let i of t.added)n.push({type:tr.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of t.removed)n.push({type:ue.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function ZI(e,r){let n=[],t=Sr(e.getValues(),r.getValues());for(let i of t.added)n.push({type:tr.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of t.removed)n.push({type:ue.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function qm(e,r){let n=[],t=Sr(e.getInterfaces(),r.getInterfaces());for(let i of t.added)n.push({type:tr.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of t.removed)n.push({type:ue.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function Mm(e,r){let n=[],t=Sr(Object.values(e.getFields()),Object.values(r.getFields()));for(let i of t.removed)n.push({type:ue.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of t.persisted)n.push(...eL(e,i,o)),kt(i.type,o.type)||n.push({type:ue.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function eL(e,r,n){let t=[],i=Sr(r.args,n.args);for(let o of i.removed)t.push({type:ue.ARG_REMOVED,description:`${e.name}.${r.name} arg ${o.name} was removed.`});for(let[o,s]of i.persisted)if(!Ct(o.type,s.type))t.push({type:ue.ARG_CHANGED_KIND,description:`${e.name}.${r.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(s.type)}.`});else if(o.defaultValue!==void 0)if(s.defaultValue===void 0)t.push({type:tr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${o.name} defaultValue was removed.`});else{let u=Vm(o.defaultValue,o.type),c=Vm(s.defaultValue,s.type);u!==c&&t.push({type:tr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${r.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of i.added)(0,B.isRequiredArgument)(o)?t.push({type:ue.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${r.name} was added.`}):t.push({type:tr.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${r.name} was added.`});return t}function kt(e,r){return(0,B.isListType)(e)?(0,B.isListType)(r)&&kt(e.ofType,r.ofType)||(0,B.isNonNullType)(r)&&kt(e,r.ofType):(0,B.isNonNullType)(e)?(0,B.isNonNullType)(r)&&kt(e.ofType,r.ofType):(0,B.isNamedType)(r)&&e.name===r.name||(0,B.isNonNullType)(r)&&kt(e,r.ofType)}function Ct(e,r){return(0,B.isListType)(e)?(0,B.isListType)(r)&&Ct(e.ofType,r.ofType):(0,B.isNonNullType)(e)?(0,B.isNonNullType)(r)&&Ct(e.ofType,r.ofType)||!(0,B.isNonNullType)(r)&&Ct(e.ofType,r):(0,B.isNamedType)(r)&&e.name===r.name}function Gm(e){if((0,B.isScalarType)(e))return"a Scalar type";if((0,B.isObjectType)(e))return"an Object type";if((0,B.isInterfaceType)(e))return"an Interface type";if((0,B.isUnionType)(e))return"a Union type";if((0,B.isEnumType)(e))return"an Enum type";if((0,B.isInputObjectType)(e))return"an Input type";(0,Qm.invariant)(!1,"Unexpected type: "+(0,QI.inspect)(e))}function Vm(e,r){let n=(0,KI.astFromValue)(e,r);return n!=null||(0,Qm.invariant)(!1),(0,UI.print)((0,BI.sortValueNode)(n))}function Sr(e,r){let n=[],t=[],i=[],o=(0,Cm.keyMap)(e,({name:a})=>a),s=(0,Cm.keyMap)(r,({name:a})=>a);for(let a of e){let u=s[a.name];u===void 0?t.push(a):i.push([a,u])}for(let a of r)o[a.name]===void 0&&n.push(a);return{added:n,persisted:i,removed:t}}});var Hm=y(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});Object.defineProperty(K,"BreakingChangeType",{enumerable:!0,get:function(){return go.BreakingChangeType}});Object.defineProperty(K,"DangerousChangeType",{enumerable:!0,get:function(){return go.DangerousChangeType}});Object.defineProperty(K,"TypeInfo",{enumerable:!0,get:function(){return Bm.TypeInfo}});Object.defineProperty(K,"assertValidName",{enumerable:!0,get:function(){return Ym.assertValidName}});Object.defineProperty(K,"astFromValue",{enumerable:!0,get:function(){return pL.astFromValue}});Object.defineProperty(K,"buildASTSchema",{enumerable:!0,get:function(){return Km.buildASTSchema}});Object.defineProperty(K,"buildClientSchema",{enumerable:!0,get:function(){return oL.buildClientSchema}});Object.defineProperty(K,"buildSchema",{enumerable:!0,get:function(){return Km.buildSchema}});Object.defineProperty(K,"coerceInputValue",{enumerable:!0,get:function(){return fL.coerceInputValue}});Object.defineProperty(K,"concatAST",{enumerable:!0,get:function(){return dL.concatAST}});Object.defineProperty(K,"doTypesOverlap",{enumerable:!0,get:function(){return Sc.doTypesOverlap}});Object.defineProperty(K,"extendSchema",{enumerable:!0,get:function(){return sL.extendSchema}});Object.defineProperty(K,"findBreakingChanges",{enumerable:!0,get:function(){return go.findBreakingChanges}});Object.defineProperty(K,"findDangerousChanges",{enumerable:!0,get:function(){return go.findDangerousChanges}});Object.defineProperty(K,"getIntrospectionQuery",{enumerable:!0,get:function(){return rL.getIntrospectionQuery}});Object.defineProperty(K,"getOperationAST",{enumerable:!0,get:function(){return nL.getOperationAST}});Object.defineProperty(K,"getOperationRootType",{enumerable:!0,get:function(){return tL.getOperationRootType}});Object.defineProperty(K,"introspectionFromSchema",{enumerable:!0,get:function(){return iL.introspectionFromSchema}});Object.defineProperty(K,"isEqualType",{enumerable:!0,get:function(){return Sc.isEqualType}});Object.defineProperty(K,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Sc.isTypeSubTypeOf}});Object.defineProperty(K,"isValidNameError",{enumerable:!0,get:function(){return Ym.isValidNameError}});Object.defineProperty(K,"lexicographicSortSchema",{enumerable:!0,get:function(){return aL.lexicographicSortSchema}});Object.defineProperty(K,"printIntrospectionSchema",{enumerable:!0,get:function(){return Lc.printIntrospectionSchema}});Object.defineProperty(K,"printSchema",{enumerable:!0,get:function(){return Lc.printSchema}});Object.defineProperty(K,"printType",{enumerable:!0,get:function(){return Lc.printType}});Object.defineProperty(K,"separateOperations",{enumerable:!0,get:function(){return mL.separateOperations}});Object.defineProperty(K,"stripIgnoredCharacters",{enumerable:!0,get:function(){return hL.stripIgnoredCharacters}});Object.defineProperty(K,"typeFromAST",{enumerable:!0,get:function(){return uL.typeFromAST}});Object.defineProperty(K,"valueFromAST",{enumerable:!0,get:function(){return cL.valueFromAST}});Object.defineProperty(K,"valueFromASTUntyped",{enumerable:!0,get:function(){return lL.valueFromASTUntyped}});Object.defineProperty(K,"visitWithTypeInfo",{enumerable:!0,get:function(){return Bm.visitWithTypeInfo}});var rL=uc(),nL=tm(),tL=im(),iL=om(),oL=am(),Km=vm(),sL=mc(),aL=bm(),Lc=Sm(),uL=pr(),cL=Ot(),lL=_s(),pL=dt(),Bm=Ci(),fL=Ha(),dL=Dm(),mL=jm(),hL=xm(),Sc=st(),Ym=km(),go=$m()});var Xm=y(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});Object.defineProperty(d,"BREAK",{enumerable:!0,get:function(){return Y.BREAK}});Object.defineProperty(d,"BreakingChangeType",{enumerable:!0,get:function(){return H.BreakingChangeType}});Object.defineProperty(d,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return b.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(d,"DangerousChangeType",{enumerable:!0,get:function(){return H.DangerousChangeType}});Object.defineProperty(d,"DirectiveLocation",{enumerable:!0,get:function(){return Y.DirectiveLocation}});Object.defineProperty(d,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return q.ExecutableDefinitionsRule}});Object.defineProperty(d,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return q.FieldsOnCorrectTypeRule}});Object.defineProperty(d,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return q.FragmentsOnCompositeTypesRule}});Object.defineProperty(d,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return b.GRAPHQL_MAX_INT}});Object.defineProperty(d,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return b.GRAPHQL_MIN_INT}});Object.defineProperty(d,"GraphQLBoolean",{enumerable:!0,get:function(){return b.GraphQLBoolean}});Object.defineProperty(d,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return b.GraphQLDeprecatedDirective}});Object.defineProperty(d,"GraphQLDirective",{enumerable:!0,get:function(){return b.GraphQLDirective}});Object.defineProperty(d,"GraphQLEnumType",{enumerable:!0,get:function(){return b.GraphQLEnumType}});Object.defineProperty(d,"GraphQLError",{enumerable:!0,get:function(){return qt.GraphQLError}});Object.defineProperty(d,"GraphQLFloat",{enumerable:!0,get:function(){return b.GraphQLFloat}});Object.defineProperty(d,"GraphQLID",{enumerable:!0,get:function(){return b.GraphQLID}});Object.defineProperty(d,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return b.GraphQLIncludeDirective}});Object.defineProperty(d,"GraphQLInputObjectType",{enumerable:!0,get:function(){return b.GraphQLInputObjectType}});Object.defineProperty(d,"GraphQLInt",{enumerable:!0,get:function(){return b.GraphQLInt}});Object.defineProperty(d,"GraphQLInterfaceType",{enumerable:!0,get:function(){return b.GraphQLInterfaceType}});Object.defineProperty(d,"GraphQLList",{enumerable:!0,get:function(){return b.GraphQLList}});Object.defineProperty(d,"GraphQLNonNull",{enumerable:!0,get:function(){return b.GraphQLNonNull}});Object.defineProperty(d,"GraphQLObjectType",{enumerable:!0,get:function(){return b.GraphQLObjectType}});Object.defineProperty(d,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return b.GraphQLOneOfDirective}});Object.defineProperty(d,"GraphQLScalarType",{enumerable:!0,get:function(){return b.GraphQLScalarType}});Object.defineProperty(d,"GraphQLSchema",{enumerable:!0,get:function(){return b.GraphQLSchema}});Object.defineProperty(d,"GraphQLSkipDirective",{enumerable:!0,get:function(){return b.GraphQLSkipDirective}});Object.defineProperty(d,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return b.GraphQLSpecifiedByDirective}});Object.defineProperty(d,"GraphQLString",{enumerable:!0,get:function(){return b.GraphQLString}});Object.defineProperty(d,"GraphQLUnionType",{enumerable:!0,get:function(){return b.GraphQLUnionType}});Object.defineProperty(d,"Kind",{enumerable:!0,get:function(){return Y.Kind}});Object.defineProperty(d,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return q.KnownArgumentNamesRule}});Object.defineProperty(d,"KnownDirectivesRule",{enumerable:!0,get:function(){return q.KnownDirectivesRule}});Object.defineProperty(d,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return q.KnownFragmentNamesRule}});Object.defineProperty(d,"KnownTypeNamesRule",{enumerable:!0,get:function(){return q.KnownTypeNamesRule}});Object.defineProperty(d,"Lexer",{enumerable:!0,get:function(){return Y.Lexer}});Object.defineProperty(d,"Location",{enumerable:!0,get:function(){return Y.Location}});Object.defineProperty(d,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return q.LoneAnonymousOperationRule}});Object.defineProperty(d,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return q.LoneSchemaDefinitionRule}});Object.defineProperty(d,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return q.MaxIntrospectionDepthRule}});Object.defineProperty(d,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return q.NoDeprecatedCustomRule}});Object.defineProperty(d,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return q.NoFragmentCyclesRule}});Object.defineProperty(d,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return q.NoSchemaIntrospectionCustomRule}});Object.defineProperty(d,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return q.NoUndefinedVariablesRule}});Object.defineProperty(d,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return q.NoUnusedFragmentsRule}});Object.defineProperty(d,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return q.NoUnusedVariablesRule}});Object.defineProperty(d,"OperationTypeNode",{enumerable:!0,get:function(){return Y.OperationTypeNode}});Object.defineProperty(d,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return q.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(d,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return q.PossibleFragmentSpreadsRule}});Object.defineProperty(d,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return q.PossibleTypeExtensionsRule}});Object.defineProperty(d,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return q.ProvidedRequiredArgumentsRule}});Object.defineProperty(d,"ScalarLeafsRule",{enumerable:!0,get:function(){return q.ScalarLeafsRule}});Object.defineProperty(d,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return b.SchemaMetaFieldDef}});Object.defineProperty(d,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return q.SingleFieldSubscriptionsRule}});Object.defineProperty(d,"Source",{enumerable:!0,get:function(){return Y.Source}});Object.defineProperty(d,"Token",{enumerable:!0,get:function(){return Y.Token}});Object.defineProperty(d,"TokenKind",{enumerable:!0,get:function(){return Y.TokenKind}});Object.defineProperty(d,"TypeInfo",{enumerable:!0,get:function(){return H.TypeInfo}});Object.defineProperty(d,"TypeKind",{enumerable:!0,get:function(){return b.TypeKind}});Object.defineProperty(d,"TypeMetaFieldDef",{enumerable:!0,get:function(){return b.TypeMetaFieldDef}});Object.defineProperty(d,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return b.TypeNameMetaFieldDef}});Object.defineProperty(d,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return q.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(d,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return q.UniqueArgumentNamesRule}});Object.defineProperty(d,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return q.UniqueDirectiveNamesRule}});Object.defineProperty(d,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return q.UniqueDirectivesPerLocationRule}});Object.defineProperty(d,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return q.UniqueEnumValueNamesRule}});Object.defineProperty(d,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return q.UniqueFieldDefinitionNamesRule}});Object.defineProperty(d,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return q.UniqueFragmentNamesRule}});Object.defineProperty(d,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return q.UniqueInputFieldNamesRule}});Object.defineProperty(d,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return q.UniqueOperationNamesRule}});Object.defineProperty(d,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return q.UniqueOperationTypesRule}});Object.defineProperty(d,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return q.UniqueTypeNamesRule}});Object.defineProperty(d,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return q.UniqueVariableNamesRule}});Object.defineProperty(d,"ValidationContext",{enumerable:!0,get:function(){return q.ValidationContext}});Object.defineProperty(d,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return q.ValuesOfCorrectTypeRule}});Object.defineProperty(d,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return q.VariablesAreInputTypesRule}});Object.defineProperty(d,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return q.VariablesInAllowedPositionRule}});Object.defineProperty(d,"__Directive",{enumerable:!0,get:function(){return b.__Directive}});Object.defineProperty(d,"__DirectiveLocation",{enumerable:!0,get:function(){return b.__DirectiveLocation}});Object.defineProperty(d,"__EnumValue",{enumerable:!0,get:function(){return b.__EnumValue}});Object.defineProperty(d,"__Field",{enumerable:!0,get:function(){return b.__Field}});Object.defineProperty(d,"__InputValue",{enumerable:!0,get:function(){return b.__InputValue}});Object.defineProperty(d,"__Schema",{enumerable:!0,get:function(){return b.__Schema}});Object.defineProperty(d,"__Type",{enumerable:!0,get:function(){return b.__Type}});Object.defineProperty(d,"__TypeKind",{enumerable:!0,get:function(){return b.__TypeKind}});Object.defineProperty(d,"assertAbstractType",{enumerable:!0,get:function(){return b.assertAbstractType}});Object.defineProperty(d,"assertCompositeType",{enumerable:!0,get:function(){return b.assertCompositeType}});Object.defineProperty(d,"assertDirective",{enumerable:!0,get:function(){return b.assertDirective}});Object.defineProperty(d,"assertEnumType",{enumerable:!0,get:function(){return b.assertEnumType}});Object.defineProperty(d,"assertEnumValueName",{enumerable:!0,get:function(){return b.assertEnumValueName}});Object.defineProperty(d,"assertInputObjectType",{enumerable:!0,get:function(){return b.assertInputObjectType}});Object.defineProperty(d,"assertInputType",{enumerable:!0,get:function(){return b.assertInputType}});Object.defineProperty(d,"assertInterfaceType",{enumerable:!0,get:function(){return b.assertInterfaceType}});Object.defineProperty(d,"assertLeafType",{enumerable:!0,get:function(){return b.assertLeafType}});Object.defineProperty(d,"assertListType",{enumerable:!0,get:function(){return b.assertListType}});Object.defineProperty(d,"assertName",{enumerable:!0,get:function(){return b.assertName}});Object.defineProperty(d,"assertNamedType",{enumerable:!0,get:function(){return b.assertNamedType}});Object.defineProperty(d,"assertNonNullType",{enumerable:!0,get:function(){return b.assertNonNullType}});Object.defineProperty(d,"assertNullableType",{enumerable:!0,get:function(){return b.assertNullableType}});Object.defineProperty(d,"assertObjectType",{enumerable:!0,get:function(){return b.assertObjectType}});Object.defineProperty(d,"assertOutputType",{enumerable:!0,get:function(){return b.assertOutputType}});Object.defineProperty(d,"assertScalarType",{enumerable:!0,get:function(){return b.assertScalarType}});Object.defineProperty(d,"assertSchema",{enumerable:!0,get:function(){return b.assertSchema}});Object.defineProperty(d,"assertType",{enumerable:!0,get:function(){return b.assertType}});Object.defineProperty(d,"assertUnionType",{enumerable:!0,get:function(){return b.assertUnionType}});Object.defineProperty(d,"assertValidName",{enumerable:!0,get:function(){return H.assertValidName}});Object.defineProperty(d,"assertValidSchema",{enumerable:!0,get:function(){return b.assertValidSchema}});Object.defineProperty(d,"assertWrappingType",{enumerable:!0,get:function(){return b.assertWrappingType}});Object.defineProperty(d,"astFromValue",{enumerable:!0,get:function(){return H.astFromValue}});Object.defineProperty(d,"buildASTSchema",{enumerable:!0,get:function(){return H.buildASTSchema}});Object.defineProperty(d,"buildClientSchema",{enumerable:!0,get:function(){return H.buildClientSchema}});Object.defineProperty(d,"buildSchema",{enumerable:!0,get:function(){return H.buildSchema}});Object.defineProperty(d,"coerceInputValue",{enumerable:!0,get:function(){return H.coerceInputValue}});Object.defineProperty(d,"concatAST",{enumerable:!0,get:function(){return H.concatAST}});Object.defineProperty(d,"createSourceEventStream",{enumerable:!0,get:function(){return vr.createSourceEventStream}});Object.defineProperty(d,"defaultFieldResolver",{enumerable:!0,get:function(){return vr.defaultFieldResolver}});Object.defineProperty(d,"defaultTypeResolver",{enumerable:!0,get:function(){return vr.defaultTypeResolver}});Object.defineProperty(d,"doTypesOverlap",{enumerable:!0,get:function(){return H.doTypesOverlap}});Object.defineProperty(d,"execute",{enumerable:!0,get:function(){return vr.execute}});Object.defineProperty(d,"executeSync",{enumerable:!0,get:function(){return vr.executeSync}});Object.defineProperty(d,"extendSchema",{enumerable:!0,get:function(){return H.extendSchema}});Object.defineProperty(d,"findBreakingChanges",{enumerable:!0,get:function(){return H.findBreakingChanges}});Object.defineProperty(d,"findDangerousChanges",{enumerable:!0,get:function(){return H.findDangerousChanges}});Object.defineProperty(d,"formatError",{enumerable:!0,get:function(){return qt.formatError}});Object.defineProperty(d,"getArgumentValues",{enumerable:!0,get:function(){return vr.getArgumentValues}});Object.defineProperty(d,"getDirectiveValues",{enumerable:!0,get:function(){return vr.getDirectiveValues}});Object.defineProperty(d,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Y.getEnterLeaveForKind}});Object.defineProperty(d,"getIntrospectionQuery",{enumerable:!0,get:function(){return H.getIntrospectionQuery}});Object.defineProperty(d,"getLocation",{enumerable:!0,get:function(){return Y.getLocation}});Object.defineProperty(d,"getNamedType",{enumerable:!0,get:function(){return b.getNamedType}});Object.defineProperty(d,"getNullableType",{enumerable:!0,get:function(){return b.getNullableType}});Object.defineProperty(d,"getOperationAST",{enumerable:!0,get:function(){return H.getOperationAST}});Object.defineProperty(d,"getOperationRootType",{enumerable:!0,get:function(){return H.getOperationRootType}});Object.defineProperty(d,"getVariableValues",{enumerable:!0,get:function(){return vr.getVariableValues}});Object.defineProperty(d,"getVisitFn",{enumerable:!0,get:function(){return Y.getVisitFn}});Object.defineProperty(d,"graphql",{enumerable:!0,get:function(){return Wm.graphql}});Object.defineProperty(d,"graphqlSync",{enumerable:!0,get:function(){return Wm.graphqlSync}});Object.defineProperty(d,"introspectionFromSchema",{enumerable:!0,get:function(){return H.introspectionFromSchema}});Object.defineProperty(d,"introspectionTypes",{enumerable:!0,get:function(){return b.introspectionTypes}});Object.defineProperty(d,"isAbstractType",{enumerable:!0,get:function(){return b.isAbstractType}});Object.defineProperty(d,"isCompositeType",{enumerable:!0,get:function(){return b.isCompositeType}});Object.defineProperty(d,"isConstValueNode",{enumerable:!0,get:function(){return Y.isConstValueNode}});Object.defineProperty(d,"isDefinitionNode",{enumerable:!0,get:function(){return Y.isDefinitionNode}});Object.defineProperty(d,"isDirective",{enumerable:!0,get:function(){return b.isDirective}});Object.defineProperty(d,"isEnumType",{enumerable:!0,get:function(){return b.isEnumType}});Object.defineProperty(d,"isEqualType",{enumerable:!0,get:function(){return H.isEqualType}});Object.defineProperty(d,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Y.isExecutableDefinitionNode}});Object.defineProperty(d,"isInputObjectType",{enumerable:!0,get:function(){return b.isInputObjectType}});Object.defineProperty(d,"isInputType",{enumerable:!0,get:function(){return b.isInputType}});Object.defineProperty(d,"isInterfaceType",{enumerable:!0,get:function(){return b.isInterfaceType}});Object.defineProperty(d,"isIntrospectionType",{enumerable:!0,get:function(){return b.isIntrospectionType}});Object.defineProperty(d,"isLeafType",{enumerable:!0,get:function(){return b.isLeafType}});Object.defineProperty(d,"isListType",{enumerable:!0,get:function(){return b.isListType}});Object.defineProperty(d,"isNamedType",{enumerable:!0,get:function(){return b.isNamedType}});Object.defineProperty(d,"isNonNullType",{enumerable:!0,get:function(){return b.isNonNullType}});Object.defineProperty(d,"isNullableType",{enumerable:!0,get:function(){return b.isNullableType}});Object.defineProperty(d,"isObjectType",{enumerable:!0,get:function(){return b.isObjectType}});Object.defineProperty(d,"isOutputType",{enumerable:!0,get:function(){return b.isOutputType}});Object.defineProperty(d,"isRequiredArgument",{enumerable:!0,get:function(){return b.isRequiredArgument}});Object.defineProperty(d,"isRequiredInputField",{enumerable:!0,get:function(){return b.isRequiredInputField}});Object.defineProperty(d,"isScalarType",{enumerable:!0,get:function(){return b.isScalarType}});Object.defineProperty(d,"isSchema",{enumerable:!0,get:function(){return b.isSchema}});Object.defineProperty(d,"isSelectionNode",{enumerable:!0,get:function(){return Y.isSelectionNode}});Object.defineProperty(d,"isSpecifiedDirective",{enumerable:!0,get:function(){return b.isSpecifiedDirective}});Object.defineProperty(d,"isSpecifiedScalarType",{enumerable:!0,get:function(){return b.isSpecifiedScalarType}});Object.defineProperty(d,"isType",{enumerable:!0,get:function(){return b.isType}});Object.defineProperty(d,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Y.isTypeDefinitionNode}});Object.defineProperty(d,"isTypeExtensionNode",{enumerable:!0,get:function(){return Y.isTypeExtensionNode}});Object.defineProperty(d,"isTypeNode",{enumerable:!0,get:function(){return Y.isTypeNode}});Object.defineProperty(d,"isTypeSubTypeOf",{enumerable:!0,get:function(){return H.isTypeSubTypeOf}});Object.defineProperty(d,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Y.isTypeSystemDefinitionNode}});Object.defineProperty(d,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Y.isTypeSystemExtensionNode}});Object.defineProperty(d,"isUnionType",{enumerable:!0,get:function(){return b.isUnionType}});Object.defineProperty(d,"isValidNameError",{enumerable:!0,get:function(){return H.isValidNameError}});Object.defineProperty(d,"isValueNode",{enumerable:!0,get:function(){return Y.isValueNode}});Object.defineProperty(d,"isWrappingType",{enumerable:!0,get:function(){return b.isWrappingType}});Object.defineProperty(d,"lexicographicSortSchema",{enumerable:!0,get:function(){return H.lexicographicSortSchema}});Object.defineProperty(d,"locatedError",{enumerable:!0,get:function(){return qt.locatedError}});Object.defineProperty(d,"parse",{enumerable:!0,get:function(){return Y.parse}});Object.defineProperty(d,"parseConstValue",{enumerable:!0,get:function(){return Y.parseConstValue}});Object.defineProperty(d,"parseType",{enumerable:!0,get:function(){return Y.parseType}});Object.defineProperty(d,"parseValue",{enumerable:!0,get:function(){return Y.parseValue}});Object.defineProperty(d,"print",{enumerable:!0,get:function(){return Y.print}});Object.defineProperty(d,"printError",{enumerable:!0,get:function(){return qt.printError}});Object.defineProperty(d,"printIntrospectionSchema",{enumerable:!0,get:function(){return H.printIntrospectionSchema}});Object.defineProperty(d,"printLocation",{enumerable:!0,get:function(){return Y.printLocation}});Object.defineProperty(d,"printSchema",{enumerable:!0,get:function(){return H.printSchema}});Object.defineProperty(d,"printSourceLocation",{enumerable:!0,get:function(){return Y.printSourceLocation}});Object.defineProperty(d,"printType",{enumerable:!0,get:function(){return H.printType}});Object.defineProperty(d,"recommendedRules",{enumerable:!0,get:function(){return q.recommendedRules}});Object.defineProperty(d,"resolveObjMapThunk",{enumerable:!0,get:function(){return b.resolveObjMapThunk}});Object.defineProperty(d,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return b.resolveReadonlyArrayThunk}});Object.defineProperty(d,"responsePathAsArray",{enumerable:!0,get:function(){return vr.responsePathAsArray}});Object.defineProperty(d,"separateOperations",{enumerable:!0,get:function(){return H.separateOperations}});Object.defineProperty(d,"specifiedDirectives",{enumerable:!0,get:function(){return b.specifiedDirectives}});Object.defineProperty(d,"specifiedRules",{enumerable:!0,get:function(){return q.specifiedRules}});Object.defineProperty(d,"specifiedScalarTypes",{enumerable:!0,get:function(){return b.specifiedScalarTypes}});Object.defineProperty(d,"stripIgnoredCharacters",{enumerable:!0,get:function(){return H.stripIgnoredCharacters}});Object.defineProperty(d,"subscribe",{enumerable:!0,get:function(){return vr.subscribe}});Object.defineProperty(d,"syntaxError",{enumerable:!0,get:function(){return qt.syntaxError}});Object.defineProperty(d,"typeFromAST",{enumerable:!0,get:function(){return H.typeFromAST}});Object.defineProperty(d,"validate",{enumerable:!0,get:function(){return q.validate}});Object.defineProperty(d,"validateSchema",{enumerable:!0,get:function(){return b.validateSchema}});Object.defineProperty(d,"valueFromAST",{enumerable:!0,get:function(){return H.valueFromAST}});Object.defineProperty(d,"valueFromASTUntyped",{enumerable:!0,get:function(){return H.valueFromASTUntyped}});Object.defineProperty(d,"version",{enumerable:!0,get:function(){return Jm.version}});Object.defineProperty(d,"versionInfo",{enumerable:!0,get:function(){return Jm.versionInfo}});Object.defineProperty(d,"visit",{enumerable:!0,get:function(){return Y.visit}});Object.defineProperty(d,"visitInParallel",{enumerable:!0,get:function(){return Y.visitInParallel}});Object.defineProperty(d,"visitWithTypeInfo",{enumerable:!0,get:function(){return H.visitWithTypeInfo}});var Jm=Kl(),Wm=qd(),b=Vd(),Y=Ud(),vr=Xd(),q=rm(),qt=nm(),H=Hm()});var eh=y((CA,EL)=>{EL.exports={name:"@jackchuka/gql-ingest",version:"2.1.0",description:"A CLI tool for ingesting data from CSV files into a GraphQL API",type:"module",main:"dist/cli.js",bin:{"gql-ingest":"bin/cli.js"},scripts:{build:"node esbuild.config.js","build:types":"tsc --emitDeclarationOnly","build:all":"npm run build && npm run build:types",dev:"ts-node src/cli.ts",test:"jest","test:watch":"jest --watch",prepublishOnly:"npm run build:all"},keywords:["graphql","cli","csv","ingest","api"],author:"jackchuka",license:"MIT",repository:{type:"git",url:"https://github.com/jackchuka/gql-ingest.git"},dependencies:{commander:"^14.0.0","csv-parser":"^3.0.0","graphql-request":"^7.2.0","js-yaml":"^4.1.0"},devDependencies:{"@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^24.0.4",esbuild:"^0.27.0",jest:"^30.0.3","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^5.3.0"},files:["dist/**/*","src/**/*"]}});import{Command as _L}from"commander";import{GraphQLClient as Pv}from"graphql-request";import Ml from"fs";import Rv from"path";function Wc(e){return typeof e>"u"||e===null}function ph(e){return typeof e=="object"&&e!==null}function fh(e){return Array.isArray(e)?e:Wc(e)?[]:[e]}function dh(e,r){var n,t,i,o;if(r)for(o=Object.keys(r),n=0,t=o.length;n<t;n+=1)i=o[n],e[i]=r[i];return e}function mh(e,r){var n="",t;for(t=0;t<r;t+=1)n+=e;return n}function hh(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var yh=Wc,vh=ph,Th=fh,gh=mh,bh=hh,Eh=dh,me={isNothing:yh,isObject:vh,toArray:Th,repeat:gh,isNegativeZero:bh,extend:Eh};function Xc(e,r){var n="",t=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
179
179
 
180
- `+e.mark.snippet),t+" "+n):t}function qn(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Xc(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}qn.prototype=Object.create(Error.prototype);qn.prototype.constructor=qn;qn.prototype.toString=function(r){return this.name+": "+Xc(this,r)};var Le=qn;function Io(e,r,n,t,i){var o="",s="",a=Math.floor(i/2)-1;return t-r>a&&(o=" ... ",r=t-a+o.length),n-t>a&&(s=" ...",n=t+a-s.length),{str:o+e.slice(r,n).replace(/\t/g,"\u2192")+s,pos:t-r+o.length}}function Lo(e,r){return me.repeat(" ",r-e.length)+e}function Eh(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,t=[0],i=[],o,s=-1;o=n.exec(e.buffer);)i.push(o.index),t.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=t.length-2);s<0&&(s=t.length-1);var a="",u,c,l=Math.min(e.line+r.linesAfter,i.length).toString().length,p=r.maxLength-(r.indent+l+3);for(u=1;u<=r.linesBefore&&!(s-u<0);u++)c=Io(e.buffer,t[s-u],i[s-u],e.position-(t[s]-t[s-u]),p),a=me.repeat(" ",r.indent)+Lo((e.line-u+1).toString(),l)+" | "+c.str+`
180
+ `+e.mark.snippet),t+" "+n):t}function qn(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Xc(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}qn.prototype=Object.create(Error.prototype);qn.prototype.constructor=qn;qn.prototype.toString=function(r){return this.name+": "+Xc(this,r)};var Le=qn;function Io(e,r,n,t,i){var o="",s="",a=Math.floor(i/2)-1;return t-r>a&&(o=" ... ",r=t-a+o.length),n-t>a&&(s=" ...",n=t+a-s.length),{str:o+e.slice(r,n).replace(/\t/g,"\u2192")+s,pos:t-r+o.length}}function Lo(e,r){return me.repeat(" ",r-e.length)+e}function _h(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,t=[0],i=[],o,s=-1;o=n.exec(e.buffer);)i.push(o.index),t.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=t.length-2);s<0&&(s=t.length-1);var a="",u,c,l=Math.min(e.line+r.linesAfter,i.length).toString().length,p=r.maxLength-(r.indent+l+3);for(u=1;u<=r.linesBefore&&!(s-u<0);u++)c=Io(e.buffer,t[s-u],i[s-u],e.position-(t[s]-t[s-u]),p),a=me.repeat(" ",r.indent)+Lo((e.line-u+1).toString(),l)+" | "+c.str+`
181
181
  `+a;for(c=Io(e.buffer,t[s],i[s],e.position,p),a+=me.repeat(" ",r.indent)+Lo((e.line+1).toString(),l)+" | "+c.str+`
182
182
  `,a+=me.repeat("-",r.indent+l+3+c.pos)+`^
183
183
  `,u=1;u<=r.linesAfter&&!(s+u>=i.length);u++)c=Io(e.buffer,t[s+u],i[s+u],e.position-(t[s]-t[s+u]),p),a+=me.repeat(" ",r.indent)+Lo((e.line+u+1).toString(),l)+" | "+c.str+`
184
- `;return a.replace(/\n$/,"")}var _h=Eh,Oh=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Nh=["scalar","sequence","mapping"];function Ih(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(t){r[String(t)]=n})}),r}function Lh(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(Oh.indexOf(n)===-1)throw new Le('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=Ih(r.styleAliases||null),Nh.indexOf(this.kind)===-1)throw new Le('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ee=Lh;function Fc(e,r){var n=[];return e[r].forEach(function(t){var i=n.length;n.forEach(function(o,s){o.tag===t.tag&&o.kind===t.kind&&o.multi===t.multi&&(i=s)}),n[i]=t}),n}function Sh(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function t(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(t);return e}function Do(e){return this.extend(e)}Do.prototype.extend=function(r){var n=[],t=[];if(r instanceof Ee)t.push(r);else if(Array.isArray(r))t=t.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(t=t.concat(r.explicit));else throw new Le("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Ee))throw new Le("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Le("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Le("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(o){if(!(o instanceof Ee))throw new Le("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Do.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(t),i.compiledImplicit=Fc(i,"implicit"),i.compiledExplicit=Fc(i,"explicit"),i.compiledTypeMap=Sh(i.compiledImplicit,i.compiledExplicit),i};var zc=Do,Zc=new Ee("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),el=new Ee("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),rl=new Ee("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),nl=new zc({explicit:[Zc,el,rl]});function Dh(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Ah(){return null}function Rh(e){return e===null}var tl=new Ee("tag:yaml.org,2002:null",{kind:"scalar",resolve:Dh,construct:Ah,predicate:Rh,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function jh(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Ph(e){return e==="true"||e==="True"||e==="TRUE"}function wh(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var il=new Ee("tag:yaml.org,2002:bool",{kind:"scalar",resolve:jh,construct:Ph,predicate:wh,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function xh(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Fh(e){return 48<=e&&e<=55}function kh(e){return 48<=e&&e<=57}function Ch(e){if(e===null)return!1;var r=e.length,n=0,t=!1,i;if(!r)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===r)return!0;if(i=e[++n],i==="b"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;t=!0}return t&&i!=="_"}if(i==="x"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!xh(e.charCodeAt(n)))return!1;t=!0}return t&&i!=="_"}if(i==="o"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Fh(e.charCodeAt(n)))return!1;t=!0}return t&&i!=="_"}}if(i==="_")return!1;for(;n<r;n++)if(i=e[n],i!=="_"){if(!kh(e.charCodeAt(n)))return!1;t=!0}return!(!t||i==="_")}function qh(e){var r=e,n=1,t;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),t=r[0],(t==="-"||t==="+")&&(t==="-"&&(n=-1),r=r.slice(1),t=r[0]),r==="0")return 0;if(t==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function Mh(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!me.isNegativeZero(e)}var ol=new Ee("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ch,construct:qh,predicate:Mh,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Gh=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Vh(e){return!(e===null||!Gh.test(e)||e[e.length-1]==="_")}function Qh(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var Uh=/^[-+]?[0-9]+e/;function $h(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(me.isNegativeZero(e))return"-0.0";return n=e.toString(10),Uh.test(n)?n.replace("e",".e"):n}function Kh(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||me.isNegativeZero(e))}var sl=new Ee("tag:yaml.org,2002:float",{kind:"scalar",resolve:Vh,construct:Qh,predicate:Kh,represent:$h,defaultStyle:"lowercase"}),al=nl.extend({implicit:[tl,il,ol,sl]}),ul=al,cl=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ll=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Bh(e){return e===null?!1:cl.exec(e)!==null||ll.exec(e)!==null}function Yh(e){var r,n,t,i,o,s,a,u=0,c=null,l,p,f;if(r=cl.exec(e),r===null&&(r=ll.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],t=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(n,t,i));if(o=+r[4],s=+r[5],a=+r[6],r[7]){for(u=r[7].slice(0,3);u.length<3;)u+="0";u=+u}return r[9]&&(l=+r[10],p=+(r[11]||0),c=(l*60+p)*6e4,r[9]==="-"&&(c=-c)),f=new Date(Date.UTC(n,t,i,o,s,a,u)),c&&f.setTime(f.getTime()-c),f}function Hh(e){return e.toISOString()}var pl=new Ee("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Bh,construct:Yh,instanceOf:Date,represent:Hh});function Jh(e){return e==="<<"||e===null}var fl=new Ee("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Jh}),wo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
185
- \r`;function Wh(e){if(e===null)return!1;var r,n,t=0,i=e.length,o=wo;for(n=0;n<i;n++)if(r=o.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;t+=6}return t%8===0}function Xh(e){var r,n,t=e.replace(/[\r\n=]/g,""),i=t.length,o=wo,s=0,a=[];for(r=0;r<i;r++)r%4===0&&r&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(t.charAt(r));return n=i%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),new Uint8Array(a)}function zh(e){var r="",n=0,t,i,o=e.length,s=wo;for(t=0;t<o;t++)t%3===0&&t&&(r+=s[n>>18&63],r+=s[n>>12&63],r+=s[n>>6&63],r+=s[n&63]),n=(n<<8)+e[t];return i=o%3,i===0?(r+=s[n>>18&63],r+=s[n>>12&63],r+=s[n>>6&63],r+=s[n&63]):i===2?(r+=s[n>>10&63],r+=s[n>>4&63],r+=s[n<<2&63],r+=s[64]):i===1&&(r+=s[n>>2&63],r+=s[n<<4&63],r+=s[64],r+=s[64]),r}function Zh(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var dl=new Ee("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Wh,construct:Xh,predicate:Zh,represent:zh}),ey=Object.prototype.hasOwnProperty,ry=Object.prototype.toString;function ny(e){if(e===null)return!0;var r=[],n,t,i,o,s,a=e;for(n=0,t=a.length;n<t;n+=1){if(i=a[n],s=!1,ry.call(i)!=="[object Object]")return!1;for(o in i)if(ey.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(r.indexOf(o)===-1)r.push(o);else return!1}return!0}function ty(e){return e!==null?e:[]}var ml=new Ee("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ny,construct:ty}),iy=Object.prototype.toString;function oy(e){if(e===null)return!0;var r,n,t,i,o,s=e;for(o=new Array(s.length),r=0,n=s.length;r<n;r+=1){if(t=s[r],iy.call(t)!=="[object Object]"||(i=Object.keys(t),i.length!==1))return!1;o[r]=[i[0],t[i[0]]]}return!0}function sy(e){if(e===null)return[];var r,n,t,i,o,s=e;for(o=new Array(s.length),r=0,n=s.length;r<n;r+=1)t=s[r],i=Object.keys(t),o[r]=[i[0],t[i[0]]];return o}var hl=new Ee("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:oy,construct:sy}),ay=Object.prototype.hasOwnProperty;function uy(e){if(e===null)return!0;var r,n=e;for(r in n)if(ay.call(n,r)&&n[r]!==null)return!1;return!0}function cy(e){return e!==null?e:{}}var yl=new Ee("tag:yaml.org,2002:set",{kind:"mapping",resolve:uy,construct:cy}),xo=ul.extend({implicit:[pl,fl],explicit:[dl,ml,hl,yl]}),jr=Object.prototype.hasOwnProperty,Kt=1,vl=2,Tl=3,Bt=4,So=1,ly=2,kc=3,py=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,fy=/[\x85\u2028\u2029]/,dy=/[,\[\]\{\}]/,gl=/^(?:!|!!|![a-z\-]+!)$/i,bl=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Cc(e){return Object.prototype.toString.call(e)}function or(e){return e===10||e===13}function Ur(e){return e===9||e===32}function Ae(e){return e===9||e===32||e===10||e===13}function mn(e){return e===44||e===91||e===93||e===123||e===125}function my(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function hy(e){return e===120?2:e===117?4:e===85?8:0}function yy(e){return 48<=e&&e<=57?e-48:-1}function qc(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
186
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function vy(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var El=new Array(256),_l=new Array(256);for(Qr=0;Qr<256;Qr++)El[Qr]=qc(Qr)?1:0,_l[Qr]=qc(Qr);var Qr;function Ty(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||xo,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ol(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=_h(n),new Le(r,n)}function R(e,r){throw Ol(e,r)}function Yt(e,r){e.onWarning&&e.onWarning.call(null,Ol(e,r))}var Mc={YAML:function(r,n,t){var i,o,s;r.version!==null&&R(r,"duplication of %YAML directive"),t.length!==1&&R(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),i===null&&R(r,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&R(r,"unacceptable YAML version of the document"),r.version=t[0],r.checkLineBreaks=s<2,s!==1&&s!==2&&Yt(r,"unsupported YAML version of the document")},TAG:function(r,n,t){var i,o;t.length!==2&&R(r,"TAG directive accepts exactly two arguments"),i=t[0],o=t[1],gl.test(i)||R(r,"ill-formed tag handle (first argument) of the TAG directive"),jr.call(r.tagMap,i)&&R(r,'there is a previously declared suffix for "'+i+'" tag handle'),bl.test(o)||R(r,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{R(r,"tag prefix is malformed: "+o)}r.tagMap[i]=o}};function Rr(e,r,n,t){var i,o,s,a;if(r<n){if(a=e.input.slice(r,n),t)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||R(e,"expected valid JSON character");else py.test(a)&&R(e,"the stream contains non-printable characters");e.result+=a}}function Gc(e,r,n,t){var i,o,s,a;for(me.isObject(n)||R(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,a=i.length;s<a;s+=1)o=i[s],jr.call(r,o)||(r[o]=n[o],t[o]=!0)}function hn(e,r,n,t,i,o,s,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&R(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Cc(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Cc(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),t==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)Gc(e,r,o[c],n);else Gc(e,r,o,n);else!e.json&&!jr.call(n,i)&&jr.call(r,i)&&(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,R(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):r[i]=o,delete n[i];return r}function Fo(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):R(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function pe(e,r,n){for(var t=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ur(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(or(i))for(Fo(e),i=e.input.charCodeAt(e.position),t++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&t!==0&&e.lineIndent<n&&Yt(e,"deficient indentation"),t}function Wt(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||Ae(n)))}function ko(e,r){r===1?e.result+=" ":r>1&&(e.result+=me.repeat(`
187
- `,r-1))}function gy(e,r,n){var t,i,o,s,a,u,c,l,p=e.kind,f=e.result,m;if(m=e.input.charCodeAt(e.position),Ae(m)||mn(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),Ae(i)||n&&mn(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),Ae(i)||n&&mn(i))break}else if(m===35){if(t=e.input.charCodeAt(e.position-1),Ae(t))break}else{if(e.position===e.lineStart&&Wt(e)||n&&mn(m))break;if(or(m))if(u=e.line,c=e.lineStart,l=e.lineIndent,pe(e,!1,-1),e.lineIndent>=r){a=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=c,e.lineIndent=l;break}}a&&(Rr(e,o,s,!1),ko(e,e.line-u),o=s=e.position,a=!1),Ur(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return Rr(e,o,s,!1),e.result?!0:(e.kind=p,e.result=f,!1)}function by(e,r){var n,t,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,t=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Rr(e,t,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)t=e.position,e.position++,i=e.position;else return!0;else or(n)?(Rr(e,t,i,!0),ko(e,pe(e,!1,r)),t=i=e.position):e.position===e.lineStart&&Wt(e)?R(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);R(e,"unexpected end of the stream within a single quoted scalar")}function Ey(e,r){var n,t,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=t=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Rr(e,n,e.position,!0),e.position++,!0;if(a===92){if(Rr(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),or(a))pe(e,!1,r);else if(a<256&&El[a])e.result+=_l[a],e.position++;else if((s=hy(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=my(a))>=0?o=(o<<4)+s:R(e,"expected hexadecimal character");e.result+=vy(o),e.position++}else R(e,"unknown escape sequence");n=t=e.position}else or(a)?(Rr(e,n,t,!0),ko(e,pe(e,!1,r)),n=t=e.position):e.position===e.lineStart&&Wt(e)?R(e,"unexpected end of the document within a double quoted scalar"):(e.position++,t=e.position)}R(e,"unexpected end of the stream within a double quoted scalar")}function _y(e,r){var n=!0,t,i,o,s=e.tag,a,u=e.anchor,c,l,p,f,m,h=Object.create(null),O,j,C,A;if(A=e.input.charCodeAt(e.position),A===91)l=93,m=!1,a=[];else if(A===123)l=125,m=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),A=e.input.charCodeAt(++e.position);A!==0;){if(pe(e,!0,r),A=e.input.charCodeAt(e.position),A===l)return e.position++,e.tag=s,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=a,!0;n?A===44&&R(e,"expected the node content, but found ','"):R(e,"missed comma between flow collection entries"),j=O=C=null,p=f=!1,A===63&&(c=e.input.charCodeAt(e.position+1),Ae(c)&&(p=f=!0,e.position++,pe(e,!0,r))),t=e.line,i=e.lineStart,o=e.position,yn(e,r,Kt,!1,!0),j=e.tag,O=e.result,pe(e,!0,r),A=e.input.charCodeAt(e.position),(f||e.line===t)&&A===58&&(p=!0,A=e.input.charCodeAt(++e.position),pe(e,!0,r),yn(e,r,Kt,!1,!0),C=e.result),m?hn(e,a,h,j,O,C,t,i,o):p?a.push(hn(e,null,h,j,O,C,t,i,o)):a.push(O),pe(e,!0,r),A=e.input.charCodeAt(e.position),A===44?(n=!0,A=e.input.charCodeAt(++e.position)):n=!1}R(e,"unexpected end of the stream within a flow collection")}function Oy(e,r){var n,t,i=So,o=!1,s=!1,a=r,u=0,c=!1,l,p;if(p=e.input.charCodeAt(e.position),p===124)t=!1;else if(p===62)t=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)So===i?i=p===43?kc:ly:R(e,"repeat of a chomping mode identifier");else if((l=yy(p))>=0)l===0?R(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?R(e,"repeat of an indentation width identifier"):(a=r+l-1,s=!0);else break;if(Ur(p)){do p=e.input.charCodeAt(++e.position);while(Ur(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!or(p)&&p!==0)}for(;p!==0;){for(Fo(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),or(p)){u++;continue}if(e.lineIndent<a){i===kc?e.result+=me.repeat(`
184
+ `;return a.replace(/\n$/,"")}var Oh=_h,Nh=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ih=["scalar","sequence","mapping"];function Lh(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(t){r[String(t)]=n})}),r}function Sh(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(Nh.indexOf(n)===-1)throw new Le('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=Lh(r.styleAliases||null),Ih.indexOf(this.kind)===-1)throw new Le('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ee=Sh;function Fc(e,r){var n=[];return e[r].forEach(function(t){var i=n.length;n.forEach(function(o,s){o.tag===t.tag&&o.kind===t.kind&&o.multi===t.multi&&(i=s)}),n[i]=t}),n}function Dh(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function t(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(t);return e}function Do(e){return this.extend(e)}Do.prototype.extend=function(r){var n=[],t=[];if(r instanceof Ee)t.push(r);else if(Array.isArray(r))t=t.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(t=t.concat(r.explicit));else throw new Le("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Ee))throw new Le("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Le("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Le("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(o){if(!(o instanceof Ee))throw new Le("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Do.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(t),i.compiledImplicit=Fc(i,"implicit"),i.compiledExplicit=Fc(i,"explicit"),i.compiledTypeMap=Dh(i.compiledImplicit,i.compiledExplicit),i};var zc=Do,Zc=new Ee("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),el=new Ee("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),rl=new Ee("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),nl=new zc({explicit:[Zc,el,rl]});function Ah(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Rh(){return null}function jh(e){return e===null}var tl=new Ee("tag:yaml.org,2002:null",{kind:"scalar",resolve:Ah,construct:Rh,predicate:jh,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ph(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function wh(e){return e==="true"||e==="True"||e==="TRUE"}function xh(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var il=new Ee("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ph,construct:wh,predicate:xh,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Fh(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function kh(e){return 48<=e&&e<=55}function Ch(e){return 48<=e&&e<=57}function qh(e){if(e===null)return!1;var r=e.length,n=0,t=!1,i;if(!r)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===r)return!0;if(i=e[++n],i==="b"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;t=!0}return t&&i!=="_"}if(i==="x"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Fh(e.charCodeAt(n)))return!1;t=!0}return t&&i!=="_"}if(i==="o"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!kh(e.charCodeAt(n)))return!1;t=!0}return t&&i!=="_"}}if(i==="_")return!1;for(;n<r;n++)if(i=e[n],i!=="_"){if(!Ch(e.charCodeAt(n)))return!1;t=!0}return!(!t||i==="_")}function Mh(e){var r=e,n=1,t;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),t=r[0],(t==="-"||t==="+")&&(t==="-"&&(n=-1),r=r.slice(1),t=r[0]),r==="0")return 0;if(t==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function Gh(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!me.isNegativeZero(e)}var ol=new Ee("tag:yaml.org,2002:int",{kind:"scalar",resolve:qh,construct:Mh,predicate:Gh,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Vh=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Qh(e){return!(e===null||!Vh.test(e)||e[e.length-1]==="_")}function Uh(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var $h=/^[-+]?[0-9]+e/;function Kh(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(me.isNegativeZero(e))return"-0.0";return n=e.toString(10),$h.test(n)?n.replace("e",".e"):n}function Bh(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||me.isNegativeZero(e))}var sl=new Ee("tag:yaml.org,2002:float",{kind:"scalar",resolve:Qh,construct:Uh,predicate:Bh,represent:Kh,defaultStyle:"lowercase"}),al=nl.extend({implicit:[tl,il,ol,sl]}),ul=al,cl=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ll=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Yh(e){return e===null?!1:cl.exec(e)!==null||ll.exec(e)!==null}function Hh(e){var r,n,t,i,o,s,a,u=0,c=null,l,p,f;if(r=cl.exec(e),r===null&&(r=ll.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],t=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(n,t,i));if(o=+r[4],s=+r[5],a=+r[6],r[7]){for(u=r[7].slice(0,3);u.length<3;)u+="0";u=+u}return r[9]&&(l=+r[10],p=+(r[11]||0),c=(l*60+p)*6e4,r[9]==="-"&&(c=-c)),f=new Date(Date.UTC(n,t,i,o,s,a,u)),c&&f.setTime(f.getTime()-c),f}function Jh(e){return e.toISOString()}var pl=new Ee("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Yh,construct:Hh,instanceOf:Date,represent:Jh});function Wh(e){return e==="<<"||e===null}var fl=new Ee("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Wh}),wo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
185
+ \r`;function Xh(e){if(e===null)return!1;var r,n,t=0,i=e.length,o=wo;for(n=0;n<i;n++)if(r=o.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;t+=6}return t%8===0}function zh(e){var r,n,t=e.replace(/[\r\n=]/g,""),i=t.length,o=wo,s=0,a=[];for(r=0;r<i;r++)r%4===0&&r&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(t.charAt(r));return n=i%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),new Uint8Array(a)}function Zh(e){var r="",n=0,t,i,o=e.length,s=wo;for(t=0;t<o;t++)t%3===0&&t&&(r+=s[n>>18&63],r+=s[n>>12&63],r+=s[n>>6&63],r+=s[n&63]),n=(n<<8)+e[t];return i=o%3,i===0?(r+=s[n>>18&63],r+=s[n>>12&63],r+=s[n>>6&63],r+=s[n&63]):i===2?(r+=s[n>>10&63],r+=s[n>>4&63],r+=s[n<<2&63],r+=s[64]):i===1&&(r+=s[n>>2&63],r+=s[n<<4&63],r+=s[64],r+=s[64]),r}function ey(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var dl=new Ee("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Xh,construct:zh,predicate:ey,represent:Zh}),ry=Object.prototype.hasOwnProperty,ny=Object.prototype.toString;function ty(e){if(e===null)return!0;var r=[],n,t,i,o,s,a=e;for(n=0,t=a.length;n<t;n+=1){if(i=a[n],s=!1,ny.call(i)!=="[object Object]")return!1;for(o in i)if(ry.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(r.indexOf(o)===-1)r.push(o);else return!1}return!0}function iy(e){return e!==null?e:[]}var ml=new Ee("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ty,construct:iy}),oy=Object.prototype.toString;function sy(e){if(e===null)return!0;var r,n,t,i,o,s=e;for(o=new Array(s.length),r=0,n=s.length;r<n;r+=1){if(t=s[r],oy.call(t)!=="[object Object]"||(i=Object.keys(t),i.length!==1))return!1;o[r]=[i[0],t[i[0]]]}return!0}function ay(e){if(e===null)return[];var r,n,t,i,o,s=e;for(o=new Array(s.length),r=0,n=s.length;r<n;r+=1)t=s[r],i=Object.keys(t),o[r]=[i[0],t[i[0]]];return o}var hl=new Ee("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:sy,construct:ay}),uy=Object.prototype.hasOwnProperty;function cy(e){if(e===null)return!0;var r,n=e;for(r in n)if(uy.call(n,r)&&n[r]!==null)return!1;return!0}function ly(e){return e!==null?e:{}}var yl=new Ee("tag:yaml.org,2002:set",{kind:"mapping",resolve:cy,construct:ly}),xo=ul.extend({implicit:[pl,fl],explicit:[dl,ml,hl,yl]}),jr=Object.prototype.hasOwnProperty,Kt=1,vl=2,Tl=3,Bt=4,So=1,py=2,kc=3,fy=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,dy=/[\x85\u2028\u2029]/,my=/[,\[\]\{\}]/,gl=/^(?:!|!!|![a-z\-]+!)$/i,bl=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Cc(e){return Object.prototype.toString.call(e)}function or(e){return e===10||e===13}function Ur(e){return e===9||e===32}function Ae(e){return e===9||e===32||e===10||e===13}function mn(e){return e===44||e===91||e===93||e===123||e===125}function hy(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function yy(e){return e===120?2:e===117?4:e===85?8:0}function vy(e){return 48<=e&&e<=57?e-48:-1}function qc(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
186
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Ty(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function El(e,r,n){r==="__proto__"?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[r]=n}var _l=new Array(256),Ol=new Array(256);for(Qr=0;Qr<256;Qr++)_l[Qr]=qc(Qr)?1:0,Ol[Qr]=qc(Qr);var Qr;function gy(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||xo,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Nl(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Oh(n),new Le(r,n)}function R(e,r){throw Nl(e,r)}function Yt(e,r){e.onWarning&&e.onWarning.call(null,Nl(e,r))}var Mc={YAML:function(r,n,t){var i,o,s;r.version!==null&&R(r,"duplication of %YAML directive"),t.length!==1&&R(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),i===null&&R(r,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&R(r,"unacceptable YAML version of the document"),r.version=t[0],r.checkLineBreaks=s<2,s!==1&&s!==2&&Yt(r,"unsupported YAML version of the document")},TAG:function(r,n,t){var i,o;t.length!==2&&R(r,"TAG directive accepts exactly two arguments"),i=t[0],o=t[1],gl.test(i)||R(r,"ill-formed tag handle (first argument) of the TAG directive"),jr.call(r.tagMap,i)&&R(r,'there is a previously declared suffix for "'+i+'" tag handle'),bl.test(o)||R(r,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{R(r,"tag prefix is malformed: "+o)}r.tagMap[i]=o}};function Rr(e,r,n,t){var i,o,s,a;if(r<n){if(a=e.input.slice(r,n),t)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||R(e,"expected valid JSON character");else fy.test(a)&&R(e,"the stream contains non-printable characters");e.result+=a}}function Gc(e,r,n,t){var i,o,s,a;for(me.isObject(n)||R(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,a=i.length;s<a;s+=1)o=i[s],jr.call(r,o)||(El(r,o,n[o]),t[o]=!0)}function hn(e,r,n,t,i,o,s,a,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&R(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Cc(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Cc(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),t==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,l=o.length;c<l;c+=1)Gc(e,r,o[c],n);else Gc(e,r,o,n);else!e.json&&!jr.call(n,i)&&jr.call(r,i)&&(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,R(e,"duplicated mapping key")),El(r,i,o),delete n[i];return r}function Fo(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):R(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function pe(e,r,n){for(var t=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ur(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(or(i))for(Fo(e),i=e.input.charCodeAt(e.position),t++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&t!==0&&e.lineIndent<n&&Yt(e,"deficient indentation"),t}function Wt(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||Ae(n)))}function ko(e,r){r===1?e.result+=" ":r>1&&(e.result+=me.repeat(`
187
+ `,r-1))}function by(e,r,n){var t,i,o,s,a,u,c,l,p=e.kind,f=e.result,m;if(m=e.input.charCodeAt(e.position),Ae(m)||mn(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),Ae(i)||n&&mn(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),Ae(i)||n&&mn(i))break}else if(m===35){if(t=e.input.charCodeAt(e.position-1),Ae(t))break}else{if(e.position===e.lineStart&&Wt(e)||n&&mn(m))break;if(or(m))if(u=e.line,c=e.lineStart,l=e.lineIndent,pe(e,!1,-1),e.lineIndent>=r){a=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=c,e.lineIndent=l;break}}a&&(Rr(e,o,s,!1),ko(e,e.line-u),o=s=e.position,a=!1),Ur(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return Rr(e,o,s,!1),e.result?!0:(e.kind=p,e.result=f,!1)}function Ey(e,r){var n,t,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,t=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Rr(e,t,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)t=e.position,e.position++,i=e.position;else return!0;else or(n)?(Rr(e,t,i,!0),ko(e,pe(e,!1,r)),t=i=e.position):e.position===e.lineStart&&Wt(e)?R(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);R(e,"unexpected end of the stream within a single quoted scalar")}function _y(e,r){var n,t,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=t=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Rr(e,n,e.position,!0),e.position++,!0;if(a===92){if(Rr(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),or(a))pe(e,!1,r);else if(a<256&&_l[a])e.result+=Ol[a],e.position++;else if((s=yy(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=hy(a))>=0?o=(o<<4)+s:R(e,"expected hexadecimal character");e.result+=Ty(o),e.position++}else R(e,"unknown escape sequence");n=t=e.position}else or(a)?(Rr(e,n,t,!0),ko(e,pe(e,!1,r)),n=t=e.position):e.position===e.lineStart&&Wt(e)?R(e,"unexpected end of the document within a double quoted scalar"):(e.position++,t=e.position)}R(e,"unexpected end of the stream within a double quoted scalar")}function Oy(e,r){var n=!0,t,i,o,s=e.tag,a,u=e.anchor,c,l,p,f,m,h=Object.create(null),O,j,C,A;if(A=e.input.charCodeAt(e.position),A===91)l=93,m=!1,a=[];else if(A===123)l=125,m=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),A=e.input.charCodeAt(++e.position);A!==0;){if(pe(e,!0,r),A=e.input.charCodeAt(e.position),A===l)return e.position++,e.tag=s,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=a,!0;n?A===44&&R(e,"expected the node content, but found ','"):R(e,"missed comma between flow collection entries"),j=O=C=null,p=f=!1,A===63&&(c=e.input.charCodeAt(e.position+1),Ae(c)&&(p=f=!0,e.position++,pe(e,!0,r))),t=e.line,i=e.lineStart,o=e.position,yn(e,r,Kt,!1,!0),j=e.tag,O=e.result,pe(e,!0,r),A=e.input.charCodeAt(e.position),(f||e.line===t)&&A===58&&(p=!0,A=e.input.charCodeAt(++e.position),pe(e,!0,r),yn(e,r,Kt,!1,!0),C=e.result),m?hn(e,a,h,j,O,C,t,i,o):p?a.push(hn(e,null,h,j,O,C,t,i,o)):a.push(O),pe(e,!0,r),A=e.input.charCodeAt(e.position),A===44?(n=!0,A=e.input.charCodeAt(++e.position)):n=!1}R(e,"unexpected end of the stream within a flow collection")}function Ny(e,r){var n,t,i=So,o=!1,s=!1,a=r,u=0,c=!1,l,p;if(p=e.input.charCodeAt(e.position),p===124)t=!1;else if(p===62)t=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)So===i?i=p===43?kc:py:R(e,"repeat of a chomping mode identifier");else if((l=vy(p))>=0)l===0?R(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?R(e,"repeat of an indentation width identifier"):(a=r+l-1,s=!0);else break;if(Ur(p)){do p=e.input.charCodeAt(++e.position);while(Ur(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!or(p)&&p!==0)}for(;p!==0;){for(Fo(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),or(p)){u++;continue}if(e.lineIndent<a){i===kc?e.result+=me.repeat(`
188
188
  `,o?1+u:u):i===So&&o&&(e.result+=`
189
189
  `);break}for(t?Ur(p)?(c=!0,e.result+=me.repeat(`
190
190
  `,o?1+u:u)):c?(c=!1,e.result+=me.repeat(`
191
191
  `,u+1)):u===0?o&&(e.result+=" "):e.result+=me.repeat(`
192
192
  `,u):e.result+=me.repeat(`
193
- `,o?1+u:u),o=!0,s=!0,u=0,n=e.position;!or(p)&&p!==0;)p=e.input.charCodeAt(++e.position);Rr(e,n,e.position,!1)}return!0}function Vc(e,r){var n,t=e.tag,i=e.anchor,o=[],s,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,R(e,"tab characters must not be used in indentation")),!(u!==45||(s=e.input.charCodeAt(e.position+1),!Ae(s))));){if(a=!0,e.position++,pe(e,!0,-1)&&e.lineIndent<=r){o.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,yn(e,r,Tl,!1,!0),o.push(e.result),pe(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&u!==0)R(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return a?(e.tag=t,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function Ny(e,r,n){var t,i,o,s,a,u,c=e.tag,l=e.anchor,p={},f=Object.create(null),m=null,h=null,O=null,j=!1,C=!1,A;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),A=e.input.charCodeAt(e.position);A!==0;){if(!j&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,R(e,"tab characters must not be used in indentation")),t=e.input.charCodeAt(e.position+1),o=e.line,(A===63||A===58)&&Ae(t))A===63?(j&&(hn(e,p,f,m,h,null,s,a,u),m=h=O=null),C=!0,j=!0,i=!0):j?(j=!1,i=!0):R(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,A=t;else{if(s=e.line,a=e.lineStart,u=e.position,!yn(e,n,vl,!1,!0))break;if(e.line===o){for(A=e.input.charCodeAt(e.position);Ur(A);)A=e.input.charCodeAt(++e.position);if(A===58)A=e.input.charCodeAt(++e.position),Ae(A)||R(e,"a whitespace character is expected after the key-value separator within a block mapping"),j&&(hn(e,p,f,m,h,null,s,a,u),m=h=O=null),C=!0,j=!1,i=!1,m=e.tag,h=e.result;else if(C)R(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(C)R(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===o||e.lineIndent>r)&&(j&&(s=e.line,a=e.lineStart,u=e.position),yn(e,r,Bt,!0,i)&&(j?h=e.result:O=e.result),j||(hn(e,p,f,m,h,O,s,a,u),m=h=O=null),pe(e,!0,-1),A=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>r)&&A!==0)R(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return j&&hn(e,p,f,m,h,null,s,a,u),C&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=p),C}function Iy(e){var r,n=!1,t=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&R(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(t=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",r=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(r,e.position),s=e.input.charCodeAt(++e.position)):R(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ae(s);)s===33&&(t?R(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),gl.test(i)||R(e,"named tag handle cannot contain such characters"),t=!0,r=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(r,e.position),dy.test(o)&&R(e,"tag suffix cannot contain flow indicator characters")}o&&!bl.test(o)&&R(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{R(e,"tag name is malformed: "+o)}return n?e.tag=o:jr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:R(e,'undeclared tag handle "'+i+'"'),!0}function Ly(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&R(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!Ae(n)&&!mn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&R(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Sy(e){var r,n,t;if(t=e.input.charCodeAt(e.position),t!==42)return!1;for(t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!Ae(t)&&!mn(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&R(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),jr.call(e.anchorMap,n)||R(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],pe(e,!0,-1),!0}function yn(e,r,n,t,i){var o,s,a,u=1,c=!1,l=!1,p,f,m,h,O,j;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=Bt===n||Tl===n,t&&pe(e,!0,-1)&&(c=!0,e.lineIndent>r?u=1:e.lineIndent===r?u=0:e.lineIndent<r&&(u=-1)),u===1)for(;Iy(e)||Ly(e);)pe(e,!0,-1)?(c=!0,a=o,e.lineIndent>r?u=1:e.lineIndent===r?u=0:e.lineIndent<r&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||Bt===n)&&(Kt===n||vl===n?O=r:O=r+1,j=e.position-e.lineStart,u===1?a&&(Vc(e,j)||Ny(e,j,O))||_y(e,O)?l=!0:(s&&Oy(e,O)||by(e,O)||Ey(e,O)?l=!0:Sy(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&R(e,"alias node should not have any properties")):gy(e,O,Kt===n)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=a&&Vc(e,j))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&R(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,f=e.implicitTypes.length;p<f;p+=1)if(h=e.implicitTypes[p],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(jr.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,m=e.typeMap.multi[e.kind||"fallback"],p=0,f=m.length;p<f;p+=1)if(e.tag.slice(0,m[p].tag.length)===m[p].tag){h=m[p];break}h||R(e,"unknown tag !<"+e.tag+">"),e.result!==null&&h.kind!==e.kind&&R(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):R(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function Dy(e){var r=e.position,n,t,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(pe(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!Ae(s);)s=e.input.charCodeAt(++e.position);for(t=e.input.slice(n,e.position),i=[],t.length<1&&R(e,"directive name must not be less than one character in length");s!==0;){for(;Ur(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!or(s));break}if(or(s))break;for(n=e.position;s!==0&&!Ae(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&Fo(e),jr.call(Mc,t)?Mc[t](e,t,i):Yt(e,'unknown document directive "'+t+'"')}if(pe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,pe(e,!0,-1)):o&&R(e,"directives end mark is expected"),yn(e,e.lineIndent-1,Bt,!1,!0),pe(e,!0,-1),e.checkLineBreaks&&fy.test(e.input.slice(r,e.position))&&Yt(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Wt(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,pe(e,!0,-1));return}if(e.position<e.length-1)R(e,"end of the stream or a document separator is expected");else return}function Nl(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
194
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Ty(e,r),t=e.indexOf("\0");for(t!==-1&&(n.position=t,R(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Dy(n);return n.documents}function Ay(e,r,n){r!==null&&typeof r=="object"&&typeof n>"u"&&(n=r,r=null);var t=Nl(e,n);if(typeof r!="function")return t;for(var i=0,o=t.length;i<o;i+=1)r(t[i])}function Ry(e,r){var n=Nl(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new Le("expected a single document in the stream, but found more")}}var jy=Ay,Py=Ry,Il={loadAll:jy,load:Py},Ll=Object.prototype.toString,Sl=Object.prototype.hasOwnProperty,Co=65279,wy=9,Mn=10,xy=13,Fy=32,ky=33,Cy=34,Ao=35,qy=37,My=38,Gy=39,Vy=42,Dl=44,Qy=45,Ht=58,Uy=61,$y=62,Ky=63,By=64,Al=91,Rl=93,Yy=96,jl=123,Hy=124,Pl=125,_e={};_e[0]="\\0";_e[7]="\\a";_e[8]="\\b";_e[9]="\\t";_e[10]="\\n";_e[11]="\\v";_e[12]="\\f";_e[13]="\\r";_e[27]="\\e";_e[34]='\\"';_e[92]="\\\\";_e[133]="\\N";_e[160]="\\_";_e[8232]="\\L";_e[8233]="\\P";var Jy=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Wy=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Xy(e,r){var n,t,i,o,s,a,u;if(r===null)return{};for(n={},t=Object.keys(r),i=0,o=t.length;i<o;i+=1)s=t[i],a=String(r[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=e.compiledTypeMap.fallback[s],u&&Sl.call(u.styleAliases,a)&&(a=u.styleAliases[a]),n[s]=a;return n}function zy(e){var r,n,t;if(r=e.toString(16).toUpperCase(),e<=255)n="x",t=2;else if(e<=65535)n="u",t=4;else if(e<=4294967295)n="U",t=8;else throw new Le("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+me.repeat("0",t-r.length)+r}var Zy=1,Gn=2;function ev(e){this.schema=e.schema||xo,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=me.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Xy(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Gn:Zy,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qc(e,r){for(var n=me.repeat(" ",r),t=0,i=-1,o="",s,a=e.length;t<a;)i=e.indexOf(`
193
+ `,o?1+u:u),o=!0,s=!0,u=0,n=e.position;!or(p)&&p!==0;)p=e.input.charCodeAt(++e.position);Rr(e,n,e.position,!1)}return!0}function Vc(e,r){var n,t=e.tag,i=e.anchor,o=[],s,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,R(e,"tab characters must not be used in indentation")),!(u!==45||(s=e.input.charCodeAt(e.position+1),!Ae(s))));){if(a=!0,e.position++,pe(e,!0,-1)&&e.lineIndent<=r){o.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,yn(e,r,Tl,!1,!0),o.push(e.result),pe(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&u!==0)R(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return a?(e.tag=t,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function Iy(e,r,n){var t,i,o,s,a,u,c=e.tag,l=e.anchor,p={},f=Object.create(null),m=null,h=null,O=null,j=!1,C=!1,A;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),A=e.input.charCodeAt(e.position);A!==0;){if(!j&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,R(e,"tab characters must not be used in indentation")),t=e.input.charCodeAt(e.position+1),o=e.line,(A===63||A===58)&&Ae(t))A===63?(j&&(hn(e,p,f,m,h,null,s,a,u),m=h=O=null),C=!0,j=!0,i=!0):j?(j=!1,i=!0):R(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,A=t;else{if(s=e.line,a=e.lineStart,u=e.position,!yn(e,n,vl,!1,!0))break;if(e.line===o){for(A=e.input.charCodeAt(e.position);Ur(A);)A=e.input.charCodeAt(++e.position);if(A===58)A=e.input.charCodeAt(++e.position),Ae(A)||R(e,"a whitespace character is expected after the key-value separator within a block mapping"),j&&(hn(e,p,f,m,h,null,s,a,u),m=h=O=null),C=!0,j=!1,i=!1,m=e.tag,h=e.result;else if(C)R(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(C)R(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===o||e.lineIndent>r)&&(j&&(s=e.line,a=e.lineStart,u=e.position),yn(e,r,Bt,!0,i)&&(j?h=e.result:O=e.result),j||(hn(e,p,f,m,h,O,s,a,u),m=h=O=null),pe(e,!0,-1),A=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>r)&&A!==0)R(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return j&&hn(e,p,f,m,h,null,s,a,u),C&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=p),C}function Ly(e){var r,n=!1,t=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&R(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(t=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",r=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(r,e.position),s=e.input.charCodeAt(++e.position)):R(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ae(s);)s===33&&(t?R(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),gl.test(i)||R(e,"named tag handle cannot contain such characters"),t=!0,r=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(r,e.position),my.test(o)&&R(e,"tag suffix cannot contain flow indicator characters")}o&&!bl.test(o)&&R(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{R(e,"tag name is malformed: "+o)}return n?e.tag=o:jr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:R(e,'undeclared tag handle "'+i+'"'),!0}function Sy(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&R(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!Ae(n)&&!mn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&R(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Dy(e){var r,n,t;if(t=e.input.charCodeAt(e.position),t!==42)return!1;for(t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!Ae(t)&&!mn(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&R(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),jr.call(e.anchorMap,n)||R(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],pe(e,!0,-1),!0}function yn(e,r,n,t,i){var o,s,a,u=1,c=!1,l=!1,p,f,m,h,O,j;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=Bt===n||Tl===n,t&&pe(e,!0,-1)&&(c=!0,e.lineIndent>r?u=1:e.lineIndent===r?u=0:e.lineIndent<r&&(u=-1)),u===1)for(;Ly(e)||Sy(e);)pe(e,!0,-1)?(c=!0,a=o,e.lineIndent>r?u=1:e.lineIndent===r?u=0:e.lineIndent<r&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||Bt===n)&&(Kt===n||vl===n?O=r:O=r+1,j=e.position-e.lineStart,u===1?a&&(Vc(e,j)||Iy(e,j,O))||Oy(e,O)?l=!0:(s&&Ny(e,O)||Ey(e,O)||_y(e,O)?l=!0:Dy(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&R(e,"alias node should not have any properties")):by(e,O,Kt===n)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=a&&Vc(e,j))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&R(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,f=e.implicitTypes.length;p<f;p+=1)if(h=e.implicitTypes[p],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(jr.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,m=e.typeMap.multi[e.kind||"fallback"],p=0,f=m.length;p<f;p+=1)if(e.tag.slice(0,m[p].tag.length)===m[p].tag){h=m[p];break}h||R(e,"unknown tag !<"+e.tag+">"),e.result!==null&&h.kind!==e.kind&&R(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):R(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function Ay(e){var r=e.position,n,t,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(pe(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!Ae(s);)s=e.input.charCodeAt(++e.position);for(t=e.input.slice(n,e.position),i=[],t.length<1&&R(e,"directive name must not be less than one character in length");s!==0;){for(;Ur(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!or(s));break}if(or(s))break;for(n=e.position;s!==0&&!Ae(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&Fo(e),jr.call(Mc,t)?Mc[t](e,t,i):Yt(e,'unknown document directive "'+t+'"')}if(pe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,pe(e,!0,-1)):o&&R(e,"directives end mark is expected"),yn(e,e.lineIndent-1,Bt,!1,!0),pe(e,!0,-1),e.checkLineBreaks&&dy.test(e.input.slice(r,e.position))&&Yt(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Wt(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,pe(e,!0,-1));return}if(e.position<e.length-1)R(e,"end of the stream or a document separator is expected");else return}function Il(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
194
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new gy(e,r),t=e.indexOf("\0");for(t!==-1&&(n.position=t,R(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Ay(n);return n.documents}function Ry(e,r,n){r!==null&&typeof r=="object"&&typeof n>"u"&&(n=r,r=null);var t=Il(e,n);if(typeof r!="function")return t;for(var i=0,o=t.length;i<o;i+=1)r(t[i])}function jy(e,r){var n=Il(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new Le("expected a single document in the stream, but found more")}}var Py=Ry,wy=jy,Ll={loadAll:Py,load:wy},Sl=Object.prototype.toString,Dl=Object.prototype.hasOwnProperty,Co=65279,xy=9,Mn=10,Fy=13,ky=32,Cy=33,qy=34,Ao=35,My=37,Gy=38,Vy=39,Qy=42,Al=44,Uy=45,Ht=58,$y=61,Ky=62,By=63,Yy=64,Rl=91,jl=93,Hy=96,Pl=123,Jy=124,wl=125,_e={};_e[0]="\\0";_e[7]="\\a";_e[8]="\\b";_e[9]="\\t";_e[10]="\\n";_e[11]="\\v";_e[12]="\\f";_e[13]="\\r";_e[27]="\\e";_e[34]='\\"';_e[92]="\\\\";_e[133]="\\N";_e[160]="\\_";_e[8232]="\\L";_e[8233]="\\P";var Wy=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Xy=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function zy(e,r){var n,t,i,o,s,a,u;if(r===null)return{};for(n={},t=Object.keys(r),i=0,o=t.length;i<o;i+=1)s=t[i],a=String(r[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=e.compiledTypeMap.fallback[s],u&&Dl.call(u.styleAliases,a)&&(a=u.styleAliases[a]),n[s]=a;return n}function Zy(e){var r,n,t;if(r=e.toString(16).toUpperCase(),e<=255)n="x",t=2;else if(e<=65535)n="u",t=4;else if(e<=4294967295)n="U",t=8;else throw new Le("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+me.repeat("0",t-r.length)+r}var ev=1,Gn=2;function rv(e){this.schema=e.schema||xo,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=me.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=zy(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Gn:ev,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qc(e,r){for(var n=me.repeat(" ",r),t=0,i=-1,o="",s,a=e.length;t<a;)i=e.indexOf(`
195
195
  `,t),i===-1?(s=e.slice(t),t=a):(s=e.slice(t,i+1),t=i+1),s.length&&s!==`
196
196
  `&&(o+=n),o+=s;return o}function Ro(e,r){return`
197
- `+me.repeat(" ",e.indent*r)}function rv(e,r){var n,t,i;for(n=0,t=e.implicitTypes.length;n<t;n+=1)if(i=e.implicitTypes[n],i.resolve(r))return!0;return!1}function Jt(e){return e===Fy||e===wy}function Vn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Co||65536<=e&&e<=1114111}function Uc(e){return Vn(e)&&e!==Co&&e!==xy&&e!==Mn}function $c(e,r,n){var t=Uc(e),i=t&&!Jt(e);return(n?t:t&&e!==Dl&&e!==Al&&e!==Rl&&e!==jl&&e!==Pl)&&e!==Ao&&!(r===Ht&&!i)||Uc(r)&&!Jt(r)&&e===Ao||r===Ht&&i}function nv(e){return Vn(e)&&e!==Co&&!Jt(e)&&e!==Qy&&e!==Ky&&e!==Ht&&e!==Dl&&e!==Al&&e!==Rl&&e!==jl&&e!==Pl&&e!==Ao&&e!==My&&e!==Vy&&e!==ky&&e!==Hy&&e!==Uy&&e!==$y&&e!==Gy&&e!==Cy&&e!==qy&&e!==By&&e!==Yy}function tv(e){return!Jt(e)&&e!==Ht}function Cn(e,r){var n=e.charCodeAt(r),t;return n>=55296&&n<=56319&&r+1<e.length&&(t=e.charCodeAt(r+1),t>=56320&&t<=57343)?(n-55296)*1024+t-56320+65536:n}function wl(e){var r=/^\n* /;return r.test(e)}var xl=1,jo=2,Fl=3,kl=4,dn=5;function iv(e,r,n,t,i,o,s,a){var u,c=0,l=null,p=!1,f=!1,m=t!==-1,h=-1,O=nv(Cn(e,0))&&tv(Cn(e,e.length-1));if(r||s)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Cn(e,u),!Vn(c))return dn;O=O&&$c(c,l,a),l=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Cn(e,u),c===Mn)p=!0,m&&(f=f||u-h-1>t&&e[h+1]!==" ",h=u);else if(!Vn(c))return dn;O=O&&$c(c,l,a),l=c}f=f||m&&u-h-1>t&&e[h+1]!==" "}return!p&&!f?O&&!s&&!i(e)?xl:o===Gn?dn:jo:n>9&&wl(e)?dn:s?o===Gn?dn:jo:f?kl:Fl}function ov(e,r,n,t,i){e.dump=(function(){if(r.length===0)return e.quotingType===Gn?'""':"''";if(!e.noCompatMode&&(Jy.indexOf(r)!==-1||Wy.test(r)))return e.quotingType===Gn?'"'+r+'"':"'"+r+"'";var o=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=t||e.flowLevel>-1&&n>=e.flowLevel;function u(c){return rv(e,c)}switch(iv(r,a,e.indent,s,u,e.quotingType,e.forceQuotes&&!t,i)){case xl:return r;case jo:return"'"+r.replace(/'/g,"''")+"'";case Fl:return"|"+Kc(r,e.indent)+Bc(Qc(r,o));case kl:return">"+Kc(r,e.indent)+Bc(Qc(sv(r,s),o));case dn:return'"'+av(r)+'"';default:throw new Le("impossible error: invalid scalar style")}})()}function Kc(e,r){var n=wl(e)?String(r):"",t=e[e.length-1]===`
197
+ `+me.repeat(" ",e.indent*r)}function nv(e,r){var n,t,i;for(n=0,t=e.implicitTypes.length;n<t;n+=1)if(i=e.implicitTypes[n],i.resolve(r))return!0;return!1}function Jt(e){return e===ky||e===xy}function Vn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Co||65536<=e&&e<=1114111}function Uc(e){return Vn(e)&&e!==Co&&e!==Fy&&e!==Mn}function $c(e,r,n){var t=Uc(e),i=t&&!Jt(e);return(n?t:t&&e!==Al&&e!==Rl&&e!==jl&&e!==Pl&&e!==wl)&&e!==Ao&&!(r===Ht&&!i)||Uc(r)&&!Jt(r)&&e===Ao||r===Ht&&i}function tv(e){return Vn(e)&&e!==Co&&!Jt(e)&&e!==Uy&&e!==By&&e!==Ht&&e!==Al&&e!==Rl&&e!==jl&&e!==Pl&&e!==wl&&e!==Ao&&e!==Gy&&e!==Qy&&e!==Cy&&e!==Jy&&e!==$y&&e!==Ky&&e!==Vy&&e!==qy&&e!==My&&e!==Yy&&e!==Hy}function iv(e){return!Jt(e)&&e!==Ht}function Cn(e,r){var n=e.charCodeAt(r),t;return n>=55296&&n<=56319&&r+1<e.length&&(t=e.charCodeAt(r+1),t>=56320&&t<=57343)?(n-55296)*1024+t-56320+65536:n}function xl(e){var r=/^\n* /;return r.test(e)}var Fl=1,jo=2,kl=3,Cl=4,dn=5;function ov(e,r,n,t,i,o,s,a){var u,c=0,l=null,p=!1,f=!1,m=t!==-1,h=-1,O=tv(Cn(e,0))&&iv(Cn(e,e.length-1));if(r||s)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Cn(e,u),!Vn(c))return dn;O=O&&$c(c,l,a),l=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Cn(e,u),c===Mn)p=!0,m&&(f=f||u-h-1>t&&e[h+1]!==" ",h=u);else if(!Vn(c))return dn;O=O&&$c(c,l,a),l=c}f=f||m&&u-h-1>t&&e[h+1]!==" "}return!p&&!f?O&&!s&&!i(e)?Fl:o===Gn?dn:jo:n>9&&xl(e)?dn:s?o===Gn?dn:jo:f?Cl:kl}function sv(e,r,n,t,i){e.dump=(function(){if(r.length===0)return e.quotingType===Gn?'""':"''";if(!e.noCompatMode&&(Wy.indexOf(r)!==-1||Xy.test(r)))return e.quotingType===Gn?'"'+r+'"':"'"+r+"'";var o=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=t||e.flowLevel>-1&&n>=e.flowLevel;function u(c){return nv(e,c)}switch(ov(r,a,e.indent,s,u,e.quotingType,e.forceQuotes&&!t,i)){case Fl:return r;case jo:return"'"+r.replace(/'/g,"''")+"'";case kl:return"|"+Kc(r,e.indent)+Bc(Qc(r,o));case Cl:return">"+Kc(r,e.indent)+Bc(Qc(av(r,s),o));case dn:return'"'+uv(r)+'"';default:throw new Le("impossible error: invalid scalar style")}})()}function Kc(e,r){var n=xl(e)?String(r):"",t=e[e.length-1]===`
198
198
  `,i=t&&(e[e.length-2]===`
199
199
  `||e===`
200
200
  `),o=i?"+":t?"":"-";return n+o+`
201
201
  `}function Bc(e){return e[e.length-1]===`
202
- `?e.slice(0,-1):e}function sv(e,r){for(var n=/(\n+)([^\n]*)/g,t=(function(){var c=e.indexOf(`
202
+ `?e.slice(0,-1):e}function av(e,r){for(var n=/(\n+)([^\n]*)/g,t=(function(){var c=e.indexOf(`
203
203
  `);return c=c!==-1?c:e.length,n.lastIndex=c,Yc(e.slice(0,c),r)})(),i=e[0]===`
204
204
  `||e[0]===" ",o,s;s=n.exec(e);){var a=s[1],u=s[2];o=u[0]===" ",t+=a+(!i&&!o&&u!==""?`
205
205
  `:"")+Yc(u,r),i=o}return t}function Yc(e,r){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,t,i=0,o,s=0,a=0,u="";t=n.exec(e);)a=t.index,a-i>r&&(o=s>i?s:a,u+=`
206
206
  `+e.slice(i,o),i=o+1),s=a;return u+=`
207
207
  `,e.length-i>r&&s>i?u+=e.slice(i,s)+`
208
- `+e.slice(s+1):u+=e.slice(i),u.slice(1)}function av(e){for(var r="",n=0,t,i=0;i<e.length;n>=65536?i+=2:i++)n=Cn(e,i),t=_e[n],!t&&Vn(n)?(r+=e[i],n>=65536&&(r+=e[i+1])):r+=t||zy(n);return r}function uv(e,r,n){var t="",i=e.tag,o,s,a;for(o=0,s=n.length;o<s;o+=1)a=n[o],e.replacer&&(a=e.replacer.call(n,String(o),a)),(br(e,r,a,!1,!1)||typeof a>"u"&&br(e,r,null,!1,!1))&&(t!==""&&(t+=","+(e.condenseFlow?"":" ")),t+=e.dump);e.tag=i,e.dump="["+t+"]"}function Hc(e,r,n,t){var i="",o=e.tag,s,a,u;for(s=0,a=n.length;s<a;s+=1)u=n[s],e.replacer&&(u=e.replacer.call(n,String(s),u)),(br(e,r+1,u,!0,!0,!1,!0)||typeof u>"u"&&br(e,r+1,null,!0,!0,!1,!0))&&((!t||i!=="")&&(i+=Ro(e,r)),e.dump&&Mn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function cv(e,r,n){var t="",i=e.tag,o=Object.keys(n),s,a,u,c,l;for(s=0,a=o.length;s<a;s+=1)l="",t!==""&&(l+=", "),e.condenseFlow&&(l+='"'),u=o[s],c=n[u],e.replacer&&(c=e.replacer.call(n,u,c)),br(e,r,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),br(e,r,c,!1,!1)&&(l+=e.dump,t+=l));e.tag=i,e.dump="{"+t+"}"}function lv(e,r,n,t){var i="",o=e.tag,s=Object.keys(n),a,u,c,l,p,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Le("sortKeys must be a boolean or a function");for(a=0,u=s.length;a<u;a+=1)f="",(!t||i!=="")&&(f+=Ro(e,r)),c=s[a],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),br(e,r+1,c,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Mn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,p&&(f+=Ro(e,r)),br(e,r+1,l,!0,p)&&(e.dump&&Mn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,i+=f));e.tag=o,e.dump=i||"{}"}function Jc(e,r,n){var t,i,o,s,a,u;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof r=="object"&&r instanceof a.instanceOf)&&(!a.predicate||a.predicate(r))){if(n?a.multi&&a.representName?e.tag=a.representName(r):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,Ll.call(a.represent)==="[object Function]")t=a.represent(r,u);else if(Sl.call(a.represent,u))t=a.represent[u](r,u);else throw new Le("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=t}return!0}return!1}function br(e,r,n,t,i,o,s){e.tag=null,e.dump=n,Jc(e,n,!1)||Jc(e,n,!0);var a=Ll.call(e.dump),u=t,c;t&&(t=e.flowLevel<0||e.flowLevel>r);var l=a==="[object Object]"||a==="[object Array]",p,f;if(l&&(p=e.duplicates.indexOf(n),f=p!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&r>0)&&(i=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(l&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),a==="[object Object]")t&&Object.keys(e.dump).length!==0?(lv(e,r,e.dump,i),f&&(e.dump="&ref_"+p+e.dump)):(cv(e,r,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object Array]")t&&e.dump.length!==0?(e.noArrayIndent&&!s&&r>0?Hc(e,r-1,e.dump,i):Hc(e,r,e.dump,i),f&&(e.dump="&ref_"+p+e.dump)):(uv(e,r,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&ov(e,e.dump,r,o,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Le("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function pv(e,r){var n=[],t=[],i,o;for(Po(e,n,t),i=0,o=t.length;i<o;i+=1)r.duplicates.push(n[t[i]]);r.usedDuplicates=new Array(o)}function Po(e,r,n){var t,i,o;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(r.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Po(e[i],r,n);else for(t=Object.keys(e),i=0,o=t.length;i<o;i+=1)Po(e[t[i]],r,n)}function fv(e,r){r=r||{};var n=new ev(r);n.noRefs||pv(e,n);var t=e;return n.replacer&&(t=n.replacer.call({"":t},"",t)),br(n,0,t,!0,!0)?n.dump+`
209
- `:""}var dv=fv,mv={dump:dv};function qo(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var hv=Ee,yv=zc,vv=nl,Tv=al,gv=ul,bv=xo,Mo=Il.load,Ev=Il.loadAll,_v=mv.dump,Ov=Le,Nv={binary:dl,float:sl,map:rl,null:tl,pairs:hl,set:yl,timestamp:pl,bool:il,int:ol,merge:fl,omap:ml,seq:el,str:Zc},Iv=qo("safeLoad","load"),Lv=qo("safeLoadAll","loadAll"),Sv=qo("safeDump","dump"),Dv={Type:hv,Schema:yv,FAILSAFE_SCHEMA:vv,JSON_SCHEMA:Tv,CORE_SCHEMA:gv,DEFAULT_SCHEMA:bv,load:Mo,loadAll:Ev,dump:_v,YAMLException:Ov,types:Nv,safeLoad:Iv,safeLoadAll:Lv,safeDump:Sv},Cl=Dv;var Xt={maxAttempts:3,baseDelay:1e3,maxDelay:3e4,exponentialBackoff:!0,retryableStatusCodes:[408,429,500,502,503,504]},Gl={concurrency:1,entityConcurrency:1,preserveRowOrder:!0},Ml={retry:Xt,parallelProcessing:Gl,entityConfig:{},entityDependencies:{}};function Vl(e){let r=Rv.join(e,"config.yaml");try{if(!ql.existsSync(r))return console.log("No config.yaml found, using default sequential processing"),Ml;let n=ql.readFileSync(r,"utf8"),t=Mo(n);return jv(t)}catch(n){return console.warn(`Warning: Failed to parse config.yaml: ${n}. Using defaults.`),Ml}}function jv(e){return{retry:{...Xt,...e.retry||{}},parallelProcessing:{...Gl,...e.parallelProcessing||{}},entityConfig:e.entityConfig||{},entityDependencies:e.entityDependencies||{}}}function Ql(e,r){let n=r.entityConfig[e]||{},t={...r.parallelProcessing,...n};return t.preserveRowOrder&&t.concurrency>1&&(console.warn(`Entity '${e}': preserveRowOrder=true forces concurrency=1 (was ${t.concurrency})`),t.concurrency=1),t}function Ul(e,r){let n=r.entityConfig[e]?.retry||{};return{...r.retry,...n}}var zt=class{constructor(r,n,t,i=!1){this.client=new Pv(r,{headers:n||{}}),this.metrics=t,this.verbose=i}async executeMutation(r,n,t){let i=t||Xt,o,s=Date.now();for(let a=0;a<i.maxAttempts;a++){let u=Date.now();try{let c=await this.client.request(r,n);if(this.metrics){let l=Date.now()-u;this.metrics.recordRequestDuration(l),a>0&&this.metrics.recordRetrySuccess(a)}if(this.verbose){let l=Date.now()-s,p=a>0?` (succeeded on attempt ${a+1})`:"";console.log(`\u2713 GraphQL request completed in ${l}ms${p}:`,c)}return c}catch(c){o=c;let l=Date.now()-u;if(this.metrics&&this.metrics.recordRequestDuration(l),a===i.maxAttempts-1){this.metrics&&a>0&&this.metrics.recordRetryFailure(a);break}if(!this.isRetryableError(c,i))throw this.verbose?console.error(`\u2717 GraphQL request failed with non-retryable error in ${l}ms:`,c):console.error("GraphQL mutation failed (non-retryable):",c),c;let p=this.calculateDelay(a,i);this.verbose&&console.log(`\u23F3 GraphQL request failed (attempt ${a+1}/${i.maxAttempts}), retrying in ${p}ms...`),await this.sleep(p)}}if(this.verbose){let a=Date.now()-s;console.error(`\u2717 GraphQL request failed after ${i.maxAttempts} attempts in ${a}ms:`,o)}else console.error(`GraphQL mutation failed after ${i.maxAttempts} attempts:`,o);throw o}isRetryableError(r,n){if(!r.response)return!0;let t=r.response.status;return n.retryableStatusCodes.includes(t)}calculateDelay(r,n){if(!n.exponentialBackoff)return n.baseDelay;let t=n.baseDelay*Math.pow(2,r),i=Math.min(t,n.maxDelay),o=i*.2*(Math.random()-.5);return Math.max(0,i+o)}sleep(r){return new Promise(n=>setTimeout(n,r))}setHeaders(r){this.client.setHeaders(r)}};var zm=ch(Wm(),1);import Dc from"fs";import Dr from"path";var ir=class{canHandle(r){let n=r.split(".").pop()?.toLowerCase();return n?this.getSupportedExtensions().includes(n):!1}},Tr=class{static{this.readers=[]}static registerReader(r){this.readers.push(r)}static getReader(r,n){if(n){let i=this.readers.find(o=>o.getSupportedExtensions().includes(n.toLowerCase()));if(i)return i}let t=this.readers.find(i=>i.canHandle(r));if(!t)throw new Error(`No reader found for file: ${r}${n?` with format: ${n}`:""}`);return t}static getSupportedFormats(){let r=new Set;return this.readers.forEach(n=>{n.getSupportedExtensions().forEach(t=>r.add(t))}),Array.from(r)}};import yL from"fs";import vL from"csv-parser";async function Xm(e){return new Promise((r,n)=>{let t=[];yL.createReadStream(e).pipe(vL()).on("data",i=>t.push(i)).on("end",()=>r(t)).on("error",i=>n(i))})}var Mt=class extends ir{getSupportedExtensions(){return["csv"]}async readFile(r){return Xm(r)}};import TL from"fs/promises";var Gt=class extends ir{getSupportedExtensions(){return["json"]}async readFile(r){let n=await TL.readFile(r,"utf8"),t=JSON.parse(n);if(Array.isArray(t))return t;if(typeof t=="object"&&t!==null)return[t];throw new Error(`Invalid JSON data structure in file: ${r}. Expected array or object.`)}};import gL from"fs/promises";var Vt=class extends ir{getSupportedExtensions(){return["yaml","yml"]}async readFile(r){let n=await gL.readFile(r,"utf8"),t=Cl.load(n);if(Array.isArray(t))return t;if(typeof t=="object"&&t!==null)return[t];throw new Error(`Invalid YAML data structure in file: ${r}. Expected array or object.`)}};import bL from"fs/promises";var Qt=class extends ir{getSupportedExtensions(){return["jsonl","ndjson"]}async readFile(r){let t=(await bL.readFile(r,"utf8")).split(`
208
+ `+e.slice(s+1):u+=e.slice(i),u.slice(1)}function uv(e){for(var r="",n=0,t,i=0;i<e.length;n>=65536?i+=2:i++)n=Cn(e,i),t=_e[n],!t&&Vn(n)?(r+=e[i],n>=65536&&(r+=e[i+1])):r+=t||Zy(n);return r}function cv(e,r,n){var t="",i=e.tag,o,s,a;for(o=0,s=n.length;o<s;o+=1)a=n[o],e.replacer&&(a=e.replacer.call(n,String(o),a)),(br(e,r,a,!1,!1)||typeof a>"u"&&br(e,r,null,!1,!1))&&(t!==""&&(t+=","+(e.condenseFlow?"":" ")),t+=e.dump);e.tag=i,e.dump="["+t+"]"}function Hc(e,r,n,t){var i="",o=e.tag,s,a,u;for(s=0,a=n.length;s<a;s+=1)u=n[s],e.replacer&&(u=e.replacer.call(n,String(s),u)),(br(e,r+1,u,!0,!0,!1,!0)||typeof u>"u"&&br(e,r+1,null,!0,!0,!1,!0))&&((!t||i!=="")&&(i+=Ro(e,r)),e.dump&&Mn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function lv(e,r,n){var t="",i=e.tag,o=Object.keys(n),s,a,u,c,l;for(s=0,a=o.length;s<a;s+=1)l="",t!==""&&(l+=", "),e.condenseFlow&&(l+='"'),u=o[s],c=n[u],e.replacer&&(c=e.replacer.call(n,u,c)),br(e,r,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),br(e,r,c,!1,!1)&&(l+=e.dump,t+=l));e.tag=i,e.dump="{"+t+"}"}function pv(e,r,n,t){var i="",o=e.tag,s=Object.keys(n),a,u,c,l,p,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Le("sortKeys must be a boolean or a function");for(a=0,u=s.length;a<u;a+=1)f="",(!t||i!=="")&&(f+=Ro(e,r)),c=s[a],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),br(e,r+1,c,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Mn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,p&&(f+=Ro(e,r)),br(e,r+1,l,!0,p)&&(e.dump&&Mn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,i+=f));e.tag=o,e.dump=i||"{}"}function Jc(e,r,n){var t,i,o,s,a,u;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof r=="object"&&r instanceof a.instanceOf)&&(!a.predicate||a.predicate(r))){if(n?a.multi&&a.representName?e.tag=a.representName(r):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,Sl.call(a.represent)==="[object Function]")t=a.represent(r,u);else if(Dl.call(a.represent,u))t=a.represent[u](r,u);else throw new Le("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=t}return!0}return!1}function br(e,r,n,t,i,o,s){e.tag=null,e.dump=n,Jc(e,n,!1)||Jc(e,n,!0);var a=Sl.call(e.dump),u=t,c;t&&(t=e.flowLevel<0||e.flowLevel>r);var l=a==="[object Object]"||a==="[object Array]",p,f;if(l&&(p=e.duplicates.indexOf(n),f=p!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&r>0)&&(i=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(l&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),a==="[object Object]")t&&Object.keys(e.dump).length!==0?(pv(e,r,e.dump,i),f&&(e.dump="&ref_"+p+e.dump)):(lv(e,r,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object Array]")t&&e.dump.length!==0?(e.noArrayIndent&&!s&&r>0?Hc(e,r-1,e.dump,i):Hc(e,r,e.dump,i),f&&(e.dump="&ref_"+p+e.dump)):(cv(e,r,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&sv(e,e.dump,r,o,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Le("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function fv(e,r){var n=[],t=[],i,o;for(Po(e,n,t),i=0,o=t.length;i<o;i+=1)r.duplicates.push(n[t[i]]);r.usedDuplicates=new Array(o)}function Po(e,r,n){var t,i,o;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(r.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Po(e[i],r,n);else for(t=Object.keys(e),i=0,o=t.length;i<o;i+=1)Po(e[t[i]],r,n)}function dv(e,r){r=r||{};var n=new rv(r);n.noRefs||fv(e,n);var t=e;return n.replacer&&(t=n.replacer.call({"":t},"",t)),br(n,0,t,!0,!0)?n.dump+`
209
+ `:""}var mv=dv,hv={dump:mv};function qo(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var yv=Ee,vv=zc,Tv=nl,gv=al,bv=ul,Ev=xo,Mo=Ll.load,_v=Ll.loadAll,Ov=hv.dump,Nv=Le,Iv={binary:dl,float:sl,map:rl,null:tl,pairs:hl,set:yl,timestamp:pl,bool:il,int:ol,merge:fl,omap:ml,seq:el,str:Zc},Lv=qo("safeLoad","load"),Sv=qo("safeLoadAll","loadAll"),Dv=qo("safeDump","dump"),ql={Type:yv,Schema:vv,FAILSAFE_SCHEMA:Tv,JSON_SCHEMA:gv,CORE_SCHEMA:bv,DEFAULT_SCHEMA:Ev,load:Mo,loadAll:_v,dump:Ov,YAMLException:Nv,types:Iv,safeLoad:Lv,safeLoadAll:Sv,safeDump:Dv};var Xt={maxAttempts:3,baseDelay:1e3,maxDelay:3e4,exponentialBackoff:!0,retryableStatusCodes:[408,429,500,502,503,504]},Vl={concurrency:1,entityConcurrency:1,preserveRowOrder:!0},Gl={retry:Xt,parallelProcessing:Vl,entityConfig:{},entityDependencies:{}};function Ql(e){let r=Rv.join(e,"config.yaml");try{if(!Ml.existsSync(r))return console.log("No config.yaml found, using default sequential processing"),Gl;let n=Ml.readFileSync(r,"utf8"),t=Mo(n);return jv(t)}catch(n){return console.warn(`Warning: Failed to parse config.yaml: ${n}. Using defaults.`),Gl}}function jv(e){return{retry:{...Xt,...e.retry||{}},parallelProcessing:{...Vl,...e.parallelProcessing||{}},entityConfig:e.entityConfig||{},entityDependencies:e.entityDependencies||{}}}function Ul(e,r){let n=r.entityConfig[e]||{},t={...r.parallelProcessing,...n};return t.preserveRowOrder&&t.concurrency>1&&(console.warn(`Entity '${e}': preserveRowOrder=true forces concurrency=1 (was ${t.concurrency})`),t.concurrency=1),t}function $l(e,r){let n=r.entityConfig[e]?.retry||{};return{...r.retry,...n}}var zt=class{constructor(r,n,t,i=!1){this.client=new Pv(r,{headers:n||{}}),this.metrics=t,this.verbose=i}async executeMutation(r,n,t){let i=t||Xt,o,s=Date.now();for(let a=0;a<i.maxAttempts;a++){let u=Date.now();try{let c=await this.client.request(r,n);if(this.metrics){let l=Date.now()-u;this.metrics.recordRequestDuration(l),a>0&&this.metrics.recordRetrySuccess(a)}if(this.verbose){let l=Date.now()-s,p=a>0?` (succeeded on attempt ${a+1})`:"";console.log(`\u2713 GraphQL request completed in ${l}ms${p}:`,c)}return c}catch(c){o=c;let l=Date.now()-u;if(this.metrics&&this.metrics.recordRequestDuration(l),a===i.maxAttempts-1){this.metrics&&a>0&&this.metrics.recordRetryFailure(a);break}if(!this.isRetryableError(c,i))throw this.verbose?console.error(`\u2717 GraphQL request failed with non-retryable error in ${l}ms:`,c):console.error("GraphQL mutation failed (non-retryable):",c),c;let p=this.calculateDelay(a,i);this.verbose&&console.log(`\u23F3 GraphQL request failed (attempt ${a+1}/${i.maxAttempts}), retrying in ${p}ms...`),await this.sleep(p)}}if(this.verbose){let a=Date.now()-s;console.error(`\u2717 GraphQL request failed after ${i.maxAttempts} attempts in ${a}ms:`,o)}else console.error(`GraphQL mutation failed after ${i.maxAttempts} attempts:`,o);throw o}isRetryableError(r,n){if(!r.response)return!0;let t=r.response.status;return n.retryableStatusCodes.includes(t)}calculateDelay(r,n){if(!n.exponentialBackoff)return n.baseDelay;let t=n.baseDelay*Math.pow(2,r),i=Math.min(t,n.maxDelay),o=i*.2*(Math.random()-.5);return Math.max(0,i+o)}sleep(r){return new Promise(n=>setTimeout(n,r))}setHeaders(r){this.client.setHeaders(r)}};var Zm=lh(Xm(),1);import Dc from"fs";import Dr from"path";var ir=class{canHandle(r){let n=r.split(".").pop()?.toLowerCase();return n?this.getSupportedExtensions().includes(n):!1}},Tr=class{static{this.readers=[]}static registerReader(r){this.readers.push(r)}static getReader(r,n){if(n){let i=this.readers.find(o=>o.getSupportedExtensions().includes(n.toLowerCase()));if(i)return i}let t=this.readers.find(i=>i.canHandle(r));if(!t)throw new Error(`No reader found for file: ${r}${n?` with format: ${n}`:""}`);return t}static getSupportedFormats(){let r=new Set;return this.readers.forEach(n=>{n.getSupportedExtensions().forEach(t=>r.add(t))}),Array.from(r)}};import yL from"fs";import vL from"csv-parser";async function zm(e){return new Promise((r,n)=>{let t=[];yL.createReadStream(e).pipe(vL()).on("data",i=>t.push(i)).on("end",()=>r(t)).on("error",i=>n(i))})}var Mt=class extends ir{getSupportedExtensions(){return["csv"]}async readFile(r){return zm(r)}};import TL from"fs/promises";var Gt=class extends ir{getSupportedExtensions(){return["json"]}async readFile(r){let n=await TL.readFile(r,"utf8"),t=JSON.parse(n);if(Array.isArray(t))return t;if(typeof t=="object"&&t!==null)return[t];throw new Error(`Invalid JSON data structure in file: ${r}. Expected array or object.`)}};import gL from"fs/promises";var Vt=class extends ir{getSupportedExtensions(){return["yaml","yml"]}async readFile(r){let n=await gL.readFile(r,"utf8"),t=ql.load(n);if(Array.isArray(t))return t;if(typeof t=="object"&&t!==null)return[t];throw new Error(`Invalid YAML data structure in file: ${r}. Expected array or object.`)}};import bL from"fs/promises";var Qt=class extends ir{getSupportedExtensions(){return["jsonl","ndjson"]}async readFile(r){let t=(await bL.readFile(r,"utf8")).split(`
210
210
  `).filter(o=>o.trim()),i=[];for(let o=0;o<t.length;o++)try{let s=JSON.parse(t[o]);i.push(s)}catch(s){throw new Error(`Invalid JSON at line ${o+1} in file: ${r}. Error: ${s}`)}return i}};Tr.registerReader(new Mt);Tr.registerReader(new Gt);Tr.registerReader(new Vt);Tr.registerReader(new Qt);var Fn=class{constructor(){this.metrics={totalEntities:0,totalSuccesses:0,totalFailures:0,entityMetrics:new Map,requestDurations:[],retryAttempts:0,retrySuccesses:0,retryFailures:0,startTime:Date.now()}}startEntityProcessing(r){this.metrics.entityMetrics.has(r)||this.metrics.entityMetrics.set(r,{entityName:r,successCount:0,failureCount:0,startTime:Date.now()})}recordSuccess(r){let n=this.metrics.entityMetrics.get(r);n&&(n.successCount++,this.metrics.totalSuccesses++,this.metrics.totalEntities++)}recordFailure(r){let n=this.metrics.entityMetrics.get(r);n&&(n.failureCount++,this.metrics.totalFailures++,this.metrics.totalEntities++)}finishEntityProcessing(r){let n=this.metrics.entityMetrics.get(r);n&&(n.endTime=Date.now())}finishProcessing(){return this.metrics.endTime=Date.now(),{...this.metrics}}getEntityMetrics(r){return this.metrics.entityMetrics.get(r)}getTotalProcessed(){return this.metrics.totalEntities}getSuccessRate(){return this.metrics.totalEntities===0?0:this.metrics.totalSuccesses/this.metrics.totalEntities*100}recordRequestDuration(r){this.metrics.requestDurations.push(r)}recordRetrySuccess(r){this.metrics.retryAttempts+=r,this.metrics.retrySuccesses++}recordRetryFailure(r){this.metrics.retryAttempts+=r,this.metrics.retryFailures++}getAverageRequestDuration(){return this.metrics.requestDurations.length===0?0:this.metrics.requestDurations.reduce((n,t)=>n+t,0)/this.metrics.requestDurations.length}getDurationMs(){return(this.metrics.endTime||Date.now())-this.metrics.startTime}generateSummary(){let r=this.getDurationMs(),n=this.getSuccessRate(),t=this.getAverageRequestDuration(),i=`
211
211
  \u{1F4CA} Processing Summary:
212
212
  `;if(i+=` Total Processed: ${this.metrics.totalEntities}
@@ -221,11 +221,11 @@ ${r.join(`
221
221
  `),this.metrics.entityMetrics.size>0){i+=`
222
222
  \u{1F4CB} Per-Entity Breakdown:
223
223
  `;for(let[o,s]of this.metrics.entityMetrics){let a=s.successCount+s.failureCount,u=a>0?s.successCount/a*100:0,c=s.endTime?s.endTime-s.startTime:0;i+=` ${o}: ${a} total (${s.successCount} \u2713, ${s.failureCount} \u2717) - ${u.toFixed(1)}% success - ${(c/1e3).toFixed(2)}s
224
- `}}return i}};var bo=class{constructor(r,n=process.cwd(),t,i=!1,o){this.client=r,this.basePath=n,this.metrics=t||new Fn,this.verbose=i,this.formatOverride=o}discoverMappings(r,n){let t=Dr.resolve(this.basePath,r,"mappings");try{let o=Dc.readdirSync(t).filter(s=>s.endsWith(".json"));if(n&&n.length>0){let s=new Set(n),a=new Set;o=o.filter(c=>{let l=Dr.basename(c,".json");return s.has(l)?(a.add(l),!0):!1});let u=n.filter(c=>!a.has(c));u.length>0&&console.warn(`Warning: The following entities were not found in mappings: ${u.join(", ")}`)}return o.sort(),console.log(`Discovered ${o.length} mapping files: ${o.join(", ")}`),o.map(s=>Dr.join(r,"mappings",s))}catch(i){return console.error(`Error reading mappings directory ${t}:`,i),[]}}async processEntity(r,n,t){let i=Dr.basename(r,".json");console.log(`Processing entity: ${r}`),this.metrics.startEntityProcessing(i);let o=Dr.resolve(this.basePath,r),s=JSON.parse(Dc.readFileSync(o,"utf8")),a=Dr.dirname(Dr.dirname(o)),u=s.dataFile||s.csvFile;if(!u)throw new Error(`No data file specified in mapping config: ${r}`);let c=Dr.resolve(a,u),l=this.formatOverride||s.dataFormat,f=await Tr.getReader(c,l).readFile(c),m=Dr.resolve(a,s.graphqlFile),h=Dc.readFileSync(m,"utf8");n&&n.concurrency>1?await this.processRowsConcurrently(f,h,s.mapping,i,n,t):await this.processRowsSequentially(f,h,s.mapping,i,t),this.metrics.finishEntityProcessing(i)}async processRowsSequentially(r,n,t,i,o){let s=r.length,a=this.extractVariableTypes(n);for(let u=0;u<r.length;u++){let c=r[u],l=this.mapRowToVariables(c,t,a);try{if(await this.client.executeMutation(n,l,o),this.metrics.recordSuccess(i),!this.verbose&&((u+1)%Math.max(1,Math.floor(s/10))===0||u===s-1)){let p=((u+1)/s*100).toFixed(1);console.log(`\u{1F4CA} Progress: ${u+1}/${s} (${p}%) \u2713`)}}catch(p){this.metrics.recordFailure(i),this.verbose||console.error(`\u2717 Failed to create entity for row ${u+1}:`,c,p)}}}async processRowsConcurrently(r,n,t,i,o,s){let a=o.concurrency;console.log(`Processing ${r.length} rows with concurrency: ${a}`);let u=this.extractVariableTypes(n),c=this.chunkArray(r,a),l=0,p=r.length;for(let f=0;f<c.length;f++){let m=c[f],h=m.map(async A=>{let ce=this.mapRowToVariables(A,t,u);try{let ie=await this.client.executeMutation(n,ce,s);return this.metrics.recordSuccess(i),{success:!0,result:ie,row:A}}catch(ie){return this.metrics.recordFailure(i),{success:!1,error:ie,row:A}}}),O=await Promise.allSettled(h);l+=m.length;let j=0,C=0;if(O.forEach(A=>{if(A.status==="fulfilled"){let{success:ce,error:ie,row:gr}=A.value;ce?j++:(C++,this.verbose||console.error("\u2717 Failed to create entity for row:",gr,ie))}else C++,this.verbose||console.error("\u2717 Promise rejected:",A.reason)}),!this.verbose){let A=(l/p*100).toFixed(1);console.log(`\u{1F4CA} Progress: ${l}/${p} (${A}%) - Chunk ${f+1}: ${j} \u2713, ${C} \u2717`)}}}chunkArray(r,n){let t=[];for(let i=0;i<r.length;i+=n)t.push(r.slice(i,i+n));return t}mapRowToVariables(r,n,t){let i={};for(let[o,s]of Object.entries(n))if(s==="$")i[o]=r;else if(typeof s=="string"&&s.startsWith("$.")){let a=s.substring(2),u=this.getValueByPath(r,a);if(u!==void 0){let c=t[o];i[o]=this.convertValue(u,c,o)}}else if(typeof s=="string"&&r[s]!==void 0){let a=r[s],u=t[o];i[o]=this.convertValue(a,u,o)}else typeof s=="object"&&s!==null&&(i[o]=this.mapNestedObject(r,s,t));return i}getValueByPath(r,n){let t=n.split("."),i=r;for(let o of t)if(i&&typeof i=="object"&&o in i)i=i[o];else return;return i}mapNestedObject(r,n,t){if(Array.isArray(n))return n.map(i=>this.mapNestedObject(r,i,t));if(typeof n=="object"&&n!==null){let i={};for(let[o,s]of Object.entries(n))if(typeof s=="string"&&s.startsWith("$.")){let a=s.substring(2),u=this.getValueByPath(r,a);o==="values"&&typeof u=="string"&&u.includes(",")&&(u=u.split(",").map(c=>c.trim())),i[o]=u}else typeof s=="string"&&r[s]!==void 0?i[o]=r[s]:typeof s=="object"?i[o]=this.mapNestedObject(r,s,t):i[o]=s;return i}return n}extractVariableTypes(r){let n={};try{let t=(0,zm.parse)(r);for(let i of t.definitions)if(i.kind==="OperationDefinition"&&i.variableDefinitions)for(let o of i.variableDefinitions){let s=o.variable.name.value,a=this.extractTypeName(o);a&&(n[s]=a)}}catch(t){console.error("Error parsing GraphQL mutation:",t)}return n}extractTypeName(r){let n=r.type;if(n.kind==="NonNullType"){if(n.type.kind==="NamedType")return n.type.name.value}else if(n.kind==="NamedType")return n.name.value;return null}convertValue(r,n,t){if(!n||typeof r!="string")return r;let i=r.trim();switch(n){case"Int":let o=Number(i);return isNaN(o)||!isFinite(o)||!Number.isInteger(o)?(console.warn(`Warning: Cannot convert "${r}" to Int for variable $${t}. Expected a valid integer. Using original value.`),r):o;case"Float":let s=Number(i);return isNaN(s)||!isFinite(s)?(console.warn(`Warning: Cannot convert "${r}" to Float for variable $${t}. Expected a valid number. Using original value.`),r):s;case"Boolean":let a=i.toLowerCase();return a==="true"||a==="1"?!0:a==="false"||a==="0"?!1:(console.warn(`Warning: Cannot convert "${r}" to Boolean for variable $${t}. Expected "true", "false", "1", or "0". Using original value.`),r);case"String":return r;default:return this.verbose&&console.log(`Unknown GraphQL type "${n}" for variable $${t}. Keeping value as string.`),r}}getMetrics(){return this.metrics}};var Eo=class{constructor(r,n={},t=!1){this.entities=r,this.dependencies=n,this.allowPartialResolution=t}resolveExecutionOrder(){let r=[],n=new Set,t=new Set,i=0;for(;n.size<this.entities.length;){let o=[];for(let s of this.entities){if(n.has(s)||t.has(s))continue;(this.dependencies[s]||[]).every(c=>n.has(c)||this.allowPartialResolution&&!this.entities.includes(c))&&(o.push(s),t.add(s))}if(o.length===0){let s=this.entities.filter(a=>!n.has(a));throw new Error(`Circular dependency detected or missing dependencies for entities: ${s.join(", ")}`)}r.push({entities:o,wave:i++}),o.forEach(s=>{n.add(s),t.delete(s)})}return r}validateDependencies(){let r=[],n=new Set(this.entities);for(let[t,i]of Object.entries(this.dependencies)){if(!n.has(t)){r.push(`Entity '${t}' has dependencies but is not in the entity list`);continue}for(let o of i)n.has(o)||r.push(`Entity '${t}' depends on '${o}' which does not exist`)}return r}getDependents(r){return Object.entries(this.dependencies).filter(([n,t])=>t.includes(r)).map(([n,t])=>n)}getDependencies(r){return this.dependencies[r]||[]}};import{basename as eh}from"path";function OL(e,r){if(r<=0)return[e];let n=[];for(let t=0;t<e.length;t+=r)n.push(e.slice(t,t+r));return n}var Ac=new _L;Ac.name("gql-ingest").description("A CLI tool for ingesting data from CSV files into a GraphQL API").version(Zm().version);Ac.requiredOption("-e, --endpoint <url>","GraphQL endpoint URL").requiredOption("-c, --config <path>","Path to configuration directory (containing data/, graphql/, mappings/ subdirectories)").option("-n, --entities <entities>","Comma-separated list of specific entities to process (e.g., users,products)").option("-h, --headers <headers>","JSON string of headers to include in requests").option("-v, --verbose","Show detailed request results and responses").option("-f, --format <format>","Override data format detection (csv, json, yaml, jsonl)").action(async e=>{try{console.log("Starting seed data generation...");let r=e.headers?JSON.parse(e.headers):{},n=new Fn,t=new zt(e.endpoint,r,n,e.verbose),i=Vl(e.config),o=new bo(t,process.cwd(),n,e.verbose,e.format),s=e.entities?e.entities.split(",").map(f=>f.trim()):void 0,a=o.discoverMappings(e.config,s);if(a.length===0){let f=s?` matching entities: ${s.join(", ")}`:"";console.warn(`No mapping files found in ${e.config}/mappings${f}`);return}let u=a.map(f=>eh(f,".json")),c={};if(i.entityDependencies)for(let f of u)i.entityDependencies[f]&&(c[f]=i.entityDependencies[f]);let l=new Eo(u,c,!!s),p=l.validateDependencies();p.length>0&&(s?(console.warn(`
224
+ `}}return i}};var bo=class{constructor(r,n=process.cwd(),t,i=!1,o){this.client=r,this.basePath=n,this.metrics=t||new Fn,this.verbose=i,this.formatOverride=o}discoverMappings(r,n){let t=Dr.resolve(this.basePath,r,"mappings");try{let o=Dc.readdirSync(t).filter(s=>s.endsWith(".json"));if(n&&n.length>0){let s=new Set(n),a=new Set;o=o.filter(c=>{let l=Dr.basename(c,".json");return s.has(l)?(a.add(l),!0):!1});let u=n.filter(c=>!a.has(c));u.length>0&&console.warn(`Warning: The following entities were not found in mappings: ${u.join(", ")}`)}return o.sort(),console.log(`Discovered ${o.length} mapping files: ${o.join(", ")}`),o.map(s=>Dr.join(r,"mappings",s))}catch(i){return console.error(`Error reading mappings directory ${t}:`,i),[]}}async processEntity(r,n,t){let i=Dr.basename(r,".json");console.log(`Processing entity: ${r}`),this.metrics.startEntityProcessing(i);let o=Dr.resolve(this.basePath,r),s=JSON.parse(Dc.readFileSync(o,"utf8")),a=Dr.dirname(Dr.dirname(o)),u=s.dataFile||s.csvFile;if(!u)throw new Error(`No data file specified in mapping config: ${r}`);let c=Dr.resolve(a,u),l=this.formatOverride||s.dataFormat,f=await Tr.getReader(c,l).readFile(c),m=Dr.resolve(a,s.graphqlFile),h=Dc.readFileSync(m,"utf8");n&&n.concurrency>1?await this.processRowsConcurrently(f,h,s.mapping,i,n,t):await this.processRowsSequentially(f,h,s.mapping,i,t),this.metrics.finishEntityProcessing(i)}async processRowsSequentially(r,n,t,i,o){let s=r.length,a=this.extractVariableTypes(n);for(let u=0;u<r.length;u++){let c=r[u],l=this.mapRowToVariables(c,t,a);try{if(await this.client.executeMutation(n,l,o),this.metrics.recordSuccess(i),!this.verbose&&((u+1)%Math.max(1,Math.floor(s/10))===0||u===s-1)){let p=((u+1)/s*100).toFixed(1);console.log(`\u{1F4CA} Progress: ${u+1}/${s} (${p}%) \u2713`)}}catch(p){this.metrics.recordFailure(i),this.verbose||console.error(`\u2717 Failed to create entity for row ${u+1}:`,c,p)}}}async processRowsConcurrently(r,n,t,i,o,s){let a=o.concurrency;console.log(`Processing ${r.length} rows with concurrency: ${a}`);let u=this.extractVariableTypes(n),c=this.chunkArray(r,a),l=0,p=r.length;for(let f=0;f<c.length;f++){let m=c[f],h=m.map(async A=>{let ce=this.mapRowToVariables(A,t,u);try{let ie=await this.client.executeMutation(n,ce,s);return this.metrics.recordSuccess(i),{success:!0,result:ie,row:A}}catch(ie){return this.metrics.recordFailure(i),{success:!1,error:ie,row:A}}}),O=await Promise.allSettled(h);l+=m.length;let j=0,C=0;if(O.forEach(A=>{if(A.status==="fulfilled"){let{success:ce,error:ie,row:gr}=A.value;ce?j++:(C++,this.verbose||console.error("\u2717 Failed to create entity for row:",gr,ie))}else C++,this.verbose||console.error("\u2717 Promise rejected:",A.reason)}),!this.verbose){let A=(l/p*100).toFixed(1);console.log(`\u{1F4CA} Progress: ${l}/${p} (${A}%) - Chunk ${f+1}: ${j} \u2713, ${C} \u2717`)}}}chunkArray(r,n){let t=[];for(let i=0;i<r.length;i+=n)t.push(r.slice(i,i+n));return t}mapRowToVariables(r,n,t){let i={};for(let[o,s]of Object.entries(n))if(s==="$")i[o]=r;else if(typeof s=="string"&&s.startsWith("$.")){let a=s.substring(2),u=this.getValueByPath(r,a);if(u!==void 0){let c=t[o];i[o]=this.convertValue(u,c,o)}}else if(typeof s=="string"&&r[s]!==void 0){let a=r[s],u=t[o];i[o]=this.convertValue(a,u,o)}else typeof s=="object"&&s!==null&&(i[o]=this.mapNestedObject(r,s,t));return i}getValueByPath(r,n){let t=n.split("."),i=r;for(let o of t)if(i&&typeof i=="object"&&o in i)i=i[o];else return;return i}mapNestedObject(r,n,t){if(Array.isArray(n))return n.map(i=>this.mapNestedObject(r,i,t));if(typeof n=="object"&&n!==null){let i={};for(let[o,s]of Object.entries(n))if(typeof s=="string"&&s.startsWith("$.")){let a=s.substring(2),u=this.getValueByPath(r,a);o==="values"&&typeof u=="string"&&u.includes(",")&&(u=u.split(",").map(c=>c.trim())),i[o]=u}else typeof s=="string"&&r[s]!==void 0?i[o]=r[s]:typeof s=="object"?i[o]=this.mapNestedObject(r,s,t):i[o]=s;return i}return n}extractVariableTypes(r){let n={};try{let t=(0,Zm.parse)(r);for(let i of t.definitions)if(i.kind==="OperationDefinition"&&i.variableDefinitions)for(let o of i.variableDefinitions){let s=o.variable.name.value,a=this.extractTypeName(o);a&&(n[s]=a)}}catch(t){console.error("Error parsing GraphQL mutation:",t)}return n}extractTypeName(r){let n=r.type;if(n.kind==="NonNullType"){if(n.type.kind==="NamedType")return n.type.name.value}else if(n.kind==="NamedType")return n.name.value;return null}convertValue(r,n,t){if(!n||typeof r!="string")return r;let i=r.trim();switch(n){case"Int":let o=Number(i);return isNaN(o)||!isFinite(o)||!Number.isInteger(o)?(console.warn(`Warning: Cannot convert "${r}" to Int for variable $${t}. Expected a valid integer. Using original value.`),r):o;case"Float":let s=Number(i);return isNaN(s)||!isFinite(s)?(console.warn(`Warning: Cannot convert "${r}" to Float for variable $${t}. Expected a valid number. Using original value.`),r):s;case"Boolean":let a=i.toLowerCase();return a==="true"||a==="1"?!0:a==="false"||a==="0"?!1:(console.warn(`Warning: Cannot convert "${r}" to Boolean for variable $${t}. Expected "true", "false", "1", or "0". Using original value.`),r);case"String":return r;default:return this.verbose&&console.log(`Unknown GraphQL type "${n}" for variable $${t}. Keeping value as string.`),r}}getMetrics(){return this.metrics}};var Eo=class{constructor(r,n={},t=!1){this.entities=r,this.dependencies=n,this.allowPartialResolution=t}resolveExecutionOrder(){let r=[],n=new Set,t=new Set,i=0;for(;n.size<this.entities.length;){let o=[];for(let s of this.entities){if(n.has(s)||t.has(s))continue;(this.dependencies[s]||[]).every(c=>n.has(c)||this.allowPartialResolution&&!this.entities.includes(c))&&(o.push(s),t.add(s))}if(o.length===0){let s=this.entities.filter(a=>!n.has(a));throw new Error(`Circular dependency detected or missing dependencies for entities: ${s.join(", ")}`)}r.push({entities:o,wave:i++}),o.forEach(s=>{n.add(s),t.delete(s)})}return r}validateDependencies(){let r=[],n=new Set(this.entities);for(let[t,i]of Object.entries(this.dependencies)){if(!n.has(t)){r.push(`Entity '${t}' has dependencies but is not in the entity list`);continue}for(let o of i)n.has(o)||r.push(`Entity '${t}' depends on '${o}' which does not exist`)}return r}getDependents(r){return Object.entries(this.dependencies).filter(([n,t])=>t.includes(r)).map(([n,t])=>n)}getDependencies(r){return this.dependencies[r]||[]}};import{basename as rh}from"path";function OL(e,r){if(r<=0)return[e];let n=[];for(let t=0;t<e.length;t+=r)n.push(e.slice(t,t+r));return n}var Ac=new _L;Ac.name("gql-ingest").description("A CLI tool for ingesting data from CSV files into a GraphQL API").version(eh().version);Ac.requiredOption("-e, --endpoint <url>","GraphQL endpoint URL").requiredOption("-c, --config <path>","Path to configuration directory (containing data/, graphql/, mappings/ subdirectories)").option("-n, --entities <entities>","Comma-separated list of specific entities to process (e.g., users,products)").option("-h, --headers <headers>","JSON string of headers to include in requests").option("-v, --verbose","Show detailed request results and responses").option("-f, --format <format>","Override data format detection (csv, json, yaml, jsonl)").action(async e=>{try{console.log("Starting seed data generation...");let r=e.headers?JSON.parse(e.headers):{},n=new Fn,t=new zt(e.endpoint,r,n,e.verbose),i=Ql(e.config),o=new bo(t,process.cwd(),n,e.verbose,e.format),s=e.entities?e.entities.split(",").map(f=>f.trim()):void 0,a=o.discoverMappings(e.config,s);if(a.length===0){let f=s?` matching entities: ${s.join(", ")}`:"";console.warn(`No mapping files found in ${e.config}/mappings${f}`);return}let u=a.map(f=>rh(f,".json")),c={};if(i.entityDependencies)for(let f of u)i.entityDependencies[f]&&(c[f]=i.entityDependencies[f]);let l=new Eo(u,c,!!s),p=l.validateDependencies();p.length>0&&(s?(console.warn(`
225
225
  \u26A0\uFE0F Warning: Dependency validation issues:`),p.forEach(f=>console.warn(` - ${f}`)),console.warn(`This may cause errors if the dependent data doesn't already exist.
226
- `)):(console.error("Dependency validation errors:"),p.forEach(f=>console.error(` - ${f}`)),process.exit(1))),await NL(a,l,o,i),n.finishProcessing(),console.log(n.generateSummary())}catch(r){console.error("Error:",r),process.exit(1)}});async function NL(e,r,n,t){let i=r.resolveExecutionOrder(),o=new Map(e.map(s=>[eh(s,".json"),s]));console.log(`Processing ${i.length} dependency waves...`);for(let s of i){console.log(`Wave ${s.wave+1}: Processing entities [${s.entities.join(", ")}]`);let a=t.parallelProcessing.entityConcurrency,u=OL(s.entities,a);for(let c of u){let l=c.map(async p=>{let f=o.get(p);if(f)try{let m=Ql(p,t),h=Ul(p,t);await n.processEntity(f,m,h)}catch(m){console.warn(`Warning: Could not process ${f}:`,m)}});await Promise.allSettled(l)}}}Ac.parse();
226
+ `)):(console.error("Dependency validation errors:"),p.forEach(f=>console.error(` - ${f}`)),process.exit(1))),await NL(a,l,o,i),n.finishProcessing(),console.log(n.generateSummary())}catch(r){console.error("Error:",r),process.exit(1)}});async function NL(e,r,n,t){let i=r.resolveExecutionOrder(),o=new Map(e.map(s=>[rh(s,".json"),s]));console.log(`Processing ${i.length} dependency waves...`);for(let s of i){console.log(`Wave ${s.wave+1}: Processing entities [${s.entities.join(", ")}]`);let a=t.parallelProcessing.entityConcurrency,u=OL(s.entities,a);for(let c of u){let l=c.map(async p=>{let f=o.get(p);if(f)try{let m=Ul(p,t),h=$l(p,t);await n.processEntity(f,m,h)}catch(m){console.warn(`Warning: Could not process ${f}:`,m)}});await Promise.allSettled(l)}}}Ac.parse();
227
227
  /*! Bundled license information:
228
228
 
229
229
  js-yaml/dist/js-yaml.mjs:
230
- (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
230
+ (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
231
231
  */