PageSourceSearch

https://equestrian-hub-usef.pages.dev/assets/chunk-DjGlZwjx.js

js equestrian-hub-usef.pages.dev collected 2026-10-03 05:10:07 UTC 29,582 bytes, 23 lines download raw bytes

1import{t as e}from"./chunk-CWGFQnXl.js";import{c as t,i as n,n as r,o as i,r as a,t as o}from"./chunk-Dwf_s0-d.js";function s(e){return typeof e==`object`&&!!e}function c(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}var l=/\r\n|[\n\r]/g;function u(e,t){let n=0,r=1;for(let i of e.body.matchAll(l)){if(typeof i.index==`number`||c(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function d(e){return f(e.source,u(e.source,e.start))}function f(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+p([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+p([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function p(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(`
2`)}function m(e){let t=e[0];return t==null||`kind`in t||`length`in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var ee=class e extends Error{constructor(t,...n){let{nodes:r,source:i,positions:a,path:o,originalError:c,extensions:l}=m(n);super(t),this.name=`GraphQLError`,this.path=o??void 0,this.originalError=c??void 0,this.nodes=h(Array.isArray(r)?r:r?[r]:void 0);let d=h(this.nodes?.map(e=>e.loc).filter(e=>e!=null));this.source=i??d?.[0]?.source,this.positions=a??d?.map(e=>e.start),this.locations=a&&i?a.map(e=>u(i,e)):d?.map(e=>u(e.source,e.start));let f=s(c?.extensions)?c?.extensions:void 0;this.extensions=l??f??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}}),c!=null&&c.stack?Object.defineProperty(this,`stack`,{value:c.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(let t of this.nodes)t.loc&&(e+=`
3
4`+d(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+=`
5
6`+f(this.source,t);return e}toJSON(){let e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}};function h(e){return e===void 0||e.length===0?void 0:e}function g(e,t,n){return new ee(`Syntax Error: ${n}`,{source:e,positions:[t]})}var _;(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`})(_||={});function v(e){return e===9||e===32}function y(e){return e>=48&&e<=57}function b(e){return e>=97&&e<=122||e>=65&&e<=90}function x(e){return b(e)||e===95}function S(e){return b(e)||y(e)||e===95}function C(e){let t=2**53-1,n=null,r=-1;for(let i=0;i<e.length;++i){let a=e[i],o=te(a);o!==a.length&&(n??=i,r=i,i!==0&&o<t&&(t=o))}return e.map((e,n)=>n===0?e:e.slice(t)).slice(n??0,r+1)}function te(e){let t=0;for(;t<e.length&&v(e.charCodeAt(t));)++t;return t}function ne(e,t){let n=e.replace(/"""/g,`\\"""`),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(e=>e.length===0||v(e.charCodeAt(0))),o=n.endsWith(`\\"""`),s=e.endsWith(`"`)&&!o,c=e.endsWith(`\\`),l=s||c,u=!(t!=null&&t.minimize)&&(!i||e.length>70||l||a||o),d=``,f=i&&v(e.charCodeAt(0));return(u&&!f||a)&&(d+=`
7`),d+=n,(u||l)&&(d+=`
8`),`"""`+d+`"""`}var w;(function(e){e.SOF=`<SOF>`,e.EOF=`<EOF>`,e.BANG=`!`,e.DOLLAR=`$`,e.AMP=`&`,e.PAREN_L=`(`,e.PAREN_R=`)`,e.SPREAD=`...`,e.COLON=`:`,e.EQUALS=`=`,e.AT=`@`,e.BRACKET_L=`[`,e.BRACKET_R=`]`,e.BRACE_L=`{`,e.PIPE=`|`,e.BRACE_R=`}`,e.NAME=`Name`,e.INT=`Int`,e.FLOAT=`Float`,e.STRING=`String`,e.BLOCK_STRING=`BlockString`,e.COMMENT=`Comment`})(w||={});var re=class{constructor(e){let t=new i(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{let t=j(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===w.COMMENT);return e}};function ie(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}function T(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function E(e,t){return D(e.charCodeAt(t))&&O(e.charCodeAt(t+1))}function D(e){return e>=55296&&e<=56319}function O(e){return e>=56320&&e<=57343}function k(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return w.EOF;
vendor: 16,592 bytes, lines 8-21
8if(n>=32&&n<=126){let e=String.fromCodePoint(n);return e===`"`?`'"'`:`"${e}"`}return`U+`+n.toString(16).toUpperCase().padStart(4,`0`)}function A(e,t,n,r,a){let o=e.line;return new i(t,n,r,o,1+n-e.lineStart,a)}function j(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return ae(e,i);case 33:return A(e,w.BANG,i,i+1);case 36:return A(e,w.DOLLAR,i,i+1);case 38:return A(e,w.AMP,i,i+1);case 40:return A(e,w.PAREN_L,i,i+1);case 41:return A(e,w.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return A(e,w.SPREAD,i,i+3);break;case 58:return A(e,w.COLON,i,i+1);case 61:return A(e,w.EQUALS,i,i+1);case 64:return A(e,w.AT,i,i+1);case 91:return A(e,w.BRACKET_L,i,i+1);case 93:return A(e,w.BRACKET_R,i,i+1);case 123:return A(e,w.BRACE_L,i,i+1);case 124:return A(e,w.PIPE,i,i+1);case 125:return A(e,w.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?L(e,i):se(e,i)}if(y(t)||t===45)return oe(e,i,t);if(x(t))return R(e,i);throw g(e.source,i,t===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:T(t)||E(n,i)?`Unexpected character: ${k(e,i)}.`:`Invalid character: ${k(e,i)}.`)}return A(e,w.EOF,r,r)}function ae(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(e===10||e===13)break;if(T(e))++i;else if(E(n,i))i+=2;else break}return A(e,w.COMMENT,t,i,n.slice(t+1,i))}function oe(e,t,n){let r=e.source.body,i=t,a=n,o=!1;if(a===45&&(a=r.charCodeAt(++i)),a===48){if(a=r.charCodeAt(++i),y(a))throw g(e.source,i,`Invalid number, unexpected digit after 0: ${k(e,i)}.`)}else i=M(e,i,a),a=r.charCodeAt(i);if(a===46&&(o=!0,a=r.charCodeAt(++i),i=M(e,i,a),a=r.charCodeAt(i)),(a===69||a===101)&&(o=!0,a=r.charCodeAt(++i),(a===43||a===45)&&(a=r.charCodeAt(++i)),i=M(e,i,a),a=r.charCodeAt(i)),a===46||x(a))throw g(e.source,i,`Invalid number, expected digit but got: ${k(e,i)}.`);return A(e,o?w.FLOAT:w.INT,t,i,r.slice(t,i))}function M(e,t,n){if(!y(n))throw g(e.source,t,`Invalid number, expected digit but got: ${k(e,t)}.`);let r=e.source.body,i=t+1;for(;y(r.charCodeAt(i));)++i;return i}function se(e,t){let n=e.source.body,r=n.length,i=t+1,a=i,o=``;for(;i<r;){let r=n.charCodeAt(i);if(r===34)return o+=n.slice(a,i),A(e,w.STRING,t,i+1,o);if(r===92){o+=n.slice(a,i);let t=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?ce(e,i):N(e,i):I(e,i);o+=t.value,i+=t.size,a=i;continue}if(r===10||r===13)break;if(T(r))++i;else if(E(n,i))i+=2;else throw g(e.source,i,`Invalid character within String: ${k(e,i)}.`)}throw g(e.source,i,`Unterminated string.`)}function ce(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+ i++);if(e===125){if(i<5||!T(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|F(e),r<0)break}throw g(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function N(e,t){let n=e.source.body,r=P(n,t+2);if(T(r))return{value:String.fromCodePoint(r),size:6};if(D(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let e=P(n,t+8);if(O(e))return{value:String.fromCodePoint(r,e),size:12}}throw g(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function P(e,t){return F(e.charCodeAt(t))<<12|F(e.charCodeAt(t+1))<<8|F(e.charCodeAt(t+2))<<4|F(e.charCodeAt(t+3))}function F(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function I(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:`"`,size:2};case 92:return{value:`\\`,size:2};case 47:return{value:`/`,size:2};case 98:return{value:`\b`,size:2};case 102:return{value:`\f`,size:2};case 110:return{value:`
9`,size:2};case 114:return{value:`\r`,size:2};case 116:return{value:`	`,size:2}}throw g(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function L(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s=``,c=[];for(;a<r;){let r=n.charCodeAt(a);if(r===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){s+=n.slice(o,a),c.push(s);let r=A(e,w.BLOCK_STRING,t,a+3,C(c).join(`
10`));return e.line+=c.length-1,e.lineStart=i,r}if(r===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){s+=n.slice(o,a),o=a+1,a+=4;continue}if(r===10||r===13){s+=n.slice(o,a),c.push(s),r===13&&n.charCodeAt(a+1)===10?a+=2:++a,s=``,o=a,i=a;continue}if(T(r))++a;else if(E(n,a))a+=2;else throw g(e.source,a,`Invalid character within String: ${k(e,a)}.`)}throw g(e.source,a,`Unterminated string.`)}function R(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r&&S(n.charCodeAt(i));)++i;return A(e,w.NAME,t,i,n.slice(t,i))}var z=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e==`object`&&e){let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:e.constructor?.name)){let t=o(e);throw Error(`Cannot use ${n} "${t}" from another module or realm.
11
12Ensure that there is only one instance of "graphql" in the node_modules
13directory. If different versions of "graphql" are the dependencies of other
14relied on modules, use "resolutions" to ensure only one version is installed.
15
16https://yarnpkg.com/en/docs/selective-version-resolutions
17
18Duplicate "graphql" modules cannot be used at the same time since different
19versions may have different capabilities and behavior. The data from one
20version used in the function from another could produce confusing and
21spurious results.`)}}return!1},B=class{constructor(e,n=`GraphQL request`,r={line:1,column:1}){typeof e==`string`||t(!1,`Body must be a string. Received: ${o(e)}.`),this.body=e,this.name=n,this.locationOffset=r,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 V(e){return z(e,B)}function H(e,t){let n=new U(e,t),r=n.parseDocument();return Object.defineProperty(r,`tokenCount`,{enumerable:!1,value:n.tokenCount}),r}var U=class{constructor(e,t={}){this._lexer=new re(V(e)?e:new B(e)),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(w.NAME);return this.node(e,{kind:r.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:r.DOCUMENT,definitions:this.many(w.SOF,this.parseDefinition,w.EOF)})}parseDefinition(){if(this.peek(w.BRACE_L))return this.parseOperationDefinition();let 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 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=this._lexer.token;if(this.peek(w.BRACE_L))return this.node(e,{kind:r.OPERATION_DEFINITION,operation:n.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseOperationType(),i;return this.peek(w.NAME)&&(i=this.parseName()),this.node(e,{kind:r.OPERATION_DEFINITION,operation:t,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(w.NAME);switch(e.value){case`query`:return n.QUERY;case`mutation`:return n.MUTATION;case`subscription`:return n.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:r.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(){let e=this._lexer.token;return this.expectToken(w.DOLLAR),this.node(e,{kind:r.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:r.SELECTION_SET,selections:this.many(w.BRACE_L,this.parseSelection,w.BRACE_R)})}parseSelection(){return this.peek(w.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),n,i;return this.expectOptionalToken(w.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:r.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){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(w.PAREN_L,t,w.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(w.COLON),this.node(t,{kind:r.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(w.SPREAD);let t=this.expectOptionalKeyword(`on`);return!t&&this.peek(w.NAME)?this.node(e,{kind:r.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:r.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`),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:r.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:r.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===`on`)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let 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:r.INT,value:t.value});case w.FLOAT:return this.advanceLexer(),this.node(t,{kind:r.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:r.BOOLEAN,value:!0});case`false`:return this.node(t,{kind:r.BOOLEAN,value:!1});case`null`:return this.node(t,{kind:r.NULL});default:return this.node(t,{kind:r.ENUM,value:t.value})}case w.DOLLAR:if(e)if(this.expectToken(w.DOLLAR),this._lexer.token.kind===w.NAME){let e=this._lexer.token.value;throw g(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else 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:r.STRING,value:e.value,block:e.kind===w.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:r.LIST,values:this.any(w.BRACKET_L,()=>this.parseValueLiteral(e),w.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:r.OBJECT,fields:this.any(w.BRACE_L,()=>this.parseObjectField(e),w.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(w.COLON),this.node(t,{kind:r.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(w.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(w.AT),this.node(t,{kind:r.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(w.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(w.BRACKET_R),t=this.node(e,{kind:r.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(w.BANG)?this.node(e,{kind:r.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:r.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(w.STRING)||this.peek(w.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`schema`);let n=this.parseConstDirectives(),i=this.many(w.BRACE_L,this.parseOperationTypeDefinition,w.BRACE_R);return this.node(e,{kind:r.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(w.COLON);let n=this.parseNamedType();return this.node(e,{kind:r.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`scalar`);let n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:r.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`type`);let n=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:r.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword(`implements`)?this.delimitedMany(w.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseFieldDefinition,w.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(w.COLON);let a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:r.FIELD_DEFINITION,description:t,name:n,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(w.PAREN_L,this.parseInputValueDef,w.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(w.COLON);let i=this.parseTypeReference(),a;this.expectOptionalToken(w.EQUALS)&&(a=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(e,{kind:r.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`interface`);let n=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:r.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`union`);let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:r.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(w.EQUALS)?this.delimitedMany(w.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`enum`);let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:r.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(w.BRACE_L,this.parseEnumValueDefinition,w.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:r.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value===`true`||this._lexer.token.value===`fal
21se`||this._lexer.token.value===`null`)throw g(this._lexer.source,this._lexer.token.start,`${W(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 n=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:r.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseInputValueDef,w.BRACE_R)}parseTypeSystemExtension(){let 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(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`schema`);let t=this.parseConstDirectives(),n=this.optionalMany(w.BRACE_L,this.parseOperationTypeDefinition,w.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:r.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`scalar`);let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:r.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`type`);let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:r.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:a})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`interface`);let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:r.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:a})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`union`);let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:r.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`enum`);let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:r.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`input`);let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:r.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`directive`),this.expectToken(w.AT);let n=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword(`repeatable`);this.expectKeyword(`on`);let o=this.parseDirectiveLocations();return this.node(e,{kind:r.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(w.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(_,t.value))return t;throw this.unexpected(e)}node(e,t){return this._options.noLocation!==!0&&(t.loc=new a(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 ${G(e)}, found ${W(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===w.NAME&&t.value===e)this.advanceLexer();else throw g(this._lexer.source,t.start,`Expected "${e}", found ${W(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===w.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return g(this._lexer.source,t.start,`Unexpected ${W(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==w.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw g(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function W(e){let t=e.value;return G(e.kind)+(t==null?``:` "${t}"`)}function G(e){return ie(e)?`"${e}"`:e}var K=new Map,q=new Map,J=!0,Y=!1;function X(e){return e.replace(/[\s,]+/g,` `).trim()}function le(e){return X(e.source.body.substring(e.start,e.end))}function ue(t){var n=new Set,r=[];return t.definitions.forEach(function(e){if(e.kind===`FragmentDefinition`){var t=e.name.value,i=le(e.loc),a=q.get(t);a&&!a.has(i)?J&&console.warn(`Warning: fragment with name `+t+` already exists.
22graphql-tag enforces all fragment names across your application to be unique; read more about
23this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||q.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e)}),e(e({},t),{definitions:r})}function de(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&typeof r==`object`&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function fe(e){var t=X(e);if(!K.has(t)){var n=H(e,{experimentalFragmentVariables:Y,allowLegacyFragmentVariables:Y});if(!n||n.kind!==`Document`)throw Error(`Not a valid GraphQL document.`);K.set(t,de(ue(n)))}return K.get(t)}function Z(e){var t=[...arguments].slice(1);typeof e==`string`&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&t.kind===`Document`?n+=t.loc.source.body:n+=t,n+=e[r+1]}),fe(n)}function Q(){K.clear(),q.clear()}function pe(){J=!1}function me(){Y=!0}function he(){Y=!1}var $={gql:Z,resetCaches:Q,disableFragmentWarnings:pe,enableExperimentalFragmentVariables:me,disableExperimentalFragmentVariables:he};(function(e){e.gql=$.gql,e.resetCaches=$.resetCaches,e.disableFragmentWarnings=$.disableFragmentWarnings,e.enableExperimentalFragmentVariables=$.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=$.disableExperimentalFragmentVariables})(Z||={}),Z.default=Z;var ge=Z;export{ne as n,ge as t};

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.