@toa.io/extensions.origins 0.20.0-dev.37 → 0.20.0-dev.38

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.
Files changed (58) hide show
  1. package/package.json +6 -6
  2. package/source/Factory.ts +9 -1
  3. package/source/annotation.ts +1 -3
  4. package/transpiled/Factory.d.ts +0 -17
  5. package/transpiled/Factory.js +0 -57
  6. package/transpiled/Factory.js.map +0 -1
  7. package/transpiled/annotation.d.ts +0 -10
  8. package/transpiled/annotation.js +0 -92
  9. package/transpiled/annotation.js.map +0 -1
  10. package/transpiled/constants.d.ts +0 -1
  11. package/transpiled/constants.js +0 -3
  12. package/transpiled/constants.js.map +0 -1
  13. package/transpiled/env.d.ts +0 -5
  14. package/transpiled/env.js +0 -40
  15. package/transpiled/env.js.map +0 -1
  16. package/transpiled/extension.d.ts +0 -10
  17. package/transpiled/extension.js +0 -49
  18. package/transpiled/extension.js.map +0 -1
  19. package/transpiled/index.d.ts +0 -2
  20. package/transpiled/index.js +0 -9
  21. package/transpiled/index.js.map +0 -1
  22. package/transpiled/manifest.d.ts +0 -2
  23. package/transpiled/manifest.js +0 -36
  24. package/transpiled/manifest.js.map +0 -1
  25. package/transpiled/protocols/amqp/aspect.d.ts +0 -9
  26. package/transpiled/protocols/amqp/aspect.js +0 -53
  27. package/transpiled/protocols/amqp/aspect.js.map +0 -1
  28. package/transpiled/protocols/amqp/deployment.d.ts +0 -5
  29. package/transpiled/protocols/amqp/deployment.js +0 -55
  30. package/transpiled/protocols/amqp/deployment.js.map +0 -1
  31. package/transpiled/protocols/amqp/id.d.ts +0 -1
  32. package/transpiled/protocols/amqp/id.js +0 -3
  33. package/transpiled/protocols/amqp/id.js.map +0 -1
  34. package/transpiled/protocols/amqp/index.d.ts +0 -5
  35. package/transpiled/protocols/amqp/index.js +0 -10
  36. package/transpiled/protocols/amqp/index.js.map +0 -1
  37. package/transpiled/protocols/amqp/protocols.d.ts +0 -2
  38. package/transpiled/protocols/amqp/protocols.js +0 -3
  39. package/transpiled/protocols/amqp/protocols.js.map +0 -1
  40. package/transpiled/protocols/http/.aspect/permissions.d.ts +0 -6
  41. package/transpiled/protocols/http/.aspect/permissions.js +0 -52
  42. package/transpiled/protocols/http/.aspect/permissions.js.map +0 -1
  43. package/transpiled/protocols/http/aspect.d.ts +0 -10
  44. package/transpiled/protocols/http/aspect.js +0 -88
  45. package/transpiled/protocols/http/aspect.js.map +0 -1
  46. package/transpiled/protocols/http/id.d.ts +0 -1
  47. package/transpiled/protocols/http/id.js +0 -3
  48. package/transpiled/protocols/http/id.js.map +0 -1
  49. package/transpiled/protocols/http/index.d.ts +0 -4
  50. package/transpiled/protocols/http/index.js +0 -8
  51. package/transpiled/protocols/http/index.js.map +0 -1
  52. package/transpiled/protocols/http/protocols.d.ts +0 -2
  53. package/transpiled/protocols/http/protocols.js +0 -3
  54. package/transpiled/protocols/http/protocols.js.map +0 -1
  55. package/transpiled/protocols/index.d.ts +0 -9
  56. package/transpiled/protocols/index.js +0 -10
  57. package/transpiled/protocols/index.js.map +0 -1
  58. package/transpiled/tsconfig.tsbuildinfo +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/extensions.origins",
3
- "version": "0.20.0-dev.37",
3
+ "version": "0.20.0-dev.38",
4
4
  "description": "Toa Origins",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -17,10 +17,10 @@
17
17
  "main": "transpiled/index.js",
18
18
  "types": "transpiled/index.d.ts",
19
19
  "dependencies": {
20
- "@toa.io/core": "0.20.0-dev.37",
21
- "@toa.io/generic": "0.20.0-dev.37",
22
- "@toa.io/pointer": "0.20.0-dev.37",
23
- "@toa.io/schemas": "0.20.0-dev.37",
20
+ "@toa.io/core": "0.20.0-dev.38",
21
+ "@toa.io/generic": "0.20.0-dev.38",
22
+ "@toa.io/pointer": "0.20.0-dev.38",
23
+ "@toa.io/schemas": "0.20.0-dev.38",
24
24
  "comq": "0.8.0",
25
25
  "msgpackr": "1.9.5",
26
26
  "node-fetch": "2.6.7"
@@ -36,5 +36,5 @@
36
36
  "preset": "ts-jest",
37
37
  "testEnvironment": "node"
38
38
  },
39
- "gitHead": "5bf0ffb520c420903acb7afd9b1e56257e34e354"
39
+ "gitHead": "12649c116b49db942e7caf1286c51625af3ad625"
40
40
  }
