{"version":3,"sources":["jsdelivr-header.js","/npm/stitch-swiftmessageparser@2.0.1/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAiBA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IAKtD,IAAI,SAAW,QAAQ,gBACnB,OAAS,IAAI,SAAS,QAyB1B,QAAQ,QAAU,CAAE,MAAO,OAAO,MAAM,KAAK","file":"/npm/stitch-swiftmessageparser@2.0.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/stitch-swiftmessageparser@2.0.1/dist/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 *  Copyright 2016 Alexander Tsybulsky and other contributors\n *  Copyright 2020 Centrapay and other contributors\n *\n *  Licensed under the Apache License, Version 2.0 (the \"License\");\n *  you may not use this file except in compliance with the License.\n *  You may obtain a copy of the License at\n *\n *  http://www.apache.org/licenses/LICENSE-2.0\n *\n *  Unless required by applicable law or agreed to in writing, software\n *  distributed under the License is distributed on an \"AS IS\" BASIS,\n *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *  See the License for the specific language governing permissions and\n *  limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * MT940 parser\n * @module swiftmessageparser\n */\nvar parser_1 = require(\"./lib/parser\");\nvar parser = new parser_1.default();\n/**\n * Parse a SWIFT MT940 or MT942 statement message.\n *\n * @function\n * @param {object} opts\n * @param {string} opts.data - SWIFT message\n * @param {string} opts.type - message format: mt940 or mt942\n * @param {boolean} [opts.validate=false] - check for semantic errors\n * @returns {array<Statement>} Array of statements\n *\n * @example\n * import 'parser' from 'swiftmessageparser';\n * const statements = parser.parse({\n *   type: 'mt940',\n *   data: fs.readFileSync(path, 'utf8'),\n * });\n *\n * statements.forEach(stmt => {\n *   console.log(stmt.statementDate, stmt.accountIdentification, stmt.number.statement);\n *   stmt.transactions.forEach(txn => {\n *     console.log(txn.amount, txn.currency);\n *   };\n * };\n */\nexports.default = { parse: parser.parse.bind(parser) };\n"]}