PageSourceSearch

https://www.elite-it.com/_nuxt/PyiFINgM.js

js elite-it.com collected 2026-09-24 19:15:30 UTC 36,797 bytes, 12 lines download raw bytes

1import{r as e}from"./C0FnF6B9.js";import{a as t}from"./1iu_DJFB.js";import{n}from"./D3mFuXF3.js";var r=class extends Error{constructor(e,t,n){super(t),this.statusCode=e,this.errors=n??[]}};async function i(e,i,a,o){let{$i18n:s,$graphql:c}=t(),l={...i,site:o??s?.locale?.value};(a?.token||a?.previewToken)&&(a?.token&&c.preview.setHeader(`Authorization`,`JWT ${a.token}`),a?.previewToken&&c.preview.setHeader(`X-Craft-Token`,a.previewToken));try{let t;if(t=a?.token||a?.previewToken?await c.preview.request(e,l):await c.default.request(e,l),`errors`in t)throw new r(500,`[api] Internal Server Error`,t);return t}catch(t){let r=t?.statusCode??400,i=n(t?.response?.graphQLErrors)?.message??t.response?.errors?.map(e=>e.message).join(`,`)??t?.message??`BAD REQUEST`;throw console.error(`[api] REQUEST`,n(e.definitions)?.name,l),console.error(`[api] ERROR`,r,i),i}}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t){return e?.__kind===t}var s=o;function c(e){return typeof e==`object`&&!!e}function l(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}var u=/\r\n|[\n\r]/g;function d(e,t){let n=0,r=1;for(let i of e.body.matchAll(u)){if(typeof i.index!=`number`&&l(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function f(e){return p(e.source,d(e.source,e.start))}function p(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+m([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+m([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function m(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`)}var ee=class e extends Error{constructor(t,n={}){let{nodes:r,source:i,positions:a,path:o,originalError:s,cause:l,extensions:u}=n,f=`cause`in n;super(t,f||s!=null?{cause:f?l:s}:void 0),this.name=`GraphQLError`,this.path=o??void 0;let p=s??(l instanceof Error?l:void 0);this.originalError=p,this.nodes=te(Array.isArray(r)?r:r?[r]:void 0);let m=te(this.nodes?.map(e=>e.loc).filter(e=>e!=null));this.source=i??m?.[0]?.source,this.positions=a??m?.map(e=>e.start),this.locations=a&&i?a.map(e=>d(i,e)):m?.map(e=>d(e.source,e.start));let ee=c(p?.extensions)?p.extensions:void 0;this.extensions=u??ee??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}}),s?.stack==null?Error.captureStackTrace==null?Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0}):Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:s.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`+f(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+=`
5
6`+p(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 te(e){return e===void 0||e.length===0?void 0:e}var ne=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}}},re=class{constructor(e,t,n,r,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,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}}},h={Name:[],Document:[`definitions`],OperationDefinition:[`description`,`name`,`variableDefinitions`,`directives`,`selectionSet`],
6VariableDefinition:[`description`,`variable`,`type`,`defaultValue`,`directives`],Variable:[`name`],SelectionSet:[`selections`],Field:[`alias`,`name`,`arguments`,`directives`,`selectionSet`],Argument:[`name`,`value`],FragmentArgument:[`name`,`value`],FragmentSpread:[`name`,`arguments`,`directives`],InlineFragment:[`typeCondition`,`directives`,`selectionSet`],FragmentDefinition:[`description`,`name`,`variableDefinitions`,`typeCondition`,`directives`,`selectionSet`],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[`values`],ObjectValue:[`fields`],ObjectField:[`name`,`value`],Directive:[`name`,`arguments`],NamedType:[`name`],ListType:[`type`],NonNullType:[`type`],SchemaDefinition:[`description`,`directives`,`operationTypes`],OperationTypeDefinition:[`type`],ScalarTypeDefinition:[`description`,`name`,`directives`],ObjectTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],FieldDefinition:[`description`,`name`,`arguments`,`type`,`directives`],InputValueDefinition:[`description`,`name`,`type`,`defaultValue`,`directives`],InterfaceTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],UnionTypeDefinition:[`description`,`name`,`directives`,`types`],EnumTypeDefinition:[`description`,`name`,`directives`,`values`],EnumValueDefinition:[`description`,`name`,`directives`],InputObjectTypeDefinition:[`description`,`name`,`directives`,`fields`],DirectiveDefinition:[`description`,`name`,`arguments`,`directives`,`locations`],SchemaExtension:[`directives`,`operationTypes`],DirectiveExtension:[`name`,`directives`],ScalarTypeExtension:[`name`,`directives`],ObjectTypeExtension:[`name`,`interfaces`,`directives`,`fields`],InterfaceTypeExtension:[`name`,`interfaces`,`directives`,`fields`],UnionTypeExtension:[`name`,`directives`,`types`],EnumTypeExtension:[`name`,`directives`,`values`],InputObjectTypeExtension:[`name`,`directives`,`fields`],TypeCoordinate:[`name`],MemberCoordinate:[`name`,`memberName`],ArgumentCoordinate:[`name`,`fieldName`,`argumentName`],DirectiveCoordinate:[`name`],DirectiveArgumentCoordinate:[`name`,`argumentName`]},ie=new Set(Object.keys(h));function ae(e){let t=e?.kind;return typeof t==`string`&&ie.has(t)}var g={QUERY:`query`,MUTATION:`mutation`,SUBSCRIPTION:`subscription`},oe=e({ARGUMENT:()=>fe,ARGUMENT_COORDINATE:()=>Ie,BOOLEAN:()=>b,DIRECTIVE:()=>T,DIRECTIVE_ARGUMENT_COORDINATE:()=>Re,DIRECTIVE_COORDINATE:()=>Le,DIRECTIVE_DEFINITION:()=>Te,DIRECTIVE_EXTENSION:()=>De,DOCUMENT:()=>ce,ENUM:()=>S,ENUM_TYPE_DEFINITION:()=>Se,ENUM_TYPE_EXTENSION:()=>Me,ENUM_VALUE_DEFINITION:()=>Ce,FIELD:()=>de,FIELD_DEFINITION:()=>N,FLOAT:()=>_e,FRAGMENT_ARGUMENT:()=>pe,FRAGMENT_DEFINITION:()=>y,FRAGMENT_SPREAD:()=>v,INLINE_FRAGMENT:()=>me,INPUT_OBJECT_TYPE_DEFINITION:()=>we,INPUT_OBJECT_TYPE_EXTENSION:()=>Ne,INPUT_VALUE_DEFINITION:()=>P,INT:()=>ge,INTERFACE_TYPE_DEFINITION:()=>be,INTERFACE_TYPE_EXTENSION:()=>Ae,LIST:()=>C,LIST_TYPE:()=>D,MEMBER_COORDINATE:()=>Fe,NAME:()=>se,NAMED_TYPE:()=>E,NON_NULL_TYPE:()=>O,NULL:()=>x,OBJECT:()=>ye,OBJECT_FIELD:()=>w,OBJECT_TYPE_DEFINITION:()=>M,OBJECT_TYPE_EXTENSION:()=>ke,OPERATION_DEFINITION:()=>_,OPERATION_TYPE_DEFINITION:()=>A,SCALAR_TYPE_DEFINITION:()=>j,SCALAR_TYPE_EXTENSION:()=>Oe,SCHEMA_DEFINITION:()=>k,SCHEMA_EXTENSION:()=>Ee,SELECTION_SET:()=>ue,STRING:()=>ve,TYPE_COORDINATE:()=>Pe,UNION_TYPE_DEFINITION:()=>xe,UNION_TYPE_EXTENSION:()=>je,VARIABLE:()=>he,VARIABLE_DEFINITION:()=>le}),se=`Name`,ce=`Document`,_=`OperationDefinition`,le=`VariableDefinition`,ue=`SelectionSet`,de=`Field`,fe=`Argument`,pe=`FragmentArgument`,v=`FragmentSpread`,me=`InlineFragment`,y=`FragmentDefinition`,he=`Variable`,ge=`IntValue`,_e=`FloatValue`,ve=`StringValue`,b=`BooleanValue`,x=`NullValue`,S=`EnumValue`,C=`ListValue`,ye=`ObjectValue`,w=`ObjectField`,T=`Directive`,E=`NamedType`,D=`ListType`,O=`NonNullType`,k=`SchemaDefinition`,A=`OperationTypeDefinition`,j=`ScalarTypeDefinition`,M=`ObjectTypeDefinition`,N=`FieldDefinition`,P=`InputValueDefinition`,be=`InterfaceTypeDefinition`,xe=`UnionTypeDefinition`,Se=`EnumTypeDefinition`,Ce=`EnumValueDefinition`,we=`InputObjectTypeDefinition`,Te=`DirectiveDefinition`,Ee=`SchemaExtension`,De=`DirectiveExtension`,Oe=`ScalarTypeExtension`,ke=`ObjectTypeExtension`,Ae=`InterfaceTypeExtension`,je=`UnionTypeExtension`,Me=`EnumTypeExtension`,Ne=`InputObjectTypeExtension`,Pe=`TypeCoordinate`,Fe=`MemberCoordinate`,Ie=`ArgumentCoordinate`,Le=`DirectiveCoordinate`,Re=`DirectiveArgumentCoordinate`;function F(e,t){if(!e)throw Error(t)}function I(e){return e===9||e===32}function L(e){return e>=48&&e<=57}function ze(e){return e>=97&&e<=122||e>=65&&e<=90}function Be(e){return ze(e)||e===95}function Ve(e){return ze(e)||L(e)||e===95}function He(e){let t=2**53-1,n=null,r=-1;for(let i=0;i<e.length;
6++i){let a=e[i],o=Ue(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 Ue(e){let t=0;for(;t<e.length&&I(e.charCodeAt(t));)++t;return t}function We(e,t){let n=e.replaceAll(`"""`,`\\"""`),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(e=>e.length===0||I(e.charCodeAt(0))),o=n.endsWith(`\\"""`),s=e.endsWith(`"`)&&!o,c=e.endsWith(`\\`),l=s||c,u=!t?.minimize&&(!i||e.length>70||l||a||o),d=``,f=i&&I(e.charCodeAt(0));return(u&&!f||a)&&(d+=`
7`),d+=n,(u||l)&&(d+=`
8`),`"""`+d+`"""`}var Ge={QUERY:`QUERY`,MUTATION:`MUTATION`,SUBSCRIPTION:`SUBSCRIPTION`,FIELD:`FIELD`,FRAGMENT_DEFINITION:`FRAGMENT_DEFINITION`,FRAGMENT_SPREAD:`FRAGMENT_SPREAD`,INLINE_FRAGMENT:`INLINE_FRAGMENT`,VARIABLE_DEFINITION:`VARIABLE_DEFINITION`,FRAGMENT_VARIABLE_DEFINITION:`FRAGMENT_VARIABLE_DEFINITION`,SCHEMA:`SCHEMA`,SCALAR:`SCALAR`,OBJECT:`OBJECT`,FIELD_DEFINITION:`FIELD_DEFINITION`,ARGUMENT_DEFINITION:`ARGUMENT_DEFINITION`,INTERFACE:`INTERFACE`,UNION:`UNION`,ENUM:`ENUM`,ENUM_VALUE:`ENUM_VALUE`,INPUT_OBJECT:`INPUT_OBJECT`,INPUT_FIELD_DEFINITION:`INPUT_FIELD_DEFINITION`,DIRECTIVE_DEFINITION:`DIRECTIVE_DEFINITION`};function R(e,t,n){return new ee(`Syntax Error: ${n}`,{source:e,positions:[t]})}function Ke(){let e;try{let t=globalThis.process;typeof t?.getBuiltinModule==`function`&&(e=t.getBuiltinModule(`node:diagnostics_channel`))}catch{}return e}var z=Ke(),qe=z?.tracingChannel(`graphql:parse`);z?.tracingChannel(`graphql:validate`),z?.tracingChannel(`graphql:execute`),z?.tracingChannel(`graphql:execute:variableCoercion`),z?.tracingChannel(`graphql:execute:rootSelectionSet`),z?.tracingChannel(`graphql:subscribe`),z?.tracingChannel(`graphql:resolve`);var Je=[`start`,`end`,`asyncStart`,`asyncEnd`,`error`];function Ye(e){if(e==null)return!1;let t=e.hasSubscribers;if(t!==void 0)return t;for(let t of Je)if(e[t].hasSubscribers)return!0;return!1}var B={SOF:`<SOF>`,EOF:`<EOF>`,BANG:`!`,DOLLAR:`$`,AMP:`&`,PAREN_L:`(`,PAREN_R:`)`,DOT:`.`,SPREAD:`...`,COLON:`:`,EQUALS:`=`,AT:`@`,BRACKET_L:`[`,BRACKET_R:`]`,BRACE_L:`{`,PIPE:`|`,BRACE_R:`}`,NAME:`Name`,INT:`Int`,FLOAT:`Float`,STRING:`String`,BLOCK_STRING:`BlockString`,COMMENT:`Comment`},Xe=class{constructor(e){let t=new re(B.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!==B.EOF)do if(e.next)e=e.next;else{let t=et(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===B.COMMENT);return e}};function Ze(e){return e===B.BANG||e===B.DOLLAR||e===B.AMP||e===B.PAREN_L||e===B.PAREN_R||e===B.DOT||e===B.SPREAD||e===B.COLON||e===B.EQUALS||e===B.AT||e===B.BRACKET_L||e===B.BRACKET_R||e===B.BRACE_L||e===B.PIPE||e===B.BRACE_R}function V(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function H(e,t){return Qe(e.charCodeAt(t))&&$e(e.charCodeAt(t+1))}function Qe(e){return e>=55296&&e<=56319}function $e(e){return e>=56320&&e<=57343}function U(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return B.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return e===`"`?`'"'`:`"${e}"`}return`U+`+n.toString(16).toUpperCase().padStart(4,`0`)}function W(e,t,n,r,i){let a=e.line;return new re(t,n,r,a,1+n-e.lineStart,i)}function et(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 tt(e,i);case 33:return W(e,B.BANG,i,i+1);case 36:return W(e,B.DOLLAR,i,i+1);case 38:return W(e,B.AMP,i,i+1);case 40:return W(e,B.PAREN_L,i,i+1);case 41:return W(e,B.PAREN_R,i,i+1);case 46:{let t=n.charCodeAt(i+1);if(t===46&&n.charCodeAt(i+2)===46)return W(e,B.SPREAD,i,i+3);if(t===46)throw R(e.source,i,`Unexpected "..", did you mean "..."?`);if(L(t)){let n=e.source.body.slice(i+1,G(e,i+1,t));throw R(e.source,i,`Invalid number, expected digit before ".", did you mean "0.${n}"?`)}break}case 58:return W(e,B.COLON,i,i+1);case 61:return W(e,B.EQUALS,i,i+1);case 64:return W(e,B.AT,i,i+1);case 91:return W(e,B.BRACKET_L,i,i+1);case 93:return W(e,B.BRACKET_R,i,i+1);case 123:return W(e,B.BRACE_L,i,i+1);case 124:return W(e,B.PIPE,i,i+1);case 125:return W(e,B.BRACE_R,i,i+1);
8case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?ct(e,i):rt(e,i)}if(L(t)||t===45)return nt(e,i,t);if(Be(t))return lt(e,i);throw R(e.source,i,t===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:V(t)||H(n,i)?`Unexpected character: ${U(e,i)}.`:`Invalid character: ${U(e,i)}.`)}return W(e,B.EOF,r,r)}function tt(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(V(e))++i;else if(H(n,i))i+=2;else break}return W(e,B.COMMENT,t,i,n.slice(t+1,i))}function nt(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),L(a))throw R(e.source,i,`Invalid number, unexpected digit after 0: ${U(e,i)}.`)}else i=G(e,i,a),a=r.charCodeAt(i);if(a===46&&(o=!0,a=r.charCodeAt(++i),i=G(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=G(e,i,a),a=r.charCodeAt(i)),a===46||Be(a))throw R(e.source,i,`Invalid number, expected digit but got: ${U(e,i)}.`);return W(e,o?B.FLOAT:B.INT,t,i,r.slice(t,i))}function G(e,t,n){if(!L(n))throw R(e.source,t,`Invalid number, expected digit but got: ${U(e,t)}.`);let r=e.source.body,i=t+1;for(;L(r.charCodeAt(i));)++i;return i}function rt(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),W(e,B.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?it(e,i):at(e,i):st(e,i);o+=t.value,i+=t.size,a=i;continue}if(r===10||r===13)break;if(V(r))++i;else if(H(n,i))i+=2;else throw R(e.source,i,`Invalid character within String: ${U(e,i)}.`)}throw R(e.source,i,`Unterminated string.`)}function it(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||!V(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|K(e),r<0)break}throw R(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function at(e,t){let n=e.source.body,r=ot(n,t+2);if(V(r))return{value:String.fromCodePoint(r),size:6};if(Qe(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let e=ot(n,t+8);if($e(e))return{value:String.fromCodePoint(r,e),size:12}}throw R(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function ot(e,t){return K(e.charCodeAt(t))<<12|K(e.charCodeAt(t+1))<<8|K(e.charCodeAt(t+2))<<4|K(e.charCodeAt(t+3))}function K(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function st(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 R(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function ct(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=W(e,B.BLOCK_STRING,t,a+3,He(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(V(r))++a;else if(H(n,a))a+=2;else throw R(e.source,a,`Invalid character within String: ${U(e,a)}.`)}throw R(e.source,a,`Unterminated string.`)}function lt(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r&&Ve(n.charCodeAt(i));)++i;return W(e,B.NAME,t,i,n.slice(t,i))}var ut=Symbol(`Source`),q=class{constructor(e,t=`GraphQL request`,n={line:1,column:1}){this.__kind=ut,this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||F(!1,`line in locationOffset is 1-indexed and must be positive.`),this.locationOffset.column>0||F(!1,`column in locationOffset is 1-indexed and must be positive.`)}get[Symbol.toStringTag](){return`Source`}};function dt(e){return s(e,ut,q)}function ft(e,t){return Ye(qe)?qe.traceSync(()=>pt(e,t),{source:e}):pt(e,t)}function pt(e,t){let n=new mt(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}var mt=class{constructor(e,t={}){let{lexer:n,...r}=t;if(n)this._lexer=n;else{let t=dt(e)?e:new q(e);this._lexer=new Xe(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(B.NAME);return this.node(e,{kind:se,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ce,definitions:this.many(B.SOF,this.parseDefinition,B.EOF)})}parseDefinition(){if(this.peek(B.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===B.BRACE_L)throw R(this._lexer.source,this._lexer.token.start,`Unexpected description, descriptions are not supported on shorthand queries.`);
10if(t.kind===B.NAME){switch(t.value){case`schema`:return this.parseSchemaDefinition();case`scalar`:return this.parseScalarTypeDefinition();case`type`:return this.parseObjectTypeDefinition();case`interface`:return this.parseInterfaceTypeDefinition();case`union`:return this.parseUnionTypeDefinition();case`enum`:return this.parseEnumTypeDefinition();case`input`:return this.parseInputObjectTypeDefinition();case`directive`:return this.parseDirectiveDefinition()}switch(t.value){case`query`:case`mutation`:case`subscription`:return this.parseOperationDefinition();case`fragment`:return this.parseFragmentDefinition()}if(e)throw R(this._lexer.source,this._lexer.token.start,`Unexpected description, only GraphQL definitions support descriptions.`);if(t.value===`extend`)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(B.BRACE_L))return this.node(e,{kind:_,operation:g.QUERY,description:void 0,name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:this.parseSelectionSet()});let t=this.parseDescription(),n=this.parseOperationType(),r;return this.peek(B.NAME)&&(r=this.parseName()),this.node(e,{kind:_,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(B.NAME);switch(e.value){case`query`:return g.QUERY;case`mutation`:return g.MUTATION;case`subscription`:return g.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(B.PAREN_L,this.parseVariableDefinition,B.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:le,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(B.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(B.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(B.DOLLAR),this.node(e,{kind:he,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ue,selections:this.many(B.BRACE_L,this.parseSelection,B.BRACE_R)})}parseSelection(){return this.peek(B.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),n,r;return this.expectOptionalToken(B.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:de,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(B.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(B.PAREN_L,t,B.PAREN_R)}parseFragmentArguments(){let e=this.parseFragmentArgument;return this.optionalMany(B.PAREN_L,e,B.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(B.COLON),this.node(t,{kind:fe,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragmentArgument(){let e=this._lexer.token,t=this.parseName();return this.expectToken(B.COLON),this.node(e,{kind:pe,name:t,value:this.parseValueLiteral(!1)})}parseFragment(){let e=this._lexer.token;this.expectToken(B.SPREAD);let t=this.expectOptionalKeyword(`on`);if(!t&&this.peek(B.NAME)){let t=this.parseFragmentName();return this.peek(B.PAREN_L)&&this._options.experimentalFragmentArguments?this.node(e,{kind:v,name:t,arguments:this.parseFragmentArguments(),directives:this.parseDirectives(!1)}):this.node(e,{kind:v,name:t,directives:this.parseDirectives(!1)})}return this.node(e,{kind:me,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return this.expectKeyword(`fragment`),this._options.experimentalFragmentArguments===!0?this.node(e,{kind:y,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:y,description:t,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 B.BRACKET_L:return this.parseList(e);case B.BRACE_L:return this.parseObject(e);case B.INT:return this.advanceLexer(),this.node(t,{kind:ge,value:t.value});case B.FLOAT:return this.advanceLexer(),this.node(t,{kind:_e,value:t.value});case B.STRING:case B.BLOCK_STRING:return this.parseStringLiteral();case B.NAME:switch(this.advanceLexer(),t.value){case`true`:return this.node(t,{kind:b,value:!0});case`false`:return this.node(t,{kind:b,value:!1});case`null`:return this.node(t,{kind:x});default:return this.node(t,{kind:S,value:t.value})}case B.DOLLAR:if(e){if(this.expectToken(B.DOLLAR),this._lexer.token.kind===B.NAME){let e=this._lexer.token.value;throw R(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:ve,value:e.value,block:e.kind===B.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:C,values:this.any(B.BRACKET_L,()=>this.parseValueLiteral(e),B.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:ye,fields:this.any(B.BRACE_L,()=>this.parseObjectField(e),B.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(B.COLON),this.node(t,{kind:w,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(B.AT);)t.push(this.parseDirective(e));if(t.length)return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(B.AT),this.node(t,{kind:T,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(B.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(B.BRACKET_R),t=this.node(e,{kind:D,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(B.BANG)?this.node(e,{kind:O,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:E,name:this.parseName()})}peekDescription(){return this.peek(B.STRING)||this.peek(B.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(),r=this.many(B.BRACE_L,this.parseOperationTypeDefinition,B.BRACE_R);return this.node(e,{kind:k,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(B.COLON);let n=this.parseNamedType();return this.node(e,{kind:A,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`scalar`);let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:j,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`type`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:M,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword(`implements`)?this.delimitedMany(B.AMP,this.parseNamedType):void 0}parseFieldsDefinition(){return this.optionalMany(B.BRACE_L,this.parseFieldDefinition,B.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(B.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:N,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(B.PAREN_L,this.parseInputValueDef,B.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(B.COLON);let r=this.parseTypeReference(),i;this.expectOptionalToken(B.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(e,{kind:P,description:t,name:n,type:r,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`interface`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();
10return this.node(e,{kind:be,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`union`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:xe,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(B.EQUALS)?this.delimitedMany(B.PIPE,this.parseNamedType):void 0}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`enum`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:Se,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(B.BRACE_L,this.parseEnumValueDefinition,B.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:Ce,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value===`true`||this._lexer.token.value===`false`||this._lexer.token.value===`null`)throw R(this._lexer.source,this._lexer.token.start,`${J(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(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:we,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(B.BRACE_L,this.parseInputValueDef,B.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===B.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();case`directive`:return this.parseDirectiveExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`schema`);let t=this.parseConstDirectives(),n=this.optionalMany(B.BRACE_L,this.parseOperationTypeDefinition,B.BRACE_R);if(t===void 0&&n===void 0)throw this.unexpected();return this.node(e,{kind:Ee,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===void 0)throw this.unexpected();return this.node(e,{kind:Oe,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`type`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n===void 0&&r===void 0&&i===void 0)throw this.unexpected();return this.node(e,{kind:ke,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`interface`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n===void 0&&r===void 0&&i===void 0)throw this.unexpected();return this.node(e,{kind:Ae,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`union`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(n===void 0&&r===void 0)throw this.unexpected();return this.node(e,{kind:je,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`enum`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(n===void 0&&r===void 0)throw this.unexpected();return this.node(e,{kind:Me,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`input`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(n===void 0&&r===void 0)throw this.unexpected();return this.node(e,{kind:Ne,name:t,directives:n,fields:r})}parseDirectiveExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`directive`),this.expectToken(B.AT);let t=this.parseName(),n=this.parseConstDirectives();if(n===void 0)throw this.unexpected();return this.node(e,{kind:De,name:t,directives:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`directive`),this.expectToken(B.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.parseConstDirectives(),a=this.expectOptionalKeyword(`repeatable`);this.expectKeyword(`on`);let o=this.parseDirectiveLocations();return this.node(e,{kind:Te,description:t,name:n,arguments:r,directives:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(B.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.hasOwn(Ge,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e=this._lexer.token,t=this.expectOptionalToken(B.AT),n=this.parseName(),r;!t&&this.expectOptionalToken(B.DOT)&&(r=this.parseName());let i;return(t||r)&&this.expectOptionalToken(B.PAREN_L)&&(i=this.parseName(),this.expectToken(B.COLON),this.expectToken(B.PAREN_R)),t?i?this.node(e,{kind:Re,name:n,argumentName:i}):this.node(e,{kind:Le,name:n}):r?i?this.node(e,{kind:Ie,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:Fe,name:n,memberName:r}):this.node(e,{kind:Pe,name:n})}node(e,t){return this._options.noLocation!==!0&&(t.loc=new ne(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 R(this._lexer.source,t.start,`Expected ${ht(e)}, found ${J(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===B.NAME&&t.value===e)this.advanceLexer();else throw R(this._lexer.source,t.start,`Expected "${e}", found ${J(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===B.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=e??this._lexer.token;return R(this._lexer.source,t.start,`Unexpected ${J(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}}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!==B.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw R(this._lexer.source,t.start,`Document contains more than ${e} tokens. Parsing aborted.`)}};function J(e){let t=e.value;return ht(e.kind)+(t==null?``:` "${t}"`)}function ht(e){return Ze(e)?`"${e}"`:e}var Y=new Map,X=new Map,gt=!0,Z=!1;function _t(e){return e.replace(/[\s,]+/g,` `).trim()}function vt(e){return _t(e.source.body.substring(e.start,e.end))}function yt(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if(e.kind===`FragmentDefinition`){var r=e.name.value,i=vt(e.loc),a=X.get(r);a&&!a.has(i)?gt&&console.warn(`Warning: fragment with name `+r+` already exists.
11graphql-tag enforces all fragment names across your application to be unique; read more about
12this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||X.set(r,a=new Set),a.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)}),a(a({},e),{definitions:n})}function bt(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 xt(e){var t=_t(e);if(!Y.has(t)){var n=ft(e,{experimentalFragmentVariables:Z,allowLegacyFragmentVariables:Z,experimentalFragmentArguments:Z});if(!n||n.kind!==`Document`)throw Error(`Not a valid GraphQL document.`);Y.set(t,bt(yt(n)))}return Y.get(t)}function Q(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]}),xt(n)}function St(){Y.clear(),X.clear()}function Ct(){gt=!1}function wt(){Z=!0}function Tt(){Z=!1}var $={gql:Q,resetCaches:St,disableFragmentWarnings:Ct,enableExperimentalFragmentVariables:wt,disableExperimentalFragmentVariables:Tt};(function(e){e.gql=$.gql,e.resetCaches=$.resetCaches,e.disableFragmentWarnings=$.disableFragmentWarnings,e.enableExperimentalFragmentVariables=$.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=$.disableExperimentalFragmentVariables})(Q||={}),Q.default=Q;var Et=Q;export{_ as a,h as c,F as i,ae as l,ft as n,oe as o,We as r,g as s,Et as t,i as u};

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.