PageSourceSearch

https://cdn.vialibri.net/static/assets/lib-C2GB3B5V.js

js vialibri.net collected 2026-10-01 11:48:45 UTC 43,816 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3d6d5f42-a5c3-40df-a15d-1607869b29fb",e._sentryDebugIdIdentifier="sentry-dbid-3d6d5f42-a5c3-40df-a15d-1607869b29fb")}catch(e){}}();import{n as e}from"./rolldown-runtime-CynJssAt.js";function t(e,t){if(!Boolean(e))throw new Error(t)}var n=e((()=>{}));var i=e((()=>{}));function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var s,o=e((()=>{}));function a(e,t){let n=0,i=1;for(const o of e.body.matchAll(s)){if("number"==typeof o.index||r(!1),o.index>=t)break;n=o.index+o[0].length,i+=1}return{line:i,column:t+1-n}}var c=e((()=>{o(),s=/\r\n|[\n\r]/g}));function l(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?n:0,c=t.column+a,l=`${e.name}:${o}:${c}\n`,p=i.split(/\r\n|[\n\r]/g),h=p[r];if(h.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let i=0;i<h.length;i+=80)n.push(h.slice(i,i+80));return l+u([[`${o} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return l+u([[o-1+" |",p[r-1]],[`${o} |`,h],["|","^".padStart(c)],[`${o+1} |`,p[r+1]]])}function u(e){const 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")}var p,h=e((()=>{c()}));function d(e){return void 0===e||0===e.length?void 0:e}var f=e((()=>{i(),c(),h(),p=class e extends Error{constructor(t,...n){var i,r,s;const{nodes:o,source:c,positions:l,path:u,originalError:p,extensions:h}=function(e){const 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}(n);super(t),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=p?p:void 0,this.nodes=d(Array.isArray(o)?o:o?[o]:void 0);const f=d(null===(i=this.nodes)||void 0===i?void 0:i.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=c?c:null==f||null===(r=f[0])||void 0===r?void 0:r.source,this.positions=null!=l?l:null==f?void 0:f.map((e=>e.start)),this.locations=l&&c?l.map((e=>a(c,e))):null==f?void 0:f.map((e=>a(e.source,e.start)));const E="object"==typeof(m=null==p?void 0:p.extensions)&&null!==m?null==p?void 0:p.extensions:void 0;var m;this.extensions=null!==(s=null!=h?h:E)&&void 0!==s?s: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!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+l((t=n.loc).source,a(t.source,t.start)));else if(this.source&&this.locations)for(const n of this.locations)e+="\n\n"+l(this.source,n);var t;return e}toJSON(){const 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 E(e,t,n){return new p(`Syntax Error: ${n}`,{source:e,positions:[t]})}var m,v,T,N,I,y=e((()=>{f()}));function D(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&N.has(t)}var x,A,O=e((()=>{m=class{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}}},v=class{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}}},T={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:[],Float
1Value:[],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"]},N=new Set(Object.keys(T)),function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(I||(I={}))})),_=e((()=>{!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"}(x||(x={}))})),k=e((()=>{!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"}(A||(A={}))}));function g(e){return 9===e||32===e}function S(e){return e>=48&&e<=57}function C(e){return e>=97&&e<=122||e>=65&&e<=90}function b(e){return C(e)||95===e}var L=e((()=>{}));function R(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let o=0;o<e.length;++o){var s;const t=e[o],a=F(t);a!==t.length&&(i=null!==(s=i)&&void 0!==s?s:o,r=o,0!==o&&a<n&&(n=a))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=i)&&void 0!==t?t:0,r+1)}function F(e){let t=0;for(;t<e.length&&g(e.charCodeAt(t));)++t;return t}var w,P,V=e((()=>{L()})),M=e((()=>{!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}
1",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(w||(w={}))}));function U(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function B(e,t){return j(e.charCodeAt(t))&&K(e.charCodeAt(t+1))}function j(e){return e>=55296&&e<=56319}function K(e){return e>=56320&&e<=57343}function $(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return w.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function G(e,t,n,i,r){const s=e.line;return new v(t,n,i,s,1+n-e.lineStart,r)}function Y(e,t){const n=e.source.body,i=n.length;let r=t;for(;r<i;){const t=n.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===n.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return J(e,r);case 33:return G(e,w.BANG,r,r+1);case 36:return G(e,w.DOLLAR,r,r+1);case 38:return G(e,w.AMP,r,r+1);case 40:return G(e,w.PAREN_L,r,r+1);case 41:return G(e,w.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return G(e,w.SPREAD,r,r+3);break;case 58:return G(e,w.COLON,r,r+1);case 61:return G(e,w.EQUALS,r,r+1);case 64:return G(e,w.AT,r,r+1);case 91:return G(e,w.BRACKET_L,r,r+1);case 93:return G(e,w.BRACKET_R,r,r+1);case 123:return G(e,w.BRACE_L,r,r+1);case 124:return G(e,w.PIPE,r,r+1);case 125:return G(e,w.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?te(e,r):X(e,r)}if(S(t)||45===t)return q(e,r,t);if(b(t))return ne(e,r);throw E(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":U(t)||B(n,r)?`Unexpected character: ${$(e,r)}.`:`Invalid character: ${$(e,r)}.`)}return G(e,w.EOF,i,i)}function J(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const e=n.charCodeAt(r);if(10===e||13===e)break;if(U(e))++r;else{if(!B(n,r))break;r+=2}}return G(e,w.COMMENT,t,r,n.slice(t+1,r))}function q(e,t,n){const i=e.source.body;let r=t,s=n,o=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if(s=i.charCodeAt(++r),S(s))throw E(e.source,r,`Invalid number, unexpected digit after 0: ${$(e,r)}.`)}else r=Q(e,r,s),s=i.charCodeAt(r);if(46===s&&(o=!0,s=i.charCodeAt(++r),r=Q(e,r,s),s=i.charCodeAt(r)),69!==s&&101!==s||(o=!0,s=i.charCodeAt(++r),43!==s&&45!==s||(s=i.charCodeAt(++r)),r=Q(e,r,s),s=i.charCodeAt(r)),46===s||b(s))throw E(e.source,r,`Invalid number, expected digit but got: ${$(e,r)}.`);return G(e,o?w.FLOAT:w.INT,t,r,i.slice(t,r))}function Q(e,t,n){if(!S(n))throw E(e.source,t,`Invalid number, expected digit but got: ${$(e,t)}.`);const i=e.source.body;let r=t+1;for(;S(i.charCodeAt(r));)++r;return r}function X(e,t){const n=e.source.body,i=n.length;let r=t+1,s=r,o="";for(;r<i;){const i=n.charCodeAt(r);if(34===i)return o+=n.slice(s,r),G(e,w.STRING,t,r+1,o);if(92!==i){if(10===i||13===i)break;if(U(i))++r;else{if(!B(n,r))throw E(e.source,r,`Invalid character within String: ${$(e,r)}.`);r+=2}}else{o+=n.slice(s,r);const t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?z(e,r):W(e,r):ee(e,r);o+=t.value,r+=t.size,s=r}}throw E(e.source,r,"Unterminated string.")}function z(e,t){const n=e.source.body;let i=0,r=3;for(;r<12;){const e=n.charCodeAt(t+r++);if(125===e){if(r<5||!U(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|Z(e),i<0)break}throw E(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function W(e,t){const n=e.source.body,i=H(n,t+2);if(U(i))return{value:String.fromCodePoint(i),size:6};if(j(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=H(n,t+8);if(K(e))return{value:String.fromCodePoint(i,e),size:12}}throw E(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function H(e,t){return Z(e.charCodeAt(t))<<12|Z(e.charCodeAt(t+1))<<8|Z(e.charCodeAt(t+2))<<4|Z(e.charCodeAt(t+3))}function Z(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ee(e,t){const 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:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw E(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function te(e,t){const n=e.source.body,i=n.length;let r=e.lineStart,s=t+3,o=s,a="";const c=[];for(;s<i;){const i=n.charCodeAt(s);if(34===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){a+=n.slice(o,s),c.push(a);const i=G(e,w.BLOCK_STRING,t,s+3,R(c).join("\n"));return e.line+=c.length-1,e.lineStart=r,i}if(92!==i||34!==n.charCodeAt(s+1)||34!==n.charCodeAt(s+2)||34!==n.charCodeAt(s+3))if(10!==i&&13!==i)if(U(i))++s;else{if(!B(n,s))throw E(e.source,s,`Invalid character within String: ${$(e,s)}.`);s+=2}else a+=n.slice(o,s),c.push(a),13===i&&10===n.charCodeAt(s+1)?s+=2:++s,a="",o=s,r=s;else a+=n.slice(o,s),o=s+1,s+=4}throw E(e.source,s,"Unterminated string.")}function ne(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i&&(C(s=n.charCodeAt(r))||S(s)||95===s);)++r;var s;return G(e,w.NAME,t,r,n.slice(t,r))}var ie,re,se=e((()=>{y(),O(),V(),L(),M(),P=class{constructor(e){const t=new v(w.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!==w.EOF)do{if(e.next)e=e.next;else{const t=Y(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===w.COMMENT);return e}}}));function oe(e){return ae(e,[])}function ae(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]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:ae(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>re)return"[Array]";const n=Math.min(ie,e.length),i=e.length-n,r=[];for(let s=0;s<n;++s)r.push(ae(e[s],t));1===i?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`);return"["+r.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>re?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map((([e,n])=>e+": "+ae(n,t))).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var ce,le,ue,pe=e((()=>{ie=10,re=2})),he=e((()=>{pe(),ce=globalThis.process&&!0,le=ce?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;
vendor: 16,384 bytes, line 1
1if("object"==typeof e&&null!==e){var n;const 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)){const t=oe(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}}));var de,fe=e((()=>{n(),pe(),he(),ue=class{constructor(e,n="GraphQL request",i={line:1,column:1}){"string"==typeof e||t(!1,`Body must be a string. Received: ${oe(e)}.`),this.body=e,this.name=n,this.locationOffset=i,this.locationOffset.line>0||t(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||t(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}}));function Ee(e){const t=e.value;return me(e.kind)+(null!=t?` "${t}"`:"")}function me(e){return function(e){return e===w.BANG||e===w.DOLLAR||e===w.AMP||e===w.PAREN_L||e===w.PAREN_R||e===w.SPREAD||e===w.COLON||e===w.EQUALS||e===w.AT||e===w.BRACKET_L||e===w.BRACKET_R||e===w.BRACE_L||e===w.PIPE||e===w.BRACE_R}(e)?`"${e}"`:e}var ve,Te,Ne=e((()=>{y(),O(),_(),k(),se(),fe(),M(),de=class{constructor(e,t={}){const n=function(e){return le(e,ue)}(e)?e:new ue(e);this._lexer=new P(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(w.NAME);return this.node(e,{kind:A.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:A.DOCUMENT,definitions:this.many(w.SOF,this.parseDefinition,w.EOF)})}parseDefinition(){if(this.peek(w.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===w.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 E(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(){const e=this._lexer.token;if(this.peek(w.BRACE_L))return this.node(e,{kind:A.OPERATION_DEFINITION,operation:I.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(w.NAME)&&(n=this.parseName()),this.node(e,{kind:A.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(w.NAME);switch(e.value){case"query":return I.QUERY;case"mutation":return I.MUTATION;case"subscription":return I.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(w.PAREN_L,this.parseVariableDefinition,w.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:A.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(w.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(w.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(w.DOLLAR),this.node(e,{kind:A.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:A.SELECTION_SET,selections:this.many(w.BRACE_L,this.parseSelection,w.BRACE_R)})}parseSelection(){return this.peek(w.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(w.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:A.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(w.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(w.PAREN_L,t,w.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(w.COLON),this.node(t,{kind:A.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(w.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(w.NAME)?this.node(e,{kind:A.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:A.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:A.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:A.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){const t=this._lexer.token;switch(t.kind){case w.BRACKET_L:return this.parseList(e);case w.BRACE_L:return this.parseObject(e);case w.INT:return this.advanceLexer(),this.node(t,{kind:A.INT,value:t.value});case w.FLOAT:return this.advanceLexer(),this.node(t,{kind:A.FLOAT,value:t.value});case w.STRING:case w.BLOCK_STRING:return this.parseStringLiteral();case w.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:A.BOOLEAN,value:!0});case"false":return this.node(t,{kind:A.BOOLEAN,value:!1});case"null":return this.node(t,{kind:A.NULL});default:return this.node(t,{kind:A.ENUM,value:t.value})}case w.DOLLAR:if(e){if(this.expectToken(w.DOLLAR),this._lexer.token.kind===w.NAME){const e=this._lexer.token.value;throw E(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(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:A.STRING,value:e.value,block:e.kind===w.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:A.LIST,values:this.any(w.BRACKET_L,(()=>this.parseValueLiteral(e)),w.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:A.OBJECT,fields:this.any(w.BRACE_L,(()=>this.parseObjectField(e)),w.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(w.COLON),this.node(t,{kind:A.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(w.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(w.AT),this.node(t,{kind:A.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(w.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(w.BRACKET_R),t=this.node(e,{kind:A.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(w.BANG)?this.node(e,{kind:A.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:A.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(w.STRING)||this.peek(w.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(w.BRACE_L,this.parseOperationTypeDefinition,w.BRACE_R);return this.node(e,{kind:A.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(w.COLON);const n=this.parseNamedType();return this.node(e,{kind:A.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:A.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:A.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(w.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseFieldDefinition,w.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(w.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:A.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(w.PAREN_L,this.parseInputValueDef,w.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(w.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(w.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:A.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:A.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:A.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(w.EQUALS)?this.delimitedMany(w.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:A.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(w.BRACE_L,this.parseEnumValueDefinition,w.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:A.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw E(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(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:A.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseInputValueDef,w.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===w.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(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(w.BRACE_L,this.parseOperationTypeDefinition,w.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:A.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:A.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:A.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:A.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:A.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:A.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:A.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(w.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:A.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(w.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(x,t.value))return t;throw this.unexpected(e)}node(e
1,t){return!0!==this._options.noLocation&&(t.loc=new m(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw E(this._lexer.source,t.start,`Expected ${me(e)}, found ${Ee(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==w.NAME||t.value!==e)throw E(this._lexer.source,t.start,`Expected "${e}", found ${Ee(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===w.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return E(this._lexer.source,t.start,`Unexpected ${Ee(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==w.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw E(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}));function Ie(e){return Te[e.charCodeAt(0)]}var ye,De=e((()=>{ve=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g,Te=["\\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"]}));function xe(e,n,i=T){const r=new Map;for(const t of Object.values(A))r.set(t,Ae(n,t));let s,o,a,c=Array.isArray(e),l=[e],u=-1,p=[],h=e;const d=[],f=[];do{u++;const e=u===l.length,T=e&&0!==p.length;if(e){if(o=0===f.length?void 0:d[d.length-1],h=a,a=f.pop(),T)if(c){h=h.slice();let e=0;for(const[t,n]of p){const i=t-e;null===n?(h.splice(i,1),e++):h[i]=n}}else{h={...h};for(const[e,t]of p)h[e]=t}u=s.index,l=s.keys,p=s.edits,c=s.inArray,s=s.prev}else if(a){if(o=c?u:l[u],h=a[o],null==h)continue;d.push(o)}let N;if(!Array.isArray(h)){var E,m;D(h)||t(!1,`Invalid AST Node: ${oe(h)}.`);const i=e?null===(E=r.get(h.kind))||void 0===E?void 0:E.leave:null===(m=r.get(h.kind))||void 0===m?void 0:m.enter;if(N=null==i?void 0:i.call(n,h,o,a,d,f),N===ye)break;if(!1===N){if(!e){d.pop();continue}}else if(void 0!==N&&(p.push([o,N]),!e)){if(!D(N)){d.pop();continue}h=N}}var v;if(void 0===N&&T&&p.push([o,h]),e)d.pop();else s={inArray:c,index:u,keys:l,edits:p,prev:s},c=Array.isArray(h),l=c?h:null!==(v=i[h.kind])&&void 0!==v?v:[],u=-1,p=[],a&&f.push(a),a=h}while(void 0!==s);return 0!==p.length?p[p.length-1][1]:e}function Ae(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var Oe,_e=e((()=>{n(),pe(),O(),k(),ye=Object.freeze({})}));function ke(e){return xe(e,Oe)}function ge(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Se(e){return Ce("{\n",be(ge(e,"\n")),"\n}")}function Ce(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function be(e){return Ce("  ",e.replace(/\n/g,"\n  "))}function Le(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var Re=e((()=>{V(),De(),_e(),80,Oe={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ge(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Ce("(",ge(e.variableDefinitions,", "),")"),n=ge([e.operation,ge([e.name,t]),ge(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+Ce(" = ",n)+Ce(" ",ge(i," "))},SelectionSet:{leave:({selections:e})=>Se(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){const s=Ce("",e,": ")+t;let o=s+Ce("(",ge(n,", "),")");return o.length>80&&(o=s+Ce("(\n",be(ge(n,"\n")),"\n)")),ge([o,ge(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ce(" ",ge(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ge(["...",Ce("on ",e),ge(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${e}${Ce("(",ge(n,", "),")")} on ${t} ${Ce("",ge(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
1,StringValue:{leave:({value:e,block:t})=>t?function(e,t){const 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||g(e.charCodeAt(0)))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,c=e.endsWith("\\"),l=a||c,u=!(null!=t&&t.minimize)&&(!r||e.length>70||l||s||o);let p="";const h=r&&g(e.charCodeAt(0));return(u&&!h||s)&&(p+="\n"),p+=n,(u||l)&&(p+="\n"),'"""'+p+'"""'}(e):`"${e.replace(ve,Ie)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ge(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ge(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ce("(",ge(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Ce("",e,"\n")+ge(["schema",ge(t," "),Se(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Ce("",e,"\n")+ge(["scalar",t,ge(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>Ce("",e,"\n")+ge(["type",t,Ce("implements ",ge(n," & ")),ge(i," "),Se(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>Ce("",e,"\n")+t+(Le(n)?Ce("(\n",be(ge(n,"\n")),"\n)"):Ce("(",ge(n,", "),")"))+": "+i+Ce(" ",ge(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>Ce("",e,"\n")+ge([t+": "+n,Ce("= ",i),ge(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>Ce("",e,"\n")+ge(["interface",t,Ce("implements ",ge(n," & ")),ge(i," "),Se(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>Ce("",e,"\n")+ge(["union",t,ge(n," "),Ce("= ",ge(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>Ce("",e,"\n")+ge(["enum",t,ge(n," "),Se(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Ce("",e,"\n")+ge([t,ge(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>Ce("",e,"\n")+ge(["input",t,ge(n," "),Se(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>Ce("",e,"\n")+"directive @"+t+(Le(n)?Ce("(\n",be(ge(n,"\n")),"\n)"):Ce("(",ge(n,", "),")"))+(i?" repeatable":"")+" on "+ge(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ge(["extend schema",ge(e," "),Se(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ge(["extend scalar",e,ge(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>ge(["extend type",e,Ce("implements ",ge(t," & ")),ge(n," "),Se(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>ge(["extend interface",e,Ce("implements ",ge(t," & ")),ge(n," "),Se(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ge(["extend union",e,ge(t," "),Ce("= ",ge(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ge(["extend enum",e,ge(t," "),Se(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ge(["extend input",e,ge(t," "),Se(n)]," ")}}}));function Fe(e){return e.kind===A.FIELD||e.kind===A.FRAGMENT_SPREAD||e.kind===A.INLINE_FRAGMENT}var we,Pe,Ve,Me,Ue,Be,je=e((()=>{k()})),Ke=e((()=>{fe(),c(),h(),k(),M(),se(),Ne(),Re(),_e(),O(),je(),_()})),$e=e((()=>{Ne(),pe(),f(),O(),he(),k(),Re(),_(),_e(),je(),Ke(),y(),V(),se(),fe(),M()})),Ge=e((()=>{we=function(){return we=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},we.apply(this,arguments)}}));function Ye(e){return e.replace(/[\s,]+/g," ").trim()}function Je(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=Ye((o=e.loc).source.body.substring(o.start,o.end)),s=Ve.get(i);s&&!s.has(r)?Me&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||Ve.set(i,s=new Set),s.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e);var o})),we(we({},e),{definitions:n})}function qe(e){var t=Ye(e);
1if(!Pe.has(t)){var n=function(e,t){const n=new de(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}(e,{experimentalFragmentVariables:Ue,allowLegacyFragmentVariables:Ue});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Pe.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Je(n)))}return Pe.get(t)}function Qe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]})),qe(i)}function Xe(){Pe.clear(),Ve.clear()}function ze(){Me=!1}function We(){Ue=!0}function He(){Ue=!1}var Ze=e((()=>{var e;Ge(),$e(),Pe=new Map,Ve=new Map,Me=!0,Ue=!1,Be={gql:Qe,resetCaches:Xe,disableFragmentWarnings:ze,enableExperimentalFragmentVariables:We,disableExperimentalFragmentVariables:He},(e=Qe||(Qe={})).gql=Be.gql,e.resetCaches=Be.resetCaches,e.disableFragmentWarnings=Be.disableFragmentWarnings,e.enableExperimentalFragmentVariables=Be.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Be.disableExperimentalFragmentVariables,Qe.default=Qe}));export{Fe as a,ye as c,A as d,k as f,je as i,_e as l,Ze as n,Re as o,$e as r,ke as s,Qe as t,xe as u};
2//# sourceMappingURL=lib-C2GB3B5V.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.