/*!
 * @stagetimerio/server
 * Copyright(c) 2020-2024 Lukas Hermann <lukas@stagetimer.io>
 * All rights reserved.
 *
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 */

Bundled license information:

safe-buffer/index.js:
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */

lodash/lodash.js:
  /**
   * @license
   * Lodash <https://lodash.com/>
   * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
   * Released under MIT license <https://lodash.com/license>
   * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
   * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
   */

depd/index.js:
  /*!
   * depd
   * Copyright(c) 2014-2018 Douglas Christopher Wilson
   * MIT Licensed
   */

bytes/index.js:
  /*!
   * bytes
   * Copyright(c) 2012-2014 TJ Holowaychuk
   * Copyright(c) 2015 Jed Watson
   * MIT Licensed
   */

content-type/index.js:
content-type/dist/index.js:
  /*!
   * content-type
   * Copyright(c) 2015 Douglas Christopher Wilson
   * MIT Licensed
   */

statuses/index.js:
  /*!
   * statuses
   * Copyright(c) 2014 Jonathan Ong
   * Copyright(c) 2016 Douglas Christopher Wilson
   * MIT Licensed
   */

toidentifier/index.js:
  /*!
   * toidentifier
   * Copyright(c) 2016 Douglas Christopher Wilson
   * MIT Licensed
   */

http-errors/index.js:
  /*!
   * http-errors
   * Copyright(c) 2014 Jonathan Ong
   * Copyright(c) 2016 Douglas Christopher Wilson
   * MIT Licensed
   */

destroy/index.js:
  /*!
   * destroy
   * Copyright(c) 2014 Jonathan Ong
   * Copyright(c) 2015-2022 Douglas Christopher Wilson
   * MIT Licensed
   */

unpipe/index.js:
  /*!
   * unpipe
   * Copyright(c) 2015 Douglas Christopher Wilson
   * MIT Licensed
   */

raw-body/index.js:
  /*!
   * raw-body
   * Copyright(c) 2013-2014 Jonathan Ong
   * Copyright(c) 2014-2022 Douglas Christopher Wilson
   * MIT Licensed
   */

ee-first/index.js:
  /*!
   * ee-first
   * Copyright(c) 2014 Jonathan Ong
   * MIT Licensed
   */

on-finished/index.js:
  /*!
   * on-finished
   * Copyright(c) 2013 Jonathan Ong
   * Copyright(c) 2014 Douglas Christopher Wilson
   * MIT Licensed
   */

body-parser/lib/read.js:
body-parser/lib/types/raw.js:
body-parser/lib/types/text.js:
body-parser/index.js:
  /*!
   * body-parser
   * Copyright(c) 2014-2015 Douglas Christopher Wilson
   * MIT Licensed
   */

media-typer/index.js:
  /*!
   * media-typer
   * Copyright(c) 2014 Douglas Christopher Wilson
   * MIT Licensed
   */

mime-db/index.js:
  /*!
   * mime-db
   * Copyright(c) 2014 Jonathan Ong
   * Copyright(c) 2015-2022 Douglas Christopher Wilson
   * MIT Licensed
   */

mime-types/index.js:
  /*!
   * mime-types
   * Copyright(c) 2014 Jonathan Ong
   * Copyright(c) 2015 Douglas Christopher Wilson
   * MIT Licensed
   */

type-is/index.js:
  /*!
   * type-is
   * Copyright(c) 2014 Jonathan Ong
   * Copyright(c) 2014-2015 Douglas Christopher Wilson
   * MIT Licensed
   */

body-parser/lib/types/json.js:
body-parser/lib/types/urlencoded.js:
  /*!
   * body-parser
   * Copyright(c) 2014 Jonathan Ong
   * Copyright(c) 2014-2015 Douglas Christopher Wilson
   * MIT Licensed
   */

merge-descriptors/index.js:
  /*!
   * merge-descriptors
   * Copyright(c) 2014 Jonathan Ong
   * Copyright(c) 2015 Douglas Christopher Wilson
   * MIT Licensed
   */

