{"version":3,"file":"_isBigintString.mjs","names":[],"sources":["../../src/internal/_isBigintString.ts"],"sourcesContent":["/**\n * Checks whether ECMAScript BigInt accepts a string without throwing.\n *\n * The accepted spellings follow the runtime conversion, including its\n * whitespace and radix handling; this is not a decimal-only grammar.\n *\n * @evidence contracts/common.md#principled-implementation BigInt conversion determines the actual runtime language. Successful construction returns true and conversion exceptions return false without coercing a different representation.\n * @evidence contracts/common.md#clear-and-simple-design One conversion and its exception boundary own the verdict; no parallel numeric parser or canonicalization policy is introduced.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The runtime conversion is the supported requirement, not a fixture-specific exception. The function changes no conversion implementation or global.\n * @evidence contracts/common.md#meaningful-documentation The doc states that acceptance follows the runtime BigInt conversion, including whitespace and radix prefixes, and is not a decimal-only grammar.\n */\nexport const _isBigintString = (str: string): boolean => {\n  try {\n    BigInt(str);\n    return true;\n  } catch {\n    return false;\n  }\n};\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,mBAAmB,QAAyB;CACvD,IAAI;EACF,OAAO,GAAG;EACV,OAAO;CACT,QAAQ;EACN,OAAO;CACT;AACF"}