@talismn/balances 0.2.3 → 0.3.1

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 (36) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/{BalanceModule.d.ts → declarations/src/BalanceModule.d.ts} +7 -7
  3. package/dist/{TalismanBalancesDatabase.d.ts → declarations/src/TalismanBalancesDatabase.d.ts} +0 -0
  4. package/dist/{helpers.d.ts → declarations/src/helpers.d.ts} +17 -1
  5. package/dist/{index.d.ts → declarations/src/index.d.ts} +0 -0
  6. package/dist/{log.d.ts → declarations/src/log.d.ts} +0 -0
  7. package/dist/{plugins.d.ts → declarations/src/plugins.d.ts} +0 -0
  8. package/dist/declarations/src/types/addresses.d.ts +4 -0
  9. package/dist/{types → declarations/src/types}/balances.d.ts +4 -4
  10. package/dist/{types → declarations/src/types}/balancetypes.d.ts +12 -12
  11. package/dist/{types → declarations/src/types}/index.d.ts +0 -0
  12. package/dist/{types → declarations/src/types}/subscriptions.d.ts +1 -1
  13. package/dist/talismn-balances.cjs.d.ts +1 -0
  14. package/dist/talismn-balances.cjs.dev.js +705 -0
  15. package/dist/talismn-balances.cjs.js +7 -0
  16. package/dist/talismn-balances.cjs.prod.js +705 -0
  17. package/dist/talismn-balances.esm.js +683 -0
  18. package/package.json +20 -15
  19. package/plugins/dist/talismn-balances-plugins.cjs.d.ts +1 -0
  20. package/plugins/dist/talismn-balances-plugins.cjs.dev.js +2 -0
  21. package/plugins/dist/talismn-balances-plugins.cjs.js +7 -0
  22. package/plugins/dist/talismn-balances-plugins.cjs.prod.js +2 -0
  23. package/plugins/dist/talismn-balances-plugins.esm.js +1 -0
  24. package/plugins/package.json +2 -3
  25. package/dist/BalanceModule.js +0 -29
  26. package/dist/TalismanBalancesDatabase.js +0 -23
  27. package/dist/helpers.js +0 -11
  28. package/dist/index.js +0 -31
  29. package/dist/log.js +0 -10
  30. package/dist/plugins.js +0 -2
  31. package/dist/types/addresses.d.ts +0 -4
  32. package/dist/types/addresses.js +0 -2
  33. package/dist/types/balances.js +0 -470
  34. package/dist/types/balancetypes.js +0 -34
  35. package/dist/types/index.js +0 -20
  36. package/dist/types/subscriptions.js +0 -2