encodeurl/index.js:
  /*!
   * encodeurl
   * Copyright(c) 2016 Douglas Christopher Wilson
   * MIT Licensed
   */

escape-html/index.js:
  /*!
   * escape-html
   * Copyright(c) 2012-2013 TJ Holowaychuk
   * Copyright(c) 2015 Andreas Lubbe
   * Copyright(c) 2015 Tiancheng "Timothy" Gu
   * MIT Licensed
   */

parseurl/index.js:
  /*!
   * parseurl
   * Copyright(c) 2014 Jonathan Ong
   * Copyright(c) 2014-2017 Douglas Christopher Wilson
   * MIT Licensed
   */

finalhandler/index.js:
  /*!
   * finalhandler
   * Copyright(c) 2014-2022 Douglas Christopher Wilson
   * MIT Licensed
   */

express/lib/router/layer.js:
express/lib/router/route.js:
express/lib/router/index.js:
express/lib/middleware/init.js:
express/lib/middleware/query.js:
express/lib/view.js:
express/lib/application.js:
express/lib/request.js:
express/lib/express.js:
express/index.js:
  /*!
   * express
   * Copyright(c) 2009-2013 TJ Holowaychuk
   * Copyright(c) 2013 Roman Shtylman
   * Copyright(c) 2014-2015 Douglas Christopher Wilson
   * MIT Licensed
   */

methods/index.js:
  /*!
   * methods
   * Copyright(c) 2013-2014 TJ Holowaychuk
   * Copyright(c) 2015-2016 Douglas Christopher Wilson
   * MIT Licensed
   */

content-disposition/index.js:
  /*!
   * content-disposition
   * Copyright(c) 2014-2017 Douglas Christopher Wilson
   * MIT Licensed
   */

etag/index.js:
  /*!
   * etag
   * Copyright(c) 2014-2016 Douglas Christopher Wilson
   * MIT Licensed
   */

fresh/index.js:
  /*!
   * fresh
   * Copyright(c) 2012 TJ Holowaychuk
   * Copyright(c) 2016-2017 Douglas Christopher Wilson
   * MIT Licensed
   */

range-parser/index.js:
  /*!
   * range-parser
   * Copyright(c) 2012-2014 TJ Holowaychuk
   * Copyright(c) 2015-2016 Douglas Christopher Wilson
   * MIT Licensed
   */

send/index.js:
  /*!
   * send
   * Copyright(c) 2012 TJ Holowaychuk
   * Copyright(c) 2014-2022 Douglas Christopher Wilson
   * MIT Licensed
   */

forwarded/index.js:
  /*!
   * forwarded
   * Copyright(c) 2014-2017 Douglas Christopher Wilson
   * MIT Licensed
   */

proxy-addr/index.js:
  /*!
   * proxy-addr
   * Copyright(c) 2014-2016 Douglas Christopher Wilson
   * MIT Licensed
   */

express/lib/utils.js:
express/lib/response.js:
  /*!
   * express
   * Copyright(c) 2009-2013 TJ Holowaychuk
   * Copyright(c) 2014-2015 Douglas Christopher Wilson
   * MIT Licensed
   */

negotiator/index.js:
  /*!
   * negotiator
   * Copyright(c) 2012 Federico Romero
   * Copyright(c) 2012-2014 Isaac Z. Schlueter
   * Copyright(c) 2015 Douglas Christopher Wilson
   * MIT Licensed
   */

accepts/index.js:
  /*!
   * accepts
   * Copyright(c) 2014 Jonathan Ong
   * Copyright(c) 2015 Douglas Christopher Wilson
   * MIT Licensed
   */

cookie/index.js:
  /*!
   * cookie
   * Copyright(c) 2012-2014 Roman Shtylman
   * Copyright(c) 2015 Douglas Christopher Wilson
   * MIT Licensed
   */

vary/index.js:
  /*!
   * vary
   * Copyright(c) 2014-2017 Douglas Christopher Wilson
   * MIT Licensed
   */

serve-static/index.js:
  /*!
   * serve-static
   * Copyright(c) 2010 Sencha Inc.
   * Copyright(c) 2011 TJ Holowaychuk
   * Copyright(c) 2014-2016 Douglas Christopher Wilson
   * MIT Licensed
   */

object-assign/index.js:
  /*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */

engine.io/build/contrib/base64id.js:
socket.io/dist/contrib/base64id.js:
  /*!
   * base64id v0.1.0
   */

engine.io/build/parser-v3/utf8.js:
  /*! https://mths.be/utf8js v2.1.2 by @mathias */

bcryptjs/dist/bcrypt.js:
  /**
   * @license bcrypt.js (c) 2013 Daniel Wirtz <dcode@dcode.io>
   * Released under the Apache License, Version 2.0
   * see: https://github.com/dcodeIO/bcrypt.js for details
   */

@stagetimerio/planutils/index.js:
  /*!
   * @stagetimerio/planutils
   * © Lukas Hermann <hey@lukashermann.dev>
   * All rights reserved.
   */

ieee754/index.js:
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

papaparse/papaparse.js:
  /* @license
  Papa Parse
  v5.7.0
  https://github.com/mholt/PapaParse
  License: MIT
  */

web-streams-polyfill/dist/ponyfill.es2018.js:
  /**
   * @license
   * web-streams-polyfill v3.3.3
   * Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.
   * This code is released under the MIT license.
   * SPDX-License-Identifier: MIT
   */

fetch-blob/index.js:
  /*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */

formdata-polyfill/esm.min.js:
  /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */

node-domexception/index.js:
  /*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */

mongoose/lib/helpers/immediate.js:
  /*!
   * 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
   */

mongoose/lib/collection.js:
  /*!
   * Module dependencies.
   */
  /*!
   * ignore
   */
  /*!
   * Module exports.
   */

mongoose/lib/error/mongooseError.js:
mongoose/lib/options.js:
mongoose/lib/helpers/clone.js:
mongoose/lib/helpers/error/combinePathErrors.js:
mongoose/lib/schema/operators/exists.js:
mongoose/lib/schema/operators/type.js:
mongoose/lib/helpers/schematype/handleImmutable.js:
mongoose/lib/helpers/document/applyDefaults.js:
mongoose/lib/helpers/document/cleanModifiedSubpaths.js:
mongoose/lib/helpers/projection/isDefiningProjection.js:
mongoose/lib/helpers/projection/isExclusive.js:
mongoose/lib/helpers/projection/isPathSelectedInclusive.js:
mongoose/lib/types/documentArray/methods/index.js:
mongoose/lib/helpers/schema/idGetter.js:
mongoose/lib/helpers/schema/handleTimestampOption.js:
mongoose/lib/helpers/update/applyTimestampsToChildren.js:
mongoose/lib/helpers/update/applyTimestampsToUpdate.js:
mongoose/lib/constants.js:
mongoose/lib/types/map.js:
mongoose/lib/options/schemaArrayOptions.js:
mongoose/lib/options/schemaNumberOptions.js:
mongoose/lib/options/schemaBufferOptions.js:
mongoose/lib/options/schemaDateOptions.js:
mongoose/lib/plugins/saveSubdocs.js:
mongoose/lib/plugins/sharding.js:
mongoose/lib/helpers/model/discriminator.js:
mongoose/lib/options/schemaDocumentArrayOptions.js:
mongoose/lib/schema/map.js:
mongoose/lib/options/schemaObjectIdOptions.js:
mongoose/lib/options/schemaStringOptions.js:
mongoose/lib/schema/union.js:
mongoose/lib/driver.js:
mongoose/lib/helpers/query/castUpdate.js:
mongoose/lib/helpers/projection/isInclusive.js:
mongoose/lib/helpers/query/hasDollarKeys.js:
mongoose/lib/helpers/query/selectPopulatedFields.js:
mongoose/lib/helpers/model/applyHooks.js:
mongoose/lib/helpers/populate/leanPopulateMap.js:
mongoose/lib/helpers/populate/getVirtual.js:
mongoose/lib/helpers/populate/getSchemaTypes.js:
mongoose/lib/helpers/populate/getModelsMapForPopulate.js:
mongoose/lib/helpers/populate/removeDeselectedForeignField.js:
  /*!
   * ignore
   */

mongoose/lib/types/objectid.js:
  /*!
   * Convenience `valueOf()` to allow comparing ObjectIds using double equals re: gh-7299
   */

mongoose/lib/drivers/node-mongodb-native/collection.js:
  /*!
   * Module dependencies.
   */
  /*!
   * Inherit from abstract Collection.
   */
  /*!
   * Module exports.
   */

mongoose/lib/cursor/changeStream.js:
mongoose/lib/error/serverSelection.js:
mongoose/lib/stateMachine.js:
mongoose/lib/helpers/common.js:
mongoose/lib/utils.js:
mongoose/lib/schema/subdocument.js:
mongoose/lib/cursor/queryCursor.js:
mquery/lib/utils.js:
mongoose/lib/cursor/aggregationCursor.js:
  /*!
   * Module dependencies.
   */
  /*!
   * ignore
   */

kareem/index.js:
  /*!
   * Handle the `numCallbackParams` option for `execPostSync`: fill `newArgs` with `null` until
   * length is `numCallbackParams` if `numCallbackParams` is a number.
   *
   * @param {Array} newArgs The arguments to fill
   * @param {number|null|undefined} numCallbackParams The number of callback parameters
   */

mongoose/lib/error/cast.js:
  /*!
   * Module dependencies.
   */
  /*!
   * ignore
   */
  /*!
   * exports
   */

mongoose/lib/error/notFound.js:
mongoose/lib/error/validator.js:
mongoose/lib/error/version.js:
mongoose/lib/error/parallelSave.js:
mongoose/lib/error/overwriteModel.js:
mongoose/lib/error/missingSchema.js:
mongoose/lib/error/bulkSaveIncompleteError.js:
mongoose/lib/error/divergentArray.js:
mongoose/lib/error/parallelValidate.js:
mongoose/lib/error/invalidSchemaOption.js:
mongoose/lib/error/bulkWriteError.js:
mongoose/lib/error/eachAsyncMultiError.js:
  /*!
   * Module dependencies.
   */
  /*!
   * exports
   */

mongoose/lib/error/validation.js:
mongoose/lib/error/setOptionError.js:
  /*!
   * Module requirements
   */
  /*!
   * Module exports
   */

mongoose/lib/error/strict.js:
mongoose/lib/error/strictPopulate.js:
mongoose/lib/error/objectExpected.js:
mongoose/lib/error/objectParameter.js:
mongoose/lib/cast.js:
mongoose/lib/error/syncIndexes.js:
mongoose/lib/helpers/cursor/eachAsync.js:
mongoose/lib/helpers/updateValidators.js:
mongoose/lib/index.js:
  /*!
   * Module dependencies.
   */

mongoose/lib/error/index.js:
mongoose/lib/types/index.js:
mongoose/lib/schema/index.js:
mongoose/lib/drivers/node-mongodb-native/index.js:
  /*!
   * Module exports.
   */

mpath/lib/index.js:
  /*!
   * Split a string path into components delimited by '.' or
   * '[\d+]'
   *
   * #### Example:
   *     stringToParts('foo[0].bar.1'); // ['foo', '0', 'bar', '1']
   */
  /*!
   * Recursively set nested arrays
   */
  /*!
   * Returns the value passed to it.
   */

mongoose/lib/internal.js:
  /*!
   * Dependencies
   */

mongoose/lib/types/buffer.js:
  /*!
   * Module dependencies.
   */
  /*!
   * Inherit from Buffer.
   */
  /*!
   * Compile other Buffer methods marking this buffer as modified.
   */
  /*!
   * Module exports.
   */

mongoose/lib/schema/mixed.js:
mongoose/lib/schema/documentArrayElement.js:
  /*!
   * Module dependencies.
   */
  /*!
   * Inherits from SchemaType.
   */
  /*!
   * Module exports.
   */

mongoose/lib/helpers/document/compile.js:
  /*!
   * exports
   */

mongoose/lib/queryHelpers.js:
  /*!
   * Module dependencies
   */
  /*!
   * ignore
   */

