{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":150},"end":{"line":4,"column":40,"index":175}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","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.AbstractInt = exports.DEFAULT_UINT_BITS = void 0;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n exports.DEFAULT_UINT_BITS = 64;\n const MAX_NUMBER_BITS = 52;\n const MUL_P = new util_1.BN(1_00_00);\n const FORMATTERS = [['Perquintill', util_1.BN_QUINTILL], ['Perbill', util_1.BN_BILLION], ['Permill', util_1.BN_MILLION], ['Percent', util_1.BN_HUNDRED]];\n function isToBn(value) {\n return (0, util_1.isFunction)(value.toBn);\n }\n function toPercentage(value, divisor) {\n return `${(value.mul(MUL_P).div(divisor).toNumber() / 100).toFixed(2)}%`;\n }\n /** @internal */\n function decodeAbstractInt(value, isNegative) {\n if ((0, util_1.isNumber)(value)) {\n if (!Number.isInteger(value) || value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER) {\n throw new Error('Number needs to be an integer <= Number.MAX_SAFE_INTEGER, i.e. 2 ^ 53 - 1');\n }\n return value;\n } else if ((0, util_1.isString)(value)) {\n if ((0, util_1.isHex)(value, -1, true)) {\n return (0, util_1.hexToBn)(value, {\n isLe: false,\n isNegative\n }).toString();\n }\n if (value.includes('.') || value.includes(',') || value.includes('e')) {\n throw new Error('String should not contain decimal points or scientific notation');\n }\n return value;\n } else if ((0, util_1.isBn)(value) || (0, util_1.isBigInt)(value)) {\n return value.toString();\n } else if ((0, util_1.isObject)(value)) {\n if (isToBn(value)) {\n return value.toBn().toString();\n }\n // Allow the construction from an object with a single top-level key. This means that\n // single key objects can be treated equivalently to numbers, assuming they meet the\n // specific requirements. (This is useful in Weights 1.5 where Objects are compact)\n const keys = Object.keys(value);\n if (keys.length !== 1) {\n throw new Error('Unable to construct number from multi-key object');\n }\n return decodeAbstractInt(value[keys[0]], isNegative);\n } else if (!value) {\n return 0;\n }\n throw new Error(`Unable to create BN from unknown type ${typeof value}`);\n }\n /**\n * @name AbstractInt\n * @ignore\n * @noInheritDoc\n */\n class AbstractInt extends util_1.BN {\n #bitLength;\n constructor(registry, value = 0, bitLength = exports.DEFAULT_UINT_BITS, isSigned = false) {\n // Construct via a string/number, which will be passed in the BN constructor.\n // It would be ideal to actually return a BN, but there is an issue:\n // https://github.com/indutny/bn.js/issues/206\n super(\n // shortcut isU8a as used in SCALE decoding\n (0, util_1.isU8a)(value) ? bitLength <= 48 ? (0, util_1.u8aToNumber)(value.subarray(0, bitLength / 8), {\n isNegative: isSigned\n }) : (0, util_1.u8aToBn)(value.subarray(0, bitLength / 8), {\n isLe: true,\n isNegative: isSigned\n }).toString() : decodeAbstractInt(value, isSigned));\n this.registry = registry;\n this.#bitLength = bitLength;\n this.encodedLength = this.#bitLength / 8;\n this.initialU8aLength = this.#bitLength / 8;\n this.isUnsigned = !isSigned;\n const isNegative = this.isNeg();\n const maxBits = bitLength - (isSigned && !isNegative ? 1 : 0);\n if (isNegative && !isSigned) {\n throw new Error(`${this.toRawType()}: Negative number passed to unsigned type`);\n } else if (super.bitLength() > maxBits) {\n throw new Error(`${this.toRawType()}: Input too large. Found input with ${super.bitLength()} bits, expected ${maxBits}`);\n }\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 Checks if the value is a zero value (align elsewhere)\n */\n get isEmpty() {\n return this.isZero();\n }\n /**\n * @description Returns the number of bits in the value\n */\n bitLength() {\n return this.#bitLength;\n }\n /**\n * @description Compares the value of the input to see if there is a match\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n eq(other) {\n // Here we are actually overriding the built-in .eq to take care of both\n // number and BN inputs (no `.eqn` needed) - numbers will be converted\n return super.eq((0, util_1.isHex)(other) ? (0, util_1.hexToBn)(other.toString(), {\n isLe: false,\n isNegative: !this.isUnsigned\n }) : (0, util_1.bnToBn)(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 True if this value is the max of the type\n */\n isMax() {\n const u8a = this.toU8a().filter(b => b === 0xff);\n return u8a.length === this.#bitLength / 8;\n }\n /**\n * @description Returns a BigInt representation of the number\n */\n toBigInt() {\n return BigInt(this.toString());\n }\n /**\n * @description Returns the BN representation of the number. (Compatibility)\n */\n toBn() {\n return this;\n }\n /**\n * @description Returns a hex string representation of the value\n */\n toHex(isLe = false) {\n // For display/JSON, this is BE, for compare, use isLe\n return (0, util_1.bnToHex)(this, {\n bitLength: this.bitLength(),\n isLe,\n isNegative: !this.isUnsigned\n });\n }\n /**\n * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information\n */\n toHuman(_isExpanded) {\n const rawType = this.toRawType();\n if (rawType === 'Balance') {\n return this.isMax() ? 'everything'\n // FIXME In the case of multiples we need some way of detecting which instance this belongs\n // to. as it stands we will always format (incorrectly) against the first token defined\n : (0, util_1.formatBalance)(this, {\n decimals: this.registry.chainDecimals[0],\n withSi: true,\n withUnit: this.registry.chainTokens[0]\n });\n }\n const [, divisor] = FORMATTERS.find(([type]) => type === rawType) || [];\n return divisor ? toPercentage(this, divisor) : (0, util_1.formatNumber)(this);\n }\n /**\n * @description Converts the Object to JSON, typically used for RPC transfers\n */\n toJSON(onlyHex = false) {\n // FIXME this return type should by string | number, however BN returns string\n // Options here are\n // - super.bitLength() - the actual used bits, use hex when close to MAX_SAFE_INTEGER\n // - this.#bitLength - the max used bits, use hex when larger than native Rust type\n return onlyHex || this.#bitLength > 128 || super.bitLength() > MAX_NUMBER_BITS ? this.toHex() : this.toNumber();\n }\n /**\n * @description Returns the value in a primitive form, either number when <= 52 bits, or string otherwise\n */\n toPrimitive() {\n return super.bitLength() > MAX_NUMBER_BITS ? this.toString() : this.toNumber();\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n // NOTE In the case of balances, which have a special meaning on the UI\n // and can be interpreted differently, return a specific value for it so\n // underlying it always matches (no matter which length it actually is)\n return this instanceof this.registry.createClassUnsafe('Balance') ? 'Balance' : `${this.isUnsigned ? 'u' : 'i'}${this.bitLength()}`;\n }\n /**\n * @description Returns the string representation of the value\n * @param base The base to use for the conversion\n */\n toString(base) {\n // only included here since we do not inherit docs\n return super.toString(base);\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n */\n toU8a(_isBare) {\n return (0, util_1.bnToU8a)(this, {\n bitLength: this.bitLength(),\n isLe: true,\n isNegative: !this.isUnsigned\n });\n }\n }\n exports.AbstractInt = AbstractInt;\n});","lineCount":219,"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,"AbstractInt"],[7,21,3,19],[7,24,3,22,"exports"],[7,31,3,29],[7,32,3,30,"DEFAULT_UINT_BITS"],[7,49,3,47],[7,52,3,50],[7,57,3,55],[7,58,3,56],[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,"exports"],[9,9,5,7],[9,10,5,8,"DEFAULT_UINT_BITS"],[9,27,5,25],[9,30,5,28],[9,32,5,30],[10,2,6,0],[10,8,6,6,"MAX_NUMBER_BITS"],[10,23,6,21],[10,26,6,24],[10,28,6,26],[11,2,7,0],[11,8,7,6,"MUL_P"],[11,13,7,11],[11,16,7,14],[11,20,7,18,"util_1"],[11,26,7,24],[11,27,7,25,"BN"],[11,29,7,27],[11,30,7,28],[11,37,7,35],[11,38,7,36],[12,2,8,0],[12,8,8,6,"FORMATTERS"],[12,18,8,16],[12,21,8,19],[12,22,9,4],[12,23,9,5],[12,36,9,18],[12,38,9,20,"util_1"],[12,44,9,26],[12,45,9,27,"BN_QUINTILL"],[12,56,9,38],[12,57,9,39],[12,59,10,4],[12,60,10,5],[12,69,10,14],[12,71,10,16,"util_1"],[12,77,10,22],[12,78,10,23,"BN_BILLION"],[12,88,10,33],[12,89,10,34],[12,91,11,4],[12,92,11,5],[12,101,11,14],[12,103,11,16,"util_1"],[12,109,11,22],[12,110,11,23,"BN_MILLION"],[12,120,11,33],[12,121,11,34],[12,123,12,4],[12,124,12,5],[12,133,12,14],[12,135,12,16,"util_1"],[12,141,12,22],[12,142,12,23,"BN_HUNDRED"],[12,152,12,33],[12,153,12,34],[12,154,13,1],[13,2,14,0],[13,11,14,9,"isToBn"],[13,17,14,15,"isToBn"],[13,18,14,16,"value"],[13,23,14,21],[13,25,14,23],[14,4,15,4],[14,11,15,11],[14,12,15,12],[14,13,15,13],[14,15,15,15,"util_1"],[14,21,15,21],[14,22,15,22,"isFunction"],[14,32,15,32],[14,34,15,34,"value"],[14,39,15,39],[14,40,15,40,"toBn"],[14,44,15,44],[14,45,15,45],[15,2,16,0],[16,2,17,0],[16,11,17,9,"toPercentage"],[16,23,17,21,"toPercentage"],[16,24,17,22,"value"],[16,29,17,27],[16,31,17,29,"divisor"],[16,38,17,36],[16,40,17,38],[17,4,18,4],[17,11,18,11],[17,14,18,14],[17,15,18,15,"value"],[17,20,18,20],[17,21,18,21,"mul"],[17,24,18,24],[17,25,18,25,"MUL_P"],[17,30,18,30],[17,31,18,31],[17,32,18,32,"div"],[17,35,18,35],[17,36,18,36,"divisor"],[17,43,18,43],[17,44,18,44],[17,45,18,45,"toNumber"],[17,53,18,53],[17,54,18,54],[17,55,18,55],[17,58,18,58],[17,61,18,61],[17,63,18,63,"toFixed"],[17,70,18,70],[17,71,18,71],[17,72,18,72],[17,73,18,73],[17,76,18,76],[18,2,19,0],[19,2,20,0],[20,2,21,0],[20,11,21,9,"decodeAbstractInt"],[20,28,21,26,"decodeAbstractInt"],[20,29,21,27,"value"],[20,34,21,32],[20,36,21,34,"isNegative"],[20,46,21,44],[20,48,21,46],[21,4,22,4],[21,8,22,8],[21,9,22,9],[21,10,22,10],[21,12,22,12,"util_1"],[21,18,22,18],[21,19,22,19,"isNumber"],[21,27,22,27],[21,29,22,29,"value"],[21,34,22,34],[21,35,22,35],[21,37,22,37],[22,6,23,8],[22,10,23,12],[22,11,23,13,"Number"],[22,17,23,19],[22,18,23,20,"isInteger"],[22,27,23,29],[22,28,23,30,"value"],[22,33,23,35],[22,34,23,36],[22,38,23,40,"value"],[22,43,23,45],[22,46,23,48,"Number"],[22,52,23,54],[22,53,23,55,"MAX_SAFE_INTEGER"],[22,69,23,71],[22,73,23,75,"value"],[22,78,23,80],[22,81,23,83,"Number"],[22,87,23,89],[22,88,23,90,"MIN_SAFE_INTEGER"],[22,104,23,106],[22,106,23,108],[23,8,24,12],[23,14,24,18],[23,18,24,22,"Error"],[23,23,24,27],[23,24,24,28],[23,99,24,103],[23,100,24,104],[24,6,25,8],[25,6,26,8],[25,13,26,15,"value"],[25,18,26,20],[26,4,27,4],[26,5,27,5],[26,11,28,9],[26,15,28,13],[26,16,28,14],[26,17,28,15],[26,19,28,17,"util_1"],[26,25,28,23],[26,26,28,24,"isString"],[26,34,28,32],[26,36,28,34,"value"],[26,41,28,39],[26,42,28,40],[26,44,28,42],[27,6,29,8],[27,10,29,12],[27,11,29,13],[27,12,29,14],[27,14,29,16,"util_1"],[27,20,29,22],[27,21,29,23,"isHex"],[27,26,29,28],[27,28,29,30,"value"],[27,33,29,35],[27,35,29,37],[27,36,29,38],[27,37,29,39],[27,39,29,41],[27,43,29,45],[27,44,29,46],[27,46,29,48],[28,8,30,12],[28,15,30,19],[28,16,30,20],[28,17,30,21],[28,19,30,23,"util_1"],[28,25,30,29],[28,26,30,30,"hexToBn"],[28,33,30,37],[28,35,30,39,"value"],[28,40,30,44],[28,42,30,46],[29,10,30,48,"isLe"],[29,14,30,52],[29,16,30,54],[29,21,30,59],[30,10,30,61,"isNegative"],[31,8,30,72],[31,9,30,73],[31,10,30,74],[31,11,30,75,"toString"],[31,19,30,83],[31,20,30,84],[31,21,30,85],[32,6,31,8],[33,6,32,8],[33,10,32,12,"value"],[33,15,32,17],[33,16,32,18,"includes"],[33,24,32,26],[33,25,32,27],[33,28,32,30],[33,29,32,31],[33,33,32,35,"value"],[33,38,32,40],[33,39,32,41,"includes"],[33,47,32,49],[33,48,32,50],[33,51,32,53],[33,52,32,54],[33,56,32,58,"value"],[33,61,32,63],[33,62,32,64,"includes"],[33,70,32,72],[33,71,32,73],[33,74,32,76],[33,75,32,77],[33,77,32,79],[34,8,33,12],[34,14,33,18],[34,18,33,22,"Error"],[34,23,33,27],[34,24,33,28],[34,89,33,93],[34,90,33,94],[35,6,34,8],[36,6,35,8],[36,13,35,15,"value"],[36,18,35,20],[37,4,36,4],[37,5,36,5],[37,11,37,9],[37,15,37,13],[37,16,37,14],[37,17,37,15],[37,19,37,17,"util_1"],[37,25,37,23],[37,26,37,24,"isBn"],[37,30,37,28],[37,32,37,30,"value"],[37,37,37,35],[37,38,37,36],[37,42,37,40],[37,43,37,41],[37,44,37,42],[37,46,37,44,"util_1"],[37,52,37,50],[37,53,37,51,"isBigInt"],[37,61,37,59],[37,63,37,61,"value"],[37,68,37,66],[37,69,37,67],[37,71,37,69],[38,6,38,8],[38,13,38,15,"value"],[38,18,38,20],[38,19,38,21,"toString"],[38,27,38,29],[38,28,38,30],[38,29,38,31],[39,4,39,4],[39,5,39,5],[39,11,40,9],[39,15,40,13],[39,16,40,14],[39,17,40,15],[39,19,40,17,"util_1"],[39,25,40,23],[39,26,40,24,"isObject"],[39,34,40,32],[39,36,40,34,"value"],[39,41,40,39],[39,42,40,40],[39,44,40,42],[40,6,41,8],[40,10,41,12,"isToBn"],[40,16,41,18],[40,17,41,19,"value"],[40,22,41,24],[40,23,41,25],[40,25,41,27],[41,8,42,12],[41,15,42,19,"value"],[41,20,42,24],[41,21,42,25,"toBn"],[41,25,42,29],[41,26,42,30],[41,27,42,31],[41,28,42,32,"toString"],[41,36,42,40],[41,37,42,41],[41,38,42,42],[42,6,43,8],[43,6,44,8],[44,6,45,8],[45,6,46,8],[46,6,47,8],[46,12,47,14,"keys"],[46,16,47,18],[46,19,47,21,"Object"],[46,25,47,27],[46,26,47,28,"keys"],[46,30,47,32],[46,31,47,33,"value"],[46,36,47,38],[46,37,47,39],[47,6,48,8],[47,10,48,12,"keys"],[47,14,48,16],[47,15,48,17,"length"],[47,21,48,23],[47,26,48,28],[47,27,48,29],[47,29,48,31],[48,8,49,12],[48,14,49,18],[48,18,49,22,"Error"],[48,23,49,27],[48,24,49,28],[48,74,49,78],[48,75,49,79],[49,6,50,8],[50,6,51,8],[50,13,51,15,"decodeAbstractInt"],[50,30,51,32],[50,31,51,33,"value"],[50,36,51,38],[50,37,51,39,"keys"],[50,41,51,43],[50,42,51,44],[50,43,51,45],[50,44,51,46],[50,45,51,47],[50,47,51,49,"isNegative"],[50,57,51,59],[50,58,51,60],[51,4,52,4],[51,5,52,5],[51,11,53,9],[51,15,53,13],[51,16,53,14,"value"],[51,21,53,19],[51,23,53,21],[52,6,54,8],[52,13,54,15],[52,14,54,16],[53,4,55,4],[54,4,56,4],[54,10,56,10],[54,14,56,14,"Error"],[54,19,56,19],[54,20,56,20],[54,61,56,61],[54,68,56,68,"value"],[54,73,56,73],[54,75,56,75],[54,76,56,76],[55,2,57,0],[56,2,58,0],[57,0,59,0],[58,0,60,0],[59,0,61,0],[60,0,62,0],[61,2,63,0],[61,8,63,6,"AbstractInt"],[61,19,63,17],[61,28,63,26,"util_1"],[61,34,63,32],[61,35,63,33,"BN"],[61,37,63,35],[61,38,63,36],[62,4,70,4],[62,5,70,5,"bitLength"],[62,14,70,14],[63,4,71,4,"constructor"],[63,15,71,15,"constructor"],[63,16,71,16,"registry"],[63,24,71,24],[63,26,71,26,"value"],[63,31,71,31],[63,34,71,34],[63,35,71,35],[63,37,71,37,"bitLength"],[63,46,71,46],[63,49,71,49,"exports"],[63,56,71,56],[63,57,71,57,"DEFAULT_UINT_BITS"],[63,74,71,74],[63,76,71,76,"isSigned"],[63,84,71,84],[63,87,71,87],[63,92,71,92],[63,94,71,94],[64,6,72,8],[65,6,73,8],[66,6,74,8],[67,6,75,8],[67,11,75,13],[68,6,76,8],[69,6,77,8],[69,7,77,9],[69,8,77,10],[69,10,77,12,"util_1"],[69,16,77,18],[69,17,77,19,"isU8a"],[69,22,77,24],[69,24,77,26,"value"],[69,29,77,31],[69,30,77,32],[69,33,78,14,"bitLength"],[69,42,78,23],[69,46,78,27],[69,48,78,29],[69,51,79,18],[69,52,79,19],[69,53,79,20],[69,55,79,22,"util_1"],[69,61,79,28],[69,62,79,29,"u8aToNumber"],[69,73,79,40],[69,75,79,42,"value"],[69,80,79,47],[69,81,79,48,"subarray"],[69,89,79,56],[69,90,79,57],[69,91,79,58],[69,93,79,60,"bitLength"],[69,102,79,69],[69,105,79,72],[69,106,79,73],[69,107,79,74],[69,109,79,76],[70,8,79,78,"isNegative"],[70,18,79,88],[70,20,79,90,"isSigned"],[71,6,79,99],[71,7,79,100],[71,8,79,101],[71,11,80,18],[71,12,80,19],[71,13,80,20],[71,15,80,22,"util_1"],[71,21,80,28],[71,22,80,29,"u8aToBn"],[71,29,80,36],[71,31,80,38,"value"],[71,36,80,43],[71,37,80,44,"subarray"],[71,45,80,52],[71,46,80,53],[71,47,80,54],[71,49,80,56,"bitLength"],[71,58,80,65],[71,61,80,68],[71,62,80,69],[71,63,80,70],[71,65,80,72],[72,8,80,74,"isLe"],[72,12,80,78],[72,14,80,80],[72,18,80,84],[73,8,80,86,"isNegative"],[73,18,80,96],[73,20,80,98,"isSigned"],[74,6,80,107],[74,7,80,108],[74,8,80,109],[74,9,80,110,"toString"],[74,17,80,118],[74,18,80,119],[74,19,80,120],[74,22,81,14,"decodeAbstractInt"],[74,39,81,31],[74,40,81,32,"value"],[74,45,81,37],[74,47,81,39,"isSigned"],[74,55,81,47],[74,56,81,48],[74,57,81,49],[75,6,82,8],[75,10,82,12],[75,11,82,13,"registry"],[75,19,82,21],[75,22,82,24,"registry"],[75,30,82,32],[76,6,83,8],[76,10,83,12],[76,11,83,13],[76,12,83,14,"bitLength"],[76,21,83,23],[76,24,83,26,"bitLength"],[76,33,83,35],[77,6,84,8],[77,10,84,12],[77,11,84,13,"encodedLength"],[77,24,84,26],[77,27,84,29],[77,31,84,33],[77,32,84,34],[77,33,84,35,"bitLength"],[77,42,84,44],[77,45,84,47],[77,46,84,48],[78,6,85,8],[78,10,85,12],[78,11,85,13,"initialU8aLength"],[78,27,85,29],[78,30,85,32],[78,34,85,36],[78,35,85,37],[78,36,85,38,"bitLength"],[78,45,85,47],[78,48,85,50],[78,49,85,51],[79,6,86,8],[79,10,86,12],[79,11,86,13,"isUnsigned"],[79,21,86,23],[79,24,86,26],[79,25,86,27,"isSigned"],[79,33,86,35],[80,6,87,8],[80,12,87,14,"isNegative"],[80,22,87,24],[80,25,87,27],[80,29,87,31],[80,30,87,32,"isNeg"],[80,35,87,37],[80,36,87,38],[80,37,87,39],[81,6,88,8],[81,12,88,14,"maxBits"],[81,19,88,21],[81,22,88,24,"bitLength"],[81,31,88,33],[81,35,88,37,"isSigned"],[81,43,88,45],[81,47,88,49],[81,48,88,50,"isNegative"],[81,58,88,60],[81,61,88,63],[81,62,88,64],[81,65,88,67],[81,66,88,68],[81,67,88,69],[82,6,89,8],[82,10,89,12,"isNegative"],[82,20,89,22],[82,24,89,26],[82,25,89,27,"isSigned"],[82,33,89,35],[82,35,89,37],[83,8,90,12],[83,14,90,18],[83,18,90,22,"Error"],[83,23,90,27],[83,24,90,28],[83,27,90,31],[83,31,90,35],[83,32,90,36,"toRawType"],[83,41,90,45],[83,42,90,46],[83,43,90,47],[83,86,90,90],[83,87,90,91],[84,6,91,8],[84,7,91,9],[84,13,92,13],[84,17,92,17],[84,22,92,22],[84,23,92,23,"bitLength"],[84,32,92,32],[84,33,92,33],[84,34,92,34],[84,37,92,37,"maxBits"],[84,44,92,44],[84,46,92,46],[85,8,93,12],[85,14,93,18],[85,18,93,22,"Error"],[85,23,93,27],[85,24,93,28],[85,27,93,31],[85,31,93,35],[85,32,93,36,"toRawType"],[85,41,93,45],[85,42,93,46],[85,43,93,47],[85,82,93,86],[85,87,93,91],[85,88,93,92,"bitLength"],[85,97,93,101],[85,98,93,102],[85,99,93,103],[85,118,93,122,"maxBits"],[85,125,93,129],[85,127,93,131],[85,128,93,132],[86,6,94,8],[87,4,95,4],[88,4,96,4],[89,0,97,0],[90,0,98,0],[91,4,99,4],[91,8,99,8,"hash"],[91,12,99,12,"hash"],[91,13,99,12],[91,15,99,15],[92,6,100,8],[92,13,100,15],[92,17,100,19],[92,18,100,20,"registry"],[92,26,100,28],[92,27,100,29,"hash"],[92,31,100,33],[92,32,100,34],[92,36,100,38],[92,37,100,39,"toU8a"],[92,42,100,44],[92,43,100,45],[92,44,100,46],[92,45,100,47],[93,4,101,4],[94,4,102,4],[95,0,103,0],[96,0,104,0],[97,4,105,4],[97,8,105,8,"isEmpty"],[97,15,105,15,"isEmpty"],[97,16,105,15],[97,18,105,18],[98,6,106,8],[98,13,106,15],[98,17,106,19],[98,18,106,20,"isZero"],[98,24,106,26],[98,25,106,27],[98,26,106,28],[99,4,107,4],[100,4,108,4],[101,0,109,0],[102,0,110,0],[103,4,111,4,"bitLength"],[103,13,111,13,"bitLength"],[103,14,111,13],[103,16,111,16],[104,6,112,8],[104,13,112,15],[104,17,112,19],[104,18,112,20],[104,19,112,21,"bitLength"],[104,28,112,30],[105,4,113,4],[106,4,114,4],[107,0,115,0],[108,0,116,0],[109,4,117,4],[110,4,118,4,"eq"],[110,6,118,6,"eq"],[110,7,118,7,"other"],[110,12,118,12],[110,14,118,14],[111,6,119,8],[112,6,120,8],[113,6,121,8],[113,13,121,15],[113,18,121,20],[113,19,121,21,"eq"],[113,21,121,23],[113,22,121,24],[113,23,121,25],[113,24,121,26],[113,26,121,28,"util_1"],[113,32,121,34],[113,33,121,35,"isHex"],[113,38,121,40],[113,40,121,42,"other"],[113,45,121,47],[113,46,121,48],[113,49,122,14],[113,50,122,15],[113,51,122,16],[113,53,122,18,"util_1"],[113,59,122,24],[113,60,122,25,"hexToBn"],[113,67,122,32],[113,69,122,34,"other"],[113,74,122,39],[113,75,122,40,"toString"],[113,83,122,48],[113,84,122,49],[113,85,122,50],[113,87,122,52],[114,8,122,54,"isLe"],[114,12,122,58],[114,14,122,60],[114,19,122,65],[115,8,122,67,"isNegative"],[115,18,122,77],[115,20,122,79],[115,21,122,80],[115,25,122,84],[115,26,122,85,"isUnsigned"],[116,6,122,96],[116,7,122,97],[116,8,122,98],[116,11,123,14],[116,12,123,15],[116,13,123,16],[116,15,123,18,"util_1"],[116,21,123,24],[116,22,123,25,"bnToBn"],[116,28,123,31],[116,30,123,33,"other"],[116,35,123,38],[116,36,123,39],[116,37,123,40],[117,4,124,4],[118,4,125,4],[119,0,126,0],[120,0,127,0],[121,4,128,4,"inspect"],[121,11,128,11,"inspect"],[121,12,128,11],[121,14,128,14],[122,6,129,8],[122,13,129,15],[123,8,130,12,"outer"],[123,13,130,17],[123,15,130,19],[123,16,130,20],[123,20,130,24],[123,21,130,25,"toU8a"],[123,26,130,30],[123,27,130,31],[123,28,130,32],[124,6,131,8],[124,7,131,9],[125,4,132,4],[126,4,133,4],[127,0,134,0],[128,0,135,0],[129,4,136,4,"isMax"],[129,9,136,9,"isMax"],[129,10,136,9],[129,12,136,12],[130,6,137,8],[130,12,137,14,"u8a"],[130,15,137,17],[130,18,137,20],[130,22,137,24],[130,23,137,25,"toU8a"],[130,28,137,30],[130,29,137,31],[130,30,137,32],[130,31,137,33,"filter"],[130,37,137,39],[130,38,137,41,"b"],[130,39,137,42],[130,43,137,47,"b"],[130,44,137,48],[130,49,137,53],[130,53,137,57],[130,54,137,58],[131,6,138,8],[131,13,138,15,"u8a"],[131,16,138,18],[131,17,138,19,"length"],[131,23,138,25],[131,28,138,31],[131,32,138,35],[131,33,138,36],[131,34,138,37,"bitLength"],[131,43,138,46],[131,46,138,49],[131,47,138,51],[132,4,139,4],[133,4,140,4],[134,0,141,0],[135,0,142,0],[136,4,143,4,"toBigInt"],[136,12,143,12,"toBigInt"],[136,13,143,12],[136,15,143,15],[137,6,144,8],[137,13,144,15,"BigInt"],[137,19,144,21],[137,20,144,22],[137,24,144,26],[137,25,144,27,"toString"],[137,33,144,35],[137,34,144,36],[137,35,144,37],[137,36,144,38],[138,4,145,4],[139,4,146,4],[140,0,147,0],[141,0,148,0],[142,4,149,4,"toBn"],[142,8,149,8,"toBn"],[142,9,149,8],[142,11,149,11],[143,6,150,8],[143,13,150,15],[143,17,150,19],[144,4,151,4],[145,4,152,4],[146,0,153,0],[147,0,154,0],[148,4,155,4,"toHex"],[148,9,155,9,"toHex"],[148,10,155,10,"isLe"],[148,14,155,14],[148,17,155,17],[148,22,155,22],[148,24,155,24],[149,6,156,8],[150,6,157,8],[150,13,157,15],[150,14,157,16],[150,15,157,17],[150,17,157,19,"util_1"],[150,23,157,25],[150,24,157,26,"bnToHex"],[150,31,157,33],[150,33,157,35],[150,37,157,39],[150,39,157,41],[151,8,158,12,"bitLength"],[151,17,158,21],[151,19,158,23],[151,23,158,27],[151,24,158,28,"bitLength"],[151,33,158,37],[151,34,158,38],[151,35,158,39],[152,8,159,12,"isLe"],[152,12,159,16],[153,8,160,12,"isNegative"],[153,18,160,22],[153,20,160,24],[153,21,160,25],[153,25,160,29],[153,26,160,30,"isUnsigned"],[154,6,161,8],[154,7,161,9],[154,8,161,10],[155,4,162,4],[156,4,163,4],[157,0,164,0],[158,0,165,0],[159,4,166,4,"toHuman"],[159,11,166,11,"toHuman"],[159,12,166,12,"_isExpanded"],[159,23,166,23],[159,25,166,25],[160,6,167,8],[160,12,167,14,"rawType"],[160,19,167,21],[160,22,167,24],[160,26,167,28],[160,27,167,29,"toRawType"],[160,36,167,38],[160,37,167,39],[160,38,167,40],[161,6,168,8],[161,10,168,12,"rawType"],[161,17,168,19],[161,22,168,24],[161,31,168,33],[161,33,168,35],[162,8,169,12],[162,15,169,19],[162,19,169,23],[162,20,169,24,"isMax"],[162,25,169,29],[162,26,169,30],[162,27,169,31],[162,30,170,18],[163,8,171,16],[164,8,172,16],[165,8,172,16],[165,10,173,18],[165,11,173,19],[165,12,173,20],[165,14,173,22,"util_1"],[165,20,173,28],[165,21,173,29,"formatBalance"],[165,34,173,42],[165,36,173,44],[165,40,173,48],[165,42,173,50],[166,10,173,52,"decimals"],[166,18,173,60],[166,20,173,62],[166,24,173,66],[166,25,173,67,"registry"],[166,33,173,75],[166,34,173,76,"chainDecimals"],[166,47,173,89],[166,48,173,90],[166,49,173,91],[166,50,173,92],[167,10,173,94,"withSi"],[167,16,173,100],[167,18,173,102],[167,22,173,106],[168,10,173,108,"withUnit"],[168,18,173,116],[168,20,173,118],[168,24,173,122],[168,25,173,123,"registry"],[168,33,173,131],[168,34,173,132,"chainTokens"],[168,45,173,143],[168,46,173,144],[168,47,173,145],[169,8,173,147],[169,9,173,148],[169,10,173,149],[170,6,174,8],[171,6,175,8],[171,12,175,14],[171,15,175,17,"divisor"],[171,22,175,24],[171,23,175,25],[171,26,175,28,"FORMATTERS"],[171,36,175,38],[171,37,175,39,"find"],[171,41,175,43],[171,42,175,44],[171,43,175,45],[171,44,175,46,"type"],[171,48,175,50],[171,49,175,51],[171,54,175,56,"type"],[171,58,175,60],[171,63,175,65,"rawType"],[171,70,175,72],[171,71,175,73],[171,75,175,77],[171,77,175,79],[172,6,176,8],[172,13,176,15,"divisor"],[172,20,176,22],[172,23,177,14,"toPercentage"],[172,35,177,26],[172,36,177,27],[172,40,177,31],[172,42,177,33,"divisor"],[172,49,177,40],[172,50,177,41],[172,53,178,14],[172,54,178,15],[172,55,178,16],[172,57,178,18,"util_1"],[172,63,178,24],[172,64,178,25,"formatNumber"],[172,76,178,37],[172,78,178,39],[172,82,178,43],[172,83,178,44],[173,4,179,4],[174,4,180,4],[175,0,181,0],[176,0,182,0],[177,4,183,4,"toJSON"],[177,10,183,10,"toJSON"],[177,11,183,11,"onlyHex"],[177,18,183,18],[177,21,183,21],[177,26,183,26],[177,28,183,28],[178,6,184,8],[179,6,185,8],[180,6,186,8],[181,6,187,8],[182,6,188,8],[182,13,188,15,"onlyHex"],[182,20,188,22],[182,24,188,27],[182,28,188,31],[182,29,188,32],[182,30,188,33,"bitLength"],[182,39,188,42],[182,42,188,45],[182,45,188,49],[182,49,188,54],[182,54,188,59],[182,55,188,60,"bitLength"],[182,64,188,69],[182,65,188,70],[182,66,188,71],[182,69,188,74,"MAX_NUMBER_BITS"],[182,84,188,90],[182,87,189,14],[182,91,189,18],[182,92,189,19,"toHex"],[182,97,189,24],[182,98,189,25],[182,99,189,26],[182,102,190,14],[182,106,190,18],[182,107,190,19,"toNumber"],[182,115,190,27],[182,116,190,28],[182,117,190,29],[183,4,191,4],[184,4,192,4],[185,0,193,0],[186,0,194,0],[187,4,195,4,"toPrimitive"],[187,15,195,15,"toPrimitive"],[187,16,195,15],[187,18,195,18],[188,6,196,8],[188,13,196,15],[188,18,196,20],[188,19,196,21,"bitLength"],[188,28,196,30],[188,29,196,31],[188,30,196,32],[188,33,196,35,"MAX_NUMBER_BITS"],[188,48,196,50],[188,51,197,14],[188,55,197,18],[188,56,197,19,"toString"],[188,64,197,27],[188,65,197,28],[188,66,197,29],[188,69,198,14],[188,73,198,18],[188,74,198,19,"toNumber"],[188,82,198,27],[188,83,198,28],[188,84,198,29],[189,4,199,4],[190,4,200,4],[191,0,201,0],[192,0,202,0],[193,4,203,4,"toRawType"],[193,13,203,13,"toRawType"],[193,14,203,13],[193,16,203,16],[194,6,204,8],[195,6,205,8],[196,6,206,8],[197,6,207,8],[197,13,207,15],[197,17,207,19],[197,29,207,31],[197,33,207,35],[197,34,207,36,"registry"],[197,42,207,44],[197,43,207,45,"createClassUnsafe"],[197,60,207,62],[197,61,207,63],[197,70,207,72],[197,71,207,73],[197,74,208,14],[197,83,208,23],[197,86,209,14],[197,89,209,17],[197,93,209,21],[197,94,209,22,"isUnsigned"],[197,104,209,32],[197,107,209,35],[197,110,209,38],[197,113,209,41],[197,116,209,44],[197,119,209,47],[197,123,209,51],[197,124,209,52,"bitLength"],[197,133,209,61],[197,134,209,62],[197,135,209,63],[197,137,209,65],[198,4,210,4],[199,4,211,4],[200,0,212,0],[201,0,213,0],[202,0,214,0],[203,4,215,4,"toString"],[203,12,215,12,"toString"],[203,13,215,13,"base"],[203,17,215,17],[203,19,215,19],[204,6,216,8],[205,6,217,8],[205,13,217,15],[205,18,217,20],[205,19,217,21,"toString"],[205,27,217,29],[205,28,217,30,"base"],[205,32,217,34],[205,33,217,35],[206,4,218,4],[207,4,219,4],[208,0,220,0],[209,0,221,0],[210,4,222,4,"toU8a"],[210,9,222,9,"toU8a"],[210,10,222,10,"_isBare"],[210,17,222,17],[210,19,222,19],[211,6,223,8],[211,13,223,15],[211,14,223,16],[211,15,223,17],[211,17,223,19,"util_1"],[211,23,223,25],[211,24,223,26,"bnToU8a"],[211,31,223,33],[211,33,223,35],[211,37,223,39],[211,39,223,41],[212,8,224,12,"bitLength"],[212,17,224,21],[212,19,224,23],[212,23,224,27],[212,24,224,28,"bitLength"],[212,33,224,37],[212,34,224,38],[212,35,224,39],[213,8,225,12,"isLe"],[213,12,225,16],[213,14,225,18],[213,18,225,22],[214,8,226,12,"isNegative"],[214,18,226,22],[214,20,226,24],[214,21,226,25],[214,25,226,29],[214,26,226,30,"isUnsigned"],[215,6,227,8],[215,7,227,9],[215,8,227,10],[216,4,228,4],[217,2,229,0],[218,2,230,0,"exports"],[218,9,230,7],[218,10,230,8,"AbstractInt"],[218,21,230,19],[218,24,230,22,"AbstractInt"],[218,35,230,33],[219,0,230,34],[219,3]],"functionMap":{"names":["","isToBn","toPercentage","decodeAbstractInt","AbstractInt","AbstractInt#constructor","AbstractInt#get__hash","AbstractInt#get__isEmpty","AbstractInt#bitLength","AbstractInt#eq","AbstractInt#inspect","AbstractInt#isMax","toU8a.filter$argument_0","AbstractInt#toBigInt","AbstractInt#toBn","AbstractInt#toHex","AbstractInt#toHuman","FORMATTERS.find$argument_0","AbstractInt#toJSON","AbstractInt#toPrimitive","AbstractInt#toRawType","AbstractInt#toString","AbstractInt#toU8a"],"mappings":"AAA;ACa;CDE;AEC;CFE;AGE;CHoC;AIM;ICQ;KDwB;IEI;KFE;IGI;KHE;III;KJE;IKK;KLM;IMI;KNI;IOI;wCCC,iBD;KPE;ISI;KTE;IUI;KVE;IWI;KXO;IYI;4CCS,4BD;KZI;IcI;KdQ;IeI;KfI;IgBI;KhBO;IiBK;KjBG;IkBI;KlBM;CJC"},"hasCjsExports":true},"type":"js/module"}]}