UNPKG

use-monaco

Version:

[![npm](https://img.shields.io/npm/v/use-monaco)](https://npm.im/use-monaco)

1 lines 376 kB
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}},a=!0;try{e[r].call(i.exports,i,i.exports,n),a=!1}finally{a&&delete t[r]}return i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="WQDp")}({"+dZ+":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("2C6G"),i=n("RKIb");function a(e){var t=e.prototype.toJSON;"function"===typeof t||Object(r.a)(0),e.prototype.inspect=t,i.a&&(e.prototype[i.a]=t)}},"/jXB":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=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"})},"1/U3":function(e,t,n){"use strict";var r=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}};t.a=r},"19Hc":function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"d",(function(){return E}));var r=n("lAJ0"),i=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},a=n("rWdj"),o=n("zpYP"),u=n("/jXB"),s=n("dQau"),c=n("dWS+"),l=n("axIb"),f=2147483647,d=-2147483648;var p=new l.g({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=v(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),!i(n))throw new c.a("Int cannot represent non-integer value: ".concat(Object(a.a)(t)));if(n>f||n<d)throw new c.a("Int cannot represent non 32-bit signed integer value: "+Object(a.a)(t));return n},parseValue:function(e){if(!i(e))throw new c.a("Int cannot represent non-integer value: ".concat(Object(a.a)(e)));if(e>f||e<d)throw new c.a("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==u.a.INT)throw new c.a("Int cannot represent non-integer value: ".concat(Object(s.a)(e)),e);var t=parseInt(e.value,10);if(t>f||t<d)throw new c.a("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return t}});var h=new l.g({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=v(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),!Object(r.a)(n))throw new c.a("Float cannot represent non numeric value: ".concat(Object(a.a)(t)));return n},parseValue:function(e){if(!Object(r.a)(e))throw new c.a("Float cannot represent non numeric value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){if(e.kind!==u.a.FLOAT&&e.kind!==u.a.INT)throw new c.a("Float cannot represent non numeric value: ".concat(Object(s.a)(e)),e);return parseFloat(e.value)}});function v(e){if(Object(o.a)(e)){if("function"===typeof e.valueOf){var t=e.valueOf();if(!Object(o.a)(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}var m=new l.g({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=v(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if(Object(r.a)(t))return t.toString();throw new c.a("String cannot represent value: ".concat(Object(a.a)(e)))},parseValue:function(e){if("string"!==typeof e)throw new c.a("String cannot represent a non string value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){if(e.kind!==u.a.STRING)throw new c.a("String cannot represent a non string value: ".concat(Object(s.a)(e)),e);return e.value}});var g=new l.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=v(e);if("boolean"===typeof t)return t;if(Object(r.a)(t))return 0!==t;throw new c.a("Boolean cannot represent a non boolean value: ".concat(Object(a.a)(t)))},parseValue:function(e){if("boolean"!==typeof e)throw new c.a("Boolean cannot represent a non boolean value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){if(e.kind!==u.a.BOOLEAN)throw new c.a("Boolean cannot represent a non boolean value: ".concat(Object(s.a)(e)),e);return e.value}});var y=new l.g({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=v(e);if("string"===typeof t)return t;if(i(t))return String(t);throw new c.a("ID cannot represent value: ".concat(Object(a.a)(e)))},parseValue:function(e){if("string"===typeof e)return e;if(i(e))return e.toString();throw new c.a("ID cannot represent value: ".concat(Object(a.a)(e)))},parseLiteral:function(e){if(e.kind!==u.a.STRING&&e.kind!==u.a.INT)throw new c.a("ID cannot represent a non-string and non-integer value: "+Object(s.a)(e),e);return e.value}}),b=Object.freeze([m,p,h,g,y]);function E(e){return b.some((function(t){var n=t.name;return e.name===n}))}},"1QEH":function(e,t,n){"use strict";var r=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};t.a=r},"2C6G":function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,"a",(function(){return r}))},"2Fve":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="function"===typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",i=("function"===typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator,"function"===typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag")},"3HNt":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("lAJ0"),i=n("Qx16"),a=n("1QEH"),o=n("rWdj"),u=n("2C6G"),s=n("zpYP"),c=n("RdUH"),l=n("/jXB"),f=n("19Hc"),d=n("axIb");function p(e,t){if(Object(d.y)(t)){var n=p(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===l.a.NULL?null:n}if(null===e)return{kind:l.a.NULL};if(void 0===e)return null;if(Object(d.w)(t)){var v=t.ofType;if(Object(c.a)(e)){for(var m=[],g=0,y=Object(i.a)(e);g<y.length;g++){var b=p(y[g],v);null!=b&&m.push(b)}return{kind:l.a.LIST,values:m}}return p(e,v)}if(Object(d.s)(t)){if(!Object(s.a)(e))return null;for(var E=[],_=0,O=Object(a.a)(t.getFields());_<O.length;_++){var N=O[_],T=p(e[N.name],N.type);T&&E.push({kind:l.a.OBJECT_FIELD,name:{kind:l.a.NAME,value:N.name},value:T})}return{kind:l.a.OBJECT,fields:E}}if(Object(d.v)(t)){var S=t.serialize(e);if(null==S)return null;if("boolean"===typeof S)return{kind:l.a.BOOLEAN,value:S};if("number"===typeof S&&Object(r.a)(S)){var I=String(S);return h.test(I)?{kind:l.a.INT,value:I}:{kind:l.a.FLOAT,value:I}}if("string"===typeof S)return Object(d.r)(t)?{kind:l.a.ENUM,value:S}:t===f.b&&h.test(S)?{kind:l.a.INT,value:S}:{kind:l.a.STRING,value:S};throw new TypeError("Cannot convert value to AST: ".concat(Object(o.a)(S),"."))}Object(u.a)(0,"Unexpected input type: "+Object(o.a)(t))}var h=/^-?(?:0|[1-9][0-9]*)$/},"4suF":function(e,t,n){"use strict";n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return E})),n.d(t,"g",(function(){return _})),n.d(t,"f",(function(){return O}));var r=n("Y/la"),i=n("2Fve"),a=(n("rWdj"),n("E9SJ")),o=n("t3R0"),u=n("Mw0p"),s=n("zpYP"),c=n("+dZ+"),l=n("F8X2"),f=n("19Hc"),d=n("axIb");function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return Object(u.a)(e,v)}var v=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,e.name||Object(o.a)(0,"Directive must be named."),Array.isArray(e.locations)||Object(o.a)(0,"@".concat(e.name," locations must be an Array."));var i=null!==(n=e.args)&&void 0!==n?n:{};Object(s.a)(i)&&!Array.isArray(i)||Object(o.a)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object(r.a)(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Object(a.a)(n.extensions),astNode:n.astNode}}))}var t,n,u,c=e.prototype;return c.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Object(d.i)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},c.toString=function(){return"@"+this.name},c.toJSON=function(){return this.toString()},t=e,(n=[{key:i.b,get:function(){return"GraphQLDirective"}}])&&p(t.prototype,n),u&&p(t,u),e}();Object(c.a)(v);var m=new v({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[l.a.FIELD,l.a.FRAGMENT_SPREAD,l.a.INLINE_FRAGMENT],args:{if:{type:new d.e(f.a),description:"Included when true."}}}),g=new v({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[l.a.FIELD,l.a.FRAGMENT_SPREAD,l.a.INLINE_FRAGMENT],args:{if:{type:new d.e(f.a),description:"Skipped when true."}}}),y="No longer supported",b=new v({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[l.a.FIELD_DEFINITION,l.a.ARGUMENT_DEFINITION,l.a.INPUT_FIELD_DEFINITION,l.a.ENUM_VALUE],args:{reason:{type:f.c,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:y}}}),E=new v({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[l.a.SCALAR],args:{url:{type:new d.e(f.c),description:"The URL that specifies the behaviour of this scalar."}}}),_=Object.freeze([m,g,b,E]);function O(e){return _.some((function(t){return t.name===e.name}))}},"51nL":function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g}));var r=n("1/U3"),i=n("Qx16"),a=n("1QEH"),o=n("2Fve"),u=n("rWdj"),s=n("E9SJ"),c=n("t3R0"),l=n("Mw0p"),f=n("zpYP"),d=n("LViu"),p=n("4suF"),h=n("axIb");function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){if(!function(e){return Object(l.a)(e,g)}(e))throw new Error("Expected ".concat(Object(u.a)(e)," to be a GraphQL schema."));return e}var g=function(){function e(e){var t;this.__validationErrors=!0===e.assumeValid?[]:void 0,Object(f.a)(e)||Object(c.a)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Object(c.a)(0,'"types" must be Array if provided but got: '.concat(Object(u.a)(e.types),".")),!e.directives||Array.isArray(e.directives)||Object(c.a)(0,'"directives" must be Array if provided but got: '+"".concat(Object(u.a)(e.directives),".")),this.description=e.description,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(t=e.directives)&&void 0!==t?t:p.g;var n=new Set(e.types);if(null!=e.types)for(var r=0,a=e.types;r<a.length;r++){var o=a[r];n.delete(o),y(o,n)}null!=this._queryType&&y(this._queryType,n),null!=this._mutationType&&y(this._mutationType,n),null!=this._subscriptionType&&y(this._subscriptionType,n);for(var l=0,v=this._directives;l<v.length;l++){var m=v[l];if(Object(p.e)(m))for(var g=0,b=m.args;g<b.length;g++){y(b[g].type,n)}}y(d.e,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var E=0,_=Object(i.a)(n);E<_.length;E++){var O=_[E];if(null!=O){var N=O.name;if(N||Object(c.a)(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[N])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(N,'".'));if(this._typeMap[N]=O,Object(h.u)(O))for(var T=0,S=O.getInterfaces();T<S.length;T++){var I=S[T];if(Object(h.u)(I)){var w=this._implementationsMap[I.name];void 0===w&&(w=this._implementationsMap[I.name]={objects:[],interfaces:[]}),w.interfaces.push(O)}}else if(Object(h.z)(O))for(var A=0,k=O.getInterfaces();A<k.length;A++){var C=k[A];if(Object(h.u)(C)){var j=this._implementationsMap[C.name];void 0===j&&(j=this._implementationsMap[C.name]={objects:[],interfaces:[]}),j.objects.push(O)}}}}}var t,n,l,m=e.prototype;return m.getQueryType=function(){return this._queryType},m.getMutationType=function(){return this._mutationType},m.getSubscriptionType=function(){return this._subscriptionType},m.getTypeMap=function(){return this._typeMap},m.getType=function(e){return this.getTypeMap()[e]},m.getPossibleTypes=function(e){return Object(h.F)(e)?e.getTypes():this.getImplementations(e).objects},m.getImplementations=function(e){var t=this._implementationsMap[e.name];return null!==t&&void 0!==t?t:{objects:[],interfaces:[]}},m.isPossibleType=function(e,t){return this.isSubType(e,t)},m.isSubType=function(e,t){var n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Object(h.F)(e))for(var r=0,i=e.getTypes();r<i.length;r++){n[i[r].name]=!0}else{for(var a=this.getImplementations(e),o=0,u=a.objects;o<u.length;o++){n[u[o].name]=!0}for(var s=0,c=a.interfaces;s<c.length;s++){n[c[s].name]=!0}}this._subTypeMap[e.name]=n}return void 0!==n[t.name]},m.getDirectives=function(){return this._directives},m.getDirective=function(e){return Object(r.a)(this.getDirectives(),(function(t){return t.name===e}))},m.toConfig=function(){var e;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object(a.a)(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[],assumeValid:void 0!==this.__validationErrors}},t=e,(n=[{key:o.b,get:function(){return"GraphQLSchema"}}])&&v(t.prototype,n),l&&v(t,l),e}();function y(e,t){var n=Object(h.n)(e);if(!t.has(n))if(t.add(n),Object(h.F)(n))for(var r=0,i=n.getTypes();r<i.length;r++){y(i[r],t)}else if(Object(h.z)(n)||Object(h.u)(n)){for(var o=0,u=n.getInterfaces();o<u.length;o++){y(u[o],t)}for(var s=0,c=Object(a.a)(n.getFields());s<c.length;s++){var l=c[s];y(l.type,t);for(var f=0,d=l.args;f<d.length;f++){y(d[f].type,t)}}}else if(Object(h.s)(n))for(var p=0,v=Object(a.a)(n.getFields());p<v.length;p++){y(v[p].type,t)}return t}},"7rlJ":function(e,t,n){"use strict";(function(t){var r=n("Qetd");function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function a(e){return t.Buffer&&"function"===typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=n("7tlc"),u=Object.prototype.hasOwnProperty,s=Array.prototype.slice,c="foo"===function(){}.name;function l(e){return Object.prototype.toString.call(e)}function f(e){return!a(e)&&("function"===typeof t.ArrayBuffer&&("function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var d=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(o.isFunction(e)){if(c)return e.name;var t=e.toString().match(p);return t&&t[1]}}function v(e,t){return"string"===typeof e?e.length<t?e:e.slice(0,t):e}function m(e){if(c||!o.isFunction(e))return o.inspect(e);var t=h(e);return"[Function"+(t?": "+t:"")+"]"}function g(e,t,n,r,i){throw new d.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function y(e,t){e||g(e,!0,t,"==",d.ok)}function b(e,t,n,r){if(e===t)return!0;if(a(e)&&a(t))return 0===i(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"===typeof e||null!==t&&"object"===typeof t){if(f(e)&&f(t)&&l(e)===l(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(a(e)!==a(t))return!1;var u=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==u&&u===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null===e||void 0===e||null===t||void 0===t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=E(e),a=E(t);if(i&&!a||!i&&a)return!1;if(i)return e=s.call(e),t=s.call(t),b(e,t,n);var u,c,l=N(e),f=N(t);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),c=l.length-1;c>=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(u=l[c],!b(e[u],t[u],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function E(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e,t,n,r){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(n){t=n}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&g(i,n,"Missing expected exception"+r);var a="string"===typeof r,u=!e&&i&&!n;if((!e&&o.isError(i)&&a&&_(i,n)||u)&&g(i,n,"Got unwanted exception"+r),e&&i&&n&&!_(i,n)||!e&&i)throw i}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return v(m(e.actual),128)+" "+e.operator+" "+v(m(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=h(t),a=r.indexOf("\n"+i);if(a>=0){var o=r.indexOf("\n",a+1);r=r.substring(o+1)}this.stack=r}}},o.inherits(d.AssertionError,Error),d.fail=g,d.ok=y,d.equal=function(e,t,n){e!=t&&g(e,t,n,"==",d.equal)},d.notEqual=function(e,t,n){e==t&&g(e,t,n,"!=",d.notEqual)},d.deepEqual=function(e,t,n){b(e,t,!1)||g(e,t,n,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,n){b(e,t,!0)||g(e,t,n,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,n){b(e,t,!1)&&g(e,t,n,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&g(t,n,r,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,n){e!==t&&g(e,t,n,"===",d.strictEqual)},d.notStrictEqual=function(e,t,n){e===t&&g(e,t,n,"!==",d.notStrictEqual)},d.throws=function(e,t,n){O(!0,e,t,n)},d.doesNotThrow=function(e,t,n){O(!1,e,t,n)},d.ifError=function(e){if(e)throw e},d.strict=r((function e(t,n){t||g(t,!0,n,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var N=Object.keys||function(e){var t=[];for(var n in e)u.call(e,n)&&t.push(n);return t}}).call(this,n("yLpj"))},"7tlc":function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,o=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),s=r[n];n<a;s=r[++n])v(s)||!E(s)?o+=" "+s:o+=" "+u(s);return o},t.deprecate=function(n,r){if("undefined"!==typeof e&&!0===e.noDeprecation)return n;if("undefined"===typeof e)return function(){return t.deprecate(n,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),i=!0}return n.apply(this,arguments)}};var a,o={};function u(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),l(r,e,r.depth)}function s(e,t){var n=u.styles[t];return n?"\x1b["+u.colors[n][0]+"m"+e+"\x1b["+u.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&N(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=l(e,i,r)),i}var a=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(a)return a;var o=Object.keys(n),u=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),O(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(n);if(0===o.length){if(N(n)){var s=n.name?": "+n.name:"";return e.stylize("[Function"+s+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return f(n)}var c,E="",T=!1,S=["{","}"];(p(n)&&(T=!0,S=["[","]"]),N(n))&&(E=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(E=" "+RegExp.prototype.toString.call(n)),_(n)&&(E=" "+Date.prototype.toUTCString.call(n)),O(n)&&(E=" "+f(n)),0!==o.length||T&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=T?function(e,t,n,r,i){for(var a=[],o=0,u=t.length;o<u;++o)A(t,String(o))?a.push(d(e,t,n,r,String(o),!0)):a.push("");return i.forEach((function(i){i.match(/^\d+$/)||a.push(d(e,t,n,r,i,!0))})),a}(e,n,r,u,o):o.map((function(t){return d(e,n,r,u,t,T)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,E,S)):S[0]+E+S[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,a){var o,u,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?u=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(u=e.stylize("[Setter]","special")),A(r,i)||(o="["+i+"]"),u||(e.seen.indexOf(s.value)<0?(u=v(n)?l(e,s.value,null):l(e,s.value,n-1)).indexOf("\n")>-1&&(u=a?u.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+u.split("\n").map((function(e){return" "+e})).join("\n")):u=e.stylize("[Circular]","special")),y(o)){if(a&&i.match(/^\d+$/))return u;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+u}function p(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function v(e){return null===e}function m(e){return"number"===typeof e}function g(e){return"string"===typeof e}function y(e){return void 0===e}function b(e){return E(e)&&"[object RegExp]"===T(e)}function E(e){return"object"===typeof e&&null!==e}function _(e){return E(e)&&"[object Date]"===T(e)}function O(e){return E(e)&&("[object Error]"===T(e)||e instanceof Error)}function N(e){return"function"===typeof e}function T(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(y(a)&&(a=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!o[n])if(new RegExp("\\b"+n+"\\b","i").test(a)){var r=e.pid;o[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else o[n]=function(){};return o[n]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=E,t.isDate=_,t.isError=O,t.isFunction=N,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n("j/1Z");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",w(),t.format.apply(t,arguments))},t.inherits=n("FfBw"),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var k="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(k&&e[k]){var t;if("function"!==typeof(t=e[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,k,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(o){n(o)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),k&&Object.defineProperty(t,k,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=k,t.callbackify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};t.apply(this,n).then((function(t){e.nextTick(o,null,t)}),(function(t){e.nextTick(C,t,o)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}}).call(this,n("8oxB"))},"8oxB":function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"===typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,c=[],l=!1,f=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++f<t;)s&&s[f].run();f=-1,t=c.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||u(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},"9O26":function(e,t,n){"use strict";var r=n("MU4l");n.o(r,"LanguageService")&&n.d(t,"LanguageService",(function(){return r.LanguageService})),n.o(r,"getRange")&&n.d(t,"getRange",(function(){return r.getRange}));n("Io0a");var i=n("bpid");n.d(t,"LanguageService",(function(){return i.a}));var a=n("IQOa");n.d(t,"getRange",(function(){return a.d}));n("JCIs"),n("MZNR")},BLR7:function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,a=null,o=0;o<e.length;++o)switch(e.charCodeAt(o)){case 13:10===e.charCodeAt(o+1)&&++o;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===a||i<a)&&(a=i),r=!1}return null!==(t=a)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var a=0;a<t.length&&i(t[a]);)++a;for(var o=t.length;o>a&&i(t[o-1]);)--o;return t.slice(a,o).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],a='"'===e[e.length-1],o="\\"===e[e.length-1],u=!r||a||o||n,s="";return!u||r&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,u&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))},E9SJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("Y/la");function i(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,i=Object(r.a)(e);n<i.length;n++){var a=i[n],o=a[0],u=a[1];t[o]=u}return t}},EMzn:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return A}));var r=n("dWS+");function i(e,t,n){return new r.a("Syntax Error: ".concat(n),void 0,e,[t])}var a=n("/jXB"),o=n("klf5"),u=n("JvOi"),s=n("2Fve"),c=n("rWdj"),l=n("t3R0"),f=n("Mw0p");function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||Object(l.a)(0,"Body must be a string. Received: ".concat(Object(c.a)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Object(l.a)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Object(l.a)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:s.b,get:function(){return"Source"}}])&&d(t.prototype,n),r&&d(t,r),e}();var h=n("F8X2"),v=n("BLR7"),m=function(){function e(e){var t=new o.b(u.a.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==u.a.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=y(this,e)}while(e.kind===u.a.COMMENT);return e},e}();function g(e){return isNaN(e)?u.a.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function y(e,t){for(var n=e.source,r=n.body,a=r.length,s=t.end;s<a;){var c=r.charCodeAt(s),l=e.line,f=1+s-e.lineStart;switch(c){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===r.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 33:return new o.b(u.a.BANG,s,s+1,l,f,t);case 35:return E(n,s,l,f,t);case 36:return new o.b(u.a.DOLLAR,s,s+1,l,f,t);case 38:return new o.b(u.a.AMP,s,s+1,l,f,t);case 40:return new o.b(u.a.PAREN_L,s,s+1,l,f,t);case 41:return new o.b(u.a.PAREN_R,s,s+1,l,f,t);case 46:if(46===r.charCodeAt(s+1)&&46===r.charCodeAt(s+2))return new o.b(u.a.SPREAD,s,s+3,l,f,t);break;case 58:return new o.b(u.a.COLON,s,s+1,l,f,t);case 61:return new o.b(u.a.EQUALS,s,s+1,l,f,t);case 64:return new o.b(u.a.AT,s,s+1,l,f,t);case 91:return new o.b(u.a.BRACKET_L,s,s+1,l,f,t);case 93:return new o.b(u.a.BRACKET_R,s,s+1,l,f,t);case 123:return new o.b(u.a.BRACE_L,s,s+1,l,f,t);case 124:return new o.b(u.a.PIPE,s,s+1,l,f,t);case 125:return new o.b(u.a.BRACE_R,s,s+1,l,f,t);case 34:return 34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)?T(n,s,l,f,t,e):N(n,s,l,f,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return _(n,s,c,l,f,t);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 I(n,s,l,f,t)}throw i(n,s,b(c))}var d=e.line,p=1+s-e.lineStart;return new o.b(u.a.EOF,a,a,d,p,t)}function b(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(g(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(g(e),".")}function E(e,t,n,r,i){var a,s=e.body,c=t;do{a=s.charCodeAt(++c)}while(!isNaN(a)&&(a>31||9===a));return new o.b(u.a.COMMENT,t,c,n,r,i,s.slice(t+1,c))}function _(e,t,n,r,a,s){var c=e.body,l=n,f=t,d=!1;if(45===l&&(l=c.charCodeAt(++f)),48===l){if((l=c.charCodeAt(++f))>=48&&l<=57)throw i(e,f,"Invalid number, unexpected digit after 0: ".concat(g(l),"."))}else f=O(e,f,l),l=c.charCodeAt(f);if(46===l&&(d=!0,l=c.charCodeAt(++f),f=O(e,f,l),l=c.charCodeAt(f)),69!==l&&101!==l||(d=!0,43!==(l=c.charCodeAt(++f))&&45!==l||(l=c.charCodeAt(++f)),f=O(e,f,l),l=c.charCodeAt(f)),46===l||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(l))throw i(e,f,"Invalid number, expected digit but got: ".concat(g(l),"."));return new o.b(d?u.a.FLOAT:u.a.INT,t,f,r,a,s,c.slice(t,f))}function O(e,t,n){var r=e.body,a=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++a)}while(o>=48&&o<=57);return a}throw i(e,a,"Invalid number, expected digit but got: ".concat(g(o),"."))}function N(e,t,n,r,a){for(var s,c,l,f,d=e.body,p=t+1,h=p,v=0,m="";p<d.length&&!isNaN(v=d.charCodeAt(p))&&10!==v&&13!==v;){if(34===v)return m+=d.slice(h,p),new o.b(u.a.STRING,t,p+1,n,r,a,m);if(v<32&&9!==v)throw i(e,p,"Invalid character within String: ".concat(g(v),"."));if(++p,92===v){switch(m+=d.slice(h,p-1),v=d.charCodeAt(p)){case 34:m+='"';break;case 47:m+="/";break;case 92:m+="\\";break;case 98:m+="\b";break;case 102:m+="\f";break;case 110:m+="\n";break;case 114:m+="\r";break;case 116:m+="\t";break;case 117:var y=(s=d.charCodeAt(p+1),c=d.charCodeAt(p+2),l=d.charCodeAt(p+3),f=d.charCodeAt(p+4),S(s)<<12|S(c)<<8|S(l)<<4|S(f));if(y<0){var b=d.slice(p+1,p+5);throw i(e,p,"Invalid character escape sequence: \\u".concat(b,"."))}m+=String.fromCharCode(y),p+=4;break;default:throw i(e,p,"Invalid character escape sequence: \\".concat(String.fromCharCode(v),"."))}h=++p}}throw i(e,p,"Unterminated string.")}function T(e,t,n,r,a,s){for(var c=e.body,l=t+3,f=l,d=0,p="";l<c.length&&!isNaN(d=c.charCodeAt(l));){if(34===d&&34===c.charCodeAt(l+1)&&34===c.charCodeAt(l+2))return p+=c.slice(f,l),new o.b(u.a.BLOCK_STRING,t,l+3,n,r,a,Object(v.a)(p));if(d<32&&9!==d&&10!==d&&13!==d)throw i(e,l,"Invalid character within String: ".concat(g(d),"."));10===d?(++l,++s.line,s.lineStart=l):13===d?(10===c.charCodeAt(l+1)?l+=2:++l,++s.line,s.lineStart=l):92===d&&34===c.charCodeAt(l+1)&&34===c.charCodeAt(l+2)&&34===c.charCodeAt(l+3)?(p+=c.slice(f,l)+'"""',f=l+=4):++l}throw i(e,l,"Unterminated string.")}function S(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function I(e,t,n,r,i){for(var a=e.body,s=a.length,c=t+1,l=0;c!==s&&!isNaN(l=a.charCodeAt(c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new o.b(u.a.NAME,t,c,n,r,i,a.slice(t,c))}function w(e,t){return new k(e,t).parseDocument()}function A(e,t){var n=new k(e,t);n.expectToken(u.a.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(u.a.EOF),r}var k=function(){function e(e,t){var n=function(e){return Object(f.a)(e,p)}(e)?e:new p(e);this._lexer=new m(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(u.a.NAME);return{kind:a.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:a.a.DOCUMENT,definitions:this.many(u.a.SOF,this.parseDefinition,u.a.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(u.a.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(u.a.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(u.a.BRACE_L))return{kind:a.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(u.a.NAME)&&(t=this.parseName()),{kind:a.a.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(u.a.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(u.a.PAREN_L,this.parseVariableDefinition,u.a.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:a.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.a.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(u.a.DOLLAR),{kind:a.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:a.a.SELECTION_SET,selections:this.many(u.a.BRACE_L,this.parseSelection,u.a.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(u.a.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(u.a.COLON)?(e=r,t=this.parseName()):t=r,{kind:a.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.a.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.a.PAREN_L,t,u.a.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(u.a.COLON),{kind:a.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:a.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(u.a.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(u.a.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(u.a.NAME)?{kind:a.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:a.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:a.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:a.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case u.a.BRACKET_L:return this.parseList(e);case u.a.BRACE_L:return this.parseObject(e);case u.a.INT:return this._lexer.advance(),{kind:a.a.INT,value:t.value,loc:this.loc(t)};case u.a.FLOAT:return this._lexer.advance(),{kind:a.a.FLOAT,value:t.value,loc:this.loc(t)};case u.a.STRING:case u.a.BLOCK_STRING:return this.parseStringLiteral();case u.a.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:a.a.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:a.a.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:a.a.NULL,loc:this.loc(t)};default:return{kind:a.a.ENUM,value:t.value,loc:this.loc(t)}}case u.a.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:a.a.STRING,value:e.value,block:e.kind===u.a.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:a.a.LIST,values:this.any(u.a.BRACKET_L,(function(){return t.parseValueLiteral(e)}),u.a.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:a.a.OBJECT,fields:this.any(u.a.BRACE_L,(function(){return t.parseObjectField(e)}),u.a.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(u.a.COLON),{kind:a.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(u.a.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(u.a.AT),{kind:a.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(u.a.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(u.a.BRACKET_R),e={kind:a.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(u.a.BANG)?{kind:a.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:a.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===u.a.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)},t.peekDescription=function(){return this.peek(u.a.STRING)||this.peek(u.a.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(u.a.BRACE_L,this.parseOperationTypeDefinition,u.a.BRACE_R);return{kind:a.a.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(u.a.COLON);var n=this.parseNamedType();return{kind:a.a.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:a.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:a.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(u.a.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(u.a.AMP)||this.peek(u.a.NAME));return t}return this.delimitedMany(u.a.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(u.a.BRACE_L)&&this._lexer.lookahead().kind===u.a.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(u.a.BRACE_L,this.parseFieldDefinition,u.a.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(u.a.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:a.a.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(u.a.PAREN_L,this.parseInputValueDef,u.a.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(u.a.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(u.a.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:a.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseD