mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 13:31:00 +00:00
1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/x-bigint","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":19,"index":131},"end":{"line":4,"column":48,"index":160}}],"key":"vYT44QPz4/mwSlaWVHyJIDa5mP4=","exportNames":["*"],"imports":1}},{"name":"../bi/consts.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":20,"index":182},"end":{"line":5,"column":46,"index":208}}],"key":"mMigf4soDf/viKGESzI+i5ta/uo=","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 const x_bigint_1 = require(_dependencyMap[0], \"@polkadot/x-bigint\");\n const consts_js_1 = require(_dependencyMap[1], \"../bi/consts.js\");\n const U8_MAX = (0, x_bigint_1.BigInt)(256);\n const U16_MAX = (0, x_bigint_1.BigInt)(256 * 256);\n const U64_MAX = (0, x_bigint_1.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, x_bigint_1.BigInt)(0);\n case 1:\n return (0, x_bigint_1.BigInt)((value[0] ^ 0x0000_00ff) * -1 - 1);\n case 2:\n return (0, x_bigint_1.BigInt)((value[0] + (value[1] << 8) ^ 0x0000_ffff) * -1 - 1);\n case 4:\n return (0, x_bigint_1.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, x_bigint_1.BigInt)(0);\n const mod = count % 2;\n for (let i = count - 2; i >= mod; i -= 2) {\n result = result * U16_MAX + (0, x_bigint_1.BigInt)(dvI.getUint16(i, true) ^ 0xffff);\n }\n if (mod) {\n result = result * U8_MAX + (0, x_bigint_1.BigInt)(value[0] ^ 0xff);\n }\n return result * -consts_js_1._1n - consts_js_1._1n;\n }\n switch (count) {\n case 0:\n return (0, x_bigint_1.BigInt)(0);\n case 1:\n return (0, x_bigint_1.BigInt)(value[0]);\n case 2:\n return (0, x_bigint_1.BigInt)(value[0] + (value[1] << 8));\n case 4:\n return (0, x_bigint_1.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, x_bigint_1.BigInt)(0);\n const mod = count % 2;\n for (let i = count - 2; i >= mod; i -= 2) {\n result = result * U16_MAX + (0, x_bigint_1.BigInt)(dvI.getUint16(i, true));\n }\n if (mod) {\n result = result * U8_MAX + (0, x_bigint_1.BigInt)(value[0]);\n }\n return result;\n }\n }\n }\n});","lineCount":82,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"u8aToBigInt"],[7,21,3,19],[7,24,3,22,"u8aToBigInt"],[7,35,3,33],[8,2,4,0],[8,8,4,6,"x_bigint_1"],[8,18,4,16],[8,21,4,19,"require"],[8,28,4,26],[8,29,4,26,"_dependencyMap"],[8,43,4,26],[8,68,4,47],[8,69,4,48],[9,2,5,0],[9,8,5,6,"consts_js_1"],[9,19,5,17],[9,22,5,20,"require"],[9,29,5,27],[9,30,5,27,"_dependencyMap"],[9,44,5,27],[9,66,5,45],[9,67,5,46],[10,2,6,0],[10,8,6,6,"U8_MAX"],[10,14,6,12],[10,17,6,15],[10,18,6,16],[10,19,6,17],[10,21,6,19,"x_bigint_1"],[10,31,6,29],[10,32,6,30,"BigInt"],[10,38,6,36],[10,40,6,38],[10,43,6,41],[10,44,6,42],[11,2,7,0],[11,8,7,6,"U16_MAX"],[11,15,7,13],[11,18,7,16],[11,19,7,17],[11,20,7,18],[11,22,7,20,"x_bigint_1"],[11,32,7,30],[11,33,7,31,"BigInt"],[11,39,7,37],[11,41,7,39],[11,44,7,42],[11,47,7,45],[11,50,7,48],[11,51,7,49],[12,2,8,0],[12,8,8,6,"U64_MAX"],[12,15,8,13],[12,18,8,16],[12,19,8,17],[12,20,8,18],[12,22,8,20,"x_bigint_1"],[12,32,8,30],[12,33,8,31,"BigInt"],[12,39,8,37],[12,41,8,39],[12,62,8,60],[12,63,8,61],[13,2,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,2,13,0],[17,11,13,9,"u8aToBigInt"],[17,22,13,20,"u8aToBigInt"],[17,23,13,21,"value"],[17,28,13,26],[17,30,13,28],[18,4,13,30,"isLe"],[18,8,13,34],[18,11,13,37],[18,15,13,41],[19,4,13,43,"isNegative"],[19,14,13,53],[19,17,13,56],[20,2,13,62],[20,3,13,63],[20,6,13,66],[20,7,13,67],[20,8,13,68],[20,10,13,70],[21,4,14,4],[22,4,15,4],[23,4,16,4],[23,8,16,8],[23,9,16,9,"isLe"],[23,13,16,13],[23,15,16,15],[24,6,17,8,"value"],[24,11,17,13],[24,14,17,16,"value"],[24,19,17,21],[24,20,17,22,"slice"],[24,25,17,27],[24,26,17,28],[24,27,17,29],[24,28,17,30,"reverse"],[24,35,17,37],[24,36,17,38],[24,37,17,39],[25,4,18,4],[26,4,19,4],[26,10,19,10,"count"],[26,15,19,15],[26,18,19,18,"value"],[26,23,19,23],[26,24,19,24,"length"],[26,30,19,30],[27,4,20,4],[27,8,20,8,"isNegative"],[27,18,20,18],[27,22,20,22,"count"],[27,27,20,27],[27,31,20,32,"value"],[27,36,20,37],[27,37,20,38,"count"],[27,42,20,43],[27,45,20,46],[27,46,20,47],[27,47,20,48],[27,50,20,51],[27,54,20,56],[27,56,20,58],[28,6,21,8],[28,14,21,16,"count"],[28,19,21,21],[29,8,22,12],[29,13,22,17],[29,14,22,18],[30,10,23,16],[30,17,23,23],[30,18,23,24],[30,19,23,25],[30,21,23,27,"x_bigint_1"],[30,31,23,37],[30,32,23,38,"BigInt"],[30,38,23,44],[30,40,23,46],[30,41,23,47],[30,42,23,48],[31,8,24,12],[31,13,24,17],[31,14,24,18],[32,10,25,16],[32,17,25,23],[32,18,25,24],[32,19,25,25],[32,21,25,27,"x_bigint_1"],[32,31,25,37],[32,32,25,38,"BigInt"],[32,38,25,44],[32,40,25,47],[32,41,25,48,"value"],[32,46,25,53],[32,47,25,54],[32,48,25,55],[32,49,25,56],[32,52,25,59],[32,63,25,70],[32,67,25,74],[32,68,25,75],[32,69,25,76],[32,72,25,80],[32,73,25,81],[32,74,25,82],[33,8,26,12],[33,13,26,17],[33,14,26,18],[34,10,27,16],[34,17,27,23],[34,18,27,24],[34,19,27,25],[34,21,27,27,"x_bigint_1"],[34,31,27,37],[34,32,27,38,"BigInt"],[34,38,27,44],[34,40,27,47],[34,41,27,49,"value"],[34,46,27,54],[34,47,27,55],[34,48,27,56],[34,49,27,57],[34,53,27,61,"value"],[34,58,27,66],[34,59,27,67],[34,60,27,68],[34,61,27,69],[34,65,27,73],[34,66,27,74],[34,67,27,75],[34,70,27,79],[34,81,27,90],[34,85,27,94],[34,86,27,95],[34,87,27,96],[34,90,27,100],[34,91,27,101],[34,92,27,102],[35,8,28,12],[35,13,28,17],[35,14,28,18],[36,10,29,16],[36,17,29,23],[36,18,29,24],[36,19,29,25],[36,21,29,27,"x_bigint_1"],[36,31,29,37],[36,32,29,38,"BigInt"],[36,38,29,44],[36,40,29,47],[36,41,29,49,"value"],[36,46,29,54],[36,47,29,55],[36,48,29,56],[36,49,29,57],[36,53,29,61,"value"],[36,58,29,66],[36,59,29,67],[36,60,29,68],[36,61,29,69],[36,65,29,73],[36,66,29,74],[36,67,29,75],[36,71,29,79,"value"],[36,76,29,84],[36,77,29,85],[36,78,29,86],[36,79,29,87],[36,83,29,91],[36,85,29,93],[36,86,29,94],[36,89,29,98,"value"],[36,94,29,103],[36,95,29,104],[36,96,29,105],[36,97,29,106],[36,100,29,109],[36,112,29,122],[36,115,29,126],[36,126,29,137],[36,130,29,141],[36,131,29,142],[36,132,29,143],[36,135,29,147],[36,136,29,148],[36,137,29,149],[37,6,30,8],[38,6,31,8],[38,12,31,14,"dvI"],[38,15,31,17],[38,18,31,20],[38,22,31,24,"DataView"],[38,30,31,32],[38,31,31,33,"value"],[38,36,31,38],[38,37,31,39,"buffer"],[38,43,31,45],[38,45,31,47,"value"],[38,50,31,52],[38,51,31,53,"byteOffset"],[38,61,31,63],[38,62,31,64],[39,6,32,8],[39,10,32,12,"count"],[39,15,32,17],[39,20,32,22],[39,21,32,23],[39,23,32,25],[40,8,33,12],[40,15,33,19,"dvI"],[40,18,33,22],[40,19,33,23,"getBigInt64"],[40,30,33,34],[40,31,33,35],[40,32,33,36],[40,34,33,38],[40,38,33,42],[40,39,33,43],[41,6,34,8],[42,6,35,8],[42,10,35,12,"result"],[42,16,35,18],[42,19,35,21],[42,20,35,22],[42,21,35,23],[42,23,35,25,"x_bigint_1"],[42,33,35,35],[42,34,35,36,"BigInt"],[42,40,35,42],[42,42,35,44],[42,43,35,45],[42,44,35,46],[43,6,36,8],[43,12,36,14,"mod"],[43,15,36,17],[43,18,36,20,"count"],[43,23,36,25],[43,26,36,28],[43,27,36,29],[44,6,37,8],[44,11,37,13],[44,15,37,17,"i"],[44,16,37,18],[44,19,37,21,"count"],[44,24,37,26],[44,27,37,29],[44,28,37,30],[44,30,37,32,"i"],[44,31,37,33],[44,35,37,37,"mod"],[44,38,37,40],[44,40,37,42,"i"],[44,41,37,43],[44,45,37,47],[44,46,37,48],[44,48,37,50],[45,8,38,12,"result"],[45,14,38,18],[45,17,38,22,"result"],[45,23,38,28],[45,26,38,31,"U16_MAX"],[45,33,38,38],[45,36,38,42],[45,37,38,43],[45,38,38,44],[45,40,38,46,"x_bigint_1"],[45,50,38,56],[45,51,38,57,"BigInt"],[45,57,38,63],[45,59,38,65,"dvI"],[45,62,38,68],[45,63,38,69,"getUint16"],[45,72,38,78],[45,73,38,79,"i"],[45,74,38,80],[45,76,38,82],[45,80,38,86],[45,81,38,87],[45,84,38,90],[45,90,38,96],[45,91,38,97],[46,6,39,8],[47,6,40,8],[47,10,40,12,"mod"],[47,13,40,15],[47,15,40,17],[48,8,41,12,"result"],[48,14,41,18],[48,17,41,22,"result"],[48,23,41,28],[48,26,41,31,"U8_MAX"],[48,32,41,37],[48,35,41,41],[48,36,41,42],[48,37,41,43],[48,39,41,45,"x_bigint_1"],[48,49,41,55],[48,50,41,56,"BigInt"],[48,56,41,62],[48,58,41,64,"value"],[48,63,41,69],[48,64,41,70],[48,65,41,71],[48,66,41,72],[48,69,41,75],[48,73,41,79],[48,74,41,80],[49,6,42,8],[50,6,43,8],[50,13,43,16,"result"],[50,19,43,22],[50,22,43,25],[50,23,43,26,"consts_js_1"],[50,34,43,37],[50,35,43,38,"_1n"],[50,38,43,41],[50,41,43,45,"consts_js_1"],[50,52,43,56],[50,53,43,57,"_1n"],[50,56,43,60],[51,4,44,4],[52,4,45,4],[52,12,45,12,"count"],[52,17,45,17],[53,6,46,8],[53,11,46,13],[53,12,46,14],[54,8,47,12],[54,15,47,19],[54,16,47,20],[54,17,47,21],[54,19,47,23,"x_bigint_1"],[54,29,47,33],[54,30,47,34,"BigInt"],[54,36,47,40],[54,38,47,42],[54,39,47,43],[54,40,47,44],[55,6,48,8],[55,11,48,13],[55,12,48,14],[56,8,49,12],[56,15,49,19],[56,16,49,20],[56,17,49,21],[56,19,49,23,"x_bigint_1"],[56,29,49,33],[56,30,49,34,"BigInt"],[56,36,49,40],[56,38,49,42,"value"],[56,43,49,47],[56,44,49,48],[56,45,49,49],[56,46,49,50],[56,47,49,51],[57,6,50,8],[57,11,50,13],[57,12,50,14],[58,8,51,12],[58,15,51,19],[58,16,51,20],[58,17,51,21],[58,19,51,23,"x_bigint_1"],[58,29,51,33],[58,30,51,34,"BigInt"],[58,36,51,40],[58,38,51,42,"value"],[58,43,51,47],[58,44,51,48],[58,45,51,49],[58,46,51,50],[58,50,51,54,"value"],[58,55,51,59],[58,56,51,60],[58,57,51,61],[58,58,51,62],[58,62,51,66],[58,63,51,67],[58,64,51,68],[58,65,51,69],[59,6,52,8],[59,11,52,13],[59,12,52,14],[60,8,53,12],[60,15,53,19],[60,16,53,20],[60,17,53,21],[60,19,53,23,"x_bigint_1"],[60,29,53,33],[60,30,53,34,"BigInt"],[60,36,53,40],[60,38,53,42,"value"],[60,43,53,47],[60,44,53,48],[60,45,53,49],[60,46,53,50],[60,50,53,54,"value"],[60,55,53,59],[60,56,53,60],[60,57,53,61],[60,58,53,62],[60,62,53,66],[60,63,53,67],[60,64,53,68],[60,68,53,72,"value"],[60,73,53,77],[60,74,53,78],[60,75,53,79],[60,76,53,80],[60,80,53,84],[60,82,53,86],[60,83,53,87],[60,86,53,91,"value"],[60,91,53,96],[60,92,53,97],[60,93,53,98],[60,94,53,99],[60,97,53,102],[60,109,53,115],[60,110,53,116],[61,4,54,4],[62,4,55,4],[62,10,55,10,"dvI"],[62,13,55,13],[62,16,55,16],[62,20,55,20,"DataView"],[62,28,55,28],[62,29,55,29,"value"],[62,34,55,34],[62,35,55,35,"buffer"],[62,41,55,41],[62,43,55,43,"value"],[62,48,55,48],[62,49,55,49,"byteOffset"],[62,59,55,59],[62,60,55,60],[63,4,56,4],[63,12,56,12,"count"],[63,17,56,17],[64,6,57,8],[64,11,57,13],[64,12,57,14],[65,8,58,12],[65,15,58,19,"dvI"],[65,18,58,22],[65,19,58,23,"getBigUint64"],[65,31,58,35],[65,32,58,36],[65,33,58,37],[65,35,58,39],[65,39,58,43],[65,40,58,44],[66,6,59,8],[66,11,59,13],[66,13,59,15],[67,8,60,12],[67,15,60,20,"dvI"],[67,18,60,23],[67,19,60,24,"getBigUint64"],[67,31,60,36],[67,32,60,37],[67,33,60,38],[67,35,60,40],[67,39,60,44],[67,40,60,45],[67,43,60,48,"U64_MAX"],[67,50,60,55],[67,53,60,59,"dvI"],[67,56,60,62],[67,57,60,63,"getBigUint64"],[67,69,60,75],[67,70,60,76],[67,71,60,77],[67,73,60,79],[67,77,60,83],[67,78,60,84],[68,6,61,8],[69,8,61,17],[70,10,62,12],[70,14,62,16,"result"],[70,20,62,22],[70,23,62,25],[70,24,62,26],[70,25,62,27],[70,27,62,29,"x_bigint_1"],[70,37,62,39],[70,38,62,40,"BigInt"],[70,44,62,46],[70,46,62,48],[70,47,62,49],[70,48,62,50],[71,10,63,12],[71,16,63,18,"mod"],[71,19,63,21],[71,22,63,24,"count"],[71,27,63,29],[71,30,63,32],[71,31,63,33],[72,10,64,12],[72,15,64,17],[72,19,64,21,"i"],[72,20,64,22],[72,23,64,25,"count"],[72,28,64,30],[72,31,64,33],[72,32,64,34],[72,34,64,36,"i"],[72,35,64,37],[72,39,64,41,"mod"],[72,42,64,44],[72,44,64,46,"i"],[72,45,64,47],[72,49,64,51],[72,50,64,52],[72,52,64,54],[73,12,65,16,"result"],[73,18,65,22],[73,21,65,26,"result"],[73,27,65,32],[73,30,65,35,"U16_MAX"],[73,37,65,42],[73,40,65,46],[73,41,65,47],[73,42,65,48],[73,44,65,50,"x_bigint_1"],[73,54,65,60],[73,55,65,61,"BigInt"],[73,61,65,67],[73,63,65,69,"dvI"],[73,66,65,72],[73,67,65,73,"getUint16"],[73,76,65,82],[73,77,65,83,"i"],[73,78,65,84],[73,80,65,86],[73,84,65,90],[73,85,65,91],[73,86,65,92],[74,10,66,12],[75,10,67,12],[75,14,67,16,"mod"],[75,17,67,19],[75,19,67,21],[76,12,68,16,"result"],[76,18,68,22],[76,21,68,26,"result"],[76,27,68,32],[76,30,68,35,"U8_MAX"],[76,36,68,41],[76,39,68,45],[76,40,68,46],[76,41,68,47],[76,43,68,49,"x_bigint_1"],[76,53,68,59],[76,54,68,60,"BigInt"],[76,60,68,66],[76,62,68,68,"value"],[76,67,68,73],[76,68,68,74],[76,69,68,75],[76,70,68,76],[76,71,68,77],[77,10,69,12],[78,10,70,12],[78,17,70,19,"result"],[78,23,70,25],[79,8,71,8],[80,4,72,4],[81,2,73,0],[82,0,73,1],[82,3]],"functionMap":{"names":["<global>","u8aToBigInt"],"mappings":"AAA;ACY;CD4D"},"hasCjsExports":true},"type":"js/module"}]} |