mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 10:01:02 +00:00
1 line
6.9 KiB
Plaintext
1 line
6.9 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":119},"end":{"line":4,"column":40,"index":144}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../native/Raw.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":17,"index":163},"end":{"line":5,"column":44,"index":190}}],"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.U8aFixed = 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 decodeU8aFixed(value, bitLength) {\n const u8a = (0, util_1.u8aToU8a)(value);\n const byteLength = bitLength / 8;\n if (!u8a.length) {\n return [new Uint8Array(byteLength), 0];\n }\n if ((0, util_1.isU8a)(value) ? u8a.length < byteLength : u8a.length !== byteLength) {\n throw new Error(`Expected input with ${byteLength} bytes (${bitLength} bits), found ${u8a.length} bytes`);\n }\n return [u8a.subarray(0, byteLength), byteLength];\n }\n /**\n * @name U8aFixed\n * @description\n * A U8a that manages a a sequence of bytes up to the specified bitLength. Not meant\n * to be used directly, rather is should be subclassed with the specific lengths.\n */\n class U8aFixed extends Raw_js_1.Raw {\n constructor(registry, value = new Uint8Array(), bitLength = 256) {\n const [u8a, decodedLength] = decodeU8aFixed(value, bitLength);\n super(registry, u8a, decodedLength);\n }\n static with(bitLength, typeName) {\n return class extends U8aFixed {\n constructor(registry, value) {\n super(registry, value, bitLength);\n }\n toRawType() {\n return typeName || super.toRawType();\n }\n };\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return `[u8;${this.length}]`;\n }\n }\n exports.U8aFixed = U8aFixed;\n});","lineCount":51,"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,"U8aFixed"],[7,18,3,16],[7,21,3,19],[7,26,3,24],[7,27,3,25],[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,"decodeU8aFixed"],[11,25,7,23,"decodeU8aFixed"],[11,26,7,24,"value"],[11,31,7,29],[11,33,7,31,"bitLength"],[11,42,7,40],[11,44,7,42],[12,4,8,4],[12,10,8,10,"u8a"],[12,13,8,13],[12,16,8,16],[12,17,8,17],[12,18,8,18],[12,20,8,20,"util_1"],[12,26,8,26],[12,27,8,27,"u8aToU8a"],[12,35,8,35],[12,37,8,37,"value"],[12,42,8,42],[12,43,8,43],[13,4,9,4],[13,10,9,10,"byteLength"],[13,20,9,20],[13,23,9,23,"bitLength"],[13,32,9,32],[13,35,9,35],[13,36,9,36],[14,4,10,4],[14,8,10,8],[14,9,10,9,"u8a"],[14,12,10,12],[14,13,10,13,"length"],[14,19,10,19],[14,21,10,21],[15,6,11,8],[15,13,11,15],[15,14,11,16],[15,18,11,20,"Uint8Array"],[15,28,11,30],[15,29,11,31,"byteLength"],[15,39,11,41],[15,40,11,42],[15,42,11,44],[15,43,11,45],[15,44,11,46],[16,4,12,4],[17,4,13,4],[17,8,13,8],[17,9,13,9],[17,10,13,10],[17,12,13,12,"util_1"],[17,18,13,18],[17,19,13,19,"isU8a"],[17,24,13,24],[17,26,13,26,"value"],[17,31,13,31],[17,32,13,32],[17,35,13,35,"u8a"],[17,38,13,38],[17,39,13,39,"length"],[17,45,13,45],[17,48,13,48,"byteLength"],[17,58,13,58],[17,61,13,61,"u8a"],[17,64,13,64],[17,65,13,65,"length"],[17,71,13,71],[17,76,13,76,"byteLength"],[17,86,13,86],[17,88,13,88],[18,6,14,8],[18,12,14,14],[18,16,14,18,"Error"],[18,21,14,23],[18,22,14,24],[18,45,14,47,"byteLength"],[18,55,14,57],[18,66,14,68,"bitLength"],[18,75,14,77],[18,92,14,94,"u8a"],[18,95,14,97],[18,96,14,98,"length"],[18,102,14,104],[18,110,14,112],[18,111,14,113],[19,4,15,4],[20,4,16,4],[20,11,16,11],[20,12,16,12,"u8a"],[20,15,16,15],[20,16,16,16,"subarray"],[20,24,16,24],[20,25,16,25],[20,26,16,26],[20,28,16,28,"byteLength"],[20,38,16,38],[20,39,16,39],[20,41,16,41,"byteLength"],[20,51,16,51],[20,52,16,52],[21,2,17,0],[22,2,18,0],[23,0,19,0],[24,0,20,0],[25,0,21,0],[26,0,22,0],[27,0,23,0],[28,2,24,0],[28,8,24,6,"U8aFixed"],[28,16,24,14],[28,25,24,23,"Raw_js_1"],[28,33,24,31],[28,34,24,32,"Raw"],[28,37,24,35],[28,38,24,36],[29,4,25,4,"constructor"],[29,15,25,15,"constructor"],[29,16,25,16,"registry"],[29,24,25,24],[29,26,25,26,"value"],[29,31,25,31],[29,34,25,34],[29,38,25,38,"Uint8Array"],[29,48,25,48],[29,49,25,49],[29,50,25,50],[29,52,25,52,"bitLength"],[29,61,25,61],[29,64,25,64],[29,67,25,67],[29,69,25,69],[30,6,26,8],[30,12,26,14],[30,13,26,15,"u8a"],[30,16,26,18],[30,18,26,20,"decodedLength"],[30,31,26,33],[30,32,26,34],[30,35,26,37,"decodeU8aFixed"],[30,49,26,51],[30,50,26,52,"value"],[30,55,26,57],[30,57,26,59,"bitLength"],[30,66,26,68],[30,67,26,69],[31,6,27,8],[31,11,27,13],[31,12,27,14,"registry"],[31,20,27,22],[31,22,27,24,"u8a"],[31,25,27,27],[31,27,27,29,"decodedLength"],[31,40,27,42],[31,41,27,43],[32,4,28,4],[33,4,29,4],[33,11,29,11,"with"],[33,15,29,15,"with"],[33,16,29,16,"bitLength"],[33,25,29,25],[33,27,29,27,"typeName"],[33,35,29,35],[33,37,29,37],[34,6,30,8],[34,13,30,15],[34,27,30,29,"U8aFixed"],[34,35,30,37],[34,36,30,38],[35,8,31,12,"constructor"],[35,19,31,23,"constructor"],[35,20,31,24,"registry"],[35,28,31,32],[35,30,31,34,"value"],[35,35,31,39],[35,37,31,41],[36,10,32,16],[36,15,32,21],[36,16,32,22,"registry"],[36,24,32,30],[36,26,32,32,"value"],[36,31,32,37],[36,33,32,39,"bitLength"],[36,42,32,48],[36,43,32,49],[37,8,33,12],[38,8,34,12,"toRawType"],[38,17,34,21,"toRawType"],[38,18,34,21],[38,20,34,24],[39,10,35,16],[39,17,35,23,"typeName"],[39,25,35,31],[39,29,35,35],[39,34,35,40],[39,35,35,41,"toRawType"],[39,44,35,50],[39,45,35,51],[39,46,35,52],[40,8,36,12],[41,6,37,8],[41,7,37,9],[42,4,38,4],[43,4,39,4],[44,0,40,0],[45,0,41,0],[46,4,42,4,"toRawType"],[46,13,42,13,"toRawType"],[46,14,42,13],[46,16,42,16],[47,6,43,8],[47,13,43,15],[47,20,43,22],[47,24,43,26],[47,25,43,27,"length"],[47,31,43,33],[47,34,43,36],[48,4,44,4],[49,2,45,0],[50,2,46,0,"exports"],[50,9,46,7],[50,10,46,8,"U8aFixed"],[50,18,46,16],[50,21,46,19,"U8aFixed"],[50,29,46,27],[51,0,46,28],[51,3]],"functionMap":{"names":["<global>","decodeU8aFixed","U8aFixed","constructor","_with","<anonymous>","toRawType"],"mappings":"AAA;ACM;CDU;AEO;ICC;KDG;IEC;eCC;YFC;aEE;YCC;aDE;SDC;KFC;III;KJE;CFC"},"hasCjsExports":true},"type":"js/module"}]} |