prettier
Advanced tools
Comparing version 2.3.0 to 2.8.8
{ | ||
"name": "prettier", | ||
"version": "2.3.0", | ||
"version": "2.8.8", | ||
"description": "Prettier is an opinionated code formatter", | ||
"bin": "./bin-prettier.js", | ||
"repository": "prettier/prettier", | ||
"funding": "https://github.com/prettier/prettier?sponsor=1", | ||
"homepage": "https://prettier.io", | ||
@@ -19,6 +20,3 @@ "author": "James Long", | ||
"esm/*.mjs" | ||
], | ||
"scripts": { | ||
"prepublishOnly": "node -e \"assert.equal(require('.').version, require('..').version)\"" | ||
} | ||
] | ||
} |
@@ -1,1 +0,15 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.graphql=n())}(this,(function(){"use strict";var e=function(e,n){const t=new SyntaxError(e+" ("+n.start.line+":"+n.start.column+")");return t.loc=n,t};var n=function(...e){let n;for(const[t,i]of e.entries())try{return{result:i()}}catch(e){0===t&&(n=e)}return{error:n}};var t={hasPragma:function(e){return/^\s*#[^\S\n]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}};var i={locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}};function r(e){var n={exports:{}};return e(n,n.exports),n.exports}var o=function(e){return"object"==a(e)&&null!==e};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=Object.defineProperty({default:o},"__esModule",{value:!0}),c=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SYMBOL_TO_STRING_TAG=n.SYMBOL_ASYNC_ITERATOR=n.SYMBOL_ITERATOR=void 0;var t="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator";n.SYMBOL_ITERATOR=t;var i="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator";n.SYMBOL_ASYNC_ITERATOR=i;var r="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";n.SYMBOL_TO_STRING_TAG=r})),u=function(e,n){var t,i=/\r\n|[\n\r]/g,r=1,o=n+1;for(;(t=i.exec(e.body))&&t.index<n;)r+=1,o=n+1-(t.index+t[0].length);return{line:r,column:o}};var l=Object.defineProperty({getLocation:u},"__esModule",{value:!0}),d=function(e){return f(e.source,(0,l.getLocation)(e.source,e.start))},p=f;function f(e,n){var t=e.locationOffset.column-1,i=T(t)+e.body,r=n.line-1,o=e.locationOffset.line-1,a=n.line+o,s=1===n.line?t:0,c=n.column+s,u="".concat(e.name,":").concat(a,":").concat(c,"\n"),l=i.split(/\r\n|[\n\r]/g),d=l[r];if(d.length>120){for(var p=Math.floor(c/80),f=c%80,v=[],E=0;E<d.length;E+=80)v.push(d.slice(E,E+80));return u+h([["".concat(a),v[0]]].concat(v.slice(1,p+1).map((function(e){return["",e]})),[[" ",T(f-1)+"^"],["",v[p+1]]]))}return u+h([["".concat(a-1),l[r-1]],["".concat(a),d],["",T(c-1)+"^"],["".concat(a+1),l[r+1]]])}function h(e){var n=e.filter((function(e){return e[0],void 0!==e[1]})),t=Math.max.apply(Math,n.map((function(e){return e[0].length})));return n.map((function(e){var n,i=e[0],r=e[1];return T(t-(n=i).length)+n+(r?" | "+r:" |")})).join("\n")}function T(e){return Array(e+1).join(" ")}var v=Object.defineProperty({printLocation:d,printSourceLocation:p},"__esModule",{value:!0}),E=r((function(e,n){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.printError=y,n.GraphQLError=void 0;var i,r=(i=s)&&i.__esModule?i:{default:i};function o(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,n){return!n||"object"!==t(n)&&"function"!=typeof n?u(e):n}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){var n="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,i)}function i(){return p(e,arguments,T(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),h(i,e)})(e)}function p(e,n,t){return(p=f()?Reflect.construct:function(e,n,t){var i=[null];i.push.apply(i,n);var r=new(Function.bind.apply(e,i));return t&&h(r,t.prototype),r}).apply(null,arguments)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e,n){return(h=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&h(e,n)}(v,e);var n,t,i,s,d,p=(n=v,t=f(),function(){var e,i=T(n);if(t){var r=T(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return a(this,e)});function v(e,n,t,i,o,s,c){var d,f,h,T,E;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,v),E=p.call(this,e);var y,N=Array.isArray(n)?0!==n.length?n:void 0:n?[n]:void 0,m=t;!m&&N&&(m=null===(y=N[0].loc)||void 0===y?void 0:y.source);var k,_=i;!_&&N&&(_=N.reduce((function(e,n){return n.loc&&e.push(n.loc.start),e}),[])),_&&0===_.length&&(_=void 0),i&&t?k=i.map((function(e){return(0,l.getLocation)(t,e)})):N&&(k=N.reduce((function(e,n){return n.loc&&e.push((0,l.getLocation)(n.loc.source,n.loc.start)),e}),[]));var O=c;if(null==O&&null!=s){var I=s.extensions;(0,r.default)(I)&&(O=I)}return Object.defineProperties(u(E),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(d=k)&&void 0!==d?d:void 0,enumerable:null!=k},path:{value:null!=o?o:void 0,enumerable:null!=o},nodes:{value:null!=N?N:void 0},source:{value:null!==(f=m)&&void 0!==f?f:void 0},positions:{value:null!==(h=_)&&void 0!==h?h:void 0},originalError:{value:s},extensions:{value:null!==(T=O)&&void 0!==T?T:void 0,enumerable:null!=O}}),null!=s&&s.stack?(Object.defineProperty(u(E),"stack",{value:s.stack,writable:!0,configurable:!0}),a(E)):(Error.captureStackTrace?Error.captureStackTrace(u(E),v):Object.defineProperty(u(E),"stack",{value:Error().stack,writable:!0,configurable:!0}),E)}return i=v,(s=[{key:"toString",value:function(){return y(this)}},{key:c.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}])&&o(i.prototype,s),d&&o(i,d),v}(d(Error));function y(e){var n=e.message;if(e.nodes)for(var t=0,i=e.nodes;t<i.length;t++){var r=i[t];r.loc&&(n+="\n\n"+(0,v.printLocation)(r.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];n+="\n\n"+(0,v.printSourceLocation)(e.source,s)}return n}n.GraphQLError=E})),y=function(e,n,t){return new E.GraphQLError("Syntax Error: ".concat(t),void 0,e,[n])};var N,m=Object.defineProperty({syntaxError:y},"__esModule",{value:!0}),k=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;n.default=t})),_=function(e){return b(e,[])},O=(N=k)&&N.__esModule?N:{default:N};function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n){switch(I(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,n){if(-1!==n.indexOf(e))return"[Circular]";var t=[].concat(n,[e]),i=function(e){var n=e[String(O.default)];if("function"==typeof n)return n;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var r=i.call(e);if(r!==e)return"string"==typeof r?r:b(r,t)}else if(Array.isArray(e))return function(e,n){if(0===e.length)return"[]";if(n.length>2)return"[Array]";for(var t=Math.min(10,e.length),i=e.length-t,r=[],o=0;o<t;++o)r.push(b(e[o],n));1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items"));return"["+r.join(", ")+"]"}(e,t);return function(e,n){var t=Object.keys(e);if(0===t.length)return"{}";if(n.length>2)return"["+function(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){var t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return n}(e)+"]";return"{ "+t.map((function(t){return t+": "+b(e[t],n)})).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}var D=Object.defineProperty({default:_},"__esModule",{value:!0}),x=function(e,n,t){var i,r=e instanceof Error?e:new Error("Unexpected error value: "+(0,A.default)(e));if(Array.isArray(r.path))return r;return new E.GraphQLError(r.message,null!==(i=r.nodes)&&void 0!==i?i:n,r.source,r.positions,t,r)},A=function(e){return e&&e.__esModule?e:{default:e}}(D);var S=Object.defineProperty({locatedError:x},"__esModule",{value:!0}),K=function(e,n){if(!Boolean(e))throw new Error(n)};var g=Object.defineProperty({default:K},"__esModule",{value:!0}),L=function(e){var n;e||(0,P.default)(0,"Received null or undefined error.");var t=null!==(n=e.message)&&void 0!==n?n:"An unknown error occurred.",i=e.locations,r=e.path,o=e.extensions;return o?{message:t,locations:i,path:r,extensions:o}:{message:t,locations:i,path:r}},P=function(e){return e&&e.__esModule?e:{default:e}}(g);var R=Object.defineProperty({formatError:L},"__esModule",{value:!0}),C=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return E.GraphQLError}}),Object.defineProperty(n,"printError",{enumerable:!0,get:function(){return E.printError}}),Object.defineProperty(n,"syntaxError",{enumerable:!0,get:function(){return m.syntaxError}}),Object.defineProperty(n,"locatedError",{enumerable:!0,get:function(){return S.locatedError}}),Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return R.formatError}})})),F=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=function(e,n){return e instanceof n}})),M=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isSource=function(e){return(0,r.default)(e,s)},n.Source=void 0;var t=o(D),i=o(g),r=o(F);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=function(){function e(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||(0,i.default)(0,"Body must be a string. Received: ".concat((0,t.default)(e),".")),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,i.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,i.default)(0,"column in locationOffset is 1-indexed and must be positive.")}var n,r,o;return n=e,(r=[{key:c.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}])&&a(n.prototype,r),o&&a(n,o),e}();n.Source=s})),w=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Kind=void 0;var t=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});n.Kind=t})),j=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0;var t=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",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"});n.TokenKind=t})),B=function(e,n){if(!Boolean(e))throw new Error(null!=n?n:"Unexpected invariant triggered.")};var V=function(e){var n=e.prototype.toJSON;"function"==typeof n||(0,U.default)(0),e.prototype.inspect=n,Y.default&&(e.prototype[Y.default]=n)},U=G(Object.defineProperty({default:B},"__esModule",{value:!0})),Y=G(k);function G(e){return e&&e.__esModule?e:{default:e}}var J=Object.defineProperty({default:V},"__esModule",{value:!0}),X=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isNode=function(e){return null!=e&&"string"==typeof e.kind},n.Token=n.Location=void 0;var t=function(e){return e&&e.__esModule?e:{default:e}}(J);var i=function(){function e(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();n.Location=i,(0,t.default)(i);var r=function(){function e(e,n,t,i,r,o,a){this.kind=e,this.start=n,this.end=t,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();n.Token=r,(0,t.default)(r)})),Q=function(e){var n=e.split(/\r\n|[\n\r]/g),t=$(e);if(0!==t)for(var i=1;i<n.length;i++)n[i]=n[i].slice(t);var r=0;for(;r<n.length&&z(n[r]);)++r;var o=n.length;for(;o>r&&z(n[o-1]);)--o;return n.slice(r,o).join("\n")},q=$,H=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),r=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!i||o||a||t,c="";!s||i&&r||(c+="\n"+n);c+=n?e.replace(/\n/g,"\n"+n):e,s&&(c+="\n");return'"""'+c.replace(/"""/g,'\\"""')+'"""'};function z(e){for(var n=0;n<e.length;++n)if(" "!==e[n]&&"\t"!==e[n])return!1;return!0}function $(e){for(var n,t=!0,i=!0,r=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:t=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!t&&(null===o||r<o)&&(o=r),i=!1}return null!==(n=o)&&void 0!==n?n:0}var W=Object.defineProperty({dedentBlockStringValue:Q,getBlockStringIndentation:q,printBlockString:H},"__esModule",{value:!0}),Z=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isPunctuatorTokenKind=function(e){return e===j.TokenKind.BANG||e===j.TokenKind.DOLLAR||e===j.TokenKind.AMP||e===j.TokenKind.PAREN_L||e===j.TokenKind.PAREN_R||e===j.TokenKind.SPREAD||e===j.TokenKind.COLON||e===j.TokenKind.EQUALS||e===j.TokenKind.AT||e===j.TokenKind.BRACKET_L||e===j.TokenKind.BRACKET_R||e===j.TokenKind.BRACE_L||e===j.TokenKind.PIPE||e===j.TokenKind.BRACE_R},n.Lexer=void 0;var t=function(){function e(e){var n=new X.Token(j.TokenKind.SOF,0,0,0,0,null);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var n=e.prototype;return n.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},n.lookahead=function(){var e=this.token;if(e.kind!==j.TokenKind.EOF)do{var n;e=null!==(n=e.next)&&void 0!==n?n:e.next=r(this,e)}while(e.kind===j.TokenKind.COMMENT);return e},e}();function i(e){return isNaN(e)?j.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function r(e,n){for(var t=e.source,i=t.body,r=i.length,c=n.end;c<r;){var d=i.charCodeAt(c),f=e.line,h=1+c-e.lineStart;switch(d){case 65279:case 9:case 32:case 44:++c;continue;case 10:++c,++e.line,e.lineStart=c;continue;case 13:10===i.charCodeAt(c+1)?c+=2:++c,++e.line,e.lineStart=c;continue;case 33:return new X.Token(j.TokenKind.BANG,c,c+1,f,h,n);case 35:return a(t,c,f,h,n);case 36:return new X.Token(j.TokenKind.DOLLAR,c,c+1,f,h,n);case 38:return new X.Token(j.TokenKind.AMP,c,c+1,f,h,n);case 40:return new X.Token(j.TokenKind.PAREN_L,c,c+1,f,h,n);case 41:return new X.Token(j.TokenKind.PAREN_R,c,c+1,f,h,n);case 46:if(46===i.charCodeAt(c+1)&&46===i.charCodeAt(c+2))return new X.Token(j.TokenKind.SPREAD,c,c+3,f,h,n);break;case 58:return new X.Token(j.TokenKind.COLON,c,c+1,f,h,n);case 61:return new X.Token(j.TokenKind.EQUALS,c,c+1,f,h,n);case 64:return new X.Token(j.TokenKind.AT,c,c+1,f,h,n);case 91:return new X.Token(j.TokenKind.BRACKET_L,c,c+1,f,h,n);case 93:return new X.Token(j.TokenKind.BRACKET_R,c,c+1,f,h,n);case 123:return new X.Token(j.TokenKind.BRACE_L,c,c+1,f,h,n);case 124:return new X.Token(j.TokenKind.PIPE,c,c+1,f,h,n);case 125:return new X.Token(j.TokenKind.BRACE_R,c,c+1,f,h,n);case 34:return 34===i.charCodeAt(c+1)&&34===i.charCodeAt(c+2)?l(t,c,f,h,n,e):u(t,c,f,h,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s(t,c,d,f,h,n);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return p(t,c,f,h,n)}throw(0,m.syntaxError)(t,c,o(d))}var T=e.line,v=1+c-e.lineStart;return new X.Token(j.TokenKind.EOF,r,r,T,v,n)}function o(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(i(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(i(e),".")}function a(e,n,t,i,r){var o,a=e.body,s=n;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new X.Token(j.TokenKind.COMMENT,n,s,t,i,r,a.slice(n+1,s))}function s(e,n,t,r,o,a){var s=e.body,u=t,l=n,d=!1;if(45===u&&(u=s.charCodeAt(++l)),48===u){if((u=s.charCodeAt(++l))>=48&&u<=57)throw(0,m.syntaxError)(e,l,"Invalid number, unexpected digit after 0: ".concat(i(u),"."))}else l=c(e,l,u),u=s.charCodeAt(l);if(46===u&&(d=!0,u=s.charCodeAt(++l),l=c(e,l,u),u=s.charCodeAt(l)),69!==u&&101!==u||(d=!0,43!==(u=s.charCodeAt(++l))&&45!==u||(u=s.charCodeAt(++l)),l=c(e,l,u),u=s.charCodeAt(l)),46===u||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(u))throw(0,m.syntaxError)(e,l,"Invalid number, expected digit but got: ".concat(i(u),"."));return new X.Token(d?j.TokenKind.FLOAT:j.TokenKind.INT,n,l,r,o,a,s.slice(n,l))}function c(e,n,t){var r=e.body,o=n,a=t;if(a>=48&&a<=57){do{a=r.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw(0,m.syntaxError)(e,o,"Invalid number, expected digit but got: ".concat(i(a),"."))}function u(e,n,t,r,o){for(var a,s,c,u,l=e.body,p=n+1,f=p,h=0,T="";p<l.length&&!isNaN(h=l.charCodeAt(p))&&10!==h&&13!==h;){if(34===h)return T+=l.slice(f,p),new X.Token(j.TokenKind.STRING,n,p+1,t,r,o,T);if(h<32&&9!==h)throw(0,m.syntaxError)(e,p,"Invalid character within String: ".concat(i(h),"."));if(++p,92===h){switch(T+=l.slice(f,p-1),h=l.charCodeAt(p)){case 34:T+='"';break;case 47:T+="/";break;case 92:T+="\\";break;case 98:T+="\b";break;case 102:T+="\f";break;case 110:T+="\n";break;case 114:T+="\r";break;case 116:T+="\t";break;case 117:var v=(a=l.charCodeAt(p+1),s=l.charCodeAt(p+2),c=l.charCodeAt(p+3),u=l.charCodeAt(p+4),d(a)<<12|d(s)<<8|d(c)<<4|d(u));if(v<0){var E=l.slice(p+1,p+5);throw(0,m.syntaxError)(e,p,"Invalid character escape sequence: \\u".concat(E,"."))}T+=String.fromCharCode(v),p+=4;break;default:throw(0,m.syntaxError)(e,p,"Invalid character escape sequence: \\".concat(String.fromCharCode(h),"."))}f=++p}}throw(0,m.syntaxError)(e,p,"Unterminated string.")}function l(e,n,t,r,o,a){for(var s=e.body,c=n+3,u=c,l=0,d="";c<s.length&&!isNaN(l=s.charCodeAt(c));){if(34===l&&34===s.charCodeAt(c+1)&&34===s.charCodeAt(c+2))return d+=s.slice(u,c),new X.Token(j.TokenKind.BLOCK_STRING,n,c+3,t,r,o,(0,W.dedentBlockStringValue)(d));if(l<32&&9!==l&&10!==l&&13!==l)throw(0,m.syntaxError)(e,c,"Invalid character within String: ".concat(i(l),"."));10===l?(++c,++a.line,a.lineStart=c):13===l?(10===s.charCodeAt(c+1)?c+=2:++c,++a.line,a.lineStart=c):92===l&&34===s.charCodeAt(c+1)&&34===s.charCodeAt(c+2)&&34===s.charCodeAt(c+3)?(d+=s.slice(u,c)+'"""',u=c+=4):++c}throw(0,m.syntaxError)(e,c,"Unterminated string.")}function d(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function p(e,n,t,i,r){for(var o=e.body,a=o.length,s=n+1,c=0;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new X.Token(j.TokenKind.NAME,n,s,t,i,r,o.slice(n,s))}n.Lexer=t})),ee=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectiveLocation=void 0;var t=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"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"});n.DirectiveLocation=t})),ne=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parse=function(e,n){return new t(e,n).parseDocument()},n.parseValue=function(e,n){var i=new t(e,n);i.expectToken(j.TokenKind.SOF);var r=i.parseValueLiteral(!1);return i.expectToken(j.TokenKind.EOF),r},n.parseType=function(e,n){var i=new t(e,n);i.expectToken(j.TokenKind.SOF);var r=i.parseTypeReference();return i.expectToken(j.TokenKind.EOF),r},n.Parser=void 0;var t=function(){function e(e,n){var t=(0,M.isSource)(e)?e:new M.Source(e);this._lexer=new Z.Lexer(t),this._options=n}var n=e.prototype;return n.parseName=function(){var e=this.expectToken(j.TokenKind.NAME);return{kind:w.Kind.NAME,value:e.value,loc:this.loc(e)}},n.parseDocument=function(){var e=this._lexer.token;return{kind:w.Kind.DOCUMENT,definitions:this.many(j.TokenKind.SOF,this.parseDefinition,j.TokenKind.EOF),loc:this.loc(e)}},n.parseDefinition=function(){if(this.peek(j.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(j.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},n.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(j.TokenKind.BRACE_L))return{kind:w.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var n,t=this.parseOperationType();return this.peek(j.TokenKind.NAME)&&(n=this.parseName()),{kind:w.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseOperationType=function(){var e=this.expectToken(j.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},n.parseVariableDefinitions=function(){return this.optionalMany(j.TokenKind.PAREN_L,this.parseVariableDefinition,j.TokenKind.PAREN_R)},n.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:w.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(j.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(j.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},n.parseVariable=function(){var e=this._lexer.token;return this.expectToken(j.TokenKind.DOLLAR),{kind:w.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},n.parseSelectionSet=function(){var e=this._lexer.token;return{kind:w.Kind.SELECTION_SET,selections:this.many(j.TokenKind.BRACE_L,this.parseSelection,j.TokenKind.BRACE_R),loc:this.loc(e)}},n.parseSelection=function(){return this.peek(j.TokenKind.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var e,n,t=this._lexer.token,i=this.parseName();return this.expectOptionalToken(j.TokenKind.COLON)?(e=i,n=this.parseName()):n=i,{kind:w.Kind.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(j.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},n.parseArguments=function(e){var n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(j.TokenKind.PAREN_L,n,j.TokenKind.PAREN_R)},n.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(j.TokenKind.COLON),{kind:w.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(e)}},n.parseConstArgument=function(){var e=this._lexer.token;return{kind:w.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(j.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},n.parseFragment=function(){var e=this._lexer.token;this.expectToken(j.TokenKind.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(j.TokenKind.NAME)?{kind:w.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:w.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentDefinition=function(){var e,n=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:w.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}:{kind:w.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},n.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},n.parseValueLiteral=function(e){var n=this._lexer.token;switch(n.kind){case j.TokenKind.BRACKET_L:return this.parseList(e);case j.TokenKind.BRACE_L:return this.parseObject(e);case j.TokenKind.INT:return this._lexer.advance(),{kind:w.Kind.INT,value:n.value,loc:this.loc(n)};case j.TokenKind.FLOAT:return this._lexer.advance(),{kind:w.Kind.FLOAT,value:n.value,loc:this.loc(n)};case j.TokenKind.STRING:case j.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case j.TokenKind.NAME:switch(this._lexer.advance(),n.value){case"true":return{kind:w.Kind.BOOLEAN,value:!0,loc:this.loc(n)};case"false":return{kind:w.Kind.BOOLEAN,value:!1,loc:this.loc(n)};case"null":return{kind:w.Kind.NULL,loc:this.loc(n)};default:return{kind:w.Kind.ENUM,value:n.value,loc:this.loc(n)}}case j.TokenKind.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:w.Kind.STRING,value:e.value,block:e.kind===j.TokenKind.BLOCK_STRING,loc:this.loc(e)}},n.parseList=function(e){var n=this,t=this._lexer.token;return{kind:w.Kind.LIST,values:this.any(j.TokenKind.BRACKET_L,(function(){return n.parseValueLiteral(e)}),j.TokenKind.BRACKET_R),loc:this.loc(t)}},n.parseObject=function(e){var n=this,t=this._lexer.token;return{kind:w.Kind.OBJECT,fields:this.any(j.TokenKind.BRACE_L,(function(){return n.parseObjectField(e)}),j.TokenKind.BRACE_R),loc:this.loc(t)}},n.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(j.TokenKind.COLON),{kind:w.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e),loc:this.loc(n)}},n.parseDirectives=function(e){for(var n=[];this.peek(j.TokenKind.AT);)n.push(this.parseDirective(e));return n},n.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(j.TokenKind.AT),{kind:w.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(n)}},n.parseTypeReference=function(){var e,n=this._lexer.token;return this.expectOptionalToken(j.TokenKind.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(j.TokenKind.BRACKET_R),e={kind:w.Kind.LIST_TYPE,type:e,loc:this.loc(n)}):e=this.parseNamedType(),this.expectOptionalToken(j.TokenKind.BANG)?{kind:w.Kind.NON_NULL_TYPE,type:e,loc:this.loc(n)}:e},n.parseNamedType=function(){var e=this._lexer.token;return{kind:w.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},n.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===j.TokenKind.NAME)switch(e.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()}throw this.unexpected(e)},n.peekDescription=function(){return this.peek(j.TokenKind.STRING)||this.peek(j.TokenKind.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");var t=this.parseDirectives(!0),i=this.many(j.TokenKind.BRACE_L,this.parseOperationTypeDefinition,j.TokenKind.BRACE_R);return{kind:w.Kind.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:i,loc:this.loc(e)}},n.parseOperationTypeDefinition=function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(j.TokenKind.COLON);var t=this.parseNamedType();return{kind:w.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t,loc:this.loc(e)}},n.parseScalarTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var t=this.parseName(),i=this.parseDirectives(!0);return{kind:w.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:i,loc:this.loc(e)}},n.parseObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:w.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},n.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var n=[];this.expectOptionalToken(j.TokenKind.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(j.TokenKind.AMP)||this.peek(j.TokenKind.NAME));return n}return this.delimitedMany(j.TokenKind.AMP,this.parseNamedType)},n.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(j.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===j.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(j.TokenKind.BRACE_L,this.parseFieldDefinition,j.TokenKind.BRACE_R)},n.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseArgumentDefs();this.expectToken(j.TokenKind.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:w.Kind.FIELD_DEFINITION,description:n,name:t,arguments:i,type:r,directives:o,loc:this.loc(e)}},n.parseArgumentDefs=function(){return this.optionalMany(j.TokenKind.PAREN_L,this.parseInputValueDef,j.TokenKind.PAREN_R)},n.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(j.TokenKind.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(j.TokenKind.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:w.Kind.INPUT_VALUE_DEFINITION,description:n,name:t,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},n.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:w.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},n.parseUnionTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:w.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:i,types:r,loc:this.loc(e)}},n.parseUnionMemberTypes=function(){return this.expectOptionalToken(j.TokenKind.EQUALS)?this.delimitedMany(j.TokenKind.PIPE,this.parseNamedType):[]},n.parseEnumTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:w.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:i,values:r,loc:this.loc(e)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(j.TokenKind.BRACE_L,this.parseEnumValueDefinition,j.TokenKind.BRACE_R)},n.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseDirectives(!0);return{kind:w.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:i,loc:this.loc(e)}},n.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:w.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:i,fields:r,loc:this.loc(e)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(j.TokenKind.BRACE_L,this.parseInputValueDef,j.TokenKind.BRACE_R)},n.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===j.TokenKind.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)},n.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.optionalMany(j.TokenKind.BRACE_L,this.parseOperationTypeDefinition,j.TokenKind.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return{kind:w.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),t=this.parseDirectives(!0);if(0===t.length)throw this.unexpected();return{kind:w.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t,loc:this.loc(e)}},n.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===t.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:w.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:r,loc:this.loc(e)}},n.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===t.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:w.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:r,loc:this.loc(e)}},n.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:w.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:i,loc:this.loc(e)}},n.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:w.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:i,loc:this.loc(e)}},n.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:w.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:i,loc:this.loc(e)}},n.parseDirectiveDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(j.TokenKind.AT);var t=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:w.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},n.parseDirectiveLocations=function(){return this.delimitedMany(j.TokenKind.PIPE,this.parseDirectiveLocation)},n.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(void 0!==ee.DirectiveLocation[n.value])return n;throw this.unexpected(e)},n.loc=function(e){var n;if(!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation))return new X.Location(e,this._lexer.lastToken,this._lexer.source)},n.peek=function(e){return this._lexer.token.kind===e},n.expectToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n;throw(0,m.syntaxError)(this._lexer.source,n.start,"Expected ".concat(r(e),", found ").concat(i(n),"."))},n.expectOptionalToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n},n.expectKeyword=function(e){var n=this._lexer.token;if(n.kind!==j.TokenKind.NAME||n.value!==e)throw(0,m.syntaxError)(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(i(n),"."));this._lexer.advance()},n.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===j.TokenKind.NAME&&n.value===e&&(this._lexer.advance(),!0)},n.unexpected=function(e){var n=null!=e?e:this._lexer.token;return(0,m.syntaxError)(this._lexer.source,n.start,"Unexpected ".concat(i(n),"."))},n.any=function(e,n,t){this.expectToken(e);for(var i=[];!this.expectOptionalToken(t);)i.push(n.call(this));return i},n.optionalMany=function(e,n,t){if(this.expectOptionalToken(e)){var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(t));return i}return[]},n.many=function(e,n,t){this.expectToken(e);var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(t));return i},n.delimitedMany=function(e,n){this.expectOptionalToken(e);var t=[];do{t.push(n.call(this))}while(this.expectOptionalToken(e));return t},e}();function i(e){var n=e.value;return r(e.kind)+(null!=n?' "'.concat(n,'"'):"")}function r(e){return(0,Z.isPunctuatorTokenKind)(e)?'"'.concat(e,'"'):e}n.Parser=t})),te=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.visit=function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,s=void 0,c=Array.isArray(e),u=[e],l=-1,d=[],p=void 0,f=void 0,h=void 0,T=[],v=[],E=e;do{var y=++l===u.length,N=y&&0!==d.length;if(y){if(f=0===v.length?void 0:T[T.length-1],p=h,h=v.pop(),N){if(c)p=p.slice();else{for(var m={},k=0,_=Object.keys(p);k<_.length;k++){var O=_[k];m[O]=p[O]}p=m}for(var I=0,b=0;b<d.length;b++){var D=d[b][0],x=d[b][1];c&&(D-=I),c&&null===x?(p.splice(D,1),I++):p[D]=x}}l=s.index,u=s.keys,d=s.edits,c=s.inArray,s=s.prev}else{if(f=h?c?l:u[l]:void 0,null==(p=h?h[f]:E))continue;h&&T.push(f)}var A,S=void 0;if(!Array.isArray(p)){if(!(0,X.isNode)(p))throw new Error("Invalid AST Node: ".concat((0,t.default)(p),"."));var K=o(n,p.kind,y);if(K){if((S=K.call(n,p,f,h,T,v))===r)break;if(!1===S){if(!y){T.pop();continue}}else if(void 0!==S&&(d.push([f,S]),!y)){if(!(0,X.isNode)(S)){T.pop();continue}p=S}}}if(void 0===S&&N&&d.push([f,p]),y)T.pop();else s={inArray:c,index:l,keys:u,edits:d,prev:s},c=Array.isArray(p),u=c?p:null!==(A=a[p.kind])&&void 0!==A?A:[],l=-1,d=[],h&&v.push(h),h=p}while(void 0!==s);0!==d.length&&(E=d[d.length-1][1]);return E},n.visitInParallel=function(e){var n=new Array(e.length);return{enter:function(t){for(var i=0;i<e.length;i++)if(null==n[i]){var a=o(e[i],t.kind,!1);if(a){var s=a.apply(e[i],arguments);if(!1===s)n[i]=t;else if(s===r)n[i]=r;else if(void 0!==s)return s}}},leave:function(t){for(var i=0;i<e.length;i++)if(null==n[i]){var a=o(e[i],t.kind,!0);if(a){var s=a.apply(e[i],arguments);if(s===r)n[i]=r;else if(void 0!==s&&!1!==s)return s}}else n[i]===t&&(n[i]=null)}}},n.getVisitFn=o,n.BREAK=n.QueryDocumentKeys=void 0;var t=function(e){return e&&e.__esModule?e:{default:e}}(D);var i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};n.QueryDocumentKeys=i;var r=Object.freeze({});function o(e,n,t){var i=e[n];if(i){if(!t&&"function"==typeof i)return i;var r=t?i.leave:i.enter;if("function"==typeof r)return r}else{var o=t?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[n];if("function"==typeof a)return a}}}n.BREAK=r})),ie=function(e){return(0,te.visit)(e,{leave:re})};var re={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return ae(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var n=e.operation,t=e.name,i=ce("(",ae(e.variableDefinitions,", "),")"),r=ae(e.directives," "),o=e.selectionSet;return t||r||i||"query"!==n?ae([n,ae([t,i]),r,o]," "):o},VariableDefinition:function(e){var n=e.variable,t=e.type,i=e.defaultValue,r=e.directives;return n+": "+t+ce(" = ",i)+ce(" ",ae(r," "))},SelectionSet:function(e){return se(e.selections)},Field:function(e){var n=e.alias,t=e.name,i=e.arguments,r=e.directives,o=e.selectionSet,a=ce("",n,": ")+t,s=a+ce("(",ae(i,", "),")");return s.length>80&&(s=a+ce("(\n",ue(ae(i,"\n")),"\n)")),ae([s,ae(r," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+ce(" ",ae(e.directives," "))},InlineFragment:function(e){var n=e.typeCondition,t=e.directives,i=e.selectionSet;return ae(["...",ce("on ",n),ae(t," "),i]," ")},FragmentDefinition:function(e){var n=e.name,t=e.typeCondition,i=e.variableDefinitions,r=e.directives,o=e.selectionSet;return"fragment ".concat(n).concat(ce("(",ae(i,", "),")")," ")+"on ".concat(t," ").concat(ce("",ae(r," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,n){var t=e.value;return e.block?(0,W.printBlockString)(t,"description"===n?"":" "):JSON.stringify(t)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+ae(e.values,", ")+"]"},ObjectValue:function(e){return"{"+ae(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+ce("(",ae(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:oe((function(e){var n=e.directives,t=e.operationTypes;return ae(["schema",ae(n," "),se(t)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:oe((function(e){return ae(["scalar",e.name,ae(e.directives," ")]," ")})),ObjectTypeDefinition:oe((function(e){var n=e.name,t=e.interfaces,i=e.directives,r=e.fields;return ae(["type",n,ce("implements ",ae(t," & ")),ae(i," "),se(r)]," ")})),FieldDefinition:oe((function(e){var n=e.name,t=e.arguments,i=e.type,r=e.directives;return n+(de(t)?ce("(\n",ue(ae(t,"\n")),"\n)"):ce("(",ae(t,", "),")"))+": "+i+ce(" ",ae(r," "))})),InputValueDefinition:oe((function(e){var n=e.name,t=e.type,i=e.defaultValue,r=e.directives;return ae([n+": "+t,ce("= ",i),ae(r," ")]," ")})),InterfaceTypeDefinition:oe((function(e){var n=e.name,t=e.interfaces,i=e.directives,r=e.fields;return ae(["interface",n,ce("implements ",ae(t," & ")),ae(i," "),se(r)]," ")})),UnionTypeDefinition:oe((function(e){var n=e.name,t=e.directives,i=e.types;return ae(["union",n,ae(t," "),i&&0!==i.length?"= "+ae(i," | "):""]," ")})),EnumTypeDefinition:oe((function(e){var n=e.name,t=e.directives,i=e.values;return ae(["enum",n,ae(t," "),se(i)]," ")})),EnumValueDefinition:oe((function(e){return ae([e.name,ae(e.directives," ")]," ")})),InputObjectTypeDefinition:oe((function(e){var n=e.name,t=e.directives,i=e.fields;return ae(["input",n,ae(t," "),se(i)]," ")})),DirectiveDefinition:oe((function(e){var n=e.name,t=e.arguments,i=e.repeatable,r=e.locations;return"directive @"+n+(de(t)?ce("(\n",ue(ae(t,"\n")),"\n)"):ce("(",ae(t,", "),")"))+(i?" repeatable":"")+" on "+ae(r," | ")})),SchemaExtension:function(e){var n=e.directives,t=e.operationTypes;return ae(["extend schema",ae(n," "),se(t)]," ")},ScalarTypeExtension:function(e){return ae(["extend scalar",e.name,ae(e.directives," ")]," ")},ObjectTypeExtension:function(e){var n=e.name,t=e.interfaces,i=e.directives,r=e.fields;return ae(["extend type",n,ce("implements ",ae(t," & ")),ae(i," "),se(r)]," ")},InterfaceTypeExtension:function(e){var n=e.name,t=e.interfaces,i=e.directives,r=e.fields;return ae(["extend interface",n,ce("implements ",ae(t," & ")),ae(i," "),se(r)]," ")},UnionTypeExtension:function(e){var n=e.name,t=e.directives,i=e.types;return ae(["extend union",n,ae(t," "),i&&0!==i.length?"= "+ae(i," | "):""]," ")},EnumTypeExtension:function(e){var n=e.name,t=e.directives,i=e.values;return ae(["extend enum",n,ae(t," "),se(i)]," ")},InputObjectTypeExtension:function(e){var n=e.name,t=e.directives,i=e.fields;return ae(["extend input",n,ae(t," "),se(i)]," ")}};function oe(e){return function(n){return ae([n.description,e(n)],"\n")}}function ae(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(n=null==e?void 0:e.filter((function(e){return e})).join(t))&&void 0!==n?n:""}function se(e){return ce("{\n",ue(ae(e,"\n")),"\n}")}function ce(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=n&&""!==n?e+n+t:""}function ue(e){return ce(" ",e.replace(/\n/g,"\n "))}function le(e){return-1!==e.indexOf("\n")}function de(e){return null!=e&&e.some(le)}var pe=Object.defineProperty({print:ie},"__esModule",{value:!0}),fe=function(e){return _e(e)||Oe(e)||be(e)},he=_e,Te=function(e){return e.kind===w.Kind.FIELD||e.kind===w.Kind.FRAGMENT_SPREAD||e.kind===w.Kind.INLINE_FRAGMENT},ve=function(e){return e.kind===w.Kind.VARIABLE||e.kind===w.Kind.INT||e.kind===w.Kind.FLOAT||e.kind===w.Kind.STRING||e.kind===w.Kind.BOOLEAN||e.kind===w.Kind.NULL||e.kind===w.Kind.ENUM||e.kind===w.Kind.LIST||e.kind===w.Kind.OBJECT},Ee=function(e){return e.kind===w.Kind.NAMED_TYPE||e.kind===w.Kind.LIST_TYPE||e.kind===w.Kind.NON_NULL_TYPE},ye=Oe,Ne=Ie,me=be,ke=De;function _e(e){return e.kind===w.Kind.OPERATION_DEFINITION||e.kind===w.Kind.FRAGMENT_DEFINITION}function Oe(e){return e.kind===w.Kind.SCHEMA_DEFINITION||Ie(e)||e.kind===w.Kind.DIRECTIVE_DEFINITION}function Ie(e){return e.kind===w.Kind.SCALAR_TYPE_DEFINITION||e.kind===w.Kind.OBJECT_TYPE_DEFINITION||e.kind===w.Kind.INTERFACE_TYPE_DEFINITION||e.kind===w.Kind.UNION_TYPE_DEFINITION||e.kind===w.Kind.ENUM_TYPE_DEFINITION||e.kind===w.Kind.INPUT_OBJECT_TYPE_DEFINITION}function be(e){return e.kind===w.Kind.SCHEMA_EXTENSION||De(e)}function De(e){return e.kind===w.Kind.SCALAR_TYPE_EXTENSION||e.kind===w.Kind.OBJECT_TYPE_EXTENSION||e.kind===w.Kind.INTERFACE_TYPE_EXTENSION||e.kind===w.Kind.UNION_TYPE_EXTENSION||e.kind===w.Kind.ENUM_TYPE_EXTENSION||e.kind===w.Kind.INPUT_OBJECT_TYPE_EXTENSION}var xe=Object.defineProperty({isDefinitionNode:fe,isExecutableDefinitionNode:he,isSelectionNode:Te,isValueNode:ve,isTypeNode:Ee,isTypeSystemDefinitionNode:ye,isTypeDefinitionNode:Ne,isTypeSystemExtensionNode:me,isTypeExtensionNode:ke},"__esModule",{value:!0}),Ae=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Source",{enumerable:!0,get:function(){return M.Source}}),Object.defineProperty(n,"getLocation",{enumerable:!0,get:function(){return l.getLocation}}),Object.defineProperty(n,"printLocation",{enumerable:!0,get:function(){return v.printLocation}}),Object.defineProperty(n,"printSourceLocation",{enumerable:!0,get:function(){return v.printSourceLocation}}),Object.defineProperty(n,"Kind",{enumerable:!0,get:function(){return w.Kind}}),Object.defineProperty(n,"TokenKind",{enumerable:!0,get:function(){return j.TokenKind}}),Object.defineProperty(n,"Lexer",{enumerable:!0,get:function(){return Z.Lexer}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return ne.parse}}),Object.defineProperty(n,"parseValue",{enumerable:!0,get:function(){return ne.parseValue}}),Object.defineProperty(n,"parseType",{enumerable:!0,get:function(){return ne.parseType}}),Object.defineProperty(n,"print",{enumerable:!0,get:function(){return pe.print}}),Object.defineProperty(n,"visit",{enumerable:!0,get:function(){return te.visit}}),Object.defineProperty(n,"visitInParallel",{enumerable:!0,get:function(){return te.visitInParallel}}),Object.defineProperty(n,"getVisitFn",{enumerable:!0,get:function(){return te.getVisitFn}}),Object.defineProperty(n,"BREAK",{enumerable:!0,get:function(){return te.BREAK}}),Object.defineProperty(n,"Location",{enumerable:!0,get:function(){return X.Location}}),Object.defineProperty(n,"Token",{enumerable:!0,get:function(){return X.Token}}),Object.defineProperty(n,"isDefinitionNode",{enumerable:!0,get:function(){return xe.isDefinitionNode}}),Object.defineProperty(n,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return xe.isExecutableDefinitionNode}}),Object.defineProperty(n,"isSelectionNode",{enumerable:!0,get:function(){return xe.isSelectionNode}}),Object.defineProperty(n,"isValueNode",{enumerable:!0,get:function(){return xe.isValueNode}}),Object.defineProperty(n,"isTypeNode",{enumerable:!0,get:function(){return xe.isTypeNode}}),Object.defineProperty(n,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return xe.isTypeSystemDefinitionNode}}),Object.defineProperty(n,"isTypeDefinitionNode",{enumerable:!0,get:function(){return xe.isTypeDefinitionNode}}),Object.defineProperty(n,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return xe.isTypeSystemExtensionNode}}),Object.defineProperty(n,"isTypeExtensionNode",{enumerable:!0,get:function(){return xe.isTypeExtensionNode}}),Object.defineProperty(n,"DirectiveLocation",{enumerable:!0,get:function(){return ee.DirectiveLocation}})}));const{hasPragma:Se}=t,{locStart:Ke,locEnd:ge}=i;function Le(e){if(e&&"object"==typeof e){delete e.startToken,delete e.endToken,delete e.prev,delete e.next;for(const n in e)Le(e[n])}return e}const Pe={allowLegacySDLImplementsInterfaces:!1,experimentalFragmentVariables:!0};function Re(n){const{GraphQLError:t}=C;if(n instanceof t){const{message:t,locations:[i]}=n;return e(t,{start:i})}return n}return{parsers:{graphql:{parse:function(e){const{parse:t}=Ae,{result:i,error:r}=n((()=>t(e,Object.assign({},Pe))),(()=>t(e,Object.assign({},Pe,{allowLegacySDLImplementsInterfaces:!0}))));if(!i)throw Re(r);return i.comments=function(e){const n=[],{startToken:t}=e.loc;let{next:i}=t;for(;"<EOF>"!==i.kind;)"Comment"===i.kind&&(Object.assign(i,{column:i.column-1}),n.push(i)),i=i.next;return n}(i),Le(i),i},astFormat:"graphql",hasPragma:Se,locStart:Ke,locEnd:ge}}}})); | ||
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.graphql=e()}})(function(){"use strict";var oe=(a,d)=>()=>(d||a((d={exports:{}}).exports,d),d.exports);var be=oe((Ce,ae)=>{var H=Object.getOwnPropertyNames,se=(a,d)=>function(){return a&&(d=(0,a[H(a)[0]])(a=0)),d},L=(a,d)=>function(){return d||(0,a[H(a)[0]])((d={exports:{}}).exports,d),d.exports},K=se({"<define:process>"(){}}),ce=L({"src/common/parser-create-error.js"(a,d){"use strict";K();function i(c,r){let _=new SyntaxError(c+" ("+r.start.line+":"+r.start.column+")");return _.loc=r,_}d.exports=i}}),ue=L({"src/utils/try-combinations.js"(a,d){"use strict";K();function i(){let c;for(var r=arguments.length,_=new Array(r),E=0;E<r;E++)_[E]=arguments[E];for(let[k,O]of _.entries())try{return{result:O()}}catch(A){k===0&&(c=A)}return{error:c}}d.exports=i}}),le=L({"src/language-graphql/pragma.js"(a,d){"use strict";K();function i(r){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(r)}function c(r){return`# @format | ||
`+r}d.exports={hasPragma:i,insertPragma:c}}}),pe=L({"src/language-graphql/loc.js"(a,d){"use strict";K();function i(r){return typeof r.start=="number"?r.start:r.loc&&r.loc.start}function c(r){return typeof r.end=="number"?r.end:r.loc&&r.loc.end}d.exports={locStart:i,locEnd:c}}}),fe=L({"node_modules/graphql/jsutils/isObjectLike.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.default=i;function d(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(_){return typeof _}:d=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},d(c)}function i(c){return d(c)=="object"&&c!==null}}}),z=L({"node_modules/graphql/polyfills/symbols.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.SYMBOL_TO_STRING_TAG=a.SYMBOL_ASYNC_ITERATOR=a.SYMBOL_ITERATOR=void 0;var d=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator";a.SYMBOL_ITERATOR=d;var i=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator";a.SYMBOL_ASYNC_ITERATOR=i;var c=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";a.SYMBOL_TO_STRING_TAG=c}}),$=L({"node_modules/graphql/language/location.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.getLocation=d;function d(i,c){for(var r=/\r\n|[\n\r]/g,_=1,E=c+1,k;(k=r.exec(i.body))&&k.index<c;)_+=1,E=c+1-(k.index+k[0].length);return{line:_,column:E}}}}),de=L({"node_modules/graphql/language/printLocation.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.printLocation=i,a.printSourceLocation=c;var d=$();function i(k){return c(k.source,(0,d.getLocation)(k.source,k.start))}function c(k,O){var A=k.locationOffset.column-1,N=_(A)+k.body,g=O.line-1,D=k.locationOffset.line-1,v=O.line+D,I=O.line===1?A:0,s=O.column+I,p="".concat(k.name,":").concat(v,":").concat(s,` | ||
`),e=N.split(/\r\n|[\n\r]/g),n=e[g];if(n.length>120){for(var t=Math.floor(s/80),u=s%80,y=[],f=0;f<n.length;f+=80)y.push(n.slice(f,f+80));return p+r([["".concat(v),y[0]]].concat(y.slice(1,t+1).map(function(m){return["",m]}),[[" ",_(u-1)+"^"],["",y[t+1]]]))}return p+r([["".concat(v-1),e[g-1]],["".concat(v),n],["",_(s-1)+"^"],["".concat(v+1),e[g+1]]])}function r(k){var O=k.filter(function(N){var g=N[0],D=N[1];return D!==void 0}),A=Math.max.apply(Math,O.map(function(N){var g=N[0];return g.length}));return O.map(function(N){var g=N[0],D=N[1];return E(A,g)+(D?" | "+D:" |")}).join(` | ||
`)}function _(k){return Array(k+1).join(" ")}function E(k,O){return _(k-O.length)+O}}}),W=L({"node_modules/graphql/error/GraphQLError.js"(a){"use strict";K();function d(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(o){return typeof o}:d=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},d(f)}Object.defineProperty(a,"__esModule",{value:!0}),a.printError=y,a.GraphQLError=void 0;var i=E(fe()),c=z(),r=$(),_=de();function E(f){return f&&f.__esModule?f:{default:f}}function k(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function O(f,m){for(var o=0;o<m.length;o++){var h=m[o];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}function A(f,m,o){return m&&O(f.prototype,m),o&&O(f,o),f}function N(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),m&&n(f,m)}function g(f){var m=p();return function(){var h=t(f),l;if(m){var T=t(this).constructor;l=Reflect.construct(h,arguments,T)}else l=h.apply(this,arguments);return D(this,l)}}function D(f,m){return m&&(d(m)==="object"||typeof m=="function")?m:v(f)}function v(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function I(f){var m=typeof Map=="function"?new Map:void 0;return I=function(h){if(h===null||!e(h))return h;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(typeof m<"u"){if(m.has(h))return m.get(h);m.set(h,l)}function l(){return s(h,arguments,t(this).constructor)}return l.prototype=Object.create(h.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),n(l,h)},I(f)}function s(f,m,o){return p()?s=Reflect.construct:s=function(l,T,S){var x=[null];x.push.apply(x,T);var b=Function.bind.apply(l,x),M=new b;return S&&n(M,S.prototype),M},s.apply(null,arguments)}function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function e(f){return Function.toString.call(f).indexOf("[native code]")!==-1}function n(f,m){return n=Object.setPrototypeOf||function(h,l){return h.__proto__=l,h},n(f,m)}function t(f){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},t(f)}var u=function(f){N(o,f);var m=g(o);function o(h,l,T,S,x,b,M){var U,V,q,G,C;k(this,o),C=m.call(this,h);var R=Array.isArray(l)?l.length!==0?l:void 0:l?[l]:void 0,Y=T;if(!Y&&R){var J;Y=(J=R[0].loc)===null||J===void 0?void 0:J.source}var F=S;!F&&R&&(F=R.reduce(function(w,P){return P.loc&&w.push(P.loc.start),w},[])),F&&F.length===0&&(F=void 0);var B;S&&T?B=S.map(function(w){return(0,r.getLocation)(T,w)}):R&&(B=R.reduce(function(w,P){return P.loc&&w.push((0,r.getLocation)(P.loc.source,P.loc.start)),w},[]));var j=M;if(j==null&&b!=null){var Q=b.extensions;(0,i.default)(Q)&&(j=Q)}return Object.defineProperties(v(C),{name:{value:"GraphQLError"},message:{value:h,enumerable:!0,writable:!0},locations:{value:(U=B)!==null&&U!==void 0?U:void 0,enumerable:B!=null},path:{value:x!=null?x:void 0,enumerable:x!=null},nodes:{value:R!=null?R:void 0},source:{value:(V=Y)!==null&&V!==void 0?V:void 0},positions:{value:(q=F)!==null&&q!==void 0?q:void 0},originalError:{value:b},extensions:{value:(G=j)!==null&&G!==void 0?G:void 0,enumerable:j!=null}}),b!=null&&b.stack?(Object.defineProperty(v(C),"stack",{value:b.stack,writable:!0,configurable:!0}),D(C)):(Error.captureStackTrace?Error.captureStackTrace(v(C),o):Object.defineProperty(v(C),"stack",{value:Error().stack,writable:!0,configurable:!0}),C)}return A(o,[{key:"toString",value:function(){return y(this)}},{key:c.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),o}(I(Error));a.GraphQLError=u;function y(f){var m=f.message;if(f.nodes)for(var o=0,h=f.nodes;o<h.length;o++){var l=h[o];l.loc&&(m+=` | ||
`+(0,_.printLocation)(l.loc))}else if(f.source&&f.locations)for(var T=0,S=f.locations;T<S.length;T++){var x=S[T];m+=` | ||
`+(0,_.printSourceLocation)(f.source,x)}return m}}}),Z=L({"node_modules/graphql/error/syntaxError.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.syntaxError=i;var d=W();function i(c,r,_){return new d.GraphQLError("Syntax Error: ".concat(_),void 0,c,[r])}}}),he=L({"node_modules/graphql/language/kinds.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.Kind=void 0;var d=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});a.Kind=d}}),ve=L({"node_modules/graphql/jsutils/invariant.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.default=d;function d(i,c){var r=Boolean(i);if(!r)throw new Error(c!=null?c:"Unexpected invariant triggered.")}}}),ee=L({"node_modules/graphql/jsutils/nodejsCustomInspectSymbol.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,i=d;a.default=i}}),Te=L({"node_modules/graphql/jsutils/defineInspect.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.default=r;var d=c(ve()),i=c(ee());function c(_){return _&&_.__esModule?_:{default:_}}function r(_){var E=_.prototype.toJSON;typeof E=="function"||(0,d.default)(0),_.prototype.inspect=E,i.default&&(_.prototype[i.default]=E)}}}),te=L({"node_modules/graphql/language/ast.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.isNode=_,a.Token=a.Location=void 0;var d=i(Te());function i(E){return E&&E.__esModule?E:{default:E}}var c=function(){function E(O,A,N){this.start=O.start,this.end=A.end,this.startToken=O,this.endToken=A,this.source=N}var k=E.prototype;return k.toJSON=function(){return{start:this.start,end:this.end}},E}();a.Location=c,(0,d.default)(c);var r=function(){function E(O,A,N,g,D,v,I){this.kind=O,this.start=A,this.end=N,this.line=g,this.column=D,this.value=I,this.prev=v,this.next=null}var k=E.prototype;return k.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},E}();a.Token=r,(0,d.default)(r);function _(E){return E!=null&&typeof E.kind=="string"}}}),ne=L({"node_modules/graphql/language/tokenKind.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.TokenKind=void 0;var d=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",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"});a.TokenKind=d}}),re=L({"node_modules/graphql/jsutils/inspect.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.default=E;var d=i(ee());function i(v){return v&&v.__esModule?v:{default:v}}function c(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(s){return typeof s}:c=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},c(v)}var r=10,_=2;function E(v){return k(v,[])}function k(v,I){switch(c(v)){case"string":return JSON.stringify(v);case"function":return v.name?"[function ".concat(v.name,"]"):"[function]";case"object":return v===null?"null":O(v,I);default:return String(v)}}function O(v,I){if(I.indexOf(v)!==-1)return"[Circular]";var s=[].concat(I,[v]),p=g(v);if(p!==void 0){var e=p.call(v);if(e!==v)return typeof e=="string"?e:k(e,s)}else if(Array.isArray(v))return N(v,s);return A(v,s)}function A(v,I){var s=Object.keys(v);if(s.length===0)return"{}";if(I.length>_)return"["+D(v)+"]";var p=s.map(function(e){var n=k(v[e],I);return e+": "+n});return"{ "+p.join(", ")+" }"}function N(v,I){if(v.length===0)return"[]";if(I.length>_)return"[Array]";for(var s=Math.min(r,v.length),p=v.length-s,e=[],n=0;n<s;++n)e.push(k(v[n],I));return p===1?e.push("... 1 more item"):p>1&&e.push("... ".concat(p," more items")),"["+e.join(", ")+"]"}function g(v){var I=v[String(d.default)];if(typeof I=="function")return I;if(typeof v.inspect=="function")return v.inspect}function D(v){var I=Object.prototype.toString.call(v).replace(/^\[object /,"").replace(/]$/,"");if(I==="Object"&&typeof v.constructor=="function"){var s=v.constructor.name;if(typeof s=="string"&&s!=="")return s}return I}}}),_e=L({"node_modules/graphql/jsutils/devAssert.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.default=d;function d(i,c){var r=Boolean(i);if(!r)throw new Error(c)}}}),Ee=L({"node_modules/graphql/jsutils/instanceOf.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var d=i(re());function i(r){return r&&r.__esModule?r:{default:r}}var c=function(_,E){return _ instanceof E};a.default=c}}),me=L({"node_modules/graphql/language/source.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.isSource=A,a.Source=void 0;var d=z(),i=_(re()),c=_(_e()),r=_(Ee());function _(N){return N&&N.__esModule?N:{default:N}}function E(N,g){for(var D=0;D<g.length;D++){var v=g[D];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(N,v.key,v)}}function k(N,g,D){return g&&E(N.prototype,g),D&&E(N,D),N}var O=function(){function N(g){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof g=="string"||(0,c.default)(0,"Body must be a string. Received: ".concat((0,i.default)(g),".")),this.body=g,this.name=D,this.locationOffset=v,this.locationOffset.line>0||(0,c.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,c.default)(0,"column in locationOffset is 1-indexed and must be positive.")}return k(N,[{key:d.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),N}();a.Source=O;function A(N){return(0,r.default)(N,O)}}}),ye=L({"node_modules/graphql/language/directiveLocation.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.DirectiveLocation=void 0;var d=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"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"});a.DirectiveLocation=d}}),ke=L({"node_modules/graphql/language/blockString.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.dedentBlockStringValue=d,a.getBlockStringIndentation=c,a.printBlockString=r;function d(_){var E=_.split(/\r\n|[\n\r]/g),k=c(_);if(k!==0)for(var O=1;O<E.length;O++)E[O]=E[O].slice(k);for(var A=0;A<E.length&&i(E[A]);)++A;for(var N=E.length;N>A&&i(E[N-1]);)--N;return E.slice(A,N).join(` | ||
`)}function i(_){for(var E=0;E<_.length;++E)if(_[E]!==" "&&_[E]!==" ")return!1;return!0}function c(_){for(var E,k=!0,O=!0,A=0,N=null,g=0;g<_.length;++g)switch(_.charCodeAt(g)){case 13:_.charCodeAt(g+1)===10&&++g;case 10:k=!1,O=!0,A=0;break;case 9:case 32:++A;break;default:O&&!k&&(N===null||A<N)&&(N=A),O=!1}return(E=N)!==null&&E!==void 0?E:0}function r(_){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,O=_.indexOf(` | ||
`)===-1,A=_[0]===" "||_[0]===" ",N=_[_.length-1]==='"',g=_[_.length-1]==="\\",D=!O||N||g||k,v="";return D&&!(O&&A)&&(v+=` | ||
`+E),v+=E?_.replace(/\n/g,` | ||
`+E):_,D&&(v+=` | ||
`),'"""'+v.replace(/"""/g,'\\"""')+'"""'}}}),Ne=L({"node_modules/graphql/language/lexer.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.isPunctuatorTokenKind=E,a.Lexer=void 0;var d=Z(),i=te(),c=ne(),r=ke(),_=function(){function t(y){var f=new i.Token(c.TokenKind.SOF,0,0,0,0,null);this.source=y,this.lastToken=f,this.token=f,this.line=1,this.lineStart=0}var u=t.prototype;return u.advance=function(){this.lastToken=this.token;var f=this.token=this.lookahead();return f},u.lookahead=function(){var f=this.token;if(f.kind!==c.TokenKind.EOF)do{var m;f=(m=f.next)!==null&&m!==void 0?m:f.next=O(this,f)}while(f.kind===c.TokenKind.COMMENT);return f},t}();a.Lexer=_;function E(t){return t===c.TokenKind.BANG||t===c.TokenKind.DOLLAR||t===c.TokenKind.AMP||t===c.TokenKind.PAREN_L||t===c.TokenKind.PAREN_R||t===c.TokenKind.SPREAD||t===c.TokenKind.COLON||t===c.TokenKind.EQUALS||t===c.TokenKind.AT||t===c.TokenKind.BRACKET_L||t===c.TokenKind.BRACKET_R||t===c.TokenKind.BRACE_L||t===c.TokenKind.PIPE||t===c.TokenKind.BRACE_R}function k(t){return isNaN(t)?c.TokenKind.EOF:t<127?JSON.stringify(String.fromCharCode(t)):'"\\u'.concat(("00"+t.toString(16).toUpperCase()).slice(-4),'"')}function O(t,u){for(var y=t.source,f=y.body,m=f.length,o=u.end;o<m;){var h=f.charCodeAt(o),l=t.line,T=1+o-t.lineStart;switch(h){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++t.line,t.lineStart=o;continue;case 13:f.charCodeAt(o+1)===10?o+=2:++o,++t.line,t.lineStart=o;continue;case 33:return new i.Token(c.TokenKind.BANG,o,o+1,l,T,u);case 35:return N(y,o,l,T,u);case 36:return new i.Token(c.TokenKind.DOLLAR,o,o+1,l,T,u);case 38:return new i.Token(c.TokenKind.AMP,o,o+1,l,T,u);case 40:return new i.Token(c.TokenKind.PAREN_L,o,o+1,l,T,u);case 41:return new i.Token(c.TokenKind.PAREN_R,o,o+1,l,T,u);case 46:if(f.charCodeAt(o+1)===46&&f.charCodeAt(o+2)===46)return new i.Token(c.TokenKind.SPREAD,o,o+3,l,T,u);break;case 58:return new i.Token(c.TokenKind.COLON,o,o+1,l,T,u);case 61:return new i.Token(c.TokenKind.EQUALS,o,o+1,l,T,u);case 64:return new i.Token(c.TokenKind.AT,o,o+1,l,T,u);case 91:return new i.Token(c.TokenKind.BRACKET_L,o,o+1,l,T,u);case 93:return new i.Token(c.TokenKind.BRACKET_R,o,o+1,l,T,u);case 123:return new i.Token(c.TokenKind.BRACE_L,o,o+1,l,T,u);case 124:return new i.Token(c.TokenKind.PIPE,o,o+1,l,T,u);case 125:return new i.Token(c.TokenKind.BRACE_R,o,o+1,l,T,u);case 34:return f.charCodeAt(o+1)===34&&f.charCodeAt(o+2)===34?I(y,o,l,T,u,t):v(y,o,l,T,u);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return g(y,o,h,l,T,u);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return e(y,o,l,T,u)}throw(0,d.syntaxError)(y,o,A(h))}var S=t.line,x=1+o-t.lineStart;return new i.Token(c.TokenKind.EOF,m,m,S,x,u)}function A(t){return t<32&&t!==9&&t!==10&&t!==13?"Cannot contain the invalid character ".concat(k(t),"."):t===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(k(t),".")}function N(t,u,y,f,m){var o=t.body,h,l=u;do h=o.charCodeAt(++l);while(!isNaN(h)&&(h>31||h===9));return new i.Token(c.TokenKind.COMMENT,u,l,y,f,m,o.slice(u+1,l))}function g(t,u,y,f,m,o){var h=t.body,l=y,T=u,S=!1;if(l===45&&(l=h.charCodeAt(++T)),l===48){if(l=h.charCodeAt(++T),l>=48&&l<=57)throw(0,d.syntaxError)(t,T,"Invalid number, unexpected digit after 0: ".concat(k(l),"."))}else T=D(t,T,l),l=h.charCodeAt(T);if(l===46&&(S=!0,l=h.charCodeAt(++T),T=D(t,T,l),l=h.charCodeAt(T)),(l===69||l===101)&&(S=!0,l=h.charCodeAt(++T),(l===43||l===45)&&(l=h.charCodeAt(++T)),T=D(t,T,l),l=h.charCodeAt(T)),l===46||n(l))throw(0,d.syntaxError)(t,T,"Invalid number, expected digit but got: ".concat(k(l),"."));return new i.Token(S?c.TokenKind.FLOAT:c.TokenKind.INT,u,T,f,m,o,h.slice(u,T))}function D(t,u,y){var f=t.body,m=u,o=y;if(o>=48&&o<=57){do o=f.charCodeAt(++m);while(o>=48&&o<=57);return m}throw(0,d.syntaxError)(t,m,"Invalid number, expected digit but got: ".concat(k(o),"."))}function v(t,u,y,f,m){for(var o=t.body,h=u+1,l=h,T=0,S="";h<o.length&&!isNaN(T=o.charCodeAt(h))&&T!==10&&T!==13;){if(T===34)return S+=o.slice(l,h),new i.Token(c.TokenKind.STRING,u,h+1,y,f,m,S);if(T<32&&T!==9)throw(0,d.syntaxError)(t,h,"Invalid character within String: ".concat(k(T),"."));if(++h,T===92){switch(S+=o.slice(l,h-1),T=o.charCodeAt(h),T){case 34:S+='"';break;case 47:S+="/";break;case 92:S+="\\";break;case 98:S+="\b";break;case 102:S+="\f";break;case 110:S+=` | ||
`;break;case 114:S+="\r";break;case 116:S+=" ";break;case 117:{var x=s(o.charCodeAt(h+1),o.charCodeAt(h+2),o.charCodeAt(h+3),o.charCodeAt(h+4));if(x<0){var b=o.slice(h+1,h+5);throw(0,d.syntaxError)(t,h,"Invalid character escape sequence: \\u".concat(b,"."))}S+=String.fromCharCode(x),h+=4;break}default:throw(0,d.syntaxError)(t,h,"Invalid character escape sequence: \\".concat(String.fromCharCode(T),"."))}++h,l=h}}throw(0,d.syntaxError)(t,h,"Unterminated string.")}function I(t,u,y,f,m,o){for(var h=t.body,l=u+3,T=l,S=0,x="";l<h.length&&!isNaN(S=h.charCodeAt(l));){if(S===34&&h.charCodeAt(l+1)===34&&h.charCodeAt(l+2)===34)return x+=h.slice(T,l),new i.Token(c.TokenKind.BLOCK_STRING,u,l+3,y,f,m,(0,r.dedentBlockStringValue)(x));if(S<32&&S!==9&&S!==10&&S!==13)throw(0,d.syntaxError)(t,l,"Invalid character within String: ".concat(k(S),"."));S===10?(++l,++o.line,o.lineStart=l):S===13?(h.charCodeAt(l+1)===10?l+=2:++l,++o.line,o.lineStart=l):S===92&&h.charCodeAt(l+1)===34&&h.charCodeAt(l+2)===34&&h.charCodeAt(l+3)===34?(x+=h.slice(T,l)+'"""',l+=4,T=l):++l}throw(0,d.syntaxError)(t,l,"Unterminated string.")}function s(t,u,y,f){return p(t)<<12|p(u)<<8|p(y)<<4|p(f)}function p(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function e(t,u,y,f,m){for(var o=t.body,h=o.length,l=u+1,T=0;l!==h&&!isNaN(T=o.charCodeAt(l))&&(T===95||T>=48&&T<=57||T>=65&&T<=90||T>=97&&T<=122);)++l;return new i.Token(c.TokenKind.NAME,u,l,y,f,m,o.slice(u,l))}function n(t){return t===95||t>=65&&t<=90||t>=97&&t<=122}}}),Oe=L({"node_modules/graphql/language/parser.js"(a){"use strict";K(),Object.defineProperty(a,"__esModule",{value:!0}),a.parse=O,a.parseValue=A,a.parseType=N,a.Parser=void 0;var d=Z(),i=he(),c=te(),r=ne(),_=me(),E=ye(),k=Ne();function O(I,s){var p=new g(I,s);return p.parseDocument()}function A(I,s){var p=new g(I,s);p.expectToken(r.TokenKind.SOF);var e=p.parseValueLiteral(!1);return p.expectToken(r.TokenKind.EOF),e}function N(I,s){var p=new g(I,s);p.expectToken(r.TokenKind.SOF);var e=p.parseTypeReference();return p.expectToken(r.TokenKind.EOF),e}var g=function(){function I(p,e){var n=(0,_.isSource)(p)?p:new _.Source(p);this._lexer=new k.Lexer(n),this._options=e}var s=I.prototype;return s.parseName=function(){var e=this.expectToken(r.TokenKind.NAME);return{kind:i.Kind.NAME,value:e.value,loc:this.loc(e)}},s.parseDocument=function(){var e=this._lexer.token;return{kind:i.Kind.DOCUMENT,definitions:this.many(r.TokenKind.SOF,this.parseDefinition,r.TokenKind.EOF),loc:this.loc(e)}},s.parseDefinition=function(){if(this.peek(r.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(r.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},s.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(r.TokenKind.BRACE_L))return{kind:i.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var n=this.parseOperationType(),t;return this.peek(r.TokenKind.NAME)&&(t=this.parseName()),{kind:i.Kind.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},s.parseOperationType=function(){var e=this.expectToken(r.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},s.parseVariableDefinitions=function(){return this.optionalMany(r.TokenKind.PAREN_L,this.parseVariableDefinition,r.TokenKind.PAREN_R)},s.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(r.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(r.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},s.parseVariable=function(){var e=this._lexer.token;return this.expectToken(r.TokenKind.DOLLAR),{kind:i.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},s.parseSelectionSet=function(){var e=this._lexer.token;return{kind:i.Kind.SELECTION_SET,selections:this.many(r.TokenKind.BRACE_L,this.parseSelection,r.TokenKind.BRACE_R),loc:this.loc(e)}},s.parseSelection=function(){return this.peek(r.TokenKind.SPREAD)?this.parseFragment():this.parseField()},s.parseField=function(){var e=this._lexer.token,n=this.parseName(),t,u;return this.expectOptionalToken(r.TokenKind.COLON)?(t=n,u=this.parseName()):u=n,{kind:i.Kind.FIELD,alias:t,name:u,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(r.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(e)}},s.parseArguments=function(e){var n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(r.TokenKind.PAREN_L,n,r.TokenKind.PAREN_R)},s.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(r.TokenKind.COLON),{kind:i.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(e)}},s.parseConstArgument=function(){var e=this._lexer.token;return{kind:i.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(r.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},s.parseFragment=function(){var e=this._lexer.token;this.expectToken(r.TokenKind.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(r.TokenKind.NAME)?{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:i.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},s.parseFragmentDefinition=function(){var e,n=this._lexer.token;return this.expectKeyword("fragment"),((e=this._options)===null||e===void 0?void 0:e.experimentalFragmentVariables)===!0?{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}:{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},s.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},s.parseValueLiteral=function(e){var n=this._lexer.token;switch(n.kind){case r.TokenKind.BRACKET_L:return this.parseList(e);case r.TokenKind.BRACE_L:return this.parseObject(e);case r.TokenKind.INT:return this._lexer.advance(),{kind:i.Kind.INT,value:n.value,loc:this.loc(n)};case r.TokenKind.FLOAT:return this._lexer.advance(),{kind:i.Kind.FLOAT,value:n.value,loc:this.loc(n)};case r.TokenKind.STRING:case r.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case r.TokenKind.NAME:switch(this._lexer.advance(),n.value){case"true":return{kind:i.Kind.BOOLEAN,value:!0,loc:this.loc(n)};case"false":return{kind:i.Kind.BOOLEAN,value:!1,loc:this.loc(n)};case"null":return{kind:i.Kind.NULL,loc:this.loc(n)};default:return{kind:i.Kind.ENUM,value:n.value,loc:this.loc(n)}}case r.TokenKind.DOLLAR:if(!e)return this.parseVariable();break}throw this.unexpected()},s.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:i.Kind.STRING,value:e.value,block:e.kind===r.TokenKind.BLOCK_STRING,loc:this.loc(e)}},s.parseList=function(e){var n=this,t=this._lexer.token,u=function(){return n.parseValueLiteral(e)};return{kind:i.Kind.LIST,values:this.any(r.TokenKind.BRACKET_L,u,r.TokenKind.BRACKET_R),loc:this.loc(t)}},s.parseObject=function(e){var n=this,t=this._lexer.token,u=function(){return n.parseObjectField(e)};return{kind:i.Kind.OBJECT,fields:this.any(r.TokenKind.BRACE_L,u,r.TokenKind.BRACE_R),loc:this.loc(t)}},s.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(r.TokenKind.COLON),{kind:i.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e),loc:this.loc(n)}},s.parseDirectives=function(e){for(var n=[];this.peek(r.TokenKind.AT);)n.push(this.parseDirective(e));return n},s.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(r.TokenKind.AT),{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(n)}},s.parseTypeReference=function(){var e=this._lexer.token,n;return this.expectOptionalToken(r.TokenKind.BRACKET_L)?(n=this.parseTypeReference(),this.expectToken(r.TokenKind.BRACKET_R),n={kind:i.Kind.LIST_TYPE,type:n,loc:this.loc(e)}):n=this.parseNamedType(),this.expectOptionalToken(r.TokenKind.BANG)?{kind:i.Kind.NON_NULL_TYPE,type:n,loc:this.loc(e)}:n},s.parseNamedType=function(){var e=this._lexer.token;return{kind:i.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},s.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===r.TokenKind.NAME)switch(e.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()}throw this.unexpected(e)},s.peekDescription=function(){return this.peek(r.TokenKind.STRING)||this.peek(r.TokenKind.BLOCK_STRING)},s.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},s.parseSchemaDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");var t=this.parseDirectives(!0),u=this.many(r.TokenKind.BRACE_L,this.parseOperationTypeDefinition,r.TokenKind.BRACE_R);return{kind:i.Kind.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:u,loc:this.loc(e)}},s.parseOperationTypeDefinition=function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(r.TokenKind.COLON);var t=this.parseNamedType();return{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t,loc:this.loc(e)}},s.parseScalarTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var t=this.parseName(),u=this.parseDirectives(!0);return{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:u,loc:this.loc(e)}},s.parseObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),u=this.parseImplementsInterfaces(),y=this.parseDirectives(!0),f=this.parseFieldsDefinition();return{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:u,directives:y,fields:f,loc:this.loc(e)}},s.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(((e=this._options)===null||e===void 0?void 0:e.allowLegacySDLImplementsInterfaces)===!0){var n=[];this.expectOptionalToken(r.TokenKind.AMP);do n.push(this.parseNamedType());while(this.expectOptionalToken(r.TokenKind.AMP)||this.peek(r.TokenKind.NAME));return n}return this.delimitedMany(r.TokenKind.AMP,this.parseNamedType)},s.parseFieldsDefinition=function(){var e;return((e=this._options)===null||e===void 0?void 0:e.allowLegacySDLEmptyFields)===!0&&this.peek(r.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===r.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(r.TokenKind.BRACE_L,this.parseFieldDefinition,r.TokenKind.BRACE_R)},s.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),u=this.parseArgumentDefs();this.expectToken(r.TokenKind.COLON);var y=this.parseTypeReference(),f=this.parseDirectives(!0);return{kind:i.Kind.FIELD_DEFINITION,description:n,name:t,arguments:u,type:y,directives:f,loc:this.loc(e)}},s.parseArgumentDefs=function(){return this.optionalMany(r.TokenKind.PAREN_L,this.parseInputValueDef,r.TokenKind.PAREN_R)},s.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(r.TokenKind.COLON);var u=this.parseTypeReference(),y;this.expectOptionalToken(r.TokenKind.EQUALS)&&(y=this.parseValueLiteral(!0));var f=this.parseDirectives(!0);return{kind:i.Kind.INPUT_VALUE_DEFINITION,description:n,name:t,type:u,defaultValue:y,directives:f,loc:this.loc(e)}},s.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),u=this.parseImplementsInterfaces(),y=this.parseDirectives(!0),f=this.parseFieldsDefinition();return{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:u,directives:y,fields:f,loc:this.loc(e)}},s.parseUnionTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),u=this.parseDirectives(!0),y=this.parseUnionMemberTypes();return{kind:i.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:u,types:y,loc:this.loc(e)}},s.parseUnionMemberTypes=function(){return this.expectOptionalToken(r.TokenKind.EQUALS)?this.delimitedMany(r.TokenKind.PIPE,this.parseNamedType):[]},s.parseEnumTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),u=this.parseDirectives(!0),y=this.parseEnumValuesDefinition();return{kind:i.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:u,values:y,loc:this.loc(e)}},s.parseEnumValuesDefinition=function(){return this.optionalMany(r.TokenKind.BRACE_L,this.parseEnumValueDefinition,r.TokenKind.BRACE_R)},s.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),u=this.parseDirectives(!0);return{kind:i.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:u,loc:this.loc(e)}},s.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),u=this.parseDirectives(!0),y=this.parseInputFieldsDefinition();return{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:u,fields:y,loc:this.loc(e)}},s.parseInputFieldsDefinition=function(){return this.optionalMany(r.TokenKind.BRACE_L,this.parseInputValueDef,r.TokenKind.BRACE_R)},s.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===r.TokenKind.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)},s.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.optionalMany(r.TokenKind.BRACE_L,this.parseOperationTypeDefinition,r.TokenKind.BRACE_R);if(n.length===0&&t.length===0)throw this.unexpected();return{kind:i.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t,loc:this.loc(e)}},s.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),t=this.parseDirectives(!0);if(t.length===0)throw this.unexpected();return{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t,loc:this.loc(e)}},s.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),t=this.parseImplementsInterfaces(),u=this.parseDirectives(!0),y=this.parseFieldsDefinition();if(t.length===0&&u.length===0&&y.length===0)throw this.unexpected();return{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:u,fields:y,loc:this.loc(e)}},s.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),t=this.parseImplementsInterfaces(),u=this.parseDirectives(!0),y=this.parseFieldsDefinition();if(t.length===0&&u.length===0&&y.length===0)throw this.unexpected();return{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:u,fields:y,loc:this.loc(e)}},s.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),t=this.parseDirectives(!0),u=this.parseUnionMemberTypes();if(t.length===0&&u.length===0)throw this.unexpected();return{kind:i.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:u,loc:this.loc(e)}},s.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),t=this.parseDirectives(!0),u=this.parseEnumValuesDefinition();if(t.length===0&&u.length===0)throw this.unexpected();return{kind:i.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:u,loc:this.loc(e)}},s.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),t=this.parseDirectives(!0),u=this.parseInputFieldsDefinition();if(t.length===0&&u.length===0)throw this.unexpected();return{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:u,loc:this.loc(e)}},s.parseDirectiveDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(r.TokenKind.AT);var t=this.parseName(),u=this.parseArgumentDefs(),y=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var f=this.parseDirectiveLocations();return{kind:i.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:u,repeatable:y,locations:f,loc:this.loc(e)}},s.parseDirectiveLocations=function(){return this.delimitedMany(r.TokenKind.PIPE,this.parseDirectiveLocation)},s.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(E.DirectiveLocation[n.value]!==void 0)return n;throw this.unexpected(e)},s.loc=function(e){var n;if(((n=this._options)===null||n===void 0?void 0:n.noLocation)!==!0)return new c.Location(e,this._lexer.lastToken,this._lexer.source)},s.peek=function(e){return this._lexer.token.kind===e},s.expectToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n;throw(0,d.syntaxError)(this._lexer.source,n.start,"Expected ".concat(v(e),", found ").concat(D(n),"."))},s.expectOptionalToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n},s.expectKeyword=function(e){var n=this._lexer.token;if(n.kind===r.TokenKind.NAME&&n.value===e)this._lexer.advance();else throw(0,d.syntaxError)(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(D(n),"."))},s.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===r.TokenKind.NAME&&n.value===e?(this._lexer.advance(),!0):!1},s.unexpected=function(e){var n=e!=null?e:this._lexer.token;return(0,d.syntaxError)(this._lexer.source,n.start,"Unexpected ".concat(D(n),"."))},s.any=function(e,n,t){this.expectToken(e);for(var u=[];!this.expectOptionalToken(t);)u.push(n.call(this));return u},s.optionalMany=function(e,n,t){if(this.expectOptionalToken(e)){var u=[];do u.push(n.call(this));while(!this.expectOptionalToken(t));return u}return[]},s.many=function(e,n,t){this.expectToken(e);var u=[];do u.push(n.call(this));while(!this.expectOptionalToken(t));return u},s.delimitedMany=function(e,n){this.expectOptionalToken(e);var t=[];do t.push(n.call(this));while(this.expectOptionalToken(e));return t},I}();a.Parser=g;function D(I){var s=I.value;return v(I.kind)+(s!=null?' "'.concat(s,'"'):"")}function v(I){return(0,k.isPunctuatorTokenKind)(I)?'"'.concat(I,'"'):I}}});K();var Ie=ce(),ge=ue(),{hasPragma:Se}=le(),{locStart:Ae,locEnd:De}=pe();function Ke(a){let d=[],{startToken:i}=a.loc,{next:c}=i;for(;c.kind!=="<EOF>";)c.kind==="Comment"&&(Object.assign(c,{column:c.column-1}),d.push(c)),c=c.next;return d}function ie(a){if(a&&typeof a=="object"){delete a.startToken,delete a.endToken,delete a.prev,delete a.next;for(let d in a)ie(a[d])}return a}var X={allowLegacySDLImplementsInterfaces:!1,experimentalFragmentVariables:!0};function Le(a){let{GraphQLError:d}=W();if(a instanceof d){let{message:i,locations:[c]}=a;return Ie(i,{start:c})}return a}function xe(a){let{parse:d}=Oe(),{result:i,error:c}=ge(()=>d(a,Object.assign({},X)),()=>d(a,Object.assign(Object.assign({},X),{},{allowLegacySDLImplementsInterfaces:!0})));if(!i)throw Le(c);return i.comments=Ke(i),ie(i),i}ae.exports={parsers:{graphql:{parse:xe,astFormat:"graphql",hasPragma:Se,locStart:Ae,locEnd:De}}}});return be();}); |
@@ -1,2 +0,2 @@ | ||
![Prettier Banner](https://raw.githubusercontent.com/prettier/prettier-logo/master/images/prettier-banner-light.png) | ||
![Prettier Banner](https://unpkg.com/prettier-logo@1.0.3/images/prettier-banner-light.svg) | ||
@@ -41,7 +41,7 @@ <h2 align="center">Opinionated Code Formatter</h2> | ||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3AProd+branch%3Amain"> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Prod?label=Prod&style=flat-square"></a> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/prod-test.yml?label=Prod&style=flat-square"></a> | ||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ADev+branch%3Amain"> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Dev?label=Dev&style=flat-square"></a> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/dev-test.yml?label=Dev&style=flat-square"></a> | ||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ALint+branch%3Amain"> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Lint?label=Lint&style=flat-square"></a> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/lint.yml?label=Lint&style=flat-square"></a> | ||
<a href="https://codecov.io/gh/prettier/prettier"> | ||
@@ -58,4 +58,2 @@ <img alt="Codecov Coverage Status" src="https://img.shields.io/codecov/c/github/prettier/prettier.svg?style=flat-square"></a> | ||
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a> | ||
<a href="https://gitter.im/jlongster/prettier"> | ||
<img alt="Chat on Gitter" src="https://img.shields.io/gitter/room/jlongster/prettier.svg?style=flat-square"></a> | ||
<a href="https://twitter.com/PrettierCode"> | ||
@@ -87,3 +85,3 @@ <img alt="Follow Prettier on Twitter" src="https://img.shields.io/twitter/follow/prettiercode.svg?label=follow+prettier&style=flat-square"></a> | ||
Prettier can be run [in your editor](http://prettier.io/docs/en/editors.html) on-save, in a [pre-commit hook](https://prettier.io/docs/en/precommit.html), or in [CI environments](https://prettier.io/docs/en/cli.html#list-different) to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again! | ||
Prettier can be run [in your editor](https://prettier.io/docs/en/editors.html) on-save, in a [pre-commit hook](https://prettier.io/docs/en/precommit.html), or in [CI environments](https://prettier.io/docs/en/cli.html#list-different) to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again! | ||
@@ -90,0 +88,0 @@ --- |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
34
1
11238446
94340
110
37