mongoose/lib/types/subdocument.js:
  /*!
   * ignore
   */
  /*!
   * Sets this sub-documents parent document.
   *
   * @api private
   */

mongoose/lib/types/arraySubdocument.js:
  /*!
   * Module dependencies.
   */
  /*!
   * Inherit from Subdocument
   */
  /*!
   * ignore
   */
  /*!
   * Sets this sub-documents parent document.
   *
   * @api private
   */
  /*!
   * Module exports.
   */

mongoose/lib/types/array/methods/index.js:
  /*!
   * ignore
   */
  /*!
   * 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: {} }
   */
  /*!
   * If `docs` isn't all instances of the right model, depopulate `arr`
   */

mongoose/lib/types/documentArray/index.js:
mongoose/lib/types/array/index.js:
  /*!
   * Module dependencies.
   */
  /*!
   * Module exports.
   */

mongoose/lib/document.js:
  /*!
   * Module dependencies.
   */
  /*!
   * ignore
   */
  /*!
   * Document exposes the NodeJS event emitter API, so you can use
   * `on`, `once`, etc.
   */
  /*!
   * Converts to POJO when you use the document for querying
   */
  /*!
   * Computes and caches the derived properties of `doc.$__.selected` that
   * `isSelected()` and `isDirectSelected()` would otherwise recompute on every
   * call. `$__.selected` is assigned once in the Document constructor and never
   * mutated afterwards, so this can safely be cached for the document's lifetime.
   */
  /*!
   * Event emitting and error persisting logic that needs to happen in both the `paths.length === 0`
   * and `paths.length > 0` cases in `Document.prototype.validate()`.
   *
   * @param {Document} doc
   * @return {Error}
   * @private
   */
  /*!
   * Clear atomics on all dirty (modified + default) paths. This is a lighter
   * alternative to calling `$__dirty()` when we only need to clear atomics
   * and don't need the full {path, value, schema} objects or parent-path
   * deduplication.
   */
  /*!
   * Runs queued functions
   */
  /*!
   * Internal shallow clone alternative to `$toObject()`: much faster, no options processing
   */
  /*!
   * Applies virtuals properties to `json`.
   */
  /*!
   * Check if the given document only has primitive values
   */
  /*!
   * Increment this document's version if necessary.
   */
  /*!
   * Module exports.
   */

mongoose/lib/schemaType.js:
  /*!
   * Module dependencies.
   */
  /*!
   * ignore
   */
  /*!
   * If _duplicateKeyErrorMessage is a string, replace unique index errors "E11000 duplicate key error" with this string.
   *
   * @api private
   */
  /*!
   * Module exports.
   */

mongoose/lib/virtualType.js:
  /*!
   * ignore
   */
  /*!
   * exports
   */

mongoose/lib/schema/operators/bitwise.js:
mongoose/lib/schema/operators/helpers.js:
mongoose/lib/schema/operators/geospatial.js:
  /*!
   * Module requirements.
   */
  /*!
   * ignore
   */

mongoose/lib/schema/number.js:
  /*!
   * Module requirements.
   */
  /*!
   * ignore
   */
  /*!
   * Inherits from SchemaType.
   */
  /*!
   * Module exports.
   */

mongoose/lib/schema/array.js:
  /*!
   * Module dependencies.
   */
  /*!
   * ignore
   */
  /*!
   * Inherits from SchemaType.
   */
  /*!
   * Virtuals defined on this array itself.
   */
  /*!
   * Module exports.
   */

mongoose/lib/schema/bigint.js:
mongoose/lib/schema/boolean.js:
mongoose/lib/schema/buffer.js:
mongoose/lib/schema/decimal128.js:
mongoose/lib/schema/double.js:
mongoose/lib/schema/int32.js:
mongoose/lib/schema/objectId.js:
mongoose/lib/schema/string.js:
mongoose/lib/schema/uuid.js:
  /*!
   * Module dependencies.
   */
  /*!
   * Inherits from SchemaType.
   */
  /*!
   * ignore
   */
  /*!
   * Module exports.
   */