package/source/Factory.ts CHANGED
@@ -23,6 +23,7 @@ export class Factory implements extensions.Factory {
23
23
  return memo(async (): Promise<Configuration> => {
24
24
  const uris = await this.getURIs(locator, manifest)
25
25
  const allProperties = this.getProperties(locator)
26
+
26
27
  const origins = this.filterOrigins(uris, protocol.protocols)
27
28
  const properties = allProperties['.' + protocol.id as keyof Properties] ?? {}
28
29
 
@@ -36,7 +37,14 @@ export class Factory implements extensions.Factory {
36
37
  if (manifest === null) return map
37
38
 
38
39
  for (const [name, value] of Object.entries(manifest))
39
- map[name] = value !== null ? [value] : await this.readOrigin(locator, name)
40
+ try {
41
+ map[name] = await this.readOrigin(locator, name)
42
+ } catch {
43
+ // eslint-disable-next-line max-depth
44
+ if (value === null) throw new Error(`Origin value ${name} is not defined`)
45
+
46
+ map[name] = [value]
47
+ }
40
48
 
41
49
  return map
42
50
  }
@@ -32,14 +32,12 @@ function mergeDefaults (annotation: Annotation, instances: Instance[]): void {
32
32
  }
33
33
 
34
34
  function mergeInstance (origins: Origins, instance: Instance): Component {
35
- const id: string = instance.locator.id
36
-
37
35
  if (instance.manifest === null) return origins
38
36
 
39
37
  for (const [origin, value] of Object.entries(instance.manifest))
40
38
  if (origins[origin] === undefined)
41
39
  if (value === null)
42
- throw new Error(`Origin '${origin}' is not defined for '${id}'`)
40
+ throw new Error(`Origin '${origin}' is not defined for '${instance.locator.id}'`)
43
41
  else origins[origin] = value
44
42
 
45
43
  return origins
@@ -1,17 +0,0 @@
1
- import { type URIMap } from '@toa.io/pointer';
2
- import type { Locator, extensions } from '@toa.io/core';
3
- import type { Manifest } from './manifest';
4
- export declare class Factory implements extensions.Factory {
5
- aspect(locator: Locator, manifest: Manifest): extensions.Aspect[];
6
- private createAspect;
7
- private resolver;
8
- private getURIs;
9
- private filterOrigins;
10
- private readOrigin;
11
- private getProperties;
12
- }
13
- export interface Configuration {
14
- origins: URIMap;
15
- properties: Record<string, boolean>;
16
- }
17
- export type Resolver = () => Promise<Configuration>;
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Factory = void 0;
4
- const msgpackr_1 = require("msgpackr");
5
- const pointer_1 = require("@toa.io/pointer");
6
- const generic_1 = require("@toa.io/generic");
7
- const protocols_1 = require("./protocols");
8
- const extension_1 = require("./extension");
9
- class Factory {
10
- aspect(locator, manifest) {
11
- return protocols_1.protocols.map((protocol) => this.createAspect(locator, manifest, protocol));
12
- }
13
- createAspect(locator, manifest, protocol) {
14
- const resolver = this.resolver(locator, manifest, protocol);
15
- return protocol.create(resolver);
16
- }
17
- resolver(locator, manifest, protocol) {
18
- return (0, generic_1.memo)(async () => {
19
- const uris = await this.getURIs(locator, manifest);
20
- const allProperties = this.getProperties(locator);
21
- const origins = this.filterOrigins(uris, protocol.protocols);
22
- const properties = allProperties['.' + protocol.id] ?? {};
23
- return { origins, properties };
24
- });
25
- }
26
- async getURIs(locator, manifest) {
27
- const map = {};
28
- if (manifest === null)
29
- return map;
30
- for (const [name, value] of Object.entries(manifest))
31
- map[name] = value !== null ? [value] : await this.readOrigin(locator, name);
32
- return map;
33
- }
34
- filterOrigins(uris, protocols) {
35
- const filtered = {};
36
- for (const [name, references] of Object.entries(uris)) {
37
- const url = new URL(references[0]);
38
- if (protocols.includes(url.protocol))
39
- filtered[name] = references;
40
- }
41
- return filtered;
42
- }
43
- async readOrigin(locator, name) {
44
- const id = extension_1.ID_PREFIX + locator.label;
45
- return await (0, pointer_1.resolve)(id, name);
46
- }
47
- getProperties(locator) {
48
- const variable = extension_1.ENV_PREFIX + locator.uppercase + extension_1.PROPERTIES_SUFFIX;
49
- const value = process.env[variable];
50
- if (value === undefined)
51
- return {};
52
- const buffer = Buffer.from(value, 'base64');
53
- return (0, msgpackr_1.decode)(buffer);
54
- }
55
- }
56
- exports.Factory = Factory;
57
- //# sourceMappingURL=Factory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Factory.js","sourceRoot":"","sources":["../source/Factory.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AACjC,6CAAsD;AACtD,6CAAsC;AACtC,2CAAsD;AACtD,2CAAsE;AAKtE,MAAa,OAAO;IACX,MAAM,CAAE,OAAgB,EAAE,QAAkB;QACjD,OAAO,qBAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAA;IACpF,CAAC;IAEO,YAAY,CAAE,OAAgB,EAAE,QAAkB,EAAE,QAAkB;QAE5E,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAA;QAE3D,OAAO,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;IAClC,CAAC;IAEO,QAAQ,CAAE,OAAgB,EAAE,QAAkB,EAAE,QAAkB;QACxE,OAAO,IAAA,cAAI,EAAC,KAAK,IAA4B,EAAE;YAC7C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;YAClD,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;YACjD,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;YAC5D,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,GAAG,QAAQ,CAAC,EAAsB,CAAC,IAAI,EAAE,CAAA;YAE7E,OAAO,EAAE,OAAO,EAA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C,GAAG,CAAC,QAAQ,CAAC,CAAA;QAEnC,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,EAAE,CAAA;QAElC,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;QAE3C,OAAO,IAAA,iBAAM,EAAC,MAAM,CAAC,CAAA;IACvB,CAAC;CACF;AA/DD,0BA+DC"}
@@ -1,10 +0,0 @@
1
- import type { Instance } from './extension';
2
- export declare function normalize(instances: Instance[], annotation: Annotation): void;
3
- export declare function split(component: Component): {
4
- origins: Origins;
5
- properties: Properties;
6
- };
7
- export type Component = Origins | Properties;
8
- export type Annotation = Record<string, Component>;
9
- export type Properties = Partial<Record<'.http', Record<string, boolean>>>;
10
- export type Origins = Record<string, string | string[]>;
@@ -1,92 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.split = exports.normalize = void 0;
27
- const node_path_1 = require("node:path");
28
- const schemas = __importStar(require("@toa.io/schemas"));
29
- const protocols_1 = require("./protocols");
30
- function normalize(instances, annotation) {
31
- schema.validate(annotation);
32
- mergeDefaults(annotation, instances);
33
- checkProtocols(annotation);
34
- }
35
- exports.normalize = normalize;
36
- function split(component) {
37
- const origins = {};
38
- const properties = {};
39
- for (const [key, value] of Object.entries(component))
40
- if (key[0] === '.')
41
- properties[key] = value;
42
- else
43
- origins[key] = value;
44
- return { origins, properties };
45
- }
46
- exports.split = split;
47
- function mergeDefaults(annotation, instances) {
48
- for (const instance of instances) {
49
- const component = annotation[instance.locator.id] ?? {};
50
- annotation[instance.locator.id] = mergeInstance(component, instance);
51
- }
52
- }
53
- function mergeInstance(origins, instance) {
54
- const id = instance.locator.id;
55
- if (instance.manifest === null)
56
- return origins;
57
- for (const [origin, value] of Object.entries(instance.manifest))
58
- if (origins[origin] === undefined)
59
- if (value === null)
60
- throw new Error(`Origin '${origin}' is not defined for '${id}'`);
61
- else
62
- origins[origin] = value;
63
- return origins;
64
- }
65
- function checkProtocols(annotation) {
66
- for (const component of Object.values(annotation)) {
67
- const { origins } = split(component);
68
- const urlSets = Object.values(origins);
69
- for (const urls of urlSets)
70
- checkURLs(Array.isArray(urls) ? urls : [urls]);
71
- }
72
- }
73
- function checkURLs(urls) {
74
- let id = null;
75
- for (const url of urls) {
76
- const protocol = resolveProtocol(url);
77
- if (id === null)
78
- id = protocol.id;
79
- else if (id !== protocol.id)
80
- throw new Error(`Origin has inconsistent protocols: ${id}, ${protocol.id}`);
81
- }
82
- }
83
- function resolveProtocol(reference) {
84
- const url = new URL(reference);
85
- for (const protocol of protocols_1.protocols)
86
- if (protocol.protocols.includes(url.protocol))
87
- return protocol;
88
- throw new Error(`Protocol '${url.protocol}' is not supported.`);
89
- }
90
- const path = (0, node_path_1.resolve)(__dirname, '../schemas/annotation.cos.yaml');
91
- const schema = schemas.schema(path);
92
- //# sourceMappingURL=annotation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotation.js","sourceRoot":"","sources":["../source/ann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,QAAQ,IAAI,qBAAS;QAC9B,IAAI,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC;YAAE,OAAO,QAAQ,CAAA;IAEhE,MAAM,IAAI,KAAK,CAAC,aAAa,GAAG,CAAC,QAAQ,qBAAqB,CAAC,CAAA;AACjE,CAAC;AAED,MAAM,IAAI,GAAG,IAAA,mBAAO,EAAC,SAAS,EAAE,gCAAgC,CAAC,CAAA;AACjE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- export const PREFIX: "TOA_ORIGINS_";
@@ -1,3 +0,0 @@
1
- 'use strict';
2
- exports.PREFIX = 'TOA_ORIGINS_';
3
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../source/constants.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,CAAC,MAAM,GAAG,cAAc,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * @param {toa.core.Locator} locator
3
- * @param {toa.origins.Manifest} manifest
4
- */
5
- export function apply(locator: toa.core.Locator, manifest: toa.origins.Manifest): void;
package/transpiled/env.js DELETED
@@ -1,40 +0,0 @@
1
- 'use strict';
2
- const { PREFIX } = require('./constants');
3
- const { overwrite, remap, letters: { up } } = require('@toa.io/generic');
4
- /**
5
- * @param {toa.core.Locator} locator
6
- * @param {toa.origins.Manifest} manifest
7
- */
8
- function apply(locator, manifest) {
9
- const variable = PREFIX + locator.uppercase;
10
- const envValue = readEnv(variable);
11
- overwrite(manifest, envValue);
12
- addCredentials(manifest, variable);
13
- }
14
- function readEnv(variable) {
15
- if (!(variable in process.env))
16
- return;
17
- const base64 = process.env[variable];
18
- const json = atob(base64);
19
- return JSON.parse(json);
20
- }
21
- /**
22
- * @param {toa.origins.Manifest} manifest
23
- * @param {string} variable
24
- */
25
- function addCredentials(manifest, variable) {
26
- const prefix = variable + '_';
27
- remap(manifest, (reference, origin) => {
28
- const originPrefix = prefix + up(origin);
29
- const username = process.env[originPrefix + '_USERNAME'];
30
- const password = process.env[originPrefix + '_PASSWORD'];
31
- if (username === undefined && password === undefined)
32
- return;
33
- const url = new URL(reference);
34
- url.username = username;
35
- url.password = password;
36
- manifest[origin] = url.href;
37
- });
38
- }
39
- exports.apply = apply;
40
- //# sourceMappingURL=env.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../source/env.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;AACzC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;AAExE;;;GAGG;AACH,SAAS,KAAK,CAAE,OAAO,EAAE,QAAQ;IAC/B,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC,SAAS,CAAA;IAC3C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAElC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC7B,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;AACpC,CAAC;AAED,SAAS,OAAO,CAAE,QAAQ;IACxB,IAAI,CAAC,CAAC,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC;QAAE,OAAM;IAEtC,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IACpC,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAA;IAEzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC;AAED;;;GAGG;AACH,SAAS,cAAc,CAAE,QAAQ,EAAE,QAAQ;IACzC,MAAM,MAAM,GAAG,QAAQ,GAAG,GAAG,CAAA;IAE7B,KAAK,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE;QACpC,MAAM,YAAY,GAAG,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,CAAA;QACxC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,WAAW,CAAC,CAAA;QACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,WAAW,CAAC,CAAA;QAExD,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAM;QAE5D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAA;QAE9B,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACvB,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAA;QAEvB,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,CAAA;IAC7B,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,OAAO,CAAC,KAAK,GAAG,KAAK,CAAA"}
@@ -1,10 +0,0 @@
1
- import { type Annotation } from './annotation';
2
- import { type Manifest } from './manifest';
3
- import type { Dependency } from '@toa.io/operations';
4
- import type { context } from '@toa.io/norm';
5
- export declare function deployment(instances: Instance[], annotation?: Annotation): Dependency;
6
- export declare function manifest(manifest: Manifest): Manifest;
7
- export declare const ID_PREFIX = "origins-";
8
- export declare const ENV_PREFIX = "TOA_ORIGINS_";
9
- export declare const PROPERTIES_SUFFIX = "__PROPERTIES";
10
- export type Instance = context.Dependency<Manifest>;
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PROPERTIES_SUFFIX = exports.ENV_PREFIX = exports.ID_PREFIX = exports.manifest = exports.deployment = void 0;
4
- const msgpackr_1 = require("msgpackr");
5
- const pointer_1 = require("@toa.io/pointer");
6
- const generic_1 = require("@toa.io/generic");
7
- const annotation_1 = require("./annotation");
8
- const manifest_1 = require("./manifest");
9
- function deployment(instances, annotation = {}) {
10
- (0, annotation_1.normalize)(instances, annotation);
11
- const variables = {};
12
- for (const instance of instances) {
13
- const component = annotation[instance.locator.id];
14
- const { origins, properties } = (0, annotation_1.split)(component);
15
- const instanceVariables = createInstanceVariables(instance, origins);
16
- const propertiesVariable = createPropertiesVariable(instance.locator, properties);
17
- (0, generic_1.merge)(variables, instanceVariables);
18
- (0, generic_1.merge)(variables, propertiesVariable);
19
- }
20
- return { variables };
21
- }
22
- exports.deployment = deployment;
23
- function manifest(manifest) {
24
- (0, manifest_1.validate)(manifest);
25
- return manifest;
26
- }
27
- exports.manifest = manifest;
28
- function createInstanceVariables(instance, origins) {
29
- if (instance.manifest === null)
30
- return {};
31
- const label = instance.locator.label;
32
- const id = exports.ID_PREFIX + label;
33
- const selectors = Object.keys(instance.manifest);
34
- const request = { group: label, selectors };
35
- return (0, pointer_1.createVariables)(id, origins, [request]);
36
- }
37
- function createPropertiesVariable(locator, properties) {
38
- const name = exports.ENV_PREFIX + locator.uppercase + exports.PROPERTIES_SUFFIX;
39
- const value = (0, msgpackr_1.encode)(properties).toString('base64');
40
- return {
41
- [locator.label]: [
42
- { name, value }
43
- ]
44
- };
45
- }
46
- exports.ID_PREFIX = 'origins-';
47
- exports.ENV_PREFIX = 'TOA_ORIGINS_';
48
- exports.PROPERTIES_SUFFIX = '__PROPERTIES';
49
- //# sourceMappingURL=extension.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extension.js","sourceRoot":"","sources":["../source/extension.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AACjC,6CAA+D;AAC/D,6CAAuC;AACvC,6CAA+F;AAC/F,yCAAoD;AAKpD,SAAgB,UAAU,CAAE,SAAqB,EAAE,aAAyB,EAAE;IAC5E,IAAA,sBAAS,EAAC,SAAS,EAAE,UAAU,CAAC,CAAA;IAEhC,MAAM,SAAS,GAAc,EAAE,CAAA;IAE/B,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;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AA;IAC/D,MAAM,KAAK,GAAG,IAAA,iBAAM,EAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;IAEnD,OAAO;QACL,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACf,EAAE,IAAI,EAAE,KAAK,EAAE;SAChB;KACF,CAAA;AACH,CAAC;AAEY,QAAA,SAAS,GAAG,UAAU,CAAA;AACtB,QAAA,UAAU,GAAG,cAAc,CAAA;AAC3B,QAAA,iBAAiB,GAAG,cAAc,CAAA"}
@@ -1,2 +0,0 @@
1
- export { deployment, manifest } from './extension';
2
- export { Factory } from './Factory';
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Factory = exports.manifest = exports.deployment = void 0;
4
- var extension_1 = require("./extension");
5
- Object.defineProperty(exports, "deployment", { enumerable: true, get: function () { return extension_1.deployment; } });
6
- Object.defineProperty(exports, "manifest", { enumerable: true, get: function () { return extension_1.manifest; } });
7
- var Factory_1 = require("./Factory");
8
- Object.defineProperty(exports, "Factory", { enumerable: true, get: function () { return Factory_1.Factory; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;AAAA,yCAAkD;AAAzC,uGAAA,UAAU,OAAA;AAAE,qGAAA,QAAQ,OAAA;AAC7B,qCAAmC;AAA1B,kGAAA,OAAO,OAAA"}
@@ -1,2 +0,0 @@
1
- export declare function validate(manifest: Manifest): void;
2
- export type Manifest = Record<string, string | null> | null;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.validate = void 0;
27
- const node_path_1 = require("node:path");
28
- const schemas = __importStar(require("@toa.io/schemas"));
29
- function validate(manifest) {
30
- if (manifest !== null)
31
- schema.validate(manifest);
32
- }
33
- exports.validate = validate;
34
- const path = (0, node_path_1.resolve)(__dirname, '../schemas/manifest.cos.yaml');
35
- const schema = schemas.schema(path);
36
- //# sourceMappingURL=manifest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../source/manifest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAmC;AACnC,yDAA0C;AAE1C,SAAgB,QAAQ,CAAE,QAAkB;IAC1C,IAAI,QAAQ,KAAK,IAAI;QAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAClD,CAAC;AAFD,4BAEC;AAED,MAAM,IAAI,GAAG,IAAA,mBAAO,EAAC,SAAS,EAAE,8BAA8B,CAAC,CAAA;AAC/D,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA"}
@@ -1,9 +0,0 @@
1
- export function create(resolve: any): Aspect;
2
- declare class Aspect extends Connector {
3
- constructor(resolve: any);
4
- name: "amqp";
5
- invoke(origin: any, method: any, ...args: any[]): Promise<any>;
6
- #private;
7
- }
8
- import { Connector } from "@toa.io/core";
9
- export {};
@@ -1,53 +0,0 @@
1
- 'use strict';
2
- const { assert } = require('comq');
3
- const { Connector } = require('@toa.io/core');
4
- const protocol = require('./index');
5
- class Aspect extends Connector {
6
- name = protocol.id;
7
- #resolve;
8
- /** @type {Record<string, Partial<comq.IO>>} */
9
- #origins = {};
10
- constructor(resolve) {
11
- super();
12
- this.#resolve = resolve;
13
- }
14
- async open() {
15
- const cfg = await this.#resolve();
16
- const promises = Object.entries(cfg.origins).map(this.#open);
17
- await Promise.all(promises);
18
- }
19
- async close() {
20
- const promises = Object.values(this.#origins).map(this.#close);
21
- await Promise.all(promises);
22
- }
23
- async invoke(origin, method, ...args) {
24
- if (this.#origins[origin]?.[method] === undefined) {
25
- throw new Error(`Origin "${origin}" or method "${method}" is undefined`);
26
- }
27
- return this.#origins[origin][method](...args);
28
- }
29
- #open = async ([origin, references]) => {
30
- const io = await assert(...references);
31
- this.#origins[origin] = restrict(io);
32
- };
33
- #close = async (io) => {
34
- await io.close();
35
- };
36
- }
37
- /**
38
- * @param {comq.IO} io
39
- * @return {Partial<comq.IO>}
40
- */
41
- function restrict(io) {
42
- // noinspection JSUnresolvedReference
43
- return {
44
- request: (...args) => io.request(...args),
45
- emit: (...args) => io.emit(...args),
46
- close: () => io.close()
47
- };
48
- }
49
- function create(resolve) {
50
- return new Aspect(resolve);
51
- }
52
- exports.create = create;
53
- //# sourceMappingURL=aspect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aspect.js","sourceRoot":"","sources":["../../../source/protocols/amqp/aspect.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAClC,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAA;AAC7C,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;AAEnC,MAAM,MAAO,SAAQ,SAA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G,QAAQ,CAAC,EAAE,CAAC,CAAA;IACtC,CAAC,CAAA;IAED,MAAM,GAAG,KAAK,EAAE,EAAE,EAAE,EAAE;QACpB,MAAM,EAAE,CAAC,KAAK,EAAE,CAAA;IAClB,CAAC,CAAA;CACF;AAED;;;GAGG;AACH,SAAS,QAAQ,CAAE,EAAE;IACnB,qCAAqC;IACrC,OAAO;QACL,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;QACzC,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;QACnC,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE;KACxB,CAAA;AACH,CAAC;AAED,SAAS,MAAM,CAAE,OAAO;IACtB,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,CAAA;AAC5B,CAAC;AAED,OAAO,CAAC,MAAM,GAAG,MAAM,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * @param {toa.norm.context.dependencies.Instance[]} instances
3
- * @returns {toa.deployment.dependency.Variables}
4
- */
5
- export function deployment(instances: toa.norm.context.dependencies.Instance[]): toa.deployment.dependency.Variables;
@@ -1,55 +0,0 @@
1
- 'use strict';
2
- const { letters: { up } } = require('@toa.io/generic');
3
- const protocols = require('./protocols');
4
- /**
5
- * @param {toa.norm.context.dependencies.Instance[]} instances
6
- * @returns {toa.deployment.dependency.Variables}
7
- */
8
- function deployment(instances) {
9
- /** @type {toa.deployment.dependency.Variables} */
10
- const variables = {};
11
- for (const { locator, manifest } of instances) {
12
- const secrets = [];
13
- for (const [origin, reference] of Object.entries(manifest)) {
14
- let protocol;
15
- const match = reference.match(RX);
16
- if (match !== null)
17
- protocol = match.groups.protocol;
18
- if (protocols.includes(protocol)) {
19
- const originSecrets = createSecrets(locator, origin);
20
- secrets.push(...originSecrets);
21
- }
22
- }
23
- variables[locator.label] = secrets;
24
- }
25
- return variables;
26
- }
27
- /**
28
- * @param {toa.core.Locator} locator
29
- * @param {string} origin
30
- * @return {toa.deployment.dependency.Variable[]}
31
- */
32
- function createSecrets(locator, origin) {
33
- const properties = ['username', 'password'];
34
- return properties.map((property) => createSecret(locator, origin, property));
35
- }
36
- /**
37
- * @param {toa.core.Locator} locator
38
- * @param {string} origin
39
- * @param {string} property
40
- * @return {toa.deployment.dependency.Variable}
41
- */
42
- function createSecret(locator, origin, property) {
43
- const variable = `TOA_ORIGINS_${locator.uppercase}_${up(origin)}_${up(property)}`;
44
- const secret = `toa-origins-${locator.label}-${origin}`;
45
- return {
46
- name: variable,
47
- secret: {
48
- name: secret,
49
- key: property
50
- }
51
- };
52
- }
53
- const RX = /^(?<protocol>\w{1,12}:)/;
54
- exports.deployment = deployment;
55
- //# sourceMappingURL=deployment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../../source/protocols/amqp/deployment.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;AACtD,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;AAExC;;;GAGG;AACH,SAAS,UAAU,CAAE,SAAS;IAC5B,kDAAkD;IAClD,MAAM,SAAS,GAAG,EAAE,CAAA;IAEpB,KAAK,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,SAAS,EAAE;QAC7C,MAAM,OAAO,GAAG,EAAE,CAAA;QAElB,KAAK,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC1D,IAAI,QAAQ,CAAA;YAEZ,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;YAEjC,IAAI,KAAK,KAAK,IAAI;gBAAE,Q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","sources":["../../../source/protocols/amqp/id.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,CAAC,EAAE,GAAG,MAAM,CAAA"}
@@ -1,5 +0,0 @@
1
- import protocols = require("./protocols");
2
- import { id } from "./id";
3
- import { create } from "./aspect";
4
- import { deployment } from "./deployment";
5
- export { protocols, id, create, deployment };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
- const protocols = require('./protocols');
3
- const { id } = require('./id');
4
- const { create } = require('./aspect');
5
- const { deployment } = require('./deployment');
6
- exports.protocols = protocols;
7
- exports.id = id;
8
- exports.create = create;
9
- exports.deployment = deployment;
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/protocols/amqp/index.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;AACxC,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC9B,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;AACtC,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAA;AAE9C,OAAO,CAAC,SAAS,GAAG,SAAS,CAAA;AAC7B,OAAO,CAAC,EAAE,GAAG,EAAE,CAAA;AACf,OAAO,CAAC,MAAM,GAAG,MAAM,CAAA;AACvB,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA"}
@@ -1,2 +0,0 @@
1
- declare const _exports: string[];
2
- export = _exports;
@@ -1,3 +0,0 @@
1
- 'use strict';
2
- module.exports = ['amqp:', 'amqps:'];
3
- //# sourceMappingURL=protocols.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"protocols.js","sourceRoot":"","sources":["../../../source/protocols/amqp/protocols.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,MAAM,CAAC,OAAO,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- export class Permissions extends Connector {
2
- constructor(resolve: any);
3
- test(url: any): boolean;
4
- #private;
5
- }
6
- import { Connector } from "@toa.io/core";
@@ -1,52 +0,0 @@
1
- 'use strict';
2
- const { echo } = require('@toa.io/generic');
3
- const { Connector } = require('@toa.io/core');
4
- class Permissions extends Connector {
5
- /** @type {RegExp[]} */
6
- #allowances = [];
7
- /** @type {RegExp[]} */
8
- #denials = [];
9
- #resolve;
10
- constructor(resolve) {
11
- super();
12
- this.#resolve = resolve;
13
- }
14
- async open() {
15
- const { properties } = await this.#resolve();
16
- if (properties !== undefined)
17
- this.#parse(properties);
18
- }
19
- test(url) {
20
- const denial = this.#denials.findIndex((regexp) => regexp.test(url));
21
- if (denial !== -1)
22
- return false;
23
- const allowance = this.#allowances.findIndex((regexp) => regexp.test(url));
24
- return allowance !== -1;
25
- }
26
- #parse(properties) {
27
- if ('null' in properties) {
28
- const always = /** @type {RegExp} */ { test: () => true };
29
- this.#addRule(always, properties.null);
30
- delete properties.null;
31
- }
32
- for (const [key, rule] of Object.entries(properties)) {
33
- const match = key.match(EXPRESSION);
34
- if (match === null)
35
- throw new Error(`'${key}' is not a regular expression`);
36
- const expression = echo(match.groups.expression);
37
- const regex = new RegExp(expression);
38
- this.#addRule(regex, rule);
39
- }
40
- }
41
- /**
42
- * @param {RegExp} regex
43
- * @param {boolean} rule
44
- */
45
- #addRule(regex, rule) {
46
- const rules = rule ? this.#allowances : this.#denials;
47
- rules.push(regex);
48
- }
49
- }
50
- const EXPRESSION = /^\/(?<expression>.+)\/$/;
51
- exports.Permissions = Permissions;
52
- //# sourceMappingURL=permissions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../../source/protocols/http/.aspect/permissions.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC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,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;YACpD,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;YAEnC,IAAI,KAAK,KAAK,IAAI;gBAAE,MAAM,IAAI,KAAK,CAAC,IAAI,GAAG,+BAA+B,CAAC,CAAA;YAE3E,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;YAChD,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,UAAU,CAAC,CAAA;YAEpC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;SAC3B;IACH,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAE,KAAK,EAAE,IAAI;QACnB,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAA;QAErD,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACnB,CAAC;CACF;AAED,MAAM,UAAU,GAAG,yBAAyB,CAAA;AAE5C,OAAO,CAAC,WAAW,GAAG,WAAW,CAAA"}
@@ -1,10 +0,0 @@
1
- export function create(resolve: any): Aspect;
2
- declare class Aspect extends Connector {
3
- constructor(resolve: any, permissions: any);
4
- /** @readonly */
5
- readonly name: "http";
6
- invoke(name: any, path: any, request: any, options: any): Promise<any>;
7
- #private;
8
- }
9
- import { Connector } from "@toa.io/core";
10
- export {};
@@ -1,88 +0,0 @@
1
- 'use strict';
2
- const fetch = require('node-fetch');
3
- const { Connector } = require('@toa.io/core');
4
- const { retry } = require('@toa.io/generic');
5
- const { Permissions } = require('./.aspect/permissions');
6
- const protocols = require('./protocols');
7
- const protocol = require('./index');
8
- class Aspect extends Connector {
9
- /** @readonly */
10
- name = protocol.id;
11
- #resolve;
12
- #origins;
13
- #permissions;
14
- constructor(resolve, permissions) {
15
- super();
16
- this.#resolve = resolve;
17
- this.#permissions = permissions;
18
- this.depends(permissions);
19
- }
20
- async open() {
21
- const { origins } = await this.#resolve();
22
- this.#origins = origins;
23
- }
24
- async invoke(name, path, request, options) {
25
- let origin = this.#origins[name];
26
- if (origin === undefined) {
27
- if (isAbsoluteURL(name))
28
- return this.#invokeURL(name, /** @type {Request} */ path);
29
- else
30
- throw new Error(`Origin '${name}' is not defined`);
31
- }
32
- // absolute urls are forbidden when using origins
33
- if (typeof path === 'string' && isAbsoluteURL(path))
34
- throw new Error(`Absolute URLs are forbidden (${path})`);
35
- if (options?.substitutions !== undefined)
36
- origin = substitute(origin, options.substitutions);
37
- const url = path === undefined ? new URL(origin) : new URL(path, origin);
38
- return this.#request(url.href, request, options?.retry);
39
- }
40
- async #invokeURL(url, request) {
41
- if (this.#permissions.test(url) === false)
42
- throw new Error(`URL '${url}' is not allowed`);
43
- return this.#request(url, request);
44
- }
45
- async #request(url, request, options) {
46
- const call = () => fetch(url, request);
47
- if (options === undefined)
48
- return call();
49
- else
50
- return this.#retry(call, options);
51
- }
52
- /**
53
- * @param {Function} call
54
- * @param {toa.generic.retry.Options} options
55
- * @return {any}
56
- */
57
- #retry(call, options) {
58
- return retry(async (retry) => {
59
- const response = await call();
60
- if (Math.floor(response.status / 100) !== 2)
61
- return retry();
62
- return response;
63
- }, options);
64
- }
65
- }
66
- /**
67
- * @param {string} origin
68
- * @param {string[]} substitutions
69
- * @returns {string}
70
- */
71
- function substitute(origin, substitutions) {
72
- const replace = () => substitutions.shift();
73
- return origin.replace(PLACEHOLDER, replace);
74
- }
75
- /**
76
- * @param {string} path
77
- * @returns {boolean}
78
- */
79
- function isAbsoluteURL(path) {
80
- return protocols.findIndex((protocol) => path.indexOf(protocol) === 0) !== -1;
81
- }
82
- const PLACEHOLDER = /\*/g;
83
- function create(resolve) {
84
- const permissions = new Permissions(resolve);
85
- return new Aspect(resolve, permissions);
86
- }
87
- exports.create = create;
88
- //# sourceMappingURL=aspect.js.map
@@ -1 +0,0 @@
1
- {"version":3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KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YAC3B,MAAM,QAAQ,GAAG,MAAM,IAAI,EAAE,CAAA;YAE7B,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC;gBAAE,OAAO,KAAK,EAAE,CAAA;YAE3D,OAAO,QAAQ,CAAA;QACjB,CAAC,EAAE,OAAO,CAAC,CAAA;IACb,CAAC;CACF;AAED;;;;GAIG;AACH,SAAS,UAAU,CAAE,MAAM,EAAE,aAAa;IACxC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,CAAA;IAE3C,OAAO,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;AAC7C,CAAC;AAED;;;GAGG;AACH,SAAS,aAAa,CAAE,IAAI;IAC1B,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAA;AAC/E,CAAC;AAED,MAAM,WAAW,GAAG,KAAK,CAAA;AAEzB,SAAS,MAAM,CAAE,OAAO;IACtB,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC,CAAA;IAE5C,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;AACzC,CAAC;AAED,OAAO,CAAC,MAAM,GAAG,MAAM,CAAA"}
@@ -1 +0,0 @@
1
- export const id: "http";
@@ -1,3 +0,0 @@
1
- 'use strict';
2
- exports.id = 'http';
3
- //# sourceMappingURL=id.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"id.js","sourceRoot":"","sources":["../../../source/protocols/http/id.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,CAAC,EAAE,GAAG,MAAM,CAAA"}
@@ -1,4 +0,0 @@
1
- import protocols = require("./protocols");
2
- import { id } from "./id";
3
- import { create } from "./aspect";
4
- export { protocols, id, create };
@@ -1,8 +0,0 @@
1
- 'use strict';
2
- const protocols = require('./protocols');
3
- const { id } = require('./id');
4
- const { create } = require('./aspect');
5
- exports.protocols = protocols;
6
- exports.id = id;
7
- exports.create = create;
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/protocols/http/index.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;AACxC,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC9B,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;AAEtC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAA;AAC7B,OAAO,CAAC,EAAE,GAAG,EAAE,CAAA;AACf,OAAO,CAAC,MAAM,GAAG,MAAM,CAAA"}
@@ -1,2 +0,0 @@
1
- declare const _exports: string[];
2
- export = _exports;
@@ -1,3 +0,0 @@
1
- 'use strict';
2
- module.exports = ['http:', 'https:'];
3
- //# sourceMappingURL=protocols.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"protocols.js","sourceRoot":"","sources":["../../../source/protocols/http/protocols.js"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,MAAM,CAAC,OAAO,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA"}
@@ -1,9 +0,0 @@
1
- import { type Resolver } from '../Factory';
2
- import type { extensions } from '@toa.io/core';
3
- export declare const protocols: Protocol[];
4
- export interface Protocol {
5
- id: ProtocolID;
6
- protocols: string[];
7
- create: (resolver: Resolver) => extensions.Aspect;
8
- }
9
- export type ProtocolID = 'http' | 'amqp';
@@ -1,10 +0,0 @@
1
- 'use strict';
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.protocols = void 0;
7
- const amqp_1 = __importDefault(require("./amqp"));
8
- const http_1 = __importDefault(require("./http"));
9
- exports.protocols = [http_1.default, amqp_1.default];
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/protocols/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;;;;AAGZ,kDAAyB;AACzB,kDAAyB;AAGZ,QAAA,SAAS,GAAe,CAAC,cAAI,EAAE,cAAI,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.full.d.ts","../../../node_modules/msgpackr/index.d.ts","../../../operations/types/dependency.d.ts","../../../operations/types/index.d.ts","../../../libraries/pointer/transpiled/deployment.d.ts","../../../libraries/pointer/transpiled/annotation.d.ts","../../../libraries/pointer/transpiled/createvariables.d.ts","../../../libraries/pointer/transpiled/resolve.d.ts","../../../libraries/pointer/transpiled/naming.d.ts","../../../libraries/pointer/transpiled/index.d.ts","../../../libraries/generic/types/promex.d.ts","../../../libraries/generic/types/merge.d.ts","../../../libraries/generic/types/map.d.ts","../../../libraries/generic/types/index.d.ts","../source/protocols/amqp/protocols.js","../source/protocols/amqp/id.js","../../../node_modules/comq/types/diagnostic.d.ts","../../../node_modules/comq/types/channel.d.ts","../../../node_modules/comq/types/encoding.d.ts","../../../node_modules/comq/types/topology.d.ts","../../../node_modules/comq/types/amqp.d.ts","../../../node_modules/comq/types/io.d.ts","../../../node_modules/comq/types/connection.d.ts","../../../node_modules/comq/types/index.d.ts","../../../runtime/core/types/bindings.d.ts","../../../runtime/core/types/connector.d.ts","../../../runtime/core/types/locator.d.ts","../../../runtime/core/types/request.d.ts","../../../runtime/core/types/exception.d.ts","../../../runtime/core/types/reply.d.ts","../../../runtime/core/types/component.d.ts","../../../runtime/core/types/context.d.ts","../../../runtime/core/types/storages.d.ts","../../../runtime/core/types/extensions.d.ts","../../../runtime/core/types/bridges.d.ts","../../../runtime/core/types/message.d.ts","../../../runtime/core/types/receiver.d.ts","../../../runtime/core/types/index.d.ts","../source/protocols/amqp/aspect.js","../source/protocols/amqp/deployment.js","../source/protocols/amqp/index.js","../source/protocols/http/protocols.js","../source/protocols/http/id.js","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.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/dom-events.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/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/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/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/form-data/index.d.ts","../../../node_modules/@types/node-fetch/externals.d.ts","../../../node_modules/@types/node-fetch/index.d.ts","../source/protocols/http/.aspect/permissions.js","../source/protocols/http/aspect.js","../source/protocols/http/index.js","../source/protocols/index.ts","../../../libraries/schemas/types/schema.d.ts","../../../libraries/schemas/types/namespace.d.ts","../../../libraries/schemas/types/index.d.ts","../source/annotation.ts","../source/manifest.ts","../../../runtime/norm/types/component.d.ts","../../../runtime/norm/types/context/declaration.d.ts","../../../runtime/norm/types/context.d.ts","../../../runtime/norm/types/index.d.ts","../source/extension.ts","../source/factory.ts","../source/constants.js","../source/env.js","../source/index.ts","../../../node_modules/@babel/types/lib/index.d.ts","../../../node_modules/@types/babel__generator/index.d.ts","../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/@types/babel__template/index.d.ts","../../../node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/@types/babel__core/index.d.ts","../../../node_modules/@types/connect/index.d.ts","../../../node_modules/@types/body-parser/index.d.ts","../../../node_modules/@types/range-parser/index.d.ts","../../../node_modules/@types/qs/index.d.ts","../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../node_modules/@types/mime/mime.d.ts","../../../node_modules/@types/mime/index.d.ts","../../../node_modules/@types/serve-static/index.d.ts","../../../node_modules/@types/express/index.d.ts","../../../node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/jest-matcher-utils/node_modules/chalk/index.d.ts","../../../node_modules/jest-diff/build/cleanupsemantic.d.ts","../../../node_modules/pretty-format/build/types.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/types.d.ts","../../../node_modules/jest-diff/build/difflines.d.ts","../../../node_modules/jest-diff/build/printdiffs.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/js-yaml/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/json5/index.d.ts","../../../node_modules/@types/lodash/common/common.d.ts","../../../node_modules/@types/lodash/common/array.d.ts","../../../node_modules/@types/lodash/common/collection.d.ts","../../../node_modules/@types/lodash/common/date.d.ts","../../../node_modules/@types/lodash/common/function.d.ts","../../../node_modules/@types/lodash/common/lang.d.ts","../../../node_modules/@types/lodash/common/math.d.ts","../../../node_modules/@types/lodash/common/number.d.ts","../../../node_modules/@types/lodash/common/object.d.ts","../../../node_modules/@types/lodash/common/seq.d.ts","../../../node_modules/@types/lodash/common/string.d.ts","../../../node_modules/@types/lodash/common/util.d.ts","../../../node_modules/@types/lodash/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/parse-json/index.d.ts","../../../node_modules/@types/prettier/index.d.ts","../../../node_modules/@types/randomstring/index.d.ts","../../../node_modules/@types/semver/classes/semver.d.ts","../../../node_modules/@types/semver/functions/parse.d.ts","../../../node_modules/@types/semver/functions/valid.d.ts","../../../node_modules/@types/semver/functions/clean.d.ts","../../../node_modules/@types/semver/functions/inc.d.ts","../../../node_modules/@types/semver/functions/diff.d.ts","../../../node_modules/@types/semver/functions/major.d.ts","../../../node_modules/@types/semver/functions/minor.d.ts","../../../node_modules/@types/semver/functions/patch.d.ts","../../../node_modules/@types/semver/functions/prerelease.d.ts","../../../node_modules/@types/semver/functions/compare.d.ts","../../../node_modules/@types/semver/functions/rcompare.d.ts","../../../node_modules/@types/semver/functions/compare-loose.d.ts","../../../node_modules/@types/semver/functions/compare-build.d.ts","../../../node_modules/@types/semver/functions/sort.d.ts","../../../node_modules/@types/semver/functions/rsort.d.ts","../../../node_modules/@types/semver/functions/gt.d.ts","../../../node_modules/@types/semver/functions/lt.d.ts","../../../node_modules/@types/semver/functions/eq.d.ts","../../../node_modules/@types/semver/functions/neq.d.ts","../../../node_modules/@types/semver/functions/gte.d.ts","../../../node_modules/@types/semver/functions/lte.d.ts","../../../node_modules/@types/semver/functions/cmp.d.ts","../../../node_modules/@types/semver/functions/coerce.d.ts","../../../node_modules/@types/semver/classes/comparator.d.ts","../../../node_modules/@types/semver/classes/range.d.ts","../../../node_modules/@types/semver/functions/satisfies.d.ts","../../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../../node_modules/@types/semver/ranges/min-version.d.ts","../../../node_modules/@types/semver/ranges/valid.d.ts","../../../node_modules/@types/semver/ranges/outside.d.ts","../../../node_modules/@types/semver/ranges/gtr.d.ts","../../../node_modules/@types/semver/ranges/ltr.d.ts","../../../node_modules/@types/semver/ranges/intersects.d.ts","../../../node_modules/@types/semver/ranges/simplify.d.ts","../../../node_modules/@types/semver/ranges/subset.d.ts","../../../node_modules/@types/semver/internals/identifiers.d.ts","../../../node_modules/@types/semver/index.d.ts","../../../node_modules/@types/stack-utils/index.d.ts","../../../node_modules/@types/uuid/index.d.ts","../../../node_modules/@types/webidl-conversions/index.d.ts","../../../node_modules/@types/whatwg-url/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141","2a644159d517fde538191edfe276c4b2185bab433b9dfd0445fa080fd34b0c8b","b58986684afb62bf350474b924d15c873a504de447f1e109ccdabffe502ec5be","6e77fb2250275d3945569ac61104a29927624b5a7ba0e905e7e1defd1f2ed151","2790a9aa9f46374da594d045c1c92f277d74741c9adf0591353528148004cc50","31db44390050eec522abcf9268e697fc78d609e2b5e547c51533f885b9e3c9a8","ee3ed46dc8dccb018423839a1ee04b4bce7b0300d1debcaf52abbf97aaf75e87","e8bb99484b05d5b923363d02b6641cd2d2feac44d6f9480cf0be54f59db2c480","53d785402c344d04199b00b6dd00e9382cad52548ddc6c907f49157efa44cb00","95edbe862fbb62a384d2adec2b2278c5ece55d935d382da1386c4a63057b39a5","349327a3c59d23ddd1ba33ca88b73b194e16be7d0c7865d4b3227b1e7fb51b41","6c898f2bb237aee867bc2f89a2d9201b4c336c10320d083371ecf148bb0ffd54","937cbc9ffa856e3e4811c23481bf5416112fd6c8e6f31bbd2525cfff22fb8905","4a7c8ebddf6d7290deb71051e65f8e406e38772d22ef5be04fd837648ffcba0c",{"version":"96e7be849824a0e893e8ab857a028209b86f1804edc65d28fdcf32ee9978a142","signature":"7e2eff3e1139fb63fcd72a2f1a53a7781e30bb509305e0dfa8c552779f607e88"},{"version":"70adfdd684410770fcdf755750e2a0eb3804903f7b91516a9cce9891a5b003d9","signature":"18371ac3f35d9efffecfcdf14d9f440622e2ed8872d66dbbbed2a71f7082eb4e"},"e475075c6d219da551225a93b33ec762f3c24e3a64441c73d51be6ec8f74f569","92ce56201cdef91e3cbabcf6964fdd4eda19b2e97562f8aaf11ecb0d669d425f","47616fb9e067b16a03f9649d98b3c26de3f943b480b262fdf251270d48dd9a61","94f91b3d112e13ae8da95d492faaac48b36b172bbeaad21be05d0396c1f277e4","1c0c9696e9dbe9f406437da313618a3e36de69bd10cec98a28bff2e074fd1ee7","2e25dd58564011f41376b0648a7d027a9f6a6cc68a9f5865d4f0a1610a6cd9aa","27b56e1a27aee181214afecd414b21e8eba9e18bd6508bd54c191890a58b6ecb","3300876c665e589b52879833861bf27e628f1dd76ac9e583f7f1b8b1d5af9ef0","5c705ea6d923f75118d05b15d9277a792534f537f3f0e3bd558706b7719e0b4b","4b0bbac779edb0daa8ac8c983a5bc3dcb22a7831efc9c3b0e1c09fb7871d5e78","f7d594d8d16c7e9fa2e0dd3635e4ad8ed3b5cf9e8cf4a0ed2b91771b91ff79d2","f215f4a31cde19ad564123449d598e8f5d54ee01723c9f2e08a6551603796c99","425a8261e16e3e5c1b4e21efbdb8b12ac26b70b1932427732840b527d9725b33","290a1a95e7f4311064d71b5307e157e2922ba6498584c77a58c2285b0e2d7886","5e1ebcc9c30ad16e8a375e471d1bdf2346aae0a7f8749ce54a85eabb98985978","eccae7a0380fece7bedcce018b5429da725a59c76eaf1f29d9483ea909115ea0","863a16bffa4414a6784927eec1b17523521761b2b2344a0b98f140c91d659859","066564658ae9be383db8fee383c4b13485924b566c48adcc7be14c0358aa69da","2ece68fc449934b9b5988584816a997bd94e8960bc28ba83b58c0b79b639447b","67f637033109e2ae0272428c6b27a0be1c323b43b37e3ac55d09c993b205867b","a06788dcbb350c361b23aad1671f6818641850ab75050e7abc0ae42f6ae49090","436a237807dbe653fffafdba822497101474034aa46d5a69fca5ecd6290964fe",{"version":"ef88a0b62294b3db6953c44c9ce92730d000bc303c67e0aac38618ed7b53e0a2","signature":"5ba97c277230c5daf74cee502e3660c5f54856218a2152d1376f76b1fa86148f"},{"version":"13e5077961333dfef7b45b61cf397824a29d5714f70019b492cdbdc2cd972d07","signature":"4ff8ab5333ebf91e138ae7f2aa7c2b573af6c287220388ae9f47242c9e0cd5b5"},{"version":"7ff4d9a694191b925a8d779db5143ce8b24efa116f09af2a7797f5253d83d92f","signature":"3dc1d4404ab4ec6b709830df84377c9a0c9e04b3e53a15b26719135f37d40f7f"},{"version":"459f9fff2e8effefafbf6e7ac9b44b827327d4b3a513b729d6d6094fa2318d26","signature":"7e2eff3e1139fb63fcd72a2f1a53a7781e30bb509305e0dfa8c552779f607e88"},{"version":"55aece49d3a387b3acc7fbf672328c62422aebb7e98cf9e8c1f62da780d615fb","signature":"ee57cf1731dc27fa5f1db512b4964be0efb2aa24adde19892c21a0d5c765ec03"},"587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228",{"version":"a7534271773a27ff7d136d550e86b41894d8090fa857ba4c02b5bb18d2eb1c8e","affectsGlobalScope":true},"db71be322f07f769200108aa19b79a75dd19a187c9dca2a30c4537b233aa2863","57135ce61976a8b1dadd01bb412406d1805b90db6e8ecb726d0d78e0b5f76050",{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","b8e431e9b9bb2dc832b23d4e3e02774e953d5537998923f215ea446169e9a61e","3690133deae19c8127c5505fcb67b04bdc9eb053796008538a9b9abbb70d85aa","5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"b85c02e14ecb2a873dad5a1de72319b265160ba48f1b83661aeb3bba1366c1bc","affectsGlobalScope":true},"7a2ba0c9af860ac3e77b35ed01fd96d15986f17aa22fe40f188ae556fb1070df","fc3764040518a1008dd04bdc80964591b566b896283e00df85c95851c1f46237","55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","790623a47c5eda62910098884ecb154dc0e5f3a23fc36c1bfb3b5b9ed44e2c2d","42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","354612fe1d49ecc9551ea3a27d94eef2887b64ef4a71f72ca444efe0f2f0ba80",{"version":"125af9d85cb9d5e508353f10a8d52f01652d2d48b2cea54789a33e5b4d289c1c","affectsGlobalScope":true},"f5490f53d40291cc8607f5463434d1ac6c5564bc4fbb03abceb03a8f6b014457","5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d",{"version":"14a50dafe3f45713f7f27cb6320dff07c6ac31678f07959c2134260061bf91ff","affectsGlobalScope":true},{"version":"19da7150ca062323b1db6311a6ef058c9b0a39cc64d836b5e9b75d301869653b","affectsGlobalScope":true},"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","0cab4d7d4edc40cd3af9eea7c3ed6d1016910c0954c49c4297e479bf3822a625","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270","1fb6c5ec52332a8b531a8d7a5300ac9301f98c4fe62f68e744e0841ccba65e7e",{"version":"ab294c4b7279318ee2a8fdf681305457ecc05970c94108d304933f18823eeac1","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","bbda6ea452a2386093a1eda18a6e26a989e98869f1b9f37e46f510a986d2e740","812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","993325544790073f77e945bee046d53988c0bc3ac5695c9cf8098166feb82661",{"version":"75dd741ca6a6c8d2437a6ca8349b64b816421dbf9fe82dd026afaba965576962","affectsGlobalScope":true},{"version":"8799401a7ab57764f0d464513a7fa7c72e1d70a226b172ec60fff534ea94d108","affectsGlobalScope":true},"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","92db194ef7d208d5e4b6242a3434573fd142a621ff996d84cc9dbba3553277d0","16a3080e885ed52d4017c902227a8d0d8daf723d062bec9e45627c6fdcd6699b",{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true},"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"247aa3419c98713231952b33801d4f46563fe542e03604acd8c63ac45a32409c","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","3898e3dbe94b6fe529fbe8f0faee1309c1923100516d7a014b301955e52ece77","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568",{"version":"6152f81fc56c9bb7861c382fa6d235075dfe4080e6570d9a728903fc37c81af0","signature":"997eb95b02ead6993b53e512643e11c6f011f6eb855c1b35f2397f382bafd5b0"},{"version":"4a9484134022a60e15e8d903ff4728217a709a354faf236d3d9ee2dd7757e3ff","signature":"45279ef7c8f781151b241162b61738b573c5f29b98521403d88d5378cd66fae4"},{"version":"bab73c662d5c3f79a86a4e6dc3ad616287d1de1a17e91b40a21d57d3ddc3af06","signature":"cdc7b5474fc61d043a72869dc60a85a2e68da61afc4fc4a1b644ed9b28fdc82a"},{"version":"8afc29dcfc689168c29ab085ee8996e205d7e3367c455da79969152938f6cd0d","signature":"f53be8979697a1e2c81f318dde8b792b601461d9ef4f4fed33a00393d8653236"},"fb2be9f927c3a43265b4ca090a72fe4701455fce5532e57dc94d93919ad484b8","15a134b3be788325ea13d4d018fcd9b7137dda29105953af10b4f2231a6652f0","560909f90c010fb7bbf04ca8aafa802a577952d76055a46df1f79bcbeb30077c",{"version":"48df12f6112088d68cf4e04ba010b10ae52ce4d4b2315841f35d2dd4bf258516","signature":"fd264726367f522dbf60f46b2c014d1a433e9015870eb15574257fd35e616af2"},{"version":"ff400dbe0326155d1b04858a83e86e55635d95d285ed74f8f7c8c7e86644522d","signature":"02cd5fcc7ca5feba54971ad54e819212216af17387904fefb0d0fbb8dc47ec38"},"76ac98764b6a936d05a6e20e5fb1862f225d192ba2bed9727456ac5b7f06c0e6","71e46111f57a5c82031adbac22eb542b5f63a8be4d5ee9253036cafe81d16112","a81bed88a08bcbcb5c00b045c880dd751854145a91f8bb4c0e00fad06d164c99","2c477c8745f634853a063e08af9951f1cc4f858c324a95796f191e6a623e3d12",{"version":"ba3a9e16a4404b0da1113e0ab593b2f4401b0f30a73bc76e80159cde25665741","signature":"dafc15b2377bb59f132d10f8c8285f7dc2e64d3288a290db35a4366b69bed024"},{"version":"f407d0c2a2572054713b41de06e36e2c52e670eee03c3c3fddce962f0234e133","signature":"97d4814e25bfa13cf15afa5e4892df2ba7e1e60310398bf242a02be9da8f9a64"},{"version":"86ed435bb953c97e7476d851f6d8ebf8a1b6c84616328f9de1f3aa8c87b5a9fa","signature":"af898d865eba87228607c9f51ebadc3281b779546a827477c88b2221132ba137"},{"version":"ee5b11bf95024d740540a1137f9f6a79c730403d9801bbeeeb30c6309063d28c","signature":"206cc1c976788945272abac46d80680d95d691db82cb3fb932f1da766a8f95f8"},{"version":"3153f06c2c3a14ae77ab7c1472ddd0bf3e28aff57c73aef2df8b167b3ff20057","signature":"a0be985fe55ad62bff14e3a560588107ba65d3751cbdc32ff83cc8baa65f850c"},"3078727fed04c123165efdb42deeac5dceaa42ac62216ca13cb809dc7e13415f","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","b4f76b34637d79cefad486127115fed843762c69512d7101b7096e1293699679","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","dae3d1adc67ac3dbd1cd471889301339ec439837b5df565982345be20c8fca9a","b6ddf3a46ccfa4441d8be84d2e9bf3087573c48804196faedbd4a25b60631beb","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"c5dd1fef4cd4aaffc78786047bed5ae6fc1200d19a1946cbc4e2d3ed4d62c8fa","affectsGlobalScope":true},"5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7","951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e","e6f0cb9d8cb2e38bec66e032e73caa3e7c6671f21ed7196acb821aec462051f2","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73",{"version":"af9b69886a3c5cf847341a3f777d47984152051a82fffe72a97158e4ffa94780","affectsGlobalScope":true},"686e548ae30250d62532c8cacb43fccc922b693408371bd3503563c4a0f28eed","dca41e86e89dfb2e85e6935260250f02eb6683b86c2fa16bec729ddd1bcd9b4b","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","bc88e4049153bc4dddb4503ed7e624eb141edfa9064b3659d6c86e900fe9e621",{"version":"4698841dc5a91fe716dd41ec7136867bbde9a274ce21031e5ef6ce2d8a552ceb","affectsGlobalScope":true},"2b93035328f7778d200252681c1d86285d501ed424825a18f81e4c3028aa51d9","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","b9f96255e1048ed2ea33ec553122716f0e57fc1c3ad778e9aa15f5b46547bd23","7a9e0a564fee396cacf706523b5aeed96e04c6b871a8bebefad78499fbffc5bc","906c751ef5822ec0dadcea2f0e9db64a33fb4ee926cc9f7efa38afe5d5371b2a","5387c049e9702f2d2d7ece1a74836a14b47fbebe9bbeb19f94c580a37c855351","c68391fb9efad5d99ff332c65b1606248c4e4a9f1dd9a087204242b56c7126d6","e9cf02252d3a0ced987d24845dcb1f11c1be5541f17e5daa44c6de2d18138d0c","e8b02b879754d85f48489294f99147aeccc352c760d95a6fe2b6e49cd400b2fe","9f6908ab3d8a86c68b86e38578afc7095114e66b2fc36a2a96e9252aac3998e0","0eedb2344442b143ddcd788f87096961cd8572b64f10b4afc3356aa0460171c6","71405cc70f183d029cc5018375f6c35117ffdaf11846c35ebf85ee3956b1b2a6","c68baff4d8ba346130e9753cefe2e487a16731bf17e05fdacc81e8c9a26aae9d","2cd15528d8bb5d0453aa339b4b52e0696e8b07e790c153831c642c3dea5ac8af","479d622e66283ffa9883fbc33e441f7fc928b2277ff30aacbec7b7761b4e9579","ade307876dc5ca267ca308d09e737b611505e015c535863f22420a11fffc1c54","f8cdefa3e0dee639eccbe9794b46f90291e5fd3989fcba60d2f08fde56179fb9","86c5a62f99aac7053976e317dbe9acb2eaf903aaf3d2e5bb1cafe5c2df7b37a8","2b300954ce01a8343866f737656e13243e86e5baef51bd0631b21dcef1f6e954","a2d409a9ffd872d6b9d78ead00baa116bbc73cfa959fce9a2f29d3227876b2a1","b288936f560cd71f4a6002953290de9ff8dfbfbf37f5a9391be5c83322324898","61178a781ef82e0ff54f9430397e71e8f365fc1e3725e0e5346f2de7b0d50dfa","6a6ccb37feb3aad32d9be026a3337db195979cd5727a616fc0f557e974101a54","c649ea79205c029a02272ef55b7ab14ada0903db26144d2205021f24727ac7a3","38e2b02897c6357bbcff729ef84c736727b45cc152abe95a7567caccdfad2a1d","d6610ea7e0b1a7686dba062a1e5544dd7d34140f4545305b7c6afaebfb348341","3dee35db743bdba2c8d19aece7ac049bde6fa587e195d86547c882784e6ba34c","b15e55c5fa977c2f25ca0b1db52cfa2d1fd4bf0baf90a8b90d4a7678ca462ff1","f41d30972724714763a2698ae949fbc463afb203b5fa7c4ad7e4de0871129a17","843dd7b6a7c6269fd43827303f5cbe65c1fecabc30b4670a50d5a15d57daeeb9","f06d8b8567ee9fd799bf7f806efe93b67683ef24f4dea5b23ef12edff4434d9d","6017384f697ff38bc3ef6a546df5b230c3c31329db84cbfe686c83bec011e2b2","e1a5b30d9248549ca0c0bb1d653bafae20c64c4aa5928cc4cd3017b55c2177b0","a593632d5878f17295bd53e1c77f27bf4c15212822f764a2bfc1702f4b413fa0","a868a534ba1c2ca9060b8a13b0ffbbbf78b4be7b0ff80d8c75b02773f7192c29","da7545aba8f54a50fde23e2ede00158dc8112560d934cee58098dfb03aae9b9d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","a1a261624efb3a00ff346b13580f70f3463b8cdcc58b60f5793ff11785d52cab","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","ea2d34766aa08df002a696e27d2140c0834cb8d7e9cb35687ecfd578253c196c","67483628398336d0f9368578a9514bd8cc823a4f3b3ab784f3942077e5047335","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","e9eb1b173aa166892f3eddab182e49cfe59aa2e14d33aedb6b49d175ed6a3750"],"options":{"declaration":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":99},"fileIdsList":[[128,148,162,165,172],[148],[72,148,174],[60,62,68,72,96,148,166,167,171],[60,68,72,96,148,162,166,167,172],[148,172,173],[128,148,165],[82,96,99,148],[72,73,148],[73,74,97,98,148],[72,96,148],[72,96,100,148,158,159,161],[100,101,148,160],[96,99,148,161,173],[69,70,71,136,148],[63,148],[62,63,64,148],[62,148],[63,64,65,66,67,148],[148,163,164],[148,163],[148,177],[148,177,178,179,180,181],[148,177,179],[121,148,155,183],[121,148,155],[118,121,148,155,185,186],[148,184,186,187,190],[119,148,155],[148,193],[148,194],[148,199,204],[148,209,211,212,213,214,215,216,217,218,219,220,221],[148,209,210,212,213,214,215,216,217,218,219,220,221],[148,210,211,212,213,214,215,216,217,218,219,220,221],[148,209,210,211,213,214,215,216,217,218,219,220,221],[148,209,210,211,212,214,215,216,217,218,219,220,221],[148,209,210,211,212,213,215,216,217,218,219,220,221],[148,209,210,211,212,213,214,216,217,218,219,220,221],[148,209,210,211,212,213,214,215,217,218,219,220,221],[148,209,210,211,212,213,214,215,216,218,219,220,221],[148,209,210,211,212,213,214,215,216,217,219,220,221],[148,209,210,211,212,213,214,215,216,217,218,220,221],[148,209,210,211,212,213,214,215,216,217,218,219,221],[148,209,210,211,212,213,214,215,216,217,218,219,220],[148,188],[148,189],[121,147,148,155,156,157],[102,148],[105,148],[106,111,139,148],[107,118,119,126,136,147,148],[107,108,118,126,148],[109,148],[110,111,119,127,148],[111,136,144,148],[112,114,118,126,148],[113,148],[114,115,148],[118,148],[116,118,148],[118,119,120,136,147,148],[118,119,120,133,136,139,148],[148,152],[114,118,121,126,136,147,148],[118,119,121,122,126,136,144,147,148],[121,123,136,144,147,148],[102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154],[118,124,148],[125,147,148],[114,118,126,136,148],[127,148],[128,148],[105,129,148],[130,146,148,152],[131,148],[132,148],[118,133,134,148],[133,135,148,150],[106,118,136,137,138,139,148],[106,136,138,148],[136,137,148],[139,148],[140,148],[136,148],[118,142,143,148],[142,143,148],[111,126,136,144,148],[145,148],[126,146,148],[106,121,132,147,148],[111,148],[136,148,149],[148,150],[148,151],[106,111,118,120,129,136,147,148,150,152],[136,148,153],[148,227,266],[148,227,251,266],[148,266],[148,227],[148,227,252,266],[148,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265],[148,252,266],[121,148,155,189],[148,155],[148,271],[75,148],[75,76,78,80,148],[80,81,148],[75,77,78,79,148],[121,136,148,155],[148,197,200],[148,197,200,201,202],[148,199],[148,196,203],[148,198],[61,148],[96,148],[84,88,90,96,148],[84,85,86,88,148],[84,86,88,92,148],[83,89,90,91,96,148],[83,84,85,86,87,88,89,90,91,92,93,94,95,148],[84,94,148],[87,148],[84,85,148],[96,148,168,169],[148,170],[148,168,170],[172],[62,166,167,171],[68,96,167],[172,173],[96,173]],"referencedMap":[[166,1],[174,2],[175,3],[172,4],[173,5],[176,6],[167,7],[97,8],[98,9],[74,2],[99,10],[73,2],[159,11],[160,12],[101,2],[161,13],[100,2],[162,14],[72,15],[71,2],[70,2],[69,2],[64,16],[65,17],[63,18],[68,19],[67,2],[66,16],[165,20],[164,21],[163,2],[179,22],[177,2],[182,23],[178,22],[180,24],[181,22],[184,25],[183,26],[187,27],[191,28],[192,29],[193,2],[194,30],[195,31],[205,32],[206,2],[207,2],[208,2],[210,33],[211,34],[209,35],[212,36],[213,37],[214,38],[215,39],[216,40],[217,41],[218,42],[219,43],[220,44],[221,45],[189,46],[188,47],[222,2],[157,2],[158,48],[102,49],[103,49],[105,50],[106,51],[107,52],[108,53],[109,54],[110,55],[111,56],[112,57],[113,58],[114,59],[115,59],[117,60],[116,61],[118,60],[119,62],[120,63],[104,64],[154,2],[121,65],[122,66],[123,67],[155,68],[124,69],[125,70],[126,71],[127,72],[128,73],[129,74],[130,75],[131,76],[132,77],[133,78],[134,78],[135,79],[136,80],[138,81],[137,82],[139,83],[140,84],[141,85],[142,86],[143,87],[144,88],[145,89],[146,90],[147,91],[148,92],[149,93],[150,94],[151,95],[152,96],[153,97],[223,2],[224,2],[225,2],[186,2],[226,2],[185,2],[251,98],[252,99],[227,100],[230,100],[249,98],[250,98],[240,98],[239,101],[237,98],[232,98],[245,98],[243,98],[247,98],[231,98],[244,98],[248,98],[233,98],[234,98],[246,98],[228,98],[235,98],[236,98],[238,98],[242,98],[253,102],[241,98],[229,98],[266,103],[265,2],[260,102],[262,104],[261,102],[254,102],[255,102],[257,102],[259,102],[263,104],[264,104],[256,104],[258,104],[190,105],[267,2],[268,2],[269,2],[270,106],[271,2],[272,107],[79,2],[76,108],[81,109],[75,2],[77,2],[82,110],[80,111],[78,2],[156,112],[197,2],[201,113],[203,114],[202,113],[200,115],[204,116],[196,2],[60,85],[199,117],[198,2],[11,2],[12,2],[16,2],[15,2],[2,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[24,2],[3,2],[4,2],[28,2],[25,2],[26,2],[27,2],[29,2],[30,2],[31,2],[5,2],[32,2],[33,2],[34,2],[35,2],[6,2],[39,2],[36,2],[37,2],[38,2],[40,2],[7,2],[41,2],[46,2],[47,2],[42,2],[43,2],[44,2],[45,2],[8,2],[51,2],[48,2],[49,2],[50,2],[52,2],[9,2],[53,2],[54,2],[55,2],[56,2],[57,2],[1,2],[10,2],[59,2],[58,2],[14,2],[13,2],[61,2],[62,118],[83,119],[93,120],[89,121],[84,2],[90,122],[87,2],[92,123],[96,124],[85,2],[94,2],[95,125],[88,126],[86,2],[91,127],[168,119],[170,128],[169,129],[171,130]],"exportedModulesMap":[[166,131],[172,132],[173,133],[176,134],[162,135],[72,15],[71,2],[70,2],[69,2],[64,16],[65,17],[63,18],[68,19],[67,2],[66,16],[165,20],[164,21],[163,2],[179,22],[177,2],[182,23],[178,22],[180,24],[181,22],[184,25],[183,26],[187,27],[191,28],[192,29],[193,2],[194,30],[195,31],[205,32],[206,2],[207,2],[208,2],[210,33],[211,34],[209,35],[212,36],[213,37],[214,38],[215,39],[216,40],[217,41],[218,42],[219,43],[220,44],[221,45],[189,46],[188,47],[222,2],[157,2],[158,48],[102,49],[103,49],[105,50],[106,51],[107,52],[108,53],[109,54],[110,55],[111,56],[112,57],[113,58],[114,59],[115,59],[117,60],[116,61],[118,60],[119,62],[120,63],[104,64],[154,2],[121,65],[122,66],[123,67],[155,68],[124,69],[125,70],[126,71],[127,72],[128,73],[129,74],[130,75],[131,76],[132,77],[133,78],[134,78],[135,79],[136,80],[138,81],[137,82],[139,83],[140,84],[141,85],[142,86],[143,87],[144,88],[145,89],[146,90],[147,91],[148,92],[149,93],[150,94],[151,95],[152,96],[153,97],[223,2],[224,2],[225,2],[186,2],[226,2],[185,2],[251,98],[252,99],[227,100],[230,100],[249,98],[250,98],[240,98],[239,101],[237,98],[232,98],[245,98],[243,98],[247,98],[231,98],[244,98],[248,98],[233,98],[234,98],[246,98],[228,98],[235,98],[236,98],[238,98],[242,98],[253,102],[241,98],[229,98],[266,103],[265,2],[260,102],[262,104],[261,102],[254,102],[255,102],[257,102],[259,102],[263,104],[264,104],[256,104],[258,104],[190,105],[267,2],[268,2],[269,2],[270,106],[271,2],[272,107],[79,2],[76,108],[81,109],[75,2],[77,2],[82,110],[80,111],[78,2],[156,112],[197,2],[201,113],[203,114],[202,113],[200,115],[204,116],[196,2],[60,85],[199,117],[198,2],[11,2],[12,2],[16,2],[15,2],[2,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[24,2],[3,2],[4,2],[28,2],[25,2],[26,2],[27,2],[29,2],[30,2],[31,2],[5,2],[32,2],[33,2],[34,2],[35,2],[6,2],[39,2],[36,2],[37,2],[38,2],[40,2],[7,2],[41,2],[46,2],[47,2],[42,2],[43,2],[44,2],[45,2],[8,2],[51,2],[48,2],[49,2],[50,2],[52,2],[9,2],[53,2],[54,2],[55,2],[56,2],[57,2],[1,2],[10,2],[59,2],[58,2],[14,2],[13,2],[61,2],[62,118],[83,119],[93,120],[89,121],[84,2],[90,122],[87,2],[92,123],[96,124],[85,2],[94,2],[95,125],[88,126],[86,2],[91,127],[168,119],[170,128],[169,129],[171,130]],"semanticDiagnosticsPerFile":[166,174,175,172,173,176,167,97,98,74,99,73,159,160,101,161,100,162,72,71,70,69,64,65,63,68,67,66,165,164,163,179,177,182,178,180,181,184,183,187,191,192,193,194,195,205,206,207,208,210,211,209,212,213,214,215,216,217,218,219,220,221,189,188,222,157,158,102,103,105,106,107,108,109,110,111,112,113,114,115,117,116,118,119,120,104,154,121,122,123,155,124,125,126,127,128,129,130,131,132,133,134,135,136,138,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,223,224,225,186,226,185,251,252,227,230,249,250,240,239,237,232,245,243,247,231,244,248,233,234,246,228,235,236,238,242,253,241,229,266,265,260,262,261,254,255,257,259,263,264,256,258,190,267,268,269,270,271,272,79,76,81,75,77,82,80,78,156,197,201,203,202,200,204,196,60,199,198,11,12,16,15,2,17,18,19,20,21,22,23,24,3,4,28,25,26,27,29,30,31,5,32,33,34,35,6,39,36,37,38,40,7,41,46,47,42,43,44,45,8,51,48,49,50,52,9,53,54,55,56,57,1,10,59,58,14,13,61,62,83,93,89,84,90,87,92,96,85,94,95,88,86,91,168,170,169,171]},"version":"4.9.5"}