mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 08:51:01 +00:00
1 line
13 KiB
Plaintext
1 line
13 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/x-bigint","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":44,"index":44}}],"key":"Xafw1y4jIaVcNbHtayie8UfNWW8=","exportNames":["*"],"imports":1}},{"name":"../bi/consts.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":45},"end":{"line":2,"column":38,"index":83}}],"key":"2Ho7uHFszSsnRf+RUgnuWnM5+Ng=","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.u8aToBigInt = u8aToBigInt;\n var _polkadotXBigint = require(_dependencyMap[0], \"@polkadot/x-bigint\");\n var _biConstsJs = require(_dependencyMap[1], \"../bi/consts.js\");\n const U8_MAX = (0, _polkadotXBigint.BigInt)(256);\n const U16_MAX = (0, _polkadotXBigint.BigInt)(256 * 256);\n const U64_MAX = (0, _polkadotXBigint.BigInt)('0x10000000000000000');\n /**\n * @name u8aToBigInt\n * @summary Creates a BigInt from a Uint8Array object.\n */\n function u8aToBigInt(value, {\n isLe = true,\n isNegative = false\n } = {}) {\n // slice + reverse is expensive, however SCALE is LE by default so this is the path\n // we are most interested in (the BE is added for the sake of being comprehensive)\n if (!isLe) {\n value = value.slice().reverse();\n }\n const count = value.length;\n if (isNegative && count && value[count - 1] & 0x80) {\n switch (count) {\n case 0:\n return (0, _polkadotXBigint.BigInt)(0);\n case 1:\n return (0, _polkadotXBigint.BigInt)((value[0] ^ 0x0000_00ff) * -1 - 1);\n case 2:\n return (0, _polkadotXBigint.BigInt)((value[0] + (value[1] << 8) ^ 0x0000_ffff) * -1 - 1);\n case 4:\n return (0, _polkadotXBigint.BigInt)((value[0] + (value[1] << 8) + (value[2] << 16) + value[3] * 0x1_00_00_00 ^ 0xffff_ffff) * -1 - 1);\n }\n const dvI = new DataView(value.buffer, value.byteOffset);\n if (count === 8) {\n return dvI.getBigInt64(0, true);\n }\n let result = (0, _polkadotXBigint.BigInt)(0);\n const mod = count % 2;\n for (let i = count - 2; i >= mod; i -= 2) {\n result = result * U16_MAX + (0, _polkadotXBigint.BigInt)(dvI.getUint16(i, true) ^ 0xffff);\n }\n if (mod) {\n result = result * U8_MAX + (0, _polkadotXBigint.BigInt)(value[0] ^ 0xff);\n }\n return result * -_biConstsJs._1n - _biConstsJs._1n;\n }\n switch (count) {\n case 0:\n return (0, _polkadotXBigint.BigInt)(0);\n case 1:\n return (0, _polkadotXBigint.BigInt)(value[0]);\n case 2:\n return (0, _polkadotXBigint.BigInt)(value[0] + (value[1] << 8));\n case 4:\n return (0, _polkadotXBigint.BigInt)(value[0] + (value[1] << 8) + (value[2] << 16) + value[3] * 0x1_00_00_00);\n }\n const dvI = new DataView(value.buffer, value.byteOffset);\n switch (count) {\n case 8:\n return dvI.getBigUint64(0, true);\n case 16:\n return dvI.getBigUint64(8, true) * U64_MAX + dvI.getBigUint64(0, true);\n default:\n {\n let result = (0, _polkadotXBigint.BigInt)(0);\n const mod = count % 2;\n for (let i = count - 2; i >= mod; i -= 2) {\n result = result * U16_MAX + (0, _polkadotXBigint.BigInt)(dvI.getUint16(i, true));\n }\n if (mod) {\n result = result * U8_MAX + (0, _polkadotXBigint.BigInt)(value[0]);\n }\n return result;\n }\n }\n }\n});","lineCount":82,"map":[[7,2,10,0,"exports"],[7,9,10,0],[7,10,10,0,"u8aToBigInt"],[7,21,10,0],[7,24,10,0,"u8aToBigInt"],[7,35,10,0],[8,2,1,0],[8,6,1,0,"_polkadotXBigint"],[8,22,1,0],[8,25,1,0,"require"],[8,32,1,0],[8,33,1,0,"_dependencyMap"],[8,47,1,0],[9,2,2,0],[9,6,2,0,"_biConstsJs"],[9,17,2,0],[9,20,2,0,"require"],[9,27,2,0],[9,28,2,0,"_dependencyMap"],[9,42,2,0],[10,2,3,0],[10,8,3,6,"U8_MAX"],[10,14,3,12],[10,17,3,15],[10,21,3,15,"BigInt"],[10,37,3,21],[10,38,3,21,"BigInt"],[10,44,3,21],[10,46,3,22],[10,49,3,25],[10,50,3,26],[11,2,4,0],[11,8,4,6,"U16_MAX"],[11,15,4,13],[11,18,4,16],[11,22,4,16,"BigInt"],[11,38,4,22],[11,39,4,22,"BigInt"],[11,45,4,22],[11,47,4,23],[11,50,4,26],[11,53,4,29],[11,56,4,32],[11,57,4,33],[12,2,5,0],[12,8,5,6,"U64_MAX"],[12,15,5,13],[12,18,5,16],[12,22,5,16,"BigInt"],[12,38,5,22],[12,39,5,22,"BigInt"],[12,45,5,22],[12,47,5,23],[12,68,5,44],[12,69,5,45],[13,2,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,2,10,7],[17,11,10,16,"u8aToBigInt"],[17,22,10,27,"u8aToBigInt"],[17,23,10,28,"value"],[17,28,10,33],[17,30,10,35],[18,4,10,37,"isLe"],[18,8,10,41],[18,11,10,44],[18,15,10,48],[19,4,10,50,"isNegative"],[19,14,10,60],[19,17,10,63],[20,2,10,69],[20,3,10,70],[20,6,10,73],[20,7,10,74],[20,8,10,75],[20,10,10,77],[21,4,11,4],[22,4,12,4],[23,4,13,4],[23,8,13,8],[23,9,13,9,"isLe"],[23,13,13,13],[23,15,13,15],[24,6,14,8,"value"],[24,11,14,13],[24,14,14,16,"value"],[24,19,14,21],[24,20,14,22,"slice"],[24,25,14,27],[24,26,14,28],[24,27,14,29],[24,28,14,30,"reverse"],[24,35,14,37],[24,36,14,38],[24,37,14,39],[25,4,15,4],[26,4,16,4],[26,10,16,10,"count"],[26,15,16,15],[26,18,16,18,"value"],[26,23,16,23],[26,24,16,24,"length"],[26,30,16,30],[27,4,17,4],[27,8,17,8,"isNegative"],[27,18,17,18],[27,22,17,22,"count"],[27,27,17,27],[27,31,17,32,"value"],[27,36,17,37],[27,37,17,38,"count"],[27,42,17,43],[27,45,17,46],[27,46,17,47],[27,47,17,48],[27,50,17,51],[27,54,17,56],[27,56,17,58],[28,6,18,8],[28,14,18,16,"count"],[28,19,18,21],[29,8,19,12],[29,13,19,17],[29,14,19,18],[30,10,20,16],[30,17,20,23],[30,21,20,23,"BigInt"],[30,37,20,29],[30,38,20,29,"BigInt"],[30,44,20,29],[30,46,20,30],[30,47,20,31],[30,48,20,32],[31,8,21,12],[31,13,21,17],[31,14,21,18],[32,10,22,16],[32,17,22,23],[32,21,22,23,"BigInt"],[32,37,22,29],[32,38,22,29,"BigInt"],[32,44,22,29],[32,46,22,31],[32,47,22,32,"value"],[32,52,22,37],[32,53,22,38],[32,54,22,39],[32,55,22,40],[32,58,22,43],[32,69,22,54],[32,73,22,58],[32,74,22,59],[32,75,22,60],[32,78,22,64],[32,79,22,65],[32,80,22,66],[33,8,23,12],[33,13,23,17],[33,14,23,18],[34,10,24,16],[34,17,24,23],[34,21,24,23,"BigInt"],[34,37,24,29],[34,38,24,29,"BigInt"],[34,44,24,29],[34,46,24,31],[34,47,24,33,"value"],[34,52,24,38],[34,53,24,39],[34,54,24,40],[34,55,24,41],[34,59,24,45,"value"],[34,64,24,50],[34,65,24,51],[34,66,24,52],[34,67,24,53],[34,71,24,57],[34,72,24,58],[34,73,24,59],[34,76,24,63],[34,87,24,74],[34,91,24,78],[34,92,24,79],[34,93,24,80],[34,96,24,84],[34,97,24,85],[34,98,24,86],[35,8,25,12],[35,13,25,17],[35,14,25,18],[36,10,26,16],[36,17,26,23],[36,21,26,23,"BigInt"],[36,37,26,29],[36,38,26,29,"BigInt"],[36,44,26,29],[36,46,26,31],[36,47,26,33,"value"],[36,52,26,38],[36,53,26,39],[36,54,26,40],[36,55,26,41],[36,59,26,45,"value"],[36,64,26,50],[36,65,26,51],[36,66,26,52],[36,67,26,53],[36,71,26,57],[36,72,26,58],[36,73,26,59],[36,77,26,63,"value"],[36,82,26,68],[36,83,26,69],[36,84,26,70],[36,85,26,71],[36,89,26,75],[36,91,26,77],[36,92,26,78],[36,95,26,82,"value"],[36,100,26,87],[36,101,26,88],[36,102,26,89],[36,103,26,90],[36,106,26,93],[36,118,26,106],[36,121,26,110],[36,132,26,121],[36,136,26,125],[36,137,26,126],[36,138,26,127],[36,141,26,131],[36,142,26,132],[36,143,26,133],[37,6,27,8],[38,6,28,8],[38,12,28,14,"dvI"],[38,15,28,17],[38,18,28,20],[38,22,28,24,"DataView"],[38,30,28,32],[38,31,28,33,"value"],[38,36,28,38],[38,37,28,39,"buffer"],[38,43,28,45],[38,45,28,47,"value"],[38,50,28,52],[38,51,28,53,"byteOffset"],[38,61,28,63],[38,62,28,64],[39,6,29,8],[39,10,29,12,"count"],[39,15,29,17],[39,20,29,22],[39,21,29,23],[39,23,29,25],[40,8,30,12],[40,15,30,19,"dvI"],[40,18,30,22],[40,19,30,23,"getBigInt64"],[40,30,30,34],[40,31,30,35],[40,32,30,36],[40,34,30,38],[40,38,30,42],[40,39,30,43],[41,6,31,8],[42,6,32,8],[42,10,32,12,"result"],[42,16,32,18],[42,19,32,21],[42,23,32,21,"BigInt"],[42,39,32,27],[42,40,32,27,"BigInt"],[42,46,32,27],[42,48,32,28],[42,49,32,29],[42,50,32,30],[43,6,33,8],[43,12,33,14,"mod"],[43,15,33,17],[43,18,33,20,"count"],[43,23,33,25],[43,26,33,28],[43,27,33,29],[44,6,34,8],[44,11,34,13],[44,15,34,17,"i"],[44,16,34,18],[44,19,34,21,"count"],[44,24,34,26],[44,27,34,29],[44,28,34,30],[44,30,34,32,"i"],[44,31,34,33],[44,35,34,37,"mod"],[44,38,34,40],[44,40,34,42,"i"],[44,41,34,43],[44,45,34,47],[44,46,34,48],[44,48,34,50],[45,8,35,12,"result"],[45,14,35,18],[45,17,35,22,"result"],[45,23,35,28],[45,26,35,31,"U16_MAX"],[45,33,35,38],[45,36,35,42],[45,40,35,42,"BigInt"],[45,56,35,48],[45,57,35,48,"BigInt"],[45,63,35,48],[45,65,35,49,"dvI"],[45,68,35,52],[45,69,35,53,"getUint16"],[45,78,35,62],[45,79,35,63,"i"],[45,80,35,64],[45,82,35,66],[45,86,35,70],[45,87,35,71],[45,90,35,74],[45,96,35,80],[45,97,35,81],[46,6,36,8],[47,6,37,8],[47,10,37,12,"mod"],[47,13,37,15],[47,15,37,17],[48,8,38,12,"result"],[48,14,38,18],[48,17,38,22,"result"],[48,23,38,28],[48,26,38,31,"U8_MAX"],[48,32,38,37],[48,35,38,41],[48,39,38,41,"BigInt"],[48,55,38,47],[48,56,38,47,"BigInt"],[48,62,38,47],[48,64,38,48,"value"],[48,69,38,53],[48,70,38,54],[48,71,38,55],[48,72,38,56],[48,75,38,59],[48,79,38,63],[48,80,38,64],[49,6,39,8],[50,6,40,8],[50,13,40,16,"result"],[50,19,40,22],[50,22,40,25],[50,23,40,26,"_1n"],[50,34,40,29],[50,35,40,29,"_1n"],[50,38,40,29],[50,41,40,33,"_1n"],[50,52,40,36],[50,53,40,36,"_1n"],[50,56,40,36],[51,4,41,4],[52,4,42,4],[52,12,42,12,"count"],[52,17,42,17],[53,6,43,8],[53,11,43,13],[53,12,43,14],[54,8,44,12],[54,15,44,19],[54,19,44,19,"BigInt"],[54,35,44,25],[54,36,44,25,"BigInt"],[54,42,44,25],[54,44,44,26],[54,45,44,27],[54,46,44,28],[55,6,45,8],[55,11,45,13],[55,12,45,14],[56,8,46,12],[56,15,46,19],[56,19,46,19,"BigInt"],[56,35,46,25],[56,36,46,25,"BigInt"],[56,42,46,25],[56,44,46,26,"value"],[56,49,46,31],[56,50,46,32],[56,51,46,33],[56,52,46,34],[56,53,46,35],[57,6,47,8],[57,11,47,13],[57,12,47,14],[58,8,48,12],[58,15,48,19],[58,19,48,19,"BigInt"],[58,35,48,25],[58,36,48,25,"BigInt"],[58,42,48,25],[58,44,48,26,"value"],[58,49,48,31],[58,50,48,32],[58,51,48,33],[58,52,48,34],[58,56,48,38,"value"],[58,61,48,43],[58,62,48,44],[58,63,48,45],[58,64,48,46],[58,68,48,50],[58,69,48,51],[58,70,48,52],[58,71,48,53],[59,6,49,8],[59,11,49,13],[59,12,49,14],[60,8,50,12],[60,15,50,19],[60,19,50,19,"BigInt"],[60,35,50,25],[60,36,50,25,"BigInt"],[60,42,50,25],[60,44,50,26,"value"],[60,49,50,31],[60,50,50,32],[60,51,50,33],[60,52,50,34],[60,56,50,38,"value"],[60,61,50,43],[60,62,50,44],[60,63,50,45],[60,64,50,46],[60,68,50,50],[60,69,50,51],[60,70,50,52],[60,74,50,56,"value"],[60,79,50,61],[60,80,50,62],[60,81,50,63],[60,82,50,64],[60,86,50,68],[60,88,50,70],[60,89,50,71],[60,92,50,75,"value"],[60,97,50,80],[60,98,50,81],[60,99,50,82],[60,100,50,83],[60,103,50,86],[60,115,50,99],[60,116,50,100],[61,4,51,4],[62,4,52,4],[62,10,52,10,"dvI"],[62,13,52,13],[62,16,52,16],[62,20,52,20,"DataView"],[62,28,52,28],[62,29,52,29,"value"],[62,34,52,34],[62,35,52,35,"buffer"],[62,41,52,41],[62,43,52,43,"value"],[62,48,52,48],[62,49,52,49,"byteOffset"],[62,59,52,59],[62,60,52,60],[63,4,53,4],[63,12,53,12,"count"],[63,17,53,17],[64,6,54,8],[64,11,54,13],[64,12,54,14],[65,8,55,12],[65,15,55,19,"dvI"],[65,18,55,22],[65,19,55,23,"getBigUint64"],[65,31,55,35],[65,32,55,36],[65,33,55,37],[65,35,55,39],[65,39,55,43],[65,40,55,44],[66,6,56,8],[66,11,56,13],[66,13,56,15],[67,8,57,12],[67,15,57,20,"dvI"],[67,18,57,23],[67,19,57,24,"getBigUint64"],[67,31,57,36],[67,32,57,37],[67,33,57,38],[67,35,57,40],[67,39,57,44],[67,40,57,45],[67,43,57,48,"U64_MAX"],[67,50,57,55],[67,53,57,59,"dvI"],[67,56,57,62],[67,57,57,63,"getBigUint64"],[67,69,57,75],[67,70,57,76],[67,71,57,77],[67,73,57,79],[67,77,57,83],[67,78,57,84],[68,6,58,8],[69,8,58,17],[70,10,59,12],[70,14,59,16,"result"],[70,20,59,22],[70,23,59,25],[70,27,59,25,"BigInt"],[70,43,59,31],[70,44,59,31,"BigInt"],[70,50,59,31],[70,52,59,32],[70,53,59,33],[70,54,59,34],[71,10,60,12],[71,16,60,18,"mod"],[71,19,60,21],[71,22,60,24,"count"],[71,27,60,29],[71,30,60,32],[71,31,60,33],[72,10,61,12],[72,15,61,17],[72,19,61,21,"i"],[72,20,61,22],[72,23,61,25,"count"],[72,28,61,30],[72,31,61,33],[72,32,61,34],[72,34,61,36,"i"],[72,35,61,37],[72,39,61,41,"mod"],[72,42,61,44],[72,44,61,46,"i"],[72,45,61,47],[72,49,61,51],[72,50,61,52],[72,52,61,54],[73,12,62,16,"result"],[73,18,62,22],[73,21,62,26,"result"],[73,27,62,32],[73,30,62,35,"U16_MAX"],[73,37,62,42],[73,40,62,46],[73,44,62,46,"BigInt"],[73,60,62,52],[73,61,62,52,"BigInt"],[73,67,62,52],[73,69,62,53,"dvI"],[73,72,62,56],[73,73,62,57,"getUint16"],[73,82,62,66],[73,83,62,67,"i"],[73,84,62,68],[73,86,62,70],[73,90,62,74],[73,91,62,75],[73,92,62,76],[74,10,63,12],[75,10,64,12],[75,14,64,16,"mod"],[75,17,64,19],[75,19,64,21],[76,12,65,16,"result"],[76,18,65,22],[76,21,65,26,"result"],[76,27,65,32],[76,30,65,35,"U8_MAX"],[76,36,65,41],[76,39,65,45],[76,43,65,45,"BigInt"],[76,59,65,51],[76,60,65,51,"BigInt"],[76,66,65,51],[76,68,65,52,"value"],[76,73,65,57],[76,74,65,58],[76,75,65,59],[76,76,65,60],[76,77,65,61],[77,10,66,12],[78,10,67,12],[78,17,67,19,"result"],[78,23,67,25],[79,8,68,8],[80,4,69,4],[81,2,70,0],[82,0,70,1],[82,3]],"functionMap":{"names":["<global>","u8aToBigInt"],"mappings":"AAA;OCS;CD4D"},"hasCjsExports":false},"type":"js/module"}]} |