@@ -1,470 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SumBalancesFormatter = exports.FiatSumBalancesFormatter = exports.BalanceFormatter = exports.Balance = exports.Balances = void 0;
13
- const util_1 = require("@talismn/util");
14
- const memoize_1 = __importDefault(require("lodash/memoize"));
15
- const typescript_memoize_1 = require("typescript-memoize");
16
- const log_1 = __importDefault(require("../log"));
17
- const balancetypes_1 = require("./balancetypes");
18
- /**
19
- * A collection of balances.
20
- */
21
- class Balances {
22
- //
23
- // Properties
24
- //
25
- #balances = {};
26
- //
27
- // Methods
28
- //
29
- constructor(balances, hydrate) {
30
- // handle Balances (convert to Balance[])
31
- if (balances instanceof Balances)
32
- return new Balances([...balances], hydrate);
33
- // handle Balance (convert to Balance[])
34
- if (balances instanceof Balance)
35
- return new Balances([balances], hydrate);
36
- // handle BalanceJsonList (the only remaining non-array type of balances) (convert to BalanceJson[])
37
- if (!Array.isArray(balances))
38
- return new Balances(Object.values(balances), hydrate);
39
- // handle no balances
40
- if (balances.length === 0)
41
- return this;
42
- // handle BalanceJson[]
43
- if (!(0, util_1.isArrayOf)(balances, Balance))
44
- return new Balances(balances.map((storage) => new Balance(storage)), hydrate);
45
- // handle Balance[]
46
- this.#balances = Object.fromEntries(balances.map((balance) => [balance.id, balance]));
47
- if (hydrate !== undefined)
48
- this.hydrate(hydrate);
49
- }
50
- /**
51
- * Calling toJSON on a collection of balances will return the underlying BalanceJsonList.
52
- */
53
- toJSON = () => Object.fromEntries(Object.entries(this.#balances)
54
- .map(([id, balance]) => {
55
- try {
56
- return [id, balance.toJSON()];
57
- }
58
- catch (error) {
59
- log_1.default.error("Failed to convert balance to JSON", error, { id, balance });
60
- return null;
61
- }
62
- })
63
- .filter(Array.isArray));
64
- /**
65
- * Allows the collection to be iterated over.
66
- *
67
- * @example
68
- * [...balances].forEach(balance => { // do something // })
69
- *
70
- * @example
71
- * for (const balance of balances) {
72
- * // do something
73
- * }
74
- */
75
- [Symbol.iterator] = () =>
76
- // Create an array of the balances in this collection and return the result of its iterator.
77
- Object.values(this.#balances)[Symbol.iterator]();
78
- /**
79
- * Hydrates all balances in this collection.
80
- *
81
- * @param sources - The sources to hydrate from.
82
- */
83
- hydrate = (sources) => {
84
- Object.values(this.#balances).map((balance) => balance.hydrate(sources));
85
- };
86
- /**
87
- * Retrieve a balance from this collection by id.
88
- *
89
- * @param id - The id of the balance to fetch.
90
- * @returns The balance if one exists, or none.
91
- */
92
- get = (id) => this.#balances[id] || null;
93
- /**
94
- * Retrieve balances from this collection by search query.
95
- *
96
- * @param query - The search query.
97
- * @returns All balances which match the query.
98
- */
99
- find = (query) => {
100
- // construct filter
101
- const orQueries = (Array.isArray(query) ? query : [query]).map((query) => typeof query === "function" ? query : Object.entries(query));
102
- // filter balances
103
- const filter = (balance) => orQueries.some((query) => typeof query === "function"
104
- ? query(balance)
105
- : query.every(([key, value]) => balance[key] === value));
106
- // return filter matches
107
- return new Balances([...this].filter(filter));
108
- };
109
- /**
110
- * Add some balances to this collection.
111
- * Added balances take priority over existing balances.
112
- * The aggregation of the two collections is returned.
113
- * The original collection is not mutated.
114
- *
115
- * @param balances - Either a balance or collection of balances to add.
116
- * @returns The new collection of balances.
117
- */
118
- add = (balances) => {
119
- // handle single balance
120
- if (balances instanceof Balance)
121
- return this.add(new Balances(balances));
122
- // merge balances
123
- const mergedBalances = { ...this.#balances };
124
- [...balances].forEach((balance) => (mergedBalances[balance.id] = balance));
125
- // return new balances
126
- return new Balances(Object.values(mergedBalances));
127
- };
128
- /**
129
- * Remove balances from this collection by id.
130
- * A new collection without these balances is returned.
131
- * The original collection is not mutated.
132
- *
133
- * @param ids - The id(s) of the balances to remove.
134
- * @returns The new collection of balances.
135
- */
136
- remove = (ids) => {
137
- // handle single id
138
- if (!Array.isArray(ids))
139
- return this.remove([ids]);
140
- // merge balances
141
- const removedBalances = { ...this.#balances };
142
- ids.forEach((id) => delete removedBalances[id]);
143
- // return new balances
144
- return new Balances(Object.values(removedBalances));
145
- };
146
- // TODO: Add some more useful aggregator methods
147
- /**
148
- * Get an array of balances in this collection, sorted by chain sortIndex.
149
- *
150
- * @returns A sorted array of the balances in this collection.
151
- */
152
- get sorted() {
153
- return [...this].sort((a, b) => ((a.chain || a.evmNetwork)?.sortIndex || Number.MAX_SAFE_INTEGER) -
154
- ((b.chain || b.evmNetwork)?.sortIndex || Number.MAX_SAFE_INTEGER));
155
- }
156
- /**
157
- * Get the number of balances in this collection.
158
- *
159
- * @returns The number of balances in this collection.
160
- */
161
- get count() {
162
- return [...this].length;
163
- }
164
- /**
165
- * Get the summed value of balances in this collection.
166
- * TODO: Sum up token amounts AND fiat amounts
167
- *
168
- * @example
169
- * // Get the sum of all transferable balances in usd.
170
- * balances.sum.fiat('usd').transferable
171
- */
172
- get sum() {
173
- return new SumBalancesFormatter(this);
174
- }
175
- }
176
- __decorate([
177
- (0, typescript_memoize_1.Memoize)()
178
- ], Balances.prototype, "sorted", null);
179
- __decorate([
180
- (0, typescript_memoize_1.Memoize)()
181
- ], Balances.prototype, "count", null);
182
- __decorate([
183
- (0, typescript_memoize_1.Memoize)()
184
- ], Balances.prototype, "sum", null);
185
- exports.Balances = Balances;
186
- /**
187
- * An individual balance.
188
- */
189
- class Balance {
190
- //
191
- // Properties
192
- //
193
- /** The underlying data for this balance */
194
- #storage;
195
- #db = null;
196
- //
197
- // Methods
198
- //
199
- constructor(storage, hydrate) {
200
- this.#format = (0, memoize_1.default)(this.#format);
201
- this.#storage = storage;
202
- if (hydrate !== undefined)
203
- this.hydrate(hydrate);
204
- }
205
- toJSON = () => this.#storage;
206
- isSource = (source) => this.#storage.source === source;
207
- // // TODO: Fix this method, the types don't work with our plugin architecture.
208
- // // Specifically, the `BalanceJson` type is compiled down to `IBalance` in the following way:
209
- // //
210
- // // toJSON: () => BalanceJson // works
211
- // // isSource: (source: BalanceSource) => boolean // works
212
- // // asSource: <P extends string>(source: P) => NarrowBalanceType<IBalance, P> | null // Doesn't work! IBalance should just be BalanceJson!
213
- // //
214
- // // `IBalance` won't match the type of `BalanceSource` after `PluginBalanceTypes` has been extended by balance plugins.
215
- // // As a result, typescript will think that the returned #storage is not a BalanceJson.
216
- // asSource = <P extends BalanceSource>(source: P): NarrowBalanceType<BalanceJson, P> | null => {
217
- // if (this.#storage.source === source) return this.#storage as NarrowBalanceType<BalanceJson, P>
218
- // return null
219
- // }
220
- hydrate = (hydrate) => {
221
- if (hydrate !== undefined)
222
- this.#db = hydrate;
223
- };
224
- #format = (balance) => new BalanceFormatter(typeof balance === "bigint" ? balance.toString() : balance, this.decimals || undefined, this.#db?.tokenRates && this.#db.tokenRates[this.tokenId]);
225
- //
226
- // Accessors
227
- //
228
- get id() {
229
- const { source, address, chainId, evmNetworkId, tokenId } = this.#storage;
230
- const locationId = chainId !== undefined ? chainId : evmNetworkId;
231
- return `${source}-${address}-${locationId}-${tokenId}`;
232
- }
233
- get source() {
234
- return this.#storage.source;
235
- }
236
- get status() {
237
- return this.#storage.status;
238
- }
239
- get address() {
240
- return this.#storage.address;
241
- }
242
- get chainId() {
243
- return this.#storage.chainId;
244
- }
245
- get chain() {
246
- return (this.#db?.chains && this.chainId && this.#db?.chains[this.chainId]) || null;
247
- }
248
- get evmNetworkId() {
249
- return this.#storage.evmNetworkId;
250
- }
251
- get evmNetwork() {
252
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
253
- return (this.#db?.evmNetworks && this.#db?.evmNetworks[this.evmNetworkId]) || null;
254
- }
255
- get tokenId() {
256
- return this.#storage.tokenId;
257
- }
258
- get token() {
259
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
260
- return (this.#db?.tokens && this.#db?.tokens[this.tokenId]) || null;
261
- }
262
- get decimals() {
263
- return this.token?.decimals || null;
264
- }
265
- get rates() {
266
- return (this.#db?.tokenRates && this.#db.tokenRates[this.tokenId]) || null;
267
- }
268
- /**
269
- * The total balance of this token.
270
- * Includes the free and the reserved amount.
271
- * The balance will be reaped if this goes below the existential deposit.
272
- */
273
- get total() {
274
- const extra = (0, balancetypes_1.includeInTotalExtraAmount)(this.#storage.extra);
275
- return this.#format(this.free.planck + this.reserved.planck + extra);
276
- }
277
- /** The non-reserved balance of this token. Includes the frozen amount. Is included in the total. */
278
- get free() {
279
- return this.#format(typeof this.#storage.free === "string"
280
- ? BigInt(this.#storage.free)
281
- : Array.isArray(this.#storage.free)
282
- ? this.#storage.free
283
- .map((reserve) => BigInt(reserve.amount))
284
- .reduce((a, b) => a + b, BigInt("0"))
285
- : BigInt(this.#storage.free?.amount || "0"));
286
- }
287
- /** The reserved balance of this token. Is included in the total. */
288
- get reserved() {
289
- return this.#format(typeof this.#storage.reserves === "string"
290
- ? BigInt(this.#storage.reserves)
291
- : Array.isArray(this.#storage.reserves)
292
- ? this.#storage.reserves
293
- .map((reserve) => BigInt(reserve.amount))
294
- .reduce((a, b) => a + b, BigInt("0"))
295
- : BigInt(this.#storage.reserves?.amount || "0"));
296
- }
297
- /** The frozen balance of this token. Is included in the free amount. */
298
- get locked() {
299
- return this.#format(typeof this.#storage.locks === "string"
300
- ? BigInt(this.#storage.locks)
301
- : Array.isArray(this.#storage.locks)
302
- ? this.#storage.locks
303
- .map((lock) => BigInt(lock.amount))
304
- .reduce((a, b) => util_1.BigMath.max(a, b), BigInt("0"))
305
- : BigInt(this.#storage.locks?.amount || "0"));
306
- }
307
- /** @depreacted - use balance.locked */
308
- get frozen() {
309
- return this.locked;
310
- }
311
- /** The transferable balance of this token. Is generally the free amount - the miscFrozen amount. */
312
- get transferable() {
313
- // if no locks exist, transferable is equal to the free amount
314
- if (!this.#storage.locks)
315
- return this.free;
316
- // find the largest lock (but ignore any locks which are marked as `includeInTransferable`)
317
- const excludeAmount = (0, balancetypes_1.excludeFromTransferableAmount)(this.#storage.locks);
318
- // subtract the lock from the free amount (but don't go below 0)
319
- return this.#format(util_1.BigMath.max(this.free.planck - excludeAmount, BigInt("0")));
320
- }
321
- /** The feePayable balance of this token. Is generally the free amount - the feeFrozen amount. */
322
- get feePayable() {
323
- // if no locks exist, feePayable is equal to the free amount
324
- if (!this.#storage.locks)
325
- return this.free;
326
- // find the largest lock which can't be used to pay tx fees
327
- const excludeAmount = (0, balancetypes_1.excludeFromFeePayableLocks)(this.#storage.locks)
328
- .map((lock) => BigInt(lock.amount))
329
- .reduce((max, lock) => util_1.BigMath.max(max, lock), BigInt("0"));
330
- // subtract the lock from the free amount (but don't go below 0)
331
- return this.#format(util_1.BigMath.max(this.free.planck - excludeAmount, BigInt("0")));
332
- }
333
- }
334
- __decorate([
335
- (0, typescript_memoize_1.Memoize)()
336
- ], Balance.prototype, "total", null);
337
- __decorate([
338
- (0, typescript_memoize_1.Memoize)()
339
- ], Balance.prototype, "free", null);
340
- __decorate([
341
- (0, typescript_memoize_1.Memoize)()
342
- ], Balance.prototype, "reserved", null);
343
- __decorate([
344
- (0, typescript_memoize_1.Memoize)()
345
- ], Balance.prototype, "locked", null);
346
- __decorate([
347
- (0, typescript_memoize_1.Memoize)()
348
- ], Balance.prototype, "frozen", null);
349
- __decorate([
350
- (0, typescript_memoize_1.Memoize)()
351
- ], Balance.prototype, "transferable", null);
352
- __decorate([
353
- (0, typescript_memoize_1.Memoize)()
354
- ], Balance.prototype, "feePayable", null);
355
- exports.Balance = Balance;
356
- class BalanceFormatter {
357
- #planck;
358
- #decimals;
359
- #fiatRatios;
360
- constructor(planck, decimals, fiatRatios) {
361
- this.#planck = typeof planck === "bigint" ? planck.toString() : planck ?? "0";
362
- this.#decimals = decimals || 0;
363
- this.#fiatRatios = fiatRatios || null;
364
- this.fiat = (0, memoize_1.default)(this.fiat);
365
- }
366
- toJSON = () => this.#planck;
367
- get planck() {
368
- return BigInt(this.#planck);
369
- }
370
- get tokens() {
371
- return (0, util_1.planckToTokens)(this.#planck, this.#decimals);
372
- }
373
- fiat(currency) {
374
- if (!this.#fiatRatios)
375
- return null;
376
- const ratio = this.#fiatRatios[currency];
377
- if (!ratio)
378
- return null;
379
- return parseFloat(this.tokens) * ratio;
380
- }
381
- }
382
- __decorate([
383
- (0, typescript_memoize_1.Memoize)()
384
- ], BalanceFormatter.prototype, "tokens", null);
385
- exports.BalanceFormatter = BalanceFormatter;
386
- class FiatSumBalancesFormatter {
387
- #balances;
388
- #currency;
389
- constructor(balances, currency) {
390
- this.#balances = balances;
391
- this.#currency = currency;
392
- this.#sum = (0, memoize_1.default)(this.#sum);
393
- }
394
- #sum = (balanceField) => {
395
- // a function to get a fiat amount from a balance
396
- const fiat = (balance) => balance[balanceField].fiat(this.#currency) || 0;
397
- // a function to add two amounts
398
- const sum = (a, b) => a + b;
399
- return [...this.#balances].reduce((total, balance) => sum(
400
- // add the total amount...
401
- total,
402
- // ...to the fiat amount of each balance
403
- fiat(balance)),
404
- // start with a total of 0
405
- 0);
406
- };
407
- /**
408
- * The total balance of these tokens. Includes the free and the reserved amount.
409
- */
410
- get total() {
411
- return this.#sum("total");
412
- }
413
- /** The non-reserved balance of these tokens. Includes the frozen amount. Is included in the total. */
414
- get free() {
415
- return this.#sum("free");
416
- }
417
- /** The reserved balance of these tokens. Is included in the total. */
418
- get reserved() {
419
- return this.#sum("reserved");
420
- }
421
- /** The frozen balance of these tokens. Is included in the free amount. */
422
- get locked() {
423
- return this.#sum("locked");
424
- }
425
- /** @deprecated - use balances.locked */
426
- get frozen() {
427
- return this.locked;
428
- }
429
- /** The transferable balance of these tokens. Is generally the free amount - the miscFrozen amount. */
430
- get transferable() {
431
- return this.#sum("transferable");
432
- }
433
- /** The feePayable balance of these tokens. Is generally the free amount - the feeFrozen amount. */
434
- get feePayable() {
435
- return this.#sum("feePayable");
436
- }
437
- }
438
- __decorate([
439
- (0, typescript_memoize_1.Memoize)()
440
- ], FiatSumBalancesFormatter.prototype, "total", null);
441
- __decorate([
442
- (0, typescript_memoize_1.Memoize)()
443
- ], FiatSumBalancesFormatter.prototype, "free", null);
444
- __decorate([
445
- (0, typescript_memoize_1.Memoize)()
446
- ], FiatSumBalancesFormatter.prototype, "reserved", null);
447
- __decorate([
448
- (0, typescript_memoize_1.Memoize)()
449
- ], FiatSumBalancesFormatter.prototype, "locked", null);
450
- __decorate([
451
- (0, typescript_memoize_1.Memoize)()
452
- ], FiatSumBalancesFormatter.prototype, "frozen", null);
453
- __decorate([
454
- (0, typescript_memoize_1.Memoize)()
455
- ], FiatSumBalancesFormatter.prototype, "transferable", null);
456
- __decorate([
457
- (0, typescript_memoize_1.Memoize)()
458
- ], FiatSumBalancesFormatter.prototype, "feePayable", null);
459
- exports.FiatSumBalancesFormatter = FiatSumBalancesFormatter;
460
- class SumBalancesFormatter {
461
- #balances;
462
- constructor(balances) {
463
- this.#balances = balances;
464
- this.fiat = (0, memoize_1.default)(this.fiat);
465
- }
466
- fiat(currency) {
467
- return new FiatSumBalancesFormatter(this.#balances, currency);
468
- }
469
- }
470
- exports.SumBalancesFormatter = SumBalancesFormatter;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.includeInTotalExtraAmount = exports.excludeFromFeePayableLocks = exports.excludeFromTransferableAmount = void 0;
4
- const util_1 = require("@talismn/util");
5
- function excludeFromTransferableAmount(locks) {
6
- if (typeof locks === "string")
7
- return BigInt(locks);
8
- if (!Array.isArray(locks))
9
- locks = [locks];
10
- return locks
11
- .filter((lock) => lock.includeInTransferable !== true)
12
- .map((lock) => BigInt(lock.amount))
13
- .reduce((max, lock) => util_1.BigMath.max(max, lock), BigInt("0"));
14
- }
15
- exports.excludeFromTransferableAmount = excludeFromTransferableAmount;
16
- function excludeFromFeePayableLocks(locks) {
17
- if (typeof locks === "string")
18
- return [];
19
- if (!Array.isArray(locks))
20
- locks = [locks];
21
- return locks.filter((lock) => lock.excludeFromFeePayable);
22
- }
23
- exports.excludeFromFeePayableLocks = excludeFromFeePayableLocks;
24
- function includeInTotalExtraAmount(extra) {
25
- if (!extra)
26
- return BigInt("0");
27
- if (!Array.isArray(extra))
28
- extra = [extra];
29
- return extra
30
- .filter((extra) => extra.includeInTotal)
31
- .map((extra) => BigInt(extra.amount))
32
- .reduce((a, b) => a + b, BigInt("0"));
33
- }
34
- exports.includeInTotalExtraAmount = includeInTotalExtraAmount;
@@ -1,20 +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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./addresses"), exports);
18
- __exportStar(require("./balances"), exports);
19
- __exportStar(require("./balancetypes"), exports);
20
- __exportStar(require("./subscriptions"), exports);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });