@contember/graphql-client 2.2.0-alpha.7 → 2.2.0-alpha.9
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/dist/development/index.cjs +2 -0
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +3 -1
- package/dist/development/index.js.map +1 -1
- package/dist/development/src/GraphQlClient.cjs +12 -1
- package/dist/development/src/GraphQlClient.cjs.map +1 -1
- package/dist/development/src/GraphQlClient.js +12 -1
- package/dist/development/src/GraphQlClient.js.map +1 -1
- package/dist/development/src/PrimaryReadWindow.cjs +28 -0
- package/dist/development/src/PrimaryReadWindow.cjs.map +1 -0
- package/dist/development/src/PrimaryReadWindow.js +28 -0
- package/dist/development/src/PrimaryReadWindow.js.map +1 -0
- package/dist/production/index.cjs +2 -0
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +3 -1
- package/dist/production/index.js.map +1 -1
- package/dist/production/src/GraphQlClient.cjs +12 -1
- package/dist/production/src/GraphQlClient.cjs.map +1 -1
- package/dist/production/src/GraphQlClient.js +12 -1
- package/dist/production/src/GraphQlClient.js.map +1 -1
- package/dist/production/src/PrimaryReadWindow.cjs +28 -0
- package/dist/production/src/PrimaryReadWindow.cjs.map +1 -0
- package/dist/production/src/PrimaryReadWindow.js +28 -0
- package/dist/production/src/PrimaryReadWindow.js.map +1 -0
- package/dist/types/GraphQlClient.d.ts +2 -1
- package/dist/types/GraphQlClient.d.ts.map +1 -1
- package/dist/types/GraphQlClientRequestOptions.d.ts +3 -0
- package/dist/types/GraphQlClientRequestOptions.d.ts.map +1 -1
- package/dist/types/PrimaryReadWindow.d.ts +15 -0
- package/dist/types/PrimaryReadWindow.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/GraphQlClient.ts +16 -2
- package/src/GraphQlClientRequestOptions.ts +4 -0
- package/src/PrimaryReadWindow.ts +31 -0
- package/src/index.ts +1 -0
- package/tests/cases/unit/primaryReadWindow.test.ts +141 -0
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const GraphQlClient = require("./src/GraphQlClient.cjs");
|
|
4
4
|
const GraphQlClientError = require("./src/GraphQlClientError.cjs");
|
|
5
|
+
const PrimaryReadWindow = require("./src/PrimaryReadWindow.cjs");
|
|
5
6
|
exports.GraphQlClient = GraphQlClient.GraphQlClient;
|
|
6
7
|
exports.GraphQlClientError = GraphQlClientError.GraphQlClientError;
|
|
8
|
+
exports.PrimaryReadWindow = PrimaryReadWindow.PrimaryReadWindow;
|
|
7
9
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { GraphQlClient } from "./src/GraphQlClient.js";
|
|
2
2
|
import { GraphQlClientError } from "./src/GraphQlClientError.js";
|
|
3
|
+
import { PrimaryReadWindow } from "./src/PrimaryReadWindow.js";
|
|
3
4
|
export {
|
|
4
5
|
GraphQlClient,
|
|
5
|
-
GraphQlClientError
|
|
6
|
+
GraphQlClientError,
|
|
7
|
+
PrimaryReadWindow
|
|
6
8
|
};
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -40,6 +40,10 @@ ${query}`;
|
|
|
40
40
|
} catch (e) {
|
|
41
41
|
const aborted = typeof e === "object" && e !== null && e.name === "AbortError";
|
|
42
42
|
throw createError(aborted ? "aborted" : "network error", void 0, e);
|
|
43
|
+
} finally {
|
|
44
|
+
if (response !== null) {
|
|
45
|
+
this.resolvePrimaryReadWindow(options)?.captureResponse(response);
|
|
46
|
+
}
|
|
43
47
|
}
|
|
44
48
|
let data;
|
|
45
49
|
try {
|
|
@@ -72,12 +76,16 @@ ${query}`;
|
|
|
72
76
|
}
|
|
73
77
|
return data.data;
|
|
74
78
|
}
|
|
75
|
-
async doExecute(query,
|
|
79
|
+
async doExecute(query, options = {}) {
|
|
80
|
+
const { apiToken, signal, variables, headers } = options;
|
|
76
81
|
const resolvedHeaders = {
|
|
77
82
|
"Content-Type": "application/json",
|
|
78
83
|
...this.options.headers,
|
|
79
84
|
...headers
|
|
80
85
|
};
|
|
86
|
+
if (!new Headers(resolvedHeaders).has("X-Contember-Force-Primary")) {
|
|
87
|
+
Object.assign(resolvedHeaders, this.resolvePrimaryReadWindow(options)?.requestHeaders());
|
|
88
|
+
}
|
|
81
89
|
const resolvedToken = apiToken ?? this.options.apiToken;
|
|
82
90
|
if (resolvedToken !== void 0) {
|
|
83
91
|
resolvedHeaders["Authorization"] = `Bearer ${resolvedToken}`;
|
|
@@ -89,6 +97,9 @@ ${query}`;
|
|
|
89
97
|
body: JSON.stringify({ query, variables })
|
|
90
98
|
});
|
|
91
99
|
}
|
|
100
|
+
resolvePrimaryReadWindow(options) {
|
|
101
|
+
return (options.primaryReadWindow ?? this.options.primaryReadWindow) || void 0;
|
|
102
|
+
}
|
|
92
103
|
}
|
|
93
104
|
const defaultFetcher = async (url, options) => fetch(url, options);
|
|
94
105
|
exports.GraphQlClient = GraphQlClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQlClient.cjs","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError.js'\nimport { GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions.js'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\
|
|
1
|
+
{"version":3,"file":"GraphQlClient.cjs","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError.js'\nimport { GraphQlClientBaseOptions, GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions.js'\nimport { PrimaryReadWindow } from './PrimaryReadWindow.js'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t} finally {\n\t\t\t// Start once the body has arrived, and even if reading it or a user hook failed: an earlier mutation field may have committed.\n\t\t\tif (response !== null) {\n\t\t\t\tthis.resolvePrimaryReadWindow(options)?.captureResponse(response)\n\t\t\t}\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\toptions: GraphQlClientRequestOptions = {},\n\t): Promise<Response> {\n\t\tconst { apiToken, signal, variables, headers } = options\n\t\tconst resolvedHeaders: Record<string, string> = {\n\t\t\t'Content-Type': 'application/json',\n\t\t\t...this.options.headers,\n\t\t\t...headers,\n\t\t}\n\t\tif (!new Headers(resolvedHeaders).has('X-Contember-Force-Primary')) {\n\t\t\tObject.assign(resolvedHeaders, this.resolvePrimaryReadWindow(options)?.requestHeaders())\n\t\t}\n\t\tconst resolvedToken = apiToken ?? this.options.apiToken\n\n\t\tif (resolvedToken !== undefined) {\n\t\t\tresolvedHeaders['Authorization'] = `Bearer ${resolvedToken}`\n\t\t}\n\n\t\treturn await (this.options.fetcher ?? defaultFetcher)(this.options.url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: resolvedHeaders,\n\t\t\tsignal,\n\t\t\tbody: JSON.stringify({ query, variables }),\n\t\t})\n\t}\n\n\tprivate resolvePrimaryReadWindow(options: GraphQlClientBaseOptions): PrimaryReadWindow | undefined {\n\t\treturn (options.primaryReadWindow ?? this.options.primaryReadWindow) || undefined\n\t}\n}\n\nconst defaultFetcher = async (url: string, options: RequestInit) => fetch(url, options)\n"],"names":["GraphQlClientError"],"mappings":"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"}
|
|
@@ -38,6 +38,10 @@ ${query}`;
|
|
|
38
38
|
} catch (e) {
|
|
39
39
|
const aborted = typeof e === "object" && e !== null && e.name === "AbortError";
|
|
40
40
|
throw createError(aborted ? "aborted" : "network error", void 0, e);
|
|
41
|
+
} finally {
|
|
42
|
+
if (response !== null) {
|
|
43
|
+
this.resolvePrimaryReadWindow(options)?.captureResponse(response);
|
|
44
|
+
}
|
|
41
45
|
}
|
|
42
46
|
let data;
|
|
43
47
|
try {
|
|
@@ -70,12 +74,16 @@ ${query}`;
|
|
|
70
74
|
}
|
|
71
75
|
return data.data;
|
|
72
76
|
}
|
|
73
|
-
async doExecute(query,
|
|
77
|
+
async doExecute(query, options = {}) {
|
|
78
|
+
const { apiToken, signal, variables, headers } = options;
|
|
74
79
|
const resolvedHeaders = {
|
|
75
80
|
"Content-Type": "application/json",
|
|
76
81
|
...this.options.headers,
|
|
77
82
|
...headers
|
|
78
83
|
};
|
|
84
|
+
if (!new Headers(resolvedHeaders).has("X-Contember-Force-Primary")) {
|
|
85
|
+
Object.assign(resolvedHeaders, this.resolvePrimaryReadWindow(options)?.requestHeaders());
|
|
86
|
+
}
|
|
79
87
|
const resolvedToken = apiToken ?? this.options.apiToken;
|
|
80
88
|
if (resolvedToken !== void 0) {
|
|
81
89
|
resolvedHeaders["Authorization"] = `Bearer ${resolvedToken}`;
|
|
@@ -87,6 +95,9 @@ ${query}`;
|
|
|
87
95
|
body: JSON.stringify({ query, variables })
|
|
88
96
|
});
|
|
89
97
|
}
|
|
98
|
+
resolvePrimaryReadWindow(options) {
|
|
99
|
+
return (options.primaryReadWindow ?? this.options.primaryReadWindow) || void 0;
|
|
100
|
+
}
|
|
90
101
|
}
|
|
91
102
|
const defaultFetcher = async (url, options) => fetch(url, options);
|
|
92
103
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQlClient.js","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError.js'\nimport { GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions.js'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\
|
|
1
|
+
{"version":3,"file":"GraphQlClient.js","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError.js'\nimport { GraphQlClientBaseOptions, GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions.js'\nimport { PrimaryReadWindow } from './PrimaryReadWindow.js'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t} finally {\n\t\t\t// Start once the body has arrived, and even if reading it or a user hook failed: an earlier mutation field may have committed.\n\t\t\tif (response !== null) {\n\t\t\t\tthis.resolvePrimaryReadWindow(options)?.captureResponse(response)\n\t\t\t}\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\toptions: GraphQlClientRequestOptions = {},\n\t): Promise<Response> {\n\t\tconst { apiToken, signal, variables, headers } = options\n\t\tconst resolvedHeaders: Record<string, string> = {\n\t\t\t'Content-Type': 'application/json',\n\t\t\t...this.options.headers,\n\t\t\t...headers,\n\t\t}\n\t\tif (!new Headers(resolvedHeaders).has('X-Contember-Force-Primary')) {\n\t\t\tObject.assign(resolvedHeaders, this.resolvePrimaryReadWindow(options)?.requestHeaders())\n\t\t}\n\t\tconst resolvedToken = apiToken ?? this.options.apiToken\n\n\t\tif (resolvedToken !== undefined) {\n\t\t\tresolvedHeaders['Authorization'] = `Bearer ${resolvedToken}`\n\t\t}\n\n\t\treturn await (this.options.fetcher ?? defaultFetcher)(this.options.url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: resolvedHeaders,\n\t\t\tsignal,\n\t\t\tbody: JSON.stringify({ query, variables }),\n\t\t})\n\t}\n\n\tprivate resolvePrimaryReadWindow(options: GraphQlClientBaseOptions): PrimaryReadWindow | undefined {\n\t\treturn (options.primaryReadWindow ?? this.options.primaryReadWindow) || undefined\n\t}\n}\n\nconst defaultFetcher = async (url: string, options: RequestInit) => fetch(url, options)\n"],"names":[],"mappings":";AAIO,MAAM,cAAc;AAAA,EAC1B,YACkB,SAChB;AADgB,SAAA,UAAA;AAAA,EACf;AAAA,EAEH,IAAI,SAAiB;AACpB,WAAO,KAAK,QAAQ;AAAA,EACrB;AAAA,EAEA,YAAY,SAAuD;AAClE,WAAO,IAAI,cAAc,EAAE,GAAG,KAAK,SAAS,GAAG,SAAS;AAAA,EACzD;AAAA,EAEA,MAAM,QAAqB,OAAe,UAAuC,IAAgB;AAChG,QAAI,OAAsB;AAC1B,QAAI,WAA4B;AAChC,UAAM,cAAc,CAAC,MAAwB,QAAgB,UAAoB;AAChF,YAAM,UAAU;AAAA,QACf,KAAK,KAAK,QAAQ;AAAA,QAClB;AAAA,QACA,WAAW,QAAQ,aAAa,CAAA;AAAA,MAAC;AAGlC,YAAM,UAAU,2BAA2B,IAAI;AAAA;AAAA,iBAEjC,WAAY,SAAS,SAAS,MAAM,SAAS,aAAc,eAAe;AAAA;AAAA,EAEzF,SAAS,OAAO,OAAO,WAAW;AAAA;AAAA;AAAA,EAGlC,KAAK;AAEJ,aAAO,IAAI,mBAAmB,SAAS,MAAM,SAAS,YAAY,QAAW,QAAQ,KAAK;AAAA,IAC3F;AAEA,SAAK,SAAS,kBAAkB,EAAE,OAAO,WAAW,QAAQ,aAAa,CAAA,GAAI;AAC7E,aAAS,kBAAkB,EAAE,OAAO,WAAW,QAAQ,aAAa,CAAA,GAAI;AAExE,QAAI;AACH,iBAAW,MAAM,KAAK,UAAU,OAAO,OAAO;AAC9C,WAAK,SAAS,aAAa,QAAQ;AACnC,eAAS,aAAa,QAAQ;AAE9B,aAAO,MAAM,SAAS,KAAA;AAAA,IACvB,SAAS,GAAG;AACX,YAAM,UAAU,OAAO,MAAM,YAAY,MAAM,QAAS,EAAyB,SAAS;AAC1F,YAAM,YAAY,UAAU,YAAY,iBAAiB,QAAW,CAAC;AAAA,IACtE,UAAA;AAEC,UAAI,aAAa,MAAM;AACtB,aAAK,yBAAyB,OAAO,GAAG,gBAAgB,QAAQ;AAAA,MACjE;AAAA,IACD;AAEA,QAAI;AACJ,QAAI;AACH,aAAO,KAAK,MAAM,IAAI;AAAA,IACvB,SAAS,GAAG;AACX,YAAM,YAAY,yBAAyB,QAAW,CAAC;AAAA,IACxD;AACA,SAAK,SAAS,SAAS,IAAI;AAC3B,aAAS,SAAS,IAAI;AAEtB,QAAI,SAAS,WAAW,KAAK;AAC5B,YAAM,YAAY,cAAc;AAAA,IACjC;AACA,QAAI,SAAS,WAAW,KAAK;AAC5B,YAAM,YAAY,WAAW;AAAA,IAC9B;AACA,QAAI,SAAS,UAAU,OAAO,SAAS,SAAS,KAAK;AACpD,YAAM,YAAY,eAAe,KAAK,MAAM;AAAA,IAC7C;AACA,QAAI,SAAS,UAAU,KAAK;AAC3B,YAAM,YAAY,cAAc;AAAA,IACjC;AACA,QAAI,EAAE,OAAO,SAAS,aAAa,SAAS,MAAM;AACjD,YAAM,YAAY,uBAAuB;AAAA,IAC1C;AACA,QAAI,YAAY,MAAM;AACrB,YAAM,YAAY,mBAAmB,KAAK,MAAM;AAAA,IACjD;AACA,QAAI,EAAE,UAAU,OAAO;AACtB,YAAM,YAAY,uBAAuB;AAAA,IAC1C;AAEA,WAAO,KAAK;AAAA,EACb;AAAA,EAEA,MAAgB,UACf,OACA,UAAuC,IACnB;AACpB,UAAM,EAAE,UAAU,QAAQ,WAAW,YAAY;AACjD,UAAM,kBAA0C;AAAA,MAC/C,gBAAgB;AAAA,MAChB,GAAG,KAAK,QAAQ;AAAA,MAChB,GAAG;AAAA,IAAA;AAEJ,QAAI,CAAC,IAAI,QAAQ,eAAe,EAAE,IAAI,2BAA2B,GAAG;AACnE,aAAO,OAAO,iBAAiB,KAAK,yBAAyB,OAAO,GAAG,gBAAgB;AAAA,IACxF;AACA,UAAM,gBAAgB,YAAY,KAAK,QAAQ;AAE/C,QAAI,kBAAkB,QAAW;AAChC,sBAAgB,eAAe,IAAI,UAAU,aAAa;AAAA,IAC3D;AAEA,WAAO,OAAO,KAAK,QAAQ,WAAW,gBAAgB,KAAK,QAAQ,KAAK;AAAA,MACvE,QAAQ;AAAA,MACR,SAAS;AAAA,MACT;AAAA,MACA,MAAM,KAAK,UAAU,EAAE,OAAO,WAAW;AAAA,IAAA,CACzC;AAAA,EACF;AAAA,EAEQ,yBAAyB,SAAkE;AAClG,YAAQ,QAAQ,qBAAqB,KAAK,QAAQ,sBAAsB;AAAA,EACzE;AACD;AAEA,MAAM,iBAAiB,OAAO,KAAa,YAAyB,MAAM,KAAK,OAAO;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
+
class PrimaryReadWindow {
|
|
7
|
+
// A monotonic clock, so a system clock change cannot stretch or cut the window.
|
|
8
|
+
constructor({ durationMs = 1e3, now = () => performance.now() } = {}) {
|
|
9
|
+
__publicField(this, "durationMs");
|
|
10
|
+
__publicField(this, "now");
|
|
11
|
+
__publicField(this, "expiresAt", 0);
|
|
12
|
+
if (!Number.isFinite(durationMs) || durationMs < 0) {
|
|
13
|
+
throw new Error("Primary read window duration must be a finite non-negative number");
|
|
14
|
+
}
|
|
15
|
+
this.durationMs = durationMs;
|
|
16
|
+
this.now = now;
|
|
17
|
+
}
|
|
18
|
+
requestHeaders() {
|
|
19
|
+
return this.now() < this.expiresAt ? { "X-Contember-Force-Primary": "1" } : {};
|
|
20
|
+
}
|
|
21
|
+
captureResponse(response) {
|
|
22
|
+
if (response.headers.get("X-Contember-Mutation") === "1") {
|
|
23
|
+
this.expiresAt = this.now() + this.durationMs;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.PrimaryReadWindow = PrimaryReadWindow;
|
|
28
|
+
//# sourceMappingURL=PrimaryReadWindow.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimaryReadWindow.cjs","sources":["../../../../packages/graphql-client/src/PrimaryReadWindow.ts"],"sourcesContent":["export interface PrimaryReadWindowOptions {\n\t/** How long to read from the primary after a mutation response. Default: 1000 ms. Zero disables the window. */\n\treadonly durationMs?: number\n\treadonly now?: () => number\n}\n\n/** Share one window across clients for the same Content API endpoint and identity. */\nexport class PrimaryReadWindow {\n\tprivate readonly durationMs: number\n\tprivate readonly now: () => number\n\tprivate expiresAt = 0\n\n\t// A monotonic clock, so a system clock change cannot stretch or cut the window.\n\tconstructor({ durationMs = 1000, now = () => performance.now() }: PrimaryReadWindowOptions = {}) {\n\t\tif (!Number.isFinite(durationMs) || durationMs < 0) {\n\t\t\tthrow new Error('Primary read window duration must be a finite non-negative number')\n\t\t}\n\t\tthis.durationMs = durationMs\n\t\tthis.now = now\n\t}\n\n\trequestHeaders(): Record<string, string> {\n\t\treturn this.now() < this.expiresAt ? { 'X-Contember-Force-Primary': '1' } : {}\n\t}\n\n\tcaptureResponse(response: Response): void {\n\t\tif (response.headers.get('X-Contember-Mutation') === '1') {\n\t\t\tthis.expiresAt = this.now() + this.durationMs\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;;;AAOO,MAAM,kBAAkB;AAAA;AAAA,EAM9B,YAAY,EAAE,aAAa,KAAM,MAAM,MAAM,YAAY,MAAI,IAAgC,IAAI;AALjG,kBAAA,MAAiB,YAAA;AACjB,kBAAA,MAAiB,KAAA;AACjB,kBAAA,MAAQ,aAAY,CAAA;AAInB,QAAI,CAAC,OAAO,SAAS,UAAU,KAAK,aAAa,GAAG;AACnD,YAAM,IAAI,MAAM,mEAAmE;AAAA,IACpF;AACA,SAAK,aAAa;AAClB,SAAK,MAAM;AAAA,EACZ;AAAA,EAEA,iBAAyC;AACxC,WAAO,KAAK,QAAQ,KAAK,YAAY,EAAE,6BAA6B,IAAA,IAAQ,CAAA;AAAA,EAC7E;AAAA,EAEA,gBAAgB,UAA0B;AACzC,QAAI,SAAS,QAAQ,IAAI,sBAAsB,MAAM,KAAK;AACzD,WAAK,YAAY,KAAK,IAAA,IAAQ,KAAK;AAAA,IACpC;AAAA,EACD;AACD;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
class PrimaryReadWindow {
|
|
5
|
+
// A monotonic clock, so a system clock change cannot stretch or cut the window.
|
|
6
|
+
constructor({ durationMs = 1e3, now = () => performance.now() } = {}) {
|
|
7
|
+
__publicField(this, "durationMs");
|
|
8
|
+
__publicField(this, "now");
|
|
9
|
+
__publicField(this, "expiresAt", 0);
|
|
10
|
+
if (!Number.isFinite(durationMs) || durationMs < 0) {
|
|
11
|
+
throw new Error("Primary read window duration must be a finite non-negative number");
|
|
12
|
+
}
|
|
13
|
+
this.durationMs = durationMs;
|
|
14
|
+
this.now = now;
|
|
15
|
+
}
|
|
16
|
+
requestHeaders() {
|
|
17
|
+
return this.now() < this.expiresAt ? { "X-Contember-Force-Primary": "1" } : {};
|
|
18
|
+
}
|
|
19
|
+
captureResponse(response) {
|
|
20
|
+
if (response.headers.get("X-Contember-Mutation") === "1") {
|
|
21
|
+
this.expiresAt = this.now() + this.durationMs;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
PrimaryReadWindow
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=PrimaryReadWindow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimaryReadWindow.js","sources":["../../../../packages/graphql-client/src/PrimaryReadWindow.ts"],"sourcesContent":["export interface PrimaryReadWindowOptions {\n\t/** How long to read from the primary after a mutation response. Default: 1000 ms. Zero disables the window. */\n\treadonly durationMs?: number\n\treadonly now?: () => number\n}\n\n/** Share one window across clients for the same Content API endpoint and identity. */\nexport class PrimaryReadWindow {\n\tprivate readonly durationMs: number\n\tprivate readonly now: () => number\n\tprivate expiresAt = 0\n\n\t// A monotonic clock, so a system clock change cannot stretch or cut the window.\n\tconstructor({ durationMs = 1000, now = () => performance.now() }: PrimaryReadWindowOptions = {}) {\n\t\tif (!Number.isFinite(durationMs) || durationMs < 0) {\n\t\t\tthrow new Error('Primary read window duration must be a finite non-negative number')\n\t\t}\n\t\tthis.durationMs = durationMs\n\t\tthis.now = now\n\t}\n\n\trequestHeaders(): Record<string, string> {\n\t\treturn this.now() < this.expiresAt ? { 'X-Contember-Force-Primary': '1' } : {}\n\t}\n\n\tcaptureResponse(response: Response): void {\n\t\tif (response.headers.get('X-Contember-Mutation') === '1') {\n\t\t\tthis.expiresAt = this.now() + this.durationMs\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;AAOO,MAAM,kBAAkB;AAAA;AAAA,EAM9B,YAAY,EAAE,aAAa,KAAM,MAAM,MAAM,YAAY,MAAI,IAAgC,IAAI;AALjG,kBAAA,MAAiB,YAAA;AACjB,kBAAA,MAAiB,KAAA;AACjB,kBAAA,MAAQ,aAAY,CAAA;AAInB,QAAI,CAAC,OAAO,SAAS,UAAU,KAAK,aAAa,GAAG;AACnD,YAAM,IAAI,MAAM,mEAAmE;AAAA,IACpF;AACA,SAAK,aAAa;AAClB,SAAK,MAAM;AAAA,EACZ;AAAA,EAEA,iBAAyC;AACxC,WAAO,KAAK,QAAQ,KAAK,YAAY,EAAE,6BAA6B,IAAA,IAAQ,CAAA;AAAA,EAC7E;AAAA,EAEA,gBAAgB,UAA0B;AACzC,QAAI,SAAS,QAAQ,IAAI,sBAAsB,MAAM,KAAK;AACzD,WAAK,YAAY,KAAK,IAAA,IAAQ,KAAK;AAAA,IACpC;AAAA,EACD;AACD;"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const GraphQlClient = require("./src/GraphQlClient.cjs");
|
|
4
4
|
const GraphQlClientError = require("./src/GraphQlClientError.cjs");
|
|
5
|
+
const PrimaryReadWindow = require("./src/PrimaryReadWindow.cjs");
|
|
5
6
|
exports.GraphQlClient = GraphQlClient.GraphQlClient;
|
|
6
7
|
exports.GraphQlClientError = GraphQlClientError.GraphQlClientError;
|
|
8
|
+
exports.PrimaryReadWindow = PrimaryReadWindow.PrimaryReadWindow;
|
|
7
9
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/production/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { GraphQlClient } from "./src/GraphQlClient.js";
|
|
2
2
|
import { GraphQlClientError } from "./src/GraphQlClientError.js";
|
|
3
|
+
import { PrimaryReadWindow } from "./src/PrimaryReadWindow.js";
|
|
3
4
|
export {
|
|
4
5
|
GraphQlClient,
|
|
5
|
-
GraphQlClientError
|
|
6
|
+
GraphQlClientError,
|
|
7
|
+
PrimaryReadWindow
|
|
6
8
|
};
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -40,6 +40,10 @@ ${query}`;
|
|
|
40
40
|
} catch (e) {
|
|
41
41
|
const aborted = typeof e === "object" && e !== null && e.name === "AbortError";
|
|
42
42
|
throw createError(aborted ? "aborted" : "network error", void 0, e);
|
|
43
|
+
} finally {
|
|
44
|
+
if (response !== null) {
|
|
45
|
+
this.resolvePrimaryReadWindow(options)?.captureResponse(response);
|
|
46
|
+
}
|
|
43
47
|
}
|
|
44
48
|
let data;
|
|
45
49
|
try {
|
|
@@ -72,12 +76,16 @@ ${query}`;
|
|
|
72
76
|
}
|
|
73
77
|
return data.data;
|
|
74
78
|
}
|
|
75
|
-
async doExecute(query,
|
|
79
|
+
async doExecute(query, options = {}) {
|
|
80
|
+
const { apiToken, signal, variables, headers } = options;
|
|
76
81
|
const resolvedHeaders = {
|
|
77
82
|
"Content-Type": "application/json",
|
|
78
83
|
...this.options.headers,
|
|
79
84
|
...headers
|
|
80
85
|
};
|
|
86
|
+
if (!new Headers(resolvedHeaders).has("X-Contember-Force-Primary")) {
|
|
87
|
+
Object.assign(resolvedHeaders, this.resolvePrimaryReadWindow(options)?.requestHeaders());
|
|
88
|
+
}
|
|
81
89
|
const resolvedToken = apiToken ?? this.options.apiToken;
|
|
82
90
|
if (resolvedToken !== void 0) {
|
|
83
91
|
resolvedHeaders["Authorization"] = `Bearer ${resolvedToken}`;
|
|
@@ -89,6 +97,9 @@ ${query}`;
|
|
|
89
97
|
body: JSON.stringify({ query, variables })
|
|
90
98
|
});
|
|
91
99
|
}
|
|
100
|
+
resolvePrimaryReadWindow(options) {
|
|
101
|
+
return (options.primaryReadWindow ?? this.options.primaryReadWindow) || void 0;
|
|
102
|
+
}
|
|
92
103
|
}
|
|
93
104
|
const defaultFetcher = async (url, options) => fetch(url, options);
|
|
94
105
|
exports.GraphQlClient = GraphQlClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQlClient.cjs","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError.js'\nimport { GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions.js'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\
|
|
1
|
+
{"version":3,"file":"GraphQlClient.cjs","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError.js'\nimport { GraphQlClientBaseOptions, GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions.js'\nimport { PrimaryReadWindow } from './PrimaryReadWindow.js'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t} finally {\n\t\t\t// Start once the body has arrived, and even if reading it or a user hook failed: an earlier mutation field may have committed.\n\t\t\tif (response !== null) {\n\t\t\t\tthis.resolvePrimaryReadWindow(options)?.captureResponse(response)\n\t\t\t}\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\toptions: GraphQlClientRequestOptions = {},\n\t): Promise<Response> {\n\t\tconst { apiToken, signal, variables, headers } = options\n\t\tconst resolvedHeaders: Record<string, string> = {\n\t\t\t'Content-Type': 'application/json',\n\t\t\t...this.options.headers,\n\t\t\t...headers,\n\t\t}\n\t\tif (!new Headers(resolvedHeaders).has('X-Contember-Force-Primary')) {\n\t\t\tObject.assign(resolvedHeaders, this.resolvePrimaryReadWindow(options)?.requestHeaders())\n\t\t}\n\t\tconst resolvedToken = apiToken ?? this.options.apiToken\n\n\t\tif (resolvedToken !== undefined) {\n\t\t\tresolvedHeaders['Authorization'] = `Bearer ${resolvedToken}`\n\t\t}\n\n\t\treturn await (this.options.fetcher ?? defaultFetcher)(this.options.url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: resolvedHeaders,\n\t\t\tsignal,\n\t\t\tbody: JSON.stringify({ query, variables }),\n\t\t})\n\t}\n\n\tprivate resolvePrimaryReadWindow(options: GraphQlClientBaseOptions): PrimaryReadWindow | undefined {\n\t\treturn (options.primaryReadWindow ?? this.options.primaryReadWindow) || undefined\n\t}\n}\n\nconst defaultFetcher = async (url: string, options: RequestInit) => fetch(url, options)\n"],"names":["GraphQlClientError"],"mappings":"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"}
|
|
@@ -38,6 +38,10 @@ ${query}`;
|
|
|
38
38
|
} catch (e) {
|
|
39
39
|
const aborted = typeof e === "object" && e !== null && e.name === "AbortError";
|
|
40
40
|
throw createError(aborted ? "aborted" : "network error", void 0, e);
|
|
41
|
+
} finally {
|
|
42
|
+
if (response !== null) {
|
|
43
|
+
this.resolvePrimaryReadWindow(options)?.captureResponse(response);
|
|
44
|
+
}
|
|
41
45
|
}
|
|
42
46
|
let data;
|
|
43
47
|
try {
|
|
@@ -70,12 +74,16 @@ ${query}`;
|
|
|
70
74
|
}
|
|
71
75
|
return data.data;
|
|
72
76
|
}
|
|
73
|
-
async doExecute(query,
|
|
77
|
+
async doExecute(query, options = {}) {
|
|
78
|
+
const { apiToken, signal, variables, headers } = options;
|
|
74
79
|
const resolvedHeaders = {
|
|
75
80
|
"Content-Type": "application/json",
|
|
76
81
|
...this.options.headers,
|
|
77
82
|
...headers
|
|
78
83
|
};
|
|
84
|
+
if (!new Headers(resolvedHeaders).has("X-Contember-Force-Primary")) {
|
|
85
|
+
Object.assign(resolvedHeaders, this.resolvePrimaryReadWindow(options)?.requestHeaders());
|
|
86
|
+
}
|
|
79
87
|
const resolvedToken = apiToken ?? this.options.apiToken;
|
|
80
88
|
if (resolvedToken !== void 0) {
|
|
81
89
|
resolvedHeaders["Authorization"] = `Bearer ${resolvedToken}`;
|
|
@@ -87,6 +95,9 @@ ${query}`;
|
|
|
87
95
|
body: JSON.stringify({ query, variables })
|
|
88
96
|
});
|
|
89
97
|
}
|
|
98
|
+
resolvePrimaryReadWindow(options) {
|
|
99
|
+
return (options.primaryReadWindow ?? this.options.primaryReadWindow) || void 0;
|
|
100
|
+
}
|
|
90
101
|
}
|
|
91
102
|
const defaultFetcher = async (url, options) => fetch(url, options);
|
|
92
103
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQlClient.js","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError.js'\nimport { GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions.js'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\
|
|
1
|
+
{"version":3,"file":"GraphQlClient.js","sources":["../../../../packages/graphql-client/src/GraphQlClient.ts"],"sourcesContent":["import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError.js'\nimport { GraphQlClientBaseOptions, GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions.js'\nimport { PrimaryReadWindow } from './PrimaryReadWindow.js'\n\nexport class GraphQlClient {\n\tconstructor(\n\t\tprivate readonly options: GraphQlClientOptions,\n\t) {}\n\n\tget apiUrl(): string {\n\t\treturn this.options.url\n\t}\n\n\twithOptions(options: Partial<GraphQlClientOptions>): GraphQlClient {\n\t\treturn new GraphQlClient({ ...this.options, ...options })\n\t}\n\n\tasync execute<T = unknown>(query: string, options: GraphQlClientRequestOptions = {}): Promise<T> {\n\t\tlet body: string | null = null\n\t\tlet response: Response | null = null\n\t\tconst createError = (type: GraphQlErrorType, errors?: any[], cause?: unknown) => {\n\t\t\tconst request = {\n\t\t\t\turl: this.options.url,\n\t\t\t\tquery,\n\t\t\t\tvariables: options.variables ?? {},\n\t\t\t}\n\n\t\t\tconst message = `GraphQL request failed: ${type}\n\t\t\t\nHTTP response: ${response ? (response.status + ' ' + response.statusText) : '<no response>'}\nHTTP body: \n${body !== null ? body : '<no body>'}\n\nGraphQL query: \n${query}`\n\n\t\t\treturn new GraphQlClientError(message, type, request, response ?? undefined, errors, cause)\n\t\t}\n\n\t\tthis.options?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\t\toptions?.onBeforeRequest?.({ query, variables: options.variables ?? {} })\n\n\t\ttry {\n\t\t\tresponse = await this.doExecute(query, options)\n\t\t\tthis.options?.onResponse?.(response)\n\t\t\toptions?.onResponse?.(response)\n\n\t\t\tbody = await response.text()\n\t\t} catch (e) {\n\t\t\tconst aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'\n\t\t\tthrow createError(aborted ? 'aborted' : 'network error', undefined, e)\n\t\t} finally {\n\t\t\t// Start once the body has arrived, and even if reading it or a user hook failed: an earlier mutation field may have committed.\n\t\t\tif (response !== null) {\n\t\t\t\tthis.resolvePrimaryReadWindow(options)?.captureResponse(response)\n\t\t\t}\n\t\t}\n\n\t\tlet data: any\n\t\ttry {\n\t\t\tdata = JSON.parse(body)\n\t\t} catch (e) {\n\t\t\tthrow createError('invalid response body', undefined, e)\n\t\t}\n\t\tthis.options?.onData?.(data)\n\t\toptions?.onData?.(data)\n\n\t\tif (response.status === 401) {\n\t\t\tthrow createError('unauthorized')\n\t\t}\n\t\tif (response.status === 403) {\n\t\t\tthrow createError('forbidden')\n\t\t}\n\t\tif (response.status >= 400 && response.status < 500) {\n\t\t\tthrow createError('bad request', data.errors)\n\t\t}\n\t\tif (response.status >= 500) {\n\t\t\tthrow createError('server error')\n\t\t}\n\t\tif (!(typeof data === 'object') || data === null) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\t\tif ('errors' in data) {\n\t\t\tthrow createError('response errors', data.errors)\n\t\t}\n\t\tif (!('data' in data)) {\n\t\t\tthrow createError('invalid response body')\n\t\t}\n\n\t\treturn data.data\n\t}\n\n\tprotected async doExecute(\n\t\tquery: string,\n\t\toptions: GraphQlClientRequestOptions = {},\n\t): Promise<Response> {\n\t\tconst { apiToken, signal, variables, headers } = options\n\t\tconst resolvedHeaders: Record<string, string> = {\n\t\t\t'Content-Type': 'application/json',\n\t\t\t...this.options.headers,\n\t\t\t...headers,\n\t\t}\n\t\tif (!new Headers(resolvedHeaders).has('X-Contember-Force-Primary')) {\n\t\t\tObject.assign(resolvedHeaders, this.resolvePrimaryReadWindow(options)?.requestHeaders())\n\t\t}\n\t\tconst resolvedToken = apiToken ?? this.options.apiToken\n\n\t\tif (resolvedToken !== undefined) {\n\t\t\tresolvedHeaders['Authorization'] = `Bearer ${resolvedToken}`\n\t\t}\n\n\t\treturn await (this.options.fetcher ?? defaultFetcher)(this.options.url, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: resolvedHeaders,\n\t\t\tsignal,\n\t\t\tbody: JSON.stringify({ query, variables }),\n\t\t})\n\t}\n\n\tprivate resolvePrimaryReadWindow(options: GraphQlClientBaseOptions): PrimaryReadWindow | undefined {\n\t\treturn (options.primaryReadWindow ?? this.options.primaryReadWindow) || undefined\n\t}\n}\n\nconst defaultFetcher = async (url: string, options: RequestInit) => fetch(url, options)\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
+
class PrimaryReadWindow {
|
|
7
|
+
// A monotonic clock, so a system clock change cannot stretch or cut the window.
|
|
8
|
+
constructor({ durationMs = 1e3, now = () => performance.now() } = {}) {
|
|
9
|
+
__publicField(this, "durationMs");
|
|
10
|
+
__publicField(this, "now");
|
|
11
|
+
__publicField(this, "expiresAt", 0);
|
|
12
|
+
if (!Number.isFinite(durationMs) || durationMs < 0) {
|
|
13
|
+
throw new Error("Primary read window duration must be a finite non-negative number");
|
|
14
|
+
}
|
|
15
|
+
this.durationMs = durationMs;
|
|
16
|
+
this.now = now;
|
|
17
|
+
}
|
|
18
|
+
requestHeaders() {
|
|
19
|
+
return this.now() < this.expiresAt ? { "X-Contember-Force-Primary": "1" } : {};
|
|
20
|
+
}
|
|
21
|
+
captureResponse(response) {
|
|
22
|
+
if (response.headers.get("X-Contember-Mutation") === "1") {
|
|
23
|
+
this.expiresAt = this.now() + this.durationMs;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.PrimaryReadWindow = PrimaryReadWindow;
|
|
28
|
+
//# sourceMappingURL=PrimaryReadWindow.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimaryReadWindow.cjs","sources":["../../../../packages/graphql-client/src/PrimaryReadWindow.ts"],"sourcesContent":["export interface PrimaryReadWindowOptions {\n\t/** How long to read from the primary after a mutation response. Default: 1000 ms. Zero disables the window. */\n\treadonly durationMs?: number\n\treadonly now?: () => number\n}\n\n/** Share one window across clients for the same Content API endpoint and identity. */\nexport class PrimaryReadWindow {\n\tprivate readonly durationMs: number\n\tprivate readonly now: () => number\n\tprivate expiresAt = 0\n\n\t// A monotonic clock, so a system clock change cannot stretch or cut the window.\n\tconstructor({ durationMs = 1000, now = () => performance.now() }: PrimaryReadWindowOptions = {}) {\n\t\tif (!Number.isFinite(durationMs) || durationMs < 0) {\n\t\t\tthrow new Error('Primary read window duration must be a finite non-negative number')\n\t\t}\n\t\tthis.durationMs = durationMs\n\t\tthis.now = now\n\t}\n\n\trequestHeaders(): Record<string, string> {\n\t\treturn this.now() < this.expiresAt ? { 'X-Contember-Force-Primary': '1' } : {}\n\t}\n\n\tcaptureResponse(response: Response): void {\n\t\tif (response.headers.get('X-Contember-Mutation') === '1') {\n\t\t\tthis.expiresAt = this.now() + this.durationMs\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;;;AAOO,MAAM,kBAAkB;AAAA;AAAA,EAM9B,YAAY,EAAE,aAAa,KAAM,MAAM,MAAM,YAAY,MAAI,IAAgC,IAAI;AALjG,kBAAA,MAAiB,YAAA;AACjB,kBAAA,MAAiB,KAAA;AACjB,kBAAA,MAAQ,aAAY,CAAA;AAInB,QAAI,CAAC,OAAO,SAAS,UAAU,KAAK,aAAa,GAAG;AACnD,YAAM,IAAI,MAAM,mEAAmE;AAAA,IACpF;AACA,SAAK,aAAa;AAClB,SAAK,MAAM;AAAA,EACZ;AAAA,EAEA,iBAAyC;AACxC,WAAO,KAAK,QAAQ,KAAK,YAAY,EAAE,6BAA6B,IAAA,IAAQ,CAAA;AAAA,EAC7E;AAAA,EAEA,gBAAgB,UAA0B;AACzC,QAAI,SAAS,QAAQ,IAAI,sBAAsB,MAAM,KAAK;AACzD,WAAK,YAAY,KAAK,IAAA,IAAQ,KAAK;AAAA,IACpC;AAAA,EACD;AACD;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
class PrimaryReadWindow {
|
|
5
|
+
// A monotonic clock, so a system clock change cannot stretch or cut the window.
|
|
6
|
+
constructor({ durationMs = 1e3, now = () => performance.now() } = {}) {
|
|
7
|
+
__publicField(this, "durationMs");
|
|
8
|
+
__publicField(this, "now");
|
|
9
|
+
__publicField(this, "expiresAt", 0);
|
|
10
|
+
if (!Number.isFinite(durationMs) || durationMs < 0) {
|
|
11
|
+
throw new Error("Primary read window duration must be a finite non-negative number");
|
|
12
|
+
}
|
|
13
|
+
this.durationMs = durationMs;
|
|
14
|
+
this.now = now;
|
|
15
|
+
}
|
|
16
|
+
requestHeaders() {
|
|
17
|
+
return this.now() < this.expiresAt ? { "X-Contember-Force-Primary": "1" } : {};
|
|
18
|
+
}
|
|
19
|
+
captureResponse(response) {
|
|
20
|
+
if (response.headers.get("X-Contember-Mutation") === "1") {
|
|
21
|
+
this.expiresAt = this.now() + this.durationMs;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
PrimaryReadWindow
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=PrimaryReadWindow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimaryReadWindow.js","sources":["../../../../packages/graphql-client/src/PrimaryReadWindow.ts"],"sourcesContent":["export interface PrimaryReadWindowOptions {\n\t/** How long to read from the primary after a mutation response. Default: 1000 ms. Zero disables the window. */\n\treadonly durationMs?: number\n\treadonly now?: () => number\n}\n\n/** Share one window across clients for the same Content API endpoint and identity. */\nexport class PrimaryReadWindow {\n\tprivate readonly durationMs: number\n\tprivate readonly now: () => number\n\tprivate expiresAt = 0\n\n\t// A monotonic clock, so a system clock change cannot stretch or cut the window.\n\tconstructor({ durationMs = 1000, now = () => performance.now() }: PrimaryReadWindowOptions = {}) {\n\t\tif (!Number.isFinite(durationMs) || durationMs < 0) {\n\t\t\tthrow new Error('Primary read window duration must be a finite non-negative number')\n\t\t}\n\t\tthis.durationMs = durationMs\n\t\tthis.now = now\n\t}\n\n\trequestHeaders(): Record<string, string> {\n\t\treturn this.now() < this.expiresAt ? { 'X-Contember-Force-Primary': '1' } : {}\n\t}\n\n\tcaptureResponse(response: Response): void {\n\t\tif (response.headers.get('X-Contember-Mutation') === '1') {\n\t\t\tthis.expiresAt = this.now() + this.durationMs\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;AAOO,MAAM,kBAAkB;AAAA;AAAA,EAM9B,YAAY,EAAE,aAAa,KAAM,MAAM,MAAM,YAAY,MAAI,IAAgC,IAAI;AALjG,kBAAA,MAAiB,YAAA;AACjB,kBAAA,MAAiB,KAAA;AACjB,kBAAA,MAAQ,aAAY,CAAA;AAInB,QAAI,CAAC,OAAO,SAAS,UAAU,KAAK,aAAa,GAAG;AACnD,YAAM,IAAI,MAAM,mEAAmE;AAAA,IACpF;AACA,SAAK,aAAa;AAClB,SAAK,MAAM;AAAA,EACZ;AAAA,EAEA,iBAAyC;AACxC,WAAO,KAAK,QAAQ,KAAK,YAAY,EAAE,6BAA6B,IAAA,IAAQ,CAAA;AAAA,EAC7E;AAAA,EAEA,gBAAgB,UAA0B;AACzC,QAAI,SAAS,QAAQ,IAAI,sBAAsB,MAAM,KAAK;AACzD,WAAK,YAAY,KAAK,IAAA,IAAQ,KAAK;AAAA,IACpC;AAAA,EACD;AACD;"}
|
|
@@ -5,6 +5,7 @@ export declare class GraphQlClient {
|
|
|
5
5
|
get apiUrl(): string;
|
|
6
6
|
withOptions(options: Partial<GraphQlClientOptions>): GraphQlClient;
|
|
7
7
|
execute<T = unknown>(query: string, options?: GraphQlClientRequestOptions): Promise<T>;
|
|
8
|
-
protected doExecute(query: string,
|
|
8
|
+
protected doExecute(query: string, options?: GraphQlClientRequestOptions): Promise<Response>;
|
|
9
|
+
private resolvePrimaryReadWindow;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=GraphQlClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQlClient.d.ts","sourceRoot":"","sources":["../../src/GraphQlClient.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"GraphQlClient.d.ts","sourceRoot":"","sources":["../../src/GraphQlClient.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAG9H,qBAAa,aAAa;IAExB,OAAO,CAAC,QAAQ,CAAC,OAAO;IADzB,YACkB,OAAO,EAAE,oBAAoB,EAC3C;IAEJ,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,GAAG,aAAa,CAEjE;IAEK,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,2BAAgC,GAAG,OAAO,CAAC,CAAC,CAAC,CAyE/F;IAED,UAAgB,SAAS,CACxB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,2BAAgC,GACvC,OAAO,CAAC,QAAQ,CAAC,CAsBnB;IAED,OAAO,CAAC,wBAAwB;CAGhC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PrimaryReadWindow } from './PrimaryReadWindow.js';
|
|
1
2
|
export interface GraphQlClientBaseOptions {
|
|
2
3
|
readonly apiToken?: string;
|
|
3
4
|
readonly headers?: Record<string, string>;
|
|
@@ -7,6 +8,8 @@ export interface GraphQlClientBaseOptions {
|
|
|
7
8
|
}) => void;
|
|
8
9
|
readonly onResponse?: (response: Response) => void;
|
|
9
10
|
readonly onData?: (json: unknown) => void;
|
|
11
|
+
/** Temporarily route reads to the primary after a Content API mutation. False disables the client-wide window for this request. */
|
|
12
|
+
readonly primaryReadWindow?: PrimaryReadWindow | false;
|
|
10
13
|
}
|
|
11
14
|
export interface GraphQlClientOptions extends GraphQlClientBaseOptions {
|
|
12
15
|
readonly url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQlClientRequestOptions.d.ts","sourceRoot":"","sources":["../../src/GraphQlClientRequestOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,sBAAsB,CAAA;KAAE,KAAK,IAAI,CAAA;IAChG,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"GraphQlClientRequestOptions.d.ts","sourceRoot":"","sources":["../../src/GraphQlClientRequestOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,sBAAsB,CAAA;KAAE,KAAK,IAAI,CAAA;IAChG,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACzC,mIAAmI;IACnI,QAAQ,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,KAAK,CAAA;CACtD;AAED,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IACrE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;CAChF;AAED,MAAM,WAAW,2BAA4B,SAAQ,wBAAwB;IAC5E,QAAQ,CAAC,SAAS,CAAC,EAAE,sBAAsB,CAAA;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACtC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface PrimaryReadWindowOptions {
|
|
2
|
+
/** How long to read from the primary after a mutation response. Default: 1000 ms. Zero disables the window. */
|
|
3
|
+
readonly durationMs?: number;
|
|
4
|
+
readonly now?: () => number;
|
|
5
|
+
}
|
|
6
|
+
/** Share one window across clients for the same Content API endpoint and identity. */
|
|
7
|
+
export declare class PrimaryReadWindow {
|
|
8
|
+
private readonly durationMs;
|
|
9
|
+
private readonly now;
|
|
10
|
+
private expiresAt;
|
|
11
|
+
constructor({ durationMs, now }?: PrimaryReadWindowOptions);
|
|
12
|
+
requestHeaders(): Record<string, string>;
|
|
13
|
+
captureResponse(response: Response): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=PrimaryReadWindow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimaryReadWindow.d.ts","sourceRoot":"","sources":["../../src/PrimaryReadWindow.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACxC,+GAA+G;IAC/G,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;CAC3B;AAED,sFAAsF;AACtF,qBAAa,iBAAiB;IAC7B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAQ;IACnC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAc;IAClC,OAAO,CAAC,SAAS,CAAI;IAGrB,YAAY,EAAE,UAAiB,EAAE,GAA6B,EAAE,GAAE,wBAA6B,EAM9F;IAED,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEvC;IAED,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAIxC;CACD"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,kCAAkC,CAAA;AAChD,cAAc,yBAAyB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,kCAAkC,CAAA;AAChD,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"7.0.1-rc","root":[[90,93]],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.es2024.d.ts","lib.es2025.d.ts","lib.esnext.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.es2024.arraybuffer.d.ts","lib.es2024.collection.d.ts","lib.es2024.object.d.ts","lib.es2024.promise.d.ts","lib.es2024.regexp.d.ts","lib.es2024.sharedmemory.d.ts","lib.es2024.string.d.ts","lib.es2025.collection.d.ts","lib.es2025.float16.d.ts","lib.es2025.intl.d.ts","lib.es2025.iterator.d.ts","lib.es2025.promise.d.ts","lib.es2025.regexp.d.ts","lib.esnext.array.d.ts","lib.esnext.collection.d.ts","lib.esnext.date.d.ts","lib.esnext.decorators.d.ts","lib.esnext.disposable.d.ts","lib.esnext.error.d.ts","lib.esnext.intl.d.ts","lib.esnext.sharedmemory.d.ts","lib.esnext.temporal.d.ts","lib.esnext.typedarrays.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../../src/GraphQlClientError.ts","../../src/GraphQlClientRequestOptions.ts","../../src/GraphQlClient.ts","../../src/index.ts","../../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../node_modules/@types/node/web-globals/crypto.d.ts","../../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../../node_modules/@types/node/web-globals/events.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/utility.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client-stats.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/h2c-client.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-call-history.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/snapshot-agent.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cache-interceptor.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/util.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/eventsource.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../../node_modules/@types/node/web-globals/storage.d.ts","../../../../node_modules/@types/node/web-globals/streams.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/inspector.generated.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/sea.d.ts","../../../../node_modules/@types/node/sqlite.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/bun-types/globals.d.ts","../../../../node_modules/bun-types/s3.d.ts","../../../../node_modules/bun-types/fetch.d.ts","../../../../node_modules/bun-types/jsx.d.ts","../../../../node_modules/bun-types/bun.d.ts","../../../../node_modules/bun-types/extensions.d.ts","../../../../node_modules/bun-types/devserver.d.ts","../../../../node_modules/bun-types/ffi.d.ts","../../../../node_modules/bun-types/html-rewriter.d.ts","../../../../node_modules/bun-types/jsc.d.ts","../../../../node_modules/bun-types/sqlite.d.ts","../../../../node_modules/bun-types/vendor/expect-type/utils.d.ts","../../../../node_modules/bun-types/vendor/expect-type/overloads.d.ts","../../../../node_modules/bun-types/vendor/expect-type/branding.d.ts","../../../../node_modules/bun-types/vendor/expect-type/messages.d.ts","../../../../node_modules/bun-types/vendor/expect-type/index.d.ts","../../../../node_modules/bun-types/test.d.ts","../../../../node_modules/bun-types/wasm.d.ts","../../../../node_modules/bun-types/overrides.d.ts","../../../../node_modules/bun-types/deprecated.d.ts","../../../../node_modules/bun-types/redis.d.ts","../../../../node_modules/bun-types/shell.d.ts","../../../../node_modules/bun-types/serve.d.ts","../../../../node_modules/bun-types/sql.d.ts","../../../../node_modules/bun-types/security.d.ts","../../../../node_modules/bun-types/bundle.d.ts","../../../../node_modules/bun-types/bun.ns.d.ts","../../../../node_modules/bun-types/index.d.ts","../../../../node_modules/@types/bun/index.d.ts"],"fileInfos":[{"version":"a1aa1a5e065d48ef5c7bb99e38412f96","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995","793cee405385076e27c24f409659dccd","09f69c6610266eaee1ac9e3e30df2c71","62bad718844246b8e17547f37bad6085",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237",{"version":"01ac052ec4a79e87229f90466a9645f8","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"edba5df642941aa062a62f6328c6df3d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bb3a710cbcda0533bb127712927cbe37","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7a42de379b489e8f7b647455bebfc576","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"692bcd75364db0f65d428801c7884466","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1df91c56b25955c56387426f378173c5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"38856f70edcd2115c355d96ec77cc09e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"de8700156c1275465bcd473c28b359aa","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d47cfdb6ede40518357bb5a4cd7cd9fb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6e5773860cd9e5b15e683113f642ab47","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"30ff5fe1682f7fcd629880476ca3c2e0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bf23d7d1b40b9015b694ddc2f011752f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2cc585d42e2c548f9f24a30a1989fd33","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"713906ce9d332d2242b7f05ed9304be3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0219894bfe5042c7e1aa2d22e4a91ed0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6009ffff7e43c93318804d2d28e37fe3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"03be89b227587594fbb50509fc1c2e45","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b30df52dc24740c0bad7c55c3511df7d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ab8d3c9b5ed5c2ab8f383607eef439f0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d950ec671d0a8e07f3c1a31e94abed86","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1abef2ace5eccb02d60dd73cd5a5ee4c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5f0a3044029d1cc081b5887eb4deb07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d57c697f1446940ec4bfe669c962e2c4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be41035d7b941482a1e1ae6a5c5dcca5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"10f7d9da7564f27f8ddf4a162b6da6d3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1d0520af549e0c3581f15173cc713ca1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d65083f97fd741cff028472563eddb79","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"da7f24f00653ebac660ac1c0821ed33d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7cb5ae9e65516ea2235f0721f6aac43c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ab44d2cac24cb934c7adef2c47305739","signature":"e8dfffdfaf511847860a9116ecc91ede","impliedNodeFormat":1},{"version":"beaccced409464c5eefe741cde968feb","signature":"e297fef0c9a82dc601abac50ecb4648b","impliedNodeFormat":1},{"version":"422246229f16473b9b1ac52e19698f25","signature":"75137a6503900b2e35ff8599809c35f8","impliedNodeFormat":1},{"version":"acecaa42e195ac147e94bcfbe4259e63","signature":"9bd513e237f0fcc0be51ff6dcf05c9ac","impliedNodeFormat":1},{"version":"2514e9a2749c0fc18d2f478e9e1e641e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6ae4c332ecb24e76c1e47c0e21d4663d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"69ee0752d1e70c56ca160360425752a9","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bf33440030f0a0fae7d1efd6c293a8d2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9af0a7e3ef1c42cd066b9f8d365cc1ba","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7b772cebc7136c34fc77954aef70519d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9eca652586205dc5b07f9ba57b1c8500","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ec5f75939754ce94652189ec7d0d3058","affectsGlobalScope":true,"impliedNodeFormat":1},"8e91e7228778516936913f666d057c19","49133c0dfbc32ab95668c3443dea49e5","85c2cf74d24d4069fac4686501a2d7e3","83f416ded62bb31c035580c3b5a8d334","d261ae135609468365bc2d32742d3e0d","60c67c092ae78d2e7858ca0a88f54659","9508c917bd7e458745e222a82dd24ef0","fcd1a513c1e5802916fa602e8b8e64bc","9cf55e98366383279869ace31be98079","8e2bc11d0328ba95e490a741c44a215d","f36661bccb8b9a0b5ccb8539ae751cb3","705645fe223430c696f47b708d592ca8","28d57c837c94adb42add03d499793cab","8c01a9bbae8449be21b3e018d59a74ac","705c3696b9d9681bf22181718bb08ffc","679024f8e9f58a112f4badf119c4d612","16f740a706028e841b09fb8b1aa8faaf","e6828eaf960f006eb1adb6e7df8913c0","6fdde11403da5129f4388a489f361535","d7e5f7a0f1f883f28458f684106e7643","c2364011a80b6a9e3cc0e77895bad577","38da5c670190f4a35cbc204ca6c616bf","d95cc0eb29beed58f5ce72db21398f53","ecd53256b1ec7379c73316eaf392a69c","db5a9211b779628398011a5b8f5b8b5d","69c7bb9c3befe9ae37eed0e6a6310fee","1cba93fafccb7b2655f0e75229185e83","094ecadae30f65a82b77343dde77a666","f75df12d75dd783b03a0329b95abdb25","b438b08b2f0ed94a95a75c8990d9021b","771a77c9bec862600c95f7a563871b5e","c665284a9cb3dd886b14663cd04742e0","1c3833453f6ed0acab1b4663ccdbd310","0468c0ccd0ec7770b76481b165564d62","188234d616a4f50ed9b14c8f84a39f33","4c116bcf0a47ea8fbf4072f380925fa7","1948703c2f27e582e0a0cc37bd67a868","add85ec26ba695fc99c698dbec065f8c","73ba12091cff7d4499df83bbe40d777b","b744265d8ad12b7d4d5c5dc35d18d44e","eff32168b8348b822afeed9cbf61afa7","af51e27e980746d79714b72188b3ee40",{"version":"dd1cf1cc3aa21cd78b4869a44d98c6d9","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"292c9398a407b33b1d9c9812b673387a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"45df94b3c51b898624bacc2bcd6d9eb2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7d352f71d1b1bcc12c79dd0e4597537c","affectsGlobalScope":true,"impliedNodeFormat":1},"db11b80743ed5356b81d763a708788e6","39078ea063fcaf72bd3cca7e0d13d017","f81aa09811fa65ac6f354ab0018d3c38",{"version":"282318b178d190157a4deacb14f3040a","affectsGlobalScope":true,"impliedNodeFormat":1},"aafe512c4216100fd65028f9b2afce83","54c5c3dcfdb5f7cf5fbbccfff6ead3fa",{"version":"dc14f078230582a2f8fb2138bfcf4f85","affectsGlobalScope":true,"impliedNodeFormat":1},"b2b472cd0bf0f8d5f022e00ca1c401f4","370d966b810b687a9e58851208cb3d4c","39b3089f3df8d14e0f2ddac0479872d9","cc7a57e86f908c313649aea8d90377e1","5c271f10d8a9b9a1206bc82a4fe5b84d","fbe31979333ec391d8b59e8f42236e8e","6f97553fd1690f568365155d4c51a3b5",{"version":"a3f111d2a29b6cdd04fc4b41aa560c86","affectsGlobalScope":true,"impliedNodeFormat":1},"5f4ac576bcdc670a8489c881b23a2b17","84c4165c4499465304988f5db8d9940a","02a1ccf1ef65bfbf65865ac4ce346974","86978b8f91524043f71ff8dfaf83288b","dbe700f7f1fa52fd220c7ee2c6617ebc","579675a2c3b0f8c532a82ad9cbd5d384","9b44005377cec9487e5f0d900bc5db46",{"version":"22dcb64768a46f60b07af6ec5e7752bb","affectsGlobalScope":true,"impliedNodeFormat":1},"b59cb5a2a891b4a59040eecaa4e4fd92","c9053dbbe4fa2853f2d3f73b9a2fee81","4e458316a6083cbd2bba2fd29f674dd5",{"version":"3cccee1f2c106192d18ac4e08119f872","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"077a5affac1af2f5defdb142842fb031","affectsGlobalScope":true,"impliedNodeFormat":1},"6b26581aa2587701d570206a0db8c9ee","88a29e2aac8082c0910733950159e1ca","609d3ac6ba921e6e83c5da182c204fb8","0f80958d77cd6301b43c1d7904e3e4bc","3bdc645524ab0d2f6795d3a008833bd7","deb50b47eb75a5566532a763fa1324fa","0a463424e0a2a59373805ee224327d85","7e470eddc0bd0486dc2a8ab902de79b7","c8206d568b54e5ea06131963eecd576a","15878f4f50c2e562c0768eb735c2aed5",{"version":"98d7074a05f2d388bfaa708af5660466","affectsGlobalScope":true,"impliedNodeFormat":1},"dd404118e8bd70aff746f7d31e46270b","4b9ff1cc38cc2243605ecef78c80ef8b",{"version":"6b8649a280031d9e86955db721cfad87","affectsGlobalScope":true,"impliedNodeFormat":1},"4bc8f13c472858fb74f77388c0c5d885","eec349e50f6da0bc900cd9b243dadbc6","c72d2516d1e8910caca33c4dff75fcd4","f0231f36cb7117fbe9271ff19ef0f5f4",{"version":"acca246ee319503493a0a5f9d7db7fd8","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1aee62839c1ac0986904f19bdb93e3d8","affectsGlobalScope":true,"impliedNodeFormat":1},"a4a335f8e124cd5346b4579b47beec32","e9bc5b1de50e48fa9857b64091673883","9268959cff1006c82e6abbd73824db97",{"version":"7f738a67dc535e5476c63bf4ff0b9759","affectsGlobalScope":true,"impliedNodeFormat":1},"6b1f3649b0eabeaca20c778fcc5f270c","eb567c7b5824aab578f75bbccf9f4b05",{"version":"8df710e56bd27406fc117fb7433ae55c","affectsGlobalScope":true,"impliedNodeFormat":1},"c3dc85be36ae67b5371ca1e4270e7f46","d92ae047ecefd1ea6f15d92508c96cf7","13dffe6cbb50dd11b8ca76114e9b8975","912b0dbbb6bb4ad6fd6fe2cfa1fdf109","9aae89803f470f3f639dbfbb26d67eb5",{"version":"803b0e4e42d25332e9f22f1b5f31e50d","affectsGlobalScope":true,"impliedNodeFormat":1},"ca4dd245f2032f512d1330de2593acd9",{"version":"3585cc524c08b2eb40ab817052f89462","affectsGlobalScope":true,"impliedNodeFormat":1},"bb3aaf40646363c84e7f812662701116","af1e2149c50363a8e411f28cf33f26bd","f54c29ade8d0c2940399d6ce4c07f4d8","ed4ce0ea67836b63d1620265be339a88","25d3d41f8140ef5f43c8793a0e21a8e5","704e32e377e486f16b2694b56868448f","67fd4c2cdeac0ac2b2f81f5a4e5412a1","2ea95e525a73b274e90fcf3cc8007a3e",{"version":"77689727e0d7f721c301adf335d33c20","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ab6f5c9037273b86bca0524fa3e203fb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c7176d955002d7f1bf12f6f63b45843","affectsGlobalScope":true,"impliedNodeFormat":1},"75d8cc60a79ae5d8a9c9594b304a257e","88f4b91b3c8db819c38b9b146d3fde91","d43268f7a239fb3eacfdee00e48b953d","b6b079b1f78ec10c992182bad5ca395a","2f2991fcd85839574abe82038a21cc1a","6d84cddfb4b94eb6a020d1cba106eae4",{"version":"461a5f8e20bef2a3713a72a7e4916df1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b883f72bd7ab8c483d628ec63b4abd4a","affectsGlobalScope":true,"impliedNodeFormat":1},"b210cf73199ba01431d4c87407e1deea"],"fileIdsList":[[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227,229],[96,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,143,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[94,95,96,97,98,99,100,101,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,143,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,143,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,143,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,205,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,143,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,211,212,218,219,220,221,222,223,224,225,226,227],[96,143,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,206,207,208,209,210,211,212,218,219,220,221,222,223,224,225,226,227,228],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,212,218,219,220,221,222,223,224,225,226,227],[14,96,97,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,217,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,213,214,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,213,215,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,213,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,220,221,222,223,224,225,226,227],[96,109,112,115,116,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,112,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,112,116,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,106,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,110,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,108,109,112,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,106,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,108,112,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,103,104,105,107,111,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,112,120,128,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,104,110,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,112,137,138,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,104,107,112,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,103,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,106,107,108,110,111,112,113,114,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,112,130,133,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,112,120,121,122,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,110,112,121,123,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,111,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,104,106,112,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,112,116,121,123,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,116,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,110,112,115,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,104,108,112,120,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,112,130,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,123,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[96,106,112,137,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[90,91,96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227],[90,91,92,96,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,202,203,204,206,207,208,209,211,212,218,219,220,221,222,223,224,225,226,227]],"options":{"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"strict":true,"sourceMap":true,"target":7,"useDefineForClassFields":true,"allowSyntheticDefaultImports":true,"esModuleInterop":true},"referencedMap":[[230,1],[148,2],[149,3],[150,4],[96,5],[151,6],[152,7],[153,8],[94,9],[154,10],[155,11],[156,12],[157,13],[158,14],[159,15],[160,16],[161,17],[162,18],[163,19],[164,20],[97,9],[95,9],[165,21],[166,22],[167,23],[201,24],[168,25],[169,26],[170,27],[171,28],[172,29],[173,30],[174,31],[175,32],[176,33],[177,34],[178,35],[179,36],[180,37],[181,38],[182,39],[183,40],[185,41],[184,42],[186,43],[187,44],[188,45],[189,46],[190,47],[191,48],[192,49],[193,50],[194,51],[195,52],[196,53],[197,54],[198,55],[98,9],[99,9],[100,9],[101,9],[144,56],[145,9],[146,9],[147,9],[199,57],[200,58],[88,9],[89,9],[14,9],[15,9],[17,9],[16,9],[2,9],[18,9],[19,9],[20,9],[21,9],[22,9],[23,9],[24,9],[25,9],[3,9],[26,9],[27,9],[4,9],[28,9],[32,9],[29,9],[30,9],[31,9],[33,9],[34,9],[35,9],[5,9],[36,9],[37,9],[38,9],[39,9],[6,9],[43,9],[40,9],[41,9],[42,9],[44,9],[7,9],[45,9],[50,9],[51,9],[46,9],[47,9],[48,9],[49,9],[8,9],[55,9],[52,9],[53,9],[54,9],[56,9],[9,9],[57,9],[58,9],[59,9],[61,9],[60,9],[62,9],[63,9],[10,9],[64,9],[65,9],[66,9],[11,9],[67,9],[68,9],[69,9],[70,9],[71,9],[72,9],[12,9],[73,9],[74,9],[75,9],[76,9],[77,9],[1,9],[78,9],[79,9],[13,9],[80,9],[81,9],[82,9],[83,9],[84,9],[85,9],[86,9],[87,9],[102,9],[206,59],[228,9],[227,60],[221,61],[208,62],[207,63],[204,64],[209,65],[202,66],[210,9],[229,67],[211,68],[205,9],[220,69],[222,70],[203,71],[226,72],[224,73],[223,74],[225,75],[212,76],[218,77],[215,78],[217,79],[216,80],[214,81],[213,9],[219,82],[120,83],[132,84],[118,85],[133,9],[142,86],[109,87],[110,88],[108,9],[141,89],[136,90],[140,91],[112,92],[129,93],[111,94],[139,95],[106,96],[107,90],[113,84],[114,9],[119,91],[117,84],[104,97],[143,98],[134,99],[123,100],[122,84],[124,101],[127,102],[121,103],[125,104],[137,89],[115,105],[116,106],[128,107],[105,9],[131,108],[130,84],[126,109],[135,9],[103,9],[138,110],[92,111],[90,9],[91,9],[93,112]],"latestChangedDtsFile":"./index.d.ts"}
|
|
1
|
+
{"version":"7.0.1-rc","root":[[90,94]],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.es2024.d.ts","lib.es2025.d.ts","lib.esnext.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.es2024.arraybuffer.d.ts","lib.es2024.collection.d.ts","lib.es2024.object.d.ts","lib.es2024.promise.d.ts","lib.es2024.regexp.d.ts","lib.es2024.sharedmemory.d.ts","lib.es2024.string.d.ts","lib.es2025.collection.d.ts","lib.es2025.float16.d.ts","lib.es2025.intl.d.ts","lib.es2025.iterator.d.ts","lib.es2025.promise.d.ts","lib.es2025.regexp.d.ts","lib.esnext.array.d.ts","lib.esnext.collection.d.ts","lib.esnext.date.d.ts","lib.esnext.decorators.d.ts","lib.esnext.disposable.d.ts","lib.esnext.error.d.ts","lib.esnext.intl.d.ts","lib.esnext.sharedmemory.d.ts","lib.esnext.temporal.d.ts","lib.esnext.typedarrays.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../../src/GraphQlClientError.ts","../../src/PrimaryReadWindow.ts","../../src/GraphQlClientRequestOptions.ts","../../src/GraphQlClient.ts","../../src/index.ts","../../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../node_modules/@types/node/web-globals/crypto.d.ts","../../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../../node_modules/@types/node/web-globals/events.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/utility.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client-stats.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/h2c-client.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-call-history.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/snapshot-agent.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cache-interceptor.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/util.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/eventsource.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../../node_modules/@types/node/web-globals/storage.d.ts","../../../../node_modules/@types/node/web-globals/streams.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/inspector.generated.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/sea.d.ts","../../../../node_modules/@types/node/sqlite.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/bun-types/globals.d.ts","../../../../node_modules/bun-types/s3.d.ts","../../../../node_modules/bun-types/fetch.d.ts","../../../../node_modules/bun-types/jsx.d.ts","../../../../node_modules/bun-types/bun.d.ts","../../../../node_modules/bun-types/extensions.d.ts","../../../../node_modules/bun-types/devserver.d.ts","../../../../node_modules/bun-types/ffi.d.ts","../../../../node_modules/bun-types/html-rewriter.d.ts","../../../../node_modules/bun-types/jsc.d.ts","../../../../node_modules/bun-types/sqlite.d.ts","../../../../node_modules/bun-types/vendor/expect-type/utils.d.ts","../../../../node_modules/bun-types/vendor/expect-type/overloads.d.ts","../../../../node_modules/bun-types/vendor/expect-type/branding.d.ts","../../../../node_modules/bun-types/vendor/expect-type/messages.d.ts","../../../../node_modules/bun-types/vendor/expect-type/index.d.ts","../../../../node_modules/bun-types/test.d.ts","../../../../node_modules/bun-types/wasm.d.ts","../../../../node_modules/bun-types/overrides.d.ts","../../../../node_modules/bun-types/deprecated.d.ts","../../../../node_modules/bun-types/redis.d.ts","../../../../node_modules/bun-types/shell.d.ts","../../../../node_modules/bun-types/serve.d.ts","../../../../node_modules/bun-types/sql.d.ts","../../../../node_modules/bun-types/security.d.ts","../../../../node_modules/bun-types/bundle.d.ts","../../../../node_modules/bun-types/bun.ns.d.ts","../../../../node_modules/bun-types/index.d.ts","../../../../node_modules/@types/bun/index.d.ts"],"fileInfos":[{"version":"a1aa1a5e065d48ef5c7bb99e38412f96","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995","793cee405385076e27c24f409659dccd","09f69c6610266eaee1ac9e3e30df2c71","62bad718844246b8e17547f37bad6085",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237",{"version":"01ac052ec4a79e87229f90466a9645f8","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"edba5df642941aa062a62f6328c6df3d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bb3a710cbcda0533bb127712927cbe37","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7a42de379b489e8f7b647455bebfc576","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"692bcd75364db0f65d428801c7884466","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1df91c56b25955c56387426f378173c5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"38856f70edcd2115c355d96ec77cc09e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"de8700156c1275465bcd473c28b359aa","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d47cfdb6ede40518357bb5a4cd7cd9fb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6e5773860cd9e5b15e683113f642ab47","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"30ff5fe1682f7fcd629880476ca3c2e0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bf23d7d1b40b9015b694ddc2f011752f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2cc585d42e2c548f9f24a30a1989fd33","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"713906ce9d332d2242b7f05ed9304be3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0219894bfe5042c7e1aa2d22e4a91ed0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6009ffff7e43c93318804d2d28e37fe3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"03be89b227587594fbb50509fc1c2e45","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b30df52dc24740c0bad7c55c3511df7d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ab8d3c9b5ed5c2ab8f383607eef439f0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d950ec671d0a8e07f3c1a31e94abed86","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1abef2ace5eccb02d60dd73cd5a5ee4c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f5f0a3044029d1cc081b5887eb4deb07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d57c697f1446940ec4bfe669c962e2c4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be41035d7b941482a1e1ae6a5c5dcca5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"10f7d9da7564f27f8ddf4a162b6da6d3","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1d0520af549e0c3581f15173cc713ca1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d65083f97fd741cff028472563eddb79","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"da7f24f00653ebac660ac1c0821ed33d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7cb5ae9e65516ea2235f0721f6aac43c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ab44d2cac24cb934c7adef2c47305739","signature":"e8dfffdfaf511847860a9116ecc91ede","impliedNodeFormat":1},{"version":"4a1175989c156e93c56a0d5acbf2e32b","signature":"7e84b7e2f6598c568260863edff6cd3c","impliedNodeFormat":1},{"version":"7d536ff19f027de27b50d3f2b284e37e","signature":"47d55e655f8b58c8cc3cc77b97ff7c16","impliedNodeFormat":1},{"version":"b013ce6f735e747e65c9b5aabba057ee","signature":"a091665221d2474bdfe00cd6abdcc020","impliedNodeFormat":1},{"version":"4720aebbe222ab5496cc7c636b3475e2","signature":"e52c0e9a6b9f6cf7b072a552607d11cc","impliedNodeFormat":1},{"version":"2514e9a2749c0fc18d2f478e9e1e641e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6ae4c332ecb24e76c1e47c0e21d4663d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"69ee0752d1e70c56ca160360425752a9","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bf33440030f0a0fae7d1efd6c293a8d2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9af0a7e3ef1c42cd066b9f8d365cc1ba","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7b772cebc7136c34fc77954aef70519d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9eca652586205dc5b07f9ba57b1c8500","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ec5f75939754ce94652189ec7d0d3058","affectsGlobalScope":true,"impliedNodeFormat":1},"8e91e7228778516936913f666d057c19","49133c0dfbc32ab95668c3443dea49e5","85c2cf74d24d4069fac4686501a2d7e3","83f416ded62bb31c035580c3b5a8d334","d261ae135609468365bc2d32742d3e0d","60c67c092ae78d2e7858ca0a88f54659","9508c917bd7e458745e222a82dd24ef0","fcd1a513c1e5802916fa602e8b8e64bc","9cf55e98366383279869ace31be98079","8e2bc11d0328ba95e490a741c44a215d","f36661bccb8b9a0b5ccb8539ae751cb3","705645fe223430c696f47b708d592ca8","28d57c837c94adb42add03d499793cab","8c01a9bbae8449be21b3e018d59a74ac","705c3696b9d9681bf22181718bb08ffc","679024f8e9f58a112f4badf119c4d612","16f740a706028e841b09fb8b1aa8faaf","e6828eaf960f006eb1adb6e7df8913c0","6fdde11403da5129f4388a489f361535","d7e5f7a0f1f883f28458f684106e7643","c2364011a80b6a9e3cc0e77895bad577","38da5c670190f4a35cbc204ca6c616bf","d95cc0eb29beed58f5ce72db21398f53","ecd53256b1ec7379c73316eaf392a69c","db5a9211b779628398011a5b8f5b8b5d","69c7bb9c3befe9ae37eed0e6a6310fee","1cba93fafccb7b2655f0e75229185e83","094ecadae30f65a82b77343dde77a666","f75df12d75dd783b03a0329b95abdb25","b438b08b2f0ed94a95a75c8990d9021b","771a77c9bec862600c95f7a563871b5e","c665284a9cb3dd886b14663cd04742e0","1c3833453f6ed0acab1b4663ccdbd310","0468c0ccd0ec7770b76481b165564d62","188234d616a4f50ed9b14c8f84a39f33","4c116bcf0a47ea8fbf4072f380925fa7","1948703c2f27e582e0a0cc37bd67a868","add85ec26ba695fc99c698dbec065f8c","73ba12091cff7d4499df83bbe40d777b","b744265d8ad12b7d4d5c5dc35d18d44e","eff32168b8348b822afeed9cbf61afa7","af51e27e980746d79714b72188b3ee40",{"version":"dd1cf1cc3aa21cd78b4869a44d98c6d9","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"292c9398a407b33b1d9c9812b673387a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"45df94b3c51b898624bacc2bcd6d9eb2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7d352f71d1b1bcc12c79dd0e4597537c","affectsGlobalScope":true,"impliedNodeFormat":1},"db11b80743ed5356b81d763a708788e6","39078ea063fcaf72bd3cca7e0d13d017","f81aa09811fa65ac6f354ab0018d3c38",{"version":"282318b178d190157a4deacb14f3040a","affectsGlobalScope":true,"impliedNodeFormat":1},"aafe512c4216100fd65028f9b2afce83","54c5c3dcfdb5f7cf5fbbccfff6ead3fa",{"version":"dc14f078230582a2f8fb2138bfcf4f85","affectsGlobalScope":true,"impliedNodeFormat":1},"b2b472cd0bf0f8d5f022e00ca1c401f4","370d966b810b687a9e58851208cb3d4c","39b3089f3df8d14e0f2ddac0479872d9","cc7a57e86f908c313649aea8d90377e1","5c271f10d8a9b9a1206bc82a4fe5b84d","fbe31979333ec391d8b59e8f42236e8e","6f97553fd1690f568365155d4c51a3b5",{"version":"a3f111d2a29b6cdd04fc4b41aa560c86","affectsGlobalScope":true,"impliedNodeFormat":1},"5f4ac576bcdc670a8489c881b23a2b17","84c4165c4499465304988f5db8d9940a","02a1ccf1ef65bfbf65865ac4ce346974","86978b8f91524043f71ff8dfaf83288b","dbe700f7f1fa52fd220c7ee2c6617ebc","579675a2c3b0f8c532a82ad9cbd5d384","9b44005377cec9487e5f0d900bc5db46",{"version":"22dcb64768a46f60b07af6ec5e7752bb","affectsGlobalScope":true,"impliedNodeFormat":1},"b59cb5a2a891b4a59040eecaa4e4fd92","c9053dbbe4fa2853f2d3f73b9a2fee81","4e458316a6083cbd2bba2fd29f674dd5",{"version":"3cccee1f2c106192d18ac4e08119f872","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"077a5affac1af2f5defdb142842fb031","affectsGlobalScope":true,"impliedNodeFormat":1},"6b26581aa2587701d570206a0db8c9ee","88a29e2aac8082c0910733950159e1ca","609d3ac6ba921e6e83c5da182c204fb8","0f80958d77cd6301b43c1d7904e3e4bc","3bdc645524ab0d2f6795d3a008833bd7","deb50b47eb75a5566532a763fa1324fa","0a463424e0a2a59373805ee224327d85","7e470eddc0bd0486dc2a8ab902de79b7","c8206d568b54e5ea06131963eecd576a","15878f4f50c2e562c0768eb735c2aed5",{"version":"98d7074a05f2d388bfaa708af5660466","affectsGlobalScope":true,"impliedNodeFormat":1},"dd404118e8bd70aff746f7d31e46270b","4b9ff1cc38cc2243605ecef78c80ef8b",{"version":"6b8649a280031d9e86955db721cfad87","affectsGlobalScope":true,"impliedNodeFormat":1},"4bc8f13c472858fb74f77388c0c5d885","eec349e50f6da0bc900cd9b243dadbc6","c72d2516d1e8910caca33c4dff75fcd4","f0231f36cb7117fbe9271ff19ef0f5f4",{"version":"acca246ee319503493a0a5f9d7db7fd8","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1aee62839c1ac0986904f19bdb93e3d8","affectsGlobalScope":true,"impliedNodeFormat":1},"a4a335f8e124cd5346b4579b47beec32","e9bc5b1de50e48fa9857b64091673883","9268959cff1006c82e6abbd73824db97",{"version":"7f738a67dc535e5476c63bf4ff0b9759","affectsGlobalScope":true,"impliedNodeFormat":1},"6b1f3649b0eabeaca20c778fcc5f270c","eb567c7b5824aab578f75bbccf9f4b05",{"version":"8df710e56bd27406fc117fb7433ae55c","affectsGlobalScope":true,"impliedNodeFormat":1},"c3dc85be36ae67b5371ca1e4270e7f46","d92ae047ecefd1ea6f15d92508c96cf7","13dffe6cbb50dd11b8ca76114e9b8975","912b0dbbb6bb4ad6fd6fe2cfa1fdf109","9aae89803f470f3f639dbfbb26d67eb5",{"version":"803b0e4e42d25332e9f22f1b5f31e50d","affectsGlobalScope":true,"impliedNodeFormat":1},"ca4dd245f2032f512d1330de2593acd9",{"version":"3585cc524c08b2eb40ab817052f89462","affectsGlobalScope":true,"impliedNodeFormat":1},"bb3aaf40646363c84e7f812662701116","af1e2149c50363a8e411f28cf33f26bd","f54c29ade8d0c2940399d6ce4c07f4d8","ed4ce0ea67836b63d1620265be339a88","25d3d41f8140ef5f43c8793a0e21a8e5","704e32e377e486f16b2694b56868448f","67fd4c2cdeac0ac2b2f81f5a4e5412a1","2ea95e525a73b274e90fcf3cc8007a3e",{"version":"77689727e0d7f721c301adf335d33c20","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ab6f5c9037273b86bca0524fa3e203fb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c7176d955002d7f1bf12f6f63b45843","affectsGlobalScope":true,"impliedNodeFormat":1},"75d8cc60a79ae5d8a9c9594b304a257e","88f4b91b3c8db819c38b9b146d3fde91","d43268f7a239fb3eacfdee00e48b953d","b6b079b1f78ec10c992182bad5ca395a","2f2991fcd85839574abe82038a21cc1a","6d84cddfb4b94eb6a020d1cba106eae4",{"version":"461a5f8e20bef2a3713a72a7e4916df1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b883f72bd7ab8c483d628ec63b4abd4a","affectsGlobalScope":true,"impliedNodeFormat":1},"b210cf73199ba01431d4c87407e1deea"],"fileIdsList":[[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228,230],[97,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,144,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[95,96,97,98,99,100,101,102,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,144,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,144,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,144,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,206,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,144,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,212,213,219,220,221,222,223,224,225,226,227,228],[97,144,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,207,208,209,210,211,212,213,219,220,221,222,223,224,225,226,227,228,229],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,213,219,220,221,222,223,224,225,226,227,228],[14,97,98,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,218,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,214,215,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,214,215,216,217,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,214,216,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,214,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,221,222,223,224,225,226,227,228],[97,110,113,116,117,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,113,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,113,117,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,107,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,111,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,109,110,113,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,107,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,109,113,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,104,105,106,108,112,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,113,121,129,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,105,111,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,113,138,139,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,105,108,113,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,104,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,107,108,109,111,112,113,114,115,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,113,131,134,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,113,121,122,123,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,111,113,122,124,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,112,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,105,107,113,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,113,117,122,124,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,117,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,111,113,116,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,105,109,113,121,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,113,131,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,124,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[97,107,113,138,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[90,91,92,97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[91,97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228],[90,91,92,93,97,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,203,204,205,207,208,209,210,212,213,219,220,221,222,223,224,225,226,227,228]],"options":{"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationMap":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"strict":true,"sourceMap":true,"target":7,"useDefineForClassFields":true,"allowSyntheticDefaultImports":true,"esModuleInterop":true},"referencedMap":[[231,1],[149,2],[150,3],[151,4],[97,5],[152,6],[153,7],[154,8],[95,9],[155,10],[156,11],[157,12],[158,13],[159,14],[160,15],[161,16],[162,17],[163,18],[164,19],[165,20],[98,9],[96,9],[166,21],[167,22],[168,23],[202,24],[169,25],[170,26],[171,27],[172,28],[173,29],[174,30],[175,31],[176,32],[177,33],[178,34],[179,35],[180,36],[181,37],[182,38],[183,39],[184,40],[186,41],[185,42],[187,43],[188,44],[189,45],[190,46],[191,47],[192,48],[193,49],[194,50],[195,51],[196,52],[197,53],[198,54],[199,55],[99,9],[100,9],[101,9],[102,9],[145,56],[146,9],[147,9],[148,9],[200,57],[201,58],[88,9],[89,9],[14,9],[15,9],[17,9],[16,9],[2,9],[18,9],[19,9],[20,9],[21,9],[22,9],[23,9],[24,9],[25,9],[3,9],[26,9],[27,9],[4,9],[28,9],[32,9],[29,9],[30,9],[31,9],[33,9],[34,9],[35,9],[5,9],[36,9],[37,9],[38,9],[39,9],[6,9],[43,9],[40,9],[41,9],[42,9],[44,9],[7,9],[45,9],[50,9],[51,9],[46,9],[47,9],[48,9],[49,9],[8,9],[55,9],[52,9],[53,9],[54,9],[56,9],[9,9],[57,9],[58,9],[59,9],[61,9],[60,9],[62,9],[63,9],[10,9],[64,9],[65,9],[66,9],[11,9],[67,9],[68,9],[69,9],[70,9],[71,9],[72,9],[12,9],[73,9],[74,9],[75,9],[76,9],[77,9],[1,9],[78,9],[79,9],[13,9],[80,9],[81,9],[82,9],[83,9],[84,9],[85,9],[86,9],[87,9],[103,9],[207,59],[229,9],[228,60],[222,61],[209,62],[208,63],[205,64],[210,65],[203,66],[211,9],[230,67],[212,68],[206,9],[221,69],[223,70],[204,71],[227,72],[225,73],[224,74],[226,75],[213,76],[219,77],[216,78],[218,79],[217,80],[215,81],[214,9],[220,82],[121,83],[133,84],[119,85],[134,9],[143,86],[110,87],[111,88],[109,9],[142,89],[137,90],[141,91],[113,92],[130,93],[112,94],[140,95],[107,96],[108,90],[114,84],[115,9],[120,91],[118,84],[105,97],[144,98],[135,99],[124,100],[123,84],[125,101],[128,102],[122,103],[126,104],[138,89],[116,105],[117,106],[129,107],[106,9],[132,108],[131,84],[127,109],[136,9],[104,9],[139,110],[93,111],[90,9],[92,112],[91,9],[94,113]],"latestChangedDtsFile":"./index.d.ts"}
|
package/package.json
CHANGED
package/src/GraphQlClient.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GraphQlClientError, GraphQlErrorType } from './GraphQlClientError.js'
|
|
2
|
-
import { GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions.js'
|
|
2
|
+
import { GraphQlClientBaseOptions, GraphQlClientOptions, GraphQlClientRequestOptions } from './GraphQlClientRequestOptions.js'
|
|
3
|
+
import { PrimaryReadWindow } from './PrimaryReadWindow.js'
|
|
3
4
|
|
|
4
5
|
export class GraphQlClient {
|
|
5
6
|
constructor(
|
|
@@ -48,6 +49,11 @@ ${query}`
|
|
|
48
49
|
} catch (e) {
|
|
49
50
|
const aborted = typeof e === 'object' && e !== null && (e as { name?: unknown }).name === 'AbortError'
|
|
50
51
|
throw createError(aborted ? 'aborted' : 'network error', undefined, e)
|
|
52
|
+
} finally {
|
|
53
|
+
// Start once the body has arrived, and even if reading it or a user hook failed: an earlier mutation field may have committed.
|
|
54
|
+
if (response !== null) {
|
|
55
|
+
this.resolvePrimaryReadWindow(options)?.captureResponse(response)
|
|
56
|
+
}
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
let data: any
|
|
@@ -86,13 +92,17 @@ ${query}`
|
|
|
86
92
|
|
|
87
93
|
protected async doExecute(
|
|
88
94
|
query: string,
|
|
89
|
-
|
|
95
|
+
options: GraphQlClientRequestOptions = {},
|
|
90
96
|
): Promise<Response> {
|
|
97
|
+
const { apiToken, signal, variables, headers } = options
|
|
91
98
|
const resolvedHeaders: Record<string, string> = {
|
|
92
99
|
'Content-Type': 'application/json',
|
|
93
100
|
...this.options.headers,
|
|
94
101
|
...headers,
|
|
95
102
|
}
|
|
103
|
+
if (!new Headers(resolvedHeaders).has('X-Contember-Force-Primary')) {
|
|
104
|
+
Object.assign(resolvedHeaders, this.resolvePrimaryReadWindow(options)?.requestHeaders())
|
|
105
|
+
}
|
|
96
106
|
const resolvedToken = apiToken ?? this.options.apiToken
|
|
97
107
|
|
|
98
108
|
if (resolvedToken !== undefined) {
|
|
@@ -106,6 +116,10 @@ ${query}`
|
|
|
106
116
|
body: JSON.stringify({ query, variables }),
|
|
107
117
|
})
|
|
108
118
|
}
|
|
119
|
+
|
|
120
|
+
private resolvePrimaryReadWindow(options: GraphQlClientBaseOptions): PrimaryReadWindow | undefined {
|
|
121
|
+
return (options.primaryReadWindow ?? this.options.primaryReadWindow) || undefined
|
|
122
|
+
}
|
|
109
123
|
}
|
|
110
124
|
|
|
111
125
|
const defaultFetcher = async (url: string, options: RequestInit) => fetch(url, options)
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { PrimaryReadWindow } from './PrimaryReadWindow.js'
|
|
2
|
+
|
|
1
3
|
export interface GraphQlClientBaseOptions {
|
|
2
4
|
readonly apiToken?: string
|
|
3
5
|
readonly headers?: Record<string, string>
|
|
4
6
|
readonly onBeforeRequest?: (query: { query: string; variables: GraphQlClientVariables }) => void
|
|
5
7
|
readonly onResponse?: (response: Response) => void
|
|
6
8
|
readonly onData?: (json: unknown) => void
|
|
9
|
+
/** Temporarily route reads to the primary after a Content API mutation. False disables the client-wide window for this request. */
|
|
10
|
+
readonly primaryReadWindow?: PrimaryReadWindow | false
|
|
7
11
|
}
|
|
8
12
|
|
|
9
13
|
export interface GraphQlClientOptions extends GraphQlClientBaseOptions {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface PrimaryReadWindowOptions {
|
|
2
|
+
/** How long to read from the primary after a mutation response. Default: 1000 ms. Zero disables the window. */
|
|
3
|
+
readonly durationMs?: number
|
|
4
|
+
readonly now?: () => number
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/** Share one window across clients for the same Content API endpoint and identity. */
|
|
8
|
+
export class PrimaryReadWindow {
|
|
9
|
+
private readonly durationMs: number
|
|
10
|
+
private readonly now: () => number
|
|
11
|
+
private expiresAt = 0
|
|
12
|
+
|
|
13
|
+
// A monotonic clock, so a system clock change cannot stretch or cut the window.
|
|
14
|
+
constructor({ durationMs = 1000, now = () => performance.now() }: PrimaryReadWindowOptions = {}) {
|
|
15
|
+
if (!Number.isFinite(durationMs) || durationMs < 0) {
|
|
16
|
+
throw new Error('Primary read window duration must be a finite non-negative number')
|
|
17
|
+
}
|
|
18
|
+
this.durationMs = durationMs
|
|
19
|
+
this.now = now
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
requestHeaders(): Record<string, string> {
|
|
23
|
+
return this.now() < this.expiresAt ? { 'X-Contember-Force-Primary': '1' } : {}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
captureResponse(response: Response): void {
|
|
27
|
+
if (response.headers.get('X-Contember-Mutation') === '1') {
|
|
28
|
+
this.expiresAt = this.now() + this.durationMs
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { describe, expect, test } from 'bun:test'
|
|
2
|
+
import { GraphQlClient, GraphQlClientOptions, PrimaryReadWindow } from '../../../src/index.js'
|
|
3
|
+
|
|
4
|
+
const mutationResponse = (body = { data: { ok: true } }): Response => new Response(JSON.stringify(body), { headers: { 'X-Contember-Mutation': '1' } })
|
|
5
|
+
|
|
6
|
+
describe('primary read window', () => {
|
|
7
|
+
test('starts on response receipt, expires exactly at the deadline, and extends on another mutation', () => {
|
|
8
|
+
let now = 100
|
|
9
|
+
const window = new PrimaryReadWindow({ now: () => now })
|
|
10
|
+
expect(window.requestHeaders()).toEqual({})
|
|
11
|
+
window.captureResponse(mutationResponse())
|
|
12
|
+
now = 1099
|
|
13
|
+
expect(window.requestHeaders()).toEqual({ 'X-Contember-Force-Primary': '1' })
|
|
14
|
+
window.captureResponse(mutationResponse())
|
|
15
|
+
now = 1100
|
|
16
|
+
expect(window.requestHeaders()).toEqual({ 'X-Contember-Force-Primary': '1' })
|
|
17
|
+
now = 2099
|
|
18
|
+
expect(window.requestHeaders()).toEqual({})
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
test('query responses do not extend the window', () => {
|
|
22
|
+
let now = 0
|
|
23
|
+
const window = new PrimaryReadWindow({ durationMs: 200, now: () => now })
|
|
24
|
+
window.captureResponse(mutationResponse())
|
|
25
|
+
now = 199
|
|
26
|
+
window.captureResponse(new Response('{}'))
|
|
27
|
+
now = 200
|
|
28
|
+
expect(window.requestHeaders()).toEqual({})
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
test('zero disables the window and invalid durations are rejected', () => {
|
|
32
|
+
const window = new PrimaryReadWindow({ durationMs: 0 })
|
|
33
|
+
window.captureResponse(mutationResponse())
|
|
34
|
+
expect(window.requestHeaders()).toEqual({})
|
|
35
|
+
for (const durationMs of [-1, NaN, Infinity]) {
|
|
36
|
+
expect(() => new PrimaryReadWindow({ durationMs })).toThrow('finite non-negative')
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
describe('GraphQlClient primary reads', () => {
|
|
42
|
+
const setup = (response: () => Response = mutationResponse) => {
|
|
43
|
+
const headers: Headers[] = []
|
|
44
|
+
const window = new PrimaryReadWindow()
|
|
45
|
+
const options: GraphQlClientOptions = {
|
|
46
|
+
url: 'https://api.example.com/content/test/live',
|
|
47
|
+
primaryReadWindow: window,
|
|
48
|
+
fetcher: async (_url, init) => {
|
|
49
|
+
headers.push(new Headers(init?.headers))
|
|
50
|
+
return response()
|
|
51
|
+
},
|
|
52
|
+
}
|
|
53
|
+
return { client: new GraphQlClient(options), headers, window, options }
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
test('shares the window across clients and withOptions; explicit headers and per-request opt-out win', async () => {
|
|
57
|
+
const { client, headers, options } = setup()
|
|
58
|
+
await client.execute('mutation { createArticle { ok } }')
|
|
59
|
+
await new GraphQlClient(options).execute('{ listArticle { id } }')
|
|
60
|
+
await client.withOptions({ apiToken: 'same-identity' }).execute('{ listArticle { id } }')
|
|
61
|
+
await client.execute('{ listArticle { id } }', { primaryReadWindow: false })
|
|
62
|
+
await client.execute('{ listArticle { id } }', { headers: { 'X-Contember-Force-Primary': '0' } })
|
|
63
|
+
await client.execute('{ listArticle { id } }', { headers: { 'x-contember-force-primary': '0' } })
|
|
64
|
+
expect(headers.map(it => it.get('X-Contember-Force-Primary'))).toEqual([null, '1', '1', null, '0', '0'])
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
test('captures mutation responses with GraphQL errors or a failing user callback', async () => {
|
|
68
|
+
const { client, window } = setup(() =>
|
|
69
|
+
new Response(JSON.stringify({ data: { first: { ok: true } }, errors: [{ message: 'second failed' }] }), {
|
|
70
|
+
headers: { 'X-Contember-Mutation': '1' },
|
|
71
|
+
})
|
|
72
|
+
)
|
|
73
|
+
await expect(client.execute('mutation { first { ok } second { ok } }')).rejects.toMatchObject({ type: 'response errors' })
|
|
74
|
+
expect(window.requestHeaders()).toEqual({ 'X-Contember-Force-Primary': '1' })
|
|
75
|
+
|
|
76
|
+
const other = new PrimaryReadWindow()
|
|
77
|
+
await expect(client.execute('mutation { first { ok } }', {
|
|
78
|
+
primaryReadWindow: other,
|
|
79
|
+
onResponse: () => {
|
|
80
|
+
throw new Error('hook failed')
|
|
81
|
+
},
|
|
82
|
+
})).rejects.toMatchObject({ type: 'network error' })
|
|
83
|
+
expect(other.requestHeaders()).toEqual({ 'X-Contember-Force-Primary': '1' })
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
test('a failed body read still opens the window; a failed request does not', async () => {
|
|
87
|
+
const brokenBody = new ReadableStream<Uint8Array>({
|
|
88
|
+
pull: controller => controller.error(new Error('connection reset')),
|
|
89
|
+
}, { highWaterMark: 0 })
|
|
90
|
+
const { client, window } = setup(() => new Response(brokenBody, { headers: { 'X-Contember-Mutation': '1' } }))
|
|
91
|
+
await expect(client.execute('mutation { touch }')).rejects.toMatchObject({ type: 'network error' })
|
|
92
|
+
expect(window.requestHeaders()).toEqual({ 'X-Contember-Force-Primary': '1' })
|
|
93
|
+
|
|
94
|
+
const rejectedWindow = new PrimaryReadWindow()
|
|
95
|
+
const rejecting = new GraphQlClient({
|
|
96
|
+
url: 'https://api.example.com/content/test/live',
|
|
97
|
+
primaryReadWindow: rejectedWindow,
|
|
98
|
+
fetcher: () => Promise.reject(new TypeError('Failed to fetch')),
|
|
99
|
+
})
|
|
100
|
+
await expect(rejecting.execute('mutation { touch }')).rejects.toMatchObject({ type: 'network error' })
|
|
101
|
+
expect(rejectedWindow.requestHeaders()).toEqual({})
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
test('the window starts after the response body has been read', async () => {
|
|
105
|
+
let now = 0
|
|
106
|
+
const window = new PrimaryReadWindow({ now: () => now })
|
|
107
|
+
const body = new ReadableStream<Uint8Array>({
|
|
108
|
+
pull: controller => {
|
|
109
|
+
now = 500
|
|
110
|
+
controller.enqueue(new TextEncoder().encode('{"data":{}}'))
|
|
111
|
+
controller.close()
|
|
112
|
+
},
|
|
113
|
+
}, { highWaterMark: 0 })
|
|
114
|
+
const client = new GraphQlClient({
|
|
115
|
+
url: 'https://api.example.com/content/test/live',
|
|
116
|
+
primaryReadWindow: window,
|
|
117
|
+
fetcher: async () => new Response(body, { headers: { 'X-Contember-Mutation': '1' } }),
|
|
118
|
+
})
|
|
119
|
+
await client.execute('mutation { touch }')
|
|
120
|
+
now = 1499
|
|
121
|
+
expect(window.requestHeaders()).toEqual({ 'X-Contember-Force-Primary': '1' })
|
|
122
|
+
now = 1500
|
|
123
|
+
expect(window.requestHeaders()).toEqual({})
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
test('unmarked responses do not start a window, regardless of query text', async () => {
|
|
127
|
+
const { client, window } = setup(() => new Response('{"data":{}}'))
|
|
128
|
+
await client.execute('query { mutation }')
|
|
129
|
+
expect(window.requestHeaders()).toEqual({})
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
test('a request can replace the client-wide window or opt out of capturing', async () => {
|
|
133
|
+
const { client, window } = setup()
|
|
134
|
+
const other = new PrimaryReadWindow()
|
|
135
|
+
await client.execute('mutation { touch }', { primaryReadWindow: other })
|
|
136
|
+
expect(other.requestHeaders()).toEqual({ 'X-Contember-Force-Primary': '1' })
|
|
137
|
+
expect(window.requestHeaders()).toEqual({})
|
|
138
|
+
await client.execute('mutation { touch }', { primaryReadWindow: false })
|
|
139
|
+
expect(window.requestHeaders()).toEqual({})
|
|
140
|
+
})
|
|
141
|
+
})
|