@indexing/jiti 0.0.52 → 0.0.54

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/main.js CHANGED
@@ -1,18 +1,14 @@
1
- var $8zHUo$tronweb = require("tronweb");
1
+ var $8zHUo$viem = require("viem");
2
2
  var $8zHUo$buffer = require("buffer");
3
+ var $8zHUo$tronweb = require("tronweb");
3
4
  var $8zHUo$cosmjsprotosigning = require("@cosmjs/proto-signing");
4
5
  var $8zHUo$cosmjsstargate = require("@cosmjs/stargate");
5
- var $8zHUo$viem = require("viem");
6
6
 
7
7
 
8
8
  function $parcel$export(e, n, v, s) {
9
9
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
10
10
  }
11
11
 
12
- function $parcel$interopDefault(a) {
13
- return a && a.__esModule ? a.default : a;
14
- }
15
-
16
12
  function $parcel$exportWildcard(dest, source) {
17
13
  Object.keys(source).forEach(function(key) {
18
14
  if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) {
@@ -30,12 +26,22 @@ function $parcel$exportWildcard(dest, source) {
30
26
  return dest;
31
27
  }
32
28
 
29
+ function $parcel$interopDefault(a) {
30
+ return a && a.__esModule ? a.default : a;
31
+ }
32
+
33
+ $parcel$export(module.exports, "utils", () => $882b6d93070905b3$export$eab97d15b1788b8d);
33
34
  $parcel$export(module.exports, "templates", () => $882b6d93070905b3$export$a8fc3402335b0b04);
34
35
  $parcel$export(module.exports, "getAllTemplates", () => $882b6d93070905b3$export$cceb5167b935aafb);
35
36
  $parcel$export(module.exports, "getTemplateByKey", () => $882b6d93070905b3$export$a07bfd14bbc36e4b);
36
- $parcel$export(module.exports, "utils", () => $d7167569386d0d4c$exports);
37
37
  $parcel$export(module.exports, "types", () => $faefaad95e5fcca0$exports);
38
+ var $faefaad95e5fcca0$exports = {};
39
+
40
+
41
+ var $d7167569386d0d4c$exports = {};
42
+ var $b8691f253b6baa6e$exports = {};
38
43
 
44
+ $parcel$export($b8691f253b6baa6e$exports, "blockToTimestamp", () => $b8691f253b6baa6e$export$ec64f6024312bb14);
39
45
  var $6bd2ca253e883278$exports = {};
40
46
 
41
47
  $parcel$export($6bd2ca253e883278$exports, "blockToVM", () => $6bd2ca253e883278$export$ae001c77434c5340);
@@ -87,7 +93,8 @@ const $6bd2ca253e883278$var$PARTIAL_VM_TO_NETWORK_MAP = {
87
93
  "BITCOIN",
88
94
  "BITCOIN_TESTNET",
89
95
  "DOGECOIN",
90
- "LITECOIN"
96
+ "LITECOIN",
97
+ "ZCASH"
91
98
  ]
92
99
  };
93
100
  const $6bd2ca253e883278$var$PARTIAL_NETWORK_TO_VM_MAP = Object.entries($6bd2ca253e883278$var$PARTIAL_VM_TO_NETWORK_MAP).map(([vm, networks])=>networks.map((n)=>({
@@ -106,6 +113,362 @@ function $6bd2ca253e883278$export$ae001c77434c5340(block) {
106
113
  }
107
114
 
108
115
 
116
+ function $b8691f253b6baa6e$export$ec64f6024312bb14(block) {
117
+ const vm = (0, $6bd2ca253e883278$export$ae001c77434c5340)(block);
118
+ switch(vm){
119
+ case "APTOS":
120
+ return new Date(parseInt(block.transactions[0].timestamp, 10) / 1000);
121
+ case "CARDANO":
122
+ return new Date(block.timestamp * 1000);
123
+ case "COSMOS":
124
+ return new Date(block.block.header.time);
125
+ case "EVM":
126
+ return new Date(block.timestamp * 1000);
127
+ case "FILECOIN":
128
+ return new Date(block.Blocks[0].Timestamp * 1000);
129
+ case "RIPPLE":
130
+ return new Date(block.close_time_iso);
131
+ case "STARKNET":
132
+ return new Date(block.timestamp * 1000);
133
+ case "STELLAR":
134
+ return new Date(block.transactions[0].created_at);
135
+ case "SUBSTRATE":
136
+ {
137
+ const timestampExtrinsic = block.extrinsics.find((ex)=>ex.method === "timestamp.set");
138
+ return new Date(Number(timestampExtrinsic.args[0].toString().replace(/,/g, "")));
139
+ }
140
+ case "SUI":
141
+ return new Date(parseInt(block.timestamp, 10));
142
+ case "SVM":
143
+ return new Date(block.blockTime * 1000);
144
+ case "TON":
145
+ return new Date(block.shards?.[0]?.gen_utime * 1000);
146
+ case "UTXO":
147
+ return new Date(block.time * 1000);
148
+ }
149
+ return null;
150
+ }
151
+
152
+
153
+
154
+ var $596a656635c74d50$exports = {};
155
+
156
+ $parcel$export($596a656635c74d50$exports, "evmAddressToChecksum", () => $596a656635c74d50$export$db81f9ea057ab646);
157
+
158
+ function $596a656635c74d50$export$db81f9ea057ab646(address) {
159
+ if (!address || !/^(0x)?[0-9a-f]{40}$/i.test(address)) return null;
160
+ const stripAddress = address.slice(2).toLowerCase();
161
+ const keccakHash = (0, $8zHUo$viem.keccak256)(stripAddress);
162
+ let checksumAddress = "0x";
163
+ for(let i = 0; i < stripAddress.length; i++)checksumAddress += parseInt(keccakHash[i], 16) >= 8 ? stripAddress[i].toUpperCase() : stripAddress[i];
164
+ return checksumAddress;
165
+ }
166
+
167
+
168
+ var $e5566e47593dc3e2$exports = {};
169
+
170
+ $parcel$export($e5566e47593dc3e2$exports, "evmChainToId", () => $e5566e47593dc3e2$export$f93b8abed77a4120);
171
+ const $e5566e47593dc3e2$var$CHAIN_ID = {
172
+ ARBITRUM: 42161,
173
+ AVALANCHE: 43114,
174
+ BASE: 8453,
175
+ BASE_SEPOLIA: 84532,
176
+ BERACHAIN_BARTIO: 80084,
177
+ BLAST: 81457,
178
+ BSC: 56,
179
+ CELO: 42220,
180
+ CYBER: 7560,
181
+ DEGEN: 666666666,
182
+ ETHEREUM: 1,
183
+ ETH_HOLESKY: 17000,
184
+ ETH_SEPOLIA: 11155111,
185
+ FRAXTAL: 252,
186
+ FRAXTAL_SEPOLIA: 2522,
187
+ FUSE: 122,
188
+ GNOSIS: 100,
189
+ GOLD: 4653,
190
+ HAM: 5112,
191
+ HEMI_TESTNET: 743111,
192
+ LINEA: 59144,
193
+ LINEA_SEPOLIA: 59141,
194
+ LISK_SEPOLIA: 4202,
195
+ LYRA: 957,
196
+ LYRA_SEPOLIA: 901,
197
+ MODE: 34443,
198
+ MODE_SEPOLIA: 919,
199
+ NEON: 245022934,
200
+ OASIS_SAPPHIRE: 23294,
201
+ OPTIMISM: 10,
202
+ OP_SEPOLIA: 11155420,
203
+ ORDERLY: 291,
204
+ ORDERLY_SEPOLIA: 4460,
205
+ PGN_SEPOLIA: 58008,
206
+ POLYGON: 137,
207
+ POLYGON_AMOY: 80002,
208
+ POLYGON_ZKEVM: 1101,
209
+ PUBLIC_GOODS_NETWORK: 424,
210
+ SCROLL: 534352,
211
+ SCROLL_SEPOLIA: 534351,
212
+ STACK: 78225,
213
+ SYNDICATE_FRAME_CHAIN: 5101,
214
+ TRON: 728126428,
215
+ ZER0: 543210,
216
+ ZK_LINK: 810180,
217
+ ZORA: 7777777,
218
+ ZORA_SEPOLIA: 999999999
219
+ };
220
+ function $e5566e47593dc3e2$export$f93b8abed77a4120(chain) {
221
+ return $e5566e47593dc3e2$var$CHAIN_ID[chain?.toUpperCase()];
222
+ }
223
+
224
+
225
+ var $da55be3e40667945$exports = {};
226
+
227
+ $parcel$export($da55be3e40667945$exports, "evmDecodeLog", () => $da55be3e40667945$export$18467e329ea485c9);
228
+ $parcel$export($da55be3e40667945$exports, "evmDecodeLogWithMetadata", () => $da55be3e40667945$export$cf548b70626e2eb9);
229
+
230
+ var $f7a3fb164436c9c3$exports = {};
231
+
232
+ $parcel$export($f7a3fb164436c9c3$exports, "evmMethodSignatureToHex", () => $f7a3fb164436c9c3$export$49d5c9473f8f70f2);
233
+
234
+ function $f7a3fb164436c9c3$export$49d5c9473f8f70f2(sig) {
235
+ const [method, rest] = sig.split("(");
236
+ const params = rest.split(")")[0].split(",").map((p)=>p.trim());
237
+ const topic0 = (0, $8zHUo$viem.keccak256)(`${method.split(" ").pop()}(${params.map((p)=>p.split(" ")[0]).join(",")})`);
238
+ return topic0;
239
+ }
240
+
241
+
242
+ function $da55be3e40667945$export$18467e329ea485c9(log, signatures) {
243
+ if (Array.isArray(signatures)) {
244
+ for (const sig of signatures){
245
+ const decoded = $da55be3e40667945$export$18467e329ea485c9(log, sig);
246
+ if (decoded) return decoded;
247
+ }
248
+ return null;
249
+ }
250
+ if (typeof signatures !== "string" && Array.isArray(signatures.addresses) && signatures.addresses.length) {
251
+ const addresses = signatures.addresses.map((a)=>a?.toLowerCase());
252
+ if (!addresses.includes(log.address.toLowerCase())) return null;
253
+ }
254
+ let sig = (typeof signatures === "string" ? signatures : signatures.signature).trim();
255
+ if (!sig.startsWith("event ")) sig = "event " + sig;
256
+ const topic0 = typeof signatures !== "string" && signatures.topic0 ? signatures.topic0 : (0, $f7a3fb164436c9c3$export$49d5c9473f8f70f2)(sig);
257
+ if ((sig.match(/ indexed /g)?.length || 0) === log.topics.length - 1) {
258
+ if (log.topics[0] === topic0) try {
259
+ const result = (0, $8zHUo$viem.decodeEventLog)({
260
+ abi: (0, $8zHUo$viem.parseAbi)([
261
+ sig
262
+ ]),
263
+ data: log.data,
264
+ topics: log.topics
265
+ });
266
+ return result.args;
267
+ } catch (e) {
268
+ // ignore this
269
+ }
270
+ }
271
+ return null;
272
+ }
273
+ function $da55be3e40667945$export$cf548b70626e2eb9(log, signatures) {
274
+ for (const sig of [
275
+ signatures
276
+ ].flat()){
277
+ const decoded = $da55be3e40667945$export$18467e329ea485c9(log, sig);
278
+ if (decoded) return {
279
+ decoded: decoded,
280
+ metadata: {
281
+ name: (typeof sig === "string" ? sig : sig.signature).split("(")[0]
282
+ }
283
+ };
284
+ }
285
+ return null;
286
+ }
287
+
288
+
289
+
290
+ var $414c83047563e72e$exports = {};
291
+
292
+ $parcel$export($414c83047563e72e$exports, "normalizeEVMBlock", () => $414c83047563e72e$export$685b7dc2197cd06c);
293
+
294
+ function $414c83047563e72e$export$685b7dc2197cd06c(rawBlock) {
295
+ for (const k of [
296
+ "baseFeePerGas",
297
+ "gasLimit",
298
+ "gasUsed",
299
+ "number",
300
+ "size",
301
+ "timestamp"
302
+ ])if (typeof rawBlock[k] === "string") rawBlock[k] = parseInt(rawBlock[k]);
303
+ for (const k of [
304
+ "difficulty",
305
+ "totalDifficulty"
306
+ ])if (typeof rawBlock[k] === "string") rawBlock[k] = BigInt(rawBlock[k]).toString();
307
+ for (const k of [
308
+ "miner"
309
+ ])rawBlock[k] = (0, $596a656635c74d50$export$db81f9ea057ab646)(rawBlock[k]);
310
+ rawBlock.transactions = (rawBlock.transactions || []).map((tx)=>{
311
+ for (const k of [
312
+ "blockNumber",
313
+ "cumulativeGasUsed",
314
+ "effectiveGasPrice",
315
+ "gas",
316
+ "gasUsed",
317
+ "nonce",
318
+ "status",
319
+ "transactionIndex"
320
+ ]){
321
+ if (typeof tx[k] === "string") tx[k] = parseInt(tx[k]);
322
+ if (typeof tx.receipt[k] === "string") tx.receipt[k] = parseInt(tx.receipt[k]);
323
+ }
324
+ for (const k of [
325
+ "gasPrice",
326
+ "maxFeePerGas",
327
+ "maxPriorityFeePerGas",
328
+ "value"
329
+ ]){
330
+ if (typeof tx[k] === "string") tx[k] = BigInt(tx[k]).toString();
331
+ if (typeof tx.receipt[k] === "string") tx.receipt[k] = BigInt(tx.receipt[k]).toString();
332
+ }
333
+ for (const k of [
334
+ "from",
335
+ "to"
336
+ ])if (typeof tx[k] === "string") tx[k] = (0, $596a656635c74d50$export$db81f9ea057ab646)(tx[k]);
337
+ for (const k of [
338
+ "contractAddress"
339
+ ])if (typeof tx.receipt[k] === "string") tx.receipt[k] = (0, $596a656635c74d50$export$db81f9ea057ab646)(tx.receipt[k]);
340
+ tx.type = parseInt(tx.type);
341
+ tx.receipt["status"] = Boolean(tx.receipt["status"]);
342
+ tx.receipt["logs"] = tx.receipt["logs"]?.map((log)=>{
343
+ for (const k of [
344
+ "blockNumber",
345
+ "logIndex",
346
+ "transactionIndex"
347
+ ])if (typeof log[k] === "string") log[k] = parseInt(log[k]);
348
+ log["address"] = (0, $596a656635c74d50$export$db81f9ea057ab646)(log["address"]);
349
+ return log;
350
+ });
351
+ return tx;
352
+ });
353
+ return rawBlock;
354
+ }
355
+
356
+
357
+ var $7fd98ef3967673b0$exports = {};
358
+
359
+ $parcel$export($7fd98ef3967673b0$exports, "snapchainTimestampFromMsg", () => $7fd98ef3967673b0$export$f69db31cc49f73fd);
360
+ $parcel$export($7fd98ef3967673b0$exports, "snapchainParseEvent", () => $7fd98ef3967673b0$export$146821f89c094be4);
361
+
362
+ var $7fd98ef3967673b0$require$Buffer = $8zHUo$buffer.Buffer;
363
+ function $7fd98ef3967673b0$var$getValueFromObject(obj, path) {
364
+ if (!obj || !path || !path.length) return undefined;
365
+ const parts = path.replace(/\.\./g, ".__dot__").split(".");
366
+ if (parts[0].startsWith("__dot__")) parts[0] = parts[0].replace(/__dot__/, ".");
367
+ if (parts.length === 1) return obj[parts[0]];
368
+ return $7fd98ef3967673b0$var$getValueFromObject(obj[parts[0]], parts.slice(1).join("."));
369
+ }
370
+ function $7fd98ef3967673b0$export$f69db31cc49f73fd(msg) {
371
+ return new Date(parseInt(msg.timestamp || msg.data?.timestamp) * 1000 + 1609459200000);
372
+ }
373
+ function $7fd98ef3967673b0$export$146821f89c094be4(evt) {
374
+ if (!evt?.data?.type) return null;
375
+ const data = evt.data;
376
+ const processed = {
377
+ fid: data.fid,
378
+ signer: evt.signer,
379
+ timestamp: $7fd98ef3967673b0$export$f69db31cc49f73fd(data).toISOString()
380
+ };
381
+ switch(data.type){
382
+ case "MESSAGE_TYPE_CAST_ADD":
383
+ processed._dataType = "cast";
384
+ processed.hash = evt.hash;
385
+ processed.embeds = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.embeds");
386
+ processed.parentCastUrl = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.parent_url");
387
+ processed.parentCastFid = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.parent_cast_id.fid");
388
+ processed.parentCastHash = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.parent_cast_id.hash");
389
+ processed.text = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.text");
390
+ processed.mentions = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.mentions");
391
+ processed.mentionsPositions = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.mentions_positions");
392
+ processed.deletedAt = "";
393
+ break;
394
+ case "MESSAGE_TYPE_CAST_REMOVE":
395
+ processed._dataType = "cast";
396
+ processed.hash = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_remove_body.target_hash");
397
+ if (typeof processed.hash === "string" && !processed.hash?.startsWith("0x")) processed.hash = "0x" + $7fd98ef3967673b0$require$Buffer.from(processed.hash, "base64").toString("hex");
398
+ processed.deletedAt = processed.timestamp;
399
+ break;
400
+ case "MESSAGE_TYPE_REACTION_ADD":
401
+ case "MESSAGE_TYPE_REACTION_REMOVE":
402
+ processed._dataType = "reaction";
403
+ processed.targetCastFid = $7fd98ef3967673b0$var$getValueFromObject(data, "reaction_body.target_cast_id.fid");
404
+ processed.targetCastHash = $7fd98ef3967673b0$var$getValueFromObject(data, "reaction_body.target_cast_id.hash");
405
+ processed.type = $7fd98ef3967673b0$var$getValueFromObject(data, "reaction_body.type")?.split("_TYPE_").pop().toLowerCase();
406
+ if (data.type === "MESSAGE_TYPE_REACTION_REMOVE") processed.deletedAt = processed.timestamp;
407
+ else processed.deletedAt = "";
408
+ break;
409
+ case "MESSAGE_TYPE_LINK_ADD":
410
+ case "MESSAGE_TYPE_LINK_REMOVE":
411
+ processed._dataType = "link";
412
+ processed.target_fid = $7fd98ef3967673b0$var$getValueFromObject(data, "link_body.target_fid");
413
+ processed.type = $7fd98ef3967673b0$var$getValueFromObject(data, "link_body.type");
414
+ if (data.type === "MESSAGE_TYPE_LINK_REMOVE") processed.deletedAt = processed.timestamp;
415
+ else processed.deletedAt = "";
416
+ break;
417
+ case "MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS":
418
+ processed._dataType = "verification";
419
+ processed.address = $7fd98ef3967673b0$var$getValueFromObject(data, "verification_add_address_body.address");
420
+ if (processed.address?.startsWith("0x")) processed.address = processed.address.toLowerCase();
421
+ processed.deletedAt = "";
422
+ break;
423
+ case "MESSAGE_TYPE_VERIFICATION_REMOVE":
424
+ processed._dataType = "verification";
425
+ processed.address = $7fd98ef3967673b0$var$getValueFromObject(data, "verification_remove_body.address");
426
+ if (processed.address?.startsWith("0x")) processed.address = processed.address.toLowerCase();
427
+ processed.deletedAt = processed.timestamp;
428
+ break;
429
+ case "MESSAGE_TYPE_USER_DATA_ADD":
430
+ {
431
+ processed._dataType = "user_data";
432
+ let key = $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.type");
433
+ if (typeof key === "string") {
434
+ key = key.trim().split("_").pop().toLowerCase();
435
+ processed.data = {
436
+ [key]: $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.value")
437
+ };
438
+ }
439
+ break;
440
+ }
441
+ case "MESSAGE_TYPE_USERNAME_PROOF":
442
+ return null;
443
+ default:
444
+ return null;
445
+ }
446
+ for(const k in processed){
447
+ if (processed[k] === null || processed[k] === undefined) delete processed[k];
448
+ if (k === "deletedAt" && processed[k] === "") processed[k] = null;
449
+ if ((k.endsWith("Hash") || k === "hash") && processed[k] && !processed[k].startsWith("0x")) processed[k] = "0x" + $7fd98ef3967673b0$require$Buffer.from(processed[k], "base64").toString("hex");
450
+ }
451
+ return processed;
452
+ }
453
+
454
+
455
+ $parcel$exportWildcard($d7167569386d0d4c$exports, $b8691f253b6baa6e$exports);
456
+ $parcel$exportWildcard($d7167569386d0d4c$exports, $6bd2ca253e883278$exports);
457
+ $parcel$exportWildcard($d7167569386d0d4c$exports, $596a656635c74d50$exports);
458
+ $parcel$exportWildcard($d7167569386d0d4c$exports, $e5566e47593dc3e2$exports);
459
+ $parcel$exportWildcard($d7167569386d0d4c$exports, $da55be3e40667945$exports);
460
+ $parcel$exportWildcard($d7167569386d0d4c$exports, $f7a3fb164436c9c3$exports);
461
+ $parcel$exportWildcard($d7167569386d0d4c$exports, $414c83047563e72e$exports);
462
+ $parcel$exportWildcard($d7167569386d0d4c$exports, $7fd98ef3967673b0$exports);
463
+
464
+
465
+ var $48f9879a44dd1195$exports = {};
466
+
467
+ $parcel$export($48f9879a44dd1195$exports, "filterValues", () => $9af31dbb692f94e3$export$2e2bcd8739ae039);
468
+ $parcel$export($48f9879a44dd1195$exports, "raw", () => $59fb8e0333a5d25f$export$2e2bcd8739ae039);
469
+ $parcel$export($48f9879a44dd1195$exports, "tokenTransfers", () => $7dd402f6ad0dab6a$export$2e2bcd8739ae039);
470
+
471
+
109
472
 
110
473
  const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
111
474
  match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "APTOS",
@@ -385,431 +748,78 @@ const $60d24c82dc5feb2e$export$893111d8d332e195 = {
385
748
  }
386
749
  ]
387
750
  }
388
- ]
389
- };
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
- var $f9ab50a3e879ac1c$require$Buffer = $8zHUo$buffer.Buffer;
398
- const $f9ab50a3e879ac1c$export$b5fd4920e8b7d913 = {
399
- match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "COSMOS",
400
- transform (block) {
401
- let transfers = [];
402
- const typedBlock = block;
403
- const blockNumber = Number(typedBlock.block.header.height);
404
- const blockTimestamp = new Date(typedBlock.block.header.time).toISOString();
405
- for (const txRaw of typedBlock.block.data.txs || []){
406
- let decoded;
407
- try {
408
- decoded = (0, $8zHUo$cosmjsprotosigning.decodeTxRaw)(new Uint8Array($f9ab50a3e879ac1c$require$Buffer.from(txRaw, "base64")));
409
- } catch (e) {
410
- continue;
411
- }
412
- const txHash = (0, $8zHUo$viem.sha256)(new Uint8Array($f9ab50a3e879ac1c$require$Buffer.from(txRaw, "base64")));
413
- const transactionGasFee = BigInt(decoded.authInfo.fee?.amount?.[0]?.amount || "0");
414
- const registry = new (0, $8zHUo$cosmjsprotosigning.Registry)((0, $8zHUo$cosmjsstargate.defaultRegistryTypes));
415
- for (const message of decoded.body.messages)if ([
416
- "/ibc.applications.transfer.v1.MsgTransfer",
417
- "/cosmos.bank.v1beta1.MsgSend"
418
- ].includes(message.typeUrl)) {
419
- const decodedMsg = registry.decode(message);
420
- transfers.push({
421
- blockNumber: blockNumber,
422
- from: decodedMsg.sender,
423
- to: decodedMsg.receiver,
424
- amount: BigInt(decodedMsg.token?.amount || 0),
425
- token: decodedMsg.token?.denom,
426
- tokenType: "NATIVE",
427
- timestamp: blockTimestamp,
428
- transactionHash: txHash.slice(2).toUpperCase(),
429
- transactionGasFee: transactionGasFee
430
- });
431
- }
432
- }
433
- return transfers;
434
- },
435
- tests: [
436
- {
437
- params: {
438
- network: "COSMOS",
439
- walletAddress: "cosmos1x4qvmtcfc02pklttfgxzdccxcsyzklrxavteyz",
440
- contractAddress: "ibc/F663521BF1836B00F5F177680F74BFB9A8B5654A694D0D2BC249E03CF2509013"
441
- },
442
- payload: "https://jiti.indexing.co/networks/cosmos/24419691",
443
- output: [
444
- {
445
- blockNumber: 24419691,
446
- from: "cosmos1x4qvmtcfc02pklttfgxzdccxcsyzklrxavteyz",
447
- to: "noble1x4qvmtcfc02pklttfgxzdccxcsyzklrx4073uv",
448
- amount: 500000n,
449
- token: "ibc/F663521BF1836B00F5F177680F74BFB9A8B5654A694D0D2BC249E03CF2509013",
450
- tokenType: "NATIVE",
451
- timestamp: "2025-02-14T21:48:22.809Z",
452
- transactionHash: "963D4D7BB59C1280F58A7ECA2F1934E2AA005109A989193C815C7B98EDCD7445",
453
- transactionGasFee: 4860n
454
- }
455
- ]
456
- }
457
- ]
458
- };
459
-
460
-
461
- var $d7167569386d0d4c$exports = {};
462
- var $b8691f253b6baa6e$exports = {};
463
-
464
- $parcel$export($b8691f253b6baa6e$exports, "blockToTimestamp", () => $b8691f253b6baa6e$export$ec64f6024312bb14);
465
-
466
- function $b8691f253b6baa6e$export$ec64f6024312bb14(block) {
467
- const vm = (0, $6bd2ca253e883278$export$ae001c77434c5340)(block);
468
- switch(vm){
469
- case "APTOS":
470
- return new Date(parseInt(block.transactions[0].timestamp, 10) / 1000);
471
- case "CARDANO":
472
- return new Date(block.timestamp * 1000);
473
- case "COSMOS":
474
- return new Date(block.block.header.time);
475
- case "EVM":
476
- return new Date(block.timestamp * 1000);
477
- case "FILECOIN":
478
- return new Date(block.Blocks[0].Timestamp * 1000);
479
- case "RIPPLE":
480
- return new Date(block.close_time_iso);
481
- case "STARKNET":
482
- return new Date(block.timestamp * 1000);
483
- case "STELLAR":
484
- return new Date(block.transactions[0].created_at);
485
- case "SUBSTRATE":
486
- {
487
- const timestampExtrinsic = block.extrinsics.find((ex)=>ex.method === "timestamp.set");
488
- return new Date(Number(timestampExtrinsic.args[0].toString().replace(/,/g, "")));
489
- }
490
- case "SUI":
491
- return new Date(parseInt(block.timestamp, 10));
492
- case "SVM":
493
- return new Date(block.blockTime * 1000);
494
- case "TON":
495
- return new Date(block.shards?.[0]?.gen_utime * 1000);
496
- case "UTXO":
497
- return new Date(block.time * 1000);
498
- }
499
- return null;
500
- }
501
-
502
-
503
-
504
- var $596a656635c74d50$exports = {};
505
-
506
- $parcel$export($596a656635c74d50$exports, "evmAddressToChecksum", () => $596a656635c74d50$export$db81f9ea057ab646);
507
-
508
- function $596a656635c74d50$export$db81f9ea057ab646(address) {
509
- if (!address || !/^(0x)?[0-9a-f]{40}$/i.test(address)) return null;
510
- const stripAddress = address.slice(2).toLowerCase();
511
- const keccakHash = (0, $8zHUo$viem.keccak256)(stripAddress);
512
- let checksumAddress = "0x";
513
- for(let i = 0; i < stripAddress.length; i++)checksumAddress += parseInt(keccakHash[i], 16) >= 8 ? stripAddress[i].toUpperCase() : stripAddress[i];
514
- return checksumAddress;
515
- }
516
-
517
-
518
- var $e5566e47593dc3e2$exports = {};
519
-
520
- $parcel$export($e5566e47593dc3e2$exports, "evmChainToId", () => $e5566e47593dc3e2$export$f93b8abed77a4120);
521
- const $e5566e47593dc3e2$var$CHAIN_ID = {
522
- ARBITRUM: 42161,
523
- AVALANCHE: 43114,
524
- BASE: 8453,
525
- BASE_SEPOLIA: 84532,
526
- BERACHAIN_BARTIO: 80084,
527
- BLAST: 81457,
528
- BSC: 56,
529
- CELO: 42220,
530
- CYBER: 7560,
531
- DEGEN: 666666666,
532
- ETHEREUM: 1,
533
- ETH_HOLESKY: 17000,
534
- ETH_SEPOLIA: 11155111,
535
- FRAXTAL: 252,
536
- FRAXTAL_SEPOLIA: 2522,
537
- FUSE: 122,
538
- GNOSIS: 100,
539
- GOLD: 4653,
540
- HAM: 5112,
541
- HEMI_TESTNET: 743111,
542
- LINEA: 59144,
543
- LINEA_SEPOLIA: 59141,
544
- LISK_SEPOLIA: 4202,
545
- LYRA: 957,
546
- LYRA_SEPOLIA: 901,
547
- MODE: 34443,
548
- MODE_SEPOLIA: 919,
549
- NEON: 245022934,
550
- OASIS_SAPPHIRE: 23294,
551
- OPTIMISM: 10,
552
- OP_SEPOLIA: 11155420,
553
- ORDERLY: 291,
554
- ORDERLY_SEPOLIA: 4460,
555
- PGN_SEPOLIA: 58008,
556
- POLYGON: 137,
557
- POLYGON_AMOY: 80002,
558
- POLYGON_ZKEVM: 1101,
559
- PUBLIC_GOODS_NETWORK: 424,
560
- SCROLL: 534352,
561
- SCROLL_SEPOLIA: 534351,
562
- STACK: 78225,
563
- SYNDICATE_FRAME_CHAIN: 5101,
564
- TRON: 728126428,
565
- ZER0: 543210,
566
- ZK_LINK: 810180,
567
- ZORA: 7777777,
568
- ZORA_SEPOLIA: 999999999
569
- };
570
- function $e5566e47593dc3e2$export$f93b8abed77a4120(chain) {
571
- return $e5566e47593dc3e2$var$CHAIN_ID[chain?.toUpperCase()];
572
- }
573
-
574
-
575
- var $da55be3e40667945$exports = {};
576
-
577
- $parcel$export($da55be3e40667945$exports, "evmDecodeLog", () => $da55be3e40667945$export$18467e329ea485c9);
578
- $parcel$export($da55be3e40667945$exports, "evmDecodeLogWithMetadata", () => $da55be3e40667945$export$cf548b70626e2eb9);
579
-
580
- var $f7a3fb164436c9c3$exports = {};
581
-
582
- $parcel$export($f7a3fb164436c9c3$exports, "evmMethodSignatureToHex", () => $f7a3fb164436c9c3$export$49d5c9473f8f70f2);
583
-
584
- function $f7a3fb164436c9c3$export$49d5c9473f8f70f2(sig) {
585
- const [method, rest] = sig.split("(");
586
- const params = rest.split(")")[0].split(",").map((p)=>p.trim());
587
- const topic0 = (0, $8zHUo$viem.keccak256)(`${method.split(" ").pop()}(${params.map((p)=>p.split(" ")[0]).join(",")})`);
588
- return topic0;
589
- }
590
-
591
-
592
- function $da55be3e40667945$export$18467e329ea485c9(log, signatures) {
593
- if (Array.isArray(signatures)) {
594
- for (const sig of signatures){
595
- const decoded = $da55be3e40667945$export$18467e329ea485c9(log, sig);
596
- if (decoded) return decoded;
597
- }
598
- return null;
599
- }
600
- if (typeof signatures !== "string" && Array.isArray(signatures.addresses) && signatures.addresses.length) {
601
- const addresses = signatures.addresses.map((a)=>a?.toLowerCase());
602
- if (!addresses.includes(log.address.toLowerCase())) return null;
603
- }
604
- let sig = (typeof signatures === "string" ? signatures : signatures.signature).trim();
605
- if (!sig.startsWith("event ")) sig = "event " + sig;
606
- const topic0 = typeof signatures !== "string" && signatures.topic0 ? signatures.topic0 : (0, $f7a3fb164436c9c3$export$49d5c9473f8f70f2)(sig);
607
- if ((sig.match(/ indexed /g)?.length || 0) === log.topics.length - 1) {
608
- if (log.topics[0] === topic0) try {
609
- const result = (0, $8zHUo$viem.decodeEventLog)({
610
- abi: (0, $8zHUo$viem.parseAbi)([
611
- sig
612
- ]),
613
- data: log.data,
614
- topics: log.topics
615
- });
616
- return result.args;
617
- } catch (e) {
618
- // ignore this
619
- }
620
- }
621
- return null;
622
- }
623
- function $da55be3e40667945$export$cf548b70626e2eb9(log, signatures) {
624
- for (const sig of [
625
- signatures
626
- ].flat()){
627
- const decoded = $da55be3e40667945$export$18467e329ea485c9(log, sig);
628
- if (decoded) return {
629
- decoded: decoded,
630
- metadata: {
631
- name: (typeof sig === "string" ? sig : sig.signature).split("(")[0]
632
- }
633
- };
634
- }
635
- return null;
636
- }
637
-
638
-
751
+ ]
752
+ };
639
753
 
640
- var $414c83047563e72e$exports = {};
641
754
 
642
- $parcel$export($414c83047563e72e$exports, "normalizeEVMBlock", () => $414c83047563e72e$export$685b7dc2197cd06c);
643
755
 
644
- function $414c83047563e72e$export$685b7dc2197cd06c(rawBlock) {
645
- for (const k of [
646
- "baseFeePerGas",
647
- "gasLimit",
648
- "gasUsed",
649
- "number",
650
- "size",
651
- "timestamp"
652
- ])if (typeof rawBlock[k] === "string") rawBlock[k] = parseInt(rawBlock[k]);
653
- for (const k of [
654
- "difficulty",
655
- "totalDifficulty"
656
- ])if (typeof rawBlock[k] === "string") rawBlock[k] = BigInt(rawBlock[k]).toString();
657
- for (const k of [
658
- "miner"
659
- ])rawBlock[k] = (0, $596a656635c74d50$export$db81f9ea057ab646)(rawBlock[k]);
660
- rawBlock.transactions = (rawBlock.transactions || []).map((tx)=>{
661
- for (const k of [
662
- "blockNumber",
663
- "cumulativeGasUsed",
664
- "effectiveGasPrice",
665
- "gas",
666
- "gasUsed",
667
- "nonce",
668
- "status",
669
- "transactionIndex"
670
- ]){
671
- if (typeof tx[k] === "string") tx[k] = parseInt(tx[k]);
672
- if (typeof tx.receipt[k] === "string") tx.receipt[k] = parseInt(tx.receipt[k]);
673
- }
674
- for (const k of [
675
- "gasPrice",
676
- "maxFeePerGas",
677
- "maxPriorityFeePerGas",
678
- "value"
679
- ]){
680
- if (typeof tx[k] === "string") tx[k] = BigInt(tx[k]).toString();
681
- if (typeof tx.receipt[k] === "string") tx.receipt[k] = BigInt(tx.receipt[k]).toString();
682
- }
683
- for (const k of [
684
- "from",
685
- "to"
686
- ])if (typeof tx[k] === "string") tx[k] = (0, $596a656635c74d50$export$db81f9ea057ab646)(tx[k]);
687
- for (const k of [
688
- "contractAddress"
689
- ])if (typeof tx.receipt[k] === "string") tx.receipt[k] = (0, $596a656635c74d50$export$db81f9ea057ab646)(tx.receipt[k]);
690
- tx.type = parseInt(tx.type);
691
- tx.receipt["status"] = Boolean(tx.receipt["status"]);
692
- tx.receipt["logs"] = tx.receipt["logs"]?.map((log)=>{
693
- for (const k of [
694
- "blockNumber",
695
- "logIndex",
696
- "transactionIndex"
697
- ])if (typeof log[k] === "string") log[k] = parseInt(log[k]);
698
- log["address"] = (0, $596a656635c74d50$export$db81f9ea057ab646)(log["address"]);
699
- return log;
700
- });
701
- return tx;
702
- });
703
- return rawBlock;
704
- }
705
756
 
706
757
 
707
- var $7fd98ef3967673b0$exports = {};
708
758
 
709
- $parcel$export($7fd98ef3967673b0$exports, "snapchainTimestampFromMsg", () => $7fd98ef3967673b0$export$f69db31cc49f73fd);
710
- $parcel$export($7fd98ef3967673b0$exports, "snapchainParseEvent", () => $7fd98ef3967673b0$export$146821f89c094be4);
711
759
 
712
- var $7fd98ef3967673b0$require$Buffer = $8zHUo$buffer.Buffer;
713
- function $7fd98ef3967673b0$var$getValueFromObject(obj, path) {
714
- if (!obj || !path || !path.length) return undefined;
715
- const parts = path.replace(/\.\./g, ".__dot__").split(".");
716
- if (parts[0].startsWith("__dot__")) parts[0] = parts[0].replace(/__dot__/, ".");
717
- if (parts.length === 1) return obj[parts[0]];
718
- return $7fd98ef3967673b0$var$getValueFromObject(obj[parts[0]], parts.slice(1).join("."));
719
- }
720
- function $7fd98ef3967673b0$export$f69db31cc49f73fd(msg) {
721
- return new Date(parseInt(msg.timestamp || msg.data?.timestamp) * 1000 + 1609459200000);
722
- }
723
- function $7fd98ef3967673b0$export$146821f89c094be4(evt) {
724
- if (!evt?.data?.type) return null;
725
- const data = evt.data;
726
- const processed = {
727
- fid: data.fid,
728
- signer: evt.signer,
729
- timestamp: $7fd98ef3967673b0$export$f69db31cc49f73fd(data).toISOString()
730
- };
731
- switch(data.type){
732
- case "MESSAGE_TYPE_CAST_ADD":
733
- processed._dataType = "cast";
734
- processed.hash = evt.hash;
735
- processed.embeds = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.embeds");
736
- processed.parentCastUrl = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.parent_url");
737
- processed.parentCastFid = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.parent_cast_id.fid");
738
- processed.parentCastHash = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.parent_cast_id.hash");
739
- processed.text = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.text");
740
- processed.mentions = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.mentions");
741
- processed.mentionsPositions = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_add_body.mentions_positions");
742
- processed.deletedAt = "";
743
- break;
744
- case "MESSAGE_TYPE_CAST_REMOVE":
745
- processed._dataType = "cast";
746
- processed.hash = $7fd98ef3967673b0$var$getValueFromObject(data, "cast_remove_body.target_hash");
747
- if (typeof processed.hash === "string" && !processed.hash?.startsWith("0x")) processed.hash = "0x" + $7fd98ef3967673b0$require$Buffer.from(processed.hash, "base64").toString("hex");
748
- processed.deletedAt = processed.timestamp;
749
- break;
750
- case "MESSAGE_TYPE_REACTION_ADD":
751
- case "MESSAGE_TYPE_REACTION_REMOVE":
752
- processed._dataType = "reaction";
753
- processed.targetCastFid = $7fd98ef3967673b0$var$getValueFromObject(data, "reaction_body.target_cast_id.fid");
754
- processed.targetCastHash = $7fd98ef3967673b0$var$getValueFromObject(data, "reaction_body.target_cast_id.hash");
755
- processed.type = $7fd98ef3967673b0$var$getValueFromObject(data, "reaction_body.type")?.split("_TYPE_").pop().toLowerCase();
756
- if (data.type === "MESSAGE_TYPE_REACTION_REMOVE") processed.deletedAt = processed.timestamp;
757
- else processed.deletedAt = "";
758
- break;
759
- case "MESSAGE_TYPE_LINK_ADD":
760
- case "MESSAGE_TYPE_LINK_REMOVE":
761
- processed._dataType = "link";
762
- processed.target_fid = $7fd98ef3967673b0$var$getValueFromObject(data, "link_body.target_fid");
763
- processed.type = $7fd98ef3967673b0$var$getValueFromObject(data, "link_body.type");
764
- if (data.type === "MESSAGE_TYPE_LINK_REMOVE") processed.deletedAt = processed.timestamp;
765
- else processed.deletedAt = "";
766
- break;
767
- case "MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS":
768
- processed._dataType = "verification";
769
- processed.address = $7fd98ef3967673b0$var$getValueFromObject(data, "verification_add_address_body.address");
770
- if (processed.address?.startsWith("0x")) processed.address = processed.address.toLowerCase();
771
- processed.deletedAt = "";
772
- break;
773
- case "MESSAGE_TYPE_VERIFICATION_REMOVE":
774
- processed._dataType = "verification";
775
- processed.address = $7fd98ef3967673b0$var$getValueFromObject(data, "verification_remove_body.address");
776
- if (processed.address?.startsWith("0x")) processed.address = processed.address.toLowerCase();
777
- processed.deletedAt = processed.timestamp;
778
- break;
779
- case "MESSAGE_TYPE_USER_DATA_ADD":
780
- {
781
- processed._dataType = "user_data";
782
- let key = $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.type");
783
- if (typeof key === "string") {
784
- key = key.trim().split("_").pop().toLowerCase();
785
- processed.data = {
786
- [key]: $7fd98ef3967673b0$var$getValueFromObject(data, "user_data_body.value")
787
- };
788
- }
789
- break;
760
+ var $f9ab50a3e879ac1c$require$Buffer = $8zHUo$buffer.Buffer;
761
+ const $f9ab50a3e879ac1c$export$b5fd4920e8b7d913 = {
762
+ match: (block)=>(0, $6bd2ca253e883278$export$ae001c77434c5340)(block) === "COSMOS",
763
+ transform (block) {
764
+ let transfers = [];
765
+ const typedBlock = block;
766
+ const blockNumber = Number(typedBlock.block.header.height);
767
+ const blockTimestamp = new Date(typedBlock.block.header.time).toISOString();
768
+ for (const txRaw of typedBlock.block.data.txs || []){
769
+ let decoded;
770
+ try {
771
+ decoded = (0, $8zHUo$cosmjsprotosigning.decodeTxRaw)(new Uint8Array($f9ab50a3e879ac1c$require$Buffer.from(txRaw, "base64")));
772
+ } catch (e) {
773
+ continue;
790
774
  }
791
- case "MESSAGE_TYPE_USERNAME_PROOF":
792
- return null;
793
- default:
794
- return null;
795
- }
796
- for(const k in processed){
797
- if (processed[k] === null || processed[k] === undefined) delete processed[k];
798
- if (k === "deletedAt" && processed[k] === "") processed[k] = null;
799
- if ((k.endsWith("Hash") || k === "hash") && processed[k] && !processed[k].startsWith("0x")) processed[k] = "0x" + $7fd98ef3967673b0$require$Buffer.from(processed[k], "base64").toString("hex");
800
- }
801
- return processed;
802
- }
803
-
775
+ const txHash = (0, $8zHUo$viem.sha256)(new Uint8Array($f9ab50a3e879ac1c$require$Buffer.from(txRaw, "base64")));
776
+ const transactionGasFee = BigInt(decoded.authInfo.fee?.amount?.[0]?.amount || "0");
777
+ const registry = new (0, $8zHUo$cosmjsprotosigning.Registry)((0, $8zHUo$cosmjsstargate.defaultRegistryTypes));
778
+ for (const message of decoded.body.messages)if ([
779
+ "/ibc.applications.transfer.v1.MsgTransfer",
780
+ "/cosmos.bank.v1beta1.MsgSend"
781
+ ].includes(message.typeUrl)) {
782
+ const decodedMsg = registry.decode(message);
783
+ transfers.push({
784
+ blockNumber: blockNumber,
785
+ from: decodedMsg.sender,
786
+ to: decodedMsg.receiver,
787
+ amount: BigInt(decodedMsg.token?.amount || 0),
788
+ token: decodedMsg.token?.denom,
789
+ tokenType: "NATIVE",
790
+ timestamp: blockTimestamp,
791
+ transactionHash: txHash.slice(2).toUpperCase(),
792
+ transactionGasFee: transactionGasFee
793
+ });
794
+ }
795
+ }
796
+ return transfers;
797
+ },
798
+ tests: [
799
+ {
800
+ params: {
801
+ network: "COSMOS",
802
+ walletAddress: "cosmos1x4qvmtcfc02pklttfgxzdccxcsyzklrxavteyz",
803
+ contractAddress: "ibc/F663521BF1836B00F5F177680F74BFB9A8B5654A694D0D2BC249E03CF2509013"
804
+ },
805
+ payload: "https://jiti.indexing.co/networks/cosmos/24419691",
806
+ output: [
807
+ {
808
+ blockNumber: 24419691,
809
+ from: "cosmos1x4qvmtcfc02pklttfgxzdccxcsyzklrxavteyz",
810
+ to: "noble1x4qvmtcfc02pklttfgxzdccxcsyzklrx4073uv",
811
+ amount: 500000n,
812
+ token: "ibc/F663521BF1836B00F5F177680F74BFB9A8B5654A694D0D2BC249E03CF2509013",
813
+ tokenType: "NATIVE",
814
+ timestamp: "2025-02-14T21:48:22.809Z",
815
+ transactionHash: "963D4D7BB59C1280F58A7ECA2F1934E2AA005109A989193C815C7B98EDCD7445",
816
+ transactionGasFee: 4860n
817
+ }
818
+ ]
819
+ }
820
+ ]
821
+ };
804
822
 
805
- $parcel$exportWildcard($d7167569386d0d4c$exports, $b8691f253b6baa6e$exports);
806
- $parcel$exportWildcard($d7167569386d0d4c$exports, $6bd2ca253e883278$exports);
807
- $parcel$exportWildcard($d7167569386d0d4c$exports, $596a656635c74d50$exports);
808
- $parcel$exportWildcard($d7167569386d0d4c$exports, $e5566e47593dc3e2$exports);
809
- $parcel$exportWildcard($d7167569386d0d4c$exports, $da55be3e40667945$exports);
810
- $parcel$exportWildcard($d7167569386d0d4c$exports, $f7a3fb164436c9c3$exports);
811
- $parcel$exportWildcard($d7167569386d0d4c$exports, $414c83047563e72e$exports);
812
- $parcel$exportWildcard($d7167569386d0d4c$exports, $7fd98ef3967673b0$exports);
813
823
 
814
824
 
815
825
 
@@ -9543,26 +9553,19 @@ var $59fb8e0333a5d25f$export$2e2bcd8739ae039 = $59fb8e0333a5d25f$var$rawTemplate
9543
9553
 
9544
9554
 
9545
9555
 
9546
- const $48f9879a44dd1195$export$a8fc3402335b0b04 = [
9547
- (0, $59fb8e0333a5d25f$export$2e2bcd8739ae039),
9548
- (0, $7dd402f6ad0dab6a$export$2e2bcd8739ae039),
9549
- (0, $9af31dbb692f94e3$export$2e2bcd8739ae039)
9550
- ];
9551
-
9552
-
9553
-
9554
- var $faefaad95e5fcca0$exports = {};
9555
9556
 
9556
9557
 
9557
- const $882b6d93070905b3$export$a8fc3402335b0b04 = (0, $48f9879a44dd1195$export$a8fc3402335b0b04).reduce((a, b)=>({
9558
- ...a,
9559
- [b.key]: Object.assign({}, b)
9560
- }), {});
9558
+ const $882b6d93070905b3$export$eab97d15b1788b8d = {
9559
+ ...$d7167569386d0d4c$exports
9560
+ };
9561
+ const $882b6d93070905b3$export$a8fc3402335b0b04 = {
9562
+ ...$48f9879a44dd1195$exports
9563
+ };
9561
9564
  function $882b6d93070905b3$export$cceb5167b935aafb() {
9562
- return (0, $48f9879a44dd1195$export$a8fc3402335b0b04).slice();
9565
+ return Object.values($48f9879a44dd1195$exports).slice();
9563
9566
  }
9564
9567
  function $882b6d93070905b3$export$a07bfd14bbc36e4b(key) {
9565
- return (0, $48f9879a44dd1195$export$a8fc3402335b0b04).slice().find((template)=>template.key === key);
9568
+ return $882b6d93070905b3$export$a8fc3402335b0b04[key];
9566
9569
  }
9567
9570
 
9568
9571