{"version":3,"sources":["jsdelivr-header.js","/npm/nodejs-base64@2.0.0/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAaA,SAAS,aAAa,GAClB,GAAmB,iBAAR,EAAkB,CACzB,GAAmB,iBAAR,EAIP,MAAM,IAAI,MAAM,gDAHhB,EAAM,EAAI,UAKlB,CACA,OAAO,OAAO,KAAK,EAAK,QAAQ,SAAS,SAC7C,CAMA,SAAS,aAAa,GAClB,GAAmB,iBAAR,EACP,MAAM,IAAI,MAAM,iCAEpB,OAAO,OAAO,KAAK,EAAK,UAAU,SAAS,OAC/C,CA5BA,QAAQ,YAAa,EACrB,QAAQ,aAAe,QAAQ,kBAAe,EAiB9C,QAAQ,aAAe,aAWvB,QAAQ,aAAe,aACvB,QAAiB,QAAI,CAAE,aAAc,aAAc,aAAc","file":"/npm/nodejs-base64@2.0.0/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/nodejs-base64@2.0.0/src/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","\"use strict\";\n/**\n * @fileoverview The ultimate shortcut to the base64 encode/decode methods.\n * @author Anton Ivanov <anton@ivanov.hk>\n *\n */\nexports.__esModule = true;\nexports.base64decode = exports.base64encode = void 0;\n/**\n * Encodes the string using base64.\n * @param {string|number} str - The string to encode.\n * @returns {string} The base64-encoded string.\n */\nfunction base64encode(str) {\n    if (typeof str !== 'string') {\n        if (typeof str === 'number') {\n            str = str.toString();\n        }\n        else {\n            throw new Error('Text to encode must be a string or a number.');\n        }\n    }\n    return Buffer.from(str, 'utf8').toString('base64');\n}\nexports.base64encode = base64encode;\n/**\n * Decodes the string from base64 to UTF-8.\n * @param {string} str - The base64-encoded string.\n */\nfunction base64decode(str) {\n    if (typeof str !== 'string') {\n        throw new Error('Input value must be a string.');\n    }\n    return Buffer.from(str, 'base64').toString('utf8');\n}\nexports.base64decode = base64decode;\nexports[\"default\"] = { base64encode: base64encode, base64decode: base64decode };\n"]}