mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 12:21:01 +00:00
1 line
13 KiB
Plaintext
1 line
13 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":95,"index":95}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","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 Object.defineProperty(exports, \"Raw\", {\n enumerable: true,\n get: function () {\n return Raw;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n /**\n * @name Raw\n * @description\n * A basic wrapper around Uint8Array, with no frills and no fuss. It does differ\n * from other implementations where it will consume the full Uint8Array as passed to it.\n * As such it is meant to be subclassed where the wrapper takes care of the\n * actual lengths instead of used directly.\n * @noInheritDoc\n */\n class Raw extends Uint8Array {\n /**\n * @description This ensures that operators such as clice, filter, map, etc. return\n * new Array instances (without this we need to apply overrides)\n */\n static get [Symbol.species]() {\n return Uint8Array;\n }\n constructor(registry, value, initialU8aLength) {\n super((0, _polkadotUtil.u8aToU8a)(value));\n this.registry = registry;\n this.initialU8aLength = initialU8aLength;\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n return this.length;\n }\n /**\n * @description returns a hash of the contents\n */\n get hash() {\n return this.registry.hash(this.toU8a());\n }\n /**\n * @description Returns true if the wrapped value contains only ASCII printable characters\n */\n get isAscii() {\n return (0, _polkadotUtil.isAscii)(this);\n }\n /**\n * @description Returns true if the type wraps an empty/default all-0 value\n */\n get isEmpty() {\n return !this.length || (0, _polkadotUtil.isUndefined)(this.find(b => !!b));\n }\n /**\n * @description Returns true if the wrapped value contains only utf8 characters\n */\n get isUtf8() {\n return (0, _polkadotUtil.isUtf8)(this);\n }\n /**\n * @description Returns the number of bits in the value\n */\n bitLength() {\n return this.length * 8;\n }\n /**\n * @description Compares the value of the input to see if there is a match\n */\n eq(other) {\n if (other instanceof Uint8Array) {\n return this.length === other.length && !this.some((b, index) => b !== other[index]);\n }\n return this.eq((0, _polkadotUtil.u8aToU8a)(other));\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n return {\n outer: [this.toU8a()]\n };\n }\n /**\n * @description Returns a hex string representation of the value\n */\n toHex() {\n return (0, _polkadotUtil.u8aToHex)(this);\n }\n /**\n * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information\n */\n toHuman(_isExtended, disableAscii) {\n return this.toPrimitive(disableAscii);\n }\n /**\n * @description Converts the Object to JSON, typically used for RPC transfers\n */\n toJSON() {\n return this.toHex();\n }\n /**\n * @description Converts the value in a best-fit primitive form\n */\n toPrimitive(disableAscii) {\n if (!disableAscii && this.isAscii) {\n const text = this.toUtf8();\n // ensure we didn't end up with multibyte codepoints\n if ((0, _polkadotUtil.isAscii)(text)) {\n return text;\n }\n }\n return this.toJSON();\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'Raw';\n }\n /**\n * @description Returns the string representation of the value\n */\n toString() {\n return this.toHex();\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n */\n toU8a(_isBare) {\n return Uint8Array.from(this);\n }\n /**\n * @description Returns the wrapped data as a UTF-8 string\n */\n toUtf8() {\n if (!this.isUtf8) {\n throw new Error('The character sequence is not a valid Utf8 string');\n }\n return (0, _polkadotUtil.u8aToString)(this);\n }\n }\n});","lineCount":148,"map":[[7,2,11,0,"Object"],[7,8,11,0],[7,9,11,0,"defineProperty"],[7,23,11,0],[7,24,11,0,"exports"],[7,31,11,0],[8,4,11,0,"enumerable"],[8,14,11,0],[9,4,11,0,"get"],[9,7,11,0],[9,18,11,0,"get"],[9,19,11,0],[10,6,11,0],[10,13,11,0,"Raw"],[10,16,11,0],[11,4,11,0],[12,2,11,0],[13,2,1,0],[13,6,1,0,"_polkadotUtil"],[13,19,1,0],[13,22,1,0,"require"],[13,29,1,0],[13,30,1,0,"_dependencyMap"],[13,44,1,0],[14,2,2,0],[15,0,3,0],[16,0,4,0],[17,0,5,0],[18,0,6,0],[19,0,7,0],[20,0,8,0],[21,0,9,0],[22,0,10,0],[23,2,11,7],[23,8,11,13,"Raw"],[23,11,11,16],[23,20,11,25,"Uint8Array"],[23,30,11,35],[23,31,11,36],[24,4,16,4],[25,0,17,0],[26,0,18,0],[27,0,19,0],[28,4,20,4],[28,16,20,16,"Symbol"],[28,22,20,22],[28,23,20,23,"species"],[28,30,20,30],[28,34,20,34],[29,6,21,8],[29,13,21,15,"Uint8Array"],[29,23,21,25],[30,4,22,4],[31,4,23,4,"constructor"],[31,15,23,15,"constructor"],[31,16,23,16,"registry"],[31,24,23,24],[31,26,23,26,"value"],[31,31,23,31],[31,33,23,33,"initialU8aLength"],[31,49,23,49],[31,51,23,51],[32,6,24,8],[32,11,24,13],[32,12,24,14],[32,16,24,14,"u8aToU8a"],[32,29,24,22],[32,30,24,22,"u8aToU8a"],[32,38,24,22],[32,40,24,23,"value"],[32,45,24,28],[32,46,24,29],[32,47,24,30],[33,6,25,8],[33,10,25,12],[33,11,25,13,"registry"],[33,19,25,21],[33,22,25,24,"registry"],[33,30,25,32],[34,6,26,8],[34,10,26,12],[34,11,26,13,"initialU8aLength"],[34,27,26,29],[34,30,26,32,"initialU8aLength"],[34,46,26,48],[35,4,27,4],[36,4,28,4],[37,0,29,0],[38,0,30,0],[39,4,31,4],[39,8,31,8,"encodedLength"],[39,21,31,21,"encodedLength"],[39,22,31,21],[39,24,31,24],[40,6,32,8],[40,13,32,15],[40,17,32,19],[40,18,32,20,"length"],[40,24,32,26],[41,4,33,4],[42,4,34,4],[43,0,35,0],[44,0,36,0],[45,4,37,4],[45,8,37,8,"hash"],[45,12,37,12,"hash"],[45,13,37,12],[45,15,37,15],[46,6,38,8],[46,13,38,15],[46,17,38,19],[46,18,38,20,"registry"],[46,26,38,28],[46,27,38,29,"hash"],[46,31,38,33],[46,32,38,34],[46,36,38,38],[46,37,38,39,"toU8a"],[46,42,38,44],[46,43,38,45],[46,44,38,46],[46,45,38,47],[47,4,39,4],[48,4,40,4],[49,0,41,0],[50,0,42,0],[51,4,43,4],[51,8,43,8,"isAscii"],[51,15,43,15,"isAscii"],[51,16,43,15],[51,18,43,18],[52,6,44,8],[52,13,44,15],[52,17,44,15,"isAscii"],[52,30,44,22],[52,31,44,22,"isAscii"],[52,38,44,22],[52,40,44,23],[52,44,44,27],[52,45,44,28],[53,4,45,4],[54,4,46,4],[55,0,47,0],[56,0,48,0],[57,4,49,4],[57,8,49,8,"isEmpty"],[57,15,49,15,"isEmpty"],[57,16,49,15],[57,18,49,18],[58,6,50,8],[58,13,50,15],[58,14,50,16],[58,18,50,20],[58,19,50,21,"length"],[58,25,50,27],[58,29,50,31],[58,33,50,31,"isUndefined"],[58,46,50,42],[58,47,50,42,"isUndefined"],[58,58,50,42],[58,60,50,43],[58,64,50,47],[58,65,50,48,"find"],[58,69,50,52],[58,70,50,54,"b"],[58,71,50,55],[58,75,50,60],[58,76,50,61],[58,77,50,62,"b"],[58,78,50,63],[58,79,50,64],[58,80,50,65],[59,4,51,4],[60,4,52,4],[61,0,53,0],[62,0,54,0],[63,4,55,4],[63,8,55,8,"isUtf8"],[63,14,55,14,"isUtf8"],[63,15,55,14],[63,17,55,17],[64,6,56,8],[64,13,56,15],[64,17,56,15,"isUtf8"],[64,30,56,21],[64,31,56,21,"isUtf8"],[64,37,56,21],[64,39,56,22],[64,43,56,26],[64,44,56,27],[65,4,57,4],[66,4,58,4],[67,0,59,0],[68,0,60,0],[69,4,61,4,"bitLength"],[69,13,61,13,"bitLength"],[69,14,61,13],[69,16,61,16],[70,6,62,8],[70,13,62,15],[70,17,62,19],[70,18,62,20,"length"],[70,24,62,26],[70,27,62,29],[70,28,62,30],[71,4,63,4],[72,4,64,4],[73,0,65,0],[74,0,66,0],[75,4,67,4,"eq"],[75,6,67,6,"eq"],[75,7,67,7,"other"],[75,12,67,12],[75,14,67,14],[76,6,68,8],[76,10,68,12,"other"],[76,15,68,17],[76,27,68,29,"Uint8Array"],[76,37,68,39],[76,39,68,41],[77,8,69,12],[77,15,69,20],[77,19,69,24],[77,20,69,25,"length"],[77,26,69,31],[77,31,69,36,"other"],[77,36,69,41],[77,37,69,42,"length"],[77,43,69,48],[77,47,70,16],[77,48,70,17],[77,52,70,21],[77,53,70,22,"some"],[77,57,70,26],[77,58,70,27],[77,59,70,28,"b"],[77,60,70,29],[77,62,70,31,"index"],[77,67,70,36],[77,72,70,41,"b"],[77,73,70,42],[77,78,70,47,"other"],[77,83,70,52],[77,84,70,53,"index"],[77,89,70,58],[77,90,70,59],[77,91,70,60],[78,6,71,8],[79,6,72,8],[79,13,72,15],[79,17,72,19],[79,18,72,20,"eq"],[79,20,72,22],[79,21,72,23],[79,25,72,23,"u8aToU8a"],[79,38,72,31],[79,39,72,31,"u8aToU8a"],[79,47,72,31],[79,49,72,32,"other"],[79,54,72,37],[79,55,72,38],[79,56,72,39],[80,4,73,4],[81,4,74,4],[82,0,75,0],[83,0,76,0],[84,4,77,4,"inspect"],[84,11,77,11,"inspect"],[84,12,77,11],[84,14,77,14],[85,6,78,8],[85,13,78,15],[86,8,79,12,"outer"],[86,13,79,17],[86,15,79,19],[86,16,79,20],[86,20,79,24],[86,21,79,25,"toU8a"],[86,26,79,30],[86,27,79,31],[86,28,79,32],[87,6,80,8],[87,7,80,9],[88,4,81,4],[89,4,82,4],[90,0,83,0],[91,0,84,0],[92,4,85,4,"toHex"],[92,9,85,9,"toHex"],[92,10,85,9],[92,12,85,12],[93,6,86,8],[93,13,86,15],[93,17,86,15,"u8aToHex"],[93,30,86,23],[93,31,86,23,"u8aToHex"],[93,39,86,23],[93,41,86,24],[93,45,86,28],[93,46,86,29],[94,4,87,4],[95,4,88,4],[96,0,89,0],[97,0,90,0],[98,4,91,4,"toHuman"],[98,11,91,11,"toHuman"],[98,12,91,12,"_isExtended"],[98,23,91,23],[98,25,91,25,"disableAscii"],[98,37,91,37],[98,39,91,39],[99,6,92,8],[99,13,92,15],[99,17,92,19],[99,18,92,20,"toPrimitive"],[99,29,92,31],[99,30,92,32,"disableAscii"],[99,42,92,44],[99,43,92,45],[100,4,93,4],[101,4,94,4],[102,0,95,0],[103,0,96,0],[104,4,97,4,"toJSON"],[104,10,97,10,"toJSON"],[104,11,97,10],[104,13,97,13],[105,6,98,8],[105,13,98,15],[105,17,98,19],[105,18,98,20,"toHex"],[105,23,98,25],[105,24,98,26],[105,25,98,27],[106,4,99,4],[107,4,100,4],[108,0,101,0],[109,0,102,0],[110,4,103,4,"toPrimitive"],[110,15,103,15,"toPrimitive"],[110,16,103,16,"disableAscii"],[110,28,103,28],[110,30,103,30],[111,6,104,8],[111,10,104,12],[111,11,104,13,"disableAscii"],[111,23,104,25],[111,27,104,29],[111,31,104,33],[111,32,104,34,"isAscii"],[111,39,104,41],[111,41,104,43],[112,8,105,12],[112,14,105,18,"text"],[112,18,105,22],[112,21,105,25],[112,25,105,29],[112,26,105,30,"toUtf8"],[112,32,105,36],[112,33,105,37],[112,34,105,38],[113,8,106,12],[114,8,107,12],[114,12,107,16],[114,16,107,16,"isAscii"],[114,29,107,23],[114,30,107,23,"isAscii"],[114,37,107,23],[114,39,107,24,"text"],[114,43,107,28],[114,44,107,29],[114,46,107,31],[115,10,108,16],[115,17,108,23,"text"],[115,21,108,27],[116,8,109,12],[117,6,110,8],[118,6,111,8],[118,13,111,15],[118,17,111,19],[118,18,111,20,"toJSON"],[118,24,111,26],[118,25,111,27],[118,26,111,28],[119,4,112,4],[120,4,113,4],[121,0,114,0],[122,0,115,0],[123,4,116,4,"toRawType"],[123,13,116,13,"toRawType"],[123,14,116,13],[123,16,116,16],[124,6,117,8],[124,13,117,15],[124,18,117,20],[125,4,118,4],[126,4,119,4],[127,0,120,0],[128,0,121,0],[129,4,122,4,"toString"],[129,12,122,12,"toString"],[129,13,122,12],[129,15,122,15],[130,6,123,8],[130,13,123,15],[130,17,123,19],[130,18,123,20,"toHex"],[130,23,123,25],[130,24,123,26],[130,25,123,27],[131,4,124,4],[132,4,125,4],[133,0,126,0],[134,0,127,0],[135,4,128,4,"toU8a"],[135,9,128,9,"toU8a"],[135,10,128,10,"_isBare"],[135,17,128,17],[135,19,128,19],[136,6,129,8],[136,13,129,15,"Uint8Array"],[136,23,129,25],[136,24,129,26,"from"],[136,28,129,30],[136,29,129,31],[136,33,129,35],[136,34,129,36],[137,4,130,4],[138,4,131,4],[139,0,132,0],[140,0,133,0],[141,4,134,4,"toUtf8"],[141,10,134,10,"toUtf8"],[141,11,134,10],[141,13,134,13],[142,6,135,8],[142,10,135,12],[142,11,135,13],[142,15,135,17],[142,16,135,18,"isUtf8"],[142,22,135,24],[142,24,135,26],[143,8,136,12],[143,14,136,18],[143,18,136,22,"Error"],[143,23,136,27],[143,24,136,28],[143,75,136,79],[143,76,136,80],[144,6,137,8],[145,6,138,8],[145,13,138,15],[145,17,138,15,"u8aToString"],[145,30,138,26],[145,31,138,26,"u8aToString"],[145,42,138,26],[145,44,138,27],[145,48,138,31],[145,49,138,32],[146,4,139,4],[147,2,140,0],[148,0,140,1],[148,3]],"functionMap":{"names":["<global>","Raw","get__@@species","constructor","get__encodedLength","get__hash","get__isAscii","get__isEmpty","find$argument_0","get__isUtf8","bitLength","eq","some$argument_0","inspect","toHex","toHuman","toJSON","toPrimitive","toRawType","toString","toU8a","toUtf8"],"mappings":"AAA;OCU;ICS;KDE;IEC;KFI;IGI;KHE;III;KJE;IKI;KLE;IMI;qDCC,UD;KNC;IQI;KRE;ISI;KTE;IUI;2BCG,gCD;KVG;IYI;KZI;IaI;KbE;IcI;KdE;IeI;KfE;IgBI;KhBS;IiBI;KjBE;IkBI;KlBE;ImBI;KnBE;IoBI;KpBK;CDC"},"hasCjsExports":false},"type":"js/module"}]} |