mongoose/lib/schema/date.js:
  /*!
   * Module requirements.
   */
  /*!
   * Inherits from SchemaType.
   */
  /*!
   * ignore
   */
  /*!
   * Module exports.
   */

mongoose/lib/schema/documentArray.js:
  /*!
   * Module dependencies.
   */
  /*!
   * Inherits from SchemaArray.
   */
  /*!
   * ignore
   */
  /*!
   * Handle casting $elemMatch operators
   */
  /*!
   * Module exports.
   */

mongoose/lib/schema.js:
  /*!
   * Module dependencies.
   */
  /*!
   * Inherit from EventEmitter.
   */
  /*!
   * ignore
   */
  /*!
   * Get the document middleware for this schema, filtering out any hooks that are specific to queries.
   */
  /*!
   * Get this schema's default toObject/toJSON options, including Mongoose global
   * options.
   */
  /*!
   * Recursively set options on implicitly created schemas
   */
  /*!
   * Build precomputed path tries for optimisticConcurrency include/exclude so
   * that lookups at save time are a single trie walk that handles nested paths
   * and map wildcards like `settings.$*`.
   */
  /*!
   * Module exports.
   */

mongoose/lib/connectionState.js:
  /*!
   * Connection states
   */

mongoose/lib/connection.js:
  /*!
   * Module dependencies.
   */
  /*!
   * Inherit from EventEmitter
   */
  /*!
   * Reset document state in between transaction retries re: gh-13698
   */
  /*!
   * If transaction was aborted, we need to reset newly inserted documents' `isNew`.
   */
  /*!
   * Get the default buffer timeout for this connection
   */
  /*!
   * ignore
   */
  /*!
   * Called internally by `openUri()` to create a MongoClient instance.
   */
  /*!
   * Module exports.
   */

mongoose/lib/drivers/node-mongodb-native/connection.js:
  /*!
   * Module dependencies.
   */
  /*!
   * Inherits from Connection.
   */
  /*!
   * ignore
   */
  /*!
   * Module exports.
   */

mongoose/lib/validOptions.js:
  /*!
   * Valid mongoose options
   */

mquery/lib/mquery.js:
  /*!
   * gt, gte, lt, lte, ne, in, nin, all, regex, size, maxDistance
   *
   *     Thing.where('type').nin(array)
   */
  /*!
   * @ignore
   */
  /*!
   * limit, skip, batchSize, comment
   *
   * Sets these associated options.
   *
   *     query.comment('feed query');
   */
  /*!
   * Internal helper for updateMany, updateOne
   */
  /*!
   * Permissions
   */
  /*!
   * Exports.
   */

mongoose/lib/query.js:
  /*!
   * Module dependencies.
   */
  /*!
   * inherit mquery
   */
  /*!
   * Overwrite mquery's `_distinct`, because Mongoose uses that name
   * to store the field to apply distinct on.
   */
  /*!
   * ignore
   */
  /*!
   * If `translateAliases` option is set, call `Model.translateAliases()`
   * on the following query properties: filter, projection, update, distinct.
   */
  /*!
   * Convert sort values
   */
  /*!
   * Export
   */

mongoose/lib/aggregate.js:
  /*!
   * Module dependencies
   */
  /*!
   * define methods
   */
  /*!
   * Helpers
   */
  /*!
   * Exports
   */

mongoose/lib/helpers/parallelLimit.js:
  /*!
   * Run `fn` over every entry of `params` with at most `limit` calls in flight at
   * a time, resolving to the results in input order. Currently only used by
   * `Model.insertMany()` to bound how many documents validate concurrently.
   */

