{"version":3,"sources":["jsdelivr-header.js","/npm/parse-email@1.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,MAAM,aAAE,cAAiB,QAAQ,2BAC3B,GAAK,QAAQ,MAEnB,OAAO,QAAU,MAAO,IACtB,GAAG,EAAQ,GAAG,OAAO,UAIrB,MAAM,EAAQ,EAAO,MAAM,yDACvB,IACF,EAAS,EAAO,OAAO,EAAG,EAAM,OAC9B,EAAM,GAAG,QAAQ,SAAU,IAAM,KACjC,EAAO,OAAO,EAAM,MAAQ,EAAM,GAAG,SAIzC,aADqB,aAAa,EAC3B","file":"/npm/parse-email@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/parse-email@1.0.0/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\nconst { SimpleParser } = require('@nodemailer/mailparser2')\nconst ow = require('ow')\n\nmodule.exports = async (source) => {\n  ow(source, ow.string.nonEmpty)\n\n  // outlook produces slightly invalid content-type lines which need to be\n  // fixed before parsing can begin\n  const match = source.match(/content-type:\\s*multipart\\/\\w+;\\r?\\nboundary=.*\\r?\\n/i)\n  if (match) {\n    source = source.substr(0, match.index) +\n      match[0].replace(/\\r?\\n/g, '') + '\\n' +\n      source.substr(match.index + match[0].length)\n  }\n\n  const result = await SimpleParser(source)\n  return result\n}\n"]}