{"version":3,"sources":["jsdelivr-header.js","/npm/@repomix/strip-comments@2.4.2/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACAA,aAEA,MAAM,QAAU,QAAQ,iBAClB,MAAQ,QAAQ,eAuBhB,MAAQ,OAAO,QAAU,CAAC,EAAO,KACrC,MAAM,EAAO,IAAK,EAAS,OAAO,EAAM,MAAM,GAC9C,OAAO,QAAQ,MAAM,EAAO,GAAO,EAAK,EAmB1C,MAAM,MAAQ,CAAC,EAAO,KACpB,MAAM,EAAO,IAAK,EAAS,OAAO,GAClC,OAAO,QAAQ,MAAM,EAAO,GAAO,EAAK,EAkB1C,MAAM,KAAO,CAAC,EAAO,KACnB,MAAM,EAAO,IAAK,EAAS,MAAM,GACjC,OAAO,QAAQ,MAAM,EAAO,GAAO,EAAK,EAmB1C,MAAM,MAAQ,CAAC,EAAO,KACpB,MAAM,EAAO,IAAK,EAAS,OAAO,EAAM,MAAM,EAAM,OAAO,GAC3D,OAAO,QAAQ,MAAM,EAAO,GAAO,EAAK,EAmB1C,MAAM,MAAQ","file":"/npm/@repomix/strip-comments@2.4.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@repomix/strip-comments@2.4.2/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","/*!\n * strip-comments <https://github.com/jonschlinkert/strip-comments>\n * Copyright (c) 2014-present, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nconst compile = require('./lib/compile');\nconst parse = require('./lib/parse');\n\n/**\n * Strip all code comments from the given `input`, including protected\n * comments that start with `!`, unless disabled by setting `options.keepProtected`\n * to true.\n *\n * ```js\n * const str = strip('const foo = \"bar\";// this is a comment\\n /* me too *\\/');\n * console.log(str);\n * // => 'const foo = \"bar\";'\n * ```\n * @name  strip\n * @param  {String} `input` string from which to strip comments\n * @param  {Object} `options` optional options, passed to [extract-comments][extract-comments]\n * @option {Boolean} [options] `line` if `false` strip only block comments, default `true`\n * @option {Boolean} [options] `block` if `false` strip only line comments, default `true`\n * @option {Boolean} [options] `keepProtected` Keep ignored comments (e.g. `/*!` and `//!`)\n * @option {Boolean} [options] `preserveNewlines` Preserve newlines after comments are stripped\n * @return {String} modified input\n * @api public\n */\n\nconst strip = module.exports = (input, options) => {\n  const opts = { ...options, block: true, line: true };\n  return compile(parse(input, opts), opts);\n};\n\n/**\n * Strip only block comments.\n *\n * ```js\n * const strip = require('..');\n * const str = strip.block('const foo = \"bar\";// this is a comment\\n /* me too *\\/');\n * console.log(str);\n * // => 'const foo = \"bar\";// this is a comment'\n * ```\n * @name  .block\n * @param  {String} `input` string from which to strip comments\n * @param  {Object} `options` pass `opts.keepProtected: true` to keep ignored comments (e.g. `/*!`)\n * @return {String} modified string\n * @api public\n */\n\nstrip.block = (input, options) => {\n  const opts = { ...options, block: true };\n  return compile(parse(input, opts), opts);\n};\n\n/**\n * Strip only line comments.\n *\n * ```js\n * const str = strip.line('const foo = \"bar\";// this is a comment\\n /* me too *\\/');\n * console.log(str);\n * // => 'const foo = \"bar\";\\n/* me too *\\/'\n * ```\n * @name  .line\n * @param  {String} `input` string from which to strip comments\n * @param  {Object} `options` pass `opts.keepProtected: true` to keep ignored comments (e.g. `//!`)\n * @return {String} modified string\n * @api public\n */\n\nstrip.line = (input, options) => {\n  const opts = { ...options, line: true };\n  return compile(parse(input, opts), opts);\n};\n\n/**\n * Strip the first comment from the given `input`. Or, if `opts.keepProtected` is true,\n * the first non-protected comment will be stripped.\n *\n * ```js\n * const output = strip.first(input, { keepProtected: true });\n * console.log(output);\n * // => '//! first comment\\nfoo; '\n * ```\n * @name .first\n * @param {String} `input`\n * @param {Object} `options` pass `opts.keepProtected: true` to keep comments with `!`\n * @return {String}\n * @api public\n */\n\nstrip.first = (input, options) => {\n  const opts = { ...options, block: true, line: true, first: true };\n  return compile(parse(input, opts), opts);\n};\n\n/**\n * Parses a string and returns a basic CST (Concrete Syntax Tree).\n *\n * ```js\n * const strip = require('..');\n * const str = strip.block('const foo = \"bar\";// this is a comment\\n /* me too *\\/');\n * console.log(str);\n * // => 'const foo = \"bar\";// this is a comment'\n * ```\n * @name  .block\n * @param  {String} `input` string from which to strip comments\n * @param  {Object} `options` pass `opts.keepProtected: true` to keep ignored comments (e.g. `/*!`)\n * @return {String} modified string\n * @api public\n */\n\nstrip.parse = parse;\n"]}