mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
9.6 KiB
Plaintext
1 line
9.6 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":116},"end":{"line":4,"column":40,"index":141}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../native/Raw.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":17,"index":160},"end":{"line":5,"column":44,"index":187}}],"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.Bytes = void 0;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const Raw_js_1 = require(_dependencyMap[1], \"../native/Raw.js\");\n const MAX_LENGTH = 10 * 1024 * 1024;\n /** @internal */\n function decodeBytesU8a(value) {\n if (!value.length) {\n return [new Uint8Array(), 0];\n }\n // handle all other Uint8Array inputs, these do have a length prefix\n const [offset, length] = (0, util_1.compactFromU8aLim)(value);\n const total = offset + length;\n if (length > MAX_LENGTH) {\n throw new Error(`Bytes length ${length.toString()} exceeds ${MAX_LENGTH}`);\n } else if (total > value.length) {\n throw new Error(`Bytes: required length less than remainder, expected at least ${total}, found ${value.length}`);\n }\n return [value.subarray(offset, total), total];\n }\n /**\n * @name Bytes\n * @description\n * A Bytes wrapper for Vec<u8>. The significant difference between this and a normal Uint8Array\n * is that this version allows for length-encoding. (i.e. it is a variable-item codec, the same\n * as what is found in [[Text]] and [[Vec]])\n */\n class Bytes extends Raw_js_1.Raw {\n constructor(registry, value) {\n const [u8a, decodedLength] = (0, util_1.isU8a)(value) && !(value instanceof Raw_js_1.Raw) ? decodeBytesU8a(value) : Array.isArray(value) || (0, util_1.isString)(value) ? [(0, util_1.u8aToU8a)(value), 0] : [value, 0];\n super(registry, u8a, decodedLength);\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.length).length;\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect(isBare) {\n const clength = (0, util_1.compactToU8a)(this.length);\n return {\n outer: isBare ? [super.toU8a()] : this.length ? [clength, super.toU8a()] : [clength]\n };\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'Bytes';\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 return isBare ? super.toU8a(isBare) : (0, util_1.compactAddLength)(this);\n }\n }\n exports.Bytes = Bytes;\n});","lineCount":68,"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,"Bytes"],[7,15,3,13],[7,18,3,16],[7,23,3,21],[7,24,3,22],[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],[10,8,6,6,"MAX_LENGTH"],[10,18,6,16],[10,21,6,19],[10,23,6,21],[10,26,6,24],[10,30,6,28],[10,33,6,31],[10,37,6,35],[11,2,7,0],[12,2,8,0],[12,11,8,9,"decodeBytesU8a"],[12,25,8,23,"decodeBytesU8a"],[12,26,8,24,"value"],[12,31,8,29],[12,33,8,31],[13,4,9,4],[13,8,9,8],[13,9,9,9,"value"],[13,14,9,14],[13,15,9,15,"length"],[13,21,9,21],[13,23,9,23],[14,6,10,8],[14,13,10,15],[14,14,10,16],[14,18,10,20,"Uint8Array"],[14,28,10,30],[14,29,10,31],[14,30,10,32],[14,32,10,34],[14,33,10,35],[14,34,10,36],[15,4,11,4],[16,4,12,4],[17,4,13,4],[17,10,13,10],[17,11,13,11,"offset"],[17,17,13,17],[17,19,13,19,"length"],[17,25,13,25],[17,26,13,26],[17,29,13,29],[17,30,13,30],[17,31,13,31],[17,33,13,33,"util_1"],[17,39,13,39],[17,40,13,40,"compactFromU8aLim"],[17,57,13,57],[17,59,13,59,"value"],[17,64,13,64],[17,65,13,65],[18,4,14,4],[18,10,14,10,"total"],[18,15,14,15],[18,18,14,18,"offset"],[18,24,14,24],[18,27,14,27,"length"],[18,33,14,33],[19,4,15,4],[19,8,15,8,"length"],[19,14,15,14],[19,17,15,17,"MAX_LENGTH"],[19,27,15,27],[19,29,15,29],[20,6,16,8],[20,12,16,14],[20,16,16,18,"Error"],[20,21,16,23],[20,22,16,24],[20,38,16,40,"length"],[20,44,16,46],[20,45,16,47,"toString"],[20,53,16,55],[20,54,16,56],[20,55,16,57],[20,67,16,69,"MAX_LENGTH"],[20,77,16,79],[20,79,16,81],[20,80,16,82],[21,4,17,4],[21,5,17,5],[21,11,18,9],[21,15,18,13,"total"],[21,20,18,18],[21,23,18,21,"value"],[21,28,18,26],[21,29,18,27,"length"],[21,35,18,33],[21,37,18,35],[22,6,19,8],[22,12,19,14],[22,16,19,18,"Error"],[22,21,19,23],[22,22,19,24],[22,87,19,89,"total"],[22,92,19,94],[22,103,19,105,"value"],[22,108,19,110],[22,109,19,111,"length"],[22,115,19,117],[22,117,19,119],[22,118,19,120],[23,4,20,4],[24,4,21,4],[24,11,21,11],[24,12,21,12,"value"],[24,17,21,17],[24,18,21,18,"subarray"],[24,26,21,26],[24,27,21,27,"offset"],[24,33,21,33],[24,35,21,35,"total"],[24,40,21,40],[24,41,21,41],[24,43,21,43,"total"],[24,48,21,48],[24,49,21,49],[25,2,22,0],[26,2,23,0],[27,0,24,0],[28,0,25,0],[29,0,26,0],[30,0,27,0],[31,0,28,0],[32,0,29,0],[33,2,30,0],[33,8,30,6,"Bytes"],[33,13,30,11],[33,22,30,20,"Raw_js_1"],[33,30,30,28],[33,31,30,29,"Raw"],[33,34,30,32],[33,35,30,33],[34,4,31,4,"constructor"],[34,15,31,15,"constructor"],[34,16,31,16,"registry"],[34,24,31,24],[34,26,31,26,"value"],[34,31,31,31],[34,33,31,33],[35,6,32,8],[35,12,32,14],[35,13,32,15,"u8a"],[35,16,32,18],[35,18,32,20,"decodedLength"],[35,31,32,33],[35,32,32,34],[35,35,32,37],[35,36,32,38],[35,37,32,39],[35,39,32,41,"util_1"],[35,45,32,47],[35,46,32,48,"isU8a"],[35,51,32,53],[35,53,32,55,"value"],[35,58,32,60],[35,59,32,61],[35,63,32,65],[35,65,32,67,"value"],[35,70,32,72],[35,82,32,84,"Raw_js_1"],[35,90,32,92],[35,91,32,93,"Raw"],[35,94,32,96],[35,95,32,97],[35,98,33,14,"decodeBytesU8a"],[35,112,33,28],[35,113,33,29,"value"],[35,118,33,34],[35,119,33,35],[35,122,34,14,"Array"],[35,127,34,19],[35,128,34,20,"isArray"],[35,135,34,27],[35,136,34,28,"value"],[35,141,34,33],[35,142,34,34],[35,146,34,38],[35,147,34,39],[35,148,34,40],[35,150,34,42,"util_1"],[35,156,34,48],[35,157,34,49,"isString"],[35,165,34,57],[35,167,34,59,"value"],[35,172,34,64],[35,173,34,65],[35,176,35,18],[35,177,35,19],[35,178,35,20],[35,179,35,21],[35,181,35,23,"util_1"],[35,187,35,29],[35,188,35,30,"u8aToU8a"],[35,196,35,38],[35,198,35,40,"value"],[35,203,35,45],[35,204,35,46],[35,206,35,48],[35,207,35,49],[35,208,35,50],[35,211,36,18],[35,212,36,19,"value"],[35,217,36,24],[35,219,36,26],[35,220,36,27],[35,221,36,28],[36,6,37,8],[36,11,37,13],[36,12,37,14,"registry"],[36,20,37,22],[36,22,37,24,"u8a"],[36,25,37,27],[36,27,37,29,"decodedLength"],[36,40,37,42],[36,41,37,43],[37,4,38,4],[38,4,39,4],[39,0,40,0],[40,0,41,0],[41,4,42,4],[41,8,42,8,"encodedLength"],[41,21,42,21,"encodedLength"],[41,22,42,21],[41,24,42,24],[42,6,43,8],[42,13,43,15],[42,17,43,19],[42,18,43,20,"length"],[42,24,43,26],[42,27,43,29],[42,28,43,30],[42,29,43,31],[42,31,43,33,"util_1"],[42,37,43,39],[42,38,43,40,"compactToU8a"],[42,50,43,52],[42,52,43,54],[42,56,43,58],[42,57,43,59,"length"],[42,63,43,65],[42,64,43,66],[42,65,43,67,"length"],[42,71,43,73],[43,4,44,4],[44,4,45,4],[45,0,46,0],[46,0,47,0],[47,4,48,4,"inspect"],[47,11,48,11,"inspect"],[47,12,48,12,"isBare"],[47,18,48,18],[47,20,48,20],[48,6,49,8],[48,12,49,14,"clength"],[48,19,49,21],[48,22,49,24],[48,23,49,25],[48,24,49,26],[48,26,49,28,"util_1"],[48,32,49,34],[48,33,49,35,"compactToU8a"],[48,45,49,47],[48,47,49,49],[48,51,49,53],[48,52,49,54,"length"],[48,58,49,60],[48,59,49,61],[49,6,50,8],[49,13,50,15],[50,8,51,12,"outer"],[50,13,51,17],[50,15,51,19,"isBare"],[50,21,51,25],[50,24,52,18],[50,25,52,19],[50,30,52,24],[50,31,52,25,"toU8a"],[50,36,52,30],[50,37,52,31],[50,38,52,32],[50,39,52,33],[50,42,53,18],[50,46,53,22],[50,47,53,23,"length"],[50,53,53,29],[50,56,54,22],[50,57,54,23,"clength"],[50,64,54,30],[50,66,54,32],[50,71,54,37],[50,72,54,38,"toU8a"],[50,77,54,43],[50,78,54,44],[50,79,54,45],[50,80,54,46],[50,83,55,22],[50,84,55,23,"clength"],[50,91,55,30],[51,6,56,8],[51,7,56,9],[52,4,57,4],[53,4,58,4],[54,0,59,0],[55,0,60,0],[56,4,61,4,"toRawType"],[56,13,61,13,"toRawType"],[56,14,61,13],[56,16,61,16],[57,6,62,8],[57,13,62,15],[57,20,62,22],[58,4,63,4],[59,4,64,4],[60,0,65,0],[61,0,66,0],[62,0,67,0],[63,4,68,4,"toU8a"],[63,9,68,9,"toU8a"],[63,10,68,10,"isBare"],[63,16,68,16],[63,18,68,18],[64,6,69,8],[64,13,69,15,"isBare"],[64,19,69,21],[64,22,70,14],[64,27,70,19],[64,28,70,20,"toU8a"],[64,33,70,25],[64,34,70,26,"isBare"],[64,40,70,32],[64,41,70,33],[64,44,71,14],[64,45,71,15],[64,46,71,16],[64,48,71,18,"util_1"],[64,54,71,24],[64,55,71,25,"compactAddLength"],[64,71,71,41],[64,73,71,43],[64,77,71,47],[64,78,71,48],[65,4,72,4],[66,2,73,0],[67,2,74,0,"exports"],[67,9,74,7],[67,10,74,8,"Bytes"],[67,15,74,13],[67,18,74,16,"Bytes"],[67,23,74,21],[68,0,74,22],[68,3]],"functionMap":{"names":["<global>","decodeBytesU8a","Bytes","constructor","get__encodedLength","inspect","toRawType","toU8a"],"mappings":"AAA;ACO;CDc;AEQ;ICC;KDO;IEI;KFE;IGI;KHS;III;KJE;IKK;KLI;CFC"},"hasCjsExports":true},"type":"js/module"}]} |