Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/88/b2909efdf8033214096896bc5ffba0389b79e4ea32a221e6554bdfa09398251b2f61cf
T
2025-11-08 07:19:17 +00:00

1 line
15 KiB
Plaintext

{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":117},"end":{"line":4,"column":40,"index":142}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../native/Raw.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":17,"index":161},"end":{"line":5,"column":44,"index":188}}],"key":"JIo1/P9cZXJs4SdJYojwkHSyV1c=","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.BitVec = void 0;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const Raw_js_1 = require(_dependencyMap[1], \"../native/Raw.js\");\n /** @internal */\n function decodeBitVecU8a(value) {\n if (!value?.length) {\n return [0, new Uint8Array()];\n }\n // handle all other Uint8Array inputs, these do have a length prefix which is the number of bits encoded\n const [offset, length] = (0, util_1.compactFromU8aLim)(value);\n const total = offset + Math.ceil(length / 8);\n if (total > value.length) {\n throw new Error(`BitVec: required length less than remainder, expected at least ${total}, found ${value.length}`);\n }\n return [length, value.subarray(offset, total)];\n }\n /** @internal */\n function decodeBitVec(value) {\n if (Array.isArray(value) || (0, util_1.isString)(value)) {\n const u8a = (0, util_1.u8aToU8a)(value);\n return [u8a.length * 8, u8a];\n }\n return decodeBitVecU8a(value);\n }\n /**\n * @name BitVec\n * @description\n * A BitVec that represents an array of bits. The bits are however stored encoded. The difference between this\n * and a normal Bytes would be that the length prefix indicates the number of bits encoded, not the bytes\n */\n class BitVec extends Raw_js_1.Raw {\n #decodedLength;\n #isMsb;\n // In lieu of having the Msb/Lsb identifiers passed through, we default to assuming\n // we are dealing with Lsb, which is the default (as of writing) BitVec format used\n // in the Polkadot code (this only affects the toHuman displays)\n constructor(registry, value, isMsb = false) {\n const [decodedLength, u8a] = decodeBitVec(value);\n super(registry, u8a);\n this.#decodedLength = decodedLength;\n this.#isMsb = isMsb;\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n return this.length + (0, util_1.compactToU8a)(this.#decodedLength).length;\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n return {\n outer: [(0, util_1.compactToU8a)(this.#decodedLength), super.toU8a()]\n };\n }\n /**\n * @description Creates a boolean array of the bit values\n */\n toBoolArray() {\n const map = [...this.toU8a(true)].map(v => [!!(v & 0b1000_0000), !!(v & 0b0100_0000), !!(v & 0b0010_0000), !!(v & 0b0001_0000), !!(v & 0b0000_1000), !!(v & 0b0000_0100), !!(v & 0b0000_0010), !!(v & 0b0000_0001)]);\n const count = map.length;\n const result = new Array(8 * count);\n for (let i = 0; i < count; i++) {\n const off = i * 8;\n const v = map[i];\n for (let j = 0; j < 8; j++) {\n result[off + j] = this.#isMsb ? v[j] : v[7 - j];\n }\n }\n return result;\n }\n /**\n * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information\n */\n toHuman() {\n return `0b${[...this.toU8a(true)].map(d => `00000000${d.toString(2)}`.slice(-8)).map(s => this.#isMsb ? s : s.split('').reverse().join('')).join('_')}`;\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'BitVec';\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n * @param isBare true when the value has none of the type-specific prefixes (internal)\n */\n toU8a(isBare) {\n const bitVec = super.toU8a(isBare);\n return isBare ? bitVec : (0, util_1.u8aConcatStrict)([(0, util_1.compactToU8a)(this.#decodedLength), bitVec]);\n }\n }\n exports.BitVec = BitVec;\n});","lineCount":101,"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,"BitVec"],[7,16,3,14],[7,19,3,17],[7,24,3,22],[7,25,3,23],[8,2,4,0],[8,8,4,6,"util_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,60,4,39],[8,61,4,40],[9,2,5,0],[9,8,5,6,"Raw_js_1"],[9,16,5,14],[9,19,5,17,"require"],[9,26,5,24],[9,27,5,24,"_dependencyMap"],[9,41,5,24],[9,64,5,43],[9,65,5,44],[10,2,6,0],[11,2,7,0],[11,11,7,9,"decodeBitVecU8a"],[11,26,7,24,"decodeBitVecU8a"],[11,27,7,25,"value"],[11,32,7,30],[11,34,7,32],[12,4,8,4],[12,8,8,8],[12,9,8,9,"value"],[12,14,8,14],[12,16,8,16,"length"],[12,22,8,22],[12,24,8,24],[13,6,9,8],[13,13,9,15],[13,14,9,16],[13,15,9,17],[13,17,9,19],[13,21,9,23,"Uint8Array"],[13,31,9,33],[13,32,9,34],[13,33,9,35],[13,34,9,36],[14,4,10,4],[15,4,11,4],[16,4,12,4],[16,10,12,10],[16,11,12,11,"offset"],[16,17,12,17],[16,19,12,19,"length"],[16,25,12,25],[16,26,12,26],[16,29,12,29],[16,30,12,30],[16,31,12,31],[16,33,12,33,"util_1"],[16,39,12,39],[16,40,12,40,"compactFromU8aLim"],[16,57,12,57],[16,59,12,59,"value"],[16,64,12,64],[16,65,12,65],[17,4,13,4],[17,10,13,10,"total"],[17,15,13,15],[17,18,13,18,"offset"],[17,24,13,24],[17,27,13,27,"Math"],[17,31,13,31],[17,32,13,32,"ceil"],[17,36,13,36],[17,37,13,37,"length"],[17,43,13,43],[17,46,13,46],[17,47,13,47],[17,48,13,48],[18,4,14,4],[18,8,14,8,"total"],[18,13,14,13],[18,16,14,16,"value"],[18,21,14,21],[18,22,14,22,"length"],[18,28,14,28],[18,30,14,30],[19,6,15,8],[19,12,15,14],[19,16,15,18,"Error"],[19,21,15,23],[19,22,15,24],[19,88,15,90,"total"],[19,93,15,95],[19,104,15,106,"value"],[19,109,15,111],[19,110,15,112,"length"],[19,116,15,118],[19,118,15,120],[19,119,15,121],[20,4,16,4],[21,4,17,4],[21,11,17,11],[21,12,17,12,"length"],[21,18,17,18],[21,20,17,20,"value"],[21,25,17,25],[21,26,17,26,"subarray"],[21,34,17,34],[21,35,17,35,"offset"],[21,41,17,41],[21,43,17,43,"total"],[21,48,17,48],[21,49,17,49],[21,50,17,50],[22,2,18,0],[23,2,19,0],[24,2,20,0],[24,11,20,9,"decodeBitVec"],[24,23,20,21,"decodeBitVec"],[24,24,20,22,"value"],[24,29,20,27],[24,31,20,29],[25,4,21,4],[25,8,21,8,"Array"],[25,13,21,13],[25,14,21,14,"isArray"],[25,21,21,21],[25,22,21,22,"value"],[25,27,21,27],[25,28,21,28],[25,32,21,32],[25,33,21,33],[25,34,21,34],[25,36,21,36,"util_1"],[25,42,21,42],[25,43,21,43,"isString"],[25,51,21,51],[25,53,21,53,"value"],[25,58,21,58],[25,59,21,59],[25,61,21,61],[26,6,22,8],[26,12,22,14,"u8a"],[26,15,22,17],[26,18,22,20],[26,19,22,21],[26,20,22,22],[26,22,22,24,"util_1"],[26,28,22,30],[26,29,22,31,"u8aToU8a"],[26,37,22,39],[26,39,22,41,"value"],[26,44,22,46],[26,45,22,47],[27,6,23,8],[27,13,23,15],[27,14,23,16,"u8a"],[27,17,23,19],[27,18,23,20,"length"],[27,24,23,26],[27,27,23,29],[27,28,23,30],[27,30,23,32,"u8a"],[27,33,23,35],[27,34,23,36],[28,4,24,4],[29,4,25,4],[29,11,25,11,"decodeBitVecU8a"],[29,26,25,26],[29,27,25,27,"value"],[29,32,25,32],[29,33,25,33],[30,2,26,0],[31,2,27,0],[32,0,28,0],[33,0,29,0],[34,0,30,0],[35,0,31,0],[36,0,32,0],[37,2,33,0],[37,8,33,6,"BitVec"],[37,14,33,12],[37,23,33,21,"Raw_js_1"],[37,31,33,29],[37,32,33,30,"Raw"],[37,35,33,33],[37,36,33,34],[38,4,34,4],[38,5,34,5,"decodedLength"],[38,18,34,18],[39,4,35,4],[39,5,35,5,"isMsb"],[39,10,35,10],[40,4,36,4],[41,4,37,4],[42,4,38,4],[43,4,39,4,"constructor"],[43,15,39,15,"constructor"],[43,16,39,16,"registry"],[43,24,39,24],[43,26,39,26,"value"],[43,31,39,31],[43,33,39,33,"isMsb"],[43,38,39,38],[43,41,39,41],[43,46,39,46],[43,48,39,48],[44,6,40,8],[44,12,40,14],[44,13,40,15,"decodedLength"],[44,26,40,28],[44,28,40,30,"u8a"],[44,31,40,33],[44,32,40,34],[44,35,40,37,"decodeBitVec"],[44,47,40,49],[44,48,40,50,"value"],[44,53,40,55],[44,54,40,56],[45,6,41,8],[45,11,41,13],[45,12,41,14,"registry"],[45,20,41,22],[45,22,41,24,"u8a"],[45,25,41,27],[45,26,41,28],[46,6,42,8],[46,10,42,12],[46,11,42,13],[46,12,42,14,"decodedLength"],[46,25,42,27],[46,28,42,30,"decodedLength"],[46,41,42,43],[47,6,43,8],[47,10,43,12],[47,11,43,13],[47,12,43,14,"isMsb"],[47,17,43,19],[47,20,43,22,"isMsb"],[47,25,43,27],[48,4,44,4],[49,4,45,4],[50,0,46,0],[51,0,47,0],[52,4,48,4],[52,8,48,8,"encodedLength"],[52,21,48,21,"encodedLength"],[52,22,48,21],[52,24,48,24],[53,6,49,8],[53,13,49,15],[53,17,49,19],[53,18,49,20,"length"],[53,24,49,26],[53,27,49,29],[53,28,49,30],[53,29,49,31],[53,31,49,33,"util_1"],[53,37,49,39],[53,38,49,40,"compactToU8a"],[53,50,49,52],[53,52,49,54],[53,56,49,58],[53,57,49,59],[53,58,49,60,"decodedLength"],[53,71,49,73],[53,72,49,74],[53,73,49,75,"length"],[53,79,49,81],[54,4,50,4],[55,4,51,4],[56,0,52,0],[57,0,53,0],[58,4,54,4,"inspect"],[58,11,54,11,"inspect"],[58,12,54,11],[58,14,54,14],[59,6,55,8],[59,13,55,15],[60,8,56,12,"outer"],[60,13,56,17],[60,15,56,19],[60,16,56,20],[60,17,56,21],[60,18,56,22],[60,20,56,24,"util_1"],[60,26,56,30],[60,27,56,31,"compactToU8a"],[60,39,56,43],[60,41,56,45],[60,45,56,49],[60,46,56,50],[60,47,56,51,"decodedLength"],[60,60,56,64],[60,61,56,65],[60,63,56,67],[60,68,56,72],[60,69,56,73,"toU8a"],[60,74,56,78],[60,75,56,79],[60,76,56,80],[61,6,57,8],[61,7,57,9],[62,4,58,4],[63,4,59,4],[64,0,60,0],[65,0,61,0],[66,4,62,4,"toBoolArray"],[66,15,62,15,"toBoolArray"],[66,16,62,15],[66,18,62,18],[67,6,63,8],[67,12,63,14,"map"],[67,15,63,17],[67,18,63,20],[67,19,63,21],[67,22,63,24],[67,26,63,28],[67,27,63,29,"toU8a"],[67,32,63,34],[67,33,63,35],[67,37,63,39],[67,38,63,40],[67,39,63,41],[67,40,63,42,"map"],[67,43,63,45],[67,44,63,47,"v"],[67,45,63,48],[67,49,63,53],[67,50,64,12],[67,51,64,13],[67,53,64,15,"v"],[67,54,64,16],[67,57,64,19],[67,68,64,30],[67,69,64,31],[67,71,65,12],[67,72,65,13],[67,74,65,15,"v"],[67,75,65,16],[67,78,65,19],[67,89,65,30],[67,90,65,31],[67,92,66,12],[67,93,66,13],[67,95,66,15,"v"],[67,96,66,16],[67,99,66,19],[67,110,66,30],[67,111,66,31],[67,113,67,12],[67,114,67,13],[67,116,67,15,"v"],[67,117,67,16],[67,120,67,19],[67,131,67,30],[67,132,67,31],[67,134,68,12],[67,135,68,13],[67,137,68,15,"v"],[67,138,68,16],[67,141,68,19],[67,152,68,30],[67,153,68,31],[67,155,69,12],[67,156,69,13],[67,158,69,15,"v"],[67,159,69,16],[67,162,69,19],[67,173,69,30],[67,174,69,31],[67,176,70,12],[67,177,70,13],[67,179,70,15,"v"],[67,180,70,16],[67,183,70,19],[67,194,70,30],[67,195,70,31],[67,197,71,12],[67,198,71,13],[67,200,71,15,"v"],[67,201,71,16],[67,204,71,19],[67,215,71,30],[67,216,71,31],[67,217,72,9],[67,218,72,10],[68,6,73,8],[68,12,73,14,"count"],[68,17,73,19],[68,20,73,22,"map"],[68,23,73,25],[68,24,73,26,"length"],[68,30,73,32],[69,6,74,8],[69,12,74,14,"result"],[69,18,74,20],[69,21,74,23],[69,25,74,27,"Array"],[69,30,74,32],[69,31,74,33],[69,32,74,34],[69,35,74,37,"count"],[69,40,74,42],[69,41,74,43],[70,6,75,8],[70,11,75,13],[70,15,75,17,"i"],[70,16,75,18],[70,19,75,21],[70,20,75,22],[70,22,75,24,"i"],[70,23,75,25],[70,26,75,28,"count"],[70,31,75,33],[70,33,75,35,"i"],[70,34,75,36],[70,36,75,38],[70,38,75,40],[71,8,76,12],[71,14,76,18,"off"],[71,17,76,21],[71,20,76,24,"i"],[71,21,76,25],[71,24,76,28],[71,25,76,29],[72,8,77,12],[72,14,77,18,"v"],[72,15,77,19],[72,18,77,22,"map"],[72,21,77,25],[72,22,77,26,"i"],[72,23,77,27],[72,24,77,28],[73,8,78,12],[73,13,78,17],[73,17,78,21,"j"],[73,18,78,22],[73,21,78,25],[73,22,78,26],[73,24,78,28,"j"],[73,25,78,29],[73,28,78,32],[73,29,78,33],[73,31,78,35,"j"],[73,32,78,36],[73,34,78,38],[73,36,78,40],[74,10,79,16,"result"],[74,16,79,22],[74,17,79,23,"off"],[74,20,79,26],[74,23,79,29,"j"],[74,24,79,30],[74,25,79,31],[74,28,79,34],[74,32,79,38],[74,33,79,39],[74,34,79,40,"isMsb"],[74,39,79,45],[74,42,80,22,"v"],[74,43,80,23],[74,44,80,24,"j"],[74,45,80,25],[74,46,80,26],[74,49,81,22,"v"],[74,50,81,23],[74,51,81,24],[74,52,81,25],[74,55,81,28,"j"],[74,56,81,29],[74,57,81,30],[75,8,82,12],[76,6,83,8],[77,6,84,8],[77,13,84,15,"result"],[77,19,84,21],[78,4,85,4],[79,4,86,4],[80,0,87,0],[81,0,88,0],[82,4,89,4,"toHuman"],[82,11,89,11,"toHuman"],[82,12,89,11],[82,14,89,14],[83,6,90,8],[83,13,90,15],[83,18,90,20],[83,19,90,21],[83,22,90,24],[83,26,90,28],[83,27,90,29,"toU8a"],[83,32,90,34],[83,33,90,35],[83,37,90,39],[83,38,90,40],[83,39,90,41],[83,40,91,13,"map"],[83,43,91,16],[83,44,91,18,"d"],[83,45,91,19],[83,49,91,24],[83,60,91,35,"d"],[83,61,91,36],[83,62,91,37,"toString"],[83,70,91,45],[83,71,91,46],[83,72,91,47],[83,73,91,48],[83,75,91,50],[83,76,91,51,"slice"],[83,81,91,56],[83,82,91,57],[83,83,91,58],[83,84,91,59],[83,85,91,60],[83,86,91,61],[83,87,92,13,"map"],[83,90,92,16],[83,91,92,18,"s"],[83,92,92,19],[83,96,92,24],[83,100,92,28],[83,101,92,29],[83,102,92,30,"isMsb"],[83,107,92,35],[83,110,92,38,"s"],[83,111,92,39],[83,114,92,42,"s"],[83,115,92,43],[83,116,92,44,"split"],[83,121,92,49],[83,122,92,50],[83,124,92,52],[83,125,92,53],[83,126,92,54,"reverse"],[83,133,92,61],[83,134,92,62],[83,135,92,63],[83,136,92,64,"join"],[83,140,92,68],[83,141,92,69],[83,143,92,71],[83,144,92,72],[83,145,92,73],[83,146,93,13,"join"],[83,150,93,17],[83,151,93,18],[83,154,93,21],[83,155,93,22],[83,157,93,24],[84,4,94,4],[85,4,95,4],[86,0,96,0],[87,0,97,0],[88,4,98,4,"toRawType"],[88,13,98,13,"toRawType"],[88,14,98,13],[88,16,98,16],[89,6,99,8],[89,13,99,15],[89,21,99,23],[90,4,100,4],[91,4,101,4],[92,0,102,0],[93,0,103,0],[94,0,104,0],[95,4,105,4,"toU8a"],[95,9,105,9,"toU8a"],[95,10,105,10,"isBare"],[95,16,105,16],[95,18,105,18],[96,6,106,8],[96,12,106,14,"bitVec"],[96,18,106,20],[96,21,106,23],[96,26,106,28],[96,27,106,29,"toU8a"],[96,32,106,34],[96,33,106,35,"isBare"],[96,39,106,41],[96,40,106,42],[97,6,107,8],[97,13,107,15,"isBare"],[97,19,107,21],[97,22,108,14,"bitVec"],[97,28,108,20],[97,31,109,14],[97,32,109,15],[97,33,109,16],[97,35,109,18,"util_1"],[97,41,109,24],[97,42,109,25,"u8aConcatStrict"],[97,57,109,40],[97,59,109,42],[97,60,109,43],[97,61,109,44],[97,62,109,45],[97,64,109,47,"util_1"],[97,70,109,53],[97,71,109,54,"compactToU8a"],[97,83,109,66],[97,85,109,68],[97,89,109,72],[97,90,109,73],[97,91,109,74,"decodedLength"],[97,104,109,87],[97,105,109,88],[97,107,109,90,"bitVec"],[97,113,109,96],[97,114,109,97],[97,115,109,98],[98,4,110,4],[99,2,111,0],[100,2,112,0,"exports"],[100,9,112,7],[100,10,112,8,"BitVec"],[100,16,112,14],[100,19,112,17,"BitVec"],[100,25,112,23],[101,0,112,24],[101,3]],"functionMap":{"names":["<global>","decodeBitVecU8a","decodeBitVec","BitVec","constructor","get__encodedLength","inspect","toBoolArray","map$argument_0","toHuman","map.map$argument_0","toRawType","toU8a"],"mappings":"AAA;ACM;CDW;AEE;CFM;AGO;ICM;KDK;IEI;KFE;IGI;KHI;III;8CCC;SDS;KJa;IMI;iBDE,2CC;iBCC,uDD;KNE;IQI;KRE;ISK;KTK;CHC"},"hasCjsExports":true},"type":"js/module"}]}