(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[68813],{44391:function(e,t){var i,n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();i=r,function(e){var t={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function a(e){var i={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(i[Symbol.iterator]=function(){return i}),i}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function c(e){return new Promise(function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}})}function h(e){var t=new FileReader,i=c(t);return t.readAsArrayBuffer(e),i}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var i;t.arrayBuffer&&t.blob&&(i=e)&&DataView.prototype.isPrototypeOf(i)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||r(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var e,t,i,n=u(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,i=c(t=new FileReader),t.readAsText(e),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);return i.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=s(e),t=o(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=o(t)},l.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,i){e.push(i)}),a(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),a(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),a(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(e,t){var i,n,r=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new l(t.headers)),this.method=(n=(i=t.method||this.method||"GET").toUpperCase(),f.indexOf(n)>-1?n:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function E(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var i=e.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(r))}}),t}function m(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var T=[301,302,303,307,308];m.redirect=function(e,t){if(-1===T.indexOf(t))throw RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.DOMException=i.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(i,n){return new Promise(function(r,s){var o=new y(i,n);if(o.signal&&o.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,i={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var i=e.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();t.append(n,r)}}),t)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;r(new m(n,i))},a.onerror=function(){s(TypeError("Network request failed"))},a.ontimeout=function(){s(TypeError("Network request failed"))},a.onabort=function(){s(new e.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",u)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}v.polyfill=!0,i.fetch||(i.fetch=v,i.Headers=l,i.Request=y,i.Response=m),e.Headers=l,e.Request=y,e.Response=m,e.fetch=v,Object.defineProperty(e,"__esModule",{value:!0})}({}),r.fetch.ponyfill=!0,delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},19351:function(e){"use strict";e.exports=function(e){var t=e.uri,i=e.name,n=e.type;this.uri=t,this.name=i,this.type=n}},72296:function(e,t,i){"use strict";var n=i(23210);e.exports=function e(t,i,r){void 0===i&&(i=""),void 0===r&&(r=n);var s,o=new Map;function a(e,t){var i=o.get(t);i?i.push.apply(i,e):o.set(t,e)}if(r(t))s=null,a([i],t);else{var l=i?i+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)s=Array.prototype.map.call(t,function(e,t){return a([""+l+t],e),null});else if(Array.isArray(t))s=t.map(function(t,i){var n=e(t,""+l+i,r);return n.files.forEach(a),n.clone});else if(t&&t.constructor===Object)for(var u in s={},t){var c=e(t[u],""+l+u,r);c.files.forEach(a),s[u]=c.clone}else s=t}return{clone:s,files:o}}},23210:function(e,t,i){"use strict";var n=i(19351);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof n}},439:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},63463:function(e,t,i){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}i.d(t,{Z:function(){return n}})},7054:function(e,t,i){"use strict";i.d(t,{g6:function(){return eA},Ps:function(){return eb}});let n={parse:JSON.parse,stringify:JSON.stringify};var r,s,o,a,l,u,c,h,p=i(23210),d=i(72296),f=i(439);let y=e=>p(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe,E=(e,t,i,r=n)=>{let{clone:s,files:o}=d({query:e,variables:t,operationName:i},"",y);if(0===o.size){if(!Array.isArray(e))return r.stringify(s);if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");let i=e.reduce((e,i,n)=>(e.push({query:i,variables:t?t[n]:void 0}),e),[]);return r.stringify(i)}let a="undefined"==typeof FormData?f:FormData,l=new a;l.append("operations",r.stringify(s));let u={},c=0;return o.forEach(e=>{u[++c]=e}),l.append("map",r.stringify(u)),c=0,o.forEach((e,t)=>{l.append(`${++c}`,t)}),l},m=e=>e.toUpperCase(),T=e=>{let t={};return e.forEach((e,i)=>{t[i]=e}),t},v=(e,t,i)=>e.document?e:{document:e,variables:t,requestHeaders:i,signal:void 0},N=(e,t,i)=>e.query?e:{query:e,variables:t,requestHeaders:i,signal:void 0},I=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},A=/\r\n|[\n\r]/g;function O(e,t){let i=0,n=1;for(let r of e.body.matchAll(A)){if("number"==typeof r.index||function(e,t){let i=Boolean(e);if(!i)throw Error(null!=t?t:"Unexpected invariant triggered.")}(!1),r.index>=t)break;i=r.index+r[0].length,n+=1}return{line:n,column:t+1-i}}function _(e,t){let i=e.locationOffset.column-1,n="".padStart(i)+e.body,r=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?i:0,l=t.column+a,u=`${e.name}:${o}:${l}
`,c=n.split(/\r\n|[\n\r]/g),h=c[r];if(h.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return u+x([[`${o} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+x([[`${o-1} |`,c[r-1]],[`${o} |`,h],["|","^".padStart(l)],[`${o+1} |`,c[r+1]]])}function x(e){let t=e.filter(([e,t])=>void 0!==t),i=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(i)+(t?" "+t:"")).join("\n")}class b extends Error{constructor(e,...t){var i,n,r,s;let{nodes:o,source:a,positions:l,path:u,originalError:c,extensions:h}=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=D(Array.isArray(o)?o:o?[o]:void 0);let p=D(null===(i=this.nodes)||void 0===i?void 0:i.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==p?void 0:null===(n=p[0])||void 0===n?void 0:n.source,this.positions=null!=l?l:null==p?void 0:p.map(e=>e.start),this.locations=l&&a?l.map(e=>O(a,e)):null==p?void 0:p.map(e=>O(e.source,e.start));let d="object"==typeof(s=null==c?void 0:c.extensions)&&null!==s?null==c?void 0:c.extensions:void 0;this.extensions=null!==(r=null!=h?h:d)&&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,b):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 i of this.nodes)if(i.loc){var t;e+="\n\n"+_((t=i.loc).source,O(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+_(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 D(e){return void 0===e||0===e.length?void 0:e}function g(e,t,i){return new b(`Syntax Error: ${i}`,{source:e,positions:[t]})}class S{constructor(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class C{constructor(e,t,i,n,r,s){this.kind=e,this.start=t,this.end=i,this.line=n,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 k={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},R=new Set(Object.keys(k));function w(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&R.has(t)}function L(e){return 9===e||32===e}function F(e){return e>=48&&e<=57}function P(e){return e>=97&&e<=122||e>=65&&e<=90}function B(e){return P(e)||95===e}(r=l||(l={})).QUERY="query",r.MUTATION="mutation",r.SUBSCRIPTION="subscription",(s=u||(u={})).QUERY="QUERY",s.MUTATION="MUTATION",s.SUBSCRIPTION="SUBSCRIPTION",s.FIELD="FIELD",s.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",s.FRAGMENT_SPREAD="FRAGMENT_SPREAD",s.INLINE_FRAGMENT="INLINE_FRAGMENT",s.VARIABLE_DEFINITION="VARIABLE_DEFINITION",s.SCHEMA="SCHEMA",s.SCALAR="SCALAR",s.OBJECT="OBJECT",s.FIELD_DEFINITION="FIELD_DEFINITION",s.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",s.INTERFACE="INTERFACE",s.UNION="UNION",s.ENUM="ENUM",s.ENUM_VALUE="ENUM_VALUE",s.INPUT_OBJECT="INPUT_OBJECT",s.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(o=c||(c={})).NAME="Name",o.DOCUMENT="Document",o.OPERATION_DEFINITION="OperationDefinition",o.VARIABLE_DEFINITION="VariableDefinition",o.SELECTION_SET="SelectionSet",o.FIELD="Field",o.ARGUMENT="Argument",o.FRAGMENT_SPREAD="FragmentSpread",o.INLINE_FRAGMENT="InlineFragment",o.FRAGMENT_DEFINITION="FragmentDefinition",o.VARIABLE="Variable",o.INT="IntValue",o.FLOAT="FloatValue",o.STRING="StringValue",o.BOOLEAN="BooleanValue",o.NULL="NullValue",o.ENUM="EnumValue",o.LIST="ListValue",o.OBJECT="ObjectValue",o.OBJECT_FIELD="ObjectField",o.DIRECTIVE="Directive",o.NAMED_TYPE="NamedType",o.LIST_TYPE="ListType",o.NON_NULL_TYPE="NonNullType",o.SCHEMA_DEFINITION="SchemaDefinition",o.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",o.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",o.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",o.FIELD_DEFINITION="FieldDefinition",o.INPUT_VALUE_DEFINITION="InputValueDefinition",o.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",o.UNION_TYPE_DEFINITION="UnionTypeDefinition",o.ENUM_TYPE_DEFINITION="EnumTypeDefinition",o.ENUM_VALUE_DEFINITION="EnumValueDefinition",o.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",o.DIRECTIVE_DEFINITION="DirectiveDefinition",o.SCHEMA_EXTENSION="SchemaExtension",o.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",o.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",o.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",o.UNION_TYPE_EXTENSION="UnionTypeExtension",o.ENUM_TYPE_EXTENSION="EnumTypeExtension",o.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",(a=h||(h={})).SOF="<SOF>",a.EOF="<EOF>",a.BANG="!",a.DOLLAR="$",a.AMP="&",a.PAREN_L="(",a.PAREN_R=")",a.SPREAD="...",a.COLON=":",a.EQUALS="=",a.AT="@",a.BRACKET_L="[",a.BRACKET_R="]",a.BRACE_L="{",a.PIPE="|",a.BRACE_R="}",a.NAME="Name",a.INT="Int",a.FLOAT="Float",a.STRING="String",a.BLOCK_STRING="BlockString",a.COMMENT="Comment";class U{constructor(e){let t=new C(h.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(){this.lastToken=this.token;let e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==h.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let i=e.source.body,n=i.length,r=t;for(;r<n;){let t=i.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===i.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return function(e,t){let i=e.source.body,n=i.length,r=t+1;for(;r<n;){let e=i.charCodeAt(r);if(10===e||13===e)break;if(M(e))++r;else if(j(i,r))r+=2;else break}return K(e,h.COMMENT,t,r,i.slice(t+1,r))}(e,r);case 33:return K(e,h.BANG,r,r+1);case 36:return K(e,h.DOLLAR,r,r+1);case 38:return K(e,h.AMP,r,r+1);case 40:return K(e,h.PAREN_L,r,r+1);case 41:return K(e,h.PAREN_R,r,r+1);case 46:if(46===i.charCodeAt(r+1)&&46===i.charCodeAt(r+2))return K(e,h.SPREAD,r,r+3);break;case 58:return K(e,h.COLON,r,r+1);case 61:return K(e,h.EQUALS,r,r+1);case 64:return K(e,h.AT,r,r+1);case 91:return K(e,h.BRACKET_L,r,r+1);case 93:return K(e,h.BRACKET_R,r,r+1);case 123:return K(e,h.BRACE_L,r,r+1);case 124:return K(e,h.PIPE,r,r+1);case 125:return K(e,h.BRACE_R,r,r+1);case 34:if(34===i.charCodeAt(r+1)&&34===i.charCodeAt(r+2))return function(e,t){let i=e.source.body,n=i.length,r=e.lineStart,s=t+3,o=s,a="",l=[];for(;s<n;){let n=i.charCodeAt(s);if(34===n&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)){a+=i.slice(o,s),l.push(a);let n=K(e,h.BLOCK_STRING,t,s+3,(function(e){var t,i;let n=Number.MAX_SAFE_INTEGER,r=null,s=-1;for(let t=0;t<e.length;++t){let o=e[t],a=function(e){let t=0;for(;t<e.length&&L(e.charCodeAt(t));)++t;return t}(o);a!==o.length&&(r=null!==(i=r)&&void 0!==i?i:t,s=t,0!==t&&a<n&&(n=a))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,s+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=r,n}if(92===n&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)&&34===i.charCodeAt(s+3)){a+=i.slice(o,s),o=s+1,s+=4;continue}if(10===n||13===n){a+=i.slice(o,s),l.push(a),13===n&&10===i.charCodeAt(s+1)?s+=2:++s,a="",o=s,r=s;continue}if(M(n))++s;else if(j(i,s))s+=2;else throw g(e.source,s,`Invalid character within String: ${$(e,s)}.`)}throw g(e.source,s,"Unterminated string.")}(e,r);return function(e,t){let i=e.source.body,n=i.length,r=t+1,s=r,o="";for(;r<n;){let n=i.charCodeAt(r);if(34===n)return o+=i.slice(s,r),K(e,h.STRING,t,r+1,o);if(92===n){o+=i.slice(s,r);let t=117===i.charCodeAt(r+1)?123===i.charCodeAt(r+2)?function(e,t){let i=e.source.body,n=0,r=3;for(;r<12;){let e=i.charCodeAt(t+r++);if(125===e){if(r<5||!M(n))break;return{value:String.fromCodePoint(n),size:r}}if((n=n<<4|H(e))<0)break}throw g(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+r)}".`)}(e,r):function(e,t){let i=e.source.body,n=Y(i,t+2);if(M(n))return{value:String.fromCodePoint(n),size:6};if(V(n)&&92===i.charCodeAt(t+6)&&117===i.charCodeAt(t+7)){let e=Y(i,t+8);if(q(e))return{value:String.fromCodePoint(n,e),size:12}}throw g(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+6)}".`)}(e,r):function(e,t){let i=e.source.body,n=i.charCodeAt(t+1);switch(n){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw g(e.source,t,`Invalid character escape sequence: "${i.slice(t,t+2)}".`)}(e,r);o+=t.value,r+=t.size,s=r;continue}if(10===n||13===n)break;if(M(n))++r;else if(j(i,r))r+=2;else throw g(e.source,r,`Invalid character within String: ${$(e,r)}.`)}throw g(e.source,r,"Unterminated string.")}(e,r)}if(F(t)||45===t)return function(e,t,i){let n=e.source.body,r=t,s=i,o=!1;if(45===s&&(s=n.charCodeAt(++r)),48===s){if(F(s=n.charCodeAt(++r)))throw g(e.source,r,`Invalid number, unexpected digit after 0: ${$(e,r)}.`)}else r=G(e,r,s),s=n.charCodeAt(r);if(46===s&&(o=!0,s=n.charCodeAt(++r),r=G(e,r,s),s=n.charCodeAt(r)),(69===s||101===s)&&(o=!0,(43===(s=n.charCodeAt(++r))||45===s)&&(s=n.charCodeAt(++r)),r=G(e,r,s),s=n.charCodeAt(r)),46===s||B(s))throw g(e.source,r,`Invalid number, expected digit but got: ${$(e,r)}.`);return K(e,o?h.FLOAT:h.INT,t,r,n.slice(t,r))}(e,r,t);if(B(t))return function(e,t){let i=e.source.body,n=i.length,r=t+1;for(;r<n;){let e=i.charCodeAt(r);if(P(e)||F(e)||95===e)++r;else break}return K(e,h.NAME,t,r,i.slice(t,r))}(e,r);throw g(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":M(t)||j(i,r)?`Unexpected character: ${$(e,r)}.`:`Invalid character: ${$(e,r)}.`)}return K(e,h.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===h.COMMENT);return e}}function M(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function j(e,t){return V(e.charCodeAt(t))&&q(e.charCodeAt(t+1))}function V(e){return e>=55296&&e<=56319}function q(e){return e>=56320&&e<=57343}function $(e,t){let i=e.source.body.codePointAt(t);if(void 0===i)return h.EOF;if(i>=32&&i<=126){let e=String.fromCodePoint(i);return'"'===e?"'\"'":`"${e}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function K(e,t,i,n,r){let s=e.line,o=1+i-e.lineStart;return new C(t,i,n,s,o,r)}function G(e,t,i){if(!F(i))throw g(e.source,t,`Invalid number, expected digit but got: ${$(e,t)}.`);let n=e.source.body,r=t+1;for(;F(n.charCodeAt(r));)++r;return r}function Y(e,t){return H(e.charCodeAt(t))<<12|H(e.charCodeAt(t+1))<<8|H(e.charCodeAt(t+2))<<4|H(e.charCodeAt(t+3))}function H(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function J(e,t){let i=Boolean(e);if(!i)throw Error(t)}function z(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 i=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:z(t,i)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";let i=Math.min(10,e.length),n=e.length-i,r=[];for(let n=0;n<i;++n)r.push(z(e[n],t));return 1===n?r.push("... 1 more item"):n>1&&r.push(`... ${n} more items`),"["+r.join(", ")+"]"}(e,i);return function(e,t){let i=Object.entries(e);if(0===i.length)return"{}";if(t.length>2)return"["+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)+"]";let n=i.map(([e,i])=>e+": "+z(i,t));return"{ "+n.join(", ")+" }"}(e,i)}(e,t);default:return String(e)}}let X=globalThis.process&&!0,Q=X?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var i;let n=t.prototype[Symbol.toStringTag],r=Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(i=e.constructor)||void 0===i?void 0:i.name;if(n===r){let t=z(e,[]);throw Error(`Cannot use ${n} "${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 W{constructor(e,t="GraphQL request",i={line:1,column:1}){"string"==typeof e||J(!1,`Body must be a string. Received: ${z(e,[])}.`),this.body=e,this.name=t,this.locationOffset=i,this.locationOffset.line>0||J(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||J(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Z{constructor(e,t={}){let i=Q(e,W)?e:new W(e);this._lexer=new U(i),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(h.NAME);return this.node(e,{kind:c.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(h.SOF,this.parseDefinition,h.EOF)})}parseDefinition(){if(this.peek(h.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===h.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw g(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(h.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:l.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let i=this.parseOperationType();return this.peek(h.NAME)&&(e=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:i,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(h.NAME);switch(e.value){case"query":return l.QUERY;case"mutation":return l.MUTATION;case"subscription":return l.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(h.PAREN_L,this.parseVariableDefinition,h.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(h.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(h.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(h.DOLLAR),this.node(e,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(h.BRACE_L,this.parseSelection,h.BRACE_R)})}parseSelection(){return this.peek(h.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let i=this._lexer.token,n=this.parseName();return this.expectOptionalToken(h.COLON)?(e=n,t=this.parseName()):t=n,this.node(i,{kind:c.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(h.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(h.PAREN_L,t,h.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,i=this.parseName();return this.expectToken(h.COLON),this.node(t,{kind:c.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(h.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(h.NAME)?this.node(e,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:c.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case h.BRACKET_L:return this.parseList(e);case h.BRACE_L:return this.parseObject(e);case h.INT:return this.advanceLexer(),this.node(t,{kind:c.INT,value:t.value});case h.FLOAT:return this.advanceLexer(),this.node(t,{kind:c.FLOAT,value:t.value});case h.STRING:case h.BLOCK_STRING:return this.parseStringLiteral();case h.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:c.BOOLEAN,value:!0});case"false":return this.node(t,{kind:c.BOOLEAN,value:!1});case"null":return this.node(t,{kind:c.NULL});default:return this.node(t,{kind:c.ENUM,value:t.value})}case h.DOLLAR:if(e){if(this.expectToken(h.DOLLAR),this._lexer.token.kind===h.NAME){let e=this._lexer.token.value;throw g(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:c.STRING,value:e.value,block:e.kind===h.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(h.BRACKET_L,t,h.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(h.BRACE_L,t,h.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,i=this.parseName();return this.expectToken(h.COLON),this.node(t,{kind:c.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(h.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(h.AT),this.node(t,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(h.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(h.BRACKET_R),e=this.node(t,{kind:c.LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(h.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(h.STRING)||this.peek(h.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),n=this.many(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);return this.node(e,{kind:c.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(h.COLON);let i=this.parseNamedType();return this.node(e,{kind:c.OPERATION_TYPE_DEFINITION,operation:t,type:i})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:c.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:c.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(h.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseFieldDefinition,h.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),n=this.parseArgumentDefs();this.expectToken(h.COLON);let r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:c.FIELD_DEFINITION,description:t,name:i,arguments:n,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(h.PAREN_L,this.parseInputValueDef,h.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,i=this.parseDescription(),n=this.parseName();this.expectToken(h.COLON);let r=this.parseTypeReference();this.expectOptionalToken(h.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:i,name:n,type:r,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:c.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:c.UNION_TYPE_DEFINITION,description:t,name:i,directives:n,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(h.EQUALS)?this.delimitedMany(h.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:c.ENUM_TYPE_DEFINITION,description:t,name:i,directives:n,values:r})}parseEnumValuesDefinition(){return this.optionalMany(h.BRACE_L,this.parseEnumValueDefinition,h.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:c.ENUM_VALUE_DEFINITION,description:t,name:i,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw g(this._lexer.source,this._lexer.token.start,`${ee(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:n,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseInputValueDef,h.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===h.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.optionalMany(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:c.SCHEMA_EXTENSION,directives:t,operationTypes:i})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(e,{kind:c.SCALAR_TYPE_EXTENSION,name:t,directives:i})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:c.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:c.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:c.UNION_TYPE_EXTENSION,name:t,directives:i,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:c.ENUM_TYPE_EXTENSION,name:t,directives:i,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(h.AT);let i=this.parseName(),n=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:c.DIRECTIVE_DEFINITION,description:t,name:i,arguments:n,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(h.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(u,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new S(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw g(this._lexer.source,t.start,`Expected ${et(e)}, found ${ee(t)}.`)}expectOptionalToken(e){let t=this._lexer.token;return t.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===h.NAME&&t.value===e)this.advanceLexer();else throw g(this._lexer.source,t.start,`Expected "${e}", found ${ee(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===h.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return g(this._lexer.source,t.start,`Unexpected ${ee(t)}.`)}any(e,t,i){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(i);)n.push(t.call(this));return n}optionalMany(e,t,i){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(i));return e}return[]}many(e,t,i){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(i));return n}delimitedMany(e,t){this.expectOptionalToken(e);let i=[];do i.push(t.call(this));while(this.expectOptionalToken(e));return i}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==h.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw g(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function ee(e){let t=e.value;return et(e.kind)+(null!=t?` "${t}"`:"")}function et(e){return e===h.BANG||e===h.DOLLAR||e===h.AMP||e===h.PAREN_L||e===h.PAREN_R||e===h.SPREAD||e===h.COLON||e===h.EQUALS||e===h.AT||e===h.BRACKET_L||e===h.BRACKET_R||e===h.BRACE_L||e===h.PIPE||e===h.BRACE_R?`"${e}"`:e}let ei=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function en(e){return er[e.charCodeAt(0)]}let er=["\\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"],es=Object.freeze({}),eo={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ea(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eu("(",ea(e.variableDefinitions,", "),")"),i=ea([e.operation,ea([e.name,t]),ea(e.directives," ")]," ");return("query"===i?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:i,directives:n})=>e+": "+t+eu(" = ",i)+eu(" ",ea(n," "))},SelectionSet:{leave:({selections:e})=>el(e)},Field:{leave({alias:e,name:t,arguments:i,directives:n,selectionSet:r}){let s=eu("",e,": ")+t,o=s+eu("(",ea(i,", "),")");return o.length>80&&(o=s+eu("(\n",ec(ea(i,"\n")),"\n)")),ea([o,ea(n," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eu(" ",ea(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:i})=>ea(["...",eu("on ",e),ea(t," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:i,directives:n,selectionSet:r})=>`fragment ${e}${eu("(",ea(i,", "),")")} on ${t} ${eu("",ea(n," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){let i=e.replace(/"""/g,'\\"""'),n=i.split(/\r\n|[\n\r]/g),r=1===n.length,s=n.length>1&&n.slice(1).every(e=>0===e.length||L(e.charCodeAt(0))),o=i.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=a||l,c=!(null!=t&&t.minimize)&&(!r||e.length>70||u||s||o),h="",p=r&&L(e.charCodeAt(0));return(c&&!p||s)&&(h+="\n"),h+=i,(c||u)&&(h+="\n"),'"""'+h+'"""'}(e):`"${e.replace(ei,en)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ea(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ea(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eu("(",ea(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:i})=>eu("",e,"\n")+ea(["schema",ea(t," "),el(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:i})=>eu("",e,"\n")+ea(["scalar",t,ea(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:n,fields:r})=>eu("",e,"\n")+ea(["type",t,eu("implements ",ea(i," & ")),ea(n," "),el(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:i,type:n,directives:r})=>eu("",e,"\n")+t+(eh(i)?eu("(\n",ec(ea(i,"\n")),"\n)"):eu("(",ea(i,", "),")"))+": "+n+eu(" ",ea(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:i,defaultValue:n,directives:r})=>eu("",e,"\n")+ea([t+": "+i,eu("= ",n),ea(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:n,fields:r})=>eu("",e,"\n")+ea(["interface",t,eu("implements ",ea(i," & ")),ea(n," "),el(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:i,types:n})=>eu("",e,"\n")+ea(["union",t,ea(i," "),eu("= ",ea(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:i,values:n})=>eu("",e,"\n")+ea(["enum",t,ea(i," "),el(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:i})=>eu("",e,"\n")+ea([t,ea(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:i,fields:n})=>eu("",e,"\n")+ea(["input",t,ea(i," "),el(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:i,repeatable:n,locations:r})=>eu("",e,"\n")+"directive @"+t+(eh(i)?eu("(\n",ec(ea(i,"\n")),"\n)"):eu("(",ea(i,", "),")"))+(n?" repeatable":"")+" on "+ea(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ea(["extend schema",ea(e," "),el(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ea(["extend scalar",e,ea(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:n})=>ea(["extend type",e,eu("implements ",ea(t," & ")),ea(i," "),el(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:n})=>ea(["extend interface",e,eu("implements ",ea(t," & ")),ea(i," "),el(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:i})=>ea(["extend union",e,ea(t," "),eu("= ",ea(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:i})=>ea(["extend enum",e,ea(t," "),el(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:i})=>ea(["extend input",e,ea(t," "),el(i)]," ")}};function ea(e,t=""){var i;return null!==(i=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==i?i:""}function el(e){return eu("{\n",ec(ea(e,"\n")),"\n}")}function eu(e,t,i=""){return null!=t&&""!==t?e+t+i:""}function ec(e){return eu("  ",e.replace(/\n/g,"\n  "))}function eh(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}let ep=e=>{let t;let i=e.definitions.filter(e=>"OperationDefinition"===e.kind);return 1===i.length&&(t=i[0]?.name?.value),t},ed=e=>{if("string"==typeof e){let t;try{let i=function(e,t){let i=new Z(e,void 0);return i.parseDocument()}(e);t=ep(i)}catch(e){}return{query:e,operationName:t}}let t=ep(e);return{query:function(e,t,i=k){let n,r,s;let o=new Map;for(let e of Object.values(c))o.set(e,function(e,t){let i=e[t];return"object"==typeof i?i:"function"==typeof i?{enter:i,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let a=Array.isArray(e),l=[e],u=-1,h=[],p=e,d=[],f=[];do{var y,E,m;let e;u++;let c=u===l.length,T=c&&0!==h.length;if(c){if(r=0===f.length?void 0:d[d.length-1],p=s,s=f.pop(),T){if(a){p=p.slice();let e=0;for(let[t,i]of h){let n=t-e;null===i?(p.splice(n,1),e++):p[n]=i}}else for(let[e,t]of(p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p)),h))p[e]=t}u=n.index,l=n.keys,h=n.edits,a=n.inArray,n=n.prev}else if(s){if(null==(p=s[r=a?u:l[u]]))continue;d.push(r)}if(!Array.isArray(p)){w(p)||J(!1,`Invalid AST Node: ${z(p,[])}.`);let i=c?null===(y=o.get(p.kind))||void 0===y?void 0:y.leave:null===(E=o.get(p.kind))||void 0===E?void 0:E.enter;if((e=null==i?void 0:i.call(t,p,r,s,d,f))===es)break;if(!1===e){if(!c){d.pop();continue}}else if(void 0!==e&&(h.push([r,e]),!c)){if(w(e))p=e;else{d.pop();continue}}}void 0===e&&T&&h.push([r,p]),c?d.pop():(n={inArray:a,index:u,keys:l,edits:h,prev:n},l=(a=Array.isArray(p))?p:null!==(m=i[p.kind])&&void 0!==m?m:[],u=-1,h=[],s&&f.push(s),s=p)}while(void 0!==n);return 0!==h.length?h[h.length-1][1]:e}(e,eo),operationName:t}};class ef extends Error{constructor(e,t){let i=`${ef.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`;super(i),Object.setPrototypeOf(this,ef.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ef)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}var ey=i(44391),eE=i.t(ey,2);class em{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(e,t,i){this._type=e,this._payload=t,this._id=i}get text(){let e={type:this.type};return null!=this.id&&void 0!=this.id&&(e.id=this.id),null!=this.payload&&void 0!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}static parse(e,t){let{type:i,payload:n,id:r}=JSON.parse(e);return new em(i,t(n),r)}}let eT=e=>{let t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||eE&&ey.Headers&&e instanceof ey.Headers?t=T(e):Array.isArray(e)?e.forEach(([e,i])=>{e&&void 0!==i&&(t[e]=i)}):t=e),t},ev=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),eN=e=>{if(!Array.isArray(e.query)){let t=[`query=${encodeURIComponent(ev(e.query))}`];return e.variables&&t.push(`variables=${encodeURIComponent(e.jsonSerializer.stringify(e.variables))}`),e.operationName&&t.push(`operationName=${encodeURIComponent(e.operationName)}`),t.join("&")}if(void 0!==e.variables&&!Array.isArray(e.variables))throw Error("Cannot create query with given variable type, array expected");let t=e.query.reduce((t,i,n)=>(t.push({query:ev(i),variables:e.variables?e.jsonSerializer.stringify(e.variables[n]):void 0}),t),[]);return`query=${encodeURIComponent(e.jsonSerializer.stringify(t))}`},eI=e=>async t=>{let i;let{url:r,query:s,variables:o,operationName:a,fetch:l,fetchOptions:u,middleware:c}=t,h={...t.headers},p="";"POST"===e?"string"==typeof(i=E(s,o,a,u.jsonSerializer))&&(h["Content-Type"]="application/json"):p=eN({query:s,variables:o,operationName:a,jsonSerializer:u.jsonSerializer??n});let d={method:e,headers:h,body:i,...u},f=r,y=d;if(c){let e=await Promise.resolve(c({...d,url:r,operationName:a,variables:o})),{url:t,...i}=e;f=t,y=i}return p&&(f=`${f}?${p}`),await l(f,y)};class eA{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{let[t,i,n]=e,r=N(t,i,n),{headers:s,fetch:o=ey,method:a="POST",requestMiddleware:l,responseMiddleware:u,...c}=this.requestConfig,{url:h}=this;void 0!==r.signal&&(c.signal=r.signal);let{operationName:p}=ed(r.query);return eO({url:h,query:r.query,variables:r.variables,headers:{...eT(ex(s)),...eT(r.requestHeaders)},operationName:p,fetch:o,method:a,fetchOptions:c,middleware:l}).then(e=>(u&&u(e),e)).catch(e=>{throw u&&u(e),e})}}async request(e,...t){let[i,n]=t,r=v(e,i,n),{headers:s,fetch:o=ey,method:a="POST",requestMiddleware:l,responseMiddleware:u,...c}=this.requestConfig,{url:h}=this;void 0!==r.signal&&(c.signal=r.signal);let{query:p,operationName:d}=ed(r.document);return eO({url:h,query:p,variables:r.variables,headers:{...eT(ex(s)),...eT(r.requestHeaders)},operationName:d,fetch:o,method:a,fetchOptions:c,middleware:l}).then(e=>(u&&u(e),e.data)).catch(e=>{throw u&&u(e),e})}batchRequests(e,t){let i=I(e,t),{headers:n,...r}=this.requestConfig;void 0!==i.signal&&(r.signal=i.signal);let s=i.documents.map(({document:e})=>ed(e).query),o=i.documents.map(({variables:e})=>e);return eO({url:this.url,query:s,variables:o,headers:{...eT(ex(n)),...eT(i.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??ey,method:this.requestConfig.method||"POST",fetchOptions:r,middleware:this.requestConfig.requestMiddleware}).then(e=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e.data)).catch(e=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e})}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){let{headers:i}=this.requestConfig;return i?i[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}let eO=async e=>{let{query:t,variables:i,fetchOptions:r}=e,s=eI(m(e.method??"post")),o=Array.isArray(e.query),a=await s(e),l=await e_(a,r.jsonSerializer??n),u=Array.isArray(l)?!l.some(({data:e})=>!e):Boolean(l.data),c=Array.isArray(l)||!l.errors||Array.isArray(l.errors)&&!l.errors.length||"all"===r.errorPolicy||"ignore"===r.errorPolicy;if(a.ok&&c&&u){let{errors:e,...t}=(Array.isArray(l),l),i="ignore"===r.errorPolicy?t:l;return{...o?{data:i}:i,headers:a.headers,status:a.status}}throw new ef({..."string"==typeof l?{error:l}:l,status:a.status,headers:a.headers},{query:t,variables:i})},e_=async(e,t)=>{let i;return(e.headers.forEach((e,t)=>{"content-type"===t.toLowerCase()&&(i=e)}),i&&(i.toLowerCase().startsWith("application/json")||i.toLowerCase().startsWith("application/graphql+json")||i.toLowerCase().startsWith("application/graphql-response+json")))?t.parse(await e.text()):e.text()},ex=e=>"function"==typeof e?e():e,eb=(e,...t)=>e.reduce((e,i,n)=>`${e}${i}${n in t?t[n]:""}`,"")}}]);