mongoose/lib/helpers/populate/splitPopulateQuery.js:
  /*!
   * If a single populate query would have more than this many elements in its `$in` filter,
   * Mongoose splits the populate into a separate query per document to avoid going over
   * MongoDB's 16 MB BSON size limit on queries. Overwritable for testing purposes. See gh-5890.
   */
  /*!
   * Split a populate models-map entry into a separate query per document if either:
   *
   * 1. The `perDocumentLimit` option is set, so each document needs its own query with its
   *    own `limit` (gh-7318), or
   * 2. A single populate query for `mod` would have too many elements in its `$in` filter
   *    (gh-5890). With multiple foreign fields, `createPopulateQueryFilter()` repeats the ids
   *    under `$or` once per foreign field, so the threshold counts one copy of `ids` per
   *    foreign field.
   *
   * Returns a list of `[mod, match, select, assignmentOpts]` params, one per document, for
   * `_execPopulateQuery()`. Returns `null` if the populate query doesn't need to be split.
   * A `null` `match` means the document has no ids to query: `_execPopulateQuery()` skips
   * executing a query, and `_assign()` just sets the document's populated path to the
   * default value.
   *
   * Splitting on document boundaries means each document's populated value is the result of
   * exactly one query, so split entries can typically be assigned from only their own query's
   * results (`_assignFromOwnResults`) rather than scanning every populate query's results.
   * refPath is the exception: a single document's array can contain ids for multiple models,
   * so assigning refPath populate results relies on every query's results being available for
   * every document. refPath entries are therefore only split when `perDocumentLimit` requires
   * it, not to keep the `$in` filter small. A single document whose ids alone overflow the
   * BSON size limit cannot be split.
   */
  /*!
   * ignore
   */

mongoose/lib/model.js:
  /*!
   * Module dependencies.
   */
  /*!
   * ignore
   */
  /*!
   * Restores $__.activePaths state and any atomics for paths that failed
   * to save.
   *
   * @param {Document} doc
   * @param {object[]} unsavedDirty
   * @param {string[]} unsavedDefaultPaths
   */
  /*!
   * Give the constructor the ability to emit events.
   */
  /*!
   * @param {Document} doc The document to set `$isNew` on.
   * @param {boolean} val The value to set `$isNew` to.
   * @param {boolean} [hasOnlyPrimitiveValues] Skip getting subdocs for performance if we know there are none.
   * @api private
   */
  /*!
   * Populates `docs` for a single `populateOptions` instance.
   */
  /*!
   * Applies query middleware from this model's schema to this model's
   * Query constructor.
   */
  /*!
   * Module exports.
   */

mongoose/lib/mongoose.js:
  /*!
   * Module dependencies.
   */
  /*!
   * ignore
   */
  /*!
   * Create a new default connection (`mongoose.connection`) for a Mongoose instance.
   * No-op if there is already a default connection.
   */

pvtsutils/build/index.js:
  /*!
   * MIT License
   * 
   * Copyright (c) 2017-2024 Peculiar Ventures, LLC
   * 
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to deal
   * in the Software without restriction, including without limitation the rights
   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   * copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   * 
   * The above copyright notice and this permission notice shall be included in all
   * copies or substantial portions of the Software.
   * 
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   * SOFTWARE.
   * 
   */

pvutils/build/utils.js:
  /*!
   Copyright (c) Peculiar Ventures, LLC
  */

asn1js/build/index.js:
  /*!
   * Copyright (c) 2014, GMO GlobalSign
   * Copyright (c) 2015-2022, Peculiar Ventures
   * All rights reserved.
   * 
   * Author 2014-2019, Yury Strozhevsky
   * 
   * Redistribution and use in source and binary forms, with or without modification,
   * are permitted provided that the following conditions are met:
   * 
   * * Redistributions of source code must retain the above copyright notice, this
   *   list of conditions and the following disclaimer.
   * 
   * * Redistributions in binary form must reproduce the above copyright notice, this
   *   list of conditions and the following disclaimer in the documentation and/or
   *   other materials provided with the distribution.
   * 
   * * Neither the name of the copyright holder nor the names of its
   *   contributors may be used to endorse or promote products derived from
   *   this software without specific prior written permission.
   * 
   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
   * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
   * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
   * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   */

lodash/lodash.min.js:
  /**
   * @license
   * Lodash lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
   */

@stagetimerio/timeutils/dist/index.mjs:
  /*!
  * @stagetimerio/timeutils
  * © Lukas Hermann <hey@lukashermann.dev>
  * All rights reserved.
  */
