ripplo 0.15.2 → 0.17.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 (77) hide show
  1. package/README.md +26 -138
  2. package/dist/chunk-HA3VCAP6.js +3 -0
  3. package/dist/graphql-Z4UDRCDF.js +185 -0
  4. package/dist/index.js +345 -625
  5. package/package.json +10 -45
  6. package/dist/assets/browser-trace.js +0 -1
  7. package/dist/assets/rrweb.js +0 -54
  8. package/dist/capture-worker.js +0 -13892
  9. package/dist/chunk-3BPQWAUL.js +0 -4
  10. package/dist/chunk-47LLHHJH.js +0 -9
  11. package/dist/chunk-5HFJIZLI.js +0 -4
  12. package/dist/chunk-5RKZ44OU.js +0 -4
  13. package/dist/chunk-7WZ3VIUU.js +0 -4
  14. package/dist/chunk-AXROBTLA.js +0 -4
  15. package/dist/chunk-BFAWQ5U2.js +0 -61
  16. package/dist/chunk-BGY5F3IU.js +0 -5
  17. package/dist/chunk-BIB4JJKD.js +0 -84
  18. package/dist/chunk-C7SV6AR2.js +0 -48
  19. package/dist/chunk-CI6273ZU.js +0 -107
  20. package/dist/chunk-FEHVIHVA.js +0 -5
  21. package/dist/chunk-G6J2WIHJ.js +0 -4
  22. package/dist/chunk-HEOMRXZE.js +0 -4
  23. package/dist/chunk-HN55QF5N.js +0 -405
  24. package/dist/chunk-JJ4QQPAV.js +0 -4
  25. package/dist/chunk-JQ2CRYVX.js +0 -4
  26. package/dist/chunk-JS3DLVVI.js +0 -4
  27. package/dist/chunk-KH4QH23U.js +0 -4
  28. package/dist/chunk-KMZ3L5YA.js +0 -4
  29. package/dist/chunk-KOKEEAEF.js +0 -6
  30. package/dist/chunk-LCCJPRT5.js +0 -5
  31. package/dist/chunk-MHNGR6M7.js +0 -4
  32. package/dist/chunk-NNH3YVVO.js +0 -4
  33. package/dist/chunk-OQ6KNYPG.js +0 -4
  34. package/dist/chunk-PYDYI3AA.js +0 -23
  35. package/dist/chunk-Q2TF5WLS.js +0 -6
  36. package/dist/chunk-QEE4CNMY.js +0 -6
  37. package/dist/chunk-R4ZTRVDQ.js +0 -4
  38. package/dist/chunk-RIASQHPG.js +0 -4
  39. package/dist/chunk-RLB66SU3.js +0 -4
  40. package/dist/chunk-SXVWB7TZ.js +0 -6
  41. package/dist/chunk-T6WA2F3S.js +0 -16
  42. package/dist/chunk-TZPYILZK.js +0 -4
  43. package/dist/chunk-VHFITVRX.js +0 -13
  44. package/dist/chunk-W3CXPVVB.js +0 -7
  45. package/dist/chunk-WB3HHOCG.js +0 -11
  46. package/dist/chunk-XA6BMQTW.js +0 -8
  47. package/dist/chunk-XAMVRZJH.js +0 -23
  48. package/dist/chunk-Y52M43LO.js +0 -8
  49. package/dist/chunk-YD4VBOBY.js +0 -4
  50. package/dist/chunk-YRU6BOIP.js +0 -9
  51. package/dist/chunk-ZSD6QDYB.js +0 -56
  52. package/dist/cli-error-UYWIDE4L.js +0 -4
  53. package/dist/compile-write-QNV2EA5B.js +0 -4
  54. package/dist/daemon-D4UCHMHS.js +0 -175
  55. package/dist/daemon-LZTY7W4M.js +0 -4
  56. package/dist/daemon-lock-RPKO5SNE.js +0 -4
  57. package/dist/dsl-loader-G2CRA252.js +0 -4
  58. package/dist/dsl-typecheck-worker.js +0 -6
  59. package/dist/exit-plan-gate-44YWEKYS.js +0 -4
  60. package/dist/hook.js +0 -5
  61. package/dist/plan-reminder-EDDIUY43.js +0 -4
  62. package/dist/post-edit-4CM5P2G2.js +0 -4
  63. package/dist/post-edit-analyze-HKOTNA2H.js +0 -4
  64. package/dist/post-edit-flag-stubs-2HZMK4NQ.js +0 -4
  65. package/dist/pre-bash-run-gate-CDFNAIK3.js +0 -4
  66. package/dist/pre-edit-JZX36QX6.js +0 -4
  67. package/dist/pre-edit-ripplo-skill-gate-A6ETC3QN.js +0 -4
  68. package/dist/pre-edit-scope-gate-HNIQ7KOQ.js +0 -4
  69. package/dist/pre-edit-watch-gate-T2TWL66C.js +0 -4
  70. package/dist/prompt-submit-GVZHK3CI.js +0 -4
  71. package/dist/scope-reminder-A6GVTTVE.js +0 -4
  72. package/dist/session-preamble-IZQPIWST.js +0 -4
  73. package/dist/status-CNSPYNYP.js +0 -4
  74. package/dist/stop-enforce-NKKP2X4U.js +0 -64
  75. package/dist/tasks-reminder-TDWPD3KV.js +0 -4
  76. package/dist/track-skill-load-SXSDMHFO.js +0 -4
  77. package/dist/track-skill-prompt-7N4TQAD2.js +0 -4
