{"version":3,"file":"BigInt.mjs","sources":["../../src/BigInt.ts"],"sourcesContent":["/**\n * Defines all the types that can be used to create\n * a BigInt via the <code>{@link createBigInt}</code> function.\n * @category Utils — Amounts\n */\nexport type BigIntInput = number | string | boolean | bigint | Uint8Array;\n\n/**\n * Creates a BigInt from a number, string, boolean, or Uint8Array.\n * @category Utils — Amounts\n */\nexport const createBigInt = (input: BigIntInput): bigint => {\n  input = typeof input === 'object' ? input.toString() : input;\n  return BigInt(input);\n};\n"],"names":["createBigInt","input","toString","BigInt"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACaA,MAAAA,YAAY,GAAIC,KAAkB,IAAa;EAC1DA,KAAK,GAAG,OAAOA,KAAK,KAAK,QAAQ,GAAGA,KAAK,CAACC,QAAQ,EAAE,GAAGD,KAAK,CAAA;EAC5D,OAAOE,MAAM,CAACF,KAAK,CAAC,CAAA;AACtB;;;;"}