phx-node 1.0.46 → 1.0.47

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.
@@ -11,7 +11,7 @@ export interface GrpcRequestDataCenterType {
11
11
  export declare class PHXGrpcClientSystemService {
12
12
  private readonly httpService;
13
13
  private readonly logger;
14
- private readonly internalApiGateway;
14
+ private readonly internalGrpcGateway;
15
15
  private readonly projectSource;
16
16
  constructor(httpService: HttpService);
17
17
  debug(hostname: string): void;
@@ -26,12 +26,12 @@ let PHXGrpcClientSystemService = PHXGrpcClientSystemService_1 = class PHXGrpcCli
26
26
  constructor(httpService) {
27
27
  this.httpService = httpService;
28
28
  this.logger = new common_1.Logger(PHXGrpcClientSystemService_1.name);
29
- this.internalApiGateway = process.env.INTERNAL_API_GATEWAY;
29
+ this.internalGrpcGateway = process.env.INTERNAL_GRPC_GATEWAY;
30
30
  this.projectSource = process.env.PROJECT_SOURCE;
31
31
  }
32
32
  debug(hostname) {
33
33
  this.logger.debug(hostname);
34
- this.logger.debug(this.internalApiGateway);
34
+ this.logger.debug(this.internalGrpcGateway);
35
35
  }
36
36
  query(_a) {
37
37
  return __awaiter(this, arguments, void 0, function* ({ query, variables, hostname, }) {
@@ -39,7 +39,7 @@ let PHXGrpcClientSystemService = PHXGrpcClientSystemService_1 = class PHXGrpcCli
39
39
  return;
40
40
  try {
41
41
  const response = yield this.httpService
42
- .post(`${this.internalApiGateway}/grpc-client/query`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: { hostname } }))
42
+ .post(`${this.internalGrpcGateway}/query`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: { hostname } }))
43
43
  .toPromise();
44
44
  return response.data;
45
45
  }
@@ -55,7 +55,7 @@ let PHXGrpcClientSystemService = PHXGrpcClientSystemService_1 = class PHXGrpcCli
55
55
  return;
56
56
  try {
57
57
  const response = yield this.httpService
58
- .post(`${this.internalApiGateway}/grpc-client/mutation`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: { hostname } }))
58
+ .post(`${this.internalGrpcGateway}/mutation`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: { hostname } }))
59
59
  .toPromise();
60
60
  return response.data;
61
61
  }
@@ -69,7 +69,7 @@ let PHXGrpcClientSystemService = PHXGrpcClientSystemService_1 = class PHXGrpcCli
69
69
  return __awaiter(this, arguments, void 0, function* ({ query, variables, }) {
70
70
  try {
71
71
  const response = yield this.httpService
72
- .post(`${this.internalApiGateway}/grpc-client/query`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: { hostname: "data-center" } }))
72
+ .post(`${this.internalGrpcGateway}/query`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: { hostname: "data-center" } }))
73
73
  .toPromise();
74
74
  return response.data;
75
75
  }
@@ -83,7 +83,7 @@ let PHXGrpcClientSystemService = PHXGrpcClientSystemService_1 = class PHXGrpcCli
83
83
  return __awaiter(this, arguments, void 0, function* ({ query, variables, }) {
84
84
  try {
85
85
  const response = yield this.httpService
86
- .post(`${this.internalApiGateway}/grpc-client/mutation`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: { hostname: "data-center" } }))
86
+ .post(`${this.internalGrpcGateway}/mutation`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: { hostname: "data-center" } }))
87
87
  .toPromise();
88
88
  return response.data;
89
89
  }
@@ -1 +1 @@
1
- {"version":3,"file":"grpc-client-system.service.js","sourceRoot":"","sources":["../../../src/module/grpc-client/grpc-client-system.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,yCAA4C;AAarC,IAAM,0BAA0B,kCAAhC,MAAM,0BAA0B;IAKrC,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QAJpC,WAAM,GAAG,IAAI,eAAM,CAAC,4BAA0B,CAAC,IAAI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KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gBAC5B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;KAAA;CACF,CAAA;AAnGY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;qCAM+B,mBAAW;GAL1C,0BAA0B,CAmGtC"}
1
+ {"version":3,"file":"grpc-client-system.service.js","sourceRoot":"","sources":["../../../src/module/grpc-client/grpc-client-system.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,yCAA4C;AAarC,IAAM,0BAA0B,kCAAhC,MAAM,0BAA0B;IAKrC,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;QAJpC,WAAM,GAAG,IAAI,eAAM,CAAC,4BAA0B,CAAC,IAAI,CAAC,CAAC;QAKpE,IAAI,CAAC,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;QAC7D,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;IAClD,CAAC;IAEM,KAAK,CAAC,QAAgB;QAC3B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAC9C,CAAC;IAEY,KAAK;6DAAC,EACjB,KAAK,EACL,SAAS,EACT,QAAQ,GACQ;YAChB,IAAI,CAAC,QAAQ;gBAAE,OAAO;YACtB,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW;qBACpC,IAAI,CAAC,GAAG,IAAI,CAAC,mBAAmB,QAAQ,kCACpC,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC,KAC/B,MAAM,EAAE,IAAI,CAAC,aAAa,EAC1B,KAAK,EACL,OAAO,EAAE,EAAE,QAAQ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E,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gBAC5B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;KAAA;IAEY,kBAAkB;6DAAC,EAC9B,KAAK,EACL,SAAS,GACiB;YAC1B,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW;qBACpC,IAAI,CAAC,GAAG,IAAI,CAAC,mBAAmB,WAAW,kCACvC,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC,KAC/B,MAAM,EAAE,IAAI,CAAC,aAAa,EAC1B,KAAK,EACL,OAAO,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,IACpC;qBACD,SAAS,EAAE,CAAC;gBACf,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gBAC5B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;KAAA;CACF,CAAA;AAnGY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;qCAM+B,mBAAW;GAL1C,0BAA0B,CAmGtC"}
@@ -6,7 +6,7 @@ export interface GrpcRequestType {
6
6
  export declare class PHXGrpcClientService {
7
7
  private readonly httpService;
8
8
  private readonly request;
9
- private readonly internalAPIGateway;
9
+ private readonly internalGrpcGateway;
10
10
  private readonly projectSource;
11
11
  constructor(httpService: HttpService, request: Request);
12
12
  query({ query, variables }: GrpcRequestType): Promise<any>;
@@ -29,14 +29,14 @@ let PHXGrpcClientService = class PHXGrpcClientService {
29
29
  constructor(httpService, request) {
30
30
  this.httpService = httpService;
31
31
  this.request = request;
32
- this.internalAPIGateway = process.env.INTERNAL_API_GATEWAY;
32
+ this.internalGrpcGateway = process.env.INTERNAL_GRPC_GATEWAY;
33
33
  this.projectSource = process.env.PROJECT_SOURCE;
34
34
  }
35
35
  query(_a) {
36
36
  return __awaiter(this, arguments, void 0, function* ({ query, variables }) {
37
37
  try {
38
38
  const response = yield this.httpService
39
- .post(`${this.internalAPIGateway}/grpc-client/query`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: this.request.headers }))
39
+ .post(`${this.internalGrpcGateway}/query`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: this.request.headers }))
40
40
  .toPromise();
41
41
  return response.data;
42
42
  }
@@ -50,7 +50,7 @@ let PHXGrpcClientService = class PHXGrpcClientService {
50
50
  return __awaiter(this, arguments, void 0, function* ({ query, variables }) {
51
51
  try {
52
52
  const response = yield this.httpService
53
- .post(`${this.internalAPIGateway}/grpc-client/mutation`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: this.request.headers }))
53
+ .post(`${this.internalGrpcGateway}/mutation`, Object.assign(Object.assign({}, (variables && { variables })), { source: this.projectSource, query, headers: this.request.headers }))
54
54
  .toPromise();
55
55
  return response.data;
56
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"grpc-client.service.js","sourceRoot":"","sources":["../../../src/module/grpc-client/grpc-client.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4D;AAC5D,yCAA4C;AAC5C,uCAAuC;AAQhC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAG/B,YACmB,WAAwB,EACP,OAAgB;QADjC,gBAAW,GAAX,WAAW,CAAa;QACP,YAAO,GAAP,OAAO,CAAS;QAElD,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC;QAC3D,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;IAClD,CAAC;IAEY,KAAK;6DAAC,EAAE,KAAK,EAAE,SAAS,EAAmB;YACtD,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW;qBACpC,IAAI,CAAC,GAAG,IAAI,CAAC,kBAAkB,oBAAoB,kCAC/C,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC,KAC/B,MAAM,EAAE,IAAI,CAAC,aAAa,EAC1B,KAAK,EACL,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,IAC7B;qBACD,SAAS,EAAE,CAAC;gBACf,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gBAC5B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;KAAA;IAEY,QAAQ;6DAAC,EAAE,KAAK,EAAE,SAAS,EAAmB;YACzD,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW;qBACpC,IAAI,CAAC,GAAG,IAAI,CAAC,kBAAkB,uBAAuB,kCAClD,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC,KAC/B,MAAM,EAAE,IAAI,CAAC,aAAa,EAC1B,KAAK,EACL,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,IAC7B;qBACD,SAAS,EAAE,CAAC;gBACf,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gBAC5B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;KAAA;CACF,CAAA;AA5CY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,cAAO,CAAC,CAAA;qCADc,mBAAW;QACE,OAAO;GALzC,oBAAoB,CA4ChC"}
1
+ {"version":3,"file":"grpc-client.service.js","sourceRoot":"","sources":["../../../src/module/grpc-client/grpc-client.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;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BACf,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gBAC5B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;KAAA;CACF,CAAA;AA5CY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,cAAO,CAAC,CAAA;qCADc,mBAAW;QACE,OAAO;GALzC,oBAAoB,CA4ChC"}
@@ -32,9 +32,9 @@ let PHXEnvPublicService = PHXEnvPublicService_1 = class PHXEnvPublicService {
32
32
  getEnvPublic(hostname) {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  try {
35
- const grpcGateway = this.configService.get("INTERNAL_API_GATEWAY");
36
- if (!grpcGateway) {
37
- this.logger.error("INTERNAL_API_GATEWAY is not configured");
35
+ const internalGrpcGateway = this.configService.get("INTERNAL_GRPC_GATEWAY");
36
+ if (!internalGrpcGateway) {
37
+ this.logger.error("INTERNAL_GRPC_GATEWAY is not configured");
38
38
  return;
39
39
  }
40
40
  const config = {
@@ -44,7 +44,7 @@ let PHXEnvPublicService = PHXEnvPublicService_1 = class PHXEnvPublicService {
44
44
  },
45
45
  };
46
46
  const response = yield this.httpService
47
- .post(`${grpcGateway}/grpc-client/env-public`, {}, config)
47
+ .post(`${internalGrpcGateway}/env-public`, {}, config)
48
48
  .toPromise();
49
49
  return response.data;
50
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"env-public.service.js","sourceRoot":"","sources":["../../../src/module/hostname/env-public.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA4C;AAC5C,2CAAoD;AACpD,2CAA+C;AAGxC,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAE9B,YACmB,aAA4B,EAC5B,WAAwB;QADxB,kBAAa,GAAb,aAAa,CAAe;QAC5B,gBAAW,GAAX,WAAW,CAAa;QAH1B,WAAM,GAAG,IAAI,eAAM,CAAC,qBAAmB,CAAC,IAAI,CAAC,CAAC;IAI5D,CAAC;IAES,YAAY,CAAC,QAAgB;;YACxC,IAAI,CAAC;gBACH,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,sBAAsB,CAAC,CAAC;gBAC3E,IAAI,CAAC,WAAW,EAAE,CAAC;oBACjB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;oBAC5D,OAAO;gBACT,CAAC;gBAED,MAAM,MAAM,GAAG;oBACb,OAAO,EAAE;wBACP,cAAc,EAAE,kBAAkB;wBAClC,MAAM,EAAE,QAAQ;qBACjB;iBACF,CAAC;gBAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW;qBACpC,IAAI,CAAC,GAAG,WAAW,yBAAyB,EAAE,EAAE,EAAE,MAAM,CAAC;qBACzD,SAAS,EAAE,CAAC;gBAEf,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,yCAAyC,KAAK,CAAC,OAAO,EAAE,EACxD,KAAK,CAAC,KAAK,CACZ,CAAC;gBACF,OAAO,EAAE,CAAC;YACZ,CAAC;QACH,CAAC;KAAA;CACF,CAAA;AAnCY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAIuB,sBAAa;QACf,mBAAW;GAJhC,mBAAmB,CAmC/B"}
1
+ {"version":3,"file":"env-public.service.js","sourceRoot":"","sources":["../../../src/module/hostname/env-public.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA4C;AAC5C,2CAAoD;AACpD,2CAA+C;AAGxC,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAE9B,YACmB,aAA4B,EAC5B,WAAwB;QADxB,kBAAa,GAAb,aAAa,CAAe;QAC5B,gBAAW,GAAX,WAAW,CAAa;QAH1B,WAAM,GAAG,IAAI,eAAM,CAAC,qBAAmB,CAAC,IAAI,CAAC,CAAC;IAI5D,CAAC;IAES,YAAY,CAAC,QAAgB;;YACxC,IAAI,CAAC;gBACH,MAAM,mBAAmB,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,uBAAuB,CAAC,CAAC;gBACpF,IAAI,CAAC,mBAAmB,EAAE,CAAC;oBACzB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;oBAC7D,OAAO;gBACT,CAAC;gBAED,MAAM,MAAM,GAAG;oBACb,OAAO,EAAE;wBACP,cAAc,EAAE,kBAAkB;wBAClC,MAAM,EAAE,QAAQ;qBACjB;iBACF,CAAC;gBAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW;qBACpC,IAAI,CAAC,GAAG,mBAAmB,aAAa,EAAE,EAAE,EAAE,MAAM,CAAC;qBACrD,SAAS,EAAE,CAAC;gBAEf,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,yCAAyC,KAAK,CAAC,OAAO,EAAE,EACxD,KAAK,CAAC,KAAK,CACZ,CAAC;gBACF,OAAO,EAAE,CAAC;YACZ,CAAC;QACH,CAAC;KAAA;CACF,CAAA;AAnCY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAIuB,sBAAa;QACf,mBAAW;GAJhC,mBAAmB,CAmC/B"}
@@ -32,13 +32,13 @@ let PHXHostnameService = PHXHostnameService_1 = class PHXHostnameService {
32
32
  getListHostname() {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  try {
35
- const internalApiGateway = this.configService.get("INTERNAL_API_GATEWAY");
36
- if (!internalApiGateway) {
37
- this.logger.error("INTERNAL_API_GATEWAY is not configured");
35
+ const internalGrpcGateway = this.configService.get("INTERNAL_GRPC_GATEWAY");
36
+ if (!internalGrpcGateway) {
37
+ this.logger.error("INTERNAL_GRPC_GATEWAY is not configured");
38
38
  return [];
39
39
  }
40
40
  const response = yield this.httpService
41
- .get(`${internalApiGateway}/grpc-client/list-school`)
41
+ .get(`${internalGrpcGateway}/list-school`)
42
42
  .toPromise();
43
43
  return response.data.data;
44
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"hostname.service.js","sourceRoot":"","sources":["../../../src/module/hostname/hostname.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA4C;AAC5C,2CAAoD;AACpD,2CAA+C;AAGxC,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAE7B,YACmB,aAA4B,EAC5B,WAAwB;QADxB,kBAAa,GAAb,aAAa,CAAe;QAC5B,gBAAW,GAAX,WAAW,CAAa;QAH1B,WAAM,GAAG,IAAI,eAAM,CAAC,oBAAkB,CAAC,IAAI,CAAC,CAAC;IAI3D,CAAC;IAES,eAAe;;YAC1B,IAAI,CAAC;gBACH,MAAM,kBAAkB,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,sBAAsB,CAAC,CAAC;gBAClF,IAAI,CAAC,kBAAkB,EAAE,CAAC;oBACxB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;oBAC5D,OAAO,EAAE,CAAC;gBACZ,CAAC;gBAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW;qBACpC,GAAG,CAAC,GAAG,kBAAkB,0BAA0B,CAAC;qBACpD,SAAS,EAAE,CAAC;gBACf,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YAC5B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,yCAAyC,KAAK,CAAC,OAAO,EAAE,EACxD,KAAK,CAAC,KAAK,CACZ,CAAC;gBACF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