@@ -0,0 +1,185 @@
1
+ #!/usr/bin/env node
2
+ import {createRequire}from'node:module';import'./chunk-HA3VCAP6.js';globalThis.require ?? createRequire(import.meta.url);
3
+ var $s="16.13.1",Us=Object.freeze({major:16,minor:13,patch:1,preReleaseTag:null});function S(e,t){throw new Error(t)}function fe(e){return typeof e?.then=="function"}function Z(e){return typeof e=="object"&&e!==null}function $(e,t){throw new Error(t??"Unexpected invariant triggered.")}var Ms=/\r\n|[\n\r]/g;function ft(e,t){let n=0,r=1;for(let i of e.body.matchAll(Ms)){if(typeof i.index=="number"||$(),i.index>=t)break;n=i.index+i[0].length,r+=1;}return {line:r,column:t+1-n}}function Sn(e){return Jt(e.source,ft(e.source,e.start))}function Jt(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?n:0,u=t.column+a,p=`${e.name}:${s}:${u}
4
+ `,l=r.split(/\r\n|[\n\r]/g),m=l[i];if(m.length>120){let h=Math.floor(u/80),E=u%80,N=[];for(let C=0;C<m.length;C+=80)N.push(m.slice(C,C+80));return p+qi([[`${s} |`,N[0]],...N.slice(1,h+1).map(C=>["|",C]),["|","^".padStart(E)],["|",N[h+1]]])}return p+qi([[`${s-1} |`,l[i-1]],[`${s} |`,m],["|","^".padStart(u)],[`${s+1} |`,l[i+1]]])}function qi(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(`
5
+ `)}function js(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var f=class e extends Error{constructor(t,...n){var r,i,o;let{nodes:s,source:a,positions:u,path:p,originalError:l,extensions:m}=js(n);super(t),this.name="GraphQLError",this.path=p??void 0,this.originalError=l??void 0,this.nodes=Yi(Array.isArray(s)?s:s?[s]:void 0);let h=Yi((r=this.nodes)===null||r===void 0?void 0:r.map(N=>N.loc).filter(N=>N!=null));this.source=a??(h==null||(i=h[0])===null||i===void 0?void 0:i.source),this.positions=u??h?.map(N=>N.start),this.locations=u&&a?u.map(N=>ft(a,N)):h?.map(N=>ft(N.source,N.start));let E=Z(l?.extensions)?l?.extensions:void 0;this.extensions=(o=m??E)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:true,configurable:true}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true});}get[Symbol.toStringTag](){return "GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=`
6
+
7
+ `+Sn(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`
8
+
9
+ `+Jt(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function Yi(e){return e===void 0||e.length===0?void 0:e}function Ji(e){return e.toString()}function Ki(e){return e.toJSON()}function q(e,t,n){return new f(`Syntax Error: ${n}`,{source:e,positions:[t]})}var St=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r;}get[Symbol.toStringTag](){return "Location"}toJSON(){return {start:this.start,end:this.end}}},qe=class{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,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}}},Kt={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},Ps=new Set(Object.keys(Kt));function Xt(e){let t=e?.kind;return typeof t=="string"&&Ps.has(t)}var Y;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription";})(Y||(Y={}));var D;(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";})(D||(D={}));var c;(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",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate";})(c||(c={}));function An(e){return e===9||e===32}function At(e){return e>=48&&e<=57}function Xi(e){return e>=97&&e<=122||e>=65&&e<=90}function dt(e){return Xi(e)||e===95}function xn(e){return Xi(e)||At(e)||e===95}function zi(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s<e.length;++s){var o;let a=e[s],u=Gs(a);u!==a.length&&(r=(o=r)!==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((t=r)!==null&&t!==void 0?t:0,i+1)}function Gs(e){let t=0;for(;t<e.length&&An(e.charCodeAt(t));)++t;return t}function Hi(e){if(e==="")return true;let t=true,n=false,r=true,i=false;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 false;case 13:return false;case 10:if(t&&!i)return false;i=true,t=true,n=false;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=false;}return !(t||r&&i)}function Rn(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,o=r.length>1&&r.slice(1).every(E=>E.length===0||An(E.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,u=e.endsWith("\\"),p=a||u,l=!(t!=null&&t.minimize)&&(!i||e.length>70||p||o||s),m="",h=i&&An(e.charCodeAt(0));return (l&&!h||o)&&(m+=`
10
+ `),m+=n,(l||p)&&(m+=`
11
+ `),'"""'+m+'"""'}var T;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",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";})(T||(T={}));var tt=class{constructor(t){let n=new qe(T.SOF,0,0,0,0);this.source=t,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 t=this.token;if(t.kind!==T.EOF)do if(t.next)t=t.next;else {let n=Qs(this,t.end);t.next=n,n.prev=t,t=n;}while(t.kind===T.COMMENT);return t}};function Ln(e){return e===T.BANG||e===T.DOLLAR||e===T.AMP||e===T.PAREN_L||e===T.PAREN_R||e===T.DOT||e===T.SPREAD||e===T.COLON||e===T.EQUALS||e===T.AT||e===T.BRACKET_L||e===T.BRACKET_R||e===T.BRACE_L||e===T.PIPE||e===T.BRACE_R}function xt(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function wn(e,t){return Zi(e.charCodeAt(t))&&eo(e.charCodeAt(t+1))}function Zi(e){return e>=55296&&e<=56319}function eo(e){return e>=56320&&e<=57343}function Ye(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return T.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return "U+"+n.toString(16).toUpperCase().padStart(4,"0")}function G(e,t,n,r,i){let o=e.line,s=1+n-e.lineStart;return new qe(t,n,r,o,s,i)}function Qs(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){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 Bs(e,i);case 33:return G(e,T.BANG,i,i+1);case 36:return G(e,T.DOLLAR,i,i+1);case 38:return G(e,T.AMP,i,i+1);case 40:return G(e,T.PAREN_L,i,i+1);case 41:return G(e,T.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return G(e,T.SPREAD,i,i+3);break;case 58:return G(e,T.COLON,i,i+1);case 61:return G(e,T.EQUALS,i,i+1);case 64:return G(e,T.AT,i,i+1);case 91:return G(e,T.BRACKET_L,i,i+1);case 93:return G(e,T.BRACKET_R,i,i+1);case 123:return G(e,T.BRACE_L,i,i+1);case 124:return G(e,T.PIPE,i,i+1);case 125:return G(e,T.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?zs(e,i):Ys(e,i)}if(At(o)||o===45)return qs(e,i,o);if(dt(o))return Zr(e,i);throw q(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:xt(o)||wn(n,i)?`Unexpected character: ${Ye(e,i)}.`:`Invalid character: ${Ye(e,i)}.`)}return G(e,T.EOF,r,r)}function Bs(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let o=n.charCodeAt(i);if(o===10||o===13)break;if(xt(o))++i;else if(wn(n,i))i+=2;else break}return G(e,T.COMMENT,t,i,n.slice(t+1,i))}function qs(e,t,n){let r=e.source.body,i=t,o=n,s=false;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),At(o))throw q(e.source,i,`Invalid number, unexpected digit after 0: ${Ye(e,i)}.`)}else i=Wr(e,i,o),o=r.charCodeAt(i);if(o===46&&(s=true,o=r.charCodeAt(++i),i=Wr(e,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(s=true,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=Wr(e,i,o),o=r.charCodeAt(i)),o===46||dt(o))throw q(e.source,i,`Invalid number, expected digit but got: ${Ye(e,i)}.`);return G(e,s?T.FLOAT:T.INT,t,i,r.slice(t,i))}function Wr(e,t,n){if(!At(n))throw q(e.source,t,`Invalid number, expected digit but got: ${Ye(e,t)}.`);let r=e.source.body,i=t+1;for(;At(r.charCodeAt(i));)++i;return i}function Ys(e,t){let n=e.source.body,r=n.length,i=t+1,o=i,s="";for(;i<r;){let a=n.charCodeAt(i);if(a===34)return s+=n.slice(o,i),G(e,T.STRING,t,i+1,s);if(a===92){s+=n.slice(o,i);let u=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?Js(e,i):Ks(e,i):Xs(e,i);s+=u.value,i+=u.size,o=i;continue}if(a===10||a===13)break;if(xt(a))++i;else if(wn(n,i))i+=2;else throw q(e.source,i,`Invalid character within String: ${Ye(e,i)}.`)}throw q(e.source,i,"Unterminated string.")}function Js(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let o=n.charCodeAt(t+i++);if(o===125){if(i<5||!xt(r))break;return {value:String.fromCodePoint(r),size:i}}if(r=r<<4|zt(o),r<0)break}throw q(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function Ks(e,t){let n=e.source.body,r=Wi(n,t+2);if(xt(r))return {value:String.fromCodePoint(r),size:6};if(Zi(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let i=Wi(n,t+8);if(eo(i))return {value:String.fromCodePoint(r,i),size:12}}throw q(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Wi(e,t){return zt(e.charCodeAt(t))<<12|zt(e.charCodeAt(t+1))<<8|zt(e.charCodeAt(t+2))<<4|zt(e.charCodeAt(t+3))}function zt(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Xs(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return {value:'"',size:2};case 92:return {value:"\\",size:2};case 47:return {value:"/",size:2};case 98:return {value:"\b",size:2};case 102:return {value:"\f",size:2};case 110:return {value:`
12
+ `,size:2};case 114:return {value:"\r",size:2};case 116:return {value:" ",size:2}}throw q(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function zs(e,t){let n=e.source.body,r=n.length,i=e.lineStart,o=t+3,s=o,a="",u=[];for(;o<r;){let p=n.charCodeAt(o);if(p===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){a+=n.slice(s,o),u.push(a);let l=G(e,T.BLOCK_STRING,t,o+3,zi(u).join(`
13
+ `));return e.line+=u.length-1,e.lineStart=i,l}if(p===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(p===10||p===13){a+=n.slice(s,o),u.push(a),p===13&&n.charCodeAt(o+1)===10?o+=2:++o,a="",s=o,i=o;continue}if(xt(p))++o;else if(wn(n,o))o+=2;else throw q(e.source,o,`Invalid character within String: ${Ye(e,o)}.`)}throw q(e.source,o,"Unterminated string.")}function Zr(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let o=n.charCodeAt(i);if(xn(o))++i;else break}return G(e,T.NAME,t,i,n.slice(t,i))}var Fn=class{line=1;lineStart=0;constructor(t){let n=new qe(T.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n;}get[Symbol.toStringTag](){return "SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==T.EOF){let n=Hs(this,t.end);t.next=n,n.prev=t,t=n;}return t}};function Hs(e,t){let n=e.source.body,r=n.length,i=t;if(i<r){let o=n.charCodeAt(i);switch(o){case 46:return G(e,T.DOT,i,i+1);case 40:return G(e,T.PAREN_L,i,i+1);case 41:return G(e,T.PAREN_R,i,i+1);case 58:return G(e,T.COLON,i,i+1);case 64:return G(e,T.AT,i,i+1)}if(dt(o))return Zr(e,i);throw q(e.source,i,`Invalid character: ${Ye(e,i)}.`)}return G(e,T.EOF,r,r)}function d(e){return kn(e,[])}function kn(e,t){switch(typeof e){case "string":return JSON.stringify(e);case "function":return e.name?`[function ${e.name}]`:"[function]";case "object":return Ws(e,t);default:return String(e)}}function Ws(e,t){if(e===null)return "null";if(t.includes(e))return "[Circular]";let n=[...t,e];if(Zs(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:kn(r,n)}else if(Array.isArray(e))return ta(e,n);return ea(e,n)}function Zs(e){return typeof e.toJSON=="function"}function ea(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+na(e)+"]":"{ "+n.map(([i,o])=>i+": "+kn(o,t)).join(", ")+" }"}function ta(e,t){if(e.length===0)return "[]";if(t.length>2)return "[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(kn(e[o],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function na(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var ra=globalThis.process&&process.env.NODE_ENV==="production",ye=ra?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return true;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===o){let s=d(t);throw new Error(`Cannot use ${i} "${s}" from another module or realm.
14
+
15
+ Ensure that there is only one instance of "graphql" in the node_modules
16
+ directory. If different versions of "graphql" are the dependencies of other
17
+ relied on modules, use "resolutions" to ensure only one version is installed.
18
+
19
+ https://yarnpkg.com/en/docs/selective-version-resolutions
20
+
21
+ Duplicate "graphql" modules cannot be used at the same time since different
22
+ versions may have different capabilities and behavior. The data from one
23
+ version used in the function from another could produce confusing and
24
+ spurious results.`)}}return false};var Qe=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||S(false,`Body must be a string. Received: ${d(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||S(false,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||S(false,"column in locationOffset is 1-indexed and must be positive.");}get[Symbol.toStringTag](){return "Source"}};function Ht(e){return ye(e,Qe)}function nt(e,t){let n=new mt(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:false,value:n.tokenCount}),r}function Cn(e,t){let n=new mt(e,t);n.expectToken(T.SOF);let r=n.parseValueLiteral(false);return n.expectToken(T.EOF),r}function to(e,t){let n=new mt(e,t);n.expectToken(T.SOF);let r=n.parseConstValueLiteral();return n.expectToken(T.EOF),r}function no(e,t){let n=new mt(e,t);n.expectToken(T.SOF);let r=n.parseTypeReference();return n.expectToken(T.EOF),r}function $n(e){let t=Ht(e)?e:new Qe(e),n=new Fn(t),r=new mt(e,{lexer:n});r.expectToken(T.SOF);let i=r.parseSchemaCoordinate();return r.expectToken(T.EOF),i}var mt=class{constructor(t,n={}){let{lexer:r,...i}=n;if(r)this._lexer=r;else {let o=Ht(t)?t:new Qe(t);this._lexer=new tt(o);}this._options=i,this._tokenCounter=0;}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(T.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(T.SOF,this.parseDefinition,T.EOF)})}parseDefinition(){if(this.peek(T.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(t&&n.kind===T.BRACE_L)throw q(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===T.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()}switch(n.value){case "query":case "mutation":case "subscription":return this.parseOperationDefinition();case "fragment":return this.parseFragmentDefinition()}if(t)throw q(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(n.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(T.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:Y.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),r=this.parseOperationType(),i;return this.peek(T.NAME)&&(i=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:r,description:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(T.NAME);switch(t.value){case "query":return Y.QUERY;case "mutation":return Y.MUTATION;case "subscription":return Y.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(T.PAREN_L,this.parseVariableDefinition,T.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(T.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(T.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(T.BRACE_L,this.parseSelection,T.BRACE_R)})}parseSelection(){return this.peek(T.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(T.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:c.FIELD,alias:r,name:i,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(T.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(T.PAREN_L,n,T.PAREN_R)}parseArgument(t=false){let n=this._lexer.token,r=this.parseName();return this.expectToken(T.COLON),this.node(n,{kind:c.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){let t=this._lexer.token;this.expectToken(T.SPREAD);let n=this.expectOptionalKeyword("on");return !n&&this.peek(T.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token,n=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===true?this.node(t,{kind:c.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case T.BRACKET_L:return this.parseList(t);case T.BRACE_L:return this.parseObject(t);case T.INT:return this.advanceLexer(),this.node(n,{kind:c.INT,value:n.value});case T.FLOAT:return this.advanceLexer(),this.node(n,{kind:c.FLOAT,value:n.value});case T.STRING:case T.BLOCK_STRING:return this.parseStringLiteral();case T.NAME:switch(this.advanceLexer(),n.value){case "true":return this.node(n,{kind:c.BOOLEAN,value:true});case "false":return this.node(n,{kind:c.BOOLEAN,value:false});case "null":return this.node(n,{kind:c.NULL});default:return this.node(n,{kind:c.ENUM,value:n.value})}case T.DOLLAR:if(t)if(this.expectToken(T.DOLLAR),this._lexer.token.kind===T.NAME){let r=this._lexer.token.value;throw q(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:c.STRING,value:t.value,block:t.kind===T.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(T.BRACKET_L,n,T.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(T.BRACE_L,n,T.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(T.COLON),this.node(n,{kind:c.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(T.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(t){let n=this._lexer.token;return this.expectToken(T.AT),this.node(n,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(T.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(T.BRACKET_R),n=this.node(t,{kind:c.LIST_TYPE,type:r});}else n=this.parseNamedType();return this.expectOptionalToken(T.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(T.STRING)||this.peek(T.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(T.BRACE_L,this.parseOperationTypeDefinition,T.BRACE_R);return this.node(t,{kind:c.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(T.COLON);let r=this.parseNamedType();return this.node(t,{kind:c.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:c.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:c.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(T.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(T.BRACE_L,this.parseFieldDefinition,T.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(T.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:c.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(T.PAREN_L,this.parseInputValueDef,T.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(T.COLON);let i=this.parseTypeReference(),o;this.expectOptionalToken(T.EQUALS)&&(o=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:c.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:c.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(T.EQUALS)?this.delimitedMany(T.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:c.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(T.BRACE_L,this.parseEnumValueDefinition,T.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:c.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw q(this._lexer.source,this._lexer.token.start,`${Vn(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(T.BRACE_L,this.parseInputValueDef,T.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===T.NAME)switch(t.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(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(T.BRACE_L,this.parseOperationTypeDefinition,T.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:c.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:c.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:c.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(T.AT);let r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(t,{kind:c.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(T.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(D,n.value))return n;throw this.unexpected(t)}parseSchemaCoordinate(){let t=this._lexer.token,n=this.expectOptionalToken(T.AT),r=this.parseName(),i;!n&&this.expectOptionalToken(T.DOT)&&(i=this.parseName());let o;return (n||i)&&this.expectOptionalToken(T.PAREN_L)&&(o=this.parseName(),this.expectToken(T.COLON),this.expectToken(T.PAREN_R)),n?o?this.node(t,{kind:c.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:o}):this.node(t,{kind:c.DIRECTIVE_COORDINATE,name:r}):i?o?this.node(t,{kind:c.ARGUMENT_COORDINATE,name:r,fieldName:i,argumentName:o}):this.node(t,{kind:c.MEMBER_COORDINATE,name:r,memberName:i}):this.node(t,{kind:c.TYPE_COORDINATE,name:r})}node(t,n){return this._options.noLocation!==true&&(n.loc=new St(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw q(this._lexer.source,n.start,`Expected ${ro(t)}, found ${Vn(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),true):false}expectKeyword(t){let n=this._lexer.token;if(n.kind===T.NAME&&n.value===t)this.advanceLexer();else throw q(this._lexer.source,n.start,`Expected "${t}", found ${Vn(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===T.NAME&&n.value===t?(this.advanceLexer(),true):false}unexpected(t){let n=t??this._lexer.token;return q(this._lexer.source,n.start,`Unexpected ${Vn(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return []}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==T.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw q(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};function Vn(e){let t=e.value;return ro(e.kind)+(t!=null?` "${t}"`:"")}function ro(e){return Ln(e)?`"${e}"`:e}function de(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.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,5),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function ei(e){return e}function me(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function xe(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function _e(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function Je(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(Un(i)&&Un(o)){let s=0;do++n,s=s*10+i-ti,i=e.charCodeAt(n);while(Un(i)&&s>0);let a=0;do++r,a=a*10+o-ti,o=t.charCodeAt(r);while(Un(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,++r;}}return e.length-t.length}var ti=48,ia=57;function Un(e){return !isNaN(e)&&ti<=e&&e<=ia}function Ee(e,t){let n=Object.create(null),r=new ni(e),i=Math.floor(e.length*.4)+1;for(let o of t){let s=r.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:Je(o,s)})}var ni=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=io(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)];}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=io(r),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 m=u[(l-1)%3],h=u[l%3],E=h[0]=l;for(let N=1;N<=a;N++){let C=i[l-1]===o[N-1]?0:1,P=Math.min(m[N]+1,h[N-1]+1,m[N-1]+C);if(l>1&&N>1&&i[l-1]===o[N-2]&&i[l-2]===o[N-1]){let Q=u[(l-2)%3][N-2];P=Math.min(P,Q+1);}P<E&&(E=P),h[N]=P;}if(E>n)return}let p=u[s%3][a];return p<=n?p:void 0}};function io(e){let t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function ve(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}function oo(e){return `"${e.replace(oa,sa)}"`}var oa=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function sa(e){return aa[e.charCodeAt(0)]}var aa=["\\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 ht=Object.freeze({});function Me(e,t,n=Kt){let r=new Map;for(let Q of Object.values(c))r.set(Q,rt(t,Q));let i,o=Array.isArray(e),s=[e],a=-1,u=[],p=e,l,m,h=[],E=[];do{a++;let Q=a===s.length,pe=Q&&u.length!==0;if(Q){if(l=E.length===0?void 0:h[h.length-1],p=m,m=E.pop(),pe)if(o){p=p.slice();let le=0;for(let[lt,et]of u){let bt=lt-le;et===null?(p.splice(bt,1),le++):p[bt]=et;}}else {p={...p};for(let[le,lt]of u)p[le]=lt;}a=i.index,s=i.keys,u=i.edits,o=i.inArray,i=i.prev;}else if(m){if(l=o?a:s[a],p=m[l],p==null)continue;h.push(l);}let se;if(!Array.isArray(p)){var N,C;Xt(p)||S(false,`Invalid AST Node: ${d(p)}.`);let le=Q?(N=r.get(p.kind))===null||N===void 0?void 0:N.leave:(C=r.get(p.kind))===null||C===void 0?void 0:C.enter;if(se=le?.call(t,p,l,m,h,E),se===ht)break;if(se===false){if(!Q){h.pop();continue}}else if(se!==void 0&&(u.push([l,se]),!Q))if(Xt(se))p=se;else {h.pop();continue}}if(se===void 0&&pe&&u.push([l,p]),Q)h.pop();else {var P;i={inArray:o,index:a,keys:s,edits:u,prev:i},o=Array.isArray(p),s=o?p:(P=n[p.kind])!==null&&P!==void 0?P:[],a=-1,u=[],m&&E.push(m),m=p;}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function Wt(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(c)){let i=false,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:p,leave:l}=rt(e[u],r);i||(i=p!=null||l!=null),o[u]=p,s[u]=l;}if(!i)continue;let a={enter(...u){let p=u[0];for(let m=0;m<e.length;m++)if(t[m]===null){var l;let h=(l=o[m])===null||l===void 0?void 0:l.apply(e[m],u);if(h===false)t[m]=p;else if(h===ht)t[m]=ht;else if(h!==void 0)return h}},leave(...u){let p=u[0];for(let m=0;m<e.length;m++)if(t[m]===null){var l;let h=(l=s[m])===null||l===void 0?void 0:l.apply(e[m],u);if(h===ht)t[m]=ht;else if(h!==void 0&&h!==false)return h}else t[m]===p&&(t[m]=null);}};n[r]=a;}return n}function rt(e,t){let n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function so(e,t,n){let{enter:r,leave:i}=rt(e,t);return n?i:r}function V(e){return Me(e,ua)}var ca=80,ua={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>I(e.definitions,`
25
+
26
+ `)},OperationDefinition:{leave(e){let t=ri(e.variableDefinitions)?F(`(
27
+ `,I(e.variableDefinitions,`
28
+ `),`
29
+ )`):F("(",I(e.variableDefinitions,", "),")"),n=F("",e.description,`
30
+ `)+I([e.operation,I([e.name,t]),I(e.directives," ")]," ");return (n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>F("",i,`
31
+ `)+e+": "+t+F(" = ",n)+F(" ",I(r," "))},SelectionSet:{leave:({selections:e})=>je(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=F("",e,": ")+t,s=o+F("(",I(n,", "),")");return s.length>ca&&(s=o+F(`(
32
+ `,Mn(I(n,`
33
+ `)),`
34
+ )`)),I([s,I(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+F(" ",I(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>I(["...",F("on ",e),I(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>F("",o,`
35
+ `)+`fragment ${e}${F("(",I(n,", "),")")} on ${t} ${F("",I(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Rn(e):oo(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+I(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+I(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+F("(",I(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>F("",e,`
36
+ `)+I(["schema",I(t," "),je(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>F("",e,`
37
+ `)+I(["scalar",t,I(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>F("",e,`
38
+ `)+I(["type",t,F("implements ",I(n," & ")),I(r," "),je(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>F("",e,`
39
+ `)+t+(ri(n)?F(`(
40
+ `,Mn(I(n,`
41
+ `)),`
42
+ )`):F("(",I(n,", "),")"))+": "+r+F(" ",I(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>F("",e,`
43
+ `)+I([t+": "+n,F("= ",r),I(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>F("",e,`
44
+ `)+I(["interface",t,F("implements ",I(n," & ")),I(r," "),je(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>F("",e,`
45
+ `)+I(["union",t,I(n," "),F("= ",I(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>F("",e,`
46
+ `)+I(["enum",t,I(n," "),je(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>F("",e,`
47
+ `)+I([t,I(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>F("",e,`
48
+ `)+I(["input",t,I(n," "),je(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>F("",e,`
49
+ `)+"directive @"+t+(ri(n)?F(`(
50
+ `,Mn(I(n,`
51
+ `)),`
52
+ )`):F("(",I(n,", "),")"))+(r?" repeatable":"")+" on "+I(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>I(["extend schema",I(e," "),je(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>I(["extend scalar",e,I(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>I(["extend type",e,F("implements ",I(t," & ")),I(n," "),je(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>I(["extend interface",e,F("implements ",I(t," & ")),I(n," "),je(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>I(["extend union",e,I(t," "),F("= ",I(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>I(["extend enum",e,I(t," "),je(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>I(["extend input",e,I(t," "),je(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>I([e,F(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>I([e,F(".",t),F("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>I(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>I(["@",e,F("(",t,":)")])}};function I(e,t=""){var n;return (n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function je(e){return F(`{
53
+ `,Mn(I(e,`
54
+ `)),`
55
+ }`)}function F(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Mn(e){return F(" ",e.replace(/\n/g,`
56
+ `))}function ri(e){var t;return (t=e?.some(n=>n.includes(`
57
+ `)))!==null&&t!==void 0?t:false}function Rt(e,t){switch(e.kind){case c.NULL:return null;case c.INT:return parseInt(e.value,10);case c.FLOAT:return parseFloat(e.value);case c.STRING:case c.ENUM:case c.BOOLEAN:return e.value;case c.LIST:return e.values.map(n=>Rt(n,t));case c.OBJECT:return xe(e.fields,n=>n.name.value,n=>Rt(n.value,t));case c.VARIABLE:return t?.[e.name.value]}}function ae(e){if(e!=null||S(false,"Must provide name."),typeof e=="string"||S(false,"Expected name to be a string."),e.length===0)throw new f("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!xn(e.charCodeAt(t)))throw new f(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!dt(e.charCodeAt(0)))throw new f(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function jn(e){if(e==="true"||e==="false"||e==="null")throw new f(`Enum values cannot be named: ${e}`);return ae(e)}function Tt(e){return ee(e)||A(e)||R(e)||j(e)||U(e)||L(e)||k(e)||_(e)}function co(e){if(!Tt(e))throw new Error(`Expected ${d(e)} to be a GraphQL type.`);return e}function ee(e){return ye(e,he)}function uo(e){if(!ee(e))throw new Error(`Expected ${d(e)} to be a GraphQL Scalar type.`);return e}function A(e){return ye(e,re)}function Gn(e){if(!A(e))throw new Error(`Expected ${d(e)} to be a GraphQL Object type.`);return e}function R(e){return ye(e,Re)}function Qn(e){if(!R(e))throw new Error(`Expected ${d(e)} to be a GraphQL Interface type.`);return e}function j(e){return ye(e,Le)}function po(e){if(!j(e))throw new Error(`Expected ${d(e)} to be a GraphQL Union type.`);return e}function U(e){return ye(e,Ne)}function lo(e){if(!U(e))throw new Error(`Expected ${d(e)} to be a GraphQL Enum type.`);return e}function L(e){return ye(e,we)}function fo(e){if(!L(e))throw new Error(`Expected ${d(e)} to be a GraphQL Input Object type.`);return e}function k(e){return ye(e,J)}function mo(e){if(!k(e))throw new Error(`Expected ${d(e)} to be a GraphQL List type.`);return e}function _(e){return ye(e,x)}function ho(e){if(!_(e))throw new Error(`Expected ${d(e)} to be a GraphQL Non-Null type.`);return e}function te(e){return ee(e)||U(e)||L(e)||wt(e)&&te(e.ofType)}function To(e){if(!te(e))throw new Error(`Expected ${d(e)} to be a GraphQL input type.`);return e}function Fe(e){return ee(e)||A(e)||R(e)||j(e)||U(e)||wt(e)&&Fe(e.ofType)}function yo(e){if(!Fe(e))throw new Error(`Expected ${d(e)} to be a GraphQL output type.`);return e}function oe(e){return ee(e)||U(e)}function Eo(e){if(!oe(e))throw new Error(`Expected ${d(e)} to be a GraphQL leaf type.`);return e}function Ie(e){return A(e)||R(e)||j(e)}function vo(e){if(!Ie(e))throw new Error(`Expected ${d(e)} to be a GraphQL composite type.`);return e}function Te(e){return R(e)||j(e)}function No(e){if(!Te(e))throw new Error(`Expected ${d(e)} to be a GraphQL abstract type.`);return e}var J=class{constructor(t){Tt(t)||S(false,`Expected ${d(t)} to be a GraphQL type.`),this.ofType=t;}get[Symbol.toStringTag](){return "GraphQLList"}toString(){return "["+String(this.ofType)+"]"}toJSON(){return this.toString()}},x=class{constructor(t){Ft(t)||S(false,`Expected ${d(t)} to be a GraphQL nullable type.`),this.ofType=t;}get[Symbol.toStringTag](){return "GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};function wt(e){return k(e)||_(e)}function go(e){if(!wt(e))throw new Error(`Expected ${d(e)} to be a GraphQL wrapping type.`);return e}function Ft(e){return Tt(e)&&!_(e)}function Bn(e){if(!Ft(e))throw new Error(`Expected ${d(e)} to be a GraphQL nullable type.`);return e}function kt(e){if(e)return _(e)?e.ofType:e}function it(e){return ee(e)||A(e)||R(e)||j(e)||U(e)||L(e)}function Io(e){if(!it(e))throw new Error(`Expected ${d(e)} to be a GraphQL named type.`);return e}function z(e){if(e){let t=e;for(;wt(t);)t=t.ofType;return t}}function qn(e){return typeof e=="function"?e():e}function Yn(e){return typeof e=="function"?e():e}var he=class{constructor(t){var n,r,i,o;let s=(n=t.parseValue)!==null&&n!==void 0?n:ei;this.name=ae(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:ei,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,u)=>s(Rt(a,u)),this.extensions=ve(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||S(false,`${this.name} must provide "specifiedByURL" as a string, but got: ${d(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||S(false,`${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.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||S(false,`${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()}},re=class{constructor(t){var n;this.name=ae(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=ve(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>bo(t),this._interfaces=()=>Oo(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||S(false,`${this.name} must provide "isTypeOf" as a function, but got: ${d(t.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:_o(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function Oo(e){var t;let n=qn((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||S(false,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function bo(e){let t=Yn(e.fields);return Lt(t)||S(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),_e(t,(n,r)=>{var i;Lt(n)||S(false,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||S(false,`${e.name}.${r} field resolver must be a function if provided, but got: ${d(n.resolve)}.`);let o=(i=n.args)!==null&&i!==void 0?i:{};return Lt(o)||S(false,`${e.name}.${r} args must be an object with argument names as keys.`),{name:ae(r),description:n.description,type:n.type,args:ii(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:ve(n.extensions),astNode:n.astNode}})}function ii(e){return Object.entries(e).map(([t,n])=>({name:ae(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:ve(n.extensions),astNode:n.astNode}))}function Lt(e){return Z(e)&&!Array.isArray(e)}function _o(e){return _e(e,t=>({description:t.description,type:t.type,args:oi(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function oi(e){return xe(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function ke(e){return _(e.type)&&e.defaultValue===void 0}var Re=class{constructor(t){var n;this.name=ae(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ve(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=bo.bind(void 0,t),this._interfaces=Oo.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||S(false,`${this.name} must provide "resolveType" as a function, but got: ${d(t.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:_o(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Le=class{constructor(t){var n;this.name=ae(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ve(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=pa.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||S(false,`${this.name} must provide "resolveType" as a function, but got: ${d(t.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()}};function pa(e){let t=qn(e.types);return Array.isArray(t)||S(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var Ne=class{constructor(t){var n;this.name=ae(t.name),this.description=t.description,this.extensions=ve(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:ao(this.name,t.values),this._valueLookup=null,this._nameLookup=null;}get[Symbol.toStringTag](){return "GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=ao(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=me(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new f(`Enum "${this.name}" cannot represent value: ${d(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=d(t);throw new f(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Pn(this,r))}let n=this.getValue(t);if(n==null)throw new f(`Value "${t}" does not exist in "${this.name}" enum.`+Pn(this,t));return n.value}parseLiteral(t,n){if(t.kind!==c.ENUM){let i=V(t);throw new f(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Pn(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=V(t);throw new f(`Value "${i}" does not exist in "${this.name}" enum.`+Pn(this,i),{nodes:t})}return r.value}toConfig(){let t=xe(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:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function Pn(e,t){let n=e.getValues().map(i=>i.name),r=Ee(t,n);return de("the enum value",r)}function ao(e,t){return Lt(t)||S(false,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Lt(r)||S(false,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${d(r)}.`),{name:jn(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:ve(r.extensions),astNode:r.astNode}))}var we=class{constructor(t){var n,r;this.name=ae(t.name),this.description=t.description,this.extensions=ve(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:false,this._fields=la.bind(void 0,t);}get[Symbol.toStringTag](){return "GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=_e(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:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};function la(e){let t=Yn(e.fields);return Lt(t)||S(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),_e(t,(n,r)=>(!("resolve"in n)||S(false,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:ae(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:ve(n.extensions),astNode:n.astNode}))}function ot(e){return _(e.type)&&e.defaultValue===void 0}function Vt(e,t){return e===t?true:_(e)&&_(t)||k(e)&&k(t)?Vt(e.ofType,t.ofType):false}function Be(e,t,n){return t===n?true:_(n)?_(t)?Be(e,t.ofType,n.ofType):false:_(t)?Be(e,t.ofType,n):k(n)?k(t)?Be(e,t.ofType,n.ofType):false:k(t)?false:Te(n)&&(R(t)||A(t))&&e.isSubType(n,t)}function Zt(e,t,n){return t===n?true:Te(t)?Te(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):Te(n)?e.isSubType(n,t):false}var en=2147483647,tn=-2147483648,si=new he({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 t=rn(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new f(`Int cannot represent non-integer value: ${d(t)}`);if(n>en||n<tn)throw new f("Int cannot represent non 32-bit signed integer value: "+d(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new f(`Int cannot represent non-integer value: ${d(e)}`);if(e>en||e<tn)throw new f(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==c.INT)throw new f(`Int cannot represent non-integer value: ${V(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>en||t<tn)throw new f(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),ai=new he({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 t=rn(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isFinite(n))throw new f(`Float cannot represent non numeric value: ${d(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new f(`Float cannot represent non numeric value: ${d(e)}`);return e},parseLiteral(e){if(e.kind!==c.FLOAT&&e.kind!==c.INT)throw new f(`Float cannot represent non numeric value: ${V(e)}`,e);return parseFloat(e.value)}}),K=new he({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 t=rn(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new f(`String cannot represent value: ${d(e)}`)},parseValue(e){if(typeof e!="string")throw new f(`String cannot represent a non string value: ${d(e)}`);return e},parseLiteral(e){if(e.kind!==c.STRING)throw new f(`String cannot represent a non string value: ${V(e)}`,{nodes:e});return e.value}}),ce=new he({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=rn(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new f(`Boolean cannot represent a non boolean value: ${d(t)}`)},parseValue(e){if(typeof e!="boolean")throw new f(`Boolean cannot represent a non boolean value: ${d(e)}`);return e},parseLiteral(e){if(e.kind!==c.BOOLEAN)throw new f(`Boolean cannot represent a non boolean value: ${V(e)}`,{nodes:e});return e.value}}),nn=new he({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 t=rn(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new f(`ID cannot represent value: ${d(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new f(`ID cannot represent value: ${d(e)}`)},parseLiteral(e){if(e.kind!==c.STRING&&e.kind!==c.INT)throw new f("ID cannot represent a non-string and non-integer value: "+V(e),{nodes:e});return e.value}}),Ke=Object.freeze([K,si,ai,ce,nn]);function st(e){return Ke.some(({name:t})=>e.name===t)}function rn(e){if(Z(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!Z(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function yt(e){return ye(e,ue)}function Do(e){if(!yt(e))throw new Error(`Expected ${d(e)} to be a GraphQL directive.`);return e}var ue=class{constructor(t){var n,r;this.name=ae(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:false,this.extensions=ve(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||S(false,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};Z(i)&&!Array.isArray(i)||S(false,`@${t.name} args must be an object with argument names as keys.`),this.args=ii(i);}get[Symbol.toStringTag](){return "GraphQLDirective"}toConfig(){return {name:this.name,description:this.description,locations:this.locations,args:oi(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return "@"+this.name}toJSON(){return this.toString()}},on=new ue({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[D.FIELD,D.FRAGMENT_SPREAD,D.INLINE_FRAGMENT],args:{if:{type:new x(ce),description:"Included when true."}}}),sn=new ue({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[D.FIELD,D.FRAGMENT_SPREAD,D.INLINE_FRAGMENT],args:{if:{type:new x(ce),description:"Skipped when true."}}}),an="No longer supported",Et=new ue({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[D.FIELD_DEFINITION,D.ARGUMENT_DEFINITION,D.INPUT_FIELD_DEFINITION,D.ENUM_VALUE],args:{reason:{type:K,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:an}}}),cn=new ue({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[D.SCALAR],args:{url:{type:new x(K),description:"The URL that specifies the behavior of this scalar."}}}),un=new ue({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[D.INPUT_OBJECT],args:{}}),ge=Object.freeze([on,sn,Et,cn,un]);function pn(e){return ge.some(({name:t})=>t===e.name)}function Ct(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function Ve(e,t){if(_(t)){let n=Ve(e,t.ofType);return n?.kind===c.NULL?null:n}if(e===null)return {kind:c.NULL};if(e===void 0)return null;if(k(t)){let n=t.ofType;if(Ct(e)){let r=[];for(let i of e){let o=Ve(i,n);o!=null&&r.push(o);}return {kind:c.LIST,values:r}}return Ve(e,n)}if(L(t)){if(!Z(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Ve(e[r.name],r.type);i&&n.push({kind:c.OBJECT_FIELD,name:{kind:c.NAME,value:r.name},value:i});}return {kind:c.OBJECT,fields:n}}if(oe(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return {kind:c.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return So.test(r)?{kind:c.INT,value:r}:{kind:c.FLOAT,value:r}}if(typeof n=="string")return U(t)?{kind:c.ENUM,value:n}:t===nn&&So.test(n)?{kind:c.INT,value:n}:{kind:c.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${d(n)}.`)}$(false,"Unexpected input type: "+d(t));}var So=/^-?(?:0|[1-9][0-9]*)$/;var $t=new re({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:K,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new x(new J(new x(De))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new x(De),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:De,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:De,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new x(new J(new x(Jn))),resolve:e=>e.getDirectives()}})}),Jn=new re({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
58
+
59
+ 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 x(K),resolve:e=>e.name},description:{type:K,resolve:e=>e.description},isRepeatable:{type:new x(ce),resolve:e=>e.isRepeatable},locations:{type:new x(new J(new x(Kn))),resolve:e=>e.locations},args:{type:new x(new J(new x(Ut))),args:{includeDeprecated:{type:ce,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),Kn=new Ne({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:D.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:D.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:D.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:D.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:D.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:D.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:D.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:D.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:D.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:D.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:D.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:D.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:D.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:D.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:D.UNION,description:"Location adjacent to a union definition."},ENUM:{value:D.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:D.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:D.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:D.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),De=new re({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 x(Hn),resolve(e){if(ee(e))return M.SCALAR;if(A(e))return M.OBJECT;if(R(e))return M.INTERFACE;if(j(e))return M.UNION;if(U(e))return M.ENUM;if(L(e))return M.INPUT_OBJECT;if(k(e))return M.LIST;if(_(e))return M.NON_NULL;$(false,`Unexpected type: "${d(e)}".`);}},name:{type:K,resolve:e=>"name"in e?e.name:void 0},description:{type:K,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:K,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new J(new x(Xn)),args:{includeDeprecated:{type:ce,defaultValue:false}},resolve(e,{includeDeprecated:t}){if(A(e)||R(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new J(new x(De)),resolve(e){if(A(e)||R(e))return e.getInterfaces()}},possibleTypes:{type:new J(new x(De)),resolve(e,t,n,{schema:r}){if(Te(e))return r.getPossibleTypes(e)}},enumValues:{type:new J(new x(zn)),args:{includeDeprecated:{type:ce,defaultValue:false}},resolve(e,{includeDeprecated:t}){if(U(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new J(new x(Ut)),args:{includeDeprecated:{type:ce,defaultValue:false}},resolve(e,{includeDeprecated:t}){if(L(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:De,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:ce,resolve:e=>{if(L(e))return e.isOneOf}}})}),Xn=new re({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 x(K),resolve:e=>e.name},description:{type:K,resolve:e=>e.description},args:{type:new x(new J(new x(Ut))),args:{includeDeprecated:{type:ce,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new x(De),resolve:e=>e.type},isDeprecated:{type:new x(ce),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:K,resolve:e=>e.deprecationReason}})}),Ut=new re({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 x(K),resolve:e=>e.name},description:{type:K,resolve:e=>e.description},type:{type:new x(De),resolve:e=>e.type},defaultValue:{type:K,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=Ve(n,t);return r?V(r):null}},isDeprecated:{type:new x(ce),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:K,resolve:e=>e.deprecationReason}})}),zn=new re({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 x(K),resolve:e=>e.name},description:{type:K,resolve:e=>e.description},isDeprecated:{type:new x(ce),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:K,resolve:e=>e.deprecationReason}})}),M;(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";})(M||(M={}));var Hn=new Ne({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:M.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:M.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:M.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:M.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:M.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:M.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:M.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:M.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),at={name:"__schema",type:new x($t),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ct={name:"__type",type:De,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new x(K),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ut={name:"__typename",type:new x(K),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Xe=Object.freeze([$t,Jn,Kn,De,Xn,Ut,zn,Hn]);function Se(e){return Xe.some(({name:t})=>e.name===t)}function ci(e){return ye(e,Ae)}function Mt(e){if(!ci(e))throw new Error(`Expected ${d(e)} to be a GraphQL schema.`);return e}var Ae=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===true?[]:void 0,Z(t)||S(false,"Must provide configuration object."),!t.types||Array.isArray(t.types)||S(false,`"types" must be Array if provided but got: ${d(t.types)}.`),!t.directives||Array.isArray(t.directives)||S(false,`"directives" must be Array if provided but got: ${d(t.directives)}.`),this.description=t.description,this.extensions=ve(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:ge;let i=new Set(t.types);if(t.types!=null)for(let o of t.types)i.delete(o),Pe(o,i);this._queryType!=null&&Pe(this._queryType,i),this._mutationType!=null&&Pe(this._mutationType,i),this._subscriptionType!=null&&Pe(this._subscriptionType,i);for(let o of this._directives)if(yt(o))for(let s of o.args)Pe(s.type,i);Pe($t,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||S(false,"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,R(o)){for(let a of o.getInterfaces())if(R(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(o);}}else if(A(o)){for(let a of o.getInterfaces())if(R(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(t){switch(t){case Y.QUERY:return this.getQueryType();case Y.MUTATION:return this.getMutationType();case Y.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return j(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),j(t))for(let i of t.getTypes())r[i.name]=true;else {let i=this.getImplementations(t);for(let o of i.objects)r[o.name]=true;for(let o of i.interfaces)r[o.name]=true;}this._subTypeMap[t.name]=r;}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}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}}};function Pe(e,t){let n=z(e);if(!t.has(n)){if(t.add(n),j(n))for(let r of n.getTypes())Pe(r,t);else if(A(n)||R(n)){for(let r of n.getInterfaces())Pe(r,t);for(let r of Object.values(n.getFields())){Pe(r.type,t);for(let i of r.args)Pe(i.type,t);}}else if(L(n))for(let r of Object.values(n.getFields()))Pe(r.type,t);}return t}function fn(e){if(Mt(e),e.__validationErrors)return e.__validationErrors;let t=new pi(e);fa(t),da(t),ma(t);let n=t.getErrors();return e.__validationErrors=n,n}function jt(e){let t=fn(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
60
+
61
+ `))}var pi=class{constructor(t){this._errors=[],this.schema=t;}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new f(t,{nodes:r}));}getErrors(){return this._errors}};function fa(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!A(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${d(n)}.`,(r=ui(t,Y.QUERY))!==null&&r!==void 0?r:n.astNode);}let i=t.getMutationType();if(i&&!A(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${d(i)}.`,(o=ui(t,Y.MUTATION))!==null&&o!==void 0?o:i.astNode);}let s=t.getSubscriptionType();if(s&&!A(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${d(s)}.`,(a=ui(t,Y.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode);}}function ui(e,t){var n;return (n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return (i=r?.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function da(e){for(let n of e.schema.getDirectives()){if(!yt(n)){e.reportError(`Expected directive but got: ${d(n)}.`,n?.astNode);continue}vt(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(let r of n.args)if(vt(e,r),te(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${d(r.type)}.`,r.astNode),ke(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[li(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type]);}}}function vt(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode);}function ma(e){let t=ga(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!it(r)){e.reportError(`Expected GraphQL named type but got: ${d(r)}.`,r.astNode);continue}Se(r)||vt(e,r),A(r)||R(r)?(Ao(e,r),xo(e,r)):j(r)?ya(e,r):U(r)?Ea(e,r):L(r)&&(va(e,r),t(r));}}function Ao(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(vt(e,s),!Fe(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${d(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type);}for(let a of s.args){let u=a.name;if(vt(e,a),!te(a.type)){var i;e.reportError(`The type of ${t.name}.${s.name}(${u}:) must be Input Type but got: ${d(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type);}if(ke(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${u}:) cannot be deprecated.`,[li(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type]);}}}}function xo(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!R(r)){e.reportError(`Type ${d(t)} must only implement Interface types, it cannot implement ${d(r)}.`,ln(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,ln(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,ln(t,r));continue}n[r.name]=true,Ta(e,t,r),ha(e,t,r);}}function ha(e,t,n){let r=t.getFields();for(let u of Object.values(n.getFields())){let p=u.name,l=r[p];if(!l){e.reportError(`Interface field ${n.name}.${p} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Be(e.schema,l.type,u.type)){var i,o;e.reportError(`Interface field ${n.name}.${p} expects type ${d(u.type)} but ${t.name}.${p} is type ${d(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 m of u.args){let h=m.name,E=l.args.find(N=>N.name===h);if(!E){e.reportError(`Interface field argument ${n.name}.${p}(${h}:) expected but ${t.name}.${p} does not provide it.`,[m.astNode,l.astNode]);continue}if(!Vt(m.type,E.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${p}(${h}:) expects type ${d(m.type)} but ${t.name}.${p}(${h}:) is type ${d(E.type)}.`,[(s=m.astNode)===null||s===void 0?void 0:s.type,(a=E.astNode)===null||a===void 0?void 0:a.type]);}}for(let m of l.args){let h=m.name;!u.args.find(N=>N.name===h)&&ke(m)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${h} that is missing from the Interface field ${n.name}.${p}.`,[m.astNode,u.astNode]);}}}function Ta(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...ln(n,i),...ln(t,n)]);}function ya(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Ro(t,i.name));continue}r[i.name]=true,A(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${d(i)}.`,Ro(t,String(i)));}}function Ea(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)vt(e,r);}function va(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(vt(e,o),!te(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${d(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type);}if(ot(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[li(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type]);}t.isOneOf&&Na(t,o,e);}}function Na(e,t,n){if(_(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type);}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode);}function ga(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=true,r[o.name]=n.length;let s=Object.values(o.getFields());for(let a of s)if(_(a.type)&&L(a.type.ofType)){let u=a.type.ofType,p=r[u.name];if(n.push(a),p===void 0)i(u);else {let l=n.slice(p),m=l.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${m}".`,l.map(h=>h.astNode));}n.pop();}r[o.name]=void 0;}}function ln(e,t){let{astNode:n,extensionASTNodes:r}=e;return (n!=null?[n,...r]:r).flatMap(o=>{var s;return (s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function Ro(e,t){let{astNode:n,extensionASTNodes:r}=e;return (n!=null?[n,...r]:r).flatMap(o=>{var s;return (s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function li(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Et.name)}function H(e,t){switch(t.kind){case c.LIST_TYPE:{let n=H(e,t.type);return n&&new J(n)}case c.NON_NULL_TYPE:{let n=H(e,t.type);return n&&new x(n)}case c.NAMED_TYPE:return e.getType(t.name.value)}}var pt=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??Ia,n&&(te(n)&&this._inputTypeStack.push(n),Ie(n)&&this._parentTypeStack.push(n),Fe(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(t){let n=this._schema;switch(t.kind){case c.SELECTION_SET:{let i=z(this.getType());this._parentTypeStack.push(Ie(i)?i:void 0);break}case c.FIELD:{let i=this.getParentType(),o,s;i&&(o=this._getFieldDef(n,i,t),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(Fe(s)?s:void 0);break}case c.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case c.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(A(i)?i:void 0);break}case c.INLINE_FRAGMENT:case c.FRAGMENT_DEFINITION:{let i=t.typeCondition,o=i?H(n,i):z(this.getType());this._typeStack.push(Fe(o)?o:void 0);break}case c.VARIABLE_DEFINITION:{let i=H(n,t.type);this._inputTypeStack.push(te(i)?i:void 0);break}case c.ARGUMENT:{var r;let i,o,s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();s&&(i=s.args.find(a=>a.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(te(o)?o:void 0);break}case c.LIST:{let i=kt(this.getInputType()),o=k(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(te(o)?o:void 0);break}case c.OBJECT_FIELD:{let i=z(this.getInputType()),o,s;L(i)&&(s=i.getFields()[t.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push(te(o)?o:void 0);break}case c.ENUM:{let i=z(this.getInputType()),o;U(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}}}leave(t){switch(t.kind){case c.SELECTION_SET:this._parentTypeStack.pop();break;case c.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case c.DIRECTIVE:this._directive=null;break;case c.OPERATION_DEFINITION:case c.INLINE_FRAGMENT:case c.FRAGMENT_DEFINITION:this._typeStack.pop();break;case c.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case c.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case c.LIST:case c.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case c.ENUM:this._enumValue=null;break;}}};function Ia(e,t,n){let r=n.name.value;if(r===at.name&&e.getQueryType()===t)return at;if(r===ct.name&&e.getQueryType()===t)return ct;if(r===ut.name&&Ie(t))return ut;if(A(t)||R(t))return t.getFields()[r]}function Pt(e,t){return {enter(...n){let r=n[0];e.enter(r);let i=rt(t,r.kind).enter;if(i){let o=i.apply(t,n);return o!==void 0&&(e.leave(r),Xt(o)&&e.enter(o)),o}},leave(...n){let r=n[0],i=rt(t,r.kind).leave,o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function Lo(e){return dn(e)||mn(e)||hn(e)}function dn(e){return e.kind===c.OPERATION_DEFINITION||e.kind===c.FRAGMENT_DEFINITION}function wo(e){return e.kind===c.FIELD||e.kind===c.FRAGMENT_SPREAD||e.kind===c.INLINE_FRAGMENT}function fi(e){return e.kind===c.VARIABLE||e.kind===c.INT||e.kind===c.FLOAT||e.kind===c.STRING||e.kind===c.BOOLEAN||e.kind===c.NULL||e.kind===c.ENUM||e.kind===c.LIST||e.kind===c.OBJECT}function Wn(e){return fi(e)&&(e.kind===c.LIST?e.values.some(Wn):e.kind===c.OBJECT?e.fields.some(t=>Wn(t.value)):e.kind!==c.VARIABLE)}function Fo(e){return e.kind===c.NAMED_TYPE||e.kind===c.LIST_TYPE||e.kind===c.NON_NULL_TYPE}function mn(e){return e.kind===c.SCHEMA_DEFINITION||Ge(e)||e.kind===c.DIRECTIVE_DEFINITION}function Ge(e){return e.kind===c.SCALAR_TYPE_DEFINITION||e.kind===c.OBJECT_TYPE_DEFINITION||e.kind===c.INTERFACE_TYPE_DEFINITION||e.kind===c.UNION_TYPE_DEFINITION||e.kind===c.ENUM_TYPE_DEFINITION||e.kind===c.INPUT_OBJECT_TYPE_DEFINITION}function hn(e){return e.kind===c.SCHEMA_EXTENSION||Nt(e)}function Nt(e){return e.kind===c.SCALAR_TYPE_EXTENSION||e.kind===c.OBJECT_TYPE_EXTENSION||e.kind===c.INTERFACE_TYPE_EXTENSION||e.kind===c.UNION_TYPE_EXTENSION||e.kind===c.ENUM_TYPE_EXTENSION||e.kind===c.INPUT_OBJECT_TYPE_EXTENSION}function ko(e){return e.kind===c.TYPE_COORDINATE||e.kind===c.MEMBER_COORDINATE||e.kind===c.ARGUMENT_COORDINATE||e.kind===c.DIRECTIVE_COORDINATE||e.kind===c.DIRECTIVE_ARGUMENT_COORDINATE}function Zn(e){return {Document(t){for(let n of t.definitions)if(!dn(n)){let r=n.kind===c.SCHEMA_DEFINITION||n.kind===c.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new f(`The ${r} definition is not executable.`,{nodes:n}));}return false}}}function er(e){return {Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),o=t.name.value,s=de("to use an inline fragment on",Oa(i,n,o));s===""&&(s=de(ba(n,o))),e.reportError(new f(`Cannot query field "${o}" on type "${n.name}".`+s,{nodes:t}));}}}}function Oa(e,t,n){if(!Te(t))return [];let r=new Set,i=Object.create(null);for(let s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(let a of s.getInterfaces()){var o;a.getFields()[n]&&(r.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1);}}return [...r].sort((s,a)=>{let u=i[a.name]-i[s.name];return u!==0?u:R(s)&&e.isSubType(s,a)?-1:R(a)&&e.isSubType(a,s)?1:Je(s.name,a.name)}).map(s=>s.name)}function ba(e,t){if(A(e)||R(e)){let n=Object.keys(e.getFields());return Ee(t,n)}return []}function tr(e){return {InlineFragment(t){let n=t.typeCondition;if(n){let r=H(e.getSchema(),n);if(r&&!Ie(r)){let i=V(n);e.reportError(new f(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}));}}},FragmentDefinition(t){let n=H(e.getSchema(),t.typeCondition);if(n&&!Ie(n)){let r=V(t.typeCondition);e.reportError(new f(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}));}}}}function nr(e){return {...di(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let o=t.name.value,s=r.args.map(u=>u.name),a=Ee(o,s);e.reportError(new f(`Unknown argument "${o}" on field "${i.name}.${r.name}".`+de(a),{nodes:t}));}}}}function di(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ge;for(let s of r)t[s.name]=s.args.map(a=>a.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===c.DIRECTIVE_DEFINITION){var o;let a=(o=s.arguments)!==null&&o!==void 0?o:[];t[s.name.value]=a.map(u=>u.name.value);}return {Directive(s){let a=s.name.value,u=t[a];if(s.arguments&&u)for(let p of s.arguments){let l=p.name.value;if(!u.includes(l)){let m=Ee(l,u);e.reportError(new f(`Unknown argument "${l}" on directive "@${a}".`+de(m),{nodes:p}));}}return false}}}function Tn(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ge;for(let o of r)t[o.name]=o.locations;let i=e.getDocument().definitions;for(let o of i)o.kind===c.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(s=>s.value));return {Directive(o,s,a,u,p){let l=o.name.value,m=t[l];if(!m){e.reportError(new f(`Unknown directive "@${l}".`,{nodes:o}));return}let h=_a(p);h&&!m.includes(h)&&e.reportError(new f(`Directive "@${l}" may not be used on ${h}.`,{nodes:o}));}}}function _a(e){let t=e[e.length-1];switch("kind"in t||$(),t.kind){case c.OPERATION_DEFINITION:return Da(t.operation);case c.FIELD:return D.FIELD;case c.FRAGMENT_SPREAD:return D.FRAGMENT_SPREAD;case c.INLINE_FRAGMENT:return D.INLINE_FRAGMENT;case c.FRAGMENT_DEFINITION:return D.FRAGMENT_DEFINITION;case c.VARIABLE_DEFINITION:return D.VARIABLE_DEFINITION;case c.SCHEMA_DEFINITION:case c.SCHEMA_EXTENSION:return D.SCHEMA;case c.SCALAR_TYPE_DEFINITION:case c.SCALAR_TYPE_EXTENSION:return D.SCALAR;case c.OBJECT_TYPE_DEFINITION:case c.OBJECT_TYPE_EXTENSION:return D.OBJECT;case c.FIELD_DEFINITION:return D.FIELD_DEFINITION;case c.INTERFACE_TYPE_DEFINITION:case c.INTERFACE_TYPE_EXTENSION:return D.INTERFACE;case c.UNION_TYPE_DEFINITION:case c.UNION_TYPE_EXTENSION:return D.UNION;case c.ENUM_TYPE_DEFINITION:case c.ENUM_TYPE_EXTENSION:return D.ENUM;case c.ENUM_VALUE_DEFINITION:return D.ENUM_VALUE;case c.INPUT_OBJECT_TYPE_DEFINITION:case c.INPUT_OBJECT_TYPE_EXTENSION:return D.INPUT_OBJECT;case c.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return "kind"in n||$(),n.kind===c.INPUT_OBJECT_TYPE_DEFINITION?D.INPUT_FIELD_DEFINITION:D.ARGUMENT_DEFINITION}default:$(false,"Unexpected kind: "+d(t.kind));}}function Da(e){switch(e){case Y.QUERY:return D.QUERY;case Y.MUTATION:return D.MUTATION;case Y.SUBSCRIPTION:return D.SUBSCRIPTION}}function rr(e){return {FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new f(`Unknown fragment "${n}".`,{nodes:t.name}));}}}function yn(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let o of e.getDocument().definitions)Ge(o)&&(r[o.name.value]=true);let i=[...Object.keys(n),...Object.keys(r)];return {NamedType(o,s,a,u,p){let l=o.name.value;if(!n[l]&&!r[l]){var m;let h=(m=p[2])!==null&&m!==void 0?m:a,E=h!=null&&Sa(h);if(E&&Vo.includes(l))return;let N=Ee(l,E?Vo.concat(i):i);e.reportError(new f(`Unknown type "${l}".`+de(N),{nodes:o}));}}}}var Vo=[...Ke,...Xe].map(e=>e.name);function Sa(e){return "kind"in e&&(mn(e)||hn(e))}function ir(e){let t=0;return {Document(n){t=n.definitions.filter(r=>r.kind===c.OPERATION_DEFINITION).length;},OperationDefinition(n){!n.name&&t>1&&e.reportError(new f("This anonymous operation must be the only defined operation.",{nodes:n}));}}}function or(e){var t,n,r;let i=e.getSchema(),o=(t=(n=(r=i?.astNode)!==null&&r!==void 0?r:i?.getQueryType())!==null&&n!==void 0?n:i?.getMutationType())!==null&&t!==void 0?t:i?.getSubscriptionType(),s=0;return {SchemaDefinition(a){if(o){e.reportError(new f("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new f("Must provide only one schema definition.",{nodes:a})),++s;}}}var Aa=3;function sr(e){function t(n,r=Object.create(null),i=0){if(n.kind===c.FRAGMENT_SPREAD){let o=n.name.value;if(r[o]===true)return false;let s=e.getFragment(o);if(!s)return false;try{return r[o]=!0,t(s,r,i)}finally{r[o]=void 0;}}if(n.kind===c.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=Aa))return true;if("selectionSet"in n&&n.selectionSet){for(let o of n.selectionSet.selections)if(t(o,r,i))return true}return false}return {Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new f("Maximum introspection depth exceeded",{nodes:[n]})),false}}}function ar(e){let t=Object.create(null),n=[],r=Object.create(null);return {OperationDefinition:()=>false,FragmentDefinition(o){return i(o),false}};function i(o){if(t[o.name.value])return;let s=o.name.value;t[s]=true;let a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){r[s]=n.length;for(let u of a){let p=u.name.value,l=r[p];if(n.push(u),l===void 0){let m=e.getFragment(p);m&&i(m);}else {let m=n.slice(l),h=m.slice(0,-1).map(E=>'"'+E.name.value+'"').join(", ");e.reportError(new f(`Cannot spread fragment "${p}" within itself`+(h!==""?` via ${h}.`:"."),{nodes:m}));}n.pop();}r[s]=void 0;}}}function cr(e){let t=Object.create(null);return {OperationDefinition:{enter(){t=Object.create(null);},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let o=i.name.value;t[o]!==true&&e.reportError(new f(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,n]}));}}},VariableDefinition(n){t[n.variable.name.value]=true;}}}function ur(e){let t=[],n=[];return {OperationDefinition(r){return t.push(r),false},FragmentDefinition(r){return n.push(r),false},Document:{leave(){let r=Object.create(null);for(let i of t)for(let o of e.getRecursivelyReferencedFragments(i))r[o.name.value]=true;for(let i of n){let o=i.name.value;r[o]!==true&&e.reportError(new f(`Fragment "${o}" is never used.`,{nodes:i}));}}}}}function pr(e){let t=[];return {OperationDefinition:{enter(){t=[];},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:o}of i)r[o.name.value]=true;for(let o of t){let s=o.variable.name.value;r[s]!==true&&e.reportError(new f(n.name?`Variable "$${s}" is never used in operation "${n.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}));}}},VariableDefinition(n){t.push(n);}}}function Gt(e){switch(e.kind){case c.OBJECT:return {...e,fields:xa(e.fields)};case c.LIST:return {...e,values:e.values.map(Gt)};case c.INT:case c.FLOAT:case c.STRING:case c.BOOLEAN:case c.NULL:case c.ENUM:case c.VARIABLE:return e}}function xa(e){return e.map(t=>({...t,value:Gt(t.value)})).sort((t,n)=>Je(t.name.value,n.name.value))}function $o(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+$o(n)).join(" and "):e}function hr(e){let t=new mr,n=new Ti,r=new Map;return {SelectionSet(i){let o=Ra(e,r,t,n,e.getParentType(),i);for(let[[s,a],u,p]of o){let l=$o(a);e.reportError(new f(`Fields "${s}" conflict because ${l}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(p)}));}}}}function Ra(e,t,n,r,i,o){let s=[],[a,u]=dr(e,t,i,o);if(wa(e,s,t,n,r,a),u.length!==0)for(let p=0;p<u.length;p++){lr(e,s,t,n,r,false,a,u[p]);for(let l=p+1;l<u.length;l++)fr(e,s,t,n,r,false,u[p],u[l]);}return s}function lr(e,t,n,r,i,o,s,a){if(r.has(s,a,o))return;r.add(s,a,o);let u=e.getFragment(a);if(!u)return;let[p,l]=hi(e,n,u);if(s!==p){yi(e,t,n,r,i,o,s,p);for(let m of l)lr(e,t,n,r,i,o,s,m);}}function fr(e,t,n,r,i,o,s,a){if(s===a||i.has(s,a,o))return;i.add(s,a,o);let u=e.getFragment(s),p=e.getFragment(a);if(!u||!p)return;let[l,m]=hi(e,n,u),[h,E]=hi(e,n,p);yi(e,t,n,r,i,o,l,h);for(let N of E)fr(e,t,n,r,i,o,s,N);for(let N of m)fr(e,t,n,r,i,o,N,a);}function La(e,t,n,r,i,o,s,a,u){let p=[],[l,m]=dr(e,t,o,s),[h,E]=dr(e,t,a,u);yi(e,p,t,n,r,i,l,h);for(let N of E)lr(e,p,t,n,r,i,l,N);for(let N of m)lr(e,p,t,n,r,i,h,N);for(let N of m)for(let C of E)fr(e,p,t,n,r,i,N,C);return p}function wa(e,t,n,r,i,o){for(let[s,a]of Object.entries(o))if(a.length>1)for(let u=0;u<a.length;u++)for(let p=u+1;p<a.length;p++){let l=Uo(e,n,r,i,false,s,a[u],a[p]);l&&t.push(l);}}function yi(e,t,n,r,i,o,s,a){for(let[u,p]of Object.entries(s)){let l=a[u];if(l)for(let m of p)for(let h of l){let E=Uo(e,n,r,i,o,u,m,h);E&&t.push(E);}}}function Uo(e,t,n,r,i,o,s,a){let[u,p,l]=s,[m,h,E]=a,N=i||u!==m&&A(u)&&A(m);if(!N){let se=p.name.value,le=h.name.value;if(se!==le)return [[o,`"${se}" and "${le}" are different fields`],[p],[h]];if(!Fa(p,h))return [[o,"they have differing arguments"],[p],[h]]}let C=l?.type,P=E?.type;if(C&&P&&mi(C,P))return [[o,`they return conflicting types "${d(C)}" and "${d(P)}"`],[p],[h]];let Q=p.selectionSet,pe=h.selectionSet;if(Q&&pe){let se=La(e,t,n,r,N,z(C),Q,z(P),pe);return ka(se,o,p,h)}}function Fa(e,t){let n=e.arguments,r=t.arguments;if(n===void 0||n.length===0)return r===void 0||r.length===0;if(r===void 0||r.length===0||n.length!==r.length)return false;let i=new Map(r.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?false:Co(s)===Co(a)})}function Co(e){return V(Gt(e))}function mi(e,t){return k(e)?k(t)?mi(e.ofType,t.ofType):true:k(t)?true:_(e)?_(t)?mi(e.ofType,t.ofType):true:_(t)?true:oe(e)||oe(t)?e!==t:false}function dr(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),s=Object.create(null);Mo(e,n,r,o,s);let a=[o,Object.keys(s)];return t.set(r,a),a}function hi(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=H(e.getSchema(),n.typeCondition);return dr(e,t,i,n.selectionSet)}function Mo(e,t,n,r,i){for(let o of n.selections)switch(o.kind){case c.FIELD:{let s=o.name.value,a;(A(t)||R(t))&&(a=t.getFields()[s]);let u=o.alias?o.alias.value:s;r[u]||(r[u]=[]),r[u].push([t,o,a]);break}case c.FRAGMENT_SPREAD:i[o.name.value]=true;break;case c.INLINE_FRAGMENT:{let s=o.typeCondition,a=s?H(e.getSchema(),s):t;Mo(e,a,o.selectionSet,r,i);break}}}function ka(e,t,n,r){if(e.length>0)return [[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var mr=class{constructor(){this._data=new Map;}has(t,n,r){var i;let o=(i=this._data.get(t))===null||i===void 0?void 0:i.get(n);return o===void 0?false:r?true:r===o}add(t,n,r){let i=this._data.get(t);i===void 0?this._data.set(t,new Map([[n,r]])):i.set(n,r);}},Ti=class{constructor(){this._orderedPairSet=new mr;}has(t,n,r){return t<n?this._orderedPairSet.has(t,n,r):this._orderedPairSet.has(n,t,r)}add(t,n,r){t<n?this._orderedPairSet.add(t,n,r):this._orderedPairSet.add(n,t,r);}};function Tr(e){return {InlineFragment(t){let n=e.getType(),r=e.getParentType();if(Ie(n)&&Ie(r)&&!Zt(e.getSchema(),n,r)){let i=d(r),o=d(n);e.reportError(new f(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}));}},FragmentSpread(t){let n=t.name.value,r=Va(e,n),i=e.getParentType();if(r&&i&&!Zt(e.getSchema(),r,i)){let o=d(i),s=d(r);e.reportError(new f(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}));}}}}function Va(e,t){let n=e.getFragment(t);if(n){let r=H(e.getSchema(),n.typeCondition);if(Ie(r))return r}}function yr(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)Ge(i)&&(n[i.name.value]=i);return {ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let o=i.name.value,s=n[o],a=t?.getType(o),u;if(s?u=Ca[s.kind]:a&&(u=$a(a)),u){if(u!==i.kind){let p=Ua(i.kind);e.reportError(new f(`Cannot extend non-${p} type "${o}".`,{nodes:s?[s,i]:i}));}}else {let p=Object.keys({...n,...t?.getTypeMap()}),l=Ee(o,p);e.reportError(new f(`Cannot extend type "${o}" because it is not defined.`+de(l),{nodes:i.name}));}}}var Ca={[c.SCALAR_TYPE_DEFINITION]:c.SCALAR_TYPE_EXTENSION,[c.OBJECT_TYPE_DEFINITION]:c.OBJECT_TYPE_EXTENSION,[c.INTERFACE_TYPE_DEFINITION]:c.INTERFACE_TYPE_EXTENSION,[c.UNION_TYPE_DEFINITION]:c.UNION_TYPE_EXTENSION,[c.ENUM_TYPE_DEFINITION]:c.ENUM_TYPE_EXTENSION,[c.INPUT_OBJECT_TYPE_DEFINITION]:c.INPUT_OBJECT_TYPE_EXTENSION};function $a(e){if(ee(e))return c.SCALAR_TYPE_EXTENSION;if(A(e))return c.OBJECT_TYPE_EXTENSION;if(R(e))return c.INTERFACE_TYPE_EXTENSION;if(j(e))return c.UNION_TYPE_EXTENSION;if(U(e))return c.ENUM_TYPE_EXTENSION;if(L(e))return c.INPUT_OBJECT_TYPE_EXTENSION;$(false,"Unexpected type: "+d(e));}function Ua(e){switch(e){case c.SCALAR_TYPE_EXTENSION:return "scalar";case c.OBJECT_TYPE_EXTENSION:return "object";case c.INTERFACE_TYPE_EXTENSION:return "interface";case c.UNION_TYPE_EXTENSION:return "union";case c.ENUM_TYPE_EXTENSION:return "enum";case c.INPUT_OBJECT_TYPE_EXTENSION:return "input object";default:$(false,"Unexpected kind: "+d(e));}}function Er(e){return {...Ei(e),Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return false;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(let o of r.args)if(!i.has(o.name)&&ke(o)){let s=d(o.type);e.reportError(new f(`Field "${r.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:t}));}}}}}function Ei(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r?.getDirectives())!==null&&t!==void 0?t:ge;for(let a of i)n[a.name]=me(a.args.filter(ke),u=>u.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===c.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];n[a.name.value]=me(u.filter(Ma),p=>p.name.value);}return {Directive:{leave(a){let u=a.name.value,p=n[u];if(p){var l;let m=(l=a.arguments)!==null&&l!==void 0?l:[],h=new Set(m.map(E=>E.name.value));for(let[E,N]of Object.entries(p))if(!h.has(E)){let C=Tt(N.type)?d(N.type):V(N.type);e.reportError(new f(`Directive "@${u}" argument "${E}" of type "${C}" is required, but it was not provided.`,{nodes:a}));}}}}}}function Ma(e){return e.type.kind===c.NON_NULL_TYPE&&e.defaultValue==null}function vr(e){return {Field(t){let n=e.getType(),r=t.selectionSet;if(n)if(oe(z(n))){if(r){let i=t.name.value,o=d(n);e.reportError(new f(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}));}}else if(r){if(r.selections.length===0){let i=t.name.value,o=d(n);e.reportError(new f(`Field "${i}" of type "${o}" must have at least one field selected.`,{nodes:t}));}}else {let i=t.name.value,o=d(n);e.reportError(new f(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}));}}}}function Nr(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}function ze(e,t,n){return {prev:e,key:t,typename:n}}function ie(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function gr(e,t,n=ja){return En(e,t,n,void 0)}function ja(e,t,n){let r="Invalid value "+d(t);throw e.length>0&&(r+=` at "value${Nr(e)}"`),n.message=r+": "+n.message,n}function En(e,t,n,r){if(_(t)){if(e!=null)return En(e,t.ofType,n,r);n(ie(r),e,new f(`Expected non-nullable type "${d(t)}" not to be null.`));return}if(e==null)return null;if(k(t)){let i=t.ofType;return Ct(e)?Array.from(e,(o,s)=>{let a=ze(r,s,void 0);return En(o,i,n,a)}):[En(e,i,n,r)]}if(L(t)){if(!Z(e)||Array.isArray(e)){n(ie(r),e,new f(`Expected type "${t.name}" to be an object.`));return}let i={},o=t.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(_(s.type)){let u=d(s.type);n(ie(r),e,new f(`Field "${s.name}" of required type "${u}" was not provided.`));}continue}i[s.name]=En(a,s.type,n,ze(r,s.name,t.name));}for(let s of Object.keys(e))if(!o[s]){let a=Ee(s,Object.keys(t.getFields()));n(ie(r),e,new f(`Field "${s}" is not defined by type "${t.name}".`+de(a)));}if(t.isOneOf){let s=Object.keys(i);s.length!==1&&n(ie(r),e,new f(`Exactly one key must be specified for OneOf type "${t.name}".`));let a=s[0],u=i[a];u===null&&n(ie(r).concat(a),u,new f(`Field "${a}" must be non-null.`));}return i}if(oe(t)){let i;try{i=t.parseValue(e);}catch(o){o instanceof f?n(ie(r),e,o):n(ie(r),e,new f(`Expected type "${t.name}". `+o.message,{originalError:o}));return}return i===void 0&&n(ie(r),e,new f(`Expected type "${t.name}".`)),i}$(false,"Unexpected input type: "+d(t));}function Oe(e,t,n){if(e){if(e.kind===c.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&_(t)?void 0:i}if(_(t))return e.kind===c.NULL?void 0:Oe(e,t.ofType,n);if(e.kind===c.NULL)return null;if(k(t)){let r=t.ofType;if(e.kind===c.LIST){let o=[];for(let s of e.values)if(jo(s,n)){if(_(r))return;o.push(null);}else {let a=Oe(s,r,n);if(a===void 0)return;o.push(a);}return o}let i=Oe(e,r,n);return i===void 0?void 0:[i]}if(L(t)){if(e.kind!==c.OBJECT)return;let r=Object.create(null),i=me(e.fields,o=>o.name.value);for(let o of Object.values(t.getFields())){let s=i[o.name];if(!s||jo(s.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if(_(o.type))return;continue}let a=Oe(s.value,o.type,n);if(a===void 0)return;r[o.name]=a;}if(t.isOneOf){let o=Object.keys(r);if(o.length!==1||r[o[0]]===null)return}return r}if(oe(t)){let r;try{r=t.parseLiteral(e,n);}catch{return}return r===void 0?void 0:r}$(false,"Unexpected input type: "+d(t));}}function jo(e,t){return e.kind===c.VARIABLE&&(t==null||t[e.name.value]===void 0)}function Ir(e,t,n,r){let i=[],o=r?.maxErrors;try{let s=Pa(e,t,n,a=>{if(o!=null&&i.length>=o)throw new f("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 Pa(e,t,n,r){let i={};for(let o of t){let s=o.variable.name.value,a=H(e,o.type);if(!te(a)){let p=V(o.type);r(new f(`Variable "$${s}" expected value of type "${p}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!Po(n,s)){if(o.defaultValue)i[s]=Oe(o.defaultValue,a);else if(_(a)){let p=d(a);r(new f(`Variable "$${s}" of required type "${p}" was not provided.`,{nodes:o}));}continue}let u=n[s];if(u===null&&_(a)){let p=d(a);r(new f(`Variable "$${s}" of non-null type "${p}" must not be null.`,{nodes:o}));continue}i[s]=gr(u,a,(p,l,m)=>{let h=`Variable "$${s}" got invalid value `+d(l);p.length>0&&(h+=` at "${s}${Nr(p)}"`),r(new f(h+"; "+m.message,{nodes:o,originalError:m}));});}return i}function gt(e,t,n){var r;let i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],s=me(o,a=>a.name.value);for(let a of e.args){let u=a.name,p=a.type,l=s[u];if(!l){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(_(p))throw new f(`Argument "${u}" of required type "${d(p)}" was not provided.`,{nodes:t});continue}let m=l.value,h=m.kind===c.NULL;if(m.kind===c.VARIABLE){let N=m.name.value;if(n==null||!Po(n,N)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(_(p))throw new f(`Argument "${u}" of required type "${d(p)}" was provided the variable "$${N}" which was not provided a runtime value.`,{nodes:m});continue}h=n[N]==null;}if(h&&_(p))throw new f(`Argument "${u}" of non-null type "${d(p)}" must not be null.`,{nodes:m});let E=Oe(m,p,n);if(E===void 0)throw new f(`Argument "${u}" has invalid value ${V(m)}.`,{nodes:m});i[u]=E;}return i}function He(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(o=>o.name.value===e.name);if(i)return gt(e,i,n)}function Po(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qt(e,t,n,r,i){let o=new Map;return Or(e,t,n,r,i,o,new Set),o}function Qo(e,t,n,r,i){let o=new Map,s=new Set;for(let a of i)a.selectionSet&&Or(e,t,n,r,a.selectionSet,o,s);return o}function Or(e,t,n,r,i,o,s){for(let a of i.selections)switch(a.kind){case c.FIELD:{if(!vi(n,a))continue;let u=Ga(a),p=o.get(u);p!==void 0?p.push(a):o.set(u,[a]);break}case c.INLINE_FRAGMENT:{if(!vi(n,a)||!Go(e,a,r))continue;Or(e,t,n,r,a.selectionSet,o,s);break}case c.FRAGMENT_SPREAD:{let u=a.name.value;if(s.has(u)||!vi(n,a))continue;s.add(u);let p=t[u];if(!p||!Go(e,p,r))continue;Or(e,t,n,r,p.selectionSet,o,s);break}}}function vi(e,t){let n=He(sn,t,e);if(n?.if===true)return false;let r=He(on,t,e);return r?.if!==false}function Go(e,t,n){let r=t.typeCondition;if(!r)return true;let i=H(e,r);return i===n?true:Te(i)?e.isSubType(i,n):false}function Ga(e){return e.alias?e.alias.value:e.name.value}function br(e){return {OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(let p of s.definitions)p.kind===c.FRAGMENT_DEFINITION&&(a[p.name.value]=p);let u=Qt(n,a,o,r,t.selectionSet);if(u.size>1){let m=[...u.values()].slice(1).flat();e.reportError(new f(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:m}));}for(let p of u.values())p[0].name.value.startsWith("__")&&e.reportError(new f(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:p}));}}}}}function Bt(e,t){let n=new Map;for(let r of e){let i=t(r),o=n.get(i);o===void 0?n.set(i,[r]):o.push(r);}return n}function _r(e){return {DirectiveDefinition(r){var i;let o=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let o=r.name.value,s=(i=r.fields)!==null&&i!==void 0?i:[];for(let u of s){var a;let p=u.name.value,l=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${o}.${p}`,l);}return false}function n(r,i){let o=Bt(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new f(`Argument "${r}(${s}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return false}}function vn(e){return {Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],o=Bt(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new f(`There can be only one argument named "${s}".`,{nodes:a.map(u=>u.name)}));}}function Dr(e){let t=Object.create(null),n=e.getSchema();return {DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new f(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new f(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,false}}}function Nn(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ge;for(let a of r)t[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===c.DIRECTIVE_DEFINITION&&(t[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===c.SCHEMA_DEFINITION||a.kind===c.SCHEMA_EXTENSION)u=o;else if(Ge(a)||Nt(a)){let p=a.name.value;u=s[p],u===void 0&&(s[p]=u=Object.create(null));}else u=Object.create(null);for(let p of a.directives){let l=p.name.value;t[l]&&(u[l]?e.reportError(new f(`The directive "@${l}" can only be used once at this location.`,{nodes:[u[l],p]})):u[l]=p);}}}}function Sr(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return {EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let u=(s=o.values)!==null&&s!==void 0?s:[],p=r[a];for(let l of u){let m=l.name.value,h=n[a];U(h)&&h.getValue(m)?e.reportError(new f(`Enum value "${a}.${m}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):p[m]?e.reportError(new f(`Enum value "${a}.${m}" can only be defined once.`,{nodes:[p[m],l.name]})):p[m]=l.name;}return false}}function Ar(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=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;r[a]||(r[a]=Object.create(null));let u=(s=o.fields)!==null&&s!==void 0?s:[],p=r[a];for(let l of u){let m=l.name.value;Qa(n[a],m)?e.reportError(new f(`Field "${a}.${m}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):p[m]?e.reportError(new f(`Field "${a}.${m}" can only be defined once.`,{nodes:[p[m],l.name]})):p[m]=l.name;}return false}}function Qa(e,t){return A(e)||R(e)||L(e)?e.getFields()[t]!=null:false}function xr(e){let t=Object.create(null);return {OperationDefinition:()=>false,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new f(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,false}}}function gn(e){let t=[],n=Object.create(null);return {ObjectValue:{enter(){t.push(n),n=Object.create(null);},leave(){let r=t.pop();r||$(),n=r;}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new f(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name;}}}function Rr(e){let t=Object.create(null);return {OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new f(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),false},FragmentDefinition:()=>false}}function Lr(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.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 p=u.operation,l=n[p];r[p]?e.reportError(new f(`Type for ${p} already defined in the schema. It cannot be redefined.`,{nodes:u})):l?e.reportError(new f(`There can be only one ${p} type in schema.`,{nodes:[l,u]})):n[p]=u;}return false}}function wr(e){let t=Object.create(null),n=e.getSchema();return {ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new f(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[o]?e.reportError(new f(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,false}}function Fr(e){return {OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Bt(r,o=>o.variable.name.value);for(let[o,s]of i)s.length>1&&e.reportError(new f(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}));}}}function kr(e){let t={};return {OperationDefinition:{enter(){t={};}},VariableDefinition(n){t[n.variable.name.value]=n;},ListValue(n){let r=kt(e.getParentInputType());if(!k(r))return It(e,n),false},ObjectValue(n){let r=z(e.getInputType());if(!L(r))return It(e,n),false;let i=me(n.fields,o=>o.name.value);for(let o of Object.values(r.getFields()))if(!i[o.name]&&ot(o)){let a=d(o.type);e.reportError(new f(`Field "${r.name}.${o.name}" of required type "${a}" was not provided.`,{nodes:n}));}r.isOneOf&&Ba(e,n,r,i);},ObjectField(n){let r=z(e.getParentInputType());if(!e.getInputType()&&L(r)){let o=Ee(n.name.value,Object.keys(r.getFields()));e.reportError(new f(`Field "${n.name.value}" is not defined by type "${r.name}".`+de(o),{nodes:n}));}},NullValue(n){let r=e.getInputType();_(r)&&e.reportError(new f(`Expected value of type "${d(r)}", found ${V(n)}.`,{nodes:n}));},EnumValue:n=>It(e,n),IntValue:n=>It(e,n),FloatValue:n=>It(e,n),StringValue:n=>It(e,n),BooleanValue:n=>It(e,n)}}function It(e,t){let n=e.getInputType();if(!n)return;let r=z(n);if(!oe(r)){let i=d(n);e.reportError(new f(`Expected value of type "${i}", found ${V(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let o=d(n);e.reportError(new f(`Expected value of type "${o}", found ${V(t)}.`,{nodes:t}));}}catch(i){let o=d(n);i instanceof f?e.reportError(i):e.reportError(new f(`Expected value of type "${o}", found ${V(t)}; `+i.message,{nodes:t,originalError:i}));}}function Ba(e,t,n,r){var i;let o=Object.keys(r);if(o.length!==1){e.reportError(new f(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let a=(i=r[o[0]])===null||i===void 0?void 0:i.value;(!a||a.kind===c.NULL)&&e.reportError(new f(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));}function Vr(e){return {VariableDefinition(t){let n=H(e.getSchema(),t.type);if(n!==void 0&&!te(n)){let r=t.variable.name.value,i=V(t.type);e.reportError(new f(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}));}}}}function Cr(e){let t=Object.create(null);return {OperationDefinition:{enter(){t=Object.create(null);},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:o,defaultValue:s,parentType:a}of r){let u=i.name.value,p=t[u];if(p&&o){let l=e.getSchema(),m=H(l,p.type);if(m&&!qa(l,m,p.defaultValue,o,s)){let h=d(m),E=d(o);e.reportError(new f(`Variable "$${u}" of type "${h}" used in position expecting type "${E}".`,{nodes:[p,i]}));}L(a)&&a.isOneOf&&Ft(m)&&e.reportError(new f(`Variable "$${u}" is of type "${m}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[p,i]}));}}}},VariableDefinition(n){t[n.variable.name.value]=n;}}}function qa(e,t,n,r,i){if(_(r)&&!_(t)){if(!(n!=null&&n.kind!==c.NULL)&&!(i!==void 0))return false;let a=r.ofType;return Be(e,t,a)}return Be(e,t,r)}var Ni=Object.freeze([sr]),$r=Object.freeze([Zn,Rr,ir,br,yn,tr,Vr,vr,er,xr,rr,ur,Tr,ar,Fr,cr,pr,Tn,Nn,nr,vn,kr,Er,Cr,hr,gn,...Ni]),Bo=Object.freeze([or,Lr,wr,Sr,Ar,_r,Dr,yn,Tn,Nn,yr,di,vn,gn,Ei]);var Ur=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n;}get[Symbol.toStringTag](){return "ASTValidationContext"}reportError(t){this._onError(t);}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else {n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===c.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n;}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let o of i.selections)o.kind===c.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&r.push(o.selectionSet);this._fragmentSpreads.set(t,n);}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],o;for(;o=i.pop();)for(let s of this.getFragmentSpreads(o)){let a=s.name.value;if(r[a]!==true){r[a]=true;let u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet));}}this._recursivelyReferencedFragments.set(t,n);}return n}},Mr=class extends Ur{constructor(t,n,r){super(t,r),this._schema=n;}get[Symbol.toStringTag](){return "SDLValidationContext"}getSchema(){return this._schema}},qt=class extends Ur{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map;}get[Symbol.toStringTag](){return "ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new pt(this._schema);Me(t,Pt(i,{VariableDefinition:()=>false,Variable(o){r.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()});}})),n=r,this._variableUsages.set(t,n);}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,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()}};var Ya=_e(Kt,e=>e.filter(t=>t!=="description"));function jr(e,t,n=$r,r,i=new pt(e)){var o;let s=(o=r?.maxErrors)!==null&&o!==void 0?o:100;t||S(false,"Must provide document."),jt(e);let a=Object.freeze({}),u=[],p=new qt(e,t,i,m=>{if(u.length>=s)throw u.push(new f("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(m);}),l=Wt(n.map(m=>m(p)));try{Me(t,Pt(i,l),Ya);}catch(m){if(m!==a)throw m}return u}function qo(e,t,n=Bo){let r=[],i=new Mr(e,t,s=>{r.push(s);}),o=n.map(s=>s(i));return Me(e,Wt(o)),r}function Yo(e){let t=qo(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
62
+
63
+ `))}function Jo(e,t){let n=qo(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(`
64
+
65
+ `))}function Ko(e){let t;return function(r,i,o){t===void 0&&(t=new WeakMap);let s=t.get(r);s===void 0&&(s=new WeakMap,t.set(r,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(r,i,o),a.set(o,u)),u}}function gi(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}function Xo(e,t,n){let r=n;for(let i of e)r=fe(r)?r.then(o=>t(o,i)):t(r,i);return r}function zo(e){return e instanceof Error?e:new Ii(e)}var Ii=class extends Error{constructor(t){super("Unexpected error value: "+d(t)),this.name="NonErrorThrown",this.thrownValue=t;}};function We(e,t,n){var r;let i=zo(e);return Ja(i)?i:new f(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function Ja(e){return Array.isArray(e.path)}var Ka=Ko((e,t,n)=>Qo(e.schema,e.fragments,e.variableValues,t,n)),Oi=class{constructor(){this._errorPositions=new Set,this._errors=[];}get errors(){return this._errors}add(t,n){this._hasNulledPosition(n)||(this._errorPositions.add(n),this._errors.push(t));}_hasNulledPosition(t){let n=t;for(;n!==void 0;){if(this._errorPositions.has(n))return true;n=n.prev;}return this._errorPositions.has(void 0)}};function Ot(e){arguments.length<2||S(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;_i(t,n,r);let o=Di(e);if(!("schema"in o))return {errors:o};try{let{operation:s}=o,a=Xa(o,s,i);return fe(a)?a.then(u=>Pr(u,o.collectedErrors.errors),u=>(o.collectedErrors.add(u,void 0),Pr(null,o.collectedErrors.errors))):Pr(a,o.collectedErrors.errors)}catch(s){return o.collectedErrors.add(s,void 0),Pr(null,o.collectedErrors.errors)}}function qr(e){let t=Ot(e);if(fe(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Pr(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function _i(e,t,n){t||S(false,"Must provide document."),jt(e),n==null||Z(n)||S(false,"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 Di(e){var t,n,r;let{schema:i,document:o,rootValue:s,contextValue:a,variableValues:u,operationName:p,fieldResolver:l,typeResolver:m,subscribeFieldResolver:h,options:E}=e,N,C=Object.create(null);for(let pe of o.definitions)switch(pe.kind){case c.OPERATION_DEFINITION:if(p==null){if(N!==void 0)return [new f("Must provide operation name if query contains multiple operations.")];N=pe;}else ((t=pe.name)===null||t===void 0?void 0:t.value)===p&&(N=pe);break;case c.FRAGMENT_DEFINITION:C[pe.name.value]=pe;break;}if(!N)return p!=null?[new f(`Unknown operation named "${p}".`)]:[new f("Must provide an operation.")];let P=(n=N.variableDefinitions)!==null&&n!==void 0?n:[],Q=Ir(i,P,u??{},{maxErrors:(r=E?.maxCoercionErrors)!==null&&r!==void 0?r:50});return Q.errors?Q.errors:{schema:i,fragments:C,rootValue:s,contextValue:a,operation:N,variableValues:Q.coerced,fieldResolver:l??Br,typeResolver:m??Ai,subscribeFieldResolver:h??Br,collectedErrors:new Oi}}function Xa(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new f(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=Qt(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case Y.QUERY:return Gr(e,r,n,o,i);case Y.MUTATION:return za(e,r,n,o,i);case Y.SUBSCRIPTION:return Gr(e,r,n,o,i)}}function za(e,t,n,r,i){return Xo(i.entries(),(o,[s,a])=>{let u=ze(r,s,t.name),p=Zo(e,t,n,a,u);return p===void 0?o:fe(p)?p.then(l=>(o[s]=l,o)):(o[s]=p,o)},Object.create(null))}function Gr(e,t,n,r,i){let o=Object.create(null),s=false;try{for(let[a,u]of i.entries()){let p=ze(r,a,t.name),l=Zo(e,t,n,u,p);l!==void 0&&(o[a]=l,fe(l)&&(s=!0));}}catch(a){if(s)return gi(o).finally(()=>{throw a});throw a}return s?gi(o):o}function Zo(e,t,n,r,i){var o;let s=xi(e.schema,t,r[0]);if(!s)return;let a=s.type,u=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver,p=Si(e,s,r,t,i);try{let l=gt(s,r[0],e.variableValues),m=e.contextValue,h=u(n,l,m,p),E;return fe(h)?E=h.then(N=>In(e,a,r,p,i,N)):E=In(e,a,r,p,i,h),fe(E)?E.then(void 0,N=>{let C=We(N,r,ie(i));return Qr(C,a,i,e)}):E}catch(l){let m=We(l,r,ie(i));return Qr(m,a,i,e)}}function Si(e,t,n,r,i){return {fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Qr(e,t,n,r){if(_(t))throw e;return r.collectedErrors.add(e,n),null}function In(e,t,n,r,i,o){if(o instanceof Error)throw o;if(_(t)){let s=In(e,t.ofType,n,r,i,o);if(s===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return s}if(o==null)return null;if(k(t))return Ha(e,t,n,r,i,o);if(oe(t))return Wa(t,o);if(Te(t))return Za(e,t,n,r,i,o);if(A(t))return bi(e,t,n,r,i,o);$(false,"Cannot complete value of unexpected output type: "+d(t));}function Ha(e,t,n,r,i,o){if(!Ct(o))throw new f(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let s=t.ofType,a=false,u=Array.from(o,(p,l)=>{let m=ze(i,l,void 0);try{let h;return fe(p)?h=p.then(E=>In(e,s,n,r,m,E)):h=In(e,s,n,r,m,p),fe(h)?(a=!0,h.then(void 0,E=>{let N=We(E,n,ie(m));return Qr(N,s,m,e)})):h}catch(h){let E=We(h,n,ie(m));return Qr(E,s,m,e)}});return a?Promise.all(u):u}function Wa(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${d(e)}.serialize(${d(t)})\` to return non-nullable value, returned: ${d(n)}`);return n}function Za(e,t,n,r,i,o){var s;let a=(s=t.resolveType)!==null&&s!==void 0?s:e.typeResolver,u=e.contextValue,p=a(o,u,r,t);return fe(p)?p.then(l=>bi(e,Ho(l,e,t,n,r,o),n,r,i,o)):bi(e,Ho(p,e,t,n,r,o),n,r,i,o)}function Ho(e,t,n,r,i,o){if(e==null)throw new f(`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.`,r);if(A(e))throw new f("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 f(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${d(o)}, received "${d(e)}".`);let s=t.schema.getType(e);if(s==null)throw new f(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!A(s))throw new f(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new f(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function bi(e,t,n,r,i,o){let s=Ka(e,t,n);if(t.isTypeOf){let a=t.isTypeOf(o,e.contextValue,r);if(fe(a))return a.then(u=>{if(!u)throw Wo(t,o,n);return Gr(e,t,o,i,s)});if(!a)throw Wo(t,o,n)}return Gr(e,t,o,i,s)}function Wo(e,t,n){return new f(`Expected value of type "${e.name}" but got: ${d(t)}.`,{nodes:n})}var Ai=function(e,t,n,r){if(Z(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let s=0;s<i.length;s++){let a=i[s];if(a.isTypeOf){let u=a.isTypeOf(e,t,n);if(fe(u))o[s]=u;else if(u)return o.length&&Promise.allSettled(o).catch(()=>{}),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})},Br=function(e,t,n,r){if(Z(e)||typeof e=="function"){let i=e[r.fieldName];return typeof i=="function"?e[r.fieldName](t,n,r):i}};function xi(e,t,n){let r=n.name.value;return r===at.name&&e.getQueryType()===t?at:r===ct.name&&e.getQueryType()===t?ct:r===ut.name?ut:t.getFields()[r]}function ec(e){return new Promise(t=>t(es(e)))}function tc(e){let t=es(e);if(fe(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function es(e){arguments.length<2||S(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u}=e,p=fn(t);if(p.length>0)return {errors:p};let l;try{l=nt(n);}catch(h){return {errors:[h]}}let m=jr(t,l);return m.length>0?{errors:m}:Ot({schema:t,document:l,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u})}function Ri(e){return typeof e?.[Symbol.asyncIterator]=="function"}function ts(e,t){let n=e[Symbol.asyncIterator]();async function r(i){if(i.done)return i;try{return {value:await t(i.value),done:!1}}catch(o){if(typeof n.return=="function")try{await n.return();}catch{}throw o}}return {async next(){return r(await n.next())},async return(){return typeof n.return=="function"?r(await n.return()):{value:void 0,done:true}},async throw(i){if(typeof n.throw=="function")return r(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}async function ns(e){arguments.length<2||S(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await Li(e);return Ri(t)?ts(t,r=>Ot({...e,rootValue:r})):t}function nc(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function Li(...e){let t=nc(e),{schema:n,document:r,variableValues:i}=t;_i(n,r,i);let o=Di(t);if(!("schema"in o))return {errors:o};try{let s=await rc(o);if(!Ri(s))throw new Error(`Subscription field must return Async Iterable. Received: ${d(s)}.`);return s}catch(s){if(s instanceof f)return {errors:[s]};throw s}}async function rc(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,s=t.getSubscriptionType();if(s==null)throw new f("Schema is not configured to execute subscription operation.",{nodes:r});let a=Qt(t,n,i,s,r.selectionSet),[u,p]=[...a.entries()][0],l=xi(t,s,p[0]);if(!l){let N=p[0].name.value;throw new f(`The subscription field "${N}" is not defined.`,{nodes:p})}let m=ze(void 0,u,s.name),h=Si(e,l,p,s,m);try{var E;let N=gt(l,p[0],i),C=e.contextValue,Q=await((E=l.subscribe)!==null&&E!==void 0?E:e.subscribeFieldResolver)(o,N,C,h);if(Q instanceof Error)throw Q;return Q}catch(N){throw We(N,p,ie(m))}}function rs(e){return {Field(t){let n=e.getFieldDef(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||$(),e.reportError(new f(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}));}},Argument(t){let n=e.getArgument(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new f(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else {let o=e.getParentType(),s=e.getFieldDef();o!=null&&s!=null||$(),e.reportError(new f(`Field "${o.name}.${s.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));}}},ObjectField(t){let n=z(e.getParentInputType());if(L(n)){let r=n.getFields()[t.name.value],i=r?.deprecationReason;i!=null&&e.reportError(new f(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}));}},EnumValue(t){let n=e.getEnumValue(),r=n?.deprecationReason;if(n&&r!=null){let i=z(e.getInputType());i!=null||$(),e.reportError(new f(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}));}}}}function is(e){return {Field(t){let n=z(e.getType());n&&Se(n)&&e.reportError(new f(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}));}}}function Yr(e){let t={descriptions:true,specifiedByUrl:false,directiveIsRepeatable:false,schemaDescription:false,inputValueDeprecation:false,oneOf:false,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function s(u){return t.inputValueDeprecation?u:""}let a=t.oneOf?"isOneOf":"";return `
66
+ query IntrospectionQuery {
67
+ __schema {
68
+ ${o}
69
+ queryType { name kind }
70
+ mutationType { name kind }
71
+ subscriptionType { name kind }
72
+ types {
73
+ ...FullType
74
+ }
75
+ directives {
76
+ name
77
+ ${n}
78
+ ${i}
79
+ locations
80
+ args${s("(includeDeprecated: true)")} {
81
+ ...InputValue
82
+ }
83
+ }
84
+ }
85
+ }
86
+
87
+ fragment FullType on __Type {
88
+ kind
89
+ name
90
+ ${n}
91
+ ${r}
92
+ ${a}
93
+ fields(includeDeprecated: true) {
94
+ name
95
+ ${n}
96
+ args${s("(includeDeprecated: true)")} {
97
+ ...InputValue
98
+ }
99
+ type {
100
+ ...TypeRef
101
+ }
102
+ isDeprecated
103
+ deprecationReason
104
+ }
105
+ inputFields${s("(includeDeprecated: true)")} {
106
+ ...InputValue
107
+ }
108
+ interfaces {
109
+ ...TypeRef
110
+ }
111
+ enumValues(includeDeprecated: true) {
112
+ name
113
+ ${n}
114
+ isDeprecated
115
+ deprecationReason
116
+ }
117
+ possibleTypes {
118
+ ...TypeRef
119
+ }
120
+ }
121
+
122
+ fragment InputValue on __InputValue {
123
+ name
124
+ ${n}
125
+ type { ...TypeRef }
126
+ defaultValue
127
+ ${s("isDeprecated")}
128
+ ${s("deprecationReason")}
129
+ }
130
+
131
+ fragment TypeRef on __Type {
132
+ kind
133
+ name
134
+ ofType {
135
+ kind
136
+ name
137
+ ofType {
138
+ kind
139
+ name
140
+ ofType {
141
+ kind
142
+ name
143
+ ofType {
144
+ kind
145
+ name
146
+ ofType {
147
+ kind
148
+ name
149
+ ofType {
150
+ kind
151
+ name
152
+ ofType {
153
+ kind
154
+ name
155
+ ofType {
156
+ kind
157
+ name
158
+ ofType {
159
+ kind
160
+ name
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+ `}function os(e,t){let n=null;for(let i of e.definitions)if(i.kind===c.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i;}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}function ss(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new f("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new f("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new f("Schema is not configured for subscriptions.",{nodes:t});return n}throw new f("Can only have query, mutation and subscription operations.",{nodes:t})}function as(e,t){let n={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,oneOf:true,...t},r=nt(Yr(n)),i=qr({schema:e,document:r});return !i.errors&&i.data||$(),i.data}function cs(e,t){Z(e)&&Z(e.__schema)||S(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${d(e)}.`);let n=e.__schema,r=xe(n.types,v=>v.name,v=>h(v));for(let v of [...Ke,...Xe])r[v.name]&&(r[v.name]=v);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(Xr):[];return new Ae({description:n.description,query:i,mutation:o,subscription:s,types:Object.values(r),directives:a,assumeValid:t?.assumeValid});function u(v){if(v.kind===M.LIST){let w=v.ofType;if(!w)throw new Error("Decorated type deeper than introspection query.");return new J(u(w))}if(v.kind===M.NON_NULL){let w=v.ofType;if(!w)throw new Error("Decorated type deeper than introspection query.");let be=u(w);return new x(Bn(be))}return p(v)}function p(v){let w=v.name;if(!w)throw new Error(`Unknown type reference: ${d(v)}.`);let be=r[w];if(!be)throw new Error(`Invalid or incomplete schema, unknown type: ${w}. Ensure that a full introspection query is used in order to build a client schema.`);return be}function l(v){return Gn(p(v))}function m(v){return Qn(p(v))}function h(v){if(v!=null&&v.name!=null&&v.kind!=null)switch(v.kind){case M.SCALAR:return E(v);case M.OBJECT:return C(v);case M.INTERFACE:return P(v);case M.UNION:return Q(v);case M.ENUM:return pe(v);case M.INPUT_OBJECT:return se(v)}let w=d(v);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${w}.`)}function E(v){return new he({name:v.name,description:v.description,specifiedByURL:v.specifiedByURL})}function N(v){if(v.interfaces===null&&v.kind===M.INTERFACE)return [];if(!v.interfaces){let w=d(v);throw new Error(`Introspection result missing interfaces: ${w}.`)}return v.interfaces.map(m)}function C(v){return new re({name:v.name,description:v.description,interfaces:()=>N(v),fields:()=>le(v)})}function P(v){return new Re({name:v.name,description:v.description,interfaces:()=>N(v),fields:()=>le(v)})}function Q(v){if(!v.possibleTypes){let w=d(v);throw new Error(`Introspection result missing possibleTypes: ${w}.`)}return new Le({name:v.name,description:v.description,types:()=>v.possibleTypes.map(l)})}function pe(v){if(!v.enumValues){let w=d(v);throw new Error(`Introspection result missing enumValues: ${w}.`)}return new Ne({name:v.name,description:v.description,values:xe(v.enumValues,w=>w.name,w=>({description:w.description,deprecationReason:w.deprecationReason}))})}function se(v){if(!v.inputFields){let w=d(v);throw new Error(`Introspection result missing inputFields: ${w}.`)}return new we({name:v.name,description:v.description,fields:()=>et(v.inputFields),isOneOf:v.isOneOf})}function le(v){if(!v.fields)throw new Error(`Introspection result missing fields: ${d(v)}.`);return xe(v.fields,w=>w.name,lt)}function lt(v){let w=u(v.type);if(!Fe(w)){let be=d(w);throw new Error(`Introspection must provide output type for fields, but received: ${be}.`)}if(!v.args){let be=d(v);throw new Error(`Introspection result missing field args: ${be}.`)}return {description:v.description,deprecationReason:v.deprecationReason,type:w,args:et(v.args)}}function et(v){return xe(v,w=>w.name,bt)}function bt(v){let w=u(v.type);if(!te(w)){let _t=d(w);throw new Error(`Introspection must provide input type for arguments, but received: ${_t}.`)}let be=v.defaultValue!=null?Oe(Cn(v.defaultValue),w):void 0;return {description:v.description,type:w,defaultValue:be,deprecationReason:v.deprecationReason}}function Xr(v){if(!v.args){let w=d(v);throw new Error(`Introspection result missing directive args: ${w}.`)}if(!v.locations){let w=d(v);throw new Error(`Introspection result missing directive locations: ${w}.`)}return new ue({name:v.name,description:v.description,isRepeatable:v.isRepeatable,locations:v.locations.slice(),args:et(v.args)})}}function ls(e,t,n){Mt(e),t!=null&&t.kind===c.DOCUMENT||S(false,"Must provide valid Document AST."),n?.assumeValid!==true&&n?.assumeValidSDL!==true&&Jo(t,e);let r=e.toConfig(),i=wi(r,t,n);return r===i?e:new Ae(i)}function wi(e,t,n){var r,i,o,s;let a=[],u=Object.create(null),p=[],l,m=[];for(let y of t.definitions)if(y.kind===c.SCHEMA_DEFINITION)l=y;else if(y.kind===c.SCHEMA_EXTENSION)m.push(y);else if(Ge(y))a.push(y);else if(Nt(y)){let O=y.name.value,g=u[O];u[O]=g?g.concat([y]):[y];}else y.kind===c.DIRECTIVE_DEFINITION&&p.push(y);if(Object.keys(u).length===0&&a.length===0&&p.length===0&&m.length===0&&l==null)return e;let h=Object.create(null);for(let y of e.types)h[y.name]=pe(y);for(let y of a){var E;let O=y.name.value;h[O]=(E=us[O])!==null&&E!==void 0?E:Cs(y);}let N={query:e.query&&P(e.query),mutation:e.mutation&&P(e.mutation),subscription:e.subscription&&P(e.subscription),...l&&be([l]),...be(m)};return {description:(r=l)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...N,types:Object.values(h),directives:[...e.directives.map(Q),...p.map(Vs)],extensions:Object.create(null),astNode:(o=l)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(m),assumeValid:(s=n?.assumeValid)!==null&&s!==void 0?s:false};function C(y){return k(y)?new J(C(y.ofType)):_(y)?new x(C(y.ofType)):P(y)}function P(y){return h[y.name]}function Q(y){let O=y.toConfig();return new ue({...O,args:_e(O.args,w)})}function pe(y){if(Se(y)||st(y))return y;if(ee(y))return lt(y);if(A(y))return et(y);if(R(y))return bt(y);if(j(y))return Xr(y);if(U(y))return le(y);if(L(y))return se(y);$(false,"Unexpected type: "+d(y));}function se(y){var O;let g=y.toConfig(),b=(O=u[g.name])!==null&&O!==void 0?O:[];return new we({...g,fields:()=>({..._e(g.fields,B=>({...B,type:C(B.type)})),...Gi(b)}),extensionASTNodes:g.extensionASTNodes.concat(b)})}function le(y){var O;let g=y.toConfig(),b=(O=u[y.name])!==null&&O!==void 0?O:[];return new Ne({...g,values:{...g.values,...Qi(b)},extensionASTNodes:g.extensionASTNodes.concat(b)})}function lt(y){var O;let g=y.toConfig(),b=(O=u[g.name])!==null&&O!==void 0?O:[],B=g.specifiedByURL;for(let X of b){var ne;B=(ne=ps(X))!==null&&ne!==void 0?ne:B;}return new he({...g,specifiedByURL:B,extensionASTNodes:g.extensionASTNodes.concat(b)})}function et(y){var O;let g=y.toConfig(),b=(O=u[g.name])!==null&&O!==void 0?O:[];return new re({...g,interfaces:()=>[...y.getInterfaces().map(P),...Dn(b)],fields:()=>({..._e(g.fields,v),..._n(b)}),extensionASTNodes:g.extensionASTNodes.concat(b)})}function bt(y){var O;let g=y.toConfig(),b=(O=u[g.name])!==null&&O!==void 0?O:[];return new Re({...g,interfaces:()=>[...y.getInterfaces().map(P),...Dn(b)],fields:()=>({..._e(g.fields,v),..._n(b)}),extensionASTNodes:g.extensionASTNodes.concat(b)})}function Xr(y){var O;let g=y.toConfig(),b=(O=u[g.name])!==null&&O!==void 0?O:[];return new Le({...g,types:()=>[...y.getTypes().map(P),...Bi(b)],extensionASTNodes:g.extensionASTNodes.concat(b)})}function v(y){return {...y,type:C(y.type),args:y.args&&_e(y.args,w)}}function w(y){return {...y,type:C(y.type)}}function be(y){let O={};for(let b of y){var g;let B=(g=b.operationTypes)!==null&&g!==void 0?g:[];for(let ne of B)O[ne.operation]=_t(ne.type);}return O}function _t(y){var O;let g=y.name.value,b=(O=us[g])!==null&&O!==void 0?O:h[g];if(b===void 0)throw new Error(`Unknown type: "${g}".`);return b}function Yt(y){return y.kind===c.LIST_TYPE?new J(Yt(y.type)):y.kind===c.NON_NULL_TYPE?new x(Yt(y.type)):_t(y)}function Vs(y){var O;return new ue({name:y.name.value,description:(O=y.description)===null||O===void 0?void 0:O.value,locations:y.locations.map(({value:g})=>g),isRepeatable:y.repeatable,args:Pi(y.arguments),astNode:y})}function _n(y){let O=Object.create(null);for(let B of y){var g;let ne=(g=B.fields)!==null&&g!==void 0?g:[];for(let X of ne){var b;O[X.name.value]={type:Yt(X.type),description:(b=X.description)===null||b===void 0?void 0:b.value,args:Pi(X.arguments),deprecationReason:Jr(X),astNode:X};}}return O}function Pi(y){let O=y??[],g=Object.create(null);for(let B of O){var b;let ne=Yt(B.type);g[B.name.value]={type:ne,description:(b=B.description)===null||b===void 0?void 0:b.value,defaultValue:Oe(B.defaultValue,ne),deprecationReason:Jr(B),astNode:B};}return g}function Gi(y){let O=Object.create(null);for(let B of y){var g;let ne=(g=B.fields)!==null&&g!==void 0?g:[];for(let X of ne){var b;let Dt=Yt(X.type);O[X.name.value]={type:Dt,description:(b=X.description)===null||b===void 0?void 0:b.value,defaultValue:Oe(X.defaultValue,Dt),deprecationReason:Jr(X),astNode:X};}}return O}function Qi(y){let O=Object.create(null);for(let B of y){var g;let ne=(g=B.values)!==null&&g!==void 0?g:[];for(let X of ne){var b;O[X.name.value]={description:(b=X.description)===null||b===void 0?void 0:b.value,deprecationReason:Jr(X),astNode:X};}}return O}function Dn(y){return y.flatMap(O=>{var g,b;return (g=(b=O.interfaces)===null||b===void 0?void 0:b.map(_t))!==null&&g!==void 0?g:[]})}function Bi(y){return y.flatMap(O=>{var g,b;return (g=(b=O.types)===null||b===void 0?void 0:b.map(_t))!==null&&g!==void 0?g:[]})}function Cs(y){var O;let g=y.name.value,b=(O=u[g])!==null&&O!==void 0?O:[];switch(y.kind){case c.OBJECT_TYPE_DEFINITION:{var B;let Ue=[y,...b];return new re({name:g,description:(B=y.description)===null||B===void 0?void 0:B.value,interfaces:()=>Dn(Ue),fields:()=>_n(Ue),astNode:y,extensionASTNodes:b})}case c.INTERFACE_TYPE_DEFINITION:{var ne;let Ue=[y,...b];return new Re({name:g,description:(ne=y.description)===null||ne===void 0?void 0:ne.value,interfaces:()=>Dn(Ue),fields:()=>_n(Ue),astNode:y,extensionASTNodes:b})}case c.ENUM_TYPE_DEFINITION:{var X;let Ue=[y,...b];return new Ne({name:g,description:(X=y.description)===null||X===void 0?void 0:X.value,values:Qi(Ue),astNode:y,extensionASTNodes:b})}case c.UNION_TYPE_DEFINITION:{var Dt;let Ue=[y,...b];return new Le({name:g,description:(Dt=y.description)===null||Dt===void 0?void 0:Dt.value,types:()=>Bi(Ue),astNode:y,extensionASTNodes:b})}case c.SCALAR_TYPE_DEFINITION:{var zr;return new he({name:g,description:(zr=y.description)===null||zr===void 0?void 0:zr.value,specifiedByURL:ps(y),astNode:y,extensionASTNodes:b})}case c.INPUT_OBJECT_TYPE_DEFINITION:{var Hr;let Ue=[y,...b];return new we({name:g,description:(Hr=y.description)===null||Hr===void 0?void 0:Hr.value,fields:()=>Gi(Ue),astNode:y,extensionASTNodes:b,isOneOf:ic(y)})}}}}var us=me([...Ke,...Xe],e=>e.name);function Jr(e){let t=He(Et,e);return t?.reason}function ps(e){let t=He(cn,e);return t?.url}function ic(e){return !!He(un,e)}function Fi(e,t){e!=null&&e.kind===c.DOCUMENT||S(false,"Must provide valid Document AST."),t?.assumeValid!==true&&t?.assumeValidSDL!==true&&Yo(e);let r=wi({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false},e,t);if(r.astNode==null)for(let o of r.types)switch(o.name){case "Query":r.query=o;break;case "Mutation":r.mutation=o;break;case "Subscription":r.subscription=o;break}let i=[...r.directives,...ge.filter(o=>r.directives.every(s=>s.name!==o.name))];return new Ae({...r,directives:i})}function fs(e,t){let n=nt(e,{noLocation:t?.noLocation,allowLegacyFragmentVariables:t?.allowLegacyFragmentVariables});return Fi(n,{assumeValidSDL:t?.assumeValidSDL,assumeValid:t?.assumeValid})}function ds(e){let t=e.toConfig(),n=xe(ki(t.types),h=>h.name,m);return new Ae({...t,types:Object.values(n),directives:ki(t.directives).map(s),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(h){return k(h)?new J(r(h.ofType)):_(h)?new x(r(h.ofType)):i(h)}function i(h){return n[h.name]}function o(h){return h&&i(h)}function s(h){let E=h.toConfig();return new ue({...E,locations:ms(E.locations,N=>N),args:a(E.args)})}function a(h){return Kr(h,E=>({...E,type:r(E.type)}))}function u(h){return Kr(h,E=>({...E,type:r(E.type),args:E.args&&a(E.args)}))}function p(h){return Kr(h,E=>({...E,type:r(E.type)}))}function l(h){return ki(h).map(i)}function m(h){if(ee(h)||Se(h))return h;if(A(h)){let E=h.toConfig();return new re({...E,interfaces:()=>l(E.interfaces),fields:()=>u(E.fields)})}if(R(h)){let E=h.toConfig();return new Re({...E,interfaces:()=>l(E.interfaces),fields:()=>u(E.fields)})}if(j(h)){let E=h.toConfig();return new Le({...E,types:()=>l(E.types)})}if(U(h)){let E=h.toConfig();return new Ne({...E,values:Kr(E.values,N=>N)})}if(L(h)){let E=h.toConfig();return new we({...E,fields:()=>p(E.fields)})}$(false,"Unexpected type: "+d(h));}}function Kr(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(Je))n[r]=t(e[r]);return n}function ki(e){return ms(e,t=>t.name)}function ms(e,t){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);return Je(i,o)})}function hs(e){return ys(e,t=>!pn(t),oc)}function Ts(e){return ys(e,pn,Se)}function oc(e){return !st(e)&&!Se(e)}function ys(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return [sc(e),...r.map(o=>mc(o)),...i.map(o=>Ci(o))].filter(Boolean).join(`
172
+
173
+ `)}function sc(e){if(e.description==null&&ac(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),Ce(e)+`schema {
174
+ ${t.join(`
175
+ `)}
176
+ }`}function ac(e){let t=e.getQueryType();if(t&&t.name!=="Query")return false;let n=e.getMutationType();if(n&&n.name!=="Mutation")return false;let r=e.getSubscriptionType();return !(r&&r.name!=="Subscription")}function Ci(e){if(ee(e))return cc(e);if(A(e))return uc(e);if(R(e))return pc(e);if(j(e))return lc(e);if(U(e))return fc(e);if(L(e))return dc(e);$(false,"Unexpected type: "+d(e));}function cc(e){return Ce(e)+`scalar ${e.name}`+hc(e)}function Es(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function uc(e){return Ce(e)+`type ${e.name}`+Es(e)+vs(e)}function pc(e){return Ce(e)+`interface ${e.name}`+Es(e)+vs(e)}function lc(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Ce(e)+"union "+e.name+n}function fc(e){let t=e.getValues().map((n,r)=>Ce(n," ",!r)+" "+n.name+Ui(n.deprecationReason));return Ce(e)+`enum ${e.name}`+$i(t)}function dc(e){let t=Object.values(e.getFields()).map((n,r)=>Ce(n," ",!r)+" "+Vi(n));return Ce(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+$i(t)}function vs(e){let t=Object.values(e.getFields()).map((n,r)=>Ce(n," ",!r)+" "+n.name+Ns(n.args," ")+": "+String(n.type)+Ui(n.deprecationReason));return $i(t)}function $i(e){return e.length!==0?` {
177
+ `+e.join(`
178
+ `)+`
179
+ }`:""}function Ns(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(Vi).join(", ")+")":`(
180
+ `+e.map((n,r)=>Ce(n," "+t,!r)+" "+t+Vi(n)).join(`
181
+ `)+`
182
+ `+t+")"}function Vi(e){let t=Ve(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${V(t)}`),n+Ui(e.deprecationReason)}function mc(e){return Ce(e)+"directive @"+e.name+Ns(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Ui(e){return e==null?"":e!==an?` @deprecated(reason: ${V({kind:c.STRING,value:e})})`:" @deprecated"}function hc(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${V({kind:c.STRING,value:e.specifiedByURL})})`}function Ce(e,t="",n=true){let{description:r}=e;if(r==null)return "";let i=V({kind:c.STRING,value:r,block:Hi(r)});return (t&&!n?`
183
+ `+t:t)+i.replace(/\n/g,`
184
+ `+t)+`
185
+ `}function gs(e){let t=[];for(let n of e)t.push(...n.definitions);return {kind:c.DOCUMENT,definitions:t}}function Os(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case c.OPERATION_DEFINITION:t.push(i);break;case c.FRAGMENT_DEFINITION:n[i.name.value]=Is(i.selectionSet);break;}let r=Object.create(null);for(let i of t){let o=new Set;for(let a of Is(i.selectionSet))bs(o,n,a);let s=i.name?i.name.value:"";r[s]={kind:c.DOCUMENT,definitions:e.definitions.filter(a=>a===i||a.kind===c.FRAGMENT_DEFINITION&&o.has(a.name.value))};}return r}function bs(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)bs(e,t,i);}}function Is(e){let t=[];return Me(e,{FragmentSpread(n){t.push(n.name.value);}}),t}function _s(e){let t=Ht(e)?e:new Qe(e),n=t.body,r=new tt(t),i="",o=false;for(;r.advance().kind!==T.EOF;){let s=r.token,a=s.kind,u=!Ln(s.kind);o&&(u||s.kind===T.SPREAD)&&(i+=" ");let p=n.slice(s.start,s.end);a===T.BLOCK_STRING?i+=Rn(s.value,{minimize:true}):i+=p,o=u;}return i}function Ds(e){let t=Mi(e);if(t)throw t;return e}function Mi(e){if(typeof e=="string"||S(false,"Expected name to be a string."),e.startsWith("__"))return new f(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{ae(e);}catch(t){return t}}var W;(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";})(W||(W={}));var $e;(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";})($e||($e={}));function Ls(e,t){return Fs(e,t).filter(n=>n.type in W)}function ws(e,t){return Fs(e,t).filter(n=>n.type in $e)}function Fs(e,t){return [...yc(e,t),...Tc(e,t)]}function Tc(e,t){let n=[],r=Ze(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:W.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,o]of r.persisted){let s=Ze(i.args,o.args);for(let a of s.added)ke(a)&&n.push({type:W.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:W.DIRECTIVE_ARG_REMOVED,description:`${a.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:W.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let a of i.locations)o.locations.includes(a)||n.push({type:W.DIRECTIVE_LOCATION_REMOVED,description:`${a} was removed from ${i.name}.`});}return n}function yc(e,t){let n=[],r=Ze(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:W.TYPE_REMOVED,description:st(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,o]of r.persisted)U(i)&&U(o)?n.push(...Nc(i,o)):j(i)&&j(o)?n.push(...vc(i,o)):L(i)&&L(o)?n.push(...Ec(i,o)):A(i)&&A(o)?n.push(...As(i,o),...Ss(i,o)):R(i)&&R(o)?n.push(...As(i,o),...Ss(i,o)):i.constructor!==o.constructor&&n.push({type:W.TYPE_CHANGED_KIND,description:`${i.name} changed from ${xs(i)} to ${xs(o)}.`});return n}function Ec(e,t){let n=[],r=Ze(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)ot(i)?n.push({type:W.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:$e.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:W.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of r.persisted)bn(i.type,o.type)||n.push({type:W.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function vc(e,t){let n=[],r=Ze(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:$e.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:W.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function Nc(e,t){let n=[],r=Ze(e.getValues(),t.getValues());for(let i of r.added)n.push({type:$e.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:W.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function Ss(e,t){let n=[],r=Ze(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:$e.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:W.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function As(e,t){let n=[],r=Ze(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:W.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of r.persisted)n.push(...gc(e,i,o)),On(i.type,o.type)||n.push({type:W.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function gc(e,t,n){let r=[],i=Ze(t.args,n.args);for(let o of i.removed)r.push({type:W.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(let[o,s]of i.persisted)if(!bn(o.type,s.type))r.push({type:W.ARG_CHANGED_KIND,description:`${e.name}.${t.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)r.push({type:$e.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else {let u=Rs(o.defaultValue,o.type),p=Rs(s.defaultValue,s.type);u!==p&&r.push({type:$e.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${u} to ${p}.`});}for(let o of i.added)ke(o)?r.push({type:W.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:$e.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function On(e,t){return k(e)?k(t)&&On(e.ofType,t.ofType)||_(t)&&On(e,t.ofType):_(e)?_(t)&&On(e.ofType,t.ofType):it(t)&&e.name===t.name||_(t)&&On(e,t.ofType)}function bn(e,t){return k(e)?k(t)&&bn(e.ofType,t.ofType):_(e)?_(t)&&bn(e.ofType,t.ofType)||!_(t)&&bn(e.ofType,t):it(t)&&e.name===t.name}function xs(e){if(ee(e))return "a Scalar type";if(A(e))return "an Object type";if(R(e))return "an Interface type";if(j(e))return "a Union type";if(U(e))return "an Enum type";if(L(e))return "an Input type";$(false,"Unexpected type: "+d(e));}function Rs(e,t){let n=Ve(e,t);return n!=null||$(),V(Gt(n))}function Ze(e,t){let n=[],r=[],i=[],o=me(e,({name:a})=>a),s=me(t,({name:a})=>a);for(let a of e){let u=s[a.name];u===void 0?r.push(a):i.push([a,u]);}for(let a of t)o[a.name]===void 0&&n.push(a);return {added:n,persisted:i,removed:r}}function ks(e,t){return ji(e,$n(t))}function Ic(e,t){let n=t.name.value,r=e.getType(n);if(r!=null)return {kind:"NamedType",type:r}}function Oc(e,t){let n=t.name.value,r=e.getType(n);if(!r)throw new Error(`Expected ${d(n)} to be defined as a type in the schema.`);if(!U(r)&&!L(r)&&!A(r)&&!R(r))throw new Error(`Expected ${d(n)} to be an Enum, Input Object, Object or Interface type.`);if(U(r)){let s=t.memberName.value,a=r.getValue(s);return a==null?void 0:{kind:"EnumValue",type:r,enumValue:a}}if(L(r)){let s=t.memberName.value,a=r.getFields()[s];return a==null?void 0:{kind:"InputField",type:r,inputField:a}}let i=t.memberName.value,o=r.getFields()[i];if(o!=null)return {kind:"Field",type:r,field:o}}function bc(e,t){let n=t.name.value,r=e.getType(n);if(r==null)throw new Error(`Expected ${d(n)} to be defined as a type in the schema.`);if(!A(r)&&!R(r))throw new Error(`Expected ${d(n)} to be an object type or interface type.`);let i=t.fieldName.value,o=r.getFields()[i];if(o==null)throw new Error(`Expected ${d(i)} to exist as a field of type ${d(n)} in the schema.`);let s=t.argumentName.value,a=o.args.find(u=>u.name===s);if(a!=null)return {kind:"FieldArgument",type:r,field:o,fieldArgument:a}}function _c(e,t){let n=t.name.value,r=e.getDirective(n);if(r)return {kind:"Directive",directive:r}}function Dc(e,t){let n=t.name.value,r=e.getDirective(n);if(!r)throw new Error(`Expected ${d(n)} to be defined as a directive in the schema.`);let{argumentName:{value:i}}=t,o=r.args.find(s=>s.name===i);if(o)return {kind:"DirectiveArgument",directive:r,directiveArgument:o}}function ji(e,t){switch(t.kind){case c.TYPE_COORDINATE:return Ic(e,t);case c.MEMBER_COORDINATE:return Oc(e,t);case c.ARGUMENT_COORDINATE:return bc(e,t);case c.DIRECTIVE_COORDINATE:return _c(e,t);case c.DIRECTIVE_ARGUMENT_COORDINATE:return Dc(e,t)}}export{ht as BREAK,W as BreakingChangeType,an as DEFAULT_DEPRECATION_REASON,$e as DangerousChangeType,D as DirectiveLocation,Zn as ExecutableDefinitionsRule,er as FieldsOnCorrectTypeRule,tr as FragmentsOnCompositeTypesRule,en as GRAPHQL_MAX_INT,tn as GRAPHQL_MIN_INT,ce as GraphQLBoolean,Et as GraphQLDeprecatedDirective,ue as GraphQLDirective,Ne as GraphQLEnumType,f as GraphQLError,ai as GraphQLFloat,nn as GraphQLID,on as GraphQLIncludeDirective,we as GraphQLInputObjectType,si as GraphQLInt,Re as GraphQLInterfaceType,J as GraphQLList,x as GraphQLNonNull,re as GraphQLObjectType,un as GraphQLOneOfDirective,he as GraphQLScalarType,Ae as GraphQLSchema,sn as GraphQLSkipDirective,cn as GraphQLSpecifiedByDirective,K as GraphQLString,Le as GraphQLUnionType,c as Kind,nr as KnownArgumentNamesRule,Tn as KnownDirectivesRule,rr as KnownFragmentNamesRule,yn as KnownTypeNamesRule,tt as Lexer,St as Location,ir as LoneAnonymousOperationRule,or as LoneSchemaDefinitionRule,sr as MaxIntrospectionDepthRule,rs as NoDeprecatedCustomRule,ar as NoFragmentCyclesRule,is as NoSchemaIntrospectionCustomRule,cr as NoUndefinedVariablesRule,ur as NoUnusedFragmentsRule,pr as NoUnusedVariablesRule,Y as OperationTypeNode,hr as OverlappingFieldsCanBeMergedRule,Tr as PossibleFragmentSpreadsRule,yr as PossibleTypeExtensionsRule,Er as ProvidedRequiredArgumentsRule,vr as ScalarLeafsRule,at as SchemaMetaFieldDef,br as SingleFieldSubscriptionsRule,Qe as Source,qe as Token,T as TokenKind,pt as TypeInfo,M as TypeKind,ct as TypeMetaFieldDef,ut as TypeNameMetaFieldDef,_r as UniqueArgumentDefinitionNamesRule,vn as UniqueArgumentNamesRule,Dr as UniqueDirectiveNamesRule,Nn as UniqueDirectivesPerLocationRule,Sr as UniqueEnumValueNamesRule,Ar as UniqueFieldDefinitionNamesRule,xr as UniqueFragmentNamesRule,gn as UniqueInputFieldNamesRule,Rr as UniqueOperationNamesRule,Lr as UniqueOperationTypesRule,wr as UniqueTypeNamesRule,Fr as UniqueVariableNamesRule,qt as ValidationContext,kr as ValuesOfCorrectTypeRule,Vr as VariablesAreInputTypesRule,Cr as VariablesInAllowedPositionRule,Jn as __Directive,Kn as __DirectiveLocation,zn as __EnumValue,Xn as __Field,Ut as __InputValue,$t as __Schema,De as __Type,Hn as __TypeKind,No as assertAbstractType,vo as assertCompositeType,Do as assertDirective,lo as assertEnumType,jn as assertEnumValueName,fo as assertInputObjectType,To as assertInputType,Qn as assertInterfaceType,Eo as assertLeafType,mo as assertListType,ae as assertName,Io as assertNamedType,ho as assertNonNullType,Bn as assertNullableType,Gn as assertObjectType,yo as assertOutputType,uo as assertScalarType,Mt as assertSchema,co as assertType,po as assertUnionType,Ds as assertValidName,jt as assertValidSchema,go as assertWrappingType,Ve as astFromValue,Fi as buildASTSchema,cs as buildClientSchema,fs as buildSchema,gr as coerceInputValue,gs as concatAST,Li as createSourceEventStream,Br as defaultFieldResolver,Ai as defaultTypeResolver,Zt as doTypesOverlap,Ot as execute,qr as executeSync,ls as extendSchema,Ls as findBreakingChanges,ws as findDangerousChanges,Ki as formatError,gt as getArgumentValues,He as getDirectiveValues,rt as getEnterLeaveForKind,Yr as getIntrospectionQuery,ft as getLocation,z as getNamedType,kt as getNullableType,os as getOperationAST,ss as getOperationRootType,Ir as getVariableValues,so as getVisitFn,ec as graphql,tc as graphqlSync,as as introspectionFromSchema,Xe as introspectionTypes,Te as isAbstractType,Ie as isCompositeType,Wn as isConstValueNode,Lo as isDefinitionNode,yt as isDirective,U as isEnumType,Vt as isEqualType,dn as isExecutableDefinitionNode,L as isInputObjectType,te as isInputType,R as isInterfaceType,Se as isIntrospectionType,oe as isLeafType,k as isListType,it as isNamedType,_ as isNonNullType,Ft as isNullableType,A as isObjectType,Fe as isOutputType,ke as isRequiredArgument,ot as isRequiredInputField,ee as isScalarType,ci as isSchema,ko as isSchemaCoordinateNode,wo as isSelectionNode,pn as isSpecifiedDirective,st as isSpecifiedScalarType,Tt as isType,Ge as isTypeDefinitionNode,Nt as isTypeExtensionNode,Fo as isTypeNode,Be as isTypeSubTypeOf,mn as isTypeSystemDefinitionNode,hn as isTypeSystemExtensionNode,j as isUnionType,Mi as isValidNameError,fi as isValueNode,wt as isWrappingType,ds as lexicographicSortSchema,We as locatedError,nt as parse,to as parseConstValue,$n as parseSchemaCoordinate,no as parseType,Cn as parseValue,V as print,Ji as printError,Ts as printIntrospectionSchema,Sn as printLocation,hs as printSchema,Jt as printSourceLocation,Ci as printType,Ni as recommendedRules,ji as resolveASTSchemaCoordinate,Yn as resolveObjMapThunk,qn as resolveReadonlyArrayThunk,ks as resolveSchemaCoordinate,ie as responsePathAsArray,Os as separateOperations,ge as specifiedDirectives,$r as specifiedRules,Ke as specifiedScalarTypes,_s as stripIgnoredCharacters,ns as subscribe,q as syntaxError,H as typeFromAST,jr as validate,fn as validateSchema,Oe as valueFromAST,Rt as valueFromASTUntyped,$s as version,Us as versionInfo,Me as visit,Wt as visitInParallel,Pt as visitWithTypeInfo};