{"version":3,"file":"_isTypeUint64Bigint.mjs","names":[],"sources":["../../src/internal/_isTypeUint64Bigint.ts"],"sourcesContent":["/**\n * Test whether a bigint is in the unsigned 64-bit range, exactly.\n *\n * @evidence contracts/common.md#principled-implementation The exact inclusive uint64 range is compared on bigints, with the maximum built from a decimal string so it is not rounded.\n * @evidence contracts/common.md#clear-and-simple-design One expression and two constants.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The string is what keeps the bound exact.\n * @evidence contracts/common.md#meaningful-documentation The comment explains the string.\n */\nexport const _isTypeUint64Bigint = (value: bigint): boolean =>\n  MINIMUM <= value && value <= MAXIMUM;\n\n// See `_isTypeInt64Bigint`: the bound is exact only because the argument is a\n// string, and `bigint` can represent the true inclusive maximum.\nconst MINIMUM = BigInt(0);\nconst MAXIMUM = BigInt(\"18446744073709551615\");\n"],"mappings":";;;;;;;;;AAQA,MAAa,uBAAuB,UAClC,WAAW,SAAS,SAAS;AAI/B,MAAM,UAAU,OAAO,CAAC;AACxB,MAAM,UAAU,OAAO,sBAAsB"}