{"version":3,"sources":["jsdelivr-header.js","/npm/mongoose-aggregate-paginate-v2@1.1.4/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,SAAW,QAAQ,YACnB,kBAAoB,QAAQ,qCAKlC,OAAO,QAAU,SAAU,GACzB,EAAO,QAAQ,kBAAoB,kBAEnC,SAAS,UAAU,UAAU,aAAe,SAAU,EAAS,GAC7D,OAAO,KAAK,QAAQ,kBAAkB,KAAM,EAAS,EACvD,CACF,EAEA,OAAO,QAAQ,kBAAoB,kBAEnC,OAAO,QAAQ,0BAA4B,kBAAkB","file":"/npm/mongoose-aggregate-paginate-v2@1.1.4/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/mongoose-aggregate-paginate-v2@1.1.4/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","const mongoose = require(\"mongoose\");\r\nconst aggregatePaginate = require(\"./lib/mongoose-aggregate-paginate\");\r\n\r\n/**\r\n * @param {Schema} schema\r\n */\r\nmodule.exports = function (schema) {\r\n  schema.statics.aggregatePaginate = aggregatePaginate;\r\n\r\n  mongoose.Aggregate.prototype.paginateExec = function (options, cb) {\r\n    return this.model().aggregatePaginate(this, options, cb);\r\n  };\r\n};\r\n\r\nmodule.exports.aggregatePaginate = aggregatePaginate;\r\n\r\nmodule.exports.PREPAGINATION_PLACEHOLDER = aggregatePaginate.PREPAGINATION_PLACEHOLDER;\r\n"]}