altair-static 4.2.1 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/267.js +1 -0
- package/build/dist/471.js +1 -1
- package/build/dist/main.js +1 -1
- package/build/dist/styles.css +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +4 -1
- package/build/index.test.d.ts +1 -0
- package/build/index.test.js +17 -6
- package/build/utils/get-altair-html.d.ts +1 -0
- package/build/utils/get-dist.d.ts +1 -0
- package/package.json +4 -4
- package/src/index.test.ts +21 -6
- package/src/index.ts +5 -2
- package/tsconfig.json +1 -0
- package/build/dist/672.js +0 -1
- package/build/index.js.map +0 -1
- package/build/index.test.js.map +0 -1
- package/build/utils/get-altair-html.js.map +0 -1
- package/build/utils/get-dist.js.map +0 -1
- package/scripts/prepare_dist.js +0 -77
package/build/index.d.ts
CHANGED
|
@@ -23,3 +23,4 @@ export declare const renderInitialOptions: (options?: RenderOptions) => string;
|
|
|
23
23
|
export declare const renderAltair: (options?: RenderOptions) => string;
|
|
24
24
|
export { getDistDirectory } from './utils/get-dist';
|
|
25
25
|
export default renderAltair;
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
package/build/index.js
CHANGED
|
@@ -23,6 +23,7 @@ exports.renderInitialOptions = (options = {}) => {
|
|
|
23
23
|
'initialSubscriptionsPayload',
|
|
24
24
|
'preserveState',
|
|
25
25
|
'initialHttpMethod',
|
|
26
|
+
'initialWindows',
|
|
26
27
|
])});
|
|
27
28
|
`;
|
|
28
29
|
};
|
|
@@ -52,10 +53,12 @@ const getRenderedAltairOpts = (renderOptions, keys) => {
|
|
|
52
53
|
return ['{', ...optProps, '}'].join('\n');
|
|
53
54
|
};
|
|
54
55
|
function getObjectPropertyForOption(option, propertyName) {
|
|
55
|
-
if (option) {
|
|
56
|
+
if (typeof option !== 'undefined') {
|
|
56
57
|
switch (typeof option) {
|
|
57
58
|
case 'object':
|
|
58
59
|
return `${propertyName}: ${JSON.stringify(option)},`;
|
|
60
|
+
case 'boolean':
|
|
61
|
+
return `${propertyName}: ${option}`;
|
|
59
62
|
}
|
|
60
63
|
return `${propertyName}: \`${option}\`,`;
|
|
61
64
|
}
|
package/build/index.test.d.ts
CHANGED
package/build/index.test.js
CHANGED
|
@@ -4,6 +4,14 @@ const fs_1 = require("fs");
|
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const index_1 = require("./index");
|
|
6
6
|
const getAltairHtml = require("./utils/get-altair-html");
|
|
7
|
+
const translateRenderedStrToObj = (result) => {
|
|
8
|
+
const resultObj = Function(`
|
|
9
|
+
let __options;
|
|
10
|
+
const AltairGraphQL = { init: (options) => { __options = options; } };
|
|
11
|
+
${result}
|
|
12
|
+
return __options;`)();
|
|
13
|
+
return resultObj;
|
|
14
|
+
};
|
|
7
15
|
describe('renderInitialOptions', () => {
|
|
8
16
|
it('should return expected string', () => {
|
|
9
17
|
const result = index_1.renderInitialOptions({
|
|
@@ -19,12 +27,7 @@ describe('renderInitialOptions', () => {
|
|
|
19
27
|
theme: 'dark'
|
|
20
28
|
}
|
|
21
29
|
});
|
|
22
|
-
|
|
23
|
-
let __options;
|
|
24
|
-
const AltairGraphQL = { init: (options) => { __options = options; } };
|
|
25
|
-
${result}
|
|
26
|
-
return __options;`)();
|
|
27
|
-
expect(resultObj).toEqual({
|
|
30
|
+
expect(translateRenderedStrToObj(result)).toEqual({
|
|
28
31
|
initialQuery: `query {
|
|
29
32
|
Hello
|
|
30
33
|
}`,
|
|
@@ -38,6 +41,14 @@ describe('renderInitialOptions', () => {
|
|
|
38
41
|
});
|
|
39
42
|
expect(result).toMatchSnapshot();
|
|
40
43
|
});
|
|
44
|
+
it('should render boolean values correctly', () => {
|
|
45
|
+
const result = index_1.renderInitialOptions({
|
|
46
|
+
preserveState: false,
|
|
47
|
+
});
|
|
48
|
+
expect(translateRenderedStrToObj(result)).toEqual({
|
|
49
|
+
preserveState: false,
|
|
50
|
+
});
|
|
51
|
+
});
|
|
41
52
|
});
|
|
42
53
|
describe('renderAltair', () => {
|
|
43
54
|
it('should return expected string', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "altair-static",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Static package for altair graphql client",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/altair-graphql/altair#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"altair-graphql-core": "^4.
|
|
32
|
+
"altair-graphql-core": "^4.3.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/jest": "^24.0.23",
|
|
36
|
-
"altair-app": "^4.
|
|
36
|
+
"altair-app": "^4.3.0",
|
|
37
37
|
"jest": "^24.9.0",
|
|
38
38
|
"ts-jest": "^24.2.0",
|
|
39
39
|
"typescript": "4.0.7"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"url": "https://opencollective.com/altair",
|
|
44
44
|
"logo": "https://opencollective.com/altair/logo.txt"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "b4858d081932d9c79f221a13d34bcc0dc858aa0f"
|
|
47
47
|
}
|
package/src/index.test.ts
CHANGED
|
@@ -3,6 +3,16 @@ import { resolve } from 'path';
|
|
|
3
3
|
import { renderAltair, renderInitialOptions } from './index';
|
|
4
4
|
import * as getAltairHtml from './utils/get-altair-html';
|
|
5
5
|
|
|
6
|
+
const translateRenderedStrToObj = (result) => {
|
|
7
|
+
const resultObj = Function(`
|
|
8
|
+
let __options;
|
|
9
|
+
const AltairGraphQL = { init: (options) => { __options = options; } };
|
|
10
|
+
${result}
|
|
11
|
+
return __options;`)();
|
|
12
|
+
|
|
13
|
+
return resultObj;
|
|
14
|
+
};
|
|
15
|
+
|
|
6
16
|
describe('renderInitialOptions', () => {
|
|
7
17
|
it('should return expected string', () => {
|
|
8
18
|
const result = renderInitialOptions({
|
|
@@ -18,12 +28,8 @@ describe('renderInitialOptions', () => {
|
|
|
18
28
|
theme: 'dark'
|
|
19
29
|
}
|
|
20
30
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const AltairGraphQL = { init: (options) => { __options = options; } };
|
|
24
|
-
${result}
|
|
25
|
-
return __options;`)();
|
|
26
|
-
expect(resultObj).toEqual({
|
|
31
|
+
|
|
32
|
+
expect(translateRenderedStrToObj(result)).toEqual({
|
|
27
33
|
initialQuery: `query {
|
|
28
34
|
Hello
|
|
29
35
|
}`,
|
|
@@ -38,6 +44,15 @@ describe('renderInitialOptions', () => {
|
|
|
38
44
|
|
|
39
45
|
expect(result).toMatchSnapshot();
|
|
40
46
|
});
|
|
47
|
+
it('should render boolean values correctly', () => {
|
|
48
|
+
const result = renderInitialOptions({
|
|
49
|
+
preserveState: false,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
expect(translateRenderedStrToObj(result)).toEqual({
|
|
53
|
+
preserveState: false,
|
|
54
|
+
})
|
|
55
|
+
});
|
|
41
56
|
});
|
|
42
57
|
|
|
43
58
|
describe('renderAltair', () => {
|
package/src/index.ts
CHANGED
|
@@ -37,6 +37,7 @@ export const renderInitialOptions = (options: RenderOptions = {}) => {
|
|
|
37
37
|
'initialSubscriptionsPayload',
|
|
38
38
|
'preserveState',
|
|
39
39
|
'initialHttpMethod',
|
|
40
|
+
'initialWindows',
|
|
40
41
|
])
|
|
41
42
|
});
|
|
42
43
|
`;
|
|
@@ -69,10 +70,12 @@ const getRenderedAltairOpts = (renderOptions: RenderOptions, keys: (keyof Altair
|
|
|
69
70
|
return [ '{', ...optProps, '}'].join('\n');
|
|
70
71
|
};
|
|
71
72
|
function getObjectPropertyForOption(option: any, propertyName: keyof AltairConfigOptions) {
|
|
72
|
-
if (option) {
|
|
73
|
+
if (typeof option !== 'undefined') {
|
|
73
74
|
switch (typeof option) {
|
|
74
75
|
case 'object':
|
|
75
|
-
|
|
76
|
+
return `${propertyName}: ${JSON.stringify(option)},`;
|
|
77
|
+
case 'boolean':
|
|
78
|
+
return `${propertyName}: ${option}`
|
|
76
79
|
}
|
|
77
80
|
return `${propertyName}: \`${option}\`,`;
|
|
78
81
|
}
|
package/tsconfig.json
CHANGED
package/build/dist/672.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var L,vt={15672:(L,H,G)=>{const Ae=Symbol("Comlink.proxy"),$=Symbol("Comlink.endpoint"),ee=Symbol("Comlink.releaseProxy"),fe=Symbol("Comlink.thrown"),_e=e=>"object"==typeof e&&null!==e||"function"==typeof e,ht=new Map([["proxy",{canHandle:e=>_e(e)&&e[Ae],serialize(e){const{port1:n,port2:t}=new MessageChannel;return jn(e,n),[t,[t]]},deserialize:e=>(e.start(),function(e,n){return Gn(e,[],void 0)}(e))}],["throw",{canHandle:e=>_e(e)&&fe in e,serialize({value:e}){let n;return n=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[n,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}}]]);function jn(e,n=self){n.addEventListener("message",function t(r){if(!r||!r.data)return;const{id:i,type:a,path:s}=Object.assign({path:[]},r.data),o=(r.data.argumentList||[]).map(Ce);let u;try{const c=s.slice(0,-1).reduce((p,v)=>p[v],e),l=s.reduce((p,v)=>p[v],e);switch(a){case 0:u=l;break;case 1:c[s.slice(-1)[0]]=Ce(r.data.value),u=!0;break;case 2:u=l.apply(c,o);break;case 3:u=function(e){return Object.assign(e,{[Ae]:!0})}(new l(...o));break;case 4:{const{port1:p,port2:v}=new MessageChannel;jn(e,v),u=function(e,n){return Tt.set(e,n),e}(p,[p])}break;case 5:u=void 0}}catch(c){u={value:c,[fe]:0}}Promise.resolve(u).catch(c=>({value:c,[fe]:0})).then(c=>{const[l,p]=Yn(c);n.postMessage(Object.assign(Object.assign({},l),{id:i}),p),5===a&&(n.removeEventListener("message",t),mt(n))})}),n.start&&n.start()}function mt(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function dn(e){if(e)throw new Error("Proxy has been released and is not useable")}function Gn(e,n=[],t=function(){}){let r=!1;const i=new Proxy(t,{get(a,s){if(dn(r),s===ee)return()=>Ke(e,{type:5,path:n.map(o=>o.toString())}).then(()=>{mt(e),r=!0});if("then"===s){if(0===n.length)return{then:()=>i};const o=Ke(e,{type:0,path:n.map(u=>u.toString())}).then(Ce);return o.then.bind(o)}return Gn(e,[...n,s])},set(a,s,o){dn(r);const[u,c]=Yn(o);return Ke(e,{type:1,path:[...n,s].map(l=>l.toString()),value:u},c).then(Ce)},apply(a,s,o){dn(r);const u=n[n.length-1];if(u===$)return Ke(e,{type:4}).then(Ce);if("bind"===u)return Gn(e,n.slice(0,-1));const[c,l]=yt(o);return Ke(e,{type:2,path:n.map(p=>p.toString()),argumentList:c},l).then(Ce)},construct(a,s){dn(r);const[o,u]=yt(s);return Ke(e,{type:3,path:n.map(c=>c.toString()),argumentList:o},u).then(Ce)}});return i}function Qr(e){return Array.prototype.concat.apply([],e)}function yt(e){const n=e.map(Yn);return[n.map(t=>t[0]),Qr(n.map(t=>t[1]))]}const Tt=new WeakMap;function Yn(e){for(const[n,t]of ht)if(t.canHandle(e)){const[r,i]=t.serialize(e);return[{type:3,name:n,value:r},i]}return[{type:0,value:e},Tt.get(e)||[]]}function Ce(e){switch(e.type){case 3:return ht.get(e.name).deserialize(e.value);case 0:return e.value}}function Ke(e,n,t){return new Promise(r=>{const i=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.addEventListener("message",function a(s){!s.data||!s.data.id||s.data.id!==i||(e.removeEventListener("message",a),r(s.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:i},n),t)})}var Xr=G(67729);function F(e,n){if(!Boolean(e))throw new Error(n)}var f=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"});function hn(e){return(hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Me(e){return"object"==hn(e)&&null!==e}var Et="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",oe=("function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol,"function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag");function Qn(e,n){for(var a,t=/\r\n|[\n\r]/g,r=1,i=n+1;(a=t.exec(e.body))&&a.index<n;)r+=1,i=n+1-(a.index+a[0].length);return{line:r,column:i}}function zr(e){return gt(e.source,Qn(e.source,e.start))}function gt(e,n){var t=e.locationOffset.column-1,r=mn(t)+e.body,i=n.line-1,s=n.line+(e.locationOffset.line-1),u=n.column+(1===n.line?t:0),c="".concat(e.name,":").concat(s,":").concat(u,"\n"),l=r.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){for(var v=Math.floor(u/80),m=u%80,h=[],T=0;T<p.length;T+=80)h.push(p.slice(T,T+80));return c+It([["".concat(s),h[0]]].concat(h.slice(1,v+1).map(function(g){return["",g]}),[[" ",mn(m-1)+"^"],["",h[v+1]]]))}return c+It([["".concat(s-1),l[i-1]],["".concat(s),p],["",mn(u-1)+"^"],["".concat(s+1),l[i+1]]])}function It(e){var n=e.filter(function(r){return void 0!==r[1]}),t=Math.max.apply(Math,n.map(function(r){return r[0].length}));return n.map(function(r){var a=r[1];return function(e,n){return mn(e-n.length)+n}(t,r[0])+(a?" | "+a:" |")}).join("\n")}function mn(e){return Array(e+1).join(" ")}function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Nt(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ot(e,n){return!n||"object"!==yn(n)&&"function"!=typeof n?en(e):n}function en(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(e){var n="function"==typeof Map?new Map:void 0;return(Kn=function(r){if(null===r||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(r))return r;if("function"!=typeof r)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(r))return n.get(r);n.set(r,i)}function i(){return Tn(r,arguments,tn(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),nn(i,r)})(e)}function Tn(e,n,t){return(Tn=bt()?Reflect.construct:function(i,a,s){var o=[null];o.push.apply(o,a);var c=new(Function.bind.apply(i,o));return s&&nn(c,s.prototype),c}).apply(null,arguments)}function bt(){if("undefined"==typeof Reflect||!Reflect.construct||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 nn(e,n){return(nn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(e,n)}function tn(e){return(tn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(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&&nn(e,n)}(t,e);var n=function(e){var n=bt();return function(){var i,r=tn(e);if(n){var a=tn(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Ot(this,i)}}(t);function t(r,i,a,s,o,u,c){var l,p,v,m,h;(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")})(this,t),h=n.call(this,r);var I,T=Array.isArray(i)?0!==i.length?i:void 0:i?[i]:void 0,g=a;!g&&T&&(g=null===(I=T[0].loc)||void 0===I?void 0:I.source);var x,A=s;!A&&T&&(A=T.reduce(function(Y,z){return z.loc&&Y.push(z.loc.start),Y},[])),A&&0===A.length&&(A=void 0),s&&a?x=s.map(function(Y){return Qn(a,Y)}):T&&(x=T.reduce(function(Y,z){return z.loc&&Y.push(Qn(z.loc.source,z.loc.start)),Y},[]));var M=c;if(null==M&&null!=u){var j=u.extensions;Me(j)&&(M=j)}return Object.defineProperties(en(h),{name:{value:"GraphQLError"},message:{value:r,enumerable:!0,writable:!0},locations:{value:null!==(l=x)&&void 0!==l?l:void 0,enumerable:null!=x},path:{value:null!=o?o:void 0,enumerable:null!=o},nodes:{value:null!=T?T:void 0},source:{value:null!==(p=g)&&void 0!==p?p:void 0},positions:{value:null!==(v=A)&&void 0!==v?v:void 0},originalError:{value:u},extensions:{value:null!==(m=M)&&void 0!==m?m:void 0,enumerable:null!=M}}),null!=u&&u.stack?(Object.defineProperty(en(h),"stack",{value:u.stack,writable:!0,configurable:!0}),Ot(h)):(Error.captureStackTrace?Error.captureStackTrace(en(h),t):Object.defineProperty(en(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return function(e,n,t){n&&Nt(e.prototype,n)}(t,[{key:"toString",value:function(){return function(e){var n=e.message;if(e.nodes)for(var t=0,r=e.nodes;t<r.length;t++){var i=r[t];i.loc&&(n+="\n\n"+zr(i.loc))}else if(e.source&&e.locations)for(var a=0,s=e.locations;a<s.length;a++)n+="\n\n"+gt(e.source,s[a]);return n}(this)}},{key:oe,get:function(){return"Object"}}]),t}(Kn(Error));function ae(e,n,t){return new E("Syntax Error: ".concat(t),void 0,e,[n])}function ue(e,n){if(!Boolean(e))throw new Error(null!=n?n:"Unexpected invariant triggered.")}const Jn="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function pe(e){var n=e.prototype.toJSON;"function"==typeof n||ue(0),e.prototype.inspect=n,Jn&&(e.prototype[Jn]=n)}var St=function(){function e(t,r,i){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=i}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();pe(St);var K=function(){function e(t,r,i,a,s,o,u){this.kind=t,this.start=r,this.end=i,this.line=a,this.column=s,this.value=u,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}();function Dt(e){return null!=e&&"string"==typeof e.kind}pe(K);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"});function En(e){return(En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function D(e){return gn(e,[])}function gn(e,n){switch(En(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]),r=function(e){var n=e[String(Jn)];return"function"==typeof n?n:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:gn(i,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),r=e.length-t,i=[],a=0;a<t;++a)i.push(gn(e[a],n));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,t);return function(e,n){var t=Object.keys(e);return 0===t.length?"{}":n.length>2?"["+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)+"]":"{ "+t.map(function(i){return i+": "+gn(e[i],n)}).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}const Ee=function(n,t){return n instanceof t};function At(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _t=function(){function e(n){var t=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 n||F(0,"Body must be a string. Received: ".concat(D(n),".")),this.body=n,this.name=t,this.locationOffset=r,this.locationOffset.line>0||F(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||F(0,"column in locationOffset is 1-indexed and must be positive.")}return function(e,n,t){n&&At(e.prototype,n)}(e,[{key:oe,get:function(){return"Source"}}]),e}(),w=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"});function Lt(e){var n=e.split(/\r\n|[\n\r]/g),t=function(e){for(var n,t=!0,r=!0,i=0,a=null,s=0;s<e.length;++s)switch(e.charCodeAt(s)){case 13:10===e.charCodeAt(s+1)&&++s;case 10:t=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!t&&(null===a||i<a)&&(a=i),r=!1}return null!==(n=a)&&void 0!==n?n:0}(e);if(0!==t)for(var r=1;r<n.length;r++)n[r]=n[r].slice(t);for(var i=0;i<n.length&&xt(n[i]);)++i;for(var a=n.length;a>i&&xt(n[a-1]);)--a;return n.slice(i,a).join("\n")}function xt(e){for(var n=0;n<e.length;++n)if(" "!==e[n]&&"\t"!==e[n])return!1;return!0}var di=function(){function e(t){var r=new K(d.SOF,0,0,0,0,null);this.source=t,this.lastToken=r,this.token=r,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 r=this.token;if(r.kind!==d.EOF)do{var i;r=null!==(i=r.next)&&void 0!==i?i:r.next=mi(this,r)}while(r.kind===d.COMMENT);return r},e}();function Pe(e){return isNaN(e)?d.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function mi(e,n){for(var t=e.source,r=t.body,i=r.length,a=n.end;a<i;){var s=r.charCodeAt(a),o=e.line,u=1+a-e.lineStart;switch(s){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:10===r.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;continue;case 33:return new K(d.BANG,a,a+1,o,u,n);case 35:return Ti(t,a,o,u,n);case 36:return new K(d.DOLLAR,a,a+1,o,u,n);case 38:return new K(d.AMP,a,a+1,o,u,n);case 40:return new K(d.PAREN_L,a,a+1,o,u,n);case 41:return new K(d.PAREN_R,a,a+1,o,u,n);case 46:if(46===r.charCodeAt(a+1)&&46===r.charCodeAt(a+2))return new K(d.SPREAD,a,a+3,o,u,n);break;case 58:return new K(d.COLON,a,a+1,o,u,n);case 61:return new K(d.EQUALS,a,a+1,o,u,n);case 64:return new K(d.AT,a,a+1,o,u,n);case 91:return new K(d.BRACKET_L,a,a+1,o,u,n);case 93:return new K(d.BRACKET_R,a,a+1,o,u,n);case 123:return new K(d.BRACE_L,a,a+1,o,u,n);case 124:return new K(d.PIPE,a,a+1,o,u,n);case 125:return new K(d.BRACE_R,a,a+1,o,u,n);case 34:return 34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)?Ii(t,a,o,u,n,e):gi(t,a,o,u,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ei(t,a,s,o,u,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 Oi(t,a,o,u,n)}throw ae(t,a,yi(s))}return new K(d.EOF,i,i,e.line,1+a-e.lineStart,n)}function yi(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(Pe(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(Pe(e),".")}function Ti(e,n,t,r,i){var s,a=e.body,o=n;do{s=a.charCodeAt(++o)}while(!isNaN(s)&&(s>31||9===s));return new K(d.COMMENT,n,o,t,r,i,a.slice(n+1,o))}function Ei(e,n,t,r,i,a){var s=e.body,o=t,u=n,c=!1;if(45===o&&(o=s.charCodeAt(++u)),48===o){if((o=s.charCodeAt(++u))>=48&&o<=57)throw ae(e,u,"Invalid number, unexpected digit after 0: ".concat(Pe(o),"."))}else u=Xn(e,u,o),o=s.charCodeAt(u);if(46===o&&(c=!0,o=s.charCodeAt(++u),u=Xn(e,u,o),o=s.charCodeAt(u)),(69===o||101===o)&&(c=!0,(43===(o=s.charCodeAt(++u))||45===o)&&(o=s.charCodeAt(++u)),u=Xn(e,u,o),o=s.charCodeAt(u)),46===o||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(o))throw ae(e,u,"Invalid number, expected digit but got: ".concat(Pe(o),"."));return new K(c?d.FLOAT:d.INT,n,u,r,i,a,s.slice(n,u))}function Xn(e,n,t){var r=e.body,i=n,a=t;if(a>=48&&a<=57){do{a=r.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw ae(e,i,"Invalid number, expected digit but got: ".concat(Pe(a),"."))}function gi(e,n,t,r,i){for(var a=e.body,s=n+1,o=s,u=0,c="";s<a.length&&!isNaN(u=a.charCodeAt(s))&&10!==u&&13!==u;){if(34===u)return c+=a.slice(o,s),new K(d.STRING,n,s+1,t,r,i,c);if(u<32&&9!==u)throw ae(e,s,"Invalid character within String: ".concat(Pe(u),"."));if(++s,92===u){switch(c+=a.slice(o,s-1),u=a.charCodeAt(s)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var l=Ni(a.charCodeAt(s+1),a.charCodeAt(s+2),a.charCodeAt(s+3),a.charCodeAt(s+4));if(l<0){var p=a.slice(s+1,s+5);throw ae(e,s,"Invalid character escape sequence: \\u".concat(p,"."))}c+=String.fromCharCode(l),s+=4;break;default:throw ae(e,s,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}o=++s}}throw ae(e,s,"Unterminated string.")}function Ii(e,n,t,r,i,a){for(var s=e.body,o=n+3,u=o,c=0,l="";o<s.length&&!isNaN(c=s.charCodeAt(o));){if(34===c&&34===s.charCodeAt(o+1)&&34===s.charCodeAt(o+2))return l+=s.slice(u,o),new K(d.BLOCK_STRING,n,o+3,t,r,i,Lt(l));if(c<32&&9!==c&&10!==c&&13!==c)throw ae(e,o,"Invalid character within String: ".concat(Pe(c),"."));10===c?(++o,++a.line,a.lineStart=o):13===c?(10===s.charCodeAt(o+1)?o+=2:++o,++a.line,a.lineStart=o):92===c&&34===s.charCodeAt(o+1)&&34===s.charCodeAt(o+2)&&34===s.charCodeAt(o+3)?(l+=s.slice(u,o)+'"""',u=o+=4):++o}throw ae(e,o,"Unterminated string.")}function Ni(e,n,t,r){return In(e)<<12|In(n)<<8|In(t)<<4|In(r)}function In(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Oi(e,n,t,r,i){for(var a=e.body,s=a.length,o=n+1,u=0;o!==s&&!isNaN(u=a.charCodeAt(o))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++o;return new K(d.NAME,n,o,t,r,i,a.slice(n,o))}var zn=function(){function e(t,r){var i=function(e){return Ee(e,_t)}(t)?t:new _t(t);this._lexer=new di(i),this._options=r}var n=e.prototype;return n.parseName=function(){var r=this.expectToken(d.NAME);return{kind:f.NAME,value:r.value,loc:this.loc(r)}},n.parseDocument=function(){var r=this._lexer.token;return{kind:f.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF),loc:this.loc(r)}},n.parseDefinition=function(){if(this.peek(d.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(d.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},n.parseOperationDefinition=function(){var r=this._lexer.token;if(this.peek(d.BRACE_L))return{kind:f.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(r)};var a,i=this.parseOperationType();return this.peek(d.NAME)&&(a=this.parseName()),{kind:f.OPERATION_DEFINITION,operation:i,name:a,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},n.parseOperationType=function(){var r=this.expectToken(d.NAME);switch(r.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(r)},n.parseVariableDefinitions=function(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)},n.parseVariableDefinition=function(){var r=this._lexer.token;return{kind:f.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(r)}},n.parseVariable=function(){var r=this._lexer.token;return this.expectToken(d.DOLLAR),{kind:f.VARIABLE,name:this.parseName(),loc:this.loc(r)}},n.parseSelectionSet=function(){var r=this._lexer.token;return{kind:f.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R),loc:this.loc(r)}},n.parseSelection=function(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var a,s,r=this._lexer.token,i=this.parseName();return this.expectOptionalToken(d.COLON)?(a=i,s=this.parseName()):s=i,{kind:f.FIELD,alias:a,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},n.parseArguments=function(r){return this.optionalMany(d.PAREN_L,r?this.parseConstArgument:this.parseArgument,d.PAREN_R)},n.parseArgument=function(){var r=this._lexer.token,i=this.parseName();return this.expectToken(d.COLON),{kind:f.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(r)}},n.parseConstArgument=function(){var r=this._lexer.token;return{kind:f.ARGUMENT,name:this.parseName(),value:(this.expectToken(d.COLON),this.parseValueLiteral(!0)),loc:this.loc(r)}},n.parseFragment=function(){var r=this._lexer.token;this.expectToken(d.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(d.NAME)?{kind:f.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(r)}:{kind:f.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},n.parseFragmentDefinition=function(){var r,i=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(r=this._options)||void 0===r?void 0:r.experimentalFragmentVariables)?{kind:f.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:f.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},n.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},n.parseValueLiteral=function(r){var i=this._lexer.token;switch(i.kind){case d.BRACKET_L:return this.parseList(r);case d.BRACE_L:return this.parseObject(r);case d.INT:return this._lexer.advance(),{kind:f.INT,value:i.value,loc:this.loc(i)};case d.FLOAT:return this._lexer.advance(),{kind:f.FLOAT,value:i.value,loc:this.loc(i)};case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:f.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:f.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:f.NULL,loc:this.loc(i)};default:return{kind:f.ENUM,value:i.value,loc:this.loc(i)}}case d.DOLLAR:if(!r)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var r=this._lexer.token;return this._lexer.advance(),{kind:f.STRING,value:r.value,block:r.kind===d.BLOCK_STRING,loc:this.loc(r)}},n.parseList=function(r){var i=this,a=this._lexer.token;return{kind:f.LIST,values:this.any(d.BRACKET_L,function(){return i.parseValueLiteral(r)},d.BRACKET_R),loc:this.loc(a)}},n.parseObject=function(r){var i=this,a=this._lexer.token;return{kind:f.OBJECT,fields:this.any(d.BRACE_L,function(){return i.parseObjectField(r)},d.BRACE_R),loc:this.loc(a)}},n.parseObjectField=function(r){var i=this._lexer.token,a=this.parseName();return this.expectToken(d.COLON),{kind:f.OBJECT_FIELD,name:a,value:this.parseValueLiteral(r),loc:this.loc(i)}},n.parseDirectives=function(r){for(var i=[];this.peek(d.AT);)i.push(this.parseDirective(r));return i},n.parseDirective=function(r){var i=this._lexer.token;return this.expectToken(d.AT),{kind:f.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r),loc:this.loc(i)}},n.parseTypeReference=function(){var i,r=this._lexer.token;return this.expectOptionalToken(d.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(d.BRACKET_R),i={kind:f.LIST_TYPE,type:i,loc:this.loc(r)}):i=this.parseNamedType(),this.expectOptionalToken(d.BANG)?{kind:f.NON_NULL_TYPE,type:i,loc:this.loc(r)}:i},n.parseNamedType=function(){var r=this._lexer.token;return{kind:f.NAMED_TYPE,name:this.parseName(),loc:this.loc(r)}},n.parseTypeSystemDefinition=function(){var r=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(r.kind===d.NAME)switch(r.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(r)},n.peekDescription=function(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var a=this.parseDirectives(!0),s=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return{kind:f.SCHEMA_DEFINITION,description:i,directives:a,operationTypes:s,loc:this.loc(r)}},n.parseOperationTypeDefinition=function(){var r=this._lexer.token,i=this.parseOperationType();this.expectToken(d.COLON);var a=this.parseNamedType();return{kind:f.OPERATION_TYPE_DEFINITION,operation:i,type:a,loc:this.loc(r)}},n.parseScalarTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var a=this.parseName(),s=this.parseDirectives(!0);return{kind:f.SCALAR_TYPE_DEFINITION,description:i,name:a,directives:s,loc:this.loc(r)}},n.parseObjectTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:f.OBJECT_TYPE_DEFINITION,description:i,name:a,interfaces:s,directives:o,fields:u,loc:this.loc(r)}},n.parseImplementsInterfaces=function(){var r;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(r=this._options)||void 0===r?void 0:r.allowLegacySDLImplementsInterfaces)){var i=[];this.expectOptionalToken(d.AMP);do{i.push(this.parseNamedType())}while(this.expectOptionalToken(d.AMP)||this.peek(d.NAME));return i}return this.delimitedMany(d.AMP,this.parseNamedType)},n.parseFieldsDefinition=function(){var r;return!0===(null===(r=this._options)||void 0===r?void 0:r.allowLegacySDLEmptyFields)&&this.peek(d.BRACE_L)&&this._lexer.lookahead().kind===d.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)},n.parseFieldDefinition=function(){var r=this._lexer.token,i=this.parseDescription(),a=this.parseName(),s=this.parseArgumentDefs();this.expectToken(d.COLON);var o=this.parseTypeReference(),u=this.parseDirectives(!0);return{kind:f.FIELD_DEFINITION,description:i,name:a,arguments:s,type:o,directives:u,loc:this.loc(r)}},n.parseArgumentDefs=function(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)},n.parseInputValueDef=function(){var r=this._lexer.token,i=this.parseDescription(),a=this.parseName();this.expectToken(d.COLON);var o,s=this.parseTypeReference();this.expectOptionalToken(d.EQUALS)&&(o=this.parseValueLiteral(!0));var u=this.parseDirectives(!0);return{kind:f.INPUT_VALUE_DEFINITION,description:i,name:a,type:s,defaultValue:o,directives:u,loc:this.loc(r)}},n.parseInterfaceTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:f.INTERFACE_TYPE_DEFINITION,description:i,name:a,interfaces:s,directives:o,fields:u,loc:this.loc(r)}},n.parseUnionTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:f.UNION_TYPE_DEFINITION,description:i,name:a,directives:s,types:o,loc:this.loc(r)}},n.parseUnionMemberTypes=function(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]},n.parseEnumTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:f.ENUM_TYPE_DEFINITION,description:i,name:a,directives:s,values:o,loc:this.loc(r)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)},n.parseEnumValueDefinition=function(){var r=this._lexer.token,i=this.parseDescription(),a=this.parseName(),s=this.parseDirectives(!0);return{kind:f.ENUM_VALUE_DEFINITION,description:i,name:a,directives:s,loc:this.loc(r)}},n.parseInputObjectTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:f.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:a,directives:s,fields:o,loc:this.loc(r)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)},n.parseTypeSystemExtension=function(){var r=this._lexer.lookahead();if(r.kind===d.NAME)switch(r.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(r)},n.parseSchemaExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var i=this.parseDirectives(!0),a=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===i.length&&0===a.length)throw this.unexpected();return{kind:f.SCHEMA_EXTENSION,directives:i,operationTypes:a,loc:this.loc(r)}},n.parseScalarTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),a=this.parseDirectives(!0);if(0===a.length)throw this.unexpected();return{kind:f.SCALAR_TYPE_EXTENSION,name:i,directives:a,loc:this.loc(r)}},n.parseObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===a.length&&0===s.length&&0===o.length)throw this.unexpected();return{kind:f.OBJECT_TYPE_EXTENSION,name:i,interfaces:a,directives:s,fields:o,loc:this.loc(r)}},n.parseInterfaceTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===a.length&&0===s.length&&0===o.length)throw this.unexpected();return{kind:f.INTERFACE_TYPE_EXTENSION,name:i,interfaces:a,directives:s,fields:o,loc:this.loc(r)}},n.parseUnionTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),a=this.parseDirectives(!0),s=this.parseUnionMemberTypes();if(0===a.length&&0===s.length)throw this.unexpected();return{kind:f.UNION_TYPE_EXTENSION,name:i,directives:a,types:s,loc:this.loc(r)}},n.parseEnumTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),a=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();if(0===a.length&&0===s.length)throw this.unexpected();return{kind:f.ENUM_TYPE_EXTENSION,name:i,directives:a,values:s,loc:this.loc(r)}},n.parseInputObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),a=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();if(0===a.length&&0===s.length)throw this.unexpected();return{kind:f.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:a,fields:s,loc:this.loc(r)}},n.parseDirectiveDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);var a=this.parseName(),s=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var u=this.parseDirectiveLocations();return{kind:f.DIRECTIVE_DEFINITION,description:i,name:a,arguments:s,repeatable:o,locations:u,loc:this.loc(r)}},n.parseDirectiveLocations=function(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)},n.parseDirectiveLocation=function(){var r=this._lexer.token,i=this.parseName();if(void 0!==w[i.value])return i;throw this.unexpected(r)},n.loc=function(r){var i;if(!0!==(null===(i=this._options)||void 0===i?void 0:i.noLocation))return new St(r,this._lexer.lastToken,this._lexer.source)},n.peek=function(r){return this._lexer.token.kind===r},n.expectToken=function(r){var i=this._lexer.token;if(i.kind===r)return this._lexer.advance(),i;throw ae(this._lexer.source,i.start,"Expected ".concat(Ft(r),", found ").concat(Hn(i),"."))},n.expectOptionalToken=function(r){var i=this._lexer.token;if(i.kind===r)return this._lexer.advance(),i},n.expectKeyword=function(r){var i=this._lexer.token;if(i.kind!==d.NAME||i.value!==r)throw ae(this._lexer.source,i.start,'Expected "'.concat(r,'", found ').concat(Hn(i),"."));this._lexer.advance()},n.expectOptionalKeyword=function(r){var i=this._lexer.token;return i.kind===d.NAME&&i.value===r&&(this._lexer.advance(),!0)},n.unexpected=function(r){var i=null!=r?r:this._lexer.token;return ae(this._lexer.source,i.start,"Unexpected ".concat(Hn(i),"."))},n.any=function(r,i,a){this.expectToken(r);for(var s=[];!this.expectOptionalToken(a);)s.push(i.call(this));return s},n.optionalMany=function(r,i,a){if(this.expectOptionalToken(r)){var s=[];do{s.push(i.call(this))}while(!this.expectOptionalToken(a));return s}return[]},n.many=function(r,i,a){this.expectToken(r);var s=[];do{s.push(i.call(this))}while(!this.expectOptionalToken(a));return s},n.delimitedMany=function(r,i){this.expectOptionalToken(r);var a=[];do{a.push(i.call(this))}while(this.expectOptionalToken(r));return a},e}();function Hn(e){var n=e.value;return Ft(e.kind)+(null!=n?' "'.concat(n,'"'):"")}function Ft(e){return function(e){return e===d.BANG||e===d.DOLLAR||e===d.AMP||e===d.PAREN_L||e===d.PAREN_R||e===d.SPREAD||e===d.COLON||e===d.EQUALS||e===d.AT||e===d.BRACKET_L||e===d.BRACKET_R||e===d.BRACE_L||e===d.PIPE||e===d.BRACE_R}(e)?'"'.concat(e,'"'):e}var Di={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"]},rn=Object.freeze({});function kt(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Di,r=void 0,i=Array.isArray(e),a=[e],s=-1,o=[],u=void 0,c=void 0,l=void 0,p=[],v=[],m=e;do{var h=++s===a.length,T=h&&0!==o.length;if(h){if(c=0===v.length?void 0:p[p.length-1],u=l,l=v.pop(),T){if(i)u=u.slice();else{for(var g={},I=0,A=Object.keys(u);I<A.length;I++){var x=A[I];g[x]=u[x]}u=g}for(var M=0,j=0;j<o.length;j++){var Y=o[j][0],z=o[j][1];i&&(Y-=M),i&&null===z?(u.splice(Y,1),M++):u[Y]=z}}s=r.index,a=r.keys,o=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?s:a[s]:void 0,null==(u=l?l[c]:m))continue;l&&p.push(c)}var we,ne=void 0;if(!Array.isArray(u)){if(!Dt(u))throw new Error("Invalid AST Node: ".concat(D(u),"."));var Re=Wn(n,u.kind,h);if(Re){if((ne=Re.call(n,u,c,l,p,v))===rn)break;if(!1===ne){if(!h){p.pop();continue}}else if(void 0!==ne&&(o.push([c,ne]),!h)){if(!Dt(ne)){p.pop();continue}u=ne}}}void 0===ne&&T&&o.push([c,u]),h?p.pop():(r={inArray:i,index:s,keys:a,edits:o,prev:r},a=(i=Array.isArray(u))?u:null!==(we=t[u.kind])&&void 0!==we?we:[],s=-1,o=[],l&&v.push(l),l=u)}while(void 0!==r);return 0!==o.length&&(m=o[o.length-1][1]),m}function wi(e){var n=new Array(e.length);return{enter:function(r){for(var i=0;i<e.length;i++)if(null==n[i]){var a=Wn(e[i],r.kind,!1);if(a){var s=a.apply(e[i],arguments);if(!1===s)n[i]=r;else if(s===rn)n[i]=rn;else if(void 0!==s)return s}}},leave:function(r){for(var i=0;i<e.length;i++)if(null==n[i]){var a=Wn(e[i],r.kind,!0);if(a){var s=a.apply(e[i],arguments);if(s===rn)n[i]=rn;else if(void 0!==s&&!1!==s)return s}}else n[i]===r&&(n[i]=null)}}}function Wn(e,n,t){var r=e[n];if(r){if(!t&&"function"==typeof r)return r;var i=t?r.leave:r.enter;if("function"==typeof i)return i}else{var a=t?e.leave:e.enter;if(a){if("function"==typeof a)return a;var s=a[n];if("function"==typeof s)return s}}}function Rt(e){return e.kind===f.OPERATION_DEFINITION||e.kind===f.FRAGMENT_DEFINITION}function an(e){return e.kind===f.SCALAR_TYPE_DEFINITION||e.kind===f.OBJECT_TYPE_DEFINITION||e.kind===f.INTERFACE_TYPE_DEFINITION||e.kind===f.UNION_TYPE_DEFINITION||e.kind===f.ENUM_TYPE_DEFINITION||e.kind===f.INPUT_OBJECT_TYPE_DEFINITION}function Zn(e){return e.kind===f.SCALAR_TYPE_EXTENSION||e.kind===f.OBJECT_TYPE_EXTENSION||e.kind===f.INTERFACE_TYPE_EXTENSION||e.kind===f.UNION_TYPE_EXTENSION||e.kind===f.ENUM_TYPE_EXTENSION||e.kind===f.INPUT_OBJECT_TYPE_EXTENSION}function Le(e,n){var t="string"==typeof e?[e,n]:[void 0,e],r=t[0],a=" Did you mean ";r&&(a+=r+" ");var s=t[1].map(function(c){return'"'.concat(c,'"')});switch(s.length){case 0:return"";case 1:return a+s[0]+"?";case 2:return a+s[0]+" or "+s[1]+"?"}var o=s.slice(0,5),u=o.pop();return a+o.join(", ")+", or "+u+"?"}function Pt(e,n){for(var t=0,r=0;t<e.length&&r<n.length;){var i=e.charCodeAt(t),a=n.charCodeAt(r);if(Nn(i)&&Nn(a)){var s=0;do{++t,s=10*s+i-$n,i=e.charCodeAt(t)}while(Nn(i)&&s>0);var o=0;do{++r,o=10*o+a-$n,a=n.charCodeAt(r)}while(Nn(a)&&o>0);if(s<o)return-1;if(s>o)return 1}else{if(i<a)return-1;if(i>a)return 1;++t,++r}}return e.length-n.length}var $n=48;function Nn(e){return!isNaN(e)&&$n<=e&&e<=57}function Ve(e,n){for(var t=Object.create(null),r=new Ri(e),i=Math.floor(.4*e.length)+1,a=0;a<n.length;a++){var s=n[a],o=r.measure(s,i);void 0!==o&&(t[s]=o)}return Object.keys(t).sort(function(u,c){var l=t[u]-t[c];return 0!==l?l:Pt(u,c)})}var Ri=function(){function e(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Vt(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}return e.prototype.measure=function(r,i){if(this._input===r)return 0;var a=r.toLowerCase();if(this._inputLowerCase===a)return 1;var s=Vt(a),o=this._inputArray;if(s.length<o.length){var u=s;s=o,o=u}var c=s.length,l=o.length;if(!(c-l>i)){for(var p=this._rows,v=0;v<=l;v++)p[0][v]=v;for(var m=1;m<=c;m++){for(var h=p[(m-1)%3],T=p[m%3],g=T[0]=m,I=1;I<=l;I++){var x=Math.min(h[I]+1,T[I-1]+1,h[I-1]+(s[m-1]===o[I-1]?0:1));m>1&&I>1&&s[m-1]===o[I-2]&&s[m-2]===o[I-1]&&(x=Math.min(x,p[(m-2)%3][I-2]+1)),x<g&&(g=x),T[I]=x}if(g>i)return}var j=p[c%3][l];return j<=i?j:void 0}},e}();function Vt(e){for(var n=e.length,t=new Array(n),r=0;r<n;++r)t[r]=e.charCodeAt(r);return t}const sn=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},On=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function W(e){return kt(e,{leave:Vi})}var Vi={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return O(n.definitions,"\n\n")+"\n"},OperationDefinition:function(n){var t=n.operation,r=n.name,i=Q("(",O(n.variableDefinitions,", "),")"),a=O(n.directives," "),s=n.selectionSet;return r||a||i||"query"!==t?O([t,O([r,i]),a,s]," "):s},VariableDefinition:function(n){var a=n.directives;return n.variable+": "+n.type+Q(" = ",n.defaultValue)+Q(" ",O(a," "))},SelectionSet:function(n){return de(n.selections)},Field:function(n){var r=n.name,i=n.arguments,a=n.directives,s=n.selectionSet,o=Q("",n.alias,": ")+r,u=o+Q("(",O(i,", "),")");return u.length>80&&(u=o+Q("(\n",bn(O(i,"\n")),"\n)")),O([u,O(a," "),s]," ")},Argument:function(n){return n.name+": "+n.value},FragmentSpread:function(n){return"..."+n.name+Q(" ",O(n.directives," "))},InlineFragment:function(n){var r=n.directives,i=n.selectionSet;return O(["...",Q("on ",n.typeCondition),O(r," "),i]," ")},FragmentDefinition:function(n){var r=n.typeCondition,i=n.variableDefinitions,a=n.directives,s=n.selectionSet;return"fragment ".concat(n.name).concat(Q("(",O(i,", "),")")," ")+"on ".concat(r," ").concat(Q("",O(a," ")," "))+s},IntValue:function(n){return n.value},FloatValue:function(n){return n.value},StringValue:function(n,t){var r=n.value;return n.block?function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=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],s="\\"===e[e.length-1],o=!r||a||s||t,u="";return o&&!(r&&i)&&(u+="\n"+n),u+=n?e.replace(/\n/g,"\n"+n):e,o&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(n){return n.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){return n.value},ListValue:function(n){return"["+O(n.values,", ")+"]"},ObjectValue:function(n){return"{"+O(n.fields,", ")+"}"},ObjectField:function(n){return n.name+": "+n.value},Directive:function(n){return"@"+n.name+Q("(",O(n.arguments,", "),")")},NamedType:function(n){return n.name},ListType:function(n){return"["+n.type+"]"},NonNullType:function(n){return n.type+"!"},SchemaDefinition:ve(function(e){var t=e.operationTypes;return O(["schema",O(e.directives," "),de(t)]," ")}),OperationTypeDefinition:function(n){return n.operation+": "+n.type},ScalarTypeDefinition:ve(function(e){return O(["scalar",e.name,O(e.directives," ")]," ")}),ObjectTypeDefinition:ve(function(e){var r=e.directives,i=e.fields;return O(["type",e.name,Q("implements ",O(e.interfaces," & ")),O(r," "),de(i)]," ")}),FieldDefinition:ve(function(e){var t=e.arguments,r=e.type,i=e.directives;return e.name+(Ut(t)?Q("(\n",bn(O(t,"\n")),"\n)"):Q("(",O(t,", "),")"))+": "+r+Q(" ",O(i," "))}),InputValueDefinition:ve(function(e){var i=e.directives;return O([e.name+": "+e.type,Q("= ",e.defaultValue),O(i," ")]," ")}),InterfaceTypeDefinition:ve(function(e){var r=e.directives,i=e.fields;return O(["interface",e.name,Q("implements ",O(e.interfaces," & ")),O(r," "),de(i)]," ")}),UnionTypeDefinition:ve(function(e){var r=e.types;return O(["union",e.name,O(e.directives," "),r&&0!==r.length?"= "+O(r," | "):""]," ")}),EnumTypeDefinition:ve(function(e){var r=e.values;return O(["enum",e.name,O(e.directives," "),de(r)]," ")}),EnumValueDefinition:ve(function(e){return O([e.name,O(e.directives," ")]," ")}),InputObjectTypeDefinition:ve(function(e){var r=e.fields;return O(["input",e.name,O(e.directives," "),de(r)]," ")}),DirectiveDefinition:ve(function(e){var t=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+e.name+(Ut(t)?Q("(\n",bn(O(t,"\n")),"\n)"):Q("(",O(t,", "),")"))+(r?" repeatable":"")+" on "+O(i," | ")}),SchemaExtension:function(n){var r=n.operationTypes;return O(["extend schema",O(n.directives," "),de(r)]," ")},ScalarTypeExtension:function(n){return O(["extend scalar",n.name,O(n.directives," ")]," ")},ObjectTypeExtension:function(n){var i=n.directives,a=n.fields;return O(["extend type",n.name,Q("implements ",O(n.interfaces," & ")),O(i," "),de(a)]," ")},InterfaceTypeExtension:function(n){var i=n.directives,a=n.fields;return O(["extend interface",n.name,Q("implements ",O(n.interfaces," & ")),O(i," "),de(a)]," ")},UnionTypeExtension:function(n){var i=n.types;return O(["extend union",n.name,O(n.directives," "),i&&0!==i.length?"= "+O(i," | "):""]," ")},EnumTypeExtension:function(n){var i=n.values;return O(["extend enum",n.name,O(n.directives," "),de(i)]," ")},InputObjectTypeExtension:function(n){var i=n.fields;return O(["extend input",n.name,O(n.directives," "),de(i)]," ")}};function ve(e){return function(n){return O([n.description,e(n)],"\n")}}function O(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(n=null==e?void 0:e.filter(function(r){return r}).join(t))&&void 0!==n?n:""}function de(e){return Q("{\n",bn(O(e,"\n")),"\n}")}function Q(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=n&&""!==n?e+n+t:""}function bn(e){return Q(" ",e.replace(/\n/g,"\n "))}function Ui(e){return-1!==e.indexOf("\n")}function Ut(e){return null!=e&&e.some(Ui)}const Je=Object.entries||function(e){return Object.keys(e).map(function(n){return[n,e[n]]})};function Ne(e,n){return e.reduce(function(t,r){return t[n(r)]=r,t},Object.create(null))}function Oe(e,n){for(var t=Object.create(null),r=0,i=Je(e);r<i.length;r++){var a=i[r],s=a[0];t[s]=n(a[1],s)}return t}function se(e){if(null===Object.getPrototypeOf(e))return e;for(var n=Object.create(null),t=0,r=Je(e);t<r.length;t++){var i=r[t];n[i[0]]=i[1]}return n}function et(e,n,t){return e.reduce(function(r,i){return r[n(i)]=t(i),r},Object.create(null))}function jt(e){return e}function nt(e,n){switch(e.kind){case f.NULL:return null;case f.INT:return parseInt(e.value,10);case f.FLOAT:return parseFloat(e.value);case f.STRING:case f.ENUM:case f.BOOLEAN:return e.value;case f.LIST:return e.values.map(function(t){return nt(t,n)});case f.OBJECT:return et(e.fields,function(t){return t.name.value},function(t){return nt(t.value,n)});case f.VARIABLE:return null==n?void 0:n[e.name.value]}ue(0,"Unexpected value node: "+D(e))}function Bt(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qe(e,n,t){return n&&Bt(e.prototype,n),t&&Bt(e,t),e}function tt(e){return be(e)||Z(e)||J(e)||ce(e)||le(e)||re(e)||ie(e)||B(e)}function be(e){return Ee(e,Se)}function Z(e){return Ee(e,ge)}function J(e){return Ee(e,wn)}function ce(e){return Ee(e,An)}function le(e){return Ee(e,We)}function re(e){return Ee(e,Ln)}function ie(e){return Ee(e,X)}function B(e){return Ee(e,_)}function rt(e){return be(e)||le(e)||re(e)||Sn(e)&&rt(e.ofType)}function Ue(e){return be(e)||le(e)}function Xe(e){return Z(e)||J(e)||ce(e)}function je(e){return J(e)||ce(e)}function X(e){if(!(this instanceof X))return new X(e);this.ofType=function(e){if(!tt(e))throw new Error("Expected ".concat(D(e)," to be a GraphQL type."));return e}(e)}function _(e){if(!(this instanceof _))return new _(e);this.ofType=function(e){if(!function(e){return tt(e)&&!B(e)}(e))throw new Error("Expected ".concat(D(e)," to be a GraphQL nullable type."));return e}(e)}function Sn(e){return ie(e)||B(e)}function Be(e){if(e){for(var n=e;Sn(n);)n=n.ofType;return n}}function Dn(e){return"function"==typeof e?e():e}function ze(e){return e&&e.length>0?e:void 0}X.prototype.toString=function(){return"["+String(this.ofType)+"]"},X.prototype.toJSON=function(){return this.toString()},Object.defineProperty(X.prototype,oe,{get:function(){return"GraphQLList"}}),pe(X),_.prototype.toString=function(){return String(this.ofType)+"!"},_.prototype.toJSON=function(){return this.toString()},Object.defineProperty(_.prototype,oe,{get:function(){return"GraphQLNonNull"}}),pe(_);var Se=function(){function e(t){var r,i,a,s=null!==(r=t.parseValue)&&void 0!==r?r:jt;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=null!==(i=t.serialize)&&void 0!==i?i:jt,this.parseValue=s,this.parseLiteral=null!==(a=t.parseLiteral)&&void 0!==a?a:function(o,u){return s(nt(o,u))},this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),"string"==typeof t.name||F(0,"Must provide name."),null==t.specifiedByUrl||"string"==typeof t.specifiedByUrl||F(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(D(t.specifiedByUrl),".")),null==t.serialize||"function"==typeof t.serialize||F(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),t.parseLiteral&&("function"==typeof t.parseValue&&"function"==typeof t.parseLiteral||F(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var r;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLScalarType"}}]),e}();pe(Se);var ge=function(){function e(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),this._fields=Qt.bind(void 0,t),this._interfaces=Yt.bind(void 0,t),"string"==typeof t.name||F(0,"Must provide name."),null==t.isTypeOf||"function"==typeof t.isTypeOf||F(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(D(t.isTypeOf),"."))}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Kt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLObjectType"}}]),e}();function Yt(e){var n,t=null!==(n=Dn(e.interfaces))&&void 0!==n?n:[];return Array.isArray(t)||F(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function Qt(e){var n=Dn(e.fields);return He(n)||F(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Oe(n,function(t,r){var i;He(t)||F(0,"".concat(e.name,".").concat(r," field config must be an object.")),!("isDeprecated"in t)||F(0,"".concat(e.name,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||F(0,"".concat(e.name,".").concat(r," field resolver must be a function if ")+"provided, but got: ".concat(D(t.resolve),"."));var a=null!==(i=t.args)&&void 0!==i?i:{};He(a)||F(0,"".concat(e.name,".").concat(r," args must be an object with argument names as keys."));var s=Je(a).map(function(o){var c=o[1];return{name:o[0],description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&se(c.extensions),astNode:c.astNode}});return{name:r,description:t.description,type:t.type,args:s,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&se(t.extensions),astNode:t.astNode}})}function He(e){return Me(e)&&!Array.isArray(e)}function Kt(e){return Oe(e,function(n){return{description:n.description,type:n.type,args:Jt(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function Jt(e){return et(e,function(n){return n.name},function(n){return{description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function qt(e){return B(e.type)&&void 0===e.defaultValue}pe(ge);var wn=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),this._fields=Qt.bind(void 0,t),this._interfaces=Yt.bind(void 0,t),"string"==typeof t.name||F(0,"Must provide name."),null==t.resolveType||"function"==typeof t.resolveType||F(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(D(t.resolveType),"."))}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){var r;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Kt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLInterfaceType"}}]),e}();pe(wn);var An=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),this._types=Ji.bind(void 0,t),"string"==typeof t.name||F(0,"Must provide name."),null==t.resolveType||"function"==typeof t.resolveType||F(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(D(t.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},n.toConfig=function(){var r;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLUnionType"}}]),e}();function Ji(e){var n=Dn(e.types);return Array.isArray(n)||F(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}pe(An);var We=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),this._values=function(e,n){return He(n)||F(0,"".concat(e," values must be an object with value names as keys.")),Je(n).map(function(t){var r=t[0],i=t[1];return He(i)||F(0,"".concat(e,".").concat(r,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(D(i),".")),!("isDeprecated"in i)||F(0,"".concat(e,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),{name:r,description:i.description,value:void 0!==i.value?i.value:r,isDeprecated:null!=i.deprecationReason,deprecationReason:i.deprecationReason,extensions:i.extensions&&se(i.extensions),astNode:i.astNode}})}(this.name,t.values),this._valueLookup=new Map(this._values.map(function(r){return[r.value,r]})),this._nameLookup=Ne(this._values,function(r){return r.name}),"string"==typeof t.name||F(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(r){return this._nameLookup[r]},n.serialize=function(r){var i=this._valueLookup.get(r);if(void 0===i)throw new E('Enum "'.concat(this.name,'" cannot represent value: ').concat(D(r)));return i.name},n.parseValue=function(r){if("string"!=typeof r){var i=D(r);throw new E('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+_n(this,i))}var a=this.getValue(r);if(null==a)throw new E('Value "'.concat(r,'" does not exist in "').concat(this.name,'" enum.')+_n(this,r));return a.value},n.parseLiteral=function(r,i){if(r.kind!==f.ENUM){var a=W(r);throw new E('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(a,".")+_n(this,a),r)}var s=this.getValue(r.value);if(null==s){var o=W(r);throw new E('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+_n(this,o),r)}return s.value},n.toConfig=function(){var r,i=et(this.getValues(),function(a){return a.name},function(a){return{description:a.description,value:a.value,deprecationReason:a.deprecationReason,extensions:a.extensions,astNode:a.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLEnumType"}}]),e}();function _n(e,n){return Le("the enum value",Ve(n,e.getValues().map(function(i){return i.name})))}pe(We);var Ln=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=ze(t.extensionASTNodes),this._fields=Xi.bind(void 0,t),"string"==typeof t.name||F(0,"Must provide name.")}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.toConfig=function(){var r,i=Oe(this.getFields(),function(a){return{description:a.description,type:a.type,defaultValue:a.defaultValue,extensions:a.extensions,astNode:a.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},qe(e,[{key:oe,get:function(){return"GraphQLInputObjectType"}}]),e}();function Xi(e){var n=Dn(e.fields);return He(n)||F(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Oe(n,function(t,r){return!("resolve"in t)||F(0,"".concat(e.name,".").concat(r," field has a resolve property, but Input Types cannot define resolvers.")),{name:r,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&se(t.extensions),astNode:t.astNode}})}function zi(e){return B(e.type)&&void 0===e.defaultValue}pe(Ln);var it=2147483647,at=-2147483648,Zi=new Se({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 n=on(e);if("boolean"==typeof n)return n?1:0;var t=n;if("string"==typeof n&&""!==n&&(t=Number(n)),!On(t))throw new E("Int cannot represent non-integer value: ".concat(D(n)));if(t>it||t<at)throw new E("Int cannot represent non 32-bit signed integer value: "+D(n));return t},parseValue:function(e){if(!On(e))throw new E("Int cannot represent non-integer value: ".concat(D(e)));if(e>it||e<at)throw new E("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(n){if(n.kind!==f.INT)throw new E("Int cannot represent non-integer value: ".concat(W(n)),n);var t=parseInt(n.value,10);if(t>it||t<at)throw new E("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}}),na=new Se({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 n=on(e);if("boolean"==typeof n)return n?1:0;var t=n;if("string"==typeof n&&""!==n&&(t=Number(n)),!sn(t))throw new E("Float cannot represent non numeric value: ".concat(D(n)));return t},parseValue:function(e){if(!sn(e))throw new E("Float cannot represent non numeric value: ".concat(D(e)));return e},parseLiteral:function(n){if(n.kind!==f.FLOAT&&n.kind!==f.INT)throw new E("Float cannot represent non numeric value: ".concat(W(n)),n);return parseFloat(n.value)}});function on(e){if(Me(e)){if("function"==typeof e.valueOf){var n=e.valueOf();if(!Me(n))return n}if("function"==typeof e.toJSON)return e.toJSON()}return e}var q=new Se({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 n=on(e);if("string"==typeof n)return n;if("boolean"==typeof n)return n?"true":"false";if(sn(n))return n.toString();throw new E("String cannot represent value: ".concat(D(e)))},parseValue:function(e){if("string"!=typeof e)throw new E("String cannot represent a non string value: ".concat(D(e)));return e},parseLiteral:function(n){if(n.kind!==f.STRING)throw new E("String cannot represent a non string value: ".concat(W(n)),n);return n.value}}),he=new Se({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var n=on(e);if("boolean"==typeof n)return n;if(sn(n))return 0!==n;throw new E("Boolean cannot represent a non boolean value: ".concat(D(n)))},parseValue:function(e){if("boolean"!=typeof e)throw new E("Boolean cannot represent a non boolean value: ".concat(D(e)));return e},parseLiteral:function(n){if(n.kind!==f.BOOLEAN)throw new E("Boolean cannot represent a non boolean value: ".concat(W(n)),n);return n.value}}),Xt=new Se({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 n=on(e);if("string"==typeof n)return n;if(On(n))return String(n);throw new E("ID cannot represent value: ".concat(D(e)))},parseValue:function(e){if("string"==typeof e)return e;if(On(e))return e.toString();throw new E("ID cannot represent value: ".concat(D(e)))},parseLiteral:function(n){if(n.kind!==f.STRING&&n.kind!==f.INT)throw new E("ID cannot represent a non-string and non-integer value: "+W(n),n);return n.value}}),st=Object.freeze([q,Zi,na,he,Xt]);const Ie=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})};function xn(e){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function un(e,n){if(B(n)){var t=un(e,n.ofType);return(null==t?void 0:t.kind)===f.NULL?null:t}if(null===e)return{kind:f.NULL};if(void 0===e)return null;if(ie(n)){var r=n.ofType,i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(l){return l};if(null==e||"object"!==xn(e))return null;if(Array.isArray(e))return e.map(n);var t=e[Et];if("function"==typeof t){for(var a,r=t.call(e),i=[],s=0;!(a=r.next()).done;++s)i.push(n(a.value,s));return i}var o=e.length;if("number"==typeof o&&o>=0&&o%1==0){for(var u=[],c=0;c<o;++c){if(!Object.prototype.hasOwnProperty.call(e,c))return null;u.push(n(e[String(c)],c))}return u}return null}(e);if(null!=i){for(var a=[],s=0;s<i.length;s++){var u=un(i[s],r);null!=u&&a.push(u)}return{kind:f.LIST,values:a}}return un(e,r)}if(re(n)){if(!Me(e))return null;for(var c=[],l=0,p=Ie(n.getFields());l<p.length;l++){var v=p[l],m=un(e[v.name],v.type);m&&c.push({kind:f.OBJECT_FIELD,name:{kind:f.NAME,value:v.name},value:m})}return{kind:f.OBJECT,fields:c}}if(Ue(n)){var h=n.serialize(e);if(null==h)return null;if("boolean"==typeof h)return{kind:f.BOOLEAN,value:h};if("number"==typeof h&&sn(h)){var T=String(h);return zt.test(T)?{kind:f.INT,value:T}:{kind:f.FLOAT,value:T}}if("string"==typeof h)return le(n)?{kind:f.ENUM,value:h}:n===Xt&&zt.test(h)?{kind:f.INT,value:h}:{kind:f.STRING,value:h};throw new TypeError("Cannot convert value to AST: ".concat(D(h),"."))}ue(0,"Unexpected input type: "+D(n))}var zt=/^-?(?:0|[1-9][0-9]*)$/,ot=new ge({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:q,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new _(new X(new _(me))),resolve:function(t){return Ie(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new _(me),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:me,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:me,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new _(new X(new _(Ht))),resolve:function(t){return t.getDirectives()}}}}}),Ht=new ge({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new _(q),resolve:function(t){return t.name}},description:{type:q,resolve:function(t){return t.description}},isRepeatable:{type:new _(he),resolve:function(t){return t.isRepeatable}},locations:{type:new _(new X(new _(Wt))),resolve:function(t){return t.locations}},args:{type:new _(new X(new _(Fn))),resolve:function(t){return t.args}}}}}),Wt=new We({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:w.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:w.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:w.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:w.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:w.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:w.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:w.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:w.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:w.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:w.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:w.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:w.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:w.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:w.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:w.UNION,description:"Location adjacent to a union definition."},ENUM:{value:w.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:w.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:w.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:w.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),me=new ge({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new _(er),resolve:function(t){return be(t)?te.SCALAR:Z(t)?te.OBJECT:J(t)?te.INTERFACE:ce(t)?te.UNION:le(t)?te.ENUM:re(t)?te.INPUT_OBJECT:ie(t)?te.LIST:B(t)?te.NON_NULL:void ue(0,'Unexpected type: "'.concat(D(t),'".'))}},name:{type:q,resolve:function(t){return void 0!==t.name?t.name:void 0}},description:{type:q,resolve:function(t){return void 0!==t.description?t.description:void 0}},specifiedByUrl:{type:q,resolve:function(t){return void 0!==t.specifiedByUrl?t.specifiedByUrl:void 0}},fields:{type:new X(new _(Zt)),args:{includeDeprecated:{type:he,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(Z(t)||J(t)){var a=Ie(t.getFields());return i?a:a.filter(function(s){return null==s.deprecationReason})}}},interfaces:{type:new X(new _(me)),resolve:function(t){if(Z(t)||J(t))return t.getInterfaces()}},possibleTypes:{type:new X(new _(me)),resolve:function(t,r,i,a){var s=a.schema;if(je(t))return s.getPossibleTypes(t)}},enumValues:{type:new X(new _($t)),args:{includeDeprecated:{type:he,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(le(t)){var a=t.getValues();return i?a:a.filter(function(s){return null==s.deprecationReason})}}},inputFields:{type:new X(new _(Fn)),args:{includeDeprecated:{type:he,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(re(t)){var a=Ie(t.getFields());return i?a:a.filter(function(s){return null==s.deprecationReason})}}},ofType:{type:me,resolve:function(t){return void 0!==t.ofType?t.ofType:void 0}}}}}),Zt=new ge({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new _(q),resolve:function(t){return t.name}},description:{type:q,resolve:function(t){return t.description}},args:{type:new _(new X(new _(Fn))),args:{includeDeprecated:{type:he,defaultValue:!1}},resolve:function(t,r){return r.includeDeprecated?t.args:t.args.filter(function(a){return null==a.deprecationReason})}},type:{type:new _(me),resolve:function(t){return t.type}},isDeprecated:{type:new _(he),resolve:function(t){return null!=t.deprecationReason}},deprecationReason:{type:q,resolve:function(t){return t.deprecationReason}}}}}),Fn=new ge({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new _(q),resolve:function(t){return t.name}},description:{type:q,resolve:function(t){return t.description}},type:{type:new _(me),resolve:function(t){return t.type}},defaultValue:{type:q,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var a=un(t.defaultValue,t.type);return a?W(a):null}},isDeprecated:{type:new _(he),resolve:function(t){return null!=t.deprecationReason}},deprecationReason:{type:q,resolve:function(t){return t.deprecationReason}}}}}),$t=new ge({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new _(q),resolve:function(t){return t.name}},description:{type:q,resolve:function(t){return t.description}},isDeprecated:{type:new _(he),resolve:function(t){return null!=t.deprecationReason}},deprecationReason:{type:q,resolve:function(t){return t.deprecationReason}}}}}),te=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),er=new We({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:te.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:te.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:te.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:te.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:te.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:te.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:te.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:te.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ut=(new _(ot),new _(q),new _(q),Object.freeze([ot,Ht,Wt,me,Zt,Fn,$t,er]));function nr(e){for(var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null),i=0,a=e.getDocument().definitions;i<a.length;i++){var s=a[i];an(s)&&(r[s.name.value]=!0)}var o=Object.keys(t).concat(Object.keys(r));return{NamedType:function(c,l,p,v,m){var h=c.name.value;if(!t[h]&&!r[h]){var T,g=null!==(T=m[2])&&void 0!==T?T:p,I=null!=g&&function(e){return!Array.isArray(e)&&(function(e){return e.kind===f.SCHEMA_DEFINITION||an(e)||e.kind===f.DIRECTIVE_DEFINITION}(e)||function(e){return e.kind===f.SCHEMA_EXTENSION||Zn(e)}(e))}(g);if(I&&function(e){return-1!==tr.indexOf(e)}(h))return;var A=Ve(h,I?tr.concat(o):o);e.reportError(new E('Unknown type "'.concat(h,'".')+Le(A),c))}}}}var tr=[].concat(st,ut).map(function(e){return e.name});function De(e,n){var t;return n.kind===f.LIST_TYPE?(t=De(e,n.type))&&new X(t):n.kind===f.NON_NULL_TYPE?(t=De(e,n.type))&&new _(t):n.kind===f.NAMED_TYPE?e.getType(n.name.value):void ue(0,"Unexpected type node: "+D(n))}const rr=Array.from||function(e,n,t){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[Et];if("function"==typeof r){for(var s,i=r.call(e),a=[],o=0;!(s=i.next()).done;++o)if(a.push(n.call(t,s.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return a}var u=e.length;if("number"==typeof u&&u>=0&&u%1==0){for(var c=[],l=0;l<u;++l)Object.prototype.hasOwnProperty.call(e,l)&&c.push(n.call(t,e[l],l));return c}return[]};function cn(e,n,t){return n===t||(B(t)?!!B(n)&&cn(e,n.ofType,t.ofType):B(n)?cn(e,n.ofType,t):ie(t)?!!ie(n)&&cn(e,n.ofType,t.ofType):!ie(n)&&je(t)&&(J(n)||Z(n))&&e.isSubType(t,n))}function ar(e,n,t){return n===t||(je(n)?je(t)?e.getPossibleTypes(n).some(function(r){return e.isSubType(t,r)}):e.isSubType(n,t):!!je(t)&&e.isSubType(t,n))}function sr(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function or(e){return Ee(e,xe)}var xe=function(){function e(t){var r,i;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=null!==(r=t.isRepeatable)&&void 0!==r&&r,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,t.name||F(0,"Directive must be named."),Array.isArray(t.locations)||F(0,"@".concat(t.name," locations must be an Array."));var a=null!==(i=t.args)&&void 0!==i?i:{};Me(a)&&!Array.isArray(a)||F(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=Je(a).map(function(s){var u=s[1];return{name:s[0],description:u.description,type:u.type,defaultValue:u.defaultValue,deprecationReason:u.deprecationReason,extensions:u.extensions&&se(u.extensions),astNode:u.astNode}})}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Jt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},function(e,n,t){n&&sr(e.prototype,n)}(e,[{key:oe,get:function(){return"GraphQLDirective"}}]),e}();pe(xe);var xa=new xe({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[w.FIELD,w.FRAGMENT_SPREAD,w.INLINE_FRAGMENT],args:{if:{type:new _(he),description:"Included when true."}}}),Fa=new xe({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[w.FIELD,w.FRAGMENT_SPREAD,w.INLINE_FRAGMENT],args:{if:{type:new _(he),description:"Skipped when true."}}}),ur=new xe({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[w.FIELD_DEFINITION,w.ARGUMENT_DEFINITION,w.INPUT_FIELD_DEFINITION,w.ENUM_VALUE],args:{reason:{type:q,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:"No longer supported"}}}),cr=new xe({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[w.SCALAR],args:{url:{type:new _(q),description:"The URL that specifies the behaviour of this scalar."}}}),Fe=Object.freeze([xa,Fa,ur,cr]);function lr(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Fe,i=0;i<r.length;i++){var a=r[i];n[a.name]=a.locations}for(var s=e.getDocument().definitions,o=0;o<s.length;o++){var u=s[o];u.kind===f.DIRECTIVE_DEFINITION&&(n[u.name.value]=u.locations.map(function(c){return c.value}))}return{Directive:function(l,p,v,m,h){var T=l.name.value,g=n[T];if(g){var I=function(e){var n=e[e.length-1];switch(!Array.isArray(n)||ue(0),n.kind){case f.OPERATION_DEFINITION:return function(e){switch(e){case"query":return w.QUERY;case"mutation":return w.MUTATION;case"subscription":return w.SUBSCRIPTION}ue(0,"Unexpected operation: "+D(e))}(n.operation);case f.FIELD:return w.FIELD;case f.FRAGMENT_SPREAD:return w.FRAGMENT_SPREAD;case f.INLINE_FRAGMENT:return w.INLINE_FRAGMENT;case f.FRAGMENT_DEFINITION:return w.FRAGMENT_DEFINITION;case f.VARIABLE_DEFINITION:return w.VARIABLE_DEFINITION;case f.SCHEMA_DEFINITION:case f.SCHEMA_EXTENSION:return w.SCHEMA;case f.SCALAR_TYPE_DEFINITION:case f.SCALAR_TYPE_EXTENSION:return w.SCALAR;case f.OBJECT_TYPE_DEFINITION:case f.OBJECT_TYPE_EXTENSION:return w.OBJECT;case f.FIELD_DEFINITION:return w.FIELD_DEFINITION;case f.INTERFACE_TYPE_DEFINITION:case f.INTERFACE_TYPE_EXTENSION:return w.INTERFACE;case f.UNION_TYPE_DEFINITION:case f.UNION_TYPE_EXTENSION:return w.UNION;case f.ENUM_TYPE_DEFINITION:case f.ENUM_TYPE_EXTENSION:return w.ENUM;case f.ENUM_VALUE_DEFINITION:return w.ENUM_VALUE;case f.INPUT_OBJECT_TYPE_DEFINITION:case f.INPUT_OBJECT_TYPE_EXTENSION:return w.INPUT_OBJECT;case f.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===f.INPUT_OBJECT_TYPE_DEFINITION?w.INPUT_FIELD_DEFINITION:w.ARGUMENT_DEFINITION}}(h);I&&-1===g.indexOf(I)&&e.reportError(new E('Directive "@'.concat(T,'" may not be used on ').concat(I,"."),l))}else e.reportError(new E('Unknown directive "@'.concat(T,'".'),l))}}}function fr(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Fe,i=0;i<r.length;i++){var a=r[i];n[a.name]=!a.isRepeatable}for(var s=e.getDocument().definitions,o=0;o<s.length;o++){var u=s[o];u.kind===f.DIRECTIVE_DEFINITION&&(n[u.name.value]=!u.repeatable)}var c=Object.create(null),l=Object.create(null);return{enter:function(v){if(null!=v.directives){var m;if(v.kind===f.SCHEMA_DEFINITION||v.kind===f.SCHEMA_EXTENSION)m=c;else if(an(v)||Zn(v)){var h=v.name.value;void 0===(m=l[h])&&(l[h]=m=Object.create(null))}else m=Object.create(null);for(var T=0,g=v.directives;T<g.length;T++){var I=g[T],A=I.name.value;n[A]&&(m[A]?e.reportError(new E('The directive "@'.concat(A,'" can only be used once at this location.'),[m[A],I])):m[A]=I)}}}}}function pr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function vr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pr(Object(t),!0).forEach(function(r){Ma(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pr(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ma(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function dr(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Fe,i=0;i<r.length;i++){var a=r[i];n[a.name]=a.args.map(function(p){return p.name})}for(var s=e.getDocument().definitions,o=0;o<s.length;o++){var u=s[o];if(u.kind===f.DIRECTIVE_DEFINITION){var c,l=null!==(c=u.arguments)&&void 0!==c?c:[];n[u.name.value]=l.map(function(p){return p.name.value})}}return{Directive:function(v){var m=v.name.value,h=n[m];if(v.arguments&&h)for(var T=0,g=v.arguments;T<g.length;T++){var I=g[T],A=I.name.value;if(-1===h.indexOf(A)){var x=Ve(A,h);e.reportError(new E('Unknown argument "'.concat(A,'" on directive "@').concat(m,'".')+Le(x),I))}}return!1}}}function hr(e){var n=Object.create(null);return{Field:function(){n=Object.create(null)},Directive:function(){n=Object.create(null)},Argument:function(r){var i=r.name.value;return n[i]?e.reportError(new E('There can be only one argument named "'.concat(i,'".'),[n[i],r.name])):n[i]=r.name,!1}}}function Ge(e,n){var t=e.getInputType();if(t){var r=Be(t);if(!Ue(r)){var i=D(t);return void e.reportError(new E('Expected value of type "'.concat(i,'", found ').concat(W(n),"."),n))}try{if(void 0===r.parseLiteral(n,void 0)){var s=D(t);e.reportError(new E('Expected value of type "'.concat(s,'", found ').concat(W(n),"."),n))}}catch(u){var o=D(t);e.reportError(u instanceof E?u:new E('Expected value of type "'.concat(o,'", found ').concat(W(n),"; ")+u.message,n,void 0,void 0,void 0,u))}}}function mr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function yr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?mr(Object(t),!0).forEach(function(r){Ua(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):mr(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ua(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Tr(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Fe,i=0;i<r.length;i++){var a=r[i];n[a.name]=Ne(a.args.filter(qt),function(p){return p.name})}for(var s=e.getDocument().definitions,o=0;o<s.length;o++){var u=s[o];if(u.kind===f.DIRECTIVE_DEFINITION){var c,l=null!==(c=u.arguments)&&void 0!==c?c:[];n[u.name.value]=Ne(l.filter(Ba),function(p){return p.name.value})}}return{Directive:{leave:function(v){var m=v.name.value,h=n[m];if(h)for(var T,I=Ne(null!==(T=v.arguments)&&void 0!==T?T:[],function(z){return z.name.value}),A=0,x=Object.keys(h);A<x.length;A++){var M=x[A];if(!I[M]){var j=h[M].type,Y=tt(j)?D(j):W(j);e.reportError(new E('Directive "@'.concat(m,'" argument "').concat(M,'" of type "').concat(Y,'" is required, but it was not provided.'),v))}}}}}}function Ba(e){return e.type.kind===f.NON_NULL_TYPE&&null==e.defaultValue}function Ya(e,n,t,r,i){return B(r)&&!B(n)?(null!=t&&t.kind!==f.NULL||void 0!==i)&&cn(e,n,r.ofType):cn(e,n,r)}const ct=Array.prototype.find?function(e,n){return Array.prototype.find.call(e,n)}:function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(n(r))return r}};function Er(e){return Array.isArray(e)?e.map(function(n){var r=n[1];return'subfields "'.concat(n[0],'" conflict because ')+Er(r)}).join(" and "):e}function kn(e,n,t,r,i,a,s){var o=e.getFragment(s);if(o){var u=pt(e,t,o),c=u[0],l=u[1];if(a!==c){lt(e,n,t,r,i,a,c);for(var p=0;p<l.length;p++)kn(e,n,t,r,i,a,l[p])}}}function Rn(e,n,t,r,i,a,s){if(a!==s&&!r.has(a,s,i)){r.add(a,s,i);var o=e.getFragment(a),u=e.getFragment(s);if(o&&u){var c=pt(e,t,o),l=c[0],p=c[1],v=pt(e,t,u),h=v[1];lt(e,n,t,r,i,l,v[0]);for(var T=0;T<h.length;T++)Rn(e,n,t,r,i,a,h[T]);for(var g=0;g<p.length;g++)Rn(e,n,t,r,i,p[g],s)}}}function lt(e,n,t,r,i,a,s){for(var o=0,u=Object.keys(a);o<u.length;o++){var c=u[o],l=s[c];if(l)for(var p=a[c],v=0;v<p.length;v++)for(var m=0;m<l.length;m++){var h=gr(e,t,r,i,c,p[v],l[m]);h&&n.push(h)}}}function gr(e,n,t,r,i,a,s){var o=a[0],u=a[1],c=a[2],l=s[0],p=s[1],v=s[2],m=r||o!==l&&Z(o)&&Z(l);if(!m){var h,T,g=u.name.value,I=p.name.value;if(g!==I)return[[i,'"'.concat(g,'" and "').concat(I,'" are different fields')],[u],[p]];if(!function(e,n){return e.length===n.length&&e.every(function(t){var r=ct(n,function(i){return i.name.value===t.name.value});return!!r&&function(e,n){return W(e)===W(n)}(t.value,r.value)})}(null!==(h=u.arguments)&&void 0!==h?h:[],null!==(T=p.arguments)&&void 0!==T?T:[]))return[[i,"they have differing arguments"],[u],[p]]}var M=null==c?void 0:c.type,j=null==v?void 0:v.type;if(M&&j&&ft(M,j))return[[i,'they return conflicting types "'.concat(D(M),'" and "').concat(D(j),'"')],[u],[p]];var Y=u.selectionSet,z=p.selectionSet;return Y&&z?function(e,n,t,r){if(e.length>0)return[[n,e.map(function(i){return i[0]})],e.reduce(function(i,a){return i.concat(a[1])},[t]),e.reduce(function(i,a){return i.concat(a[2])},[r])]}(function(e,n,t,r,i,a,s,o){var u=[],c=Cn(e,n,i,a),l=c[0],p=c[1],v=Cn(e,n,s,o),m=v[0],h=v[1];if(lt(e,u,n,t,r,l,m),0!==h.length)for(var T=0;T<h.length;T++)kn(e,u,n,t,r,l,h[T]);if(0!==p.length)for(var g=0;g<p.length;g++)kn(e,u,n,t,r,m,p[g]);for(var I=0;I<p.length;I++)for(var A=0;A<h.length;A++)Rn(e,u,n,t,r,p[I],h[A]);return u}(e,n,t,m,Be(M),Y,Be(j),z),i,u,p):void 0}function ft(e,n){return ie(e)?!ie(n)||ft(e.ofType,n.ofType):!!ie(n)||(B(e)?!B(n)||ft(e.ofType,n.ofType):!!B(n)||!(!Ue(e)&&!Ue(n))&&e!==n)}function Cn(e,n,t,r){var i=n.get(r);if(!i){var a=Object.create(null),s=Object.create(null);Ir(e,t,r,a,s),i=[a,Object.keys(s)],n.set(r,i)}return i}function pt(e,n,t){var r=n.get(t.selectionSet);if(r)return r;var i=De(e.getSchema(),t.typeCondition);return Cn(e,n,i,t.selectionSet)}function Ir(e,n,t,r,i){for(var a=0,s=t.selections;a<s.length;a++){var o=s[a];switch(o.kind){case f.FIELD:var u=o.name.value,c=void 0;(Z(n)||J(n))&&(c=n.getFields()[u]);var l=o.alias?o.alias.value:u;r[l]||(r[l]=[]),r[l].push([n,o,c]);break;case f.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case f.INLINE_FRAGMENT:var p=o.typeCondition,v=p?De(e.getSchema(),p):n;Ir(e,v,o.selectionSet,r,i)}}}var ke,Za=function(){function e(){this._data=Object.create(null)}var n=e.prototype;return n.has=function(r,i,a){var s=this._data[r],o=s&&s[i];return void 0!==o&&(!1!==a||!1===o)},n.add=function(r,i,a){this._pairSetAdd(r,i,a),this._pairSetAdd(i,r,a)},n._pairSetAdd=function(r,i,a){var s=this._data[r];s||(s=Object.create(null),this._data[r]=s),s[i]=a},e}();function Nr(e){var n=[],t=Object.create(null);return{ObjectValue:{enter:function(){n.push(t),t=Object.create(null)},leave:function(){t=n.pop()}},ObjectField:function(i){var a=i.name.value;t[a]?e.reportError(new E('There can be only one input field named "'.concat(a,'".'),[t[a],i.name])):t[a]=i.name}}}function is(e,n){return!!(Z(e)||J(e)||re(e))&&null!=e.getFields()[n]}function Ze(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var os=(Ze(ke={},f.SCALAR_TYPE_DEFINITION,f.SCALAR_TYPE_EXTENSION),Ze(ke,f.OBJECT_TYPE_DEFINITION,f.OBJECT_TYPE_EXTENSION),Ze(ke,f.INTERFACE_TYPE_DEFINITION,f.INTERFACE_TYPE_EXTENSION),Ze(ke,f.UNION_TYPE_DEFINITION,f.UNION_TYPE_EXTENSION),Ze(ke,f.ENUM_TYPE_DEFINITION,f.ENUM_TYPE_EXTENSION),Ze(ke,f.INPUT_OBJECT_TYPE_DEFINITION,f.INPUT_OBJECT_TYPE_EXTENSION),ke);Object.freeze([function(e){return{Document:function(t){for(var r=0,i=t.definitions;r<i.length;r++){var a=i[r];Rt(a)||e.reportError(new E("The ".concat(a.kind===f.SCHEMA_DEFINITION||a.kind===f.SCHEMA_EXTENSION?"schema":'"'+a.name.value+'"'," definition is not executable."),a))}return!1}}},function(e){var n=Object.create(null);return{OperationDefinition:function(r){var i=r.name;return i&&(n[i.value]?e.reportError(new E('There can be only one operation named "'.concat(i.value,'".'),[n[i.value],i])):n[i.value]=i),!1},FragmentDefinition:function(){return!1}}},function(e){var n=0;return{Document:function(r){n=r.definitions.filter(function(i){return i.kind===f.OPERATION_DEFINITION}).length},OperationDefinition:function(r){!r.name&&n>1&&e.reportError(new E("This anonymous operation must be the only defined operation.",r))}}},function(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new E(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}},nr,function(e){return{InlineFragment:function(t){var r=t.typeCondition;if(r){var i=De(e.getSchema(),r);if(i&&!Xe(i)){var a=W(r);e.reportError(new E('Fragment cannot condition on non composite type "'.concat(a,'".'),r))}}},FragmentDefinition:function(t){var r=De(e.getSchema(),t.typeCondition);if(r&&!Xe(r)){var i=W(t.typeCondition);e.reportError(new E('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(i,'".'),t.typeCondition))}}}},function(e){return{VariableDefinition:function(t){var r=De(e.getSchema(),t.type);if(r&&!rt(r)){var i=t.variable.name.value,a=W(t.type);e.reportError(new E('Variable "$'.concat(i,'" cannot be non-input type "').concat(a,'".'),t.type))}}}},function(e){return{Field:function(t){var r=e.getType(),i=t.selectionSet;if(r)if(Ue(Be(r))){if(i){var a=t.name.value,s=D(r);e.reportError(new E('Field "'.concat(a,'" must not have a selection since type "').concat(s,'" has no subfields.'),i))}}else if(!i){var o=t.name.value,u=D(r);e.reportError(new E('Field "'.concat(o,'" of type "').concat(u,'" must have a selection of subfields. Did you mean "').concat(o,' { ... }"?'),t))}}}},function(e){return{Field:function(t){var r=e.getParentType();if(r&&!e.getFieldDef()){var a=e.getSchema(),s=t.name.value,o=Le("to use an inline fragment on",function(e,n,t){if(!je(n))return[];for(var r=new Set,i=Object.create(null),a=0,s=e.getPossibleTypes(n);a<s.length;a++){var o=s[a];if(o.getFields()[t]){r.add(o),i[o.name]=1;for(var u=0,c=o.getInterfaces();u<c.length;u++){var l,p=c[u];!p.getFields()[t]||(r.add(p),i[p.name]=(null!==(l=i[p.name])&&void 0!==l?l:0)+1)}}}return rr(r).sort(function(v,m){var h=i[m.name]-i[v.name];return 0!==h?h:J(v)&&e.isSubType(v,m)?-1:J(m)&&e.isSubType(m,v)?1:Pt(v.name,m.name)}).map(function(v){return v.name})}(a,r,s));""===o&&(o=Le(function(e,n){return Z(e)||J(e)?Ve(n,Object.keys(e.getFields())):[]}(r,s))),e.reportError(new E('Cannot query field "'.concat(s,'" on type "').concat(r.name,'".')+o,t))}}}},function(e){var n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(r){var i=r.name.value;return n[i]?e.reportError(new E('There can be only one fragment named "'.concat(i,'".'),[n[i],r.name])):n[i]=r.name,!1}}},function(e){return{FragmentSpread:function(t){var r=t.name.value;e.getFragment(r)||e.reportError(new E('Unknown fragment "'.concat(r,'".'),t.name))}}},function(e){var n=[],t=[];return{OperationDefinition:function(i){return n.push(i),!1},FragmentDefinition:function(i){return t.push(i),!1},Document:{leave:function(){for(var i=Object.create(null),a=0;a<n.length;a++)for(var o=0,u=e.getRecursivelyReferencedFragments(n[a]);o<u.length;o++)i[u[o].name.value]=!0;for(var l=0;l<t.length;l++){var p=t[l],v=p.name.value;!0!==i[v]&&e.reportError(new E('Fragment "'.concat(v,'" is never used.'),p))}}}}},function(e){return{InlineFragment:function(t){var r=e.getType(),i=e.getParentType();if(Xe(r)&&Xe(i)&&!ar(e.getSchema(),r,i)){var a=D(i),s=D(r);e.reportError(new E('Fragment cannot be spread here as objects of type "'.concat(a,'" can never be of type "').concat(s,'".'),t))}},FragmentSpread:function(t){var r=t.name.value,i=function(e,n){var t=e.getFragment(n);if(t){var r=De(e.getSchema(),t.typeCondition);if(Xe(r))return r}}(e,r),a=e.getParentType();if(i&&a&&!ar(e.getSchema(),i,a)){var s=D(a),o=D(i);e.reportError(new E('Fragment "'.concat(r,'" cannot be spread here as objects of type "').concat(s,'" can never be of type "').concat(o,'".'),t))}}}},function(e){var n=Object.create(null),t=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(s){return i(s),!1}};function i(a){if(!n[a.name.value]){var s=a.name.value;n[s]=!0;var o=e.getFragmentSpreads(a.selectionSet);if(0!==o.length){r[s]=t.length;for(var u=0;u<o.length;u++){var c=o[u],l=c.name.value,p=r[l];if(t.push(c),void 0===p){var v=e.getFragment(l);v&&i(v)}else{var m=t.slice(p),h=m.slice(0,-1).map(function(T){return'"'+T.name.value+'"'}).join(", ");e.reportError(new E('Cannot spread fragment "'.concat(l,'" within itself')+(""!==h?" via ".concat(h,"."):"."),m))}t.pop()}r[s]=void 0}}}},function(e){var n=Object.create(null);return{OperationDefinition:function(){n=Object.create(null)},VariableDefinition:function(r){var i=r.variable.name.value;n[i]?e.reportError(new E('There can be only one variable named "$'.concat(i,'".'),[n[i],r.variable.name])):n[i]=r.variable.name}}},function(e){var n=Object.create(null);return{OperationDefinition:{enter:function(){n=Object.create(null)},leave:function(r){for(var i=e.getRecursiveVariableUsages(r),a=0;a<i.length;a++){var o=i[a].node,u=o.name.value;!0!==n[u]&&e.reportError(new E(r.name?'Variable "$'.concat(u,'" is not defined by operation "').concat(r.name.value,'".'):'Variable "$'.concat(u,'" is not defined.'),[o,r]))}}},VariableDefinition:function(r){n[r.variable.name.value]=!0}}},function(e){var n=[];return{OperationDefinition:{enter:function(){n=[]},leave:function(r){for(var i=Object.create(null),a=e.getRecursiveVariableUsages(r),s=0;s<a.length;s++)i[a[s].node.name.value]=!0;for(var c=0,l=n;c<l.length;c++){var p=l[c],v=p.variable.name.value;!0!==i[v]&&e.reportError(new E(r.name?'Variable "$'.concat(v,'" is never used in operation "').concat(r.name.value,'".'):'Variable "$'.concat(v,'" is never used.'),p))}}},VariableDefinition:function(r){n.push(r)}}},lr,fr,function(e){return vr(vr({},dr(e)),{},{Argument:function(t){var r=e.getArgument(),i=e.getFieldDef(),a=e.getParentType();if(!r&&i&&a){var s=t.name.value,u=Ve(s,i.args.map(function(c){return c.name}));e.reportError(new E('Unknown argument "'.concat(s,'" on field "').concat(a.name,".").concat(i.name,'".')+Le(u),t))}}})},hr,function(e){return{ListValue:function(t){if(!ie(function(e){if(e)return B(e)?e.ofType:e}(e.getParentInputType())))return Ge(e,t),!1},ObjectValue:function(t){var r=Be(e.getInputType());if(!re(r))return Ge(e,t),!1;for(var i=Ne(t.fields,function(l){return l.name.value}),a=0,s=Ie(r.getFields());a<s.length;a++){var o=s[a];if(!i[o.name]&&zi(o)){var c=D(o.type);e.reportError(new E('Field "'.concat(r.name,".").concat(o.name,'" of required type "').concat(c,'" was not provided.'),t))}}},ObjectField:function(t){var r=Be(e.getParentInputType());if(!e.getInputType()&&re(r)){var a=Ve(t.name.value,Object.keys(r.getFields()));e.reportError(new E('Field "'.concat(t.name.value,'" is not defined by type "').concat(r.name,'".')+Le(a),t))}},NullValue:function(t){var r=e.getInputType();B(r)&&e.reportError(new E('Expected value of type "'.concat(D(r),'", found ').concat(W(t),"."),t))},EnumValue:function(t){return Ge(e,t)},IntValue:function(t){return Ge(e,t)},FloatValue:function(t){return Ge(e,t)},StringValue:function(t){return Ge(e,t)},BooleanValue:function(t){return Ge(e,t)}}},function(e){return yr(yr({},Tr(e)),{},{Field:{leave:function(t){var r,i=e.getFieldDef();if(!i)return!1;for(var s=Ne(null!==(r=t.arguments)&&void 0!==r?r:[],function(v){return v.name.value}),o=0,u=i.args;o<u.length;o++){var c=u[o];if(!s[c.name]&&qt(c)){var p=D(c.type);e.reportError(new E('Field "'.concat(i.name,'" argument "').concat(c.name,'" of type "').concat(p,'" is required, but it was not provided.'),t))}}}}})},function(e){var n=Object.create(null);return{OperationDefinition:{enter:function(){n=Object.create(null)},leave:function(r){for(var i=e.getRecursiveVariableUsages(r),a=0;a<i.length;a++){var s=i[a],o=s.node,u=s.type,c=s.defaultValue,l=o.name.value,p=n[l];if(p&&u){var v=e.getSchema(),m=De(v,p.type);if(m&&!Ya(v,m,p.defaultValue,u,c)){var h=D(m),T=D(u);e.reportError(new E('Variable "$'.concat(l,'" of type "').concat(h,'" used in position expecting type "').concat(T,'".'),[p,o]))}}}}},VariableDefinition:function(r){n[r.variable.name.value]=r}}},function(e){var n=new Za,t=new Map;return{SelectionSet:function(i){for(var a=function(e,n,t,r,i){var a=[],s=Cn(e,n,r,i),o=s[0],u=s[1];if(function(e,n,t,r,i){for(var a=0,s=Je(i);a<s.length;a++){var o=s[a],u=o[0],c=o[1];if(c.length>1)for(var l=0;l<c.length;l++)for(var p=l+1;p<c.length;p++){var v=gr(e,t,r,!1,u,c[l],c[p]);v&&n.push(v)}}}(e,a,n,t,o),0!==u.length)for(var c=0;c<u.length;c++){kn(e,a,n,t,!1,o,u[c]);for(var l=c+1;l<u.length;l++)Rn(e,a,n,t,!1,u[c],u[l])}return a}(e,t,n,e.getParentType(),i),s=0;s<a.length;s++){var o=a[s],u=o[0],c=u[0],p=o[1],v=o[2],m=Er(u[1]);e.reportError(new E('Fields "'.concat(c,'" conflict because ').concat(m,". Use different aliases on the fields to fetch both if this was intentional."),p.concat(v)))}}}},Nr]);var ls=Object.freeze([function(e){var n,t,r,i=e.getSchema(),a=null!==(n=null!==(t=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==t?t:null==i?void 0:i.getMutationType())&&void 0!==n?n:null==i?void 0:i.getSubscriptionType(),s=0;return{SchemaDefinition:function(u){a?e.reportError(new E("Cannot define a new schema within a schema extension.",u)):(s>0&&e.reportError(new E("Must provide only one schema definition.",u)),++s)}}},function(e){var n=e.getSchema(),t=Object.create(null),r=n?{query:n.getQueryType(),mutation:n.getMutationType(),subscription:n.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){for(var s,o=null!==(s=a.operationTypes)&&void 0!==s?s:[],u=0;u<o.length;u++){var c=o[u],l=c.operation,p=t[l];r[l]?e.reportError(new E("Type for ".concat(l," already defined in the schema. It cannot be redefined."),c)):p?e.reportError(new E("There can be only one ".concat(l," type in schema."),[p,c])):t[l]=c}return!1}},function(e){var n=Object.create(null),t=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){var a=i.name.value;if(null==t||!t.getType(a))return n[a]?e.reportError(new E('There can be only one type named "'.concat(a,'".'),[n[a],i.name])):n[a]=i.name,!1;e.reportError(new E('Type "'.concat(a,'" already exists in the schema. It cannot also be defined in this type definition.'),i.name))}},function(e){var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var s,o=a.name.value;r[o]||(r[o]=Object.create(null));for(var u=null!==(s=a.values)&&void 0!==s?s:[],c=r[o],l=0;l<u.length;l++){var p=u[l],v=p.name.value,m=t[o];le(m)&&m.getValue(v)?e.reportError(new E('Enum value "'.concat(o,".").concat(v,'" already exists in the schema. It cannot also be defined in this type extension.'),p.name)):c[v]?e.reportError(new E('Enum value "'.concat(o,".").concat(v,'" can only be defined once.'),[c[v],p.name])):c[v]=p.name}return!1}},function(e){var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var s,o=a.name.value;r[o]||(r[o]=Object.create(null));for(var u=null!==(s=a.fields)&&void 0!==s?s:[],c=r[o],l=0;l<u.length;l++){var p=u[l],v=p.name.value;is(t[o],v)?e.reportError(new E('Field "'.concat(o,".").concat(v,'" already exists in the schema. It cannot also be defined in this type extension.'),p.name)):c[v]?e.reportError(new E('Field "'.concat(o,".").concat(v,'" can only be defined once.'),[c[v],p.name])):c[v]=p.name}return!1}},function(e){var n=Object.create(null),t=e.getSchema();return{DirectiveDefinition:function(i){var a=i.name.value;if(null==t||!t.getDirective(a))return n[a]?e.reportError(new E('There can be only one directive named "@'.concat(a,'".'),[n[a],i.name])):n[a]=i.name,!1;e.reportError(new E('Directive "@'.concat(a,'" already exists in the schema. It cannot be redefined.'),i.name))}}},nr,lr,fr,function(e){for(var n=e.getSchema(),t=Object.create(null),r=0,i=e.getDocument().definitions;r<i.length;r++){var a=i[r];an(a)&&(t[a.name.value]=a)}return{ScalarTypeExtension:s,ObjectTypeExtension:s,InterfaceTypeExtension:s,UnionTypeExtension:s,EnumTypeExtension:s,InputObjectTypeExtension:s};function s(o){var p,u=o.name.value,c=t[u],l=null==n?void 0:n.getType(u);if(c?p=os[c.kind]:l&&(p=function(e){return be(e)?f.SCALAR_TYPE_EXTENSION:Z(e)?f.OBJECT_TYPE_EXTENSION:J(e)?f.INTERFACE_TYPE_EXTENSION:ce(e)?f.UNION_TYPE_EXTENSION:le(e)?f.ENUM_TYPE_EXTENSION:re(e)?f.INPUT_OBJECT_TYPE_EXTENSION:void ue(0,"Unexpected type: "+D(e))}(l)),p){if(p!==o.kind){var v=function(e){switch(e){case f.SCALAR_TYPE_EXTENSION:return"scalar";case f.OBJECT_TYPE_EXTENSION:return"object";case f.INTERFACE_TYPE_EXTENSION:return"interface";case f.UNION_TYPE_EXTENSION:return"union";case f.ENUM_TYPE_EXTENSION:return"enum";case f.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}ue(0,"Unexpected kind: "+D(e))}(o.kind);e.reportError(new E("Cannot extend non-".concat(v,' type "').concat(u,'".'),c?[c,o]:o))}}else{var m=Object.keys(t);n&&(m=m.concat(Object.keys(n.getTypeMap())));var h=Ve(u,m);e.reportError(new E('Cannot extend type "'.concat(u,'" because it is not defined.')+Le(h),o.name))}}},dr,hr,Nr,Tr]),vs=function(e){function n(r,i,a){var s;return(s=e.call(this,r,a)||this)._schema=i,s}return function(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}(n,e),n.prototype.getSchema=function(){return this._schema},n}(function(){function e(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}var n=e.prototype;return n.reportError=function(r){this._onError(r)},n.getDocument=function(){return this._ast},n.getFragment=function(r){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(a,s){return s.kind===f.FRAGMENT_DEFINITION&&(a[s.name.value]=s),a},Object.create(null))),i[r]},n.getFragmentSpreads=function(r){var i=this._fragmentSpreads.get(r);if(!i){i=[];for(var a=[r];0!==a.length;)for(var o=0,u=a.pop().selections;o<u.length;o++){var c=u[o];c.kind===f.FRAGMENT_SPREAD?i.push(c):c.selectionSet&&a.push(c.selectionSet)}this._fragmentSpreads.set(r,i)}return i},n.getRecursivelyReferencedFragments=function(r){var i=this._recursivelyReferencedFragments.get(r);if(!i){i=[];for(var a=Object.create(null),s=[r.selectionSet];0!==s.length;)for(var o=s.pop(),u=0,c=this.getFragmentSpreads(o);u<c.length;u++){var p=c[u].name.value;if(!0!==a[p]){a[p]=!0;var v=this.getFragment(p);v&&(i.push(v),s.push(v.selectionSet))}}this._recursivelyReferencedFragments.set(r,i)}return i},e}());function br(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Sr=function(){function e(t){var r;this.__validationErrors=!0===t.assumeValid?[]:void 0,Me(t)||F(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||F(0,'"types" must be Array if provided but got: '.concat(D(t.types),".")),!t.directives||Array.isArray(t.directives)||F(0,'"directives" must be Array if provided but got: '+"".concat(D(t.directives),".")),this.description=t.description,this.extensions=t.extensions&&se(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=null!==(r=t.directives)&&void 0!==r?r:Fe;var i=new Set(t.types);if(null!=t.types)for(var a=0,s=t.types;a<s.length;a++){var o=s[a];i.delete(o),ye(o,i)}null!=this._queryType&&ye(this._queryType,i),null!=this._mutationType&&ye(this._mutationType,i),null!=this._subscriptionType&&ye(this._subscriptionType,i);for(var u=0,c=this._directives;u<c.length;u++){var l=c[u];if(or(l))for(var p=0,v=l.args;p<v.length;p++)ye(v[p].type,i)}ye(ot,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var h=0,T=rr(i);h<T.length;h++){var g=T[h];if(null!=g){var I=g.name;if(I||F(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[I])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(I,'".'));if(this._typeMap[I]=g,J(g))for(var A=0,x=g.getInterfaces();A<x.length;A++){var M=x[A];if(J(M)){var j=this._implementationsMap[M.name];void 0===j&&(j=this._implementationsMap[M.name]={objects:[],interfaces:[]}),j.interfaces.push(g)}}else if(Z(g))for(var Y=0,z=g.getInterfaces();Y<z.length;Y++){var ne=z[Y];if(J(ne)){var Re=this._implementationsMap[ne.name];void 0===Re&&(Re=this._implementationsMap[ne.name]={objects:[],interfaces:[]}),Re.objects.push(g)}}}}}var n=e.prototype;return n.getQueryType=function(){return this._queryType},n.getMutationType=function(){return this._mutationType},n.getSubscriptionType=function(){return this._subscriptionType},n.getTypeMap=function(){return this._typeMap},n.getType=function(r){return this.getTypeMap()[r]},n.getPossibleTypes=function(r){return ce(r)?r.getTypes():this.getImplementations(r).objects},n.getImplementations=function(r){var i=this._implementationsMap[r.name];return null!=i?i:{objects:[],interfaces:[]}},n.isPossibleType=function(r,i){return this.isSubType(r,i)},n.isSubType=function(r,i){var a=this._subTypeMap[r.name];if(void 0===a){if(a=Object.create(null),ce(r))for(var s=0,o=r.getTypes();s<o.length;s++)a[o[s].name]=!0;else{for(var c=this.getImplementations(r),l=0,p=c.objects;l<p.length;l++)a[p[l].name]=!0;for(var m=0,h=c.interfaces;m<h.length;m++)a[h[m].name]=!0}this._subTypeMap[r.name]=a}return void 0!==a[i.name]},n.getDirectives=function(){return this._directives},n.getDirective=function(r){return ct(this.getDirectives(),function(i){return i.name===r})},n.toConfig=function(){var r;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Ie(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(r=this.extensionASTNodes)&&void 0!==r?r:[],assumeValid:void 0!==this.__validationErrors}},function(e,n,t){n&&br(e.prototype,n)}(e,[{key:oe,get:function(){return"GraphQLSchema"}}]),e}();function ye(e,n){var t=Be(e);if(!n.has(t))if(n.add(t),ce(t))for(var r=0,i=t.getTypes();r<i.length;r++)ye(i[r],n);else if(Z(t)||J(t)){for(var s=0,o=t.getInterfaces();s<o.length;s++)ye(o[s],n);for(var c=0,l=Ie(t.getFields());c<l.length;c++){var p=l[c];ye(p.type,n);for(var v=0,m=p.args;v<m.length;v++)ye(m[v].type,n)}}else if(re(t))for(var T=0,g=Ie(t.getFields());T<g.length;T++)ye(g[T].type,n);return n}function Ye(e,n,t){if(e){if(e.kind===f.VARIABLE){var r=e.name.value;if(null==t||void 0===t[r])return;var i=t[r];return null===i&&B(n)?void 0:i}if(B(n))return e.kind===f.NULL?void 0:Ye(e,n.ofType,t);if(e.kind===f.NULL)return null;if(ie(n)){var a=n.ofType;if(e.kind===f.LIST){for(var s=[],o=0,u=e.values;o<u.length;o++){var c=u[o];if(Dr(c,t)){if(B(a))return;s.push(null)}else{var l=Ye(c,a,t);if(void 0===l)return;s.push(l)}}return s}var p=Ye(e,a,t);return void 0===p?void 0:[p]}if(re(n)){if(e.kind!==f.OBJECT)return;for(var v=Object.create(null),m=Ne(e.fields,function(M){return M.name.value}),h=0,T=Ie(n.getFields());h<T.length;h++){var g=T[h],I=m[g.name];if(I&&!Dr(I.value,t)){var A=Ye(I.value,g.type,t);if(void 0===A)return;v[g.name]=A}else if(void 0!==g.defaultValue)v[g.name]=g.defaultValue;else if(B(g.type))return}return v}if(Ue(n)){var x;try{x=n.parseLiteral(e,t)}catch(M){return}return void 0===x?void 0:x}ue(0,"Unexpected input type: "+D(n))}}function Dr(e,n){return e.kind===f.VARIABLE&&(null==n||void 0===n[e.name.value])}function wr(e,n,t){var r=n.directives&&ct(n.directives,function(i){return i.name.value===e.name});if(r)return function(e,n,t){for(var r,i={},s=Ne(null!==(r=n.arguments)&&void 0!==r?r:[],function(I){return I.name.value}),o=0,u=e.args;o<u.length;o++){var c=u[o],l=c.name,p=c.type,v=s[l];if(v){var m=v.value,h=m.kind===f.NULL;if(m.kind===f.VARIABLE){var T=m.name.value;if(null==t||!Ar(t,T)){if(void 0!==c.defaultValue)i[l]=c.defaultValue;else if(B(p))throw new E('Argument "'.concat(l,'" of required type "').concat(D(p),'" ')+'was provided the variable "$'.concat(T,'" which was not provided a runtime value.'),m);continue}h=null==t[T]}if(h&&B(p))throw new E('Argument "'.concat(l,'" of non-null type "').concat(D(p),'" ')+"must not be null.",m);var g=Ye(m,p,t);if(void 0===g)throw new E('Argument "'.concat(l,'" has invalid value ').concat(W(m),"."),m);i[l]=g}else if(void 0!==c.defaultValue)i[l]=c.defaultValue;else if(B(p))throw new E('Argument "'.concat(l,'" of required type "').concat(D(p),'" ')+"was not provided.",n)}return i}(e,r,t)}function Ar(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function _r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_r(Object(t),!0).forEach(function(r){Es(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_r(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Es(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var xr=Ne(st.concat(ut),function(e){return e.name});function Mn(e){var n=wr(ur,e);return null==n?void 0:n.reason}function Fr(e){var n=wr(cr,e);return null==n?void 0:n.url}function $e(e,n){if(e.description)return e.description.value;if(!0===(null==n?void 0:n.commentDescriptions)){var t=function(e){var n=e.loc;if(n){for(var t=[],r=n.startToken.prev;null!=r&&r.kind===d.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);t.push(i),r=r.prev}return t.length>0?t.reverse().join("\n"):void 0}}(e);if(void 0!==t)return Lt("\n"+t)}}function Is(e,n){null!=e&&e.kind===f.DOCUMENT||F(0,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e){var n=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ls,r=[],i=new vs(e,n,function(s){r.push(s)}),a=t.map(function(s){return s(i)});return kt(e,wi(a)),r}(e);if(0!==n.length)throw new Error(n.map(function(t){return t.message}).join("\n\n"))}(e);var r=function(e,n,t){for(var r,i,a,s,l,o=[],u=Object.create(null),c=[],p=[],v=0,m=n.definitions;v<m.length;v++){var h=m[v];if(h.kind===f.SCHEMA_DEFINITION)l=h;else if(h.kind===f.SCHEMA_EXTENSION)p.push(h);else if(an(h))o.push(h);else if(Zn(h)){var T=h.name.value,g=u[T];u[T]=g?g.concat([h]):[h]}else h.kind===f.DIRECTIVE_DEFINITION&&c.push(h)}if(0===Object.keys(u).length&&0===o.length&&0===c.length&&0===p.length&&null==l)return e;for(var I=Object.create(null),A=0,x=e.types;A<x.length;A++){var M=x[A];I[M.name]=function(e){return ut.some(function(n){return e.name===n.name})}(y=M)||function(e){return st.some(function(n){return e.name===n.name})}(y)?y:be(y)?function(y){for(var S,N=y.toConfig(),b=null!==(S=u[N.name])&&void 0!==S?S:[],k=N.specifiedByUrl,P=0;P<b.length;P++){var V;k=null!==(V=Fr(b[P]))&&void 0!==V?V:k}return new Se(C(C({},N),{},{specifiedByUrl:k,extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):Z(y)?function(y){var S,N=y.toConfig(),b=null!==(S=u[N.name])&&void 0!==S?S:[];return new ge(C(C({},N),{},{interfaces:function(){return[].concat(y.getInterfaces().map(Qe),Un(b))},fields:function(){return C(C({},Oe(N.fields,kr)),Vn(b))},extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):J(y)?function(y){var S,N=y.toConfig(),b=null!==(S=u[N.name])&&void 0!==S?S:[];return new wn(C(C({},N),{},{interfaces:function(){return[].concat(y.getInterfaces().map(Qe),Un(b))},fields:function(){return C(C({},Oe(N.fields,kr)),Vn(b))},extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):ce(y)?function(y){var S,N=y.toConfig(),b=null!==(S=u[N.name])&&void 0!==S?S:[];return new An(C(C({},N),{},{types:function(){return[].concat(y.getTypes().map(Qe),Ur(b))},extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):le(y)?function(y){var S,N=y.toConfig(),b=null!==(S=u[y.name])&&void 0!==S?S:[];return new We(C(C({},N),{},{values:C(C({},N.values),Vr(b)),extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):re(y)?function(y){var S,N=y.toConfig(),b=null!==(S=u[N.name])&&void 0!==S?S:[];return new Ln(C(C({},N),{},{fields:function(){return C(C({},Oe(N.fields,function(P){return C(C({},P),{},{type:we(P.type)})})),Pr(b))},extensionASTNodes:N.extensionASTNodes.concat(b)}))}(y):void ue(0,"Unexpected type: "+D(y))}for(var y,j=0;j<o.length;j++){var Y,z=o[j],ne=z.name.value;I[ne]=null!==(Y=xr[ne])&&void 0!==Y?Y:Rs(z)}var Re=C(C({query:e.query&&Qe(e.query),mutation:e.mutation&&Qe(e.mutation),subscription:e.subscription&&Qe(e.subscription)},l&&Cr([l])),Cr(p));return C(C({description:null===(r=l)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},Re),{},{types:Ie(I),directives:[].concat(e.directives.map(function(y){var S=y.toConfig();return new xe(C(C({},S),{},{args:Oe(S.args,Rr)}))}),c.map(function(y){var S=y.locations.map(function(N){return N.value});return new xe({name:y.name.value,description:$e(y,t),locations:S,isRepeatable:y.repeatable,args:Mr(y.arguments),astNode:y})})),extensions:void 0,astNode:null!==(a=l)&&void 0!==a?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(p),assumeValid:null!==(s=null==t?void 0:t.assumeValid)&&void 0!==s&&s});function we(y){return ie(y)?new X(we(y.ofType)):B(y)?new _(we(y.ofType)):Qe(y)}function Qe(y){return I[y.name]}function kr(y){return C(C({},y),{},{type:we(y.type),args:Oe(y.args,Rr)})}function Rr(y){return C(C({},y),{},{type:we(y.type)})}function Cr(y){for(var S={},N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].operationTypes)&&void 0!==b?b:[],V=0;V<P.length;V++){var U=P[V];S[U.operation]=Pn(U.type)}return S}function Pn(y){var S,N=y.name.value,b=null!==(S=xr[N])&&void 0!==S?S:I[N];if(void 0===b)throw new Error('Unknown type: "'.concat(N,'".'));return b}function ln(y){return y.kind===f.LIST_TYPE?new X(ln(y.type)):y.kind===f.NON_NULL_TYPE?new _(ln(y.type)):Pn(y)}function Vn(y){for(var S=Object.create(null),N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].fields)&&void 0!==b?b:[],V=0;V<P.length;V++){var U=P[V];S[U.name.value]={type:ln(U.type),description:$e(U,t),args:Mr(U.arguments),deprecationReason:Mn(U),astNode:U}}return S}function Mr(y){for(var S=null!=y?y:[],N=Object.create(null),b=0;b<S.length;b++){var k=S[b],P=ln(k.type);N[k.name.value]={type:P,description:$e(k,t),defaultValue:Ye(k.defaultValue,P),deprecationReason:Mn(k),astNode:k}}return N}function Pr(y){for(var S=Object.create(null),N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].fields)&&void 0!==b?b:[],V=0;V<P.length;V++){var U=P[V],fn=ln(U.type);S[U.name.value]={type:fn,description:$e(U,t),defaultValue:Ye(U.defaultValue,fn),deprecationReason:Mn(U),astNode:U}}return S}function Vr(y){for(var S=Object.create(null),N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].values)&&void 0!==b?b:[],V=0;V<P.length;V++){var U=P[V];S[U.name.value]={description:$e(U,t),deprecationReason:Mn(U),astNode:U}}return S}function Un(y){for(var S=[],N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].interfaces)&&void 0!==b?b:[],V=0;V<P.length;V++)S.push(Pn(P[V]));return S}function Ur(y){for(var S=[],N=0;N<y.length;N++)for(var b,P=null!==(b=y[N].types)&&void 0!==b?b:[],V=0;V<P.length;V++)S.push(Pn(P[V]));return S}function Rs(y){var S,N=y.name.value,b=$e(y,t),k=null!==(S=u[N])&&void 0!==S?S:[];switch(y.kind){case f.OBJECT_TYPE_DEFINITION:var P=k,V=[y].concat(P);return new ge({name:N,description:b,interfaces:function(){return Un(V)},fields:function(){return Vn(V)},astNode:y,extensionASTNodes:P});case f.INTERFACE_TYPE_DEFINITION:var U=k,fn=[y].concat(U);return new wn({name:N,description:b,interfaces:function(){return Un(fn)},fields:function(){return Vn(fn)},astNode:y,extensionASTNodes:U});case f.ENUM_TYPE_DEFINITION:var jr=k,Cs=[y].concat(jr);return new We({name:N,description:b,values:Vr(Cs),astNode:y,extensionASTNodes:jr});case f.UNION_TYPE_DEFINITION:var Br=k,Ms=[y].concat(Br);return new An({name:N,description:b,types:function(){return Ur(Ms)},astNode:y,extensionASTNodes:Br});case f.SCALAR_TYPE_DEFINITION:var Ps=k;return new Se({name:N,description:b,specifiedByUrl:Fr(y),astNode:y,extensionASTNodes:Ps});case f.INPUT_OBJECT_TYPE_DEFINITION:var Gr=k,Vs=[y].concat(Gr);return new Ln({name:N,description:b,fields:function(){return Pr(Vs)},astNode:y,extensionASTNodes:Gr})}ue(0,"Unexpected type definition node: "+D(y))}}({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,n);if(null==r.astNode)for(var i=0,a=r.types;i<a.length;i++){var s=a[i];switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s}}for(var o=r.directives,u=function(p){var v=Fe[p];o.every(function(m){return m.name!==v.name})&&o.push(v)},c=0;c<Fe.length;c++)u(c);return new Sr(r)}jn(class{constructor(n){this.searchIndex=[],n&&this.updateSchema(n)}updateSchema(n){this.schema=function(e,n){return Is(function(e,n){return new zn(e,n).parseDocument()}(e,{noLocation:null==n?void 0:n.noLocation,allowLegacySDLEmptyFields:null==n?void 0:n.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==n?void 0:n.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==n?void 0:n.experimentalFragmentVariables}),{commentDescriptions:null==n?void 0:n.commentDescriptions,assumeValidSDL:null==n?void 0:n.assumeValidSDL,assumeValid:null==n?void 0:n.assumeValid})}(n)}generateSearchIndex(){if(!this.schema)return[];let n=[];var e;(e=this.schema,[e.getQueryType(),e.getMutationType(),e.getSubscriptionType()].filter(Boolean)).forEach(i=>{n=[...n,...this.getTypeIndices(i,!0,n)]});const r=this.schema.getTypeMap();return Object.keys(r).forEach(i=>{/^__/.test(i)||(n=[...n,...this.getTypeIndices(r[i],!1,n)])}),this.searchIndex=n,n}getFieldsIndices(n,t,r,i){let a=[];return Object.keys(n).forEach(s=>{const o=n[s],u={search:o.name,name:o.name,description:o.description?o.description:"",args:o.args?o.args.map(c=>({name:c.name,description:c.description})):[],cat:"field",type:t.name,isQuery:r,highlight:"field"};a=[...a,u],o.args&&o.args.length&&o.args.forEach(c=>{a=[...a,{...u,search:c.name,highlight:"argument"}]}),o.type&&(a=[...a,...this.getTypeIndices(o.type,!1,[...i,...a]).filter(c=>!!c)])}),a}getTypeIndices(n,t,r){let i=null;if(!n.name)return[];if(r.some(s=>s.name===n.name&&"type"===s.cat))return[];n.getFields&&(i=n.getFields());const a=[{search:n.name,name:n.name,cat:"type",description:n.description?n.description:"",isRoot:t,highlight:"type"}];return i?[...a,...this.getFieldsIndices(i,n,t,[...r,...a]).filter(s=>!!s)]:a}searchDocs(n){return this.searchIndex.length?new Xr.Z(this.searchIndex,{keys:["search"],threshold:.4}).search(n).map(r=>r.item):[]}generateQuery(n,t,r){let i="",a=!1;if(!this.schema)return;switch(t){case this.schema.getQueryType()&&this.schema.getQueryType().name:i+="query";break;case this.schema.getMutationType()&&this.schema.getMutationType().name:i+="mutation";break;case this.schema.getSubscriptionType()&&this.schema.getSubscriptionType().name:i+="subscription";break;default:i+=`fragment _____ on ${t}`,a=!0}const s=this.generateFieldData(n,t,[],1,r);if(!s)return;i+=`{\n${s.query}\n}`;const o={...s.meta};return o.hasArgs=a||o.hasArgs,{query:i,meta:o}}cleanName(n){return n.replace(/[\[\]!]/g,"")}generateFieldData(n,t,r,i,a={}){if(!(n&&t&&r&&this.schema))return{query:"",meta:{}};const s=a.tabSize||2,o=this.schema.getType(t),u=o&&o.getFields()[n];if(!u)return{query:"",meta:{}};const c={hasArgs:!1};let l=" ".repeat(i*s)+u.name;u.args&&u.args.length&&(c.hasArgs=!0,l+=`(${u.args.reduce((g,I)=>g+", "+I.name+": ______","").substring(2)})`);const p=this.cleanName(u.type.inspect()),v=this.schema.getType(p);if(r.filter(T=>T.type===p).length)return{query:"",meta:{}};if(i>=(a.addQueryDepthLimit||0))return{query:"",meta:{}};const m=v&&v.getFields&&v.getFields();let h="";return m&&(h=Object.keys(m).reduce((T,g)=>{if(r.filter(x=>x.name===g&&x.type===p).length)return"";const I=this.generateFieldData(g,p,[...r,{name:n,type:p}],i+1,a);if(!I)return T;const A=I.query;return c.hasArgs=c.hasArgs||I.meta.hasArgs||!1,A?T+"\n"+A:T},"").substring(1)),h&&(l+=`{\n${h}\n`,l+=" ".repeat(i*s)+"}"),{query:l,meta:c}}})}},dt={};function R(L){var H=dt[L];if(void 0!==H)return H.exports;var G=dt[L]={exports:{}};return vt[L](G,G.exports,R),G.exports}R.m=vt,R.x=()=>{var L=R.O(void 0,[729],()=>R(15672));return R.O(L)},L=[],R.O=(H,G,Ae,$)=>{if(!G){var fe=1/0;for(ee=0;ee<L.length;ee++){for(var[G,Ae,$]=L[ee],_e=!0,Te=0;Te<G.length;Te++)(!1&$||fe>=$)&&Object.keys(R.O).every(Bn=>R.O[Bn](G[Te]))?G.splice(Te--,1):(_e=!1,$<fe&&(fe=$));if(_e){L.splice(ee--,1);var vn=Ae();void 0!==vn&&(H=vn)}}return H}$=$||0;for(var ee=L.length;ee>0&&L[ee-1][2]>$;ee--)L[ee]=L[ee-1];L[ee]=[G,Ae,$]},R.d=(L,H)=>{for(var G in H)R.o(H,G)&&!R.o(L,G)&&Object.defineProperty(L,G,{enumerable:!0,get:H[G]})},R.f={},R.e=L=>Promise.all(Object.keys(R.f).reduce((H,G)=>(R.f[G](L,H),H),[])),R.u=L=>L+".js",R.miniCssF=L=>{},R.o=(L,H)=>Object.prototype.hasOwnProperty.call(L,H),(()=>{var L;R.tu=H=>(void 0===L&&(L={createScriptURL:G=>G},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(L=trustedTypes.createPolicy("angular#bundler",L))),L.createScriptURL(H))})(),R.p="",(()=>{var L={672:1};R.f.i=($,ee)=>{L[$]||importScripts(R.tu(R.p+R.u($)))};var G=self.webpackChunkaltair_app=self.webpackChunkaltair_app||[],Ae=G.push.bind(G);G.push=$=>{var[ee,fe,_e]=$;for(var Te in fe)R.o(fe,Te)&&(R.m[Te]=fe[Te]);for(_e&&_e(R);ee.length;)L[ee.pop()]=1;Ae($)}})(),(()=>{var L=R.x;R.x=()=>R.e(729).then(L)})(),R.x()})();
|
package/build/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6DAAoD;AAiBpD;;;GAGG;AACU,QAAA,oBAAoB,GAAG,CAAC,UAAyB,EAAE,EAAE,EAAE;IAChE,OAAO;6BAEC,qBAAqB,CAAC,OAAO,EAAE;QAC3B,aAAa;QACb,uBAAuB;QACvB,cAAc;QACd,kBAAkB;QAClB,yBAAyB;QACzB,0BAA0B;QAC1B,gBAAgB;QAChB,qBAAqB;QACrB,0BAA0B;QAC1B,iBAAiB;QACjB,8BAA8B;QAC9B,6BAA6B;QAC7B,eAAe;QACf,mBAAmB;KACtB,CACL;KACH,CAAC;AACN,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,YAAY,GAAG,CAAC,UAAyB,EAAE,EAAE,EAAE;IACxD,MAAM,UAAU,GAAG,yBAAa,EAAE,CAAC;IACnC,MAAM,cAAc,GAAG,4BAAoB,CAAC,OAAO,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC;IACxC,IAAI,OAAO,CAAC,oCAAoC,EAAE;QAC9C,OAAO,UAAU;aACZ,OAAO,CAAC,UAAU,EAAE,eAAe,OAAO,IAAI,CAAC;aAC/C,OAAO,CAAC,SAAS,EAAE,mDAAmD,CAAC,CAAC;KAChF;SAAM;QACH,OAAO,UAAU;aACZ,OAAO,CAAC,UAAU,EAAE,eAAe,OAAO,IAAI,CAAC;aAC/C,OAAO,CAAC,SAAS,EAAE,WAAW,cAAc,kBAAkB,CAAC,CAAC;KACxE;AACL,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,aAA4B,EAAE,IAAmC,EAAE,EAAE;IAChG,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;SACtC,MAAM,CAAC,CAAC,GAAQ,EAAoC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;SAC1E,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,0BAA0B,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAErE,OAAO,CAAE,GAAG,EAAE,GAAG,QAAQ,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC,CAAC;AACF,SAAS,0BAA0B,CAAC,MAAW,EAAE,YAAuC;IACpF,IAAI,MAAM,EAAE;QACR,QAAQ,OAAO,MAAM,EAAE;YACnB,KAAK,QAAQ;gBACX,OAAO,GAAG,YAAY,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC;SAC1D;QACD,OAAO,GAAG,YAAY,OAAO,MAAM,KAAK,CAAC;KAC5C;IACD,OAAO,EAAE,CAAC;AACd,CAAC;AAED,6CAAoD;AAA3C,4GAAA,gBAAgB,OAAA;AAEzB,kBAAe,oBAAY,CAAC"}
|
package/build/index.test.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":";;AAAA,2BAAkC;AAClC,+BAA+B;AAC/B,mCAA6D;AAC7D,yDAAyD;AAEzD,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,MAAM,GAAG,4BAAoB,CAAC;YAClC,OAAO,EAAE,GAAG;YACZ,YAAY,EAAE;;QAEZ;YACF,WAAW,EAAE,6BAA6B;YAC1C,cAAc,EAAE;gBACd,iBAAiB,EAAE,sBAAsB;aAC1C;YACD,eAAe,EAAE;gBACf,KAAK,EAAE,MAAM;aACd;SACF,CAAC,CAAC;QACH,MAAM,SAAS,GAAG,QAAQ,CAAC;;;QAGvB,MAAM;wBACU,CAAC,EAAE,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC;YACxB,YAAY,EAAE;;QAEZ;YACF,WAAW,EAAE,6BAA6B;YAC1C,cAAc,EAAE;gBACd,iBAAiB,EAAE,sBAAsB;aAC1C;YACD,eAAe,EAAE;gBACf,KAAK,EAAE,MAAM;aACd;SACF,CAAC,CAAC;QAEH,MAAM,CAAC,MAAM,CAAC,CAAC,eAAe,EAAE,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACtC,aAAqB,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAC1C,aAAqB,CAAC,OAAO,CAAC,eAAe,CAAC,iBAAY,CAAC,cAAO,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;QACvG,MAAM,CAAC,oBAAY,CAAC;YAClB,OAAO,EAAE,GAAG;YACZ,YAAY,EAAE;;QAEZ;YACF,WAAW,EAAE,6BAA6B;YAC1C,gBAAgB,EAAE,iBAAiB;SACpC,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-altair-html.js","sourceRoot":"","sources":["../../src/utils/get-altair-html.ts"],"names":[],"mappings":";;AAAA,2BAAkC;AAClC,+BAA+B;AAC/B,yCAA8C;AAE9C,SAAwB,aAAa;IACnC,OAAO,iBAAY,CAAC,cAAO,CAAC,2BAAgB,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;AACzE,CAAC;AAFD,gCAEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-dist.js","sourceRoot":"","sources":["../../src/utils/get-dist.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B;;GAEG;AACU,QAAA,gBAAgB,GAAG,GAAG,EAAE,CAAC,cAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC"}
|