mfance-shark-v1 1.0.37 → 1.0.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.
- package/dist/common/entities/index.d.ts +2 -1
- package/dist/common/entities/totups/totups-agent.entity.d.ts +5 -1
- package/dist/common/entities/totups/totups-agent.entity.js +12 -0
- package/dist/common/entities/totups/totups-agent.entity.js.map +1 -1
- package/dist/common/entities/totups/totups-dist.entity.d.ts +5 -1
- package/dist/common/entities/totups/totups-dist.entity.js +14 -0
- package/dist/common/entities/totups/totups-dist.entity.js.map +1 -1
- package/dist/common/entities/users/agent.entity.d.ts +2 -0
- package/dist/common/entities/users/agent.entity.js +5 -0
- package/dist/common/entities/users/agent.entity.js.map +1 -1
- package/dist/common/entities/users/distributor.entity.d.ts +4 -0
- package/dist/common/entities/users/distributor.entity.js +10 -0
- package/dist/common/entities/users/distributor.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ import { Distributor } from './users/distributor.entity';
|
|
|
22
22
|
import { Audit } from './audit.entity';
|
|
23
23
|
import { OtpCode } from './otp-code.entity';
|
|
24
24
|
import { Agent } from './users/agent.entity';
|
|
25
|
+
import { TotupsAgent } from './totups/totups-agent.entity';
|
|
25
26
|
import { TotupsDist } from './totups/totups-dist.entity';
|
|
26
27
|
import { ThirdPartyProvider } from './thirdpartyprovider.entity';
|
|
27
|
-
export declare const entities: (typeof File | typeof Permission | typeof Role | typeof User | typeof SalePoint | typeof Country | typeof Stock | typeof Currency | typeof CaisseDailyWorker | typeof Caisse | typeof Operation | typeof StockSalePoint | typeof CurrencyValue | typeof StockPartner | typeof Rock | typeof StockStonePartner | typeof OtpCode | typeof CaisseOperationType | typeof CaisseOperation | typeof SoldeCaisses | typeof SoldeCustomers | typeof
|
|
28
|
+
export declare const entities: (typeof File | typeof Permission | typeof Role | typeof User | typeof SalePoint | typeof Country | typeof Stock | typeof Currency | typeof CaisseDailyWorker | typeof Caisse | typeof Operation | typeof StockSalePoint | typeof CurrencyValue | typeof StockPartner | typeof Rock | typeof StockStonePartner | typeof OtpCode | typeof CaisseOperationType | typeof CaisseOperation | typeof SoldeCaisses | typeof SoldeCustomers | typeof Agent | typeof Distributor | typeof TotupsAgent | typeof TotupsDist | typeof Audit | typeof ThirdPartyProvider)[];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { AuditableEntity } from '
|
|
1
|
+
import { AuditableEntity } from '../../../auditable/auditable.entity';
|
|
2
|
+
import { Agent } from '../users/agent.entity';
|
|
3
|
+
import { Distributor } from '../users/distributor.entity';
|
|
2
4
|
export declare class TotupsAgent extends AuditableEntity {
|
|
3
5
|
agentId: string;
|
|
6
|
+
agent: Agent;
|
|
4
7
|
distributorId: string;
|
|
8
|
+
distributor: Distributor;
|
|
5
9
|
reference: string;
|
|
6
10
|
amount: number;
|
|
7
11
|
currency: string;
|
|
@@ -13,6 +13,8 @@ exports.TotupsAgent = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const table_names_constant_1 = require("../../utils/constants/table-names.constant");
|
|
15
15
|
const auditable_entity_1 = require("../../../auditable/auditable.entity");
|
|
16
|
+
const agent_entity_1 = require("../users/agent.entity");
|
|
17
|
+
const distributor_entity_1 = require("../users/distributor.entity");
|
|
16
18
|
let TotupsAgent = class TotupsAgent extends auditable_entity_1.AuditableEntity {
|
|
17
19
|
};
|
|
18
20
|
exports.TotupsAgent = TotupsAgent;
|
|
@@ -20,10 +22,20 @@ __decorate([
|
|
|
20
22
|
(0, typeorm_1.Column)({ name: 'agent_id' }),
|
|
21
23
|
__metadata("design:type", String)
|
|
22
24
|
], TotupsAgent.prototype, "agentId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ManyToOne)(() => agent_entity_1.Agent, (agent) => agent.totups),
|
|
27
|
+
(0, typeorm_1.JoinColumn)({ name: 'agent_id' }),
|
|
28
|
+
__metadata("design:type", agent_entity_1.Agent)
|
|
29
|
+
], TotupsAgent.prototype, "agent", void 0);
|
|
23
30
|
__decorate([
|
|
24
31
|
(0, typeorm_1.Column)({ name: 'distributor_id' }),
|
|
25
32
|
__metadata("design:type", String)
|
|
26
33
|
], TotupsAgent.prototype, "distributorId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.ManyToOne)(() => distributor_entity_1.Distributor, (distributor) => distributor.totups),
|
|
36
|
+
(0, typeorm_1.JoinColumn)({ name: 'distributor_id' }),
|
|
37
|
+
__metadata("design:type", distributor_entity_1.Distributor)
|
|
38
|
+
], TotupsAgent.prototype, "distributor", void 0);
|
|
27
39
|
__decorate([
|
|
28
40
|
(0, typeorm_1.Column)({ name: 'reference', nullable: true }),
|
|
29
41
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"totups-agent.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/totups/totups-agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"totups-agent.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/totups/totups-agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,qFAAyE;AACzE,0EAAsE;AACtE,wDAA8C;AAC9C,oEAA0D;AAKnD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kCAAe;CAiD/C,CAAA;AAjDY,kCAAW;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;4CACb;AAIhB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;IAC/C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BAC1B,oBAAK;0CAAC;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAA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AQ,EAAE,IAAI,EAAC,CAAC;8BACpC,IAAI;kDAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,aAAa,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;+CAC7B;sBA/CR,WAAW;IAHvB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kCAAW,CAAC,YAAY;KAC/B,CAAC;GACW,WAAW,CAiDvB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { AuditableEntity } from '
|
|
1
|
+
import { AuditableEntity } from '../../../auditable/auditable.entity';
|
|
2
|
+
import { Distributor } from '../users/distributor.entity';
|
|
2
3
|
export declare class TotupsDist extends AuditableEntity {
|
|
3
4
|
distributorId: string;
|
|
5
|
+
distributor: Distributor;
|
|
4
6
|
reference: string;
|
|
5
7
|
amount: number;
|
|
6
8
|
currency: string;
|
|
@@ -12,4 +14,6 @@ export declare class TotupsDist extends AuditableEntity {
|
|
|
12
14
|
approvedDate: Date;
|
|
13
15
|
cancelledDate: Date;
|
|
14
16
|
approvedBy: number;
|
|
17
|
+
proofOfPaymentUrl: string;
|
|
18
|
+
proofOfPaymentUrl2: string;
|
|
15
19
|
}
|
|
@@ -13,6 +13,7 @@ exports.TotupsDist = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const table_names_constant_1 = require("../../utils/constants/table-names.constant");
|
|
15
15
|
const auditable_entity_1 = require("../../../auditable/auditable.entity");
|
|
16
|
+
const distributor_entity_1 = require("../users/distributor.entity");
|
|
16
17
|
let TotupsDist = class TotupsDist extends auditable_entity_1.AuditableEntity {
|
|
17
18
|
};
|
|
18
19
|
exports.TotupsDist = TotupsDist;
|
|
@@ -20,6 +21,11 @@ __decorate([
|
|
|
20
21
|
(0, typeorm_1.Column)({ name: 'distributor_id' }),
|
|
21
22
|
__metadata("design:type", String)
|
|
22
23
|
], TotupsDist.prototype, "distributorId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.ManyToOne)(() => distributor_entity_1.Distributor, (distributor) => distributor.totupsDist),
|
|
26
|
+
(0, typeorm_1.JoinColumn)({ name: 'distributor_id' }),
|
|
27
|
+
__metadata("design:type", distributor_entity_1.Distributor)
|
|
28
|
+
], TotupsDist.prototype, "distributor", void 0);
|
|
23
29
|
__decorate([
|
|
24
30
|
(0, typeorm_1.Column)({ name: 'reference', nullable: true }),
|
|
25
31
|
__metadata("design:type", String)
|
|
@@ -64,6 +70,14 @@ __decorate([
|
|
|
64
70
|
(0, typeorm_1.Column)({ name: 'approved_by', nullable: true }),
|
|
65
71
|
__metadata("design:type", Number)
|
|
66
72
|
], TotupsDist.prototype, "approvedBy", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ name: 'proof_of_payment_url', nullable: true }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], TotupsDist.prototype, "proofOfPaymentUrl", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ name: 'proof_of_payment_url_2', nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], TotupsDist.prototype, "proofOfPaymentUrl2", void 0);
|
|
67
81
|
exports.TotupsDist = TotupsDist = __decorate([
|
|
68
82
|
(0, typeorm_1.Entity)({
|
|
69
83
|
name: table_names_constant_1.TABLE_NAMES.TOTUPS_DIST
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"totups-dist.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/totups/totups-dist.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"totups-dist.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/totups/totups-dist.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,qFAAyE;AACzE,0EAAsE;AACtE,oEAA0D;AAKnD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,kCAAe;CAgD9C,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B;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,gBAAgB,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;8BACpC,IAAI;iDAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,aAAa,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;8CAC7B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAI,sBAAsB,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;qDAChC;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAI,wBAAwB,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;sDACjC;qBA9ChB,UAAU;IAHtB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kCAAW,CAAC,WAAW;KAC9B,CAAC;GACW,UAAU,CAgDtB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { User } from '../user.entity';
|
|
2
2
|
import { Distributor } from './distributor.entity';
|
|
3
3
|
import { AuditableEntity } from '../../../auditable/auditable.entity';
|
|
4
|
+
import { TotupsAgent } from '../totups/totups-agent.entity';
|
|
4
5
|
export declare class Agent extends AuditableEntity {
|
|
5
6
|
userId: string;
|
|
6
7
|
agentCode: string;
|
|
@@ -13,4 +14,5 @@ export declare class Agent extends AuditableEntity {
|
|
|
13
14
|
isAccountBreachedDate: Date;
|
|
14
15
|
distributor: Distributor;
|
|
15
16
|
user: User;
|
|
17
|
+
totups: TotupsAgent[];
|
|
16
18
|
}
|
|
@@ -15,6 +15,7 @@ const user_entity_1 = require("../user.entity");
|
|
|
15
15
|
const distributor_entity_1 = require("./distributor.entity");
|
|
16
16
|
const auditable_entity_1 = require("../../../auditable/auditable.entity");
|
|
17
17
|
const table_names_constant_1 = require("../../utils/constants/table-names.constant");
|
|
18
|
+
const totups_agent_entity_1 = require("../totups/totups-agent.entity");
|
|
18
19
|
let Agent = class Agent extends auditable_entity_1.AuditableEntity {
|
|
19
20
|
};
|
|
20
21
|
exports.Agent = Agent;
|
|
@@ -64,6 +65,10 @@ __decorate([
|
|
|
64
65
|
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
65
66
|
__metadata("design:type", user_entity_1.User)
|
|
66
67
|
], Agent.prototype, "user", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.OneToMany)(() => totups_agent_entity_1.TotupsAgent, (totup) => totup.agent),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], Agent.prototype, "totups", void 0);
|
|
67
72
|
exports.Agent = Agent = __decorate([
|
|
68
73
|
(0, typeorm_1.Entity)({
|
|
69
74
|
name: table_names_constant_1.TABLE_NAMES.AGENT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/users/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/users/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA0E;AAC1E,gDAAsC;AACtC,6DAAmD;AACnD,0EAAsE;AACtE,qFAAyE;AACzE,uEAA4D;AAKrD,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,kCAAe;CAuCzC,CAAA;AAvCY,sBAAK;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;qCACb;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAG,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC9B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAG,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC9B;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,EAAG,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC1C;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;uCAC3B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gDAC7B;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC/B;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtC,IAAI;oDAAC;AAI5B;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,gCAAW,CAAC;IAC3B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BAC1B,gCAAW;0CAAC;AAIzB;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACpB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;mCAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;;qCAC/B;gBAtCX,KAAK;IAHjB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kCAAW,CAAC,KAAK;KACxB,CAAC;GACW,KAAK,CAuCjB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { AuditableEntity } from "../../../auditable/auditable.entity";
|
|
2
|
+
import { TotupsAgent } from "../totups/totups-agent.entity";
|
|
3
|
+
import { TotupsDist } from "../totups/totups-dist.entity";
|
|
2
4
|
export declare class Distributor extends AuditableEntity {
|
|
3
5
|
name: string;
|
|
4
6
|
distributorCode: string;
|
|
@@ -13,4 +15,6 @@ export declare class Distributor extends AuditableEntity {
|
|
|
13
15
|
isDeleted: boolean;
|
|
14
16
|
isVerified: boolean;
|
|
15
17
|
isBlocked: boolean;
|
|
18
|
+
totups: TotupsAgent[];
|
|
19
|
+
totupsDist: TotupsDist[];
|
|
16
20
|
}
|
|
@@ -14,6 +14,8 @@ const auditable_entity_1 = require("../../../auditable/auditable.entity");
|
|
|
14
14
|
const table_names_constant_1 = require("../../utils/constants/table-names.constant");
|
|
15
15
|
const classes_1 = require("@automapper/classes");
|
|
16
16
|
const typeorm_1 = require("typeorm");
|
|
17
|
+
const totups_agent_entity_1 = require("../totups/totups-agent.entity");
|
|
18
|
+
const totups_dist_entity_1 = require("../totups/totups-dist.entity");
|
|
17
19
|
let Distributor = class Distributor extends auditable_entity_1.AuditableEntity {
|
|
18
20
|
};
|
|
19
21
|
exports.Distributor = Distributor;
|
|
@@ -82,6 +84,14 @@ __decorate([
|
|
|
82
84
|
(0, typeorm_1.Column)({ nullable: false, type: 'boolean', default: false }),
|
|
83
85
|
__metadata("design:type", Boolean)
|
|
84
86
|
], Distributor.prototype, "isBlocked", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.OneToMany)(() => totups_agent_entity_1.TotupsAgent, (totup) => totup.distributor),
|
|
89
|
+
__metadata("design:type", Array)
|
|
90
|
+
], Distributor.prototype, "totups", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.OneToMany)(() => totups_dist_entity_1.TotupsDist, (totup) => totup.distributor),
|
|
93
|
+
__metadata("design:type", Array)
|
|
94
|
+
], Distributor.prototype, "totupsDist", void 0);
|
|
85
95
|
exports.Distributor = Distributor = __decorate([
|
|
86
96
|
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.DISTRIBUTOR)
|
|
87
97
|
], Distributor);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distributor.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/users/distributor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qFAAyE;AACzE,iDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"distributor.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/users/distributor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qFAAyE;AACzE,iDAA8C;AAC9C,qCAAoD;AACpD,uEAA4D;AAC5D,qEAA0D;AAGnD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kCAAe;CA4D/C,CAAA;AA5DY,kCAAW;AAGpB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yCACf;AAIb;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACH;AAIxB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACb;AAId;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACb;AAId;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACX;AAIhB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACT;AAIlB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACV;AAIjB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI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