Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/a0/19dbeb1b0d3d72d52fa75679b241a462fc8c0f816ce0a0ebde0da353fdd9968ce55844
T
2025-11-08 10:07:13 +00:00

1 line
4.1 KiB
Plaintext

{"dependencies":[],"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.u8aFixLength = u8aFixLength;\n /**\n * @name u8aFixLength\n * @summary Shifts a Uint8Array to a specific bitLength\n * @description\n * Returns a uint8Array with the specified number of bits contained in the return value. (If bitLength is -1, length checking is not done). Values with more bits are trimmed to the specified length.\n * @example\n * <BR>\n *\n * ```javascript\n * import { u8aFixLength } from '@polkadot/util';\n *\n * u8aFixLength('0x12') // => 0x12\n * u8aFixLength('0x12', 16) // => 0x0012\n * u8aFixLength('0x1234', 8) // => 0x12\n * ```\n */\n function u8aFixLength(value) {\n var bitLength = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;\n var atStart = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var byteLength = Math.ceil(bitLength / 8);\n if (bitLength === -1 || value.length === byteLength) {\n return value;\n } else if (value.length > byteLength) {\n return value.subarray(0, byteLength);\n }\n var result = new Uint8Array(byteLength);\n result.set(value, atStart ? 0 : byteLength - value.length);\n return result;\n }\n});","lineCount":37,"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,"u8aFixLength"],[7,22,3,20],[7,25,3,23,"u8aFixLength"],[7,37,3,35],[8,2,4,0],[9,0,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,2,20,0],[24,11,20,9,"u8aFixLength"],[24,23,20,21,"u8aFixLength"],[24,24,20,22,"value"],[24,29,20,27],[24,31,20,62],[25,4,20,62],[25,8,20,29,"bitLength"],[25,17,20,38],[25,20,20,38,"arguments"],[25,29,20,38],[25,30,20,38,"length"],[25,36,20,38],[25,44,20,38,"arguments"],[25,53,20,38],[25,61,20,38,"undefined"],[25,70,20,38],[25,73,20,38,"arguments"],[25,82,20,38],[25,88,20,41],[25,89,20,42],[25,90,20,43],[26,4,20,43],[26,8,20,45,"atStart"],[26,15,20,52],[26,18,20,52,"arguments"],[26,27,20,52],[26,28,20,52,"length"],[26,34,20,52],[26,42,20,52,"arguments"],[26,51,20,52],[26,59,20,52,"undefined"],[26,68,20,52],[26,71,20,52,"arguments"],[26,80,20,52],[26,86,20,55],[26,91,20,60],[27,4,21,4],[27,8,21,10,"byteLength"],[27,18,21,20],[27,21,21,23,"Math"],[27,25,21,27],[27,26,21,28,"ceil"],[27,30,21,32],[27,31,21,33,"bitLength"],[27,40,21,42],[27,43,21,45],[27,44,21,46],[27,45,21,47],[28,4,22,4],[28,8,22,8,"bitLength"],[28,17,22,17],[28,22,22,22],[28,23,22,23],[28,24,22,24],[28,28,22,28,"value"],[28,33,22,33],[28,34,22,34,"length"],[28,40,22,40],[28,45,22,45,"byteLength"],[28,55,22,55],[28,57,22,57],[29,6,23,8],[29,13,23,15,"value"],[29,18,23,20],[30,4,24,4],[30,5,24,5],[30,11,25,9],[30,15,25,13,"value"],[30,20,25,18],[30,21,25,19,"length"],[30,27,25,25],[30,30,25,28,"byteLength"],[30,40,25,38],[30,42,25,40],[31,6,26,8],[31,13,26,15,"value"],[31,18,26,20],[31,19,26,21,"subarray"],[31,27,26,29],[31,28,26,30],[31,29,26,31],[31,31,26,33,"byteLength"],[31,41,26,43],[31,42,26,44],[32,4,27,4],[33,4,28,4],[33,8,28,10,"result"],[33,14,28,16],[33,17,28,19],[33,21,28,23,"Uint8Array"],[33,31,28,33],[33,32,28,34,"byteLength"],[33,42,28,44],[33,43,28,45],[34,4,29,4,"result"],[34,10,29,10],[34,11,29,11,"set"],[34,14,29,14],[34,15,29,15,"value"],[34,20,29,20],[34,22,29,22,"atStart"],[34,29,29,29],[34,32,29,32],[34,33,29,33],[34,36,29,37,"byteLength"],[34,46,29,47],[34,49,29,50,"value"],[34,54,29,55],[34,55,29,56,"length"],[34,61,29,63],[34,62,29,64],[35,4,30,4],[35,11,30,11,"result"],[35,17,30,17],[36,2,31,0],[37,0,31,1],[37,3]],"functionMap":{"names":["<global>","u8aFixLength"],"mappings":"AAA;ACmB;CDW"},"hasCjsExports":true},"type":"js/module"}]}