"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8254],{58254:function(e,t,n){function i(e,t){if(!e)throw Error(t)}function r(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:r(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),i=e.length-n,s=[];for(let i=0;i1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}(e,n);return function(e,t){let n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map(([e,n])=>e+": "+r(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}n.d(t,{eI:function(){return e8}}),(J=H||(H={})).NAME="Name",J.DOCUMENT="Document",J.OPERATION_DEFINITION="OperationDefinition",J.VARIABLE_DEFINITION="VariableDefinition",J.SELECTION_SET="SelectionSet",J.FIELD="Field",J.ARGUMENT="Argument",J.FRAGMENT_SPREAD="FragmentSpread",J.INLINE_FRAGMENT="InlineFragment",J.FRAGMENT_DEFINITION="FragmentDefinition",J.VARIABLE="Variable",J.INT="IntValue",J.FLOAT="FloatValue",J.STRING="StringValue",J.BOOLEAN="BooleanValue",J.NULL="NullValue",J.ENUM="EnumValue",J.LIST="ListValue",J.OBJECT="ObjectValue",J.OBJECT_FIELD="ObjectField",J.DIRECTIVE="Directive",J.NAMED_TYPE="NamedType",J.LIST_TYPE="ListType",J.NON_NULL_TYPE="NonNullType",J.SCHEMA_DEFINITION="SchemaDefinition",J.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",J.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",J.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",J.FIELD_DEFINITION="FieldDefinition",J.INPUT_VALUE_DEFINITION="InputValueDefinition",J.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",J.UNION_TYPE_DEFINITION="UnionTypeDefinition",J.ENUM_TYPE_DEFINITION="EnumTypeDefinition",J.ENUM_VALUE_DEFINITION="EnumValueDefinition",J.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",J.DIRECTIVE_DEFINITION="DirectiveDefinition",J.SCHEMA_EXTENSION="SchemaExtension",J.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",J.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",J.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",J.UNION_TYPE_EXTENSION="UnionTypeExtension",J.ENUM_TYPE_EXTENSION="EnumTypeExtension",J.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",J.TYPE_COORDINATE="TypeCoordinate",J.MEMBER_COORDINATE="MemberCoordinate",J.ARGUMENT_COORDINATE="ArgumentCoordinate",J.DIRECTIVE_COORDINATE="DirectiveCoordinate",J.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate";class s{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class a{constructor(e,t,n,i,r,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,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}}}let o={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"]},l=new Set(Object.keys(o));function u(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&l.has(t)}(Q=W||(W={})).QUERY="query",Q.MUTATION="mutation",Q.SUBSCRIPTION="subscription";let c=Object.freeze({});function p(e,t,n=o){let s,a,l;let p=new Map;for(let e of Object.values(H))p.set(e,function(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let h=Array.isArray(e),d=[e],f=-1,E=[],v=e,m=[],T=[];do{var y,N,x;let e;let o=++f===d.length,I=o&&0!==E.length;if(o){if(a=0===T.length?void 0:m[m.length-1],v=l,l=T.pop(),I){if(h){v=v.slice();let e=0;for(let[t,n]of E){let i=t-e;null===n?(v.splice(i,1),e++):v[i]=n}}else for(let[e,t]of(v={...v},E))v[e]=t}f=s.index,d=s.keys,E=s.edits,h=s.inArray,s=s.prev}else if(l){if(null==(v=l[a=h?f:d[f]]))continue;m.push(a)}if(!Array.isArray(v)){u(v)||i(!1,`Invalid AST Node: ${r(v,[])}.`);let n=o?null===(y=p.get(v.kind))||void 0===y?void 0:y.leave:null===(N=p.get(v.kind))||void 0===N?void 0:N.enter;if((e=null==n?void 0:n.call(t,v,a,l,m,T))===c)break;if(!1===e){if(!o){m.pop();continue}}else if(void 0!==e&&(E.push([a,e]),!o)){if(u(e))v=e;else{m.pop();continue}}}void 0===e&&I&&E.push([a,v]),o?m.pop():(s={inArray:h,index:f,keys:d,edits:E,prev:s},d=(h=Array.isArray(v))?v:null!==(x=n[v.kind])&&void 0!==x?x:[],f=-1,E=[],l&&T.push(l),l=v)}while(void 0!==s);return 0!==E.length?E[E.length-1][1]:e}let h=/\r\n|[\n\r]/g;function d(e,t){let n=0,i=1;for(let r of e.body.matchAll(h)){if("number"==typeof r.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function f(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?n:0,l=t.column+o,u=`${e.name}:${a}:${l} `,c=i.split(/\r\n|[\n\r]/g),p=c[r];if(p.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+E([[`${a-1} |`,c[r-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,c[r+1]]])}function E(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class v extends Error{constructor(e,...t){var n,i,r,s;let{nodes:a,source:o,positions:l,path:u,originalError:c,extensions:p}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=c?c:void 0,this.nodes=m(Array.isArray(a)?a:a?[a]:void 0);let h=m(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==h?void 0:null===(i=h[0])||void 0===i?void 0:i.source,this.positions=null!=l?l:null==h?void 0:h.map(e=>e.start),this.locations=l&&o?l.map(e=>d(o,e)):null==h?void 0:h.map(e=>d(e.source,e.start));let f="object"==typeof(s=null==c?void 0:c.extensions)&&null!==s?null==c?void 0:c.extensions:void 0;this.extensions=null!==(r=null!=p?p:f)&&void 0!==r?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,v):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(let n of this.nodes)if(n.loc){var t;e+="\n\n"+f((t=n.loc).source,d(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+f(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function m(e){return void 0===e||0===e.length?void 0:e}function T(e){return 9===e||32===e}function y(e){return e>=48&&e<=57}function N(e){return e>=97&&e<=122||e>=65&&e<=90}function x(e){return N(e)||95===e}let I=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function O(e){return k[e.charCodeAt(0)]}let k=["\\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"],_={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>A(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=S(e.variableDefinitions)?g("(\n",A(e.variableDefinitions,"\n"),"\n)"):g("(",A(e.variableDefinitions,", "),")"),n=g("",e.description,"\n")+A([e.operation,A([e.name,t]),A(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i,description:r})=>g("",r,"\n")+e+": "+t+g(" = ",n)+g(" ",A(i," "))},SelectionSet:{leave:({selections:e})=>D(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){let s=g("",e,": ")+t,a=s+g("(",A(n,", "),")");return a.length>80&&(a=s+g("(\n",C(A(n,"\n")),"\n)")),A([a,A(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+g(" ",A(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>A(["...",g("on ",e),A(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r,description:s})=>g("",s,"\n")+`fragment ${e}${g("(",A(n,", "),")")} `+`on ${t} ${g("",A(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||T(e.charCodeAt(0))),a=n.endsWith('\\"""'),o=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=o||l,c=!r||e.length>70||u||s||a,p="",h=r&&T(e.charCodeAt(0));return(c&&!h||s)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}(e):`"${e.replace(I,O)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+A(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+A(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+g("(",A(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>g("",e,"\n")+A(["schema",A(t," "),D(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>g("",e,"\n")+A(["scalar",t,A(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>g("",e,"\n")+A(["type",t,g("implements ",A(n," & ")),A(i," "),D(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>g("",e,"\n")+t+(S(n)?g("(\n",C(A(n,"\n")),"\n)"):g("(",A(n,", "),")"))+": "+i+g(" ",A(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>g("",e,"\n")+A([t+": "+n,g("= ",i),A(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>g("",e,"\n")+A(["interface",t,g("implements ",A(n," & ")),A(i," "),D(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>g("",e,"\n")+A(["union",t,A(n," "),g("= ",A(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>g("",e,"\n")+A(["enum",t,A(n," "),D(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>g("",e,"\n")+A([t,A(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>g("",e,"\n")+A(["input",t,A(n," "),D(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>g("",e,"\n")+"directive @"+t+(S(n)?g("(\n",C(A(n,"\n")),"\n)"):g("(",A(n,", "),")"))+(i?" repeatable":"")+" on "+A(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>A(["extend schema",A(e," "),D(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>A(["extend scalar",e,A(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>A(["extend type",e,g("implements ",A(t," & ")),A(n," "),D(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>A(["extend interface",e,g("implements ",A(t," & ")),A(n," "),D(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>A(["extend union",e,A(t," "),g("= ",A(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>A(["extend enum",e,A(t," "),D(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>A(["extend input",e,A(t," "),D(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>A([e,g(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>A([e,g(".",t),g("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>A(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>A(["@",e,g("(",t,":)")])}};function A(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function D(e){return g("{\n",C(A(e,"\n")),"\n}")}function g(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function C(e){return g(" ",e.replace(/\n/g,"\n "))}function S(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}function b(e,t,n){return new v(`Syntax Error: ${n}`,{source:e,positions:[t]})}(X=Z||(Z={})).QUERY="QUERY",X.MUTATION="MUTATION",X.SUBSCRIPTION="SUBSCRIPTION",X.FIELD="FIELD",X.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",X.FRAGMENT_SPREAD="FRAGMENT_SPREAD",X.INLINE_FRAGMENT="INLINE_FRAGMENT",X.VARIABLE_DEFINITION="VARIABLE_DEFINITION",X.SCHEMA="SCHEMA",X.SCALAR="SCALAR",X.OBJECT="OBJECT",X.FIELD_DEFINITION="FIELD_DEFINITION",X.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",X.INTERFACE="INTERFACE",X.UNION="UNION",X.ENUM="ENUM",X.ENUM_VALUE="ENUM_VALUE",X.INPUT_OBJECT="INPUT_OBJECT",X.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(z=ee||(ee={})).SOF="",z.EOF="",z.BANG="!",z.DOLLAR="$",z.AMP="&",z.PAREN_L="(",z.PAREN_R=")",z.DOT=".",z.SPREAD="...",z.COLON=":",z.EQUALS="=",z.AT="@",z.BRACKET_L="[",z.BRACKET_R="]",z.BRACE_L="{",z.PIPE="|",z.BRACE_R="}",z.NAME="Name",z.INT="Int",z.FLOAT="Float",z.STRING="String",z.BLOCK_STRING="BlockString",z.COMMENT="Comment";class R{constructor(e){let t=new a(ee.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==ee.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,i=n.length,r=t;for(;r0===t?e:e.slice(i)).slice(null!==(t=r)&&void 0!==t?t:0,s+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=r,i}if(92===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)&&34===n.charCodeAt(s+3)){o+=n.slice(a,s),a=s+1,s+=4;continue}if(10===i||13===i){o+=n.slice(a,s),l.push(o),13===i&&10===n.charCodeAt(s+1)?s+=2:++s,o="",a=s,r=s;continue}if(L(i))++s;else if(w(n,s))s+=2;else throw b(e.source,s,`Invalid character within String: ${M(e,s)}.`)}throw b(e.source,s,"Unterminated string.")}(e,r);return function(e,t){let n=e.source.body,i=n.length,r=t+1,s=r,a="";for(;r=0&&e<=55295||e>=57344&&e<=1114111}function w(e,t){return F(e.charCodeAt(t))&&P(e.charCodeAt(t+1))}function F(e){return e>=55296&&e<=56319}function P(e){return e>=56320&&e<=57343}function M(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return ee.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function U(e,t,n,i,r){let s=e.line,o=1+n-e.lineStart;return new a(t,n,i,s,o,r)}function B(e,t,n){if(!y(n))throw b(e.source,t,`Invalid number, expected digit but got: ${M(e,t)}.`);let i=e.source.body,r=t+1;for(;y(i.charCodeAt(r));)++r;return r}function V(e,t){return j(e.charCodeAt(t))<<12|j(e.charCodeAt(t+1))<<8|j(e.charCodeAt(t+2))<<4|j(e.charCodeAt(t+3))}function j(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}let q=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){let t=r(e,[]);throw Error(`Cannot use ${i} "${t}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other relied on modules, use "resolutions" to ensure only one version is installed. https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and spurious results.`)}}return!1};class ${constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||i(!1,`Body must be a string. Received: ${r(e,[])}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||i(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||i(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class G{constructor(e,t={}){let{lexer:n,...i}=t;if(n)this._lexer=n;else{let t=q(e,$)?e:new $(e);this._lexer=new R(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(ee.NAME);return this.node(e,{kind:H.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:H.DOCUMENT,definitions:this.many(ee.SOF,this.parseDefinition,ee.EOF)})}parseDefinition(){if(this.peek(ee.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===ee.BRACE_L)throw b(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===ee.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw b(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(ee.BRACE_L))return this.node(t,{kind:H.OPERATION_DEFINITION,operation:W.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),i=this.parseOperationType();return this.peek(ee.NAME)&&(e=this.parseName()),this.node(t,{kind:H.OPERATION_DEFINITION,operation:i,description:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(ee.NAME);switch(e.value){case"query":return W.QUERY;case"mutation":return W.MUTATION;case"subscription":return W.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ee.PAREN_L,this.parseVariableDefinition,ee.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:H.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(ee.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ee.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(ee.DOLLAR),this.node(e,{kind:H.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:H.SELECTION_SET,selections:this.many(ee.BRACE_L,this.parseSelection,ee.BRACE_R)})}parseSelection(){return this.peek(ee.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(ee.COLON)?(e=i,t=this.parseName()):t=i,this.node(n,{kind:H.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ee.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ee.PAREN_L,t,ee.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(ee.COLON),this.node(t,{kind:H.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(ee.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(ee.NAME)?this.node(e,{kind:H.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:H.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:H.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:H.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case ee.BRACKET_L:return this.parseList(e);case ee.BRACE_L:return this.parseObject(e);case ee.INT:return this.advanceLexer(),this.node(t,{kind:H.INT,value:t.value});case ee.FLOAT:return this.advanceLexer(),this.node(t,{kind:H.FLOAT,value:t.value});case ee.STRING:case ee.BLOCK_STRING:return this.parseStringLiteral();case ee.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:H.BOOLEAN,value:!0});case"false":return this.node(t,{kind:H.BOOLEAN,value:!1});case"null":return this.node(t,{kind:H.NULL});default:return this.node(t,{kind:H.ENUM,value:t.value})}case ee.DOLLAR:if(e){if(this.expectToken(ee.DOLLAR),this._lexer.token.kind===ee.NAME){let e=this._lexer.token.value;throw b(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:H.STRING,value:e.value,block:e.kind===ee.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:H.LIST,values:this.any(ee.BRACKET_L,()=>this.parseValueLiteral(e),ee.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:H.OBJECT,fields:this.any(ee.BRACE_L,()=>this.parseObjectField(e),ee.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(ee.COLON),this.node(t,{kind:H.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(ee.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(ee.AT),this.node(t,{kind:H.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(ee.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(ee.BRACKET_R),e=this.node(t,{kind:H.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(ee.BANG)?this.node(t,{kind:H.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:H.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ee.STRING)|