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pB,0BAAyB,2BACzB,4BACE,cAEJ,OAAO,QAAU,CACf,8BACA,kDACA,oDACA,0CACA,oDACA","file":"/npm/@discord/intl-message-database@0.28.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@discord/intl-message-database@0.28.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/* tslint:disable */\n/* eslint-disable */\n\n/* Originally auto-generated by NAPI-RS, adapted for working with an `npm` dir for each built package. */\n\nconst fs = require('node:fs');\nconst path = require('node:path');\n\nfunction isMusl() {\n  // For Node 10\n  if (!process.report || typeof process.report.getReport !== 'function') {\n    try {\n      const lddPath = require('child_process').execSync('which ldd').toString().trim();\n      return fs.readFileSync(lddPath, 'utf8').includes('musl');\n    } catch (e) {\n      return true;\n    }\n  } else {\n    /** @type {any} */\n    let report = process.report.getReport();\n    if (typeof report === 'string') {\n      report = JSON.parse(report);\n    }\n    const { glibcVersionRuntime } = report.header;\n    return !glibcVersionRuntime;\n  }\n}\n\n/** @type {Record<string, Record<string, string>>} */\nconst PACKAGE_NAMES = {\n  android: { arm: 'android-arm-eabi', arm64: 'android-arm64' },\n  win32: { arm64: 'win32-arm64-msvc', ia32: 'win32-ia32-msvc', x64: 'win32-x64-msvc' },\n  darwin: { arm64: 'darwin-arm64', x64: 'darwin-x64' },\n  freebsd: { x64: 'freebsd-x64' },\n  'linux-gnu': {\n    arm: 'linux-arm-gnueabihf',\n    arm64: 'linux-arm64-gnu',\n    x64: 'linux-x64-gnu',\n    riscv64: 'linux-riscv64-gnu',\n    s390x: 'linux-s390x-gnu',\n  },\n  'linux-musl': {\n    arm: 'linux-arm-musleabihf',\n    arm64: 'linux-arm64-musl',\n    x64: 'linux-x64-musl',\n    riscv64: 'linux-riscv64-musl',\n  },\n};\n\nconst platform =\n  process.platform !== 'linux' ? process.platform : 'linux-' + (isMusl() ? 'musl' : 'gnu');\nconst arch = process.arch;\n\n/**\n * @returns {string}\n */\nfunction getPackageName() {\n  if (!(platform in PACKAGE_NAMES)) {\n    throw new Error(`Unsupported OS: ${platform}`);\n  }\n  if (!(arch in PACKAGE_NAMES[platform])) {\n    throw new Error(`Unsupported architecture for ${platform}: ${arch}`);\n  }\n  return PACKAGE_NAMES[platform][arch];\n}\n\nconst packageName = getPackageName();\nconst localPath = path.join(\n  __dirname,\n  `npm/${packageName}/intl-message-database.${packageName}.node`,\n);\nconst packagePath = `@discord/intl-message-database-${packageName}`;\nconst nativeBinding = fs.existsSync(localPath) ? require(localPath) : require(packagePath);\n\nconst {\n  hashMessageKey,\n  isMessageDefinitionsFile,\n  isMessageTranslationsFile,\n  IntlMessagesDatabase,\n  IntlCompiledMessageFormat,\n  IntlDatabaseInsertStrategy,\n} = nativeBinding;\n\nmodule.exports = {\n  hashMessageKey,\n  isMessageDefinitionsFile,\n  isMessageTranslationsFile,\n  IntlMessagesDatabase,\n  IntlCompiledMessageFormat,\n  IntlDatabaseInsertStrategy,\n};\n"]}