!function(e,n){"object"==typeofexports&&"undefined"!=typeofmodule?n(exports):"function"==typeofdefine&&define.amd?define(["exports"],n):n(((e=e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.graphql={}))}(this,(function(e){"use strict";varn=function(e,n){constt=newSyntaxError(e+" ("+n.start.line+":"+n.start.column+")");returnt.loc=n,t};vart={hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}};functioni(e){returne&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}functionr(e,n){returne(n={exports:{}},n.exports),n.exports}varo=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SYMBOL_TO_STRING_TAG=n.SYMBOL_ASYNC_ITERATOR=n.SYMBOL_ITERATOR=void0;vart="function"==typeofSymbol?Symbol.iterator:"@@iterator";n.SYMBOL_ITERATOR=t;vari="function"==typeofSymbol?Symbol.asyncIterator:"@@asyncIterator";n.SYMBOL_ASYNC_ITERATOR=i;varr="function"==typeofSymbol?Symbol.toStringTag:"@@toStringTag";n.SYMBOL_TO_STRING_TAG=r}));i(o);o.SYMBOL_TO_STRING_TAG,o.SYMBOL_ASYNC_ITERATOR,o.SYMBOL_ITERATOR;vara=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){if(!Boolean(e))thrownewError(n)}}));i(a);vars=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Source=void0;vart,i=(t=a)&&t.__esModule?t:{default:t};functionr(e,n){for(vart=0;t<n.length;t++){vari=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}vars=function(){functione(e){varn=arguments.length>1&&void0!==arguments[1]?arguments[1]:"GraphQL request",t=arguments.length>2&&void0!==arguments[2]?arguments[2]:{line:1,column:1};this.body=e,this.name=n,this.locationOffset=t,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.")}varn,t,a;returnn=e,(t=[{key:o.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}])&&r(n.prototype,t),a&&r(n,a),e}();n.Source=s}));i(s);s.Source;varc=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getLocation=function(e,n){vart,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}}}));i(c);c.getLocation;varu=r((function(e,n){functiont(e,n){vart=e.locationOffset.column-1,o=r(t)+e.body,a=n.line-1,s=e.locationOffset.line-1,c=n.line+s,u=1===n.line?t:0,l=n.column+u,d="".concat(e.name,":").concat(c,":").concat(l,"\n"),p=o.split(/\r\n|[\n\r]/g),f=p[a];if(f.length>120){for(varh=Math.floor(l/80),T=l%80,v=[],E=0;E<f.length;E+=80)v.push(f.slice(E,E+80));returnd+i([["".concat(c),v[0]]].concat(v.slice(1,h+1).map((function(e){return["",e]})),[[" ",r(T-1)+"^"],["",v[h+1]]]))}returnd+i([["".concat(c-1),p[a-1]],["".concat(c),f],["",r(l-1)+"^"],["".concat(c+1),p[a+1]]])}functioni(e){varn=e.filter((function(e){e[0];returnvoid0!==e[1]})),t=Math.max.apply(Math,n.map((function(e){returne[0].length})));returnn.map((function(e){varn,i=e[0],o=e[1];returnr(t-(n=i).length)+n+(o?" | "+o:" |")})).join("\n")}functionr(e){returnArray(e+1).join(" ")}Object.defineProperty(n,"__esModule",{value:!0}),n.printLocation=function(e){returnt(e.source,(0,c.getLocation)(e.source,e.start))},n.printSourceLocation=t}));i(u);u.printLocation,u.printSourceLocation;varl=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Kind=void0;vart=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_TYP