/*! * ignore */ /*! * @ignore */ /*! * Applies virtuals properties to `json`. */ /*! * Browser doc exposes the event emitter API */ /*! * Centralize this so we can more easily work around issues with people * stubbing out `process.nextTick()` in tests using sinon: * https://github.com/sinonjs/lolex#automatically-incrementing-mocked-time * See gh-6074 */ /*! * Compile other Buffer methods marking this buffer as modified. */ /*! * Connection states */ /*! * Convenience `valueOf()` to allow comparing ObjectIds using double equals re: gh-7299 */ /*! * Converts to POJO when you use the document for querying */ /*! * Dependencies */ /*! * Document exposes the NodeJS event emitter API, so you can use * `on`, `once`, etc. */ /*! * Export */ /*! * Exports */ /*! * Exports. */ /*! * Give the constructor the ability to emit events. */ /*! * Helpers */ /*! * Inherit from Buffer. */ /*! * Inherit from EventEmitter */ /*! * Inherit from EventEmitter. */ /*! * Inherit from Subdocument */ /*! * Inherit from abstract Collection. */ /*! * Inherit from the NodeJS document */ /*! * Inherits from ArrayType. */ /*! * Inherits from Connection. */ /*! * Inherits from SchemaType. */ /*! * Internal helper for update, updateMany, updateOne */ /*! * Minimize _just_ empty objects along the path chain specified * by `parts`, ignoring all other paths. Useful in cases where * you want to minimize after unsetting a path. * * #### Example: * * const obj = { foo: { bar: { baz: {} } }, a: {} }; * _minimizePath(obj, 'foo.bar.baz'); * obj; // { a: {} } */ /*! * Module dependencies */ /*! * Module dependencies. */ /*! * Module exports */ /*! * Module exports. */ /*! * Module requirements */ /*! * Module requirements. */ /*! * Permissions */ /*! * Populates `docs` */ /*! * Recursively set nested arrays */ /*! * Returns the value passed to it. */ /*! * Runs queued functions */ /*! * Split a string path into components delimited by '.' or * '[\d+]' * * #### Example: * stringToParts('foo[0].bar.1'); // ['foo', '0', 'bar', '1'] */ /*! * Use native promises by default */ /*! * Valid mongoose options */ /*! * [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId * @constructor NodeMongoDbObjectId * @see ObjectId */ /*! * accepts * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ /*! * bytes * Copyright(c) 2012-2014 TJ Holowaychuk * Copyright(c) 2015 Jed Watson * MIT Licensed */ /*! * content-disposition * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed */ /*! * content-type * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ /*! * cookie * Copyright(c) 2012-2014 Roman Shtylman * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ /*! * cookies * Copyright(c) 2014 Jed Schmidt, http://jed.is/ * Copyright(c) 2015-2016 Douglas Christopher Wilson * MIT Licensed */ /*! * copy-to - index.js * Copyright(c) 2014 dead_horse * MIT Licensed */ /*! * define methods */ /*! * depd * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */ /*! * depd * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ /*! * depd * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed */ /*! * depd * Copyright(c) 2014-2018 Douglas Christopher Wilson * MIT Licensed */ /*! * depd * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ /*! * destroy * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015-2022 Douglas Christopher Wilson * MIT Licensed */ /*! * ee-first * Copyright(c) 2014 Jonathan Ong * MIT Licensed */ /*! * encodeurl * Copyright(c) 2016 Douglas Christopher Wilson * MIT Licensed */ /*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */ /*! * exports */ /*! * fresh * Copyright(c) 2012 TJ Holowaychuk * Copyright(c) 2016-2017 Douglas Christopher Wilson * MIT Licensed */ /*! * gt, gte, lt, lte, ne, in, nin, all, regex, size, maxDistance * * Thing.where('type').nin(array) */ /*! * http-errors * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2016 Douglas Christopher Wilson * MIT Licensed */ /*! * ignore */ /*! * inherit mquery */ /*! * keygrip * Copyright(c) 2011-2014 Jed Schmidt * MIT Licensed */ /*! * limit, skip, maxScan, batchSize, comment * * Sets these associated options. * * query.comment('feed query'); */ /*! * media-typer * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */ /*! * methods * Copyright(c) 2013-2014 TJ Holowaychuk * Copyright(c) 2015-2016 Douglas Christopher Wilson * MIT Licensed */ /*! * mime-db * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015-2022 Douglas Christopher Wilson * MIT Licensed */ /*! * mime-types * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ /*! * negotiator * Copyright(c) 2012 Federico Romero * Copyright(c) 2012-2014 Isaac Z. Schlueter * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ /*! * on-finished * Copyright(c) 2013 Jonathan Ong * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */ /*! * parseurl * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed */ /*! * raw-body * Copyright(c) 2013-2014 Jonathan Ong * Copyright(c) 2014-2022 Douglas Christopher Wilson * MIT Licensed */ /*! * statuses * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2016 Douglas Christopher Wilson * MIT Licensed */ /*! * toidentifier * Copyright(c) 2016 Douglas Christopher Wilson * MIT Licensed */ /*! * type-is * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ /*! * unpipe * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ /*! * vary * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ /**! * koa-body-parser - index.js * Copyright(c) 2014 * MIT Licensed * * Authors: * dead_horse (http://deadhorse.me) * fengmk2 (http://fengmk2.com) */