Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/2e/34835dbcbc72b447acdec54a6923555579e97472aedb5fdaee05b3dd1f592dedd8c51c
T
2025-11-08 11:08:44 +00:00

1 line
14 KiB
Plaintext

{"dependencies":[{"name":"../bn/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}}],"key":"fl0HmZYDIy1pebLP0IDMy9U2bI4=","exportNames":["*"],"imports":1}},{"name":"../u8a/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":37},"end":{"line":2,"column":52,"index":89}}],"key":"ni7N8kFqexhxzrkt71zvvxQnrBA=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n exports.compactFromU8a = compactFromU8a;\n exports.compactFromU8aLim = compactFromU8aLim;\n var _bnIndexJs = require(_dependencyMap[0], \"../bn/index.js\");\n var _u8aIndexJs = require(_dependencyMap[1], \"../u8a/index.js\");\n /**\n * @name compactFromU8a\n * @description Retrives the offset and encoded length from a compact-prefixed value\n * @example\n * <BR>\n *\n * ```javascript\n * import { compactFromU8a } from '@polkadot/util';\n *\n * const [offset, length] = compactFromU8a(new Uint8Array([254, 255, 3, 0]));\n *\n * console.log('value offset=', offset, 'length=', length); // 4, 0xffff\n * ```\n */\n function compactFromU8a(input) {\n const u8a = (0, _u8aIndexJs.u8aToU8a)(input);\n // The u8a is manually converted here for 1, 2 & 4 lengths, it is 2x faster\n // than doing an additional call to u8aToBn (as with variable length)\n switch (u8a[0] & 0b11) {\n case 0b00:\n return [1, new _bnIndexJs.BN(u8a[0] >>> 2)];\n case 0b01:\n return [2, new _bnIndexJs.BN(u8a[0] + (u8a[1] << 8) >>> 2)];\n case 0b10:\n // for the 3rd byte, we don't << 24 - since JS converts all bitwise operators to\n // 32-bit, in the case where the top-most bit is set this yields a negative value\n return [4, new _bnIndexJs.BN(u8a[0] + (u8a[1] << 8) + (u8a[2] << 16) + u8a[3] * 0x1_00_00_00 >>> 2)];\n // 0b11\n default:\n {\n // add 5 to shifted (4 for base length, 1 for this byte)\n const offset = (u8a[0] >>> 2) + 5;\n // we unroll the loop\n switch (offset) {\n // there still could be 4 bytes data, similar to 0b10 above (with offsets)\n case 5:\n // for the 3rd byte, we don't << 24 - since JS converts all bitwise operators to\n // 32-bit, in the case where the top-most bit is set this yields a negative value\n return [5, new _bnIndexJs.BN(u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + u8a[4] * 0x1_00_00_00)];\n case 6:\n return [6, new _bnIndexJs.BN(u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + (u8a[4] + (u8a[5] << 8)) * 0x1_00_00_00)];\n // 6 bytes data is the maximum, 48 bits (56 would overflow)\n case 7:\n return [7, new _bnIndexJs.BN(u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + (u8a[4] + (u8a[5] << 8) + (u8a[6] << 16)) * 0x1_00_00_00)];\n // for anything else, use the non-unrolled version\n default:\n return [offset, (0, _u8aIndexJs.u8aToBn)(u8a.subarray(1, offset))];\n }\n }\n }\n }\n /**\n * @name compactFromU8aLim\n * @description A limited version of [[compactFromU8a]], accepting only Uint8Array inputs for values <= 48 bits\n */\n function compactFromU8aLim(u8a) {\n // The u8a is manually converted here for 1, 2 & 4 lengths, it is 2x faster\n // than doing an additional call to u8aToBn (as with variable length)\n switch (u8a[0] & 0b11) {\n case 0b00:\n return [1, u8a[0] >>> 2];\n case 0b01:\n return [2, u8a[0] + (u8a[1] << 8) >>> 2];\n case 0b10:\n // for the 3rd byte, we don't << 24 - since JS converts all bitwise operators to\n // 32-bit, in the case where the top-most bit is set this yields a negative value\n return [4, u8a[0] + (u8a[1] << 8) + (u8a[2] << 16) + u8a[3] * 0x1_00_00_00 >>> 2];\n // 0b11\n default:\n {\n // add 5 to shifted (4 for base length, 1 for this byte)\n // we unroll the loop\n switch ((u8a[0] >>> 2) + 5) {\n // there still could be 4 bytes data, similar to 0b10 above (with offsets)\n case 5:\n return [5, u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + u8a[4] * 0x1_00_00_00];\n case 6:\n return [6, u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + (u8a[4] + (u8a[5] << 8)) * 0x1_00_00_00];\n // 6 bytes data is the maximum, 48 bits (56 would overflow)\n case 7:\n return [7, u8a[1] + (u8a[2] << 8) + (u8a[3] << 16) + (u8a[4] + (u8a[5] << 8) + (u8a[6] << 16)) * 0x1_00_00_00];\n // for anything else, we are above the actual MAX_SAFE_INTEGER - bail out\n default:\n throw new Error('Compact input is > Number.MAX_SAFE_INTEGER');\n }\n }\n }\n }\n});","lineCount":99,"map":[[7,2,17,0,"exports"],[7,9,17,0],[7,10,17,0,"compactFromU8a"],[7,24,17,0],[7,27,17,0,"compactFromU8a"],[7,41,17,0],[8,2,57,0,"exports"],[8,9,57,0],[8,10,57,0,"compactFromU8aLim"],[8,27,57,0],[8,30,57,0,"compactFromU8aLim"],[8,47,57,0],[9,2,1,0],[9,6,1,0,"_bnIndexJs"],[9,16,1,0],[9,19,1,0,"require"],[9,26,1,0],[9,27,1,0,"_dependencyMap"],[9,41,1,0],[10,2,2,0],[10,6,2,0,"_u8aIndexJs"],[10,17,2,0],[10,20,2,0,"require"],[10,27,2,0],[10,28,2,0,"_dependencyMap"],[10,42,2,0],[11,2,3,0],[12,0,4,0],[13,0,5,0],[14,0,6,0],[15,0,7,0],[16,0,8,0],[17,0,9,0],[18,0,10,0],[19,0,11,0],[20,0,12,0],[21,0,13,0],[22,0,14,0],[23,0,15,0],[24,0,16,0],[25,2,17,7],[25,11,17,16,"compactFromU8a"],[25,25,17,30,"compactFromU8a"],[25,26,17,31,"input"],[25,31,17,36],[25,33,17,38],[26,4,18,4],[26,10,18,10,"u8a"],[26,13,18,13],[26,16,18,16],[26,20,18,16,"u8aToU8a"],[26,31,18,24],[26,32,18,24,"u8aToU8a"],[26,40,18,24],[26,42,18,25,"input"],[26,47,18,30],[26,48,18,31],[27,4,19,4],[28,4,20,4],[29,4,21,4],[29,12,21,12,"u8a"],[29,15,21,15],[29,16,21,16],[29,17,21,17],[29,18,21,18],[29,21,21,21],[29,25,21,25],[30,6,22,8],[30,11,22,13],[30,15,22,17],[31,8,23,12],[31,15,23,19],[31,16,23,20],[31,17,23,21],[31,19,23,23],[31,23,23,27,"BN"],[31,33,23,29],[31,34,23,29,"BN"],[31,36,23,29],[31,37,23,30,"u8a"],[31,40,23,33],[31,41,23,34],[31,42,23,35],[31,43,23,36],[31,48,23,41],[31,49,23,42],[31,50,23,43],[31,51,23,44],[32,6,24,8],[32,11,24,13],[32,15,24,17],[33,8,25,12],[33,15,25,19],[33,16,25,20],[33,17,25,21],[33,19,25,23],[33,23,25,27,"BN"],[33,33,25,29],[33,34,25,29,"BN"],[33,36,25,29],[33,37,25,31,"u8a"],[33,40,25,34],[33,41,25,35],[33,42,25,36],[33,43,25,37],[33,47,25,41,"u8a"],[33,50,25,44],[33,51,25,45],[33,52,25,46],[33,53,25,47],[33,57,25,51],[33,58,25,52],[33,59,25,53],[33,64,25,59],[33,65,25,60],[33,66,25,61],[33,67,25,62],[34,6,26,8],[34,11,26,13],[34,15,26,17],[35,8,27,12],[36,8,28,12],[37,8,29,12],[37,15,29,19],[37,16,29,20],[37,17,29,21],[37,19,29,23],[37,23,29,27,"BN"],[37,33,29,29],[37,34,29,29,"BN"],[37,36,29,29],[37,37,29,31,"u8a"],[37,40,29,34],[37,41,29,35],[37,42,29,36],[37,43,29,37],[37,47,29,41,"u8a"],[37,50,29,44],[37,51,29,45],[37,52,29,46],[37,53,29,47],[37,57,29,51],[37,58,29,52],[37,59,29,53],[37,63,29,57,"u8a"],[37,66,29,60],[37,67,29,61],[37,68,29,62],[37,69,29,63],[37,73,29,67],[37,75,29,69],[37,76,29,70],[37,79,29,74,"u8a"],[37,82,29,77],[37,83,29,78],[37,84,29,79],[37,85,29,80],[37,88,29,83],[37,100,29,96],[37,105,29,102],[37,106,29,103],[37,107,29,104],[37,108,29,105],[38,6,30,8],[39,6,31,8],[40,8,31,17],[41,10,32,12],[42,10,33,12],[42,16,33,18,"offset"],[42,22,33,24],[42,25,33,27],[42,26,33,28,"u8a"],[42,29,33,31],[42,30,33,32],[42,31,33,33],[42,32,33,34],[42,37,33,39],[42,38,33,40],[42,42,33,44],[42,43,33,45],[43,10,34,12],[44,10,35,12],[44,18,35,20,"offset"],[44,24,35,26],[45,12,36,16],[46,12,37,16],[46,17,37,21],[46,18,37,22],[47,14,38,20],[48,14,39,20],[49,14,40,20],[49,21,40,27],[49,22,40,28],[49,23,40,29],[49,25,40,31],[49,29,40,35,"BN"],[49,39,40,37],[49,40,40,37,"BN"],[49,42,40,37],[49,43,40,38,"u8a"],[49,46,40,41],[49,47,40,42],[49,48,40,43],[49,49,40,44],[49,53,40,48,"u8a"],[49,56,40,51],[49,57,40,52],[49,58,40,53],[49,59,40,54],[49,63,40,58],[49,64,40,59],[49,65,40,60],[49,69,40,64,"u8a"],[49,72,40,67],[49,73,40,68],[49,74,40,69],[49,75,40,70],[49,79,40,74],[49,81,40,76],[49,82,40,77],[49,85,40,81,"u8a"],[49,88,40,84],[49,89,40,85],[49,90,40,86],[49,91,40,87],[49,94,40,90],[49,106,40,103],[49,107,40,104],[49,108,40,105],[50,12,41,16],[50,17,41,21],[50,18,41,22],[51,14,42,20],[51,21,42,27],[51,22,42,28],[51,23,42,29],[51,25,42,31],[51,29,42,35,"BN"],[51,39,42,37],[51,40,42,37,"BN"],[51,42,42,37],[51,43,42,38,"u8a"],[51,46,42,41],[51,47,42,42],[51,48,42,43],[51,49,42,44],[51,53,42,48,"u8a"],[51,56,42,51],[51,57,42,52],[51,58,42,53],[51,59,42,54],[51,63,42,58],[51,64,42,59],[51,65,42,60],[51,69,42,64,"u8a"],[51,72,42,67],[51,73,42,68],[51,74,42,69],[51,75,42,70],[51,79,42,74],[51,81,42,76],[51,82,42,77],[51,85,42,81],[51,86,42,82,"u8a"],[51,89,42,85],[51,90,42,86],[51,91,42,87],[51,92,42,88],[51,96,42,92,"u8a"],[51,99,42,95],[51,100,42,96],[51,101,42,97],[51,102,42,98],[51,106,42,102],[51,107,42,103],[51,108,42,104],[51,112,42,108],[51,124,42,121],[51,125,42,122],[51,126,42,123],[52,12,43,16],[53,12,44,16],[53,17,44,21],[53,18,44,22],[54,14,45,20],[54,21,45,27],[54,22,45,28],[54,23,45,29],[54,25,45,31],[54,29,45,35,"BN"],[54,39,45,37],[54,40,45,37,"BN"],[54,42,45,37],[54,43,45,38,"u8a"],[54,46,45,41],[54,47,45,42],[54,48,45,43],[54,49,45,44],[54,53,45,48,"u8a"],[54,56,45,51],[54,57,45,52],[54,58,45,53],[54,59,45,54],[54,63,45,58],[54,64,45,59],[54,65,45,60],[54,69,45,64,"u8a"],[54,72,45,67],[54,73,45,68],[54,74,45,69],[54,75,45,70],[54,79,45,74],[54,81,45,76],[54,82,45,77],[54,85,45,81],[54,86,45,82,"u8a"],[54,89,45,85],[54,90,45,86],[54,91,45,87],[54,92,45,88],[54,96,45,92,"u8a"],[54,99,45,95],[54,100,45,96],[54,101,45,97],[54,102,45,98],[54,106,45,102],[54,107,45,103],[54,108,45,104],[54,112,45,108,"u8a"],[54,115,45,111],[54,116,45,112],[54,117,45,113],[54,118,45,114],[54,122,45,118],[54,124,45,120],[54,125,45,121],[54,129,45,125],[54,141,45,138],[54,142,45,139],[54,143,45,140],[55,12,46,16],[56,12,47,16],[57,14,48,20],[57,21,48,27],[57,22,48,28,"offset"],[57,28,48,34],[57,30,48,36],[57,34,48,36,"u8aToBn"],[57,45,48,43],[57,46,48,43,"u8aToBn"],[57,53,48,43],[57,55,48,44,"u8a"],[57,58,48,47],[57,59,48,48,"subarray"],[57,67,48,56],[57,68,48,57],[57,69,48,58],[57,71,48,60,"offset"],[57,77,48,66],[57,78,48,67],[57,79,48,68],[57,80,48,69],[58,10,49,12],[59,8,50,8],[60,4,51,4],[61,2,52,0],[62,2,53,0],[63,0,54,0],[64,0,55,0],[65,0,56,0],[66,2,57,7],[66,11,57,16,"compactFromU8aLim"],[66,28,57,33,"compactFromU8aLim"],[66,29,57,34,"u8a"],[66,32,57,37],[66,34,57,39],[67,4,58,4],[68,4,59,4],[69,4,60,4],[69,12,60,12,"u8a"],[69,15,60,15],[69,16,60,16],[69,17,60,17],[69,18,60,18],[69,21,60,21],[69,25,60,25],[70,6,61,8],[70,11,61,13],[70,15,61,17],[71,8,62,12],[71,15,62,19],[71,16,62,20],[71,17,62,21],[71,19,62,23,"u8a"],[71,22,62,26],[71,23,62,27],[71,24,62,28],[71,25,62,29],[71,30,62,34],[71,31,62,35],[71,32,62,36],[72,6,63,8],[72,11,63,13],[72,15,63,17],[73,8,64,12],[73,15,64,19],[73,16,64,20],[73,17,64,21],[73,19,64,24,"u8a"],[73,22,64,27],[73,23,64,28],[73,24,64,29],[73,25,64,30],[73,29,64,34,"u8a"],[73,32,64,37],[73,33,64,38],[73,34,64,39],[73,35,64,40],[73,39,64,44],[73,40,64,45],[73,41,64,46],[73,46,64,52],[73,47,64,53],[73,48,64,54],[74,6,65,8],[74,11,65,13],[74,15,65,17],[75,8,66,12],[76,8,67,12],[77,8,68,12],[77,15,68,19],[77,16,68,20],[77,17,68,21],[77,19,68,24,"u8a"],[77,22,68,27],[77,23,68,28],[77,24,68,29],[77,25,68,30],[77,29,68,34,"u8a"],[77,32,68,37],[77,33,68,38],[77,34,68,39],[77,35,68,40],[77,39,68,44],[77,40,68,45],[77,41,68,46],[77,45,68,50,"u8a"],[77,48,68,53],[77,49,68,54],[77,50,68,55],[77,51,68,56],[77,55,68,60],[77,57,68,62],[77,58,68,63],[77,61,68,67,"u8a"],[77,64,68,70],[77,65,68,71],[77,66,68,72],[77,67,68,73],[77,70,68,76],[77,82,68,89],[77,87,68,95],[77,88,68,96],[77,89,68,97],[78,6,69,8],[79,6,70,8],[80,8,70,17],[81,10,71,12],[82,10,72,12],[83,10,73,12],[83,18,73,20],[83,19,73,21,"u8a"],[83,22,73,24],[83,23,73,25],[83,24,73,26],[83,25,73,27],[83,30,73,32],[83,31,73,33],[83,35,73,37],[83,36,73,38],[84,12,74,16],[85,12,75,16],[85,17,75,21],[85,18,75,22],[86,14,76,20],[86,21,76,27],[86,22,76,28],[86,23,76,29],[86,25,76,31,"u8a"],[86,28,76,34],[86,29,76,35],[86,30,76,36],[86,31,76,37],[86,35,76,41,"u8a"],[86,38,76,44],[86,39,76,45],[86,40,76,46],[86,41,76,47],[86,45,76,51],[86,46,76,52],[86,47,76,53],[86,51,76,57,"u8a"],[86,54,76,60],[86,55,76,61],[86,56,76,62],[86,57,76,63],[86,61,76,67],[86,63,76,69],[86,64,76,70],[86,67,76,74,"u8a"],[86,70,76,77],[86,71,76,78],[86,72,76,79],[86,73,76,80],[86,76,76,83],[86,88,76,96],[86,89,76,97],[87,12,77,16],[87,17,77,21],[87,18,77,22],[88,14,78,20],[88,21,78,27],[88,22,78,28],[88,23,78,29],[88,25,78,31,"u8a"],[88,28,78,34],[88,29,78,35],[88,30,78,36],[88,31,78,37],[88,35,78,41,"u8a"],[88,38,78,44],[88,39,78,45],[88,40,78,46],[88,41,78,47],[88,45,78,51],[88,46,78,52],[88,47,78,53],[88,51,78,57,"u8a"],[88,54,78,60],[88,55,78,61],[88,56,78,62],[88,57,78,63],[88,61,78,67],[88,63,78,69],[88,64,78,70],[88,67,78,74],[88,68,78,75,"u8a"],[88,71,78,78],[88,72,78,79],[88,73,78,80],[88,74,78,81],[88,78,78,85,"u8a"],[88,81,78,88],[88,82,78,89],[88,83,78,90],[88,84,78,91],[88,88,78,95],[88,89,78,96],[88,90,78,97],[88,94,78,101],[88,106,78,114],[88,107,78,115],[89,12,79,16],[90,12,80,16],[90,17,80,21],[90,18,80,22],[91,14,81,20],[91,21,81,27],[91,22,81,28],[91,23,81,29],[91,25,81,31,"u8a"],[91,28,81,34],[91,29,81,35],[91,30,81,36],[91,31,81,37],[91,35,81,41,"u8a"],[91,38,81,44],[91,39,81,45],[91,40,81,46],[91,41,81,47],[91,45,81,51],[91,46,81,52],[91,47,81,53],[91,51,81,57,"u8a"],[91,54,81,60],[91,55,81,61],[91,56,81,62],[91,57,81,63],[91,61,81,67],[91,63,81,69],[91,64,81,70],[91,67,81,74],[91,68,81,75,"u8a"],[91,71,81,78],[91,72,81,79],[91,73,81,80],[91,74,81,81],[91,78,81,85,"u8a"],[91,81,81,88],[91,82,81,89],[91,83,81,90],[91,84,81,91],[91,88,81,95],[91,89,81,96],[91,90,81,97],[91,94,81,101,"u8a"],[91,97,81,104],[91,98,81,105],[91,99,81,106],[91,100,81,107],[91,104,81,111],[91,106,81,113],[91,107,81,114],[91,111,81,118],[91,123,81,131],[91,124,81,132],[92,12,82,16],[93,12,83,16],[94,14,84,20],[94,20,84,26],[94,24,84,30,"Error"],[94,29,84,35],[94,30,84,36],[94,74,84,80],[94,75,84,81],[95,10,85,12],[96,8,86,8],[97,4,87,4],[98,2,88,0],[99,0,88,1],[99,3]],"functionMap":{"names":["<global>","compactFromU8a","compactFromU8aLim"],"mappings":"AAA;OCgB;CDmC;OEK;CF+B"},"hasCjsExports":false},"type":"js/module"}]}