@socketsecurity/cli-with-sentry 1.16.1 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/LICENSE +87 -0
- package/README.md +13 -13
- package/bin/cli.js +9 -9
- package/dist/.config/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/cli.js +2114 -4292
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +71 -87
- package/dist/constants.js.map +1 -1
- package/dist/env-helpers.js +63 -0
- package/dist/env-helpers.js.map +1 -0
- package/dist/instrument-with-sentry.js +7 -7
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/manifest-scripts/dotnet-tool/Microsoft.Build.Locator.dll +0 -0
- package/dist/manifest-scripts/dotnet-tool/socket-facts-dotnet.deps.json +2 -2
- package/dist/manifest-scripts/dotnet-tool/socket-facts-dotnet.dll +0 -0
- package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
- package/dist/runtime-constants.js +345 -0
- package/dist/runtime-constants.js.map +1 -0
- package/dist/shadow-npm-bin2.js +9 -13
- package/dist/shadow-npm-bin2.js.map +1 -1
- package/dist/shadow-npm-inject.js +10 -15
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/shadow-npx-bin.js.map +1 -1
- package/dist/shadow-pnpm-bin2.js +21 -25
- package/dist/shadow-pnpm-bin2.js.map +1 -1
- package/dist/shadow-yarn-bin.js +4 -6
- package/dist/shadow-yarn-bin.js.map +1 -1
- package/dist/socket-completion.bash +0 -0
- package/dist/spawn-sync.js +47 -0
- package/dist/spawn-sync.js.map +1 -0
- package/dist/spinner.js +182 -0
- package/dist/spinner.js.map +1 -0
- package/dist/types/commands/fix/generated-socket-facts.d.mts +5 -2
- package/dist/types/commands/fix/handle-fix.d.mts +1 -1
- package/dist/types/commands/fix/types.d.mts +1 -1
- package/dist/types/commands/manifest/bazel/process.d.mts +2 -2
- package/dist/types/commands/manifest/convert-dotnet-to-facts.d.mts +3 -6
- package/dist/types/commands/manifest/discover-manifest-roots.d.mts +10 -11
- package/dist/types/commands/manifest/generate-recursive-manifests.d.mts +16 -30
- package/dist/types/commands/manifest/generate_auto_manifest.d.mts +6 -11
- package/dist/types/commands/manifest/load-build.d.mts +3 -11
- package/dist/types/commands/manifest/run-manifest-facts.d.mts +88 -29
- package/dist/types/commands/manifest/scripts/build-tool.d.mts +2 -0
- package/dist/types/commands/optimize/add-overrides.d.mts +2 -2
- package/dist/types/commands/optimize/get-dependency-entries.d.mts +1 -1
- package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +16 -7
- package/dist/types/commands/optimize/update-lockfile.d.mts +2 -2
- package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +4 -2
- package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +2 -2
- package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +1 -1
- package/dist/types/commands/scan/generate-report.d.mts +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts +5 -1
- package/dist/types/commands/scan/output-create-new-scan.d.mts +1 -1
- package/dist/types/commands/scan/output-diff-scan.d.mts +4 -2
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts +4 -5
- package/dist/types/commands/scan/run-dynamic-sbom-inference.d.mts +7 -15
- package/dist/types/constants/runtime.d.mts +417 -0
- package/dist/types/constants.d.mts +9 -10
- package/dist/types/paths/coana.d.mts +5 -0
- package/dist/types/paths/uv.d.mts +2 -0
- package/dist/types/sea/adapters/cdxgen-worker.d.mts +1 -0
- package/dist/types/sea/adapters/synp-worker.d.mts +1 -0
- package/dist/types/sea/build/cdxgen-fixture.d.mts +4 -0
- package/dist/types/sea/build/smoke-test.d.mts +2 -0
- package/dist/types/sea/build-sea.d.mts +4 -2
- package/dist/types/sea/download-bytes.d.mts +0 -1
- package/dist/types/sea/paths/archive.d.mts +3 -0
- package/dist/types/sea/paths/coana-cache.d.mts +1 -0
- package/dist/types/sea/paths/native-tools.d.mts +13 -0
- package/dist/types/sea/pnpm-lock.d.mts +22 -0
- package/dist/types/sea/rollup-workers.d.mts +1 -0
- package/dist/types/sea/runtime.d.mts +4 -3
- package/dist/types/sea/vfs-digest.d.mts +2 -0
- package/dist/types/shadow/common.d.mts +1 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts +1 -1
- package/dist/types/shadow/npm/bin.d.mts +1 -1
- package/dist/types/shadow/npm/install.d.mts +3 -3
- package/dist/types/shadow/npm-base.d.mts +1 -1
- package/dist/types/shadow/npx/bin.d.mts +1 -1
- package/dist/types/shadow/pnpm/bin.d.mts +1 -1
- package/dist/types/shadow/yarn/bin.d.mts +1 -1
- package/dist/types/test/mocks/socket-auth.d.mts +40 -39
- package/dist/types/utils/agent.d.mts +6 -1
- package/dist/types/utils/alert/artifact.d.mts +1 -1
- package/dist/types/utils/alerts-map.d.mts +1 -1
- package/dist/types/utils/api.d.mts +1 -1
- package/dist/types/utils/arrays.d.mts +6 -0
- package/dist/types/utils/bin.d.mts +26 -0
- package/dist/types/utils/{coana-release.d.mts → coana/release.d.mts} +5 -3
- package/dist/types/utils/debug.d.mts +23 -49
- package/dist/types/utils/dlx.d.mts +1 -1
- package/dist/types/utils/ecosystem.d.mts +1 -9
- package/dist/types/utils/env.d.mts +24 -0
- package/dist/types/utils/errors.d.mts +2 -2
- package/dist/types/utils/escape-regexp.d.mts +6 -0
- package/dist/types/utils/fs.d.mts +33 -0
- package/dist/types/utils/github.d.mts +1 -1
- package/dist/types/utils/globs.d.mts +1 -0
- package/dist/types/utils/logger.d.mts +51 -0
- package/dist/types/utils/objects.d.mts +11 -0
- package/dist/types/utils/package-environment.d.mts +3 -3
- package/dist/types/utils/packages.d.mts +65 -0
- package/dist/types/utils/path.d.mts +3 -0
- package/dist/types/utils/promises.d.mts +23 -0
- package/dist/types/utils/prompts.d.mts +25 -0
- package/dist/types/utils/purl.d.mts +4 -1
- package/dist/types/utils/socket-package-alert.d.mts +1 -1
- package/dist/types/utils/socket-url.d.mts +1 -1
- package/dist/types/utils/sorts.d.mts +1 -0
- package/dist/types/utils/spawn-sync.d.mts +3 -0
- package/dist/types/utils/spawn.d.mts +67 -0
- package/dist/types/utils/spec.d.mts +1 -1
- package/dist/types/utils/spinner.d.mts +46 -0
- package/dist/types/utils/streams.d.mts +3 -0
- package/dist/types/utils/strings.d.mts +6 -0
- package/dist/types/utils/url.d.mts +2 -0
- package/dist/types/utils/words.d.mts +1 -0
- package/dist/utils.js +4475 -803
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +39737 -41318
- package/external/blessed-contrib/lib/widget/charts/line.js +172 -149
- package/package.json +41 -37
- package/shadow-bin/npm +0 -0
- package/shadow-bin/npx +0 -0
- package/shadow-bin/pnpm +0 -0
- package/shadow-bin/yarn +0 -0
- package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts +0 -19
- package/dist/types/commands/manifest/convert-maven-to-facts.d.mts +0 -19
- package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts +0 -22
- package/dist/types/commands/manifest/enumerate-workspaces.d.mts +0 -22
- package/dist/types/commands/manifest/expand-env-var-refs.d.mts +0 -9
- package/dist/types/sea/archive-paths.d.mts +0 -6
- package/external/@socketsecurity/registry/LICENSE +0 -21
- package/external/@socketsecurity/registry/README.md +0 -9
- package/external/@socketsecurity/registry/extensions.json +0 -28
- package/external/@socketsecurity/registry/external/@inquirer/confirm.js +0 -3165
- package/external/@socketsecurity/registry/external/@inquirer/input.js +0 -3202
- package/external/@socketsecurity/registry/external/@inquirer/password.js +0 -3307
- package/external/@socketsecurity/registry/external/@inquirer/search.js +0 -3519
- package/external/@socketsecurity/registry/external/@inquirer/select.js +0 -3655
- package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +0 -21406
- package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/read-package.js +0 -183
- package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/sort.js +0 -274
- package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +0 -704
- package/external/@socketsecurity/registry/external/@socketregistry/is-unicode-supported.js +0 -54
- package/external/@socketsecurity/registry/external/@socketregistry/packageurl-js.js +0 -4516
- package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js +0 -453
- package/external/@socketsecurity/registry/external/@yarnpkg/extensions.js +0 -1406
- package/external/@socketsecurity/registry/external/browserslist.js +0 -20496
- package/external/@socketsecurity/registry/external/cacache.js +0 -16208
- package/external/@socketsecurity/registry/external/debug.js +0 -1163
- package/external/@socketsecurity/registry/external/fast-glob.js +0 -7994
- package/external/@socketsecurity/registry/external/fast-sort.js +0 -181
- package/external/@socketsecurity/registry/external/libnpmpack.js +0 -106271
- package/external/@socketsecurity/registry/external/make-fetch-happen.js +0 -38997
- package/external/@socketsecurity/registry/external/normalize-package-data.js +0 -5343
- package/external/@socketsecurity/registry/external/npm-package-arg.js +0 -5773
- package/external/@socketsecurity/registry/external/pacote.js +0 -74109
- package/external/@socketsecurity/registry/external/picomatch.js +0 -2307
- package/external/@socketsecurity/registry/external/semver.js +0 -2618
- package/external/@socketsecurity/registry/external/signal-exit.js +0 -336
- package/external/@socketsecurity/registry/external/spdx-correct.js +0 -1457
- package/external/@socketsecurity/registry/external/spdx-expression-parse.js +0 -1043
- package/external/@socketsecurity/registry/external/streaming-iterables.js +0 -326
- package/external/@socketsecurity/registry/external/validate-npm-package-name.js +0 -108
- package/external/@socketsecurity/registry/external/which.js +0 -405
- package/external/@socketsecurity/registry/external/yoctocolors-cjs.js +0 -101
- package/external/@socketsecurity/registry/index.js +0 -31
- package/external/@socketsecurity/registry/lib/agent.js +0 -390
- package/external/@socketsecurity/registry/lib/arrays.js +0 -89
- package/external/@socketsecurity/registry/lib/bin.js +0 -650
- package/external/@socketsecurity/registry/lib/constants/abort-controller.js +0 -15
- package/external/@socketsecurity/registry/lib/constants/abort-signal.js +0 -27
- package/external/@socketsecurity/registry/lib/constants/at-latest.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/biome-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/bun-lock.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/bun-lockb.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/bun.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ci.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/column-limit.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/copy-left-licenses.js +0 -27
- package/external/@socketsecurity/registry/lib/constants/darwin.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/dot-git-dir.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/dot-package-lock-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/dot-socket-dir.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/empty-file.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/empty-value.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/env.js +0 -59
- package/external/@socketsecurity/registry/lib/constants/eslint-config-js.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/esnext.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/exec-path.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cjs.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cmd.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cts.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-dts.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-js.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-lock.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-lockb.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-md.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-mjs.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-mts.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-ps1.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-yaml.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-yml.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/extensions-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/extensions.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/get-ipc.js +0 -10
- package/external/@socketsecurity/registry/lib/constants/gitignore.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/index.js +0 -139
- package/external/@socketsecurity/registry/lib/constants/ipc-handler.js +0 -19
- package/external/@socketsecurity/registry/lib/constants/ipc-object.js +0 -6
- package/external/@socketsecurity/registry/lib/constants/ipc-promise.js +0 -47
- package/external/@socketsecurity/registry/lib/constants/ipc-target.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/k-internals-symbol.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/latest.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-glob.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-original-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-original-glob.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license-original.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/license.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/lifecycle-script-names.js +0 -18
- package/external/@socketsecurity/registry/lib/constants/loop-sentinel.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/maintained-node-versions.js +0 -47
- package/external/@socketsecurity/registry/lib/constants/manifest-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/mit.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-auth-token.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-debug-flags.js +0 -9
- package/external/@socketsecurity/registry/lib/constants/node-env.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-harden-flags.js +0 -29
- package/external/@socketsecurity/registry/lib/constants/node-modules-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-modules.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/node-no-warnings-flags.js +0 -16
- package/external/@socketsecurity/registry/lib/constants/node-version.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/npm-exec-path.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +0 -6
- package/external/@socketsecurity/registry/lib/constants/npm-shrinkwrap-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/npm.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/npx.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/overrides.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-default-node-range.js +0 -6
- package/external/@socketsecurity/registry/lib/constants/package-default-socket-categories.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-default-version.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-extensions.js +0 -47
- package/external/@socketsecurity/registry/lib/constants/package-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/package-lock-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/packument-cache.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/pacote-cache-path.js +0 -9
- package/external/@socketsecurity/registry/lib/constants/pnpm-exec-path.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/pnpm-lock-yaml.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/pnpm.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/pre-commit.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/readme-glob-recursive.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/readme-glob.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/readme-md.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/registry-scope-delimiter.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/registry.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/resolutions.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-github-org.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-ipc-handshake.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-override-scope.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-public-api-token.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-npm-org.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-package-name.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-repo-name.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-registry-scope.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/socket-security-scope.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/spinner.js +0 -4
- package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-api.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-env-var.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-disable-warning-flag.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-permission-flag.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-node-require-module.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/supports-node-run.js +0 -8
- package/external/@socketsecurity/registry/lib/constants/supports-process-send.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/ts-libs-available.js +0 -22
- package/external/@socketsecurity/registry/lib/constants/ts-types-available.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/tsconfig-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/undefined-token.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unknown-error.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unknown-value.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unlicenced.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/unlicensed.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/utf8.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/vitest.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/vlt-lock-json.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/vlt.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/win32.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn-berry.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn-classic.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn-exec-path.js +0 -5
- package/external/@socketsecurity/registry/lib/constants/yarn-lock.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/yarn.js +0 -3
- package/external/@socketsecurity/registry/lib/debug.js +0 -264
- package/external/@socketsecurity/registry/lib/env.js +0 -62
- package/external/@socketsecurity/registry/lib/fs.js +0 -556
- package/external/@socketsecurity/registry/lib/functions.js +0 -20
- package/external/@socketsecurity/registry/lib/globs.js +0 -145
- package/external/@socketsecurity/registry/lib/json.js +0 -69
- package/external/@socketsecurity/registry/lib/logger.js +0 -534
- package/external/@socketsecurity/registry/lib/objects.js +0 -422
- package/external/@socketsecurity/registry/lib/packages.js +0 -1379
- package/external/@socketsecurity/registry/lib/path.js +0 -231
- package/external/@socketsecurity/registry/lib/promises.js +0 -286
- package/external/@socketsecurity/registry/lib/prompts.js +0 -63
- package/external/@socketsecurity/registry/lib/regexps.js +0 -23
- package/external/@socketsecurity/registry/lib/sorts.js +0 -70
- package/external/@socketsecurity/registry/lib/spawn.js +0 -252
- package/external/@socketsecurity/registry/lib/spinner.js +0 -205
- package/external/@socketsecurity/registry/lib/streams.js +0 -84
- package/external/@socketsecurity/registry/lib/strings.js +0 -235
- package/external/@socketsecurity/registry/lib/url.js +0 -68
- package/external/@socketsecurity/registry/lib/words.js +0 -45
- package/external/@socketsecurity/registry/manifest.json +0 -1875
|
@@ -8227,7 +8227,7 @@ function requireUtils() {
|
|
|
8227
8227
|
|
|
8228
8228
|
var lodash = {exports: {}};
|
|
8229
8229
|
|
|
8230
|
-
lodash.exports;var hasRequiredLodash;function requireLodash(){if(hasRequiredLodash)return lodash.exports;hasRequiredLodash=1;(function(module,exports){(function(){/** Used as a safe reference for `undefined` in pre-ES5 environments.
|
|
8230
|
+
lodash.exports;var hasRequiredLodash;function requireLodash(){if(hasRequiredLodash)return lodash.exports;hasRequiredLodash=1;(function(module,exports){(function(){/** Used as a safe reference for `undefined` in pre-ES5 environments. */var undefined$1;/** Used as the semantic version number. */var VERSION='4.18.1';/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** Error message constants. */var CORE_ERROR_TEXT='Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',FUNC_ERROR_TEXT='Expected a function',INVALID_TEMPL_VAR_ERROR_TEXT='Invalid `variable` option passed into `_.template`',INVALID_TEMPL_IMPORTS_ERROR_TEXT='Invalid `imports` option passed into `_.template`';/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/** Used as the maximum memoize cache size. */var MAX_MEMOIZE_SIZE=500;/** Used as the internal argument placeholder. */var PLACEHOLDER='__lodash_placeholder__';/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4;/** Used to compose bitmasks for value comparisons. */var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;/** Used to compose bitmasks for function metadata. */var WRAP_BIND_FLAG=1,WRAP_BIND_KEY_FLAG=2,WRAP_CURRY_BOUND_FLAG=4,WRAP_CURRY_FLAG=8,WRAP_CURRY_RIGHT_FLAG=16,WRAP_PARTIAL_FLAG=32,WRAP_PARTIAL_RIGHT_FLAG=64,WRAP_ARY_FLAG=128,WRAP_REARG_FLAG=256,WRAP_FLIP_FLAG=512;/** Used as default options for `_.truncate`. */var DEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION='...';/** Used to detect hot functions by number of calls within a span of milliseconds. */var HOT_COUNT=800,HOT_SPAN=16;/** Used to indicate the type of lazy iteratees. */var LAZY_FILTER_FLAG=1,LAZY_MAP_FLAG=2,LAZY_WHILE_FLAG=3;/** Used as references for various `Number` constants. */var INFINITY=1/0,MAX_SAFE_INTEGER=9007199254740991,MAX_INTEGER=1.7976931348623157e+308,NAN=0/0;/** Used as references for the maximum length and index of an array. */var MAX_ARRAY_LENGTH=4294967295,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1;/** Used to associate wrap methods with their bit flags. */var wrapFlags=[['ary',WRAP_ARY_FLAG],['bind',WRAP_BIND_FLAG],['bindKey',WRAP_BIND_KEY_FLAG],['curry',WRAP_CURRY_FLAG],['curryRight',WRAP_CURRY_RIGHT_FLAG],['flip',WRAP_FLIP_FLAG],['partial',WRAP_PARTIAL_FLAG],['partialRight',WRAP_PARTIAL_RIGHT_FLAG],['rearg',WRAP_REARG_FLAG]];/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',asyncTag='[object AsyncFunction]',boolTag='[object Boolean]',dateTag='[object Date]',domExcTag='[object DOMException]',errorTag='[object Error]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag='[object Map]',numberTag='[object Number]',nullTag='[object Null]',objectTag='[object Object]',promiseTag='[object Promise]',proxyTag='[object Proxy]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',symbolTag='[object Symbol]',undefinedTag='[object Undefined]',weakMapTag='[object WeakMap]',weakSetTag='[object WeakSet]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/** Used to match empty string literals in compiled template source. */var reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g;/** Used to match HTML entities and HTML characters. */var reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source);/** Used to match template delimiters. */var reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g;/** Used to match property names within property paths. */var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;/**
|
|
8231
8231
|
* Used to match `RegExp`
|
|
8232
8232
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
8233
8233
|
*/var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source);/** Used to match leading whitespace. */var reTrimStart=/^\s+/;/** Used to match a single whitespace character. */var reWhitespace=/\s/;/** Used to match wrap detail comments. */var reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /;/** Used to match words composed of alphanumeric characters. */var reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;/**
|
|
@@ -8437,13 +8437,13 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
8437
8437
|
* @private
|
|
8438
8438
|
* @param {string} key The key of the property to get.
|
|
8439
8439
|
* @returns {Function} Returns the new accessor function.
|
|
8440
|
-
*/function baseProperty(key){return function(object){return object==null?undefined:object[key];};}/**
|
|
8440
|
+
*/function baseProperty(key){return function(object){return object==null?undefined$1:object[key];};}/**
|
|
8441
8441
|
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
8442
8442
|
*
|
|
8443
8443
|
* @private
|
|
8444
8444
|
* @param {Object} object The object to query.
|
|
8445
8445
|
* @returns {Function} Returns the new accessor function.
|
|
8446
|
-
*/function basePropertyOf(object){return function(key){return object==null?undefined:object[key];};}/**
|
|
8446
|
+
*/function basePropertyOf(object){return function(key){return object==null?undefined$1:object[key];};}/**
|
|
8447
8447
|
* The base implementation of `_.reduce` and `_.reduceRight`, without support
|
|
8448
8448
|
* for iteratee shorthands, which iterates over `collection` using `eachFunc`.
|
|
8449
8449
|
*
|
|
@@ -8472,7 +8472,7 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
8472
8472
|
* @param {Array} array The array to iterate over.
|
|
8473
8473
|
* @param {Function} iteratee The function invoked per iteration.
|
|
8474
8474
|
* @returns {number} Returns the sum.
|
|
8475
|
-
*/function baseSum(array,iteratee){var result,index=-1,length=array.length;while(++index<length){var current=iteratee(array[index]);if(current!==undefined){result=result===undefined?current:result+current;}}return result;}/**
|
|
8475
|
+
*/function baseSum(array,iteratee){var result,index=-1,length=array.length;while(++index<length){var current=iteratee(array[index]);if(current!==undefined$1){result=result===undefined$1?current:result+current;}}return result;}/**
|
|
8476
8476
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
8477
8477
|
* or max array length checks.
|
|
8478
8478
|
*
|
|
@@ -8565,7 +8565,7 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
8565
8565
|
* @param {Object} [object] The object to query.
|
|
8566
8566
|
* @param {string} key The key of the property to get.
|
|
8567
8567
|
* @returns {*} Returns the property value.
|
|
8568
|
-
*/function getValue(object,key){return object==null?undefined:object[key];}/**
|
|
8568
|
+
*/function getValue(object,key){return object==null?undefined$1:object[key];}/**
|
|
8569
8569
|
* Checks if `string` contains Unicode symbols.
|
|
8570
8570
|
*
|
|
8571
8571
|
* @private
|
|
@@ -8709,7 +8709,7 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
8709
8709
|
* Used to resolve the
|
|
8710
8710
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
8711
8711
|
* of values.
|
|
8712
|
-
*/var nativeObjectToString=objectProto.toString;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** Used to restore the original `_` reference in `_.noConflict`. */var oldDash=root._;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?context.Buffer:undefined,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined,symIterator=Symbol?Symbol.iterator:undefined,symToStringTag=Symbol?Symbol.toStringTag:undefined;var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();/** Mocked built-ins. */var ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse;/* Built-in method references that are verified to be native. */var DataView=getNative(context,'DataView'),Map=getNative(context,'Map'),Promise=getNative(context,'Promise'),Set=getNative(context,'Set'),WeakMap=getNative(context,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to store function metadata. */var metaMap=WeakMap&&new WeakMap();/** Used to lookup unminified function names. */var realNames={};/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=Symbol?Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;/*------------------------------------------------------------------------*//**
|
|
8712
|
+
*/var nativeObjectToString=objectProto.toString;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** Used to restore the original `_` reference in `_.noConflict`. */var oldDash=root._;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?context.Buffer:undefined$1,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined$1,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined$1,symIterator=Symbol?Symbol.iterator:undefined$1,symToStringTag=Symbol?Symbol.toStringTag:undefined$1;var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();/** Mocked built-ins. */var ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined$1,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse;/* Built-in method references that are verified to be native. */var DataView=getNative(context,'DataView'),Map=getNative(context,'Map'),Promise=getNative(context,'Promise'),Set=getNative(context,'Set'),WeakMap=getNative(context,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to store function metadata. */var metaMap=WeakMap&&new WeakMap();/** Used to lookup unminified function names. */var realNames={};/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=Symbol?Symbol.prototype:undefined$1,symbolValueOf=symbolProto?symbolProto.valueOf:undefined$1,symbolToString=symbolProto?symbolProto.toString:undefined$1;/*------------------------------------------------------------------------*//**
|
|
8713
8713
|
* Creates a `lodash` object which wraps `value` to enable implicit method
|
|
8714
8714
|
* chain sequences. Methods that operate on and return arrays, collections,
|
|
8715
8715
|
* and functions can be chained together. Methods that retrieve a single value
|
|
@@ -8832,7 +8832,7 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
8832
8832
|
* @private
|
|
8833
8833
|
* @param {Object} proto The object to inherit from.
|
|
8834
8834
|
* @returns {Object} Returns the new object.
|
|
8835
|
-
*/var baseCreate=function(){function object(){}return function(proto){if(!isObject(proto)){return {};}if(objectCreate){return objectCreate(proto);}object.prototype=proto;var result=new object();object.prototype=undefined;return result;};}();/**
|
|
8835
|
+
*/var baseCreate=function(){function object(){}return function(proto){if(!isObject(proto)){return {};}if(objectCreate){return objectCreate(proto);}object.prototype=proto;var result=new object();object.prototype=undefined$1;return result;};}();/**
|
|
8836
8836
|
* The function whose prototype chain sequence wrappers inherit from.
|
|
8837
8837
|
*
|
|
8838
8838
|
* @private
|
|
@@ -8843,11 +8843,15 @@ return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}
|
|
|
8843
8843
|
* @private
|
|
8844
8844
|
* @param {*} value The value to wrap.
|
|
8845
8845
|
* @param {boolean} [chainAll] Enable explicit method chain sequences.
|
|
8846
|
-
*/function LodashWrapper(value,chainAll){this.__wrapped__=value;this.__actions__=[];this.__chain__=!!chainAll;this.__index__=0;this.__values__=undefined;}/**
|
|
8846
|
+
*/function LodashWrapper(value,chainAll){this.__wrapped__=value;this.__actions__=[];this.__chain__=!!chainAll;this.__index__=0;this.__values__=undefined$1;}/**
|
|
8847
8847
|
* By default, the template delimiters used by lodash are like those in
|
|
8848
8848
|
* embedded Ruby (ERB) as well as ES2015 template strings. Change the
|
|
8849
8849
|
* following template settings to use alternative delimiters.
|
|
8850
8850
|
*
|
|
8851
|
+
* **Security:** See
|
|
8852
|
+
* [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md)
|
|
8853
|
+
* — `_.template` is insecure and will be removed in v5.
|
|
8854
|
+
*
|
|
8851
8855
|
* @static
|
|
8852
8856
|
* @memberOf _
|
|
8853
8857
|
* @type {Object}
|
|
@@ -8939,7 +8943,7 @@ LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.con
|
|
|
8939
8943
|
* @memberOf Hash
|
|
8940
8944
|
* @param {string} key The key of the value to get.
|
|
8941
8945
|
* @returns {*} Returns the entry value.
|
|
8942
|
-
*/function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined:result;}return hasOwnProperty.call(data,key)?data[key]:undefined;}/**
|
|
8946
|
+
*/function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined$1:result;}return hasOwnProperty.call(data,key)?data[key]:undefined$1;}/**
|
|
8943
8947
|
* Checks if a hash value for `key` exists.
|
|
8944
8948
|
*
|
|
8945
8949
|
* @private
|
|
@@ -8947,7 +8951,7 @@ LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.con
|
|
|
8947
8951
|
* @memberOf Hash
|
|
8948
8952
|
* @param {string} key The key of the entry to check.
|
|
8949
8953
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
8950
|
-
*/function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key);}/**
|
|
8954
|
+
*/function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined$1:hasOwnProperty.call(data,key);}/**
|
|
8951
8955
|
* Sets the hash `key` to `value`.
|
|
8952
8956
|
*
|
|
8953
8957
|
* @private
|
|
@@ -8956,7 +8960,7 @@ LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.con
|
|
|
8956
8960
|
* @param {string} key The key of the value to set.
|
|
8957
8961
|
* @param {*} value The value to set.
|
|
8958
8962
|
* @returns {Object} Returns the hash instance.
|
|
8959
|
-
*/function hashSet(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this;}// Add methods to `Hash`.
|
|
8963
|
+
*/function hashSet(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===undefined$1?HASH_UNDEFINED:value;return this;}// Add methods to `Hash`.
|
|
8960
8964
|
Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;/*------------------------------------------------------------------------*//**
|
|
8961
8965
|
* Creates an list cache object.
|
|
8962
8966
|
*
|
|
@@ -8985,7 +8989,7 @@ Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototyp
|
|
|
8985
8989
|
* @memberOf ListCache
|
|
8986
8990
|
* @param {string} key The key of the value to get.
|
|
8987
8991
|
* @returns {*} Returns the entry value.
|
|
8988
|
-
*/function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1];}/**
|
|
8992
|
+
*/function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined$1:data[index][1];}/**
|
|
8989
8993
|
* Checks if a list cache value for `key` exists.
|
|
8990
8994
|
*
|
|
8991
8995
|
* @private
|
|
@@ -9072,7 +9076,7 @@ MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDele
|
|
|
9072
9076
|
* @name has
|
|
9073
9077
|
* @memberOf SetCache
|
|
9074
9078
|
* @param {*} value The value to search for.
|
|
9075
|
-
* @returns {
|
|
9079
|
+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
|
9076
9080
|
*/function setCacheHas(value){return this.__data__.has(value);}// Add methods to `SetCache`.
|
|
9077
9081
|
SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;/*------------------------------------------------------------------------*//**
|
|
9078
9082
|
* Creates a stack cache object to store key-value pairs.
|
|
@@ -9137,7 +9141,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
9137
9141
|
* @private
|
|
9138
9142
|
* @param {Array} array The array to sample.
|
|
9139
9143
|
* @returns {*} Returns the random element.
|
|
9140
|
-
*/function arraySample(array){var length=array.length;return length?array[baseRandom(0,length-1)]:undefined;}/**
|
|
9144
|
+
*/function arraySample(array){var length=array.length;return length?array[baseRandom(0,length-1)]:undefined$1;}/**
|
|
9141
9145
|
* A specialized version of `_.sampleSize` for arrays.
|
|
9142
9146
|
*
|
|
9143
9147
|
* @private
|
|
@@ -9158,7 +9162,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
9158
9162
|
* @param {Object} object The object to modify.
|
|
9159
9163
|
* @param {string} key The key of the property to assign.
|
|
9160
9164
|
* @param {*} value The value to assign.
|
|
9161
|
-
*/function assignMergeValue(object,key,value){if(value!==undefined&&!eq(object[key],value)||value===undefined&&!(key in object)){baseAssignValue(object,key,value);}}/**
|
|
9165
|
+
*/function assignMergeValue(object,key,value){if(value!==undefined$1&&!eq(object[key],value)||value===undefined$1&&!(key in object)){baseAssignValue(object,key,value);}}/**
|
|
9162
9166
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
9163
9167
|
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
9164
9168
|
* for equality comparisons.
|
|
@@ -9167,7 +9171,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
9167
9171
|
* @param {Object} object The object to modify.
|
|
9168
9172
|
* @param {string} key The key of the property to assign.
|
|
9169
9173
|
* @param {*} value The value to assign.
|
|
9170
|
-
*/function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){baseAssignValue(object,key,value);}}/**
|
|
9174
|
+
*/function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty.call(object,key)&&eq(objValue,value))||value===undefined$1&&!(key in object)){baseAssignValue(object,key,value);}}/**
|
|
9171
9175
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
9172
9176
|
*
|
|
9173
9177
|
* @private
|
|
@@ -9215,7 +9219,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
9215
9219
|
* @param {Object} object The object to iterate over.
|
|
9216
9220
|
* @param {string[]} paths The property paths to pick.
|
|
9217
9221
|
* @returns {Array} Returns the picked elements.
|
|
9218
|
-
*/function baseAt(object,paths){var index=-1,length=paths.length,result=Array(length),skip=object==null;while(++index<length){result[index]=skip?undefined:get(object,paths[index]);}return result;}/**
|
|
9222
|
+
*/function baseAt(object,paths){var index=-1,length=paths.length,result=Array(length),skip=object==null;while(++index<length){result[index]=skip?undefined$1:get(object,paths[index]);}return result;}/**
|
|
9219
9223
|
* The base implementation of `_.clamp` which doesn't coerce arguments.
|
|
9220
9224
|
*
|
|
9221
9225
|
* @private
|
|
@@ -9223,7 +9227,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
9223
9227
|
* @param {number} [lower] The lower bound.
|
|
9224
9228
|
* @param {number} upper The upper bound.
|
|
9225
9229
|
* @returns {number} Returns the clamped number.
|
|
9226
|
-
*/function baseClamp(number,lower,upper){if(number===number){if(upper!==undefined){number=number<=upper?number:upper;}if(lower!==undefined){number=number>=lower?number:lower;}}return number;}/**
|
|
9230
|
+
*/function baseClamp(number,lower,upper){if(number===number){if(upper!==undefined$1){number=number<=upper?number:upper;}if(lower!==undefined$1){number=number>=lower?number:lower;}}return number;}/**
|
|
9227
9231
|
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
9228
9232
|
* traversed objects.
|
|
9229
9233
|
*
|
|
@@ -9238,8 +9242,8 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
9238
9242
|
* @param {Object} [object] The parent object of `value`.
|
|
9239
9243
|
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
9240
9244
|
* @returns {*} Returns the cloned value.
|
|
9241
|
-
*/function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined){return result;}if(!isObject(value)){return value;}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else {var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){result=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value));}}else {if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,isDeep);}}// Check for circular references and return its corresponding clone.
|
|
9242
|
-
stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result);if(isSet(value)){value.forEach(function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=isArr?undefined:keysFunc(value);arrayEach(props||value,function(subValue,key){if(props){key=subValue;subValue=value[key];}// Recursively populate clone (susceptible to call stack limits).
|
|
9245
|
+
*/function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined$1){return result;}if(!isObject(value)){return value;}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else {var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){result=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value));}}else {if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,isDeep);}}// Check for circular references and return its corresponding clone.
|
|
9246
|
+
stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result);if(isSet(value)){value.forEach(function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=isArr?undefined$1:keysFunc(value);arrayEach(props||value,function(subValue,key){if(props){key=subValue;subValue=value[key];}// Recursively populate clone (susceptible to call stack limits).
|
|
9243
9247
|
assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));});return result;}/**
|
|
9244
9248
|
* The base implementation of `_.conforms` which doesn't clone `source`.
|
|
9245
9249
|
*
|
|
@@ -9253,7 +9257,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));}
|
|
|
9253
9257
|
* @param {Object} object The object to inspect.
|
|
9254
9258
|
* @param {Object} source The object of property predicates to conform to.
|
|
9255
9259
|
* @returns {boolean} Returns `true` if `object` conforms, else `false`.
|
|
9256
|
-
*/function baseConformsTo(object,source,props){var length=props.length;if(object==null){return !length;}object=Object(object);while(length--){var key=props[length],predicate=source[key],value=object[key];if(value===undefined&&!(key in object)||!predicate(value)){return false;}}return true;}/**
|
|
9260
|
+
*/function baseConformsTo(object,source,props){var length=props.length;if(object==null){return !length;}object=Object(object);while(length--){var key=props[length],predicate=source[key],value=object[key];if(value===undefined$1&&!(key in object)||!predicate(value)){return false;}}return true;}/**
|
|
9257
9261
|
* The base implementation of `_.delay` and `_.defer` which accepts `args`
|
|
9258
9262
|
* to provide to `func`.
|
|
9259
9263
|
*
|
|
@@ -9262,7 +9266,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));}
|
|
|
9262
9266
|
* @param {number} wait The number of milliseconds to delay invocation.
|
|
9263
9267
|
* @param {Array} args The arguments to provide to `func`.
|
|
9264
9268
|
* @returns {number|Object} Returns the timer id or timeout object.
|
|
9265
|
-
*/function baseDelay(func,wait,args){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}return setTimeout(function(){func.apply(undefined,args);},wait);}/**
|
|
9269
|
+
*/function baseDelay(func,wait,args){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}return setTimeout(function(){func.apply(undefined$1,args);},wait);}/**
|
|
9266
9270
|
* The base implementation of methods like `_.difference` without support
|
|
9267
9271
|
* for excluding multiple arrays or iteratee shorthands.
|
|
9268
9272
|
*
|
|
@@ -9303,7 +9307,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));}
|
|
|
9303
9307
|
* @param {Function} iteratee The iteratee invoked per iteration.
|
|
9304
9308
|
* @param {Function} comparator The comparator used to compare values.
|
|
9305
9309
|
* @returns {*} Returns the extremum value.
|
|
9306
|
-
*/function baseExtremum(array,iteratee,comparator){var index=-1,length=array.length;
|
|
9310
|
+
*/function baseExtremum(array,iteratee,comparator){var index=-1,length=array.length;while(++index<length){var value=array[index],current=iteratee(value);if(current!=null&&(computed===undefined$1?current===current&&!isSymbol(current):comparator(current,computed))){var computed=current,result=value;}}return result;}/**
|
|
9307
9311
|
* The base implementation of `_.fill` without an iteratee call guard.
|
|
9308
9312
|
*
|
|
9309
9313
|
* @private
|
|
@@ -9312,7 +9316,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));}
|
|
|
9312
9316
|
* @param {number} [start=0] The start position.
|
|
9313
9317
|
* @param {number} [end=array.length] The end position.
|
|
9314
9318
|
* @returns {Array} Returns `array`.
|
|
9315
|
-
*/function baseFill(array,value,start,end){var length=array.length;start=toInteger(start);if(start<0){start=-start>length?0:length+start;}end=end===undefined||end>length?length:toInteger(end);if(end<0){end+=length;}end=start>end?0:toLength(end);while(start<end){array[start++]=value;}return array;}/**
|
|
9319
|
+
*/function baseFill(array,value,start,end){var length=array.length;start=toInteger(start);if(start<0){start=-start>length?0:length+start;}end=end===undefined$1||end>length?length:toInteger(end);if(end<0){end+=length;}end=start>end?0:toLength(end);while(start<end){array[start++]=value;}return array;}/**
|
|
9316
9320
|
* The base implementation of `_.filter` without support for iteratee shorthands.
|
|
9317
9321
|
*
|
|
9318
9322
|
* @private
|
|
@@ -9378,7 +9382,7 @@ baseFlatten(value,depth-1,predicate,isStrict,result);}else {arrayPush(result,val
|
|
|
9378
9382
|
* @param {Object} object The object to query.
|
|
9379
9383
|
* @param {Array|string} path The path of the property to get.
|
|
9380
9384
|
* @returns {*} Returns the resolved value.
|
|
9381
|
-
*/function baseGet(object,path){path=castPath(path,object);var index=0,length=path.length;while(object!=null&&index<length){object=object[toKey(path[index++])];}return index&&index==length?object:undefined;}/**
|
|
9385
|
+
*/function baseGet(object,path){path=castPath(path,object);var index=0,length=path.length;while(object!=null&&index<length){object=object[toKey(path[index++])];}return index&&index==length?object:undefined$1;}/**
|
|
9382
9386
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
9383
9387
|
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
9384
9388
|
* symbols of `object`.
|
|
@@ -9394,7 +9398,7 @@ baseFlatten(value,depth-1,predicate,isStrict,result);}else {arrayPush(result,val
|
|
|
9394
9398
|
* @private
|
|
9395
9399
|
* @param {*} value The value to query.
|
|
9396
9400
|
* @returns {string} Returns the `toStringTag`.
|
|
9397
|
-
*/function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}/**
|
|
9401
|
+
*/function baseGetTag(value){if(value==null){return value===undefined$1?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}/**
|
|
9398
9402
|
* The base implementation of `_.gt` which doesn't coerce arguments.
|
|
9399
9403
|
*
|
|
9400
9404
|
* @private
|
|
@@ -9433,7 +9437,7 @@ baseFlatten(value,depth-1,predicate,isStrict,result);}else {arrayPush(result,val
|
|
|
9433
9437
|
* @param {Function} [iteratee] The iteratee invoked per element.
|
|
9434
9438
|
* @param {Function} [comparator] The comparator invoked per element.
|
|
9435
9439
|
* @returns {Array} Returns the new array of shared values.
|
|
9436
|
-
*/function baseIntersection(arrays,iteratee,comparator){var includes=comparator?arrayIncludesWith:arrayIncludes,length=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array(othLength),maxLength=Infinity,result=[];while(othIndex--){var array=arrays[othIndex];if(othIndex&&iteratee){array=arrayMap(array,baseUnary(iteratee));}maxLength=nativeMin(array.length,maxLength);caches[othIndex]=!comparator&&(iteratee||length>=120&&array.length>=120)?new SetCache(othIndex&&array):undefined;}array=arrays[0];var index=-1,seen=caches[0];outer:while(++index<length&&result.length<maxLength){var value=array[index],computed=iteratee?iteratee(value):value;value=comparator||value!==0?value:0;if(!(seen?cacheHas(seen,computed):includes(result,computed,comparator))){othIndex=othLength;while(--othIndex){var cache=caches[othIndex];if(!(cache?cacheHas(cache,computed):includes(arrays[othIndex],computed,comparator))){continue outer;}}if(seen){seen.push(computed);}result.push(value);}}return result;}/**
|
|
9440
|
+
*/function baseIntersection(arrays,iteratee,comparator){var includes=comparator?arrayIncludesWith:arrayIncludes,length=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array(othLength),maxLength=Infinity,result=[];while(othIndex--){var array=arrays[othIndex];if(othIndex&&iteratee){array=arrayMap(array,baseUnary(iteratee));}maxLength=nativeMin(array.length,maxLength);caches[othIndex]=!comparator&&(iteratee||length>=120&&array.length>=120)?new SetCache(othIndex&&array):undefined$1;}array=arrays[0];var index=-1,seen=caches[0];outer:while(++index<length&&result.length<maxLength){var value=array[index],computed=iteratee?iteratee(value):value;value=comparator||value!==0?value:0;if(!(seen?cacheHas(seen,computed):includes(result,computed,comparator))){othIndex=othLength;while(--othIndex){var cache=caches[othIndex];if(!(cache?cacheHas(cache,computed):includes(arrays[othIndex],computed,comparator))){continue outer;}}if(seen){seen.push(computed);}result.push(value);}}return result;}/**
|
|
9437
9441
|
* The base implementation of `_.invert` and `_.invertBy` which inverts
|
|
9438
9442
|
* `object` with values transformed by `iteratee` and set by `setter`.
|
|
9439
9443
|
*
|
|
@@ -9452,7 +9456,7 @@ baseFlatten(value,depth-1,predicate,isStrict,result);}else {arrayPush(result,val
|
|
|
9452
9456
|
* @param {Array|string} path The path of the method to invoke.
|
|
9453
9457
|
* @param {Array} args The arguments to invoke the method with.
|
|
9454
9458
|
* @returns {*} Returns the result of the invoked method.
|
|
9455
|
-
*/function baseInvoke(object,path,args){path=castPath(path,object);object=parent(object,path);var func=object==null?object:object[toKey(last(path))];return func==null?undefined:apply(func,object,args);}/**
|
|
9459
|
+
*/function baseInvoke(object,path,args){path=castPath(path,object);object=parent(object,path);var func=object==null?object:object[toKey(last(path))];return func==null?undefined$1:apply(func,object,args);}/**
|
|
9456
9460
|
* The base implementation of `_.isArguments`.
|
|
9457
9461
|
*
|
|
9458
9462
|
* @private
|
|
@@ -9511,7 +9515,7 @@ baseFlatten(value,depth-1,predicate,isStrict,result);}else {arrayPush(result,val
|
|
|
9511
9515
|
* @param {Array} matchData The property names, values, and compare flags to match.
|
|
9512
9516
|
* @param {Function} [customizer] The function to customize comparisons.
|
|
9513
9517
|
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
|
9514
|
-
*/function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(object==null){return !length;}object=Object(object);while(index--){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index<length){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined&&!(key in object)){return false;}}else {var stack=new Stack();if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack);}if(!(result===undefined?baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,customizer,stack):result)){return false;}}}return true;}/**
|
|
9518
|
+
*/function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(object==null){return !length;}object=Object(object);while(index--){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index<length){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined$1&&!(key in object)){return false;}}else {var stack=new Stack();if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack);}if(!(result===undefined$1?baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,customizer,stack):result)){return false;}}}return true;}/**
|
|
9515
9519
|
* The base implementation of `_.isNative` without bad shim checks.
|
|
9516
9520
|
*
|
|
9517
9521
|
* @private
|
|
@@ -9584,7 +9588,7 @@ if(typeof value=='function'){return value;}if(value==null){return identity;}if(t
|
|
|
9584
9588
|
* @param {string} path The path of the property to get.
|
|
9585
9589
|
* @param {*} srcValue The value to match.
|
|
9586
9590
|
* @returns {Function} Returns the new spec function.
|
|
9587
|
-
*/function baseMatchesProperty(path,srcValue){if(isKey(path)&&isStrictComparable(srcValue)){return matchesStrictComparable(toKey(path),srcValue);}return function(object){var objValue=get(object,path);return objValue===undefined&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG);};}/**
|
|
9591
|
+
*/function baseMatchesProperty(path,srcValue){if(isKey(path)&&isStrictComparable(srcValue)){return matchesStrictComparable(toKey(path),srcValue);}return function(object){var objValue=get(object,path);return objValue===undefined$1&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG);};}/**
|
|
9588
9592
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
9589
9593
|
*
|
|
9590
9594
|
* @private
|
|
@@ -9594,7 +9598,7 @@ if(typeof value=='function'){return value;}if(value==null){return identity;}if(t
|
|
|
9594
9598
|
* @param {Function} [customizer] The function to customize merged values.
|
|
9595
9599
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
9596
9600
|
* counterparts.
|
|
9597
|
-
*/function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor(source,function(srcValue,key){stack||(stack=new Stack());if(isObject(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else {var newValue=customizer?customizer(safeGet(object,key),srcValue,key+'',object,source,stack):undefined;if(newValue===undefined){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}/**
|
|
9601
|
+
*/function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor(source,function(srcValue,key){stack||(stack=new Stack());if(isObject(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else {var newValue=customizer?customizer(safeGet(object,key),srcValue,key+'',object,source,stack):undefined$1;if(newValue===undefined$1){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}/**
|
|
9598
9602
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
9599
9603
|
* deep merges and tracks traversed objects enabling objects with circular
|
|
9600
9604
|
* references to be merged.
|
|
@@ -9608,7 +9612,7 @@ if(typeof value=='function'){return value;}if(value==null){return identity;}if(t
|
|
|
9608
9612
|
* @param {Function} [customizer] The function to customize assigned values.
|
|
9609
9613
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
9610
9614
|
* counterparts.
|
|
9611
|
-
*/function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return;}var newValue=customizer?customizer(objValue,srcValue,key+'',object,source,stack):undefined;var isCommon=newValue===undefined;if(isCommon){var isArr=isArray(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);newValue=srcValue;if(isArr||isBuff||isTyped){if(isArray(objValue)){newValue=objValue;}else if(isArrayLikeObject(objValue)){newValue=copyArray(objValue);}else if(isBuff){isCommon=false;newValue=cloneBuffer(srcValue,true);}else if(isTyped){isCommon=false;newValue=cloneTypedArray(srcValue,true);}else {newValue=[];}}else if(isPlainObject(srcValue)||isArguments(srcValue)){newValue=objValue;if(isArguments(objValue)){newValue=toPlainObject(objValue);}else if(!isObject(objValue)||isFunction(objValue)){newValue=initCloneObject(srcValue);}}else {isCommon=false;}}if(isCommon){// Recursively merge objects and arrays (susceptible to call stack limits).
|
|
9615
|
+
*/function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return;}var newValue=customizer?customizer(objValue,srcValue,key+'',object,source,stack):undefined$1;var isCommon=newValue===undefined$1;if(isCommon){var isArr=isArray(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);newValue=srcValue;if(isArr||isBuff||isTyped){if(isArray(objValue)){newValue=objValue;}else if(isArrayLikeObject(objValue)){newValue=copyArray(objValue);}else if(isBuff){isCommon=false;newValue=cloneBuffer(srcValue,true);}else if(isTyped){isCommon=false;newValue=cloneTypedArray(srcValue,true);}else {newValue=[];}}else if(isPlainObject(srcValue)||isArguments(srcValue)){newValue=objValue;if(isArguments(objValue)){newValue=toPlainObject(objValue);}else if(!isObject(objValue)||isFunction(objValue)){newValue=initCloneObject(srcValue);}}else {isCommon=false;}}if(isCommon){// Recursively merge objects and arrays (susceptible to call stack limits).
|
|
9612
9616
|
stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,stack);stack['delete'](srcValue);}assignMergeValue(object,key,newValue);}/**
|
|
9613
9617
|
* The base implementation of `_.nth` which doesn't coerce arguments.
|
|
9614
9618
|
*
|
|
@@ -9616,7 +9620,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
9616
9620
|
* @param {Array} array The array to query.
|
|
9617
9621
|
* @param {number} n The index of the element to return.
|
|
9618
9622
|
* @returns {*} Returns the nth element of `array`.
|
|
9619
|
-
*/function baseNth(array,n){var length=array.length;if(!length){return;}n+=n<0?length:0;return isIndex(n,length)?array[n]:undefined;}/**
|
|
9623
|
+
*/function baseNth(array,n){var length=array.length;if(!length){return;}n+=n<0?length:0;return isIndex(n,length)?array[n]:undefined$1;}/**
|
|
9620
9624
|
* The base implementation of `_.orderBy` without param guards.
|
|
9621
9625
|
*
|
|
9622
9626
|
* @private
|
|
@@ -9720,7 +9724,7 @@ do{if(n%2){result+=string;}n=nativeFloor(n/2);if(n){string+=string;}}while(n);re
|
|
|
9720
9724
|
* @param {*} value The value to set.
|
|
9721
9725
|
* @param {Function} [customizer] The function to customize path creation.
|
|
9722
9726
|
* @returns {Object} Returns `object`.
|
|
9723
|
-
*/function baseSet(object,path,value,customizer){if(!isObject(object)){return object;}path=castPath(path,object);var index=-1,length=path.length,lastIndex=length-1,nested=object;while(nested!=null&&++index<length){var key=toKey(path[index]),newValue=value;if(key==='__proto__'||key==='constructor'||key==='prototype'){return object;}if(index!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined;if(newValue===undefined){newValue=isObject(objValue)?objValue:isIndex(path[index+1])?[]:{};}}assignValue(nested,key,newValue);nested=nested[key];}return object;}/**
|
|
9727
|
+
*/function baseSet(object,path,value,customizer){if(!isObject(object)){return object;}path=castPath(path,object);var index=-1,length=path.length,lastIndex=length-1,nested=object;while(nested!=null&&++index<length){var key=toKey(path[index]),newValue=value;if(key==='__proto__'||key==='constructor'||key==='prototype'){return object;}if(index!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined$1;if(newValue===undefined$1){newValue=isObject(objValue)?objValue:isIndex(path[index+1])?[]:{};}}assignValue(nested,key,newValue);nested=nested[key];}return object;}/**
|
|
9724
9728
|
* The base implementation of `setData` without support for hot loop shorting.
|
|
9725
9729
|
*
|
|
9726
9730
|
* @private
|
|
@@ -9779,7 +9783,7 @@ do{if(n%2){result+=string;}n=nativeFloor(n/2);if(n){string+=string;}}while(n);re
|
|
|
9779
9783
|
* @param {boolean} [retHighest] Specify returning the highest qualified index.
|
|
9780
9784
|
* @returns {number} Returns the index at which `value` should be inserted
|
|
9781
9785
|
* into `array`.
|
|
9782
|
-
*/function baseSortedIndexBy(array,value,iteratee,retHighest){var low=0,high=array==null?0:array.length;if(high===0){return 0;}value=iteratee(value);var valIsNaN=value!==value,valIsNull=value===null,valIsSymbol=isSymbol(value),valIsUndefined=value===undefined;while(low<high){var mid=nativeFloor((low+high)/2),computed=iteratee(array[mid]),othIsDefined=computed!==undefined,othIsNull=computed===null,othIsReflexive=computed===computed,othIsSymbol=isSymbol(computed);if(valIsNaN){var setLow=retHighest||othIsReflexive;}else if(valIsUndefined){setLow=othIsReflexive&&(retHighest||othIsDefined);}else if(valIsNull){setLow=othIsReflexive&&othIsDefined&&(retHighest||!othIsNull);}else if(valIsSymbol){setLow=othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol);}else if(othIsNull||othIsSymbol){setLow=false;}else {setLow=retHighest?computed<=value:computed<value;}if(setLow){low=mid+1;}else {high=mid;}}return nativeMin(high,MAX_ARRAY_INDEX);}/**
|
|
9786
|
+
*/function baseSortedIndexBy(array,value,iteratee,retHighest){var low=0,high=array==null?0:array.length;if(high===0){return 0;}value=iteratee(value);var valIsNaN=value!==value,valIsNull=value===null,valIsSymbol=isSymbol(value),valIsUndefined=value===undefined$1;while(low<high){var mid=nativeFloor((low+high)/2),computed=iteratee(array[mid]),othIsDefined=computed!==undefined$1,othIsNull=computed===null,othIsReflexive=computed===computed,othIsSymbol=isSymbol(computed);if(valIsNaN){var setLow=retHighest||othIsReflexive;}else if(valIsUndefined){setLow=othIsReflexive&&(retHighest||othIsDefined);}else if(valIsNull){setLow=othIsReflexive&&othIsDefined&&(retHighest||!othIsNull);}else if(valIsSymbol){setLow=othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol);}else if(othIsNull||othIsSymbol){setLow=false;}else {setLow=retHighest?computed<=value:computed<value;}if(setLow){low=mid+1;}else {high=mid;}}return nativeMin(high,MAX_ARRAY_INDEX);}/**
|
|
9783
9787
|
* The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
|
|
9784
9788
|
* support for iteratee shorthands.
|
|
9785
9789
|
*
|
|
@@ -9818,7 +9822,13 @@ return arrayMap(value,baseToString)+'';}if(isSymbol(value)){return symbolToStrin
|
|
|
9818
9822
|
* @param {Object} object The object to modify.
|
|
9819
9823
|
* @param {Array|string} path The property path to unset.
|
|
9820
9824
|
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
|
|
9821
|
-
*/function baseUnset(object,path){path=castPath(path,object)
|
|
9825
|
+
*/function baseUnset(object,path){path=castPath(path,object);// Prevent prototype pollution:
|
|
9826
|
+
// https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
|
|
9827
|
+
// https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
|
|
9828
|
+
var index=-1,length=path.length;if(!length){return true;}while(++index<length){var key=toKey(path[index]);// Always block "__proto__" anywhere in the path if it's not expected
|
|
9829
|
+
if(key==='__proto__'&&!hasOwnProperty.call(object,'__proto__')){return false;}// Block constructor/prototype as non-terminal traversal keys to prevent
|
|
9830
|
+
// escaping the object graph into built-in constructors and prototypes.
|
|
9831
|
+
if((key==='constructor'||key==='prototype')&&index<length-1){return false;}}var obj=parent(object,path);return obj==null||delete obj[toKey(last(path))];}/**
|
|
9822
9832
|
* The base implementation of `_.update`.
|
|
9823
9833
|
*
|
|
9824
9834
|
* @private
|
|
@@ -9863,7 +9873,7 @@ return arrayMap(value,baseToString)+'';}if(isSymbol(value)){return symbolToStrin
|
|
|
9863
9873
|
* @param {Array} values The property values.
|
|
9864
9874
|
* @param {Function} assignFunc The function to assign values.
|
|
9865
9875
|
* @returns {Object} Returns the new object.
|
|
9866
|
-
*/function baseZipObject(props,values,assignFunc){var index=-1,length=props.length,valsLength=values.length,result={};while(++index<length){var value=index<valsLength?values[index]:undefined;assignFunc(result,props[index],value);}return result;}/**
|
|
9876
|
+
*/function baseZipObject(props,values,assignFunc){var index=-1,length=props.length,valsLength=values.length,result={};while(++index<length){var value=index<valsLength?values[index]:undefined$1;assignFunc(result,props[index],value);}return result;}/**
|
|
9867
9877
|
* Casts `value` to an empty array if it's not an array like object.
|
|
9868
9878
|
*
|
|
9869
9879
|
* @private
|
|
@@ -9898,7 +9908,7 @@ return arrayMap(value,baseToString)+'';}if(isSymbol(value)){return symbolToStrin
|
|
|
9898
9908
|
* @param {number} start The start position.
|
|
9899
9909
|
* @param {number} [end=array.length] The end position.
|
|
9900
9910
|
* @returns {Array} Returns the cast slice.
|
|
9901
|
-
*/function castSlice(array,start,end){var length=array.length;end=end===undefined?length:end;return !start&&end>=length?array:baseSlice(array,start,end);}/**
|
|
9911
|
+
*/function castSlice(array,start,end){var length=array.length;end=end===undefined$1?length:end;return !start&&end>=length?array:baseSlice(array,start,end);}/**
|
|
9902
9912
|
* A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
|
|
9903
9913
|
*
|
|
9904
9914
|
* @private
|
|
@@ -9949,7 +9959,7 @@ return arrayMap(value,baseToString)+'';}if(isSymbol(value)){return symbolToStrin
|
|
|
9949
9959
|
* @param {*} value The value to compare.
|
|
9950
9960
|
* @param {*} other The other value to compare.
|
|
9951
9961
|
* @returns {number} Returns the sort order indicator for `value`.
|
|
9952
|
-
*/function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined,valIsNull=value===null,valIsReflexive=value===value,valIsSymbol=isSymbol(value);var othIsDefined=other!==undefined,othIsNull=other===null,othIsReflexive=other===other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive){return 1;}if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive){return -1;}}return 0;}/**
|
|
9962
|
+
*/function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined$1,valIsNull=value===null,valIsReflexive=value===value,valIsSymbol=isSymbol(value);var othIsDefined=other!==undefined$1,othIsNull=other===null,othIsReflexive=other===other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive){return 1;}if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive){return -1;}}return 0;}/**
|
|
9953
9963
|
* Used by `_.orderBy` to compare multiple properties of a value to another
|
|
9954
9964
|
* and stable sort them.
|
|
9955
9965
|
*
|
|
@@ -10005,7 +10015,7 @@ return object.index-other.index;}/**
|
|
|
10005
10015
|
* @param {Object} [object={}] The object to copy properties to.
|
|
10006
10016
|
* @param {Function} [customizer] The function to customize copied values.
|
|
10007
10017
|
* @returns {Object} Returns `object`.
|
|
10008
|
-
*/function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;if(newValue===undefined){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else {assignValue(object,key,newValue);}}return object;}/**
|
|
10018
|
+
*/function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined$1;if(newValue===undefined$1){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else {assignValue(object,key,newValue);}}return object;}/**
|
|
10009
10019
|
* Copies own symbols of `source` to `object`.
|
|
10010
10020
|
*
|
|
10011
10021
|
* @private
|
|
@@ -10032,7 +10042,7 @@ return object.index-other.index;}/**
|
|
|
10032
10042
|
* @private
|
|
10033
10043
|
* @param {Function} assigner The function to assign values.
|
|
10034
10044
|
* @returns {Function} Returns the new assigner function.
|
|
10035
|
-
*/function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;customizer=assigner.length>3&&typeof customizer=='function'?(length--,customizer):undefined;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length<3?undefined:customizer;length=1;}object=Object(object);while(++index<length){var source=sources[index];if(source){assigner(object,source,index,customizer);}}return object;});}/**
|
|
10045
|
+
*/function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined$1,guard=length>2?sources[2]:undefined$1;customizer=assigner.length>3&&typeof customizer=='function'?(length--,customizer):undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length<3?undefined$1:customizer;length=1;}object=Object(object);while(++index<length){var source=sources[index];if(source){assigner(object,source,index,customizer);}}return object;});}/**
|
|
10036
10046
|
* Creates a `baseEach` or `baseEachRight` function.
|
|
10037
10047
|
*
|
|
10038
10048
|
* @private
|
|
@@ -10060,7 +10070,7 @@ return object.index-other.index;}/**
|
|
|
10060
10070
|
* @private
|
|
10061
10071
|
* @param {string} methodName The name of the `String` case method to use.
|
|
10062
10072
|
* @returns {Function} Returns the new case function.
|
|
10063
|
-
*/function createCaseFirst(methodName){return function(string){string=toString(string);var strSymbols=hasUnicode(string)?stringToArray(string):undefined;var chr=strSymbols?strSymbols[0]:string.charAt(0);var trailing=strSymbols?castSlice(strSymbols,1).join(''):string.slice(1);return chr[methodName]()+trailing;};}/**
|
|
10073
|
+
*/function createCaseFirst(methodName){return function(string){string=toString(string);var strSymbols=hasUnicode(string)?stringToArray(string):undefined$1;var chr=strSymbols?strSymbols[0]:string.charAt(0);var trailing=strSymbols?castSlice(strSymbols,1).join(''):string.slice(1);return chr[methodName]()+trailing;};}/**
|
|
10064
10074
|
* Creates a function like `_.camelCase`.
|
|
10065
10075
|
*
|
|
10066
10076
|
* @private
|
|
@@ -10086,19 +10096,19 @@ return isObject(result)?result:thisBinding;};}/**
|
|
|
10086
10096
|
* @param {number} bitmask The bitmask flags. See `createWrap` for more details.
|
|
10087
10097
|
* @param {number} arity The arity of `func`.
|
|
10088
10098
|
* @returns {Function} Returns the new wrapped function.
|
|
10089
|
-
*/function createCurry(func,bitmask,arity){var Ctor=createCtor(func);function wrapper(){var length=arguments.length,args=Array(length),index=length,placeholder=getHolder(wrapper);while(index--){args[index]=arguments[index];}var holders=length<3&&args[0]!==placeholder&&args[length-1]!==placeholder?[]:replaceHolders(args,placeholder);length-=holders.length;if(length<arity){return createRecurry(func,bitmask,createHybrid,wrapper.placeholder,undefined,args,holders,undefined,undefined,arity-length);}var fn=this&&this!==root&&this instanceof wrapper?Ctor:func;return apply(fn,this,args);}return wrapper;}/**
|
|
10099
|
+
*/function createCurry(func,bitmask,arity){var Ctor=createCtor(func);function wrapper(){var length=arguments.length,args=Array(length),index=length,placeholder=getHolder(wrapper);while(index--){args[index]=arguments[index];}var holders=length<3&&args[0]!==placeholder&&args[length-1]!==placeholder?[]:replaceHolders(args,placeholder);length-=holders.length;if(length<arity){return createRecurry(func,bitmask,createHybrid,wrapper.placeholder,undefined$1,args,holders,undefined$1,undefined$1,arity-length);}var fn=this&&this!==root&&this instanceof wrapper?Ctor:func;return apply(fn,this,args);}return wrapper;}/**
|
|
10090
10100
|
* Creates a `_.find` or `_.findLast` function.
|
|
10091
10101
|
*
|
|
10092
10102
|
* @private
|
|
10093
10103
|
* @param {Function} findIndexFunc The function to find the collection index.
|
|
10094
10104
|
* @returns {Function} Returns the new find function.
|
|
10095
|
-
*/function createFind(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object(collection);if(!isArrayLike(collection)){var iteratee=getIteratee(predicate,3);collection=keys(collection);predicate=function(key){return iteratee(iterable[key],key,iterable);};}var index=findIndexFunc(collection,predicate,fromIndex);return index>-1?iterable[iteratee?collection[index]:index]:undefined;};}/**
|
|
10105
|
+
*/function createFind(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object(collection);if(!isArrayLike(collection)){var iteratee=getIteratee(predicate,3);collection=keys(collection);predicate=function(key){return iteratee(iterable[key],key,iterable);};}var index=findIndexFunc(collection,predicate,fromIndex);return index>-1?iterable[iteratee?collection[index]:index]:undefined$1;};}/**
|
|
10096
10106
|
* Creates a `_.flow` or `_.flowRight` function.
|
|
10097
10107
|
*
|
|
10098
10108
|
* @private
|
|
10099
10109
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
10100
10110
|
* @returns {Function} Returns the new flow function.
|
|
10101
|
-
*/function createFlow(fromRight){return flatRest(function(funcs){var length=funcs.length,index=length,prereq=LodashWrapper.prototype.thru;if(fromRight){funcs.reverse();}while(index--){var func=funcs[index];if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}if(prereq&&!wrapper&&getFuncName(func)=='wrapper'){var wrapper=new LodashWrapper([],true);}}index=wrapper?index:length;while(++index<length){func=funcs[index];var funcName=getFuncName(func),data=funcName=='wrapper'?getData(func):undefined;if(data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&data[9]==1){wrapper=wrapper[getFuncName(data[0])].apply(wrapper,data[3]);}else {wrapper=func.length==1&&isLaziable(func)?wrapper[funcName]():wrapper.thru(func);}}return function(){var args=arguments,value=args[0];if(wrapper&&args.length==1&&isArray(value)){return wrapper.plant(value).value();}var index=0,result=length?funcs[index].apply(this,args):value;while(++index<length){result=funcs[index].call(this,result);}return result;};});}/**
|
|
10111
|
+
*/function createFlow(fromRight){return flatRest(function(funcs){var length=funcs.length,index=length,prereq=LodashWrapper.prototype.thru;if(fromRight){funcs.reverse();}while(index--){var func=funcs[index];if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}if(prereq&&!wrapper&&getFuncName(func)=='wrapper'){var wrapper=new LodashWrapper([],true);}}index=wrapper?index:length;while(++index<length){func=funcs[index];var funcName=getFuncName(func),data=funcName=='wrapper'?getData(func):undefined$1;if(data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&data[9]==1){wrapper=wrapper[getFuncName(data[0])].apply(wrapper,data[3]);}else {wrapper=func.length==1&&isLaziable(func)?wrapper[funcName]():wrapper.thru(func);}}return function(){var args=arguments,value=args[0];if(wrapper&&args.length==1&&isArray(value)){return wrapper.plant(value).value();}var index=0,result=length?funcs[index].apply(this,args):value;while(++index<length){result=funcs[index].call(this,result);}return result;};});}/**
|
|
10102
10112
|
* Creates a function that wraps `func` to invoke it with optional `this`
|
|
10103
10113
|
* binding of `thisArg`, partial application, and currying.
|
|
10104
10114
|
*
|
|
@@ -10116,7 +10126,7 @@ return isObject(result)?result:thisBinding;};}/**
|
|
|
10116
10126
|
* @param {number} [ary] The arity cap of `func`.
|
|
10117
10127
|
* @param {number} [arity] The arity of `func`.
|
|
10118
10128
|
* @returns {Function} Returns the new wrapped function.
|
|
10119
|
-
*/function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity){var isAry=bitmask&WRAP_ARY_FLAG,isBind=bitmask&WRAP_BIND_FLAG,isBindKey=bitmask&WRAP_BIND_KEY_FLAG,isCurried=bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG),isFlip=bitmask&WRAP_FLIP_FLAG,Ctor=isBindKey?undefined:createCtor(func);function wrapper(){var length=arguments.length,args=Array(length),index=length;while(index--){args[index]=arguments[index];}if(isCurried){var placeholder=getHolder(wrapper),holdersCount=countHolders(args,placeholder);}if(partials){args=composeArgs(args,partials,holders,isCurried);}if(partialsRight){args=composeArgsRight(args,partialsRight,holdersRight,isCurried);}length-=holdersCount;if(isCurried&&length<arity){var newHolders=replaceHolders(args,placeholder);return createRecurry(func,bitmask,createHybrid,wrapper.placeholder,thisArg,args,newHolders,argPos,ary,arity-length);}var thisBinding=isBind?thisArg:this,fn=isBindKey?thisBinding[func]:func;length=args.length;if(argPos){args=reorder(args,argPos);}else if(isFlip&&length>1){args.reverse();}if(isAry&&ary<length){args.length=ary;}if(this&&this!==root&&this instanceof wrapper){fn=Ctor||createCtor(fn);}return fn.apply(thisBinding,args);}return wrapper;}/**
|
|
10129
|
+
*/function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity){var isAry=bitmask&WRAP_ARY_FLAG,isBind=bitmask&WRAP_BIND_FLAG,isBindKey=bitmask&WRAP_BIND_KEY_FLAG,isCurried=bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG),isFlip=bitmask&WRAP_FLIP_FLAG,Ctor=isBindKey?undefined$1:createCtor(func);function wrapper(){var length=arguments.length,args=Array(length),index=length;while(index--){args[index]=arguments[index];}if(isCurried){var placeholder=getHolder(wrapper),holdersCount=countHolders(args,placeholder);}if(partials){args=composeArgs(args,partials,holders,isCurried);}if(partialsRight){args=composeArgsRight(args,partialsRight,holdersRight,isCurried);}length-=holdersCount;if(isCurried&&length<arity){var newHolders=replaceHolders(args,placeholder);return createRecurry(func,bitmask,createHybrid,wrapper.placeholder,thisArg,args,newHolders,argPos,ary,arity-length);}var thisBinding=isBind?thisArg:this,fn=isBindKey?thisBinding[func]:func;length=args.length;if(argPos){args=reorder(args,argPos);}else if(isFlip&&length>1){args.reverse();}if(isAry&&ary<length){args.length=ary;}if(this&&this!==root&&this instanceof wrapper){fn=Ctor||createCtor(fn);}return fn.apply(thisBinding,args);}return wrapper;}/**
|
|
10120
10130
|
* Creates a function like `_.invertBy`.
|
|
10121
10131
|
*
|
|
10122
10132
|
* @private
|
|
@@ -10130,7 +10140,7 @@ return isObject(result)?result:thisBinding;};}/**
|
|
|
10130
10140
|
* @param {Function} operator The function to perform the operation.
|
|
10131
10141
|
* @param {number} [defaultValue] The value used for `undefined` arguments.
|
|
10132
10142
|
* @returns {Function} Returns the new mathematical operation function.
|
|
10133
|
-
*/function createMathOperation(operator,defaultValue){return function(value,other){var result;if(value===undefined&&other===undefined){return defaultValue;}if(value!==undefined){result=value;}if(other!==undefined){if(result===undefined){return other;}if(typeof value=='string'||typeof other=='string'){value=baseToString(value);other=baseToString(other);}else {value=baseToNumber(value);other=baseToNumber(other);}result=operator(value,other);}return result;};}/**
|
|
10143
|
+
*/function createMathOperation(operator,defaultValue){return function(value,other){var result;if(value===undefined$1&&other===undefined$1){return defaultValue;}if(value!==undefined$1){result=value;}if(other!==undefined$1){if(result===undefined$1){return other;}if(typeof value=='string'||typeof other=='string'){value=baseToString(value);other=baseToString(other);}else {value=baseToNumber(value);other=baseToNumber(other);}result=operator(value,other);}return result;};}/**
|
|
10134
10144
|
* Creates a function like `_.over`.
|
|
10135
10145
|
*
|
|
10136
10146
|
* @private
|
|
@@ -10144,7 +10154,7 @@ return isObject(result)?result:thisBinding;};}/**
|
|
|
10144
10154
|
* @param {number} length The padding length.
|
|
10145
10155
|
* @param {string} [chars=' '] The string used as padding.
|
|
10146
10156
|
* @returns {string} Returns the padding for `string`.
|
|
10147
|
-
*/function createPadding(length,chars){chars=chars===undefined?' ':baseToString(chars);var charsLength=chars.length;if(charsLength<2){return charsLength?baseRepeat(chars,length):chars;}var result=baseRepeat(chars,nativeCeil(length/stringSize(chars)));return hasUnicode(chars)?castSlice(stringToArray(result),0,length).join(''):result.slice(0,length);}/**
|
|
10157
|
+
*/function createPadding(length,chars){chars=chars===undefined$1?' ':baseToString(chars);var charsLength=chars.length;if(charsLength<2){return charsLength?baseRepeat(chars,length):chars;}var result=baseRepeat(chars,nativeCeil(length/stringSize(chars)));return hasUnicode(chars)?castSlice(stringToArray(result),0,length).join(''):result.slice(0,length);}/**
|
|
10148
10158
|
* Creates a function that wraps `func` to invoke it with the `this` binding
|
|
10149
10159
|
* of `thisArg` and `partials` prepended to the arguments it receives.
|
|
10150
10160
|
*
|
|
@@ -10161,8 +10171,8 @@ return isObject(result)?result:thisBinding;};}/**
|
|
|
10161
10171
|
* @private
|
|
10162
10172
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
10163
10173
|
* @returns {Function} Returns the new range function.
|
|
10164
|
-
*/function createRange(fromRight){return function(start,end,step){if(step&&typeof step!='number'&&isIterateeCall(start,end,step)){end=step=undefined;}// Ensure the sign of `-0` is preserved.
|
|
10165
|
-
start=toFinite(start);if(end===undefined){end=start;start=0;}else {end=toFinite(end);}step=step===undefined?start<end?1:-1:toFinite(step);return baseRange(start,end,step,fromRight);};}/**
|
|
10174
|
+
*/function createRange(fromRight){return function(start,end,step){if(step&&typeof step!='number'&&isIterateeCall(start,end,step)){end=step=undefined$1;}// Ensure the sign of `-0` is preserved.
|
|
10175
|
+
start=toFinite(start);if(end===undefined$1){end=start;start=0;}else {end=toFinite(end);}step=step===undefined$1?start<end?1:-1:toFinite(step);return baseRange(start,end,step,fromRight);};}/**
|
|
10166
10176
|
* Creates a function that performs a relational operation on two values.
|
|
10167
10177
|
*
|
|
10168
10178
|
* @private
|
|
@@ -10184,7 +10194,7 @@ start=toFinite(start);if(end===undefined){end=start;start=0;}else {end=toFinite(
|
|
|
10184
10194
|
* @param {number} [ary] The arity cap of `func`.
|
|
10185
10195
|
* @param {number} [arity] The arity of `func`.
|
|
10186
10196
|
* @returns {Function} Returns the new wrapped function.
|
|
10187
|
-
*/function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,holders,argPos,ary,arity){var isCurry=bitmask&WRAP_CURRY_FLAG,newHolders=isCurry?holders:undefined,newHoldersRight=isCurry?undefined:holders,newPartials=isCurry?partials:undefined,newPartialsRight=isCurry?undefined:partials;bitmask|=isCurry?WRAP_PARTIAL_FLAG:WRAP_PARTIAL_RIGHT_FLAG;bitmask&=~(isCurry?WRAP_PARTIAL_RIGHT_FLAG:WRAP_PARTIAL_FLAG);if(!(bitmask&WRAP_CURRY_BOUND_FLAG)){bitmask&=-4;}var newData=[func,bitmask,thisArg,newPartials,newHolders,newPartialsRight,newHoldersRight,argPos,ary,arity];var result=wrapFunc.apply(undefined,newData);if(isLaziable(func)){setData(result,newData);}result.placeholder=placeholder;return setWrapToString(result,func,bitmask);}/**
|
|
10197
|
+
*/function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,holders,argPos,ary,arity){var isCurry=bitmask&WRAP_CURRY_FLAG,newHolders=isCurry?holders:undefined$1,newHoldersRight=isCurry?undefined$1:holders,newPartials=isCurry?partials:undefined$1,newPartialsRight=isCurry?undefined$1:partials;bitmask|=isCurry?WRAP_PARTIAL_FLAG:WRAP_PARTIAL_RIGHT_FLAG;bitmask&=~(isCurry?WRAP_PARTIAL_RIGHT_FLAG:WRAP_PARTIAL_FLAG);if(!(bitmask&WRAP_CURRY_BOUND_FLAG)){bitmask&=-4;}var newData=[func,bitmask,thisArg,newPartials,newHolders,newPartialsRight,newHoldersRight,argPos,ary,arity];var result=wrapFunc.apply(undefined$1,newData);if(isLaziable(func)){setData(result,newData);}result.placeholder=placeholder;return setWrapToString(result,func,bitmask);}/**
|
|
10188
10198
|
* Creates a function like `_.round`.
|
|
10189
10199
|
*
|
|
10190
10200
|
* @private
|
|
@@ -10228,7 +10238,7 @@ var pair=(toString(number)+'e').split('e'),value=func(pair[0]+'e'+(+pair[1]+prec
|
|
|
10228
10238
|
* @param {number} [ary] The arity cap of `func`.
|
|
10229
10239
|
* @param {number} [arity] The arity of `func`.
|
|
10230
10240
|
* @returns {Function} Returns the new wrapped function.
|
|
10231
|
-
*/function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}var length=partials?partials.length:0;if(!length){bitmask&=-97;partials=holders=undefined;}ary=ary===undefined?ary:nativeMax(toInteger(ary),0);arity=arity===undefined?arity:toInteger(arity);length-=holders?holders.length:0;if(bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined;}var data=isBindKey?undefined:getData(func);var newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity];if(data){mergeData(newData,data);}func=newData[0];bitmask=newData[1];thisArg=newData[2];partials=newData[3];holders=newData[4];arity=newData[9]=newData[9]===undefined?isBindKey?0:func.length:nativeMax(newData[9]-length,0);if(!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)){bitmask&=-25;}if(!bitmask||bitmask==WRAP_BIND_FLAG){var result=createBind(func,bitmask,thisArg);}else if(bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG){result=createCurry(func,bitmask,arity);}else if((bitmask==WRAP_PARTIAL_FLAG||bitmask==(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG))&&!holders.length){result=createPartial(func,bitmask,thisArg,partials);}else {result=createHybrid.apply(undefined,newData);}var setter=data?baseSetData:setData;return setWrapToString(setter(result,newData),func,bitmask);}/**
|
|
10241
|
+
*/function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}var length=partials?partials.length:0;if(!length){bitmask&=-97;partials=holders=undefined$1;}ary=ary===undefined$1?ary:nativeMax(toInteger(ary),0);arity=arity===undefined$1?arity:toInteger(arity);length-=holders?holders.length:0;if(bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined$1;}var data=isBindKey?undefined$1:getData(func);var newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity];if(data){mergeData(newData,data);}func=newData[0];bitmask=newData[1];thisArg=newData[2];partials=newData[3];holders=newData[4];arity=newData[9]=newData[9]===undefined$1?isBindKey?0:func.length:nativeMax(newData[9]-length,0);if(!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)){bitmask&=-25;}if(!bitmask||bitmask==WRAP_BIND_FLAG){var result=createBind(func,bitmask,thisArg);}else if(bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG){result=createCurry(func,bitmask,arity);}else if((bitmask==WRAP_PARTIAL_FLAG||bitmask==(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG))&&!holders.length){result=createPartial(func,bitmask,thisArg,partials);}else {result=createHybrid.apply(undefined$1,newData);}var setter=data?baseSetData:setData;return setWrapToString(setter(result,newData),func,bitmask);}/**
|
|
10232
10242
|
* Used by `_.defaults` to customize its `_.assignIn` use to assign properties
|
|
10233
10243
|
* of source objects to the destination object for all destination properties
|
|
10234
10244
|
* that resolve to `undefined`.
|
|
@@ -10239,7 +10249,7 @@ var pair=(toString(number)+'e').split('e'),value=func(pair[0]+'e'+(+pair[1]+prec
|
|
|
10239
10249
|
* @param {string} key The key of the property to assign.
|
|
10240
10250
|
* @param {Object} object The parent object of `objValue`.
|
|
10241
10251
|
* @returns {*} Returns the value to assign.
|
|
10242
|
-
*/function customDefaultsAssignIn(objValue,srcValue,key,object){if(objValue===undefined||eq(objValue,objectProto[key])&&!hasOwnProperty.call(object,key)){return srcValue;}return objValue;}/**
|
|
10252
|
+
*/function customDefaultsAssignIn(objValue,srcValue,key,object){if(objValue===undefined$1||eq(objValue,objectProto[key])&&!hasOwnProperty.call(object,key)){return srcValue;}return objValue;}/**
|
|
10243
10253
|
* Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
|
|
10244
10254
|
* objects into destination objects that are passed thru.
|
|
10245
10255
|
*
|
|
@@ -10253,7 +10263,7 @@ var pair=(toString(number)+'e').split('e'),value=func(pair[0]+'e'+(+pair[1]+prec
|
|
|
10253
10263
|
* counterparts.
|
|
10254
10264
|
* @returns {*} Returns the value to assign.
|
|
10255
10265
|
*/function customDefaultsMerge(objValue,srcValue,key,object,source,stack){if(isObject(objValue)&&isObject(srcValue)){// Recursively merge objects and arrays (susceptible to call stack limits).
|
|
10256
|
-
stack.set(srcValue,objValue);baseMerge(objValue,srcValue,undefined,customDefaultsMerge,stack);stack['delete'](srcValue);}return objValue;}/**
|
|
10266
|
+
stack.set(srcValue,objValue);baseMerge(objValue,srcValue,undefined$1,customDefaultsMerge,stack);stack['delete'](srcValue);}return objValue;}/**
|
|
10257
10267
|
* Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
|
|
10258
10268
|
* objects.
|
|
10259
10269
|
*
|
|
@@ -10261,7 +10271,7 @@ stack.set(srcValue,objValue);baseMerge(objValue,srcValue,undefined,customDefault
|
|
|
10261
10271
|
* @param {*} value The value to inspect.
|
|
10262
10272
|
* @param {string} key The key of the property to inspect.
|
|
10263
10273
|
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
|
|
10264
|
-
*/function customOmitClone(value){return isPlainObject(value)?undefined:value;}/**
|
|
10274
|
+
*/function customOmitClone(value){return isPlainObject(value)?undefined$1:value;}/**
|
|
10265
10275
|
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
10266
10276
|
* partial deep comparisons.
|
|
10267
10277
|
*
|
|
@@ -10274,8 +10284,8 @@ stack.set(srcValue,objValue);baseMerge(objValue,srcValue,undefined,customDefault
|
|
|
10274
10284
|
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
10275
10285
|
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
10276
10286
|
*/function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}// Check that cyclic values are equal.
|
|
10277
|
-
var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache():undefined;stack.set(array,other);stack.set(other,array);// Ignore non-index properties.
|
|
10278
|
-
while(++index<arrLength){var arrValue=array[index],othValue=other[index];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);}if(compared!==undefined){if(compared){continue;}result=false;break;}// Recursively compare arrays (susceptible to call stack limits).
|
|
10287
|
+
var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache():undefined$1;stack.set(array,other);stack.set(other,array);// Ignore non-index properties.
|
|
10288
|
+
while(++index<arrLength){var arrValue=array[index],othValue=other[index];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);}if(compared!==undefined$1){if(compared){continue;}result=false;break;}// Recursively compare arrays (susceptible to call stack limits).
|
|
10279
10289
|
if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){return seen.push(othIndex);}})){result=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break;}}stack['delete'](array);stack['delete'](other);return result;}/**
|
|
10280
10290
|
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
10281
10291
|
* the same `toStringTag`.
|
|
@@ -10313,14 +10323,14 @@ stack.set(object,other);var result=equalArrays(convert(object),convert(other),bi
|
|
|
10313
10323
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
10314
10324
|
*/function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,objProps=getAllKeys(object),objLength=objProps.length,othProps=getAllKeys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index=objLength;while(index--){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key))){return false;}}// Check that cyclic values are equal.
|
|
10315
10325
|
var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object;}var result=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index<objLength){key=objProps[index];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}// Recursively compare objects (susceptible to call stack limits).
|
|
10316
|
-
if(!(compared===undefined?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=false;break;}skipCtor||(skipCtor=key=='constructor');}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;// Non `Object` object instances with different constructors are not equal.
|
|
10326
|
+
if(!(compared===undefined$1?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=false;break;}skipCtor||(skipCtor=key=='constructor');}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;// Non `Object` object instances with different constructors are not equal.
|
|
10317
10327
|
if(objCtor!=othCtor&&'constructor'in object&&'constructor'in other&&!(typeof objCtor=='function'&&objCtor instanceof objCtor&&typeof othCtor=='function'&&othCtor instanceof othCtor)){result=false;}}stack['delete'](object);stack['delete'](other);return result;}/**
|
|
10318
10328
|
* A specialized version of `baseRest` which flattens the rest array.
|
|
10319
10329
|
*
|
|
10320
10330
|
* @private
|
|
10321
10331
|
* @param {Function} func The function to apply a rest parameter to.
|
|
10322
10332
|
* @returns {Function} Returns the new function.
|
|
10323
|
-
*/function flatRest(func){return setToString(overRest(func,undefined,flatten),func+'');}/**
|
|
10333
|
+
*/function flatRest(func){return setToString(overRest(func,undefined$1,flatten),func+'');}/**
|
|
10324
10334
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
10325
10335
|
*
|
|
10326
10336
|
* @private
|
|
@@ -10381,13 +10391,13 @@ if(objCtor!=othCtor&&'constructor'in object&&'constructor'in other&&!(typeof obj
|
|
|
10381
10391
|
* @param {Object} object The object to query.
|
|
10382
10392
|
* @param {string} key The key of the method to get.
|
|
10383
10393
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
10384
|
-
*/function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}/**
|
|
10394
|
+
*/function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined$1;}/**
|
|
10385
10395
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
10386
10396
|
*
|
|
10387
10397
|
* @private
|
|
10388
10398
|
* @param {*} value The value to query.
|
|
10389
10399
|
* @returns {string} Returns the raw `toStringTag`.
|
|
10390
|
-
*/function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];
|
|
10400
|
+
*/function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined$1;var unmasked=true;}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag;}else {delete value[symToStringTag];}}return result;}/**
|
|
10391
10401
|
* Creates an array of the own enumerable symbols of `object`.
|
|
10392
10402
|
*
|
|
10393
10403
|
* @private
|
|
@@ -10406,7 +10416,7 @@ if(objCtor!=othCtor&&'constructor'in object&&'constructor'in other&&!(typeof obj
|
|
|
10406
10416
|
* @param {*} value The value to query.
|
|
10407
10417
|
* @returns {string} Returns the `toStringTag`.
|
|
10408
10418
|
*/var getTag=baseGetTag;// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
10409
|
-
if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map())!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set())!=setTag||WeakMap&&getTag(new WeakMap())!=weakMapTag){getTag=function(value){var result=baseGetTag(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):'';if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag;}}return result;};}/**
|
|
10419
|
+
if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map())!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set())!=setTag||WeakMap&&getTag(new WeakMap())!=weakMapTag){getTag=function(value){var result=baseGetTag(value),Ctor=result==objectTag?value.constructor:undefined$1,ctorString=Ctor?toSource(Ctor):'';if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag;}}return result;};}/**
|
|
10410
10420
|
* Gets the view, applying any `transforms` to the `start` and `end` positions.
|
|
10411
10421
|
*
|
|
10412
10422
|
* @private
|
|
@@ -10535,7 +10545,7 @@ if(length&&typeof array[0]=='string'&&hasOwnProperty.call(array,'index')){result
|
|
|
10535
10545
|
* @param {string} key The key of the property to get.
|
|
10536
10546
|
* @param {*} srcValue The value to match.
|
|
10537
10547
|
* @returns {Function} Returns the new spec function.
|
|
10538
|
-
*/function matchesStrictComparable(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==undefined||key in Object(object));};}/**
|
|
10548
|
+
*/function matchesStrictComparable(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==undefined$1||key in Object(object));};}/**
|
|
10539
10549
|
* A specialized version of `_.memoize` which clears the memoized function's
|
|
10540
10550
|
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
10541
10551
|
*
|
|
@@ -10588,7 +10598,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
10588
10598
|
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
10589
10599
|
* @param {Function} transform The rest array transform.
|
|
10590
10600
|
* @returns {Function} Returns the new function.
|
|
10591
|
-
*/function overRest(func,start,transform){start=nativeMax(start===undefined?func.length-1:start,0);return function(){var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);while(++index<length){array[index]=args[start+index];}index=-1;var otherArgs=Array(start+1);while(++index<start){otherArgs[index]=args[index];}otherArgs[start]=transform(array);return apply(func,this,otherArgs);};}/**
|
|
10601
|
+
*/function overRest(func,start,transform){start=nativeMax(start===undefined$1?func.length-1:start,0);return function(){var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);while(++index<length){array[index]=args[start+index];}index=-1;var otherArgs=Array(start+1);while(++index<start){otherArgs[index]=args[index];}otherArgs[start]=transform(array);return apply(func,this,otherArgs);};}/**
|
|
10592
10602
|
* Gets the parent value at `path` of `object`.
|
|
10593
10603
|
*
|
|
10594
10604
|
* @private
|
|
@@ -10604,7 +10614,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
10604
10614
|
* @param {Array} array The array to reorder.
|
|
10605
10615
|
* @param {Array} indexes The arranged array indexes.
|
|
10606
10616
|
* @returns {Array} Returns `array`.
|
|
10607
|
-
*/function reorder(array,indexes){var arrLength=array.length,length=nativeMin(indexes.length,arrLength),oldArray=copyArray(array);while(length--){var index=indexes[length];array[length]=isIndex(index,arrLength)?oldArray[index]:undefined;}return array;}/**
|
|
10617
|
+
*/function reorder(array,indexes){var arrLength=array.length,length=nativeMin(indexes.length,arrLength),oldArray=copyArray(array);while(length--){var index=indexes[length];array[length]=isIndex(index,arrLength)?oldArray[index]:undefined$1;}return array;}/**
|
|
10608
10618
|
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
10609
10619
|
*
|
|
10610
10620
|
* @private
|
|
@@ -10655,14 +10665,14 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
10655
10665
|
* @private
|
|
10656
10666
|
* @param {Function} func The function to restrict.
|
|
10657
10667
|
* @returns {Function} Returns the new shortable function.
|
|
10658
|
-
*/function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0];}}else {count=0;}return func.apply(undefined,arguments);};}/**
|
|
10668
|
+
*/function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0];}}else {count=0;}return func.apply(undefined$1,arguments);};}/**
|
|
10659
10669
|
* A specialized version of `_.shuffle` which mutates and sets the size of `array`.
|
|
10660
10670
|
*
|
|
10661
10671
|
* @private
|
|
10662
10672
|
* @param {Array} array The array to shuffle.
|
|
10663
10673
|
* @param {number} [size=array.length] The size of `array`.
|
|
10664
10674
|
* @returns {Array} Returns `array`.
|
|
10665
|
-
*/function shuffleSelf(array,size){var index=-1,length=array.length,lastIndex=length-1;size=size===undefined?length:size;while(++index<size){var rand=baseRandom(index,lastIndex),value=array[rand];array[rand]=array[index];array[index]=value;}array.length=size;return array;}/**
|
|
10675
|
+
*/function shuffleSelf(array,size){var index=-1,length=array.length,lastIndex=length-1;size=size===undefined$1?length:size;while(++index<size){var rand=baseRandom(index,lastIndex),value=array[rand];array[rand]=array[index];array[index]=value;}array.length=size;return array;}/**
|
|
10666
10676
|
* Converts `string` to a property path array.
|
|
10667
10677
|
*
|
|
10668
10678
|
* @private
|
|
@@ -10713,9 +10723,9 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
10713
10723
|
*
|
|
10714
10724
|
* _.chunk(['a', 'b', 'c', 'd'], 3);
|
|
10715
10725
|
* // => [['a', 'b', 'c'], ['d']]
|
|
10716
|
-
*/function chunk(array,size,guard){if(guard?isIterateeCall(array,size,guard):size===undefined){size=1;}else {size=nativeMax(toInteger(size),0);}var length=array==null?0:array.length;if(!length||size<1){return [];}var index=0,resIndex=0,result=Array(nativeCeil(length/size));while(index<length){result[resIndex++]=baseSlice(array,index,index+=size);}return result;}/**
|
|
10726
|
+
*/function chunk(array,size,guard){if(guard?isIterateeCall(array,size,guard):size===undefined$1){size=1;}else {size=nativeMax(toInteger(size),0);}var length=array==null?0:array.length;if(!length||size<1){return [];}var index=0,resIndex=0,result=Array(nativeCeil(length/size));while(index<length){result[resIndex++]=baseSlice(array,index,index+=size);}return result;}/**
|
|
10717
10727
|
* Creates an array with all falsey values removed. The values `false`, `null`,
|
|
10718
|
-
* `0`, `""`, `undefined`, and `NaN` are
|
|
10728
|
+
* `0`, `-0`, `0n`, `""`, `undefined`, and `NaN` are falsy.
|
|
10719
10729
|
*
|
|
10720
10730
|
* @static
|
|
10721
10731
|
* @memberOf _
|
|
@@ -10793,7 +10803,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
10793
10803
|
* // The `_.property` iteratee shorthand.
|
|
10794
10804
|
* _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
|
|
10795
10805
|
* // => [{ 'x': 2 }]
|
|
10796
|
-
*/var differenceBy=baseRest(function(array,values){var iteratee=last(values);if(isArrayLikeObject(iteratee)){iteratee=undefined;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true),getIteratee(iteratee,2)):[];});/**
|
|
10806
|
+
*/var differenceBy=baseRest(function(array,values){var iteratee=last(values);if(isArrayLikeObject(iteratee)){iteratee=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true),getIteratee(iteratee,2)):[];});/**
|
|
10797
10807
|
* This method is like `_.difference` except that it accepts `comparator`
|
|
10798
10808
|
* which is invoked to compare elements of `array` to `values`. The order and
|
|
10799
10809
|
* references of result values are determined by the first array. The comparator
|
|
@@ -10815,7 +10825,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
10815
10825
|
*
|
|
10816
10826
|
* _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
|
|
10817
10827
|
* // => [{ 'x': 2, 'y': 1 }]
|
|
10818
|
-
*/var differenceWith=baseRest(function(array,values){var comparator=last(values);if(isArrayLikeObject(comparator)){comparator=undefined;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true),undefined,comparator):[];});/**
|
|
10828
|
+
*/var differenceWith=baseRest(function(array,values){var comparator=last(values);if(isArrayLikeObject(comparator)){comparator=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true),undefined$1,comparator):[];});/**
|
|
10819
10829
|
* Creates a slice of `array` with `n` elements dropped from the beginning.
|
|
10820
10830
|
*
|
|
10821
10831
|
* @static
|
|
@@ -10839,7 +10849,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
10839
10849
|
*
|
|
10840
10850
|
* _.drop([1, 2, 3], 0);
|
|
10841
10851
|
* // => [1, 2, 3]
|
|
10842
|
-
*/function drop(array,n,guard){var length=array==null?0:array.length;if(!length){return [];}n=guard||n===undefined?1:toInteger(n);return baseSlice(array,n<0?0:n,length);}/**
|
|
10852
|
+
*/function drop(array,n,guard){var length=array==null?0:array.length;if(!length){return [];}n=guard||n===undefined$1?1:toInteger(n);return baseSlice(array,n<0?0:n,length);}/**
|
|
10843
10853
|
* Creates a slice of `array` with `n` elements dropped from the end.
|
|
10844
10854
|
*
|
|
10845
10855
|
* @static
|
|
@@ -10863,7 +10873,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
10863
10873
|
*
|
|
10864
10874
|
* _.dropRight([1, 2, 3], 0);
|
|
10865
10875
|
* // => [1, 2, 3]
|
|
10866
|
-
*/function dropRight(array,n,guard){var length=array==null?0:array.length;if(!length){return [];}n=guard||n===undefined?1:toInteger(n);n=length-n;return baseSlice(array,0,n<0?0:n);}/**
|
|
10876
|
+
*/function dropRight(array,n,guard){var length=array==null?0:array.length;if(!length){return [];}n=guard||n===undefined$1?1:toInteger(n);n=length-n;return baseSlice(array,0,n<0?0:n);}/**
|
|
10867
10877
|
* Creates a slice of `array` excluding elements dropped from the end.
|
|
10868
10878
|
* Elements are dropped until `predicate` returns falsey. The predicate is
|
|
10869
10879
|
* invoked with three arguments: (value, index, array).
|
|
@@ -11027,7 +11037,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11027
11037
|
* // The `_.property` iteratee shorthand.
|
|
11028
11038
|
* _.findLastIndex(users, 'active');
|
|
11029
11039
|
* // => 0
|
|
11030
|
-
*/function findLastIndex(array,predicate,fromIndex){var length=array==null?0:array.length;if(!length){return -1;}var index=length-1;if(fromIndex!==undefined){index=toInteger(fromIndex);index=fromIndex<0?nativeMax(length+index,0):nativeMin(index,length-1);}return baseFindIndex(array,getIteratee(predicate,3),index,true);}/**
|
|
11040
|
+
*/function findLastIndex(array,predicate,fromIndex){var length=array==null?0:array.length;if(!length){return -1;}var index=length-1;if(fromIndex!==undefined$1){index=toInteger(fromIndex);index=fromIndex<0?nativeMax(length+index,0):nativeMin(index,length-1);}return baseFindIndex(array,getIteratee(predicate,3),index,true);}/**
|
|
11031
11041
|
* Flattens `array` a single level deep.
|
|
11032
11042
|
*
|
|
11033
11043
|
* @static
|
|
@@ -11072,7 +11082,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11072
11082
|
*
|
|
11073
11083
|
* _.flattenDepth(array, 2);
|
|
11074
11084
|
* // => [1, 2, 3, [4], 5]
|
|
11075
|
-
*/function flattenDepth(array,depth){var length=array==null?0:array.length;if(!length){return [];}depth=depth===undefined?1:toInteger(depth);return baseFlatten(array,depth);}/**
|
|
11085
|
+
*/function flattenDepth(array,depth){var length=array==null?0:array.length;if(!length){return [];}depth=depth===undefined$1?1:toInteger(depth);return baseFlatten(array,depth);}/**
|
|
11076
11086
|
* The inverse of `_.toPairs`; this method returns an object composed
|
|
11077
11087
|
* from key-value `pairs`.
|
|
11078
11088
|
*
|
|
@@ -11086,7 +11096,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11086
11096
|
*
|
|
11087
11097
|
* _.fromPairs([['a', 1], ['b', 2]]);
|
|
11088
11098
|
* // => { 'a': 1, 'b': 2 }
|
|
11089
|
-
*/function fromPairs(pairs){var index=-1,length=pairs==null?0:pairs.length,result={};while(++index<length){var pair=pairs[index];result
|
|
11099
|
+
*/function fromPairs(pairs){var index=-1,length=pairs==null?0:pairs.length,result={};while(++index<length){var pair=pairs[index];baseAssignValue(result,pair[0],pair[1]);}return result;}/**
|
|
11090
11100
|
* Gets the first element of `array`.
|
|
11091
11101
|
*
|
|
11092
11102
|
* @static
|
|
@@ -11103,7 +11113,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11103
11113
|
*
|
|
11104
11114
|
* _.head([]);
|
|
11105
11115
|
* // => undefined
|
|
11106
|
-
*/function head(array){return array&&array.length?array[0]:undefined;}/**
|
|
11116
|
+
*/function head(array){return array&&array.length?array[0]:undefined$1;}/**
|
|
11107
11117
|
* Gets the index at which the first occurrence of `value` is found in `array`
|
|
11108
11118
|
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
11109
11119
|
* for equality comparisons. If `fromIndex` is negative, it's used as the
|
|
@@ -11176,7 +11186,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11176
11186
|
* // The `_.property` iteratee shorthand.
|
|
11177
11187
|
* _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
|
|
11178
11188
|
* // => [{ 'x': 1 }]
|
|
11179
|
-
*/var intersectionBy=baseRest(function(arrays){var iteratee=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);if(iteratee===last(mapped)){iteratee=undefined;}else {mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee,2)):[];});/**
|
|
11189
|
+
*/var intersectionBy=baseRest(function(arrays){var iteratee=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);if(iteratee===last(mapped)){iteratee=undefined$1;}else {mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee,2)):[];});/**
|
|
11180
11190
|
* This method is like `_.intersection` except that it accepts `comparator`
|
|
11181
11191
|
* which is invoked to compare elements of `arrays`. The order and references
|
|
11182
11192
|
* of result values are determined by the first array. The comparator is
|
|
@@ -11196,7 +11206,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11196
11206
|
*
|
|
11197
11207
|
* _.intersectionWith(objects, others, _.isEqual);
|
|
11198
11208
|
* // => [{ 'x': 1, 'y': 2 }]
|
|
11199
|
-
*/var intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);comparator=typeof comparator=='function'?comparator:undefined;if(comparator){mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined,comparator):[];});/**
|
|
11209
|
+
*/var intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);comparator=typeof comparator=='function'?comparator:undefined$1;if(comparator){mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined$1,comparator):[];});/**
|
|
11200
11210
|
* Converts all elements in `array` into a string separated by `separator`.
|
|
11201
11211
|
*
|
|
11202
11212
|
* @static
|
|
@@ -11223,7 +11233,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11223
11233
|
*
|
|
11224
11234
|
* _.last([1, 2, 3]);
|
|
11225
11235
|
* // => 3
|
|
11226
|
-
*/function last(array){var length=array==null?0:array.length;return length?array[length-1]:undefined;}/**
|
|
11236
|
+
*/function last(array){var length=array==null?0:array.length;return length?array[length-1]:undefined$1;}/**
|
|
11227
11237
|
* This method is like `_.indexOf` except that it iterates over elements of
|
|
11228
11238
|
* `array` from right to left.
|
|
11229
11239
|
*
|
|
@@ -11243,7 +11253,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11243
11253
|
* // Search from the `fromIndex`.
|
|
11244
11254
|
* _.lastIndexOf([1, 2, 1, 2], 2, 2);
|
|
11245
11255
|
* // => 1
|
|
11246
|
-
*/function lastIndexOf(array,value,fromIndex){var length=array==null?0:array.length;if(!length){return -1;}var index=length;if(fromIndex!==undefined){index=toInteger(fromIndex);index=index<0?nativeMax(length+index,0):nativeMin(index,length-1);}return value===value?strictLastIndexOf(array,value,index):baseFindIndex(array,baseIsNaN,index,true);}/**
|
|
11256
|
+
*/function lastIndexOf(array,value,fromIndex){var length=array==null?0:array.length;if(!length){return -1;}var index=length;if(fromIndex!==undefined$1){index=toInteger(fromIndex);index=index<0?nativeMax(length+index,0):nativeMin(index,length-1);}return value===value?strictLastIndexOf(array,value,index):baseFindIndex(array,baseIsNaN,index,true);}/**
|
|
11247
11257
|
* Gets the element at index `n` of `array`. If `n` is negative, the nth
|
|
11248
11258
|
* element from the end is returned.
|
|
11249
11259
|
*
|
|
@@ -11263,7 +11273,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11263
11273
|
*
|
|
11264
11274
|
* _.nth(array, -2);
|
|
11265
11275
|
* // => 'c';
|
|
11266
|
-
*/function nth(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined;}/**
|
|
11276
|
+
*/function nth(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined$1;}/**
|
|
11267
11277
|
* Removes all given values from `array` using
|
|
11268
11278
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
11269
11279
|
* for equality comparisons.
|
|
@@ -11348,7 +11358,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11348
11358
|
* _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
|
|
11349
11359
|
* console.log(array);
|
|
11350
11360
|
* // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
|
|
11351
|
-
*/function pullAllWith(array,values,comparator){return array&&array.length&&values&&values.length?basePullAll(array,values,undefined,comparator):array;}/**
|
|
11361
|
+
*/function pullAllWith(array,values,comparator){return array&&array.length&&values&&values.length?basePullAll(array,values,undefined$1,comparator):array;}/**
|
|
11352
11362
|
* Removes elements from `array` corresponding to `indexes` and returns an
|
|
11353
11363
|
* array of removed elements.
|
|
11354
11364
|
*
|
|
@@ -11435,7 +11445,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11435
11445
|
* @param {number} [start=0] The start position.
|
|
11436
11446
|
* @param {number} [end=array.length] The end position.
|
|
11437
11447
|
* @returns {Array} Returns the slice of `array`.
|
|
11438
|
-
*/function slice(array,start,end){var length=array==null?0:array.length;if(!length){return [];}if(end&&typeof end!='number'&&isIterateeCall(array,start,end)){start=0;end=length;}else {start=start==null?0:toInteger(start);end=end===undefined?length:toInteger(end);}return baseSlice(array,start,end);}/**
|
|
11448
|
+
*/function slice(array,start,end){var length=array==null?0:array.length;if(!length){return [];}if(end&&typeof end!='number'&&isIterateeCall(array,start,end)){start=0;end=length;}else {start=start==null?0:toInteger(start);end=end===undefined$1?length:toInteger(end);}return baseSlice(array,start,end);}/**
|
|
11439
11449
|
* Uses a binary search to determine the lowest index at which `value`
|
|
11440
11450
|
* should be inserted into `array` in order to maintain its sort order.
|
|
11441
11451
|
*
|
|
@@ -11612,7 +11622,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11612
11622
|
*
|
|
11613
11623
|
* _.take([1, 2, 3], 0);
|
|
11614
11624
|
* // => []
|
|
11615
|
-
*/function take(array,n,guard){if(!(array&&array.length)){return [];}n=guard||n===undefined?1:toInteger(n);return baseSlice(array,0,n<0?0:n);}/**
|
|
11625
|
+
*/function take(array,n,guard){if(!(array&&array.length)){return [];}n=guard||n===undefined$1?1:toInteger(n);return baseSlice(array,0,n<0?0:n);}/**
|
|
11616
11626
|
* Creates a slice of `array` with `n` elements taken from the end.
|
|
11617
11627
|
*
|
|
11618
11628
|
* @static
|
|
@@ -11636,7 +11646,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11636
11646
|
*
|
|
11637
11647
|
* _.takeRight([1, 2, 3], 0);
|
|
11638
11648
|
* // => []
|
|
11639
|
-
*/function takeRight(array,n,guard){var length=array==null?0:array.length;if(!length){return [];}n=guard||n===undefined?1:toInteger(n);n=length-n;return baseSlice(array,n<0?0:n,length);}/**
|
|
11649
|
+
*/function takeRight(array,n,guard){var length=array==null?0:array.length;if(!length){return [];}n=guard||n===undefined$1?1:toInteger(n);n=length-n;return baseSlice(array,n<0?0:n,length);}/**
|
|
11640
11650
|
* Creates a slice of `array` with elements taken from the end. Elements are
|
|
11641
11651
|
* taken until `predicate` returns falsey. The predicate is invoked with
|
|
11642
11652
|
* three arguments: (value, index, array).
|
|
@@ -11741,7 +11751,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11741
11751
|
* // The `_.property` iteratee shorthand.
|
|
11742
11752
|
* _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
|
|
11743
11753
|
* // => [{ 'x': 1 }, { 'x': 2 }]
|
|
11744
|
-
*/var unionBy=baseRest(function(arrays){var iteratee=last(arrays);if(isArrayLikeObject(iteratee)){iteratee=undefined;}return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),getIteratee(iteratee,2));});/**
|
|
11754
|
+
*/var unionBy=baseRest(function(arrays){var iteratee=last(arrays);if(isArrayLikeObject(iteratee)){iteratee=undefined$1;}return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),getIteratee(iteratee,2));});/**
|
|
11745
11755
|
* This method is like `_.union` except that it accepts `comparator` which
|
|
11746
11756
|
* is invoked to compare elements of `arrays`. Result values are chosen from
|
|
11747
11757
|
* the first array in which the value occurs. The comparator is invoked
|
|
@@ -11761,7 +11771,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11761
11771
|
*
|
|
11762
11772
|
* _.unionWith(objects, others, _.isEqual);
|
|
11763
11773
|
* // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
|
|
11764
|
-
*/var unionWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=='function'?comparator:undefined;return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),undefined,comparator);});/**
|
|
11774
|
+
*/var unionWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=='function'?comparator:undefined$1;return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),undefined$1,comparator);});/**
|
|
11765
11775
|
* Creates a duplicate-free version of an array, using
|
|
11766
11776
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
11767
11777
|
* for equality comparisons, in which only the first occurrence of each element
|
|
@@ -11819,7 +11829,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11819
11829
|
*
|
|
11820
11830
|
* _.uniqWith(objects, _.isEqual);
|
|
11821
11831
|
* // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
|
|
11822
|
-
*/function uniqWith(array,comparator){comparator=typeof comparator=='function'?comparator:undefined;return array&&array.length?baseUniq(array,undefined,comparator):[];}/**
|
|
11832
|
+
*/function uniqWith(array,comparator){comparator=typeof comparator=='function'?comparator:undefined$1;return array&&array.length?baseUniq(array,undefined$1,comparator):[];}/**
|
|
11823
11833
|
* This method is like `_.zip` except that it accepts an array of grouped
|
|
11824
11834
|
* elements and creates an array regrouping the elements to their pre-zip
|
|
11825
11835
|
* configuration.
|
|
@@ -11857,7 +11867,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11857
11867
|
*
|
|
11858
11868
|
* _.unzipWith(zipped, _.add);
|
|
11859
11869
|
* // => [3, 30, 300]
|
|
11860
|
-
*/function unzipWith(array,iteratee){if(!(array&&array.length)){return [];}var result=unzip(array);if(iteratee==null){return result;}return arrayMap(result,function(group){return apply(iteratee,undefined,group);});}/**
|
|
11870
|
+
*/function unzipWith(array,iteratee){if(!(array&&array.length)){return [];}var result=unzip(array);if(iteratee==null){return result;}return arrayMap(result,function(group){return apply(iteratee,undefined$1,group);});}/**
|
|
11861
11871
|
* Creates an array excluding all given values using
|
|
11862
11872
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
11863
11873
|
* for equality comparisons.
|
|
@@ -11915,7 +11925,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11915
11925
|
* // The `_.property` iteratee shorthand.
|
|
11916
11926
|
* _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
|
|
11917
11927
|
* // => [{ 'x': 2 }]
|
|
11918
|
-
*/var xorBy=baseRest(function(arrays){var iteratee=last(arrays);if(isArrayLikeObject(iteratee)){iteratee=undefined;}return baseXor(arrayFilter(arrays,isArrayLikeObject),getIteratee(iteratee,2));});/**
|
|
11928
|
+
*/var xorBy=baseRest(function(arrays){var iteratee=last(arrays);if(isArrayLikeObject(iteratee)){iteratee=undefined$1;}return baseXor(arrayFilter(arrays,isArrayLikeObject),getIteratee(iteratee,2));});/**
|
|
11919
11929
|
* This method is like `_.xor` except that it accepts `comparator` which is
|
|
11920
11930
|
* invoked to compare elements of `arrays`. The order of result values is
|
|
11921
11931
|
* determined by the order they occur in the arrays. The comparator is invoked
|
|
@@ -11935,7 +11945,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11935
11945
|
*
|
|
11936
11946
|
* _.xorWith(objects, others, _.isEqual);
|
|
11937
11947
|
* // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
|
|
11938
|
-
*/var xorWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=='function'?comparator:undefined;return baseXor(arrayFilter(arrays,isArrayLikeObject),undefined,comparator);});/**
|
|
11948
|
+
*/var xorWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=='function'?comparator:undefined$1;return baseXor(arrayFilter(arrays,isArrayLikeObject),undefined$1,comparator);});/**
|
|
11939
11949
|
* Creates an array of grouped elements, the first of which contains the
|
|
11940
11950
|
* first elements of the given arrays, the second of which contains the
|
|
11941
11951
|
* second elements of the given arrays, and so on.
|
|
@@ -11998,7 +12008,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
11998
12008
|
* return a + b + c;
|
|
11999
12009
|
* });
|
|
12000
12010
|
* // => [111, 222]
|
|
12001
|
-
*/var zipWith=baseRest(function(arrays){var length=arrays.length,iteratee=length>1?arrays[length-1]:undefined;iteratee=typeof iteratee=='function'?(arrays.pop(),iteratee):undefined;return unzipWith(arrays,iteratee);});/*------------------------------------------------------------------------*//**
|
|
12011
|
+
*/var zipWith=baseRest(function(arrays){var length=arrays.length,iteratee=length>1?arrays[length-1]:undefined$1;iteratee=typeof iteratee=='function'?(arrays.pop(),iteratee):undefined$1;return unzipWith(arrays,iteratee);});/*------------------------------------------------------------------------*//**
|
|
12002
12012
|
* Creates a `lodash` wrapper instance that wraps `value` with explicit method
|
|
12003
12013
|
* chain sequences enabled. The result of such sequences must be unwrapped
|
|
12004
12014
|
* with `_#value`.
|
|
@@ -12085,7 +12095,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12085
12095
|
*
|
|
12086
12096
|
* _(object).at(['a[0].b.c', 'a[1]']).value();
|
|
12087
12097
|
* // => [3, 4]
|
|
12088
|
-
*/var wrapperAt=flatRest(function(paths){var length=paths.length,start=length?paths[0]:0,value=this.__wrapped__,interceptor=function(object){return baseAt(object,paths);};if(length>1||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex(start)){return this.thru(interceptor);}value=value.slice(start,+start+(length?1:0));value.__actions__.push({'func':thru,'args':[interceptor],'thisArg':undefined});return new LodashWrapper(value,this.__chain__).thru(function(array){if(length&&!array.length){array.push(undefined);}return array;});});/**
|
|
12098
|
+
*/var wrapperAt=flatRest(function(paths){var length=paths.length,start=length?paths[0]:0,value=this.__wrapped__,interceptor=function(object){return baseAt(object,paths);};if(length>1||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex(start)){return this.thru(interceptor);}value=value.slice(start,+start+(length?1:0));value.__actions__.push({'func':thru,'args':[interceptor],'thisArg':undefined$1});return new LodashWrapper(value,this.__chain__).thru(function(array){if(length&&!array.length){array.push(undefined$1);}return array;});});/**
|
|
12089
12099
|
* Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
|
|
12090
12100
|
*
|
|
12091
12101
|
* @name chain
|
|
@@ -12157,7 +12167,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12157
12167
|
*
|
|
12158
12168
|
* wrapped.next();
|
|
12159
12169
|
* // => { 'done': true, 'value': undefined }
|
|
12160
|
-
*/function wrapperNext(){if(this.__values__===undefined){this.__values__=toArray(this.value());}var done=this.__index__>=this.__values__.length,value=done?undefined:this.__values__[this.__index__++];return {'done':done,'value':value};}/**
|
|
12170
|
+
*/function wrapperNext(){if(this.__values__===undefined$1){this.__values__=toArray(this.value());}var done=this.__index__>=this.__values__.length,value=done?undefined$1:this.__values__[this.__index__++];return {'done':done,'value':value};}/**
|
|
12161
12171
|
* Enables the wrapper to be iterable.
|
|
12162
12172
|
*
|
|
12163
12173
|
* @name Symbol.iterator
|
|
@@ -12197,7 +12207,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12197
12207
|
*
|
|
12198
12208
|
* wrapped.value();
|
|
12199
12209
|
* // => [1, 4]
|
|
12200
|
-
*/function wrapperPlant(value){var result,parent=this;while(parent instanceof baseLodash){var clone=wrapperClone(parent);clone.__index__=0;clone.__values__=undefined;if(result){previous.__wrapped__=clone;}else {result=clone;}var previous=clone;parent=parent.__wrapped__;}previous.__wrapped__=value;return result;}/**
|
|
12210
|
+
*/function wrapperPlant(value){var result,parent=this;while(parent instanceof baseLodash){var clone=wrapperClone(parent);clone.__index__=0;clone.__values__=undefined$1;if(result){previous.__wrapped__=clone;}else {result=clone;}var previous=clone;parent=parent.__wrapped__;}previous.__wrapped__=value;return result;}/**
|
|
12201
12211
|
* This method is the wrapper version of `_.reverse`.
|
|
12202
12212
|
*
|
|
12203
12213
|
* **Note:** This method mutates the wrapped array.
|
|
@@ -12216,7 +12226,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12216
12226
|
*
|
|
12217
12227
|
* console.log(array);
|
|
12218
12228
|
* // => [3, 2, 1]
|
|
12219
|
-
*/function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;if(this.__actions__.length){wrapped=new LazyWrapper(this);}wrapped=wrapped.reverse();wrapped.__actions__.push({'func':thru,'args':[reverse],'thisArg':undefined});return new LodashWrapper(wrapped,this.__chain__);}return this.thru(reverse);}/**
|
|
12229
|
+
*/function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;if(this.__actions__.length){wrapped=new LazyWrapper(this);}wrapped=wrapped.reverse();wrapped.__actions__.push({'func':thru,'args':[reverse],'thisArg':undefined$1});return new LodashWrapper(wrapped,this.__chain__);}return this.thru(reverse);}/**
|
|
12220
12230
|
* Executes the chain sequence to resolve the unwrapped value.
|
|
12221
12231
|
*
|
|
12222
12232
|
* @name value
|
|
@@ -12290,7 +12300,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12290
12300
|
* // The `_.property` iteratee shorthand.
|
|
12291
12301
|
* _.every(users, 'active');
|
|
12292
12302
|
* // => false
|
|
12293
|
-
*/function every(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined;}return func(collection,getIteratee(predicate,3));}/**
|
|
12303
|
+
*/function every(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}/**
|
|
12294
12304
|
* Iterates over elements of `collection`, returning an array of all elements
|
|
12295
12305
|
* `predicate` returns truthy for. The predicate is invoked with three
|
|
12296
12306
|
* arguments: (value, index|key, collection).
|
|
@@ -12442,7 +12452,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12442
12452
|
*
|
|
12443
12453
|
* _.flatMapDepth([1, 2], duplicate, 2);
|
|
12444
12454
|
* // => [[1, 1], [2, 2]]
|
|
12445
|
-
*/function flatMapDepth(collection,iteratee,depth){depth=depth===undefined?1:toInteger(depth);return baseFlatten(map(collection,iteratee),depth);}/**
|
|
12455
|
+
*/function flatMapDepth(collection,iteratee,depth){depth=depth===undefined$1?1:toInteger(depth);return baseFlatten(map(collection,iteratee),depth);}/**
|
|
12446
12456
|
* Iterates over elements of `collection` and invokes `iteratee` for each element.
|
|
12447
12457
|
* The iteratee is invoked with three arguments: (value, index|key, collection).
|
|
12448
12458
|
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
@@ -12659,7 +12669,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12659
12669
|
* // Sort by `user` in ascending order and by `age` in descending order.
|
|
12660
12670
|
* _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
|
|
12661
12671
|
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
|
|
12662
|
-
*/function orderBy(collection,iteratees,orders,guard){if(collection==null){return [];}if(!isArray(iteratees)){iteratees=iteratees==null?[]:[iteratees];}orders=guard?undefined:orders;if(!isArray(orders)){orders=orders==null?[]:[orders];}return baseOrderBy(collection,iteratees,orders);}/**
|
|
12672
|
+
*/function orderBy(collection,iteratees,orders,guard){if(collection==null){return [];}if(!isArray(iteratees)){iteratees=iteratees==null?[]:[iteratees];}orders=guard?undefined$1:orders;if(!isArray(orders)){orders=orders==null?[]:[orders];}return baseOrderBy(collection,iteratees,orders);}/**
|
|
12663
12673
|
* Creates an array of elements split into two groups, the first of which
|
|
12664
12674
|
* contains elements `predicate` returns truthy for, the second of which
|
|
12665
12675
|
* contains elements `predicate` returns falsey for. The predicate is
|
|
@@ -12816,7 +12826,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12816
12826
|
*
|
|
12817
12827
|
* _.sampleSize([1, 2, 3], 4);
|
|
12818
12828
|
* // => [2, 3, 1]
|
|
12819
|
-
*/function sampleSize(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n===undefined){n=1;}else {n=toInteger(n);}var func=isArray(collection)?arraySampleSize:baseSampleSize;return func(collection,n);}/**
|
|
12829
|
+
*/function sampleSize(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n===undefined$1){n=1;}else {n=toInteger(n);}var func=isArray(collection)?arraySampleSize:baseSampleSize;return func(collection,n);}/**
|
|
12820
12830
|
* Creates an array of shuffled values, using a version of the
|
|
12821
12831
|
* [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
|
|
12822
12832
|
*
|
|
@@ -12885,7 +12895,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12885
12895
|
* // The `_.property` iteratee shorthand.
|
|
12886
12896
|
* _.some(users, 'active');
|
|
12887
12897
|
* // => true
|
|
12888
|
-
*/function some(collection,predicate,guard){var func=isArray(collection)?arraySome:baseSome;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined;}return func(collection,getIteratee(predicate,3));}/**
|
|
12898
|
+
*/function some(collection,predicate,guard){var func=isArray(collection)?arraySome:baseSome;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}/**
|
|
12889
12899
|
* Creates an array of elements, sorted in ascending order by the results of
|
|
12890
12900
|
* running each element in a collection thru each iteratee. This method
|
|
12891
12901
|
* performs a stable sort, that is, it preserves the original sort order of
|
|
@@ -12967,7 +12977,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12967
12977
|
*
|
|
12968
12978
|
* _.map(['6', '8', '10'], _.ary(parseInt, 1));
|
|
12969
12979
|
* // => [6, 8, 10]
|
|
12970
|
-
*/function ary(func,n,guard){n=guard?undefined:n;n=func&&n==null?func.length:n;return createWrap(func,WRAP_ARY_FLAG,undefined,undefined,undefined,undefined,n);}/**
|
|
12980
|
+
*/function ary(func,n,guard){n=guard?undefined$1:n;n=func&&n==null?func.length:n;return createWrap(func,WRAP_ARY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,n);}/**
|
|
12971
12981
|
* Creates a function that invokes `func`, with the `this` binding and arguments
|
|
12972
12982
|
* of the created function, while it's called less than `n` times. Subsequent
|
|
12973
12983
|
* calls to the created function return the result of the last `func` invocation.
|
|
@@ -12983,7 +12993,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
12983
12993
|
*
|
|
12984
12994
|
* jQuery(element).on('click', _.before(5, addContactToList));
|
|
12985
12995
|
* // => Allows adding up to 4 contacts to the list.
|
|
12986
|
-
*/function before(n,func){var result;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}n=toInteger(n);return function(){if(--n>0){result=func.apply(this,arguments);}if(n<=1){func=undefined;}return result;};}/**
|
|
12996
|
+
*/function before(n,func){var result;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}n=toInteger(n);return function(){if(--n>0){result=func.apply(this,arguments);}if(n<=1){func=undefined$1;}return result;};}/**
|
|
12987
12997
|
* Creates a function that invokes `func` with the `this` binding of `thisArg`
|
|
12988
12998
|
* and `partials` prepended to the arguments it receives.
|
|
12989
12999
|
*
|
|
@@ -13101,7 +13111,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
13101
13111
|
* // Curried with placeholders.
|
|
13102
13112
|
* curried(1)(_, 3)(2);
|
|
13103
13113
|
* // => [1, 2, 3]
|
|
13104
|
-
*/function curry(func,arity,guard){arity=guard?undefined:arity;var result=createWrap(func,WRAP_CURRY_FLAG,undefined,undefined,undefined,undefined,undefined,arity);result.placeholder=curry.placeholder;return result;}/**
|
|
13114
|
+
*/function curry(func,arity,guard){arity=guard?undefined$1:arity;var result=createWrap(func,WRAP_CURRY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result.placeholder=curry.placeholder;return result;}/**
|
|
13105
13115
|
* This method is like `_.curry` except that arguments are applied to `func`
|
|
13106
13116
|
* in the manner of `_.partialRight` instead of `_.partial`.
|
|
13107
13117
|
*
|
|
@@ -13138,7 +13148,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
13138
13148
|
* // Curried with placeholders.
|
|
13139
13149
|
* curried(3)(1, _)(2);
|
|
13140
13150
|
* // => [1, 2, 3]
|
|
13141
|
-
*/function curryRight(func,arity,guard){arity=guard?undefined:arity;var result=createWrap(func,WRAP_CURRY_RIGHT_FLAG,undefined,undefined,undefined,undefined,undefined,arity);result.placeholder=curryRight.placeholder;return result;}/**
|
|
13151
|
+
*/function curryRight(func,arity,guard){arity=guard?undefined$1:arity;var result=createWrap(func,WRAP_CURRY_RIGHT_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result.placeholder=curryRight.placeholder;return result;}/**
|
|
13142
13152
|
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
13143
13153
|
* milliseconds have elapsed since the last time the debounced function was
|
|
13144
13154
|
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
@@ -13191,17 +13201,17 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
|
|
|
13191
13201
|
*
|
|
13192
13202
|
* // Cancel the trailing debounced invocation.
|
|
13193
13203
|
* jQuery(window).on('popstate', debounced.cancel);
|
|
13194
|
-
*/function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=false,maxing=false,trailing=true;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}wait=toNumber(wait)||0;if(isObject(options)){leading=!!options.leading;maxing='maxWait'in options;maxWait=maxing?nativeMax(toNumber(options.maxWait)||0,wait):maxWait;trailing='trailing'in options?!!options.trailing:trailing;}function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined;lastInvokeTime=time;result=func.apply(thisArg,args);return result;}function leadingEdge(time){// Reset any `maxWait` timer.
|
|
13204
|
+
*/function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=false,maxing=false,trailing=true;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}wait=toNumber(wait)||0;if(isObject(options)){leading=!!options.leading;maxing='maxWait'in options;maxWait=maxing?nativeMax(toNumber(options.maxWait)||0,wait):maxWait;trailing='trailing'in options?!!options.trailing:trailing;}function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined$1;lastInvokeTime=time;result=func.apply(thisArg,args);return result;}function leadingEdge(time){// Reset any `maxWait` timer.
|
|
13195
13205
|
lastInvokeTime=time;// Start the timer for the trailing edge.
|
|
13196
13206
|
timerId=setTimeout(timerExpired,wait);// Invoke the leading edge.
|
|
13197
13207
|
return leading?invokeFunc(time):result;}function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?nativeMin(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting;}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;// Either this is the first call, activity has stopped and we're at the
|
|
13198
13208
|
// trailing edge, the system time has gone backwards and we're treating
|
|
13199
13209
|
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
13200
|
-
return lastCallTime===undefined||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait;}function timerExpired(){var time=now();if(shouldInvoke(time)){return trailingEdge(time);}// Restart the timer.
|
|
13201
|
-
timerId=setTimeout(timerExpired,remainingWait(time));}function trailingEdge(time){timerId=undefined;// Only invoke if we have `lastArgs` which means `func` has been
|
|
13210
|
+
return lastCallTime===undefined$1||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait;}function timerExpired(){var time=now();if(shouldInvoke(time)){return trailingEdge(time);}// Restart the timer.
|
|
13211
|
+
timerId=setTimeout(timerExpired,remainingWait(time));}function trailingEdge(time){timerId=undefined$1;// Only invoke if we have `lastArgs` which means `func` has been
|
|
13202
13212
|
// debounced at least once.
|
|
13203
|
-
if(trailing&&lastArgs){return invokeFunc(time);}lastArgs=lastThis=undefined;return result;}function cancel(){if(timerId!==undefined){clearTimeout(timerId);}lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined;}function flush(){return timerId===undefined?result:trailingEdge(now());}function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined){return leadingEdge(lastCallTime);}if(maxing){// Handle invocations in a tight loop.
|
|
13204
|
-
clearTimeout(timerId);timerId=setTimeout(timerExpired,wait);return invokeFunc(lastCallTime);}}if(timerId===undefined){timerId=setTimeout(timerExpired,wait);}return result;}debounced.cancel=cancel;debounced.flush=flush;return debounced;}/**
|
|
13213
|
+
if(trailing&&lastArgs){return invokeFunc(time);}lastArgs=lastThis=undefined$1;return result;}function cancel(){if(timerId!==undefined$1){clearTimeout(timerId);}lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined$1;}function flush(){return timerId===undefined$1?result:trailingEdge(now());}function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined$1){return leadingEdge(lastCallTime);}if(maxing){// Handle invocations in a tight loop.
|
|
13214
|
+
clearTimeout(timerId);timerId=setTimeout(timerExpired,wait);return invokeFunc(lastCallTime);}}if(timerId===undefined$1){timerId=setTimeout(timerExpired,wait);}return result;}debounced.cancel=cancel;debounced.flush=flush;return debounced;}/**
|
|
13205
13215
|
* Defers invoking the `func` until the current call stack has cleared. Any
|
|
13206
13216
|
* additional arguments are provided to `func` when it's invoked.
|
|
13207
13217
|
*
|
|
@@ -13395,7 +13405,7 @@ memoize.Cache=MapCache;/**
|
|
|
13395
13405
|
* var greetFred = _.partial(greet, _, 'fred');
|
|
13396
13406
|
* greetFred('hi');
|
|
13397
13407
|
* // => 'hi fred'
|
|
13398
|
-
*/var partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,WRAP_PARTIAL_FLAG,undefined,partials,holders);});/**
|
|
13408
|
+
*/var partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,WRAP_PARTIAL_FLAG,undefined$1,partials,holders);});/**
|
|
13399
13409
|
* This method is like `_.partial` except that partially applied arguments
|
|
13400
13410
|
* are appended to the arguments it receives.
|
|
13401
13411
|
*
|
|
@@ -13426,7 +13436,7 @@ memoize.Cache=MapCache;/**
|
|
|
13426
13436
|
* var sayHelloTo = _.partialRight(greet, 'hello', _);
|
|
13427
13437
|
* sayHelloTo('fred');
|
|
13428
13438
|
* // => 'hello fred'
|
|
13429
|
-
*/var partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,WRAP_PARTIAL_RIGHT_FLAG,undefined,partials,holders);});/**
|
|
13439
|
+
*/var partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,WRAP_PARTIAL_RIGHT_FLAG,undefined$1,partials,holders);});/**
|
|
13430
13440
|
* Creates a function that invokes `func` with arguments arranged according
|
|
13431
13441
|
* to the specified `indexes` where the argument value at the first index is
|
|
13432
13442
|
* provided as the first argument, the argument value at the second index is
|
|
@@ -13447,7 +13457,7 @@ memoize.Cache=MapCache;/**
|
|
|
13447
13457
|
*
|
|
13448
13458
|
* rearged('b', 'c', 'a')
|
|
13449
13459
|
* // => ['a', 'b', 'c']
|
|
13450
|
-
*/var rearg=flatRest(function(func,indexes){return createWrap(func,WRAP_REARG_FLAG,undefined,undefined,undefined,indexes);});/**
|
|
13460
|
+
*/var rearg=flatRest(function(func,indexes){return createWrap(func,WRAP_REARG_FLAG,undefined$1,undefined$1,undefined$1,indexes);});/**
|
|
13451
13461
|
* Creates a function that invokes `func` with the `this` binding of the
|
|
13452
13462
|
* created function and arguments from `start` and beyond provided as
|
|
13453
13463
|
* an array.
|
|
@@ -13471,7 +13481,7 @@ memoize.Cache=MapCache;/**
|
|
|
13471
13481
|
*
|
|
13472
13482
|
* say('hello', 'fred', 'barney', 'pebbles');
|
|
13473
13483
|
* // => 'hello fred, barney, & pebbles'
|
|
13474
|
-
*/function rest(func,start){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}start=start===undefined?start:toInteger(start);return baseRest(func,start);}/**
|
|
13484
|
+
*/function rest(func,start){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}start=start===undefined$1?start:toInteger(start);return baseRest(func,start);}/**
|
|
13475
13485
|
* Creates a function that invokes `func` with the `this` binding of the
|
|
13476
13486
|
* create function and an array of arguments much like
|
|
13477
13487
|
* [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
|
|
@@ -13669,7 +13679,7 @@ memoize.Cache=MapCache;/**
|
|
|
13669
13679
|
* // => 'BODY'
|
|
13670
13680
|
* console.log(el.childNodes.length);
|
|
13671
13681
|
* // => 0
|
|
13672
|
-
*/function cloneWith(value,customizer){customizer=typeof customizer=='function'?customizer:undefined;return baseClone(value,CLONE_SYMBOLS_FLAG,customizer);}/**
|
|
13682
|
+
*/function cloneWith(value,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;return baseClone(value,CLONE_SYMBOLS_FLAG,customizer);}/**
|
|
13673
13683
|
* This method is like `_.clone` except that it recursively clones `value`.
|
|
13674
13684
|
*
|
|
13675
13685
|
* @static
|
|
@@ -13713,7 +13723,7 @@ memoize.Cache=MapCache;/**
|
|
|
13713
13723
|
* // => 'BODY'
|
|
13714
13724
|
* console.log(el.childNodes.length);
|
|
13715
13725
|
* // => 20
|
|
13716
|
-
*/function cloneDeepWith(value,customizer){customizer=typeof customizer=='function'?customizer:undefined;return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG,customizer);}/**
|
|
13726
|
+
*/function cloneDeepWith(value,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG,customizer);}/**
|
|
13717
13727
|
* Checks if `object` conforms to `source` by invoking the predicate
|
|
13718
13728
|
* properties of `source` with the corresponding property values of `object`.
|
|
13719
13729
|
*
|
|
@@ -14068,7 +14078,7 @@ memoize.Cache=MapCache;/**
|
|
|
14068
14078
|
*
|
|
14069
14079
|
* _.isEqualWith(array, other, customizer);
|
|
14070
14080
|
* // => true
|
|
14071
|
-
*/function isEqualWith(value,other,customizer){customizer=typeof customizer=='function'?customizer:undefined;var result=customizer?customizer(value,other):undefined;return result===undefined?baseIsEqual(value,other,undefined,customizer):!!result;}/**
|
|
14081
|
+
*/function isEqualWith(value,other,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;var result=customizer?customizer(value,other):undefined$1;return result===undefined$1?baseIsEqual(value,other,undefined$1,customizer):!!result;}/**
|
|
14072
14082
|
* Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
|
|
14073
14083
|
* `SyntaxError`, `TypeError`, or `URIError` object.
|
|
14074
14084
|
*
|
|
@@ -14299,7 +14309,7 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
14299
14309
|
*
|
|
14300
14310
|
* _.isMatchWith(object, source, customizer);
|
|
14301
14311
|
* // => true
|
|
14302
|
-
*/function isMatchWith(object,source,customizer){customizer=typeof customizer=='function'?customizer:undefined;return baseIsMatch(object,source,getMatchData(source),customizer);}/**
|
|
14312
|
+
*/function isMatchWith(object,source,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;return baseIsMatch(object,source,getMatchData(source),customizer);}/**
|
|
14303
14313
|
* Checks if `value` is `NaN`.
|
|
14304
14314
|
*
|
|
14305
14315
|
* **Note:** This method is based on
|
|
@@ -14563,7 +14573,7 @@ return isNumber(value)&&value!=+value;}/**
|
|
|
14563
14573
|
*
|
|
14564
14574
|
* _.isUndefined(null);
|
|
14565
14575
|
* // => false
|
|
14566
|
-
*/function isUndefined(value){return value===undefined;}/**
|
|
14576
|
+
*/function isUndefined(value){return value===undefined$1;}/**
|
|
14567
14577
|
* Checks if `value` is classified as a `WeakMap` object.
|
|
14568
14578
|
*
|
|
14569
14579
|
* @static
|
|
@@ -15007,7 +15017,7 @@ return isNumber(value)&&value!=+value;}/**
|
|
|
15007
15017
|
*
|
|
15008
15018
|
* _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
|
15009
15019
|
* // => { 'a': 1, 'b': 2 }
|
|
15010
|
-
*/var defaults=baseRest(function(object,sources){object=Object(object);var index=-1;var length=sources.length;var guard=length>2?sources[2]:undefined;if(guard&&isIterateeCall(sources[0],sources[1],guard)){length=1;}while(++index<length){var source=sources[index];var props=keysIn(source);var propsIndex=-1;var propsLength=props.length;while(++propsIndex<propsLength){var key=props[propsIndex];var value=object[key];if(value===undefined||eq(value,objectProto[key])&&!hasOwnProperty.call(object,key)){object[key]=source[key];}}}return object;});/**
|
|
15020
|
+
*/var defaults=baseRest(function(object,sources){object=Object(object);var index=-1;var length=sources.length;var guard=length>2?sources[2]:undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){length=1;}while(++index<length){var source=sources[index];var props=keysIn(source);var propsIndex=-1;var propsLength=props.length;while(++propsIndex<propsLength){var key=props[propsIndex];var value=object[key];if(value===undefined$1||eq(value,objectProto[key])&&!hasOwnProperty.call(object,key)){object[key]=source[key];}}}return object;});/**
|
|
15011
15021
|
* This method is like `_.defaults` except that it recursively assigns
|
|
15012
15022
|
* default properties.
|
|
15013
15023
|
*
|
|
@@ -15025,7 +15035,7 @@ return isNumber(value)&&value!=+value;}/**
|
|
|
15025
15035
|
*
|
|
15026
15036
|
* _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
|
|
15027
15037
|
* // => { 'a': { 'b': 2, 'c': 3 } }
|
|
15028
|
-
*/var defaultsDeep=baseRest(function(args){args.push(undefined,customDefaultsMerge);return apply(mergeWith,undefined,args);});/**
|
|
15038
|
+
*/var defaultsDeep=baseRest(function(args){args.push(undefined$1,customDefaultsMerge);return apply(mergeWith,undefined$1,args);});/**
|
|
15029
15039
|
* This method is like `_.find` except that it returns the key of the first
|
|
15030
15040
|
* element `predicate` returns truthy for instead of the element itself.
|
|
15031
15041
|
*
|
|
@@ -15265,7 +15275,7 @@ return isNumber(value)&&value!=+value;}/**
|
|
|
15265
15275
|
*
|
|
15266
15276
|
* _.get(object, 'a.b.c', 'default');
|
|
15267
15277
|
* // => 'default'
|
|
15268
|
-
*/function get(object,path,defaultValue){var result=object==null?undefined:baseGet(object,path);return result===undefined?defaultValue:result;}/**
|
|
15278
|
+
*/function get(object,path,defaultValue){var result=object==null?undefined$1:baseGet(object,path);return result===undefined$1?defaultValue:result;}/**
|
|
15269
15279
|
* Checks if `path` is a direct property of `object`.
|
|
15270
15280
|
*
|
|
15271
15281
|
* @static
|
|
@@ -15631,7 +15641,7 @@ return isNumber(value)&&value!=+value;}/**
|
|
|
15631
15641
|
* _.result(object, 'a[0].b.c3', _.constant('default'));
|
|
15632
15642
|
* // => 'default'
|
|
15633
15643
|
*/function result(object,path,defaultValue){path=castPath(path,object);var index=-1,length=path.length;// Ensure the loop is entered when path is empty.
|
|
15634
|
-
if(!length){length=1;object=undefined;}while(++index<length){var value=object==null?undefined:object[toKey(path[index])];if(value===undefined){index=length;value=defaultValue;}object=isFunction(value)?value.call(object):value;}return object;}/**
|
|
15644
|
+
if(!length){length=1;object=undefined$1;}while(++index<length){var value=object==null?undefined$1:object[toKey(path[index])];if(value===undefined$1){index=length;value=defaultValue;}object=isFunction(value)?value.call(object):value;}return object;}/**
|
|
15635
15645
|
* Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
|
|
15636
15646
|
* it's created. Arrays are created for missing index properties while objects
|
|
15637
15647
|
* are created for all other missing properties. Use `_.setWith` to customize
|
|
@@ -15681,7 +15691,7 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
15681
15691
|
*
|
|
15682
15692
|
* _.setWith(object, '[0][1]', 'a', Object);
|
|
15683
15693
|
* // => { '0': { '1': 'a' } }
|
|
15684
|
-
*/function setWith(object,path,value,customizer){customizer=typeof customizer=='function'?customizer:undefined;return object==null?object:baseSet(object,path,value,customizer);}/**
|
|
15694
|
+
*/function setWith(object,path,value,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;return object==null?object:baseSet(object,path,value,customizer);}/**
|
|
15685
15695
|
* Creates an array of own enumerable string keyed-value pairs for `object`
|
|
15686
15696
|
* which can be consumed by `_.fromPairs`. If `object` is a map or set, its
|
|
15687
15697
|
* entries are returned.
|
|
@@ -15831,7 +15841,7 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
15831
15841
|
*
|
|
15832
15842
|
* _.updateWith(object, '[0][1]', _.constant('a'), Object);
|
|
15833
15843
|
* // => { '0': { '1': 'a' } }
|
|
15834
|
-
*/function updateWith(object,path,updater,customizer){customizer=typeof customizer=='function'?customizer:undefined;return object==null?object:baseUpdate(object,path,castFunction(updater),customizer);}/**
|
|
15844
|
+
*/function updateWith(object,path,updater,customizer){customizer=typeof customizer=='function'?customizer:undefined$1;return object==null?object:baseUpdate(object,path,castFunction(updater),customizer);}/**
|
|
15835
15845
|
* Creates an array of the own enumerable string keyed property values of `object`.
|
|
15836
15846
|
*
|
|
15837
15847
|
* **Note:** Non-object values are coerced to objects.
|
|
@@ -15897,7 +15907,7 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
15897
15907
|
*
|
|
15898
15908
|
* _.clamp(10, -5, 5);
|
|
15899
15909
|
* // => 5
|
|
15900
|
-
*/function clamp(number,lower,upper){if(upper===undefined){upper=lower;lower=undefined;}if(upper!==undefined){upper=toNumber(upper);upper=upper===upper?upper:0;}if(lower!==undefined){lower=toNumber(lower);lower=lower===lower?lower:0;}return baseClamp(toNumber(number),lower,upper);}/**
|
|
15910
|
+
*/function clamp(number,lower,upper){if(upper===undefined$1){upper=lower;lower=undefined$1;}if(upper!==undefined$1){upper=toNumber(upper);upper=upper===upper?upper:0;}if(lower!==undefined$1){lower=toNumber(lower);lower=lower===lower?lower:0;}return baseClamp(toNumber(number),lower,upper);}/**
|
|
15901
15911
|
* Checks if `n` is between `start` and up to, but not including, `end`. If
|
|
15902
15912
|
* `end` is not specified, it's set to `start` with `start` then set to `0`.
|
|
15903
15913
|
* If `start` is greater than `end` the params are swapped to support
|
|
@@ -15934,7 +15944,7 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
15934
15944
|
*
|
|
15935
15945
|
* _.inRange(-3, -2, -6);
|
|
15936
15946
|
* // => true
|
|
15937
|
-
*/function inRange(number,start,end){start=toFinite(start);if(end===undefined){end=start;start=0;}else {end=toFinite(end);}number=toNumber(number);return baseInRange(number,start,end);}/**
|
|
15947
|
+
*/function inRange(number,start,end){start=toFinite(start);if(end===undefined$1){end=start;start=0;}else {end=toFinite(end);}number=toNumber(number);return baseInRange(number,start,end);}/**
|
|
15938
15948
|
* Produces a random number between the inclusive `lower` and `upper` bounds.
|
|
15939
15949
|
* If only one argument is provided a number between `0` and the given number
|
|
15940
15950
|
* is returned. If `floating` is `true`, or either `lower` or `upper` are
|
|
@@ -15943,6 +15953,8 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
15943
15953
|
* **Note:** JavaScript follows the IEEE-754 standard for resolving
|
|
15944
15954
|
* floating-point values which can produce unexpected results.
|
|
15945
15955
|
*
|
|
15956
|
+
* **Note:** If `lower` is greater than `upper`, the values are swapped.
|
|
15957
|
+
*
|
|
15946
15958
|
* @static
|
|
15947
15959
|
* @memberOf _
|
|
15948
15960
|
* @since 0.7.0
|
|
@@ -15956,15 +15968,22 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
15956
15968
|
* _.random(0, 5);
|
|
15957
15969
|
* // => an integer between 0 and 5
|
|
15958
15970
|
*
|
|
15971
|
+
* // when lower is greater than upper the values are swapped
|
|
15972
|
+
* _.random(5, 0);
|
|
15973
|
+
* // => an integer between 0 and 5
|
|
15974
|
+
*
|
|
15959
15975
|
* _.random(5);
|
|
15960
15976
|
* // => also an integer between 0 and 5
|
|
15961
15977
|
*
|
|
15978
|
+
* _.random(-5);
|
|
15979
|
+
* // => an integer between -5 and 0
|
|
15980
|
+
*
|
|
15962
15981
|
* _.random(5, true);
|
|
15963
15982
|
* // => a floating-point number between 0 and 5
|
|
15964
15983
|
*
|
|
15965
15984
|
* _.random(1.2, 5.2);
|
|
15966
15985
|
* // => a floating-point number between 1.2 and 5.2
|
|
15967
|
-
*/function random(lower,upper,floating){if(floating&&typeof floating!='boolean'&&isIterateeCall(lower,upper,floating)){upper=floating=undefined;}if(floating===undefined){if(typeof upper=='boolean'){floating=upper;upper=undefined;}else if(typeof lower=='boolean'){floating=lower;lower=undefined;}}if(lower===undefined&&upper===undefined){lower=0;upper=1;}else {lower=toFinite(lower);if(upper===undefined){upper=lower;lower=0;}else {upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat('1e-'+((rand+'').length-1))),upper);}return baseRandom(lower,upper);}/*------------------------------------------------------------------------*//**
|
|
15986
|
+
*/function random(lower,upper,floating){if(floating&&typeof floating!='boolean'&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=='boolean'){floating=upper;upper=undefined$1;}else if(typeof lower=='boolean'){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else {lower=toFinite(lower);if(upper===undefined$1){upper=lower;lower=0;}else {upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat('1e-'+((rand+'').length-1))),upper);}return baseRandom(lower,upper);}/*------------------------------------------------------------------------*//**
|
|
15968
15987
|
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
|
15969
15988
|
*
|
|
15970
15989
|
* @static
|
|
@@ -16036,7 +16055,7 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
16036
16055
|
*
|
|
16037
16056
|
* _.endsWith('abc', 'b', 2);
|
|
16038
16057
|
* // => true
|
|
16039
|
-
*/function endsWith(string,target,position){string=toString(string);target=baseToString(target);var length=string.length;position=position===undefined?length:baseClamp(toInteger(position),0,length);var end=position;position-=target.length;return position>=0&&string.slice(position,end)==target;}/**
|
|
16058
|
+
*/function endsWith(string,target,position){string=toString(string);target=baseToString(target);var length=string.length;position=position===undefined$1?length:baseClamp(toInteger(position),0,length);var end=position;position-=target.length;return position>=0&&string.slice(position,end)==target;}/**
|
|
16040
16059
|
* Converts the characters "&", "<", ">", '"', and "'" in `string` to their
|
|
16041
16060
|
* corresponding HTML entities.
|
|
16042
16061
|
*
|
|
@@ -16242,7 +16261,7 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
16242
16261
|
*
|
|
16243
16262
|
* _.repeat('abc', 0);
|
|
16244
16263
|
* // => ''
|
|
16245
|
-
*/function repeat(string,n,guard){if(guard?isIterateeCall(string,n,guard):n===undefined){n=1;}else {n=toInteger(n);}return baseRepeat(toString(string),n);}/**
|
|
16264
|
+
*/function repeat(string,n,guard){if(guard?isIterateeCall(string,n,guard):n===undefined$1){n=1;}else {n=toInteger(n);}return baseRepeat(toString(string),n);}/**
|
|
16246
16265
|
* Replaces matches for `pattern` in `string` with `replacement`.
|
|
16247
16266
|
*
|
|
16248
16267
|
* **Note:** This method is based on
|
|
@@ -16298,7 +16317,7 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
16298
16317
|
*
|
|
16299
16318
|
* _.split('a-b-c', '-', 2);
|
|
16300
16319
|
* // => ['a', 'b']
|
|
16301
|
-
*/function split(string,separator,limit){if(limit&&typeof limit!='number'&&isIterateeCall(string,separator,limit)){separator=limit=undefined;}limit=limit===undefined?MAX_ARRAY_LENGTH:limit>>>0;if(!limit){return [];}string=toString(string);if(string&&(typeof separator=='string'||separator!=null&&!isRegExp(separator))){separator=baseToString(separator);if(!separator&&hasUnicode(string)){return castSlice(stringToArray(string),0,limit);}}return string.split(separator,limit);}/**
|
|
16320
|
+
*/function split(string,separator,limit){if(limit&&typeof limit!='number'&&isIterateeCall(string,separator,limit)){separator=limit=undefined$1;}limit=limit===undefined$1?MAX_ARRAY_LENGTH:limit>>>0;if(!limit){return [];}string=toString(string);if(string&&(typeof separator=='string'||separator!=null&&!isRegExp(separator))){separator=baseToString(separator);if(!separator&&hasUnicode(string)){return castSlice(stringToArray(string),0,limit);}}return string.split(separator,limit);}/**
|
|
16302
16321
|
* Converts `string` to
|
|
16303
16322
|
* [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
|
|
16304
16323
|
*
|
|
@@ -16347,6 +16366,10 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
16347
16366
|
* properties may be accessed as free variables in the template. If a setting
|
|
16348
16367
|
* object is given, it takes precedence over `_.templateSettings` values.
|
|
16349
16368
|
*
|
|
16369
|
+
* **Security:** `_.template` is insecure and should not be used. It will be
|
|
16370
|
+
* removed in Lodash v5. Avoid untrusted input. See
|
|
16371
|
+
* [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md).
|
|
16372
|
+
*
|
|
16350
16373
|
* **Note:** In the development build `_.template` utilizes
|
|
16351
16374
|
* [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
|
|
16352
16375
|
* for easier debugging.
|
|
@@ -16446,7 +16469,7 @@ if(!length){length=1;object=undefined;}while(++index<length){var value=object==n
|
|
|
16446
16469
|
*/function template(string,options,guard){// Based on John Resig's `tmpl` implementation
|
|
16447
16470
|
// (http://ejohn.org/blog/javascript-micro-templating/)
|
|
16448
16471
|
// and Laura Doktorova's doT.js (https://github.com/olado/doT).
|
|
16449
|
-
var settings=lodash.templateSettings;if(guard&&isIterateeCall(string,options,guard)){options=undefined;}string=toString(string);options=
|
|
16472
|
+
var settings=lodash.templateSettings;if(guard&&isIterateeCall(string,options,guard)){options=undefined$1;}string=toString(string);options=assignWith({},options,settings,customDefaultsAssignIn);var imports=assignWith({},options.imports,settings.imports,customDefaultsAssignIn),importsKeys=keys(imports),importsValues=baseValues(imports,importsKeys);arrayEach(importsKeys,function(key){if(reForbiddenIdentifierChars.test(key)){throw new Error(INVALID_TEMPL_IMPORTS_ERROR_TEXT);}});var isEscaping,isEvaluating,index=0,interpolate=options.interpolate||reNoMatch,source="__p += '";// Compile the regexp to match each delimiter.
|
|
16450
16473
|
var reDelimiters=RegExp((options.escape||reNoMatch).source+'|'+interpolate.source+'|'+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+'|'+(options.evaluate||reNoMatch).source+'|$','g');// Use a sourceURL for easier debugging.
|
|
16451
16474
|
// The sourceURL gets injected into the source that's eval-ed, so be careful
|
|
16452
16475
|
// to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
|
|
@@ -16461,7 +16484,7 @@ var variable=hasOwnProperty.call(options,'variable')&&options.variable;if(!varia
|
|
|
16461
16484
|
// potential command injection attacks.
|
|
16462
16485
|
else if(reForbiddenIdentifierChars.test(variable)){throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);}// Cleanup code by stripping empty strings.
|
|
16463
16486
|
source=(isEvaluating?source.replace(reEmptyStringLeading,''):source).replace(reEmptyStringMiddle,'$1').replace(reEmptyStringTrailing,'$1;');// Frame code as the function body.
|
|
16464
|
-
source='function('+(variable||'obj')+') {\n'+(variable?'':'obj || (obj = {});\n')+"var __t, __p = ''"+(isEscaping?', __e = _.escape':'')+(isEvaluating?', __j = Array.prototype.join;\n'+"function print() { __p += __j.call(arguments, '') }\n":';\n')+source+'return __p\n}';var result=attempt(function(){return Function(importsKeys,sourceURL+'return '+source).apply(undefined,importsValues);});// Provide the compiled function's source by its `toString` method or
|
|
16487
|
+
source='function('+(variable||'obj')+') {\n'+(variable?'':'obj || (obj = {});\n')+"var __t, __p = ''"+(isEscaping?', __e = _.escape':'')+(isEvaluating?', __j = Array.prototype.join;\n'+"function print() { __p += __j.call(arguments, '') }\n":';\n')+source+'return __p\n}';var result=attempt(function(){return Function(importsKeys,sourceURL+'return '+source).apply(undefined$1,importsValues);});// Provide the compiled function's source by its `toString` method or
|
|
16465
16488
|
// the `source` property as a convenience for inlining compiled templates.
|
|
16466
16489
|
result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
16467
16490
|
* Converts `string`, as a whole, to lower case just like
|
|
@@ -16524,7 +16547,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
16524
16547
|
*
|
|
16525
16548
|
* _.map([' foo ', ' bar '], _.trim);
|
|
16526
16549
|
* // => ['foo', 'bar']
|
|
16527
|
-
*/function trim(string,chars,guard){string=toString(string);if(string&&(guard||chars===undefined)){return baseTrim(string);}if(!string||!(chars=baseToString(chars))){return string;}var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars),start=charsStartIndex(strSymbols,chrSymbols),end=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start,end).join('');}/**
|
|
16550
|
+
*/function trim(string,chars,guard){string=toString(string);if(string&&(guard||chars===undefined$1)){return baseTrim(string);}if(!string||!(chars=baseToString(chars))){return string;}var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars),start=charsStartIndex(strSymbols,chrSymbols),end=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start,end).join('');}/**
|
|
16528
16551
|
* Removes trailing whitespace or specified characters from `string`.
|
|
16529
16552
|
*
|
|
16530
16553
|
* @static
|
|
@@ -16542,7 +16565,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
16542
16565
|
*
|
|
16543
16566
|
* _.trimEnd('-_-abc-_-', '_-');
|
|
16544
16567
|
* // => '-_-abc'
|
|
16545
|
-
*/function trimEnd(string,chars,guard){string=toString(string);if(string&&(guard||chars===undefined)){return string.slice(0,trimmedEndIndex(string)+1);}if(!string||!(chars=baseToString(chars))){return string;}var strSymbols=stringToArray(string),end=charsEndIndex(strSymbols,stringToArray(chars))+1;return castSlice(strSymbols,0,end).join('');}/**
|
|
16568
|
+
*/function trimEnd(string,chars,guard){string=toString(string);if(string&&(guard||chars===undefined$1)){return string.slice(0,trimmedEndIndex(string)+1);}if(!string||!(chars=baseToString(chars))){return string;}var strSymbols=stringToArray(string),end=charsEndIndex(strSymbols,stringToArray(chars))+1;return castSlice(strSymbols,0,end).join('');}/**
|
|
16546
16569
|
* Removes leading whitespace or specified characters from `string`.
|
|
16547
16570
|
*
|
|
16548
16571
|
* @static
|
|
@@ -16560,7 +16583,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
16560
16583
|
*
|
|
16561
16584
|
* _.trimStart('-_-abc-_-', '_-');
|
|
16562
16585
|
* // => 'abc-_-'
|
|
16563
|
-
*/function trimStart(string,chars,guard){string=toString(string);if(string&&(guard||chars===undefined)){return string.replace(reTrimStart,'');}if(!string||!(chars=baseToString(chars))){return string;}var strSymbols=stringToArray(string),start=charsStartIndex(strSymbols,stringToArray(chars));return castSlice(strSymbols,start).join('');}/**
|
|
16586
|
+
*/function trimStart(string,chars,guard){string=toString(string);if(string&&(guard||chars===undefined$1)){return string.replace(reTrimStart,'');}if(!string||!(chars=baseToString(chars))){return string;}var strSymbols=stringToArray(string),start=charsStartIndex(strSymbols,stringToArray(chars));return castSlice(strSymbols,start).join('');}/**
|
|
16564
16587
|
* Truncates `string` if it's longer than the given maximum string length.
|
|
16565
16588
|
* The last characters of the truncated string are replaced with the omission
|
|
16566
16589
|
* string which defaults to "...".
|
|
@@ -16596,7 +16619,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
16596
16619
|
* 'omission': ' [...]'
|
|
16597
16620
|
* });
|
|
16598
16621
|
* // => 'hi-diddly-ho there, neig [...]'
|
|
16599
|
-
*/function truncate(string,options){var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject(options)){var separator='separator'in options?options.separator:separator;length='length'in options?toInteger(options.length):length;omission='omission'in options?baseToString(options.omission):omission;}string=toString(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length;}if(length>=strLength){return string;}var end=length-stringSize(omission);if(end<1){return omission;}var result=strSymbols?castSlice(strSymbols,0,end).join(''):string.slice(0,end);if(separator===undefined){return result+omission;}if(strSymbols){end+=result.length-end;}if(isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result;if(!separator.global){separator=RegExp(separator.source,toString(reFlags.exec(separator))+'g');}separator.lastIndex=0;while(match=separator.exec(substring)){var newEnd=match.index;}result=result.slice(0,newEnd===undefined?end:newEnd);}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result.lastIndexOf(separator);if(index>-1){result=result.slice(0,index);}}return result+omission;}/**
|
|
16622
|
+
*/function truncate(string,options){var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject(options)){var separator='separator'in options?options.separator:separator;length='length'in options?toInteger(options.length):length;omission='omission'in options?baseToString(options.omission):omission;}string=toString(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length;}if(length>=strLength){return string;}var end=length-stringSize(omission);if(end<1){return omission;}var result=strSymbols?castSlice(strSymbols,0,end).join(''):string.slice(0,end);if(separator===undefined$1){return result+omission;}if(strSymbols){end+=result.length-end;}if(isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result;if(!separator.global){separator=RegExp(separator.source,toString(reFlags.exec(separator))+'g');}separator.lastIndex=0;while(match=separator.exec(substring)){var newEnd=match.index;}result=result.slice(0,newEnd===undefined$1?end:newEnd);}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result.lastIndexOf(separator);if(index>-1){result=result.slice(0,index);}}return result+omission;}/**
|
|
16600
16623
|
* The inverse of `_.escape`; this method converts the HTML entities
|
|
16601
16624
|
* `&`, `<`, `>`, `"`, and `'` in `string` to
|
|
16602
16625
|
* their corresponding characters.
|
|
@@ -16667,7 +16690,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
16667
16690
|
*
|
|
16668
16691
|
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
|
16669
16692
|
* // => ['fred', 'barney', '&', 'pebbles']
|
|
16670
|
-
*/function words(string,pattern,guard){string=toString(string);pattern=guard?undefined:pattern;if(pattern===undefined){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}/*------------------------------------------------------------------------*//**
|
|
16693
|
+
*/function words(string,pattern,guard){string=toString(string);pattern=guard?undefined$1:pattern;if(pattern===undefined$1){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}/*------------------------------------------------------------------------*//**
|
|
16671
16694
|
* Attempts to invoke `func`, returning either the result or the caught error
|
|
16672
16695
|
* object. Any additional arguments are provided to `func` when it's invoked.
|
|
16673
16696
|
*
|
|
@@ -16688,7 +16711,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
16688
16711
|
* if (_.isError(elements)) {
|
|
16689
16712
|
* elements = [];
|
|
16690
16713
|
* }
|
|
16691
|
-
*/var attempt=baseRest(function(func,args){try{return apply(func,undefined,args);}catch(e){return isError(e)?e:new Error(e);}});/**
|
|
16714
|
+
*/var attempt=baseRest(function(func,args){try{return apply(func,undefined$1,args);}catch(e){return isError(e)?e:new Error(e);}});/**
|
|
16692
16715
|
* Binds methods of an object to the object itself, overwriting the existing
|
|
16693
16716
|
* method.
|
|
16694
16717
|
*
|
|
@@ -17202,7 +17225,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
17202
17225
|
*
|
|
17203
17226
|
* _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
|
|
17204
17227
|
* // => [2, 0]
|
|
17205
|
-
*/function propertyOf(object){return function(path){return object==null?undefined:baseGet(object,path);};}/**
|
|
17228
|
+
*/function propertyOf(object){return function(path){return object==null?undefined$1:baseGet(object,path);};}/**
|
|
17206
17229
|
* Creates an array of numbers (positive and/or negative) progressing from
|
|
17207
17230
|
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
|
|
17208
17231
|
* `start` is specified without an `end` or `step`. If `end` is not specified,
|
|
@@ -17482,7 +17505,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
17482
17505
|
*
|
|
17483
17506
|
* _.max([]);
|
|
17484
17507
|
* // => undefined
|
|
17485
|
-
*/function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined;}/**
|
|
17508
|
+
*/function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined$1;}/**
|
|
17486
17509
|
* This method is like `_.max` except that it accepts `iteratee` which is
|
|
17487
17510
|
* invoked for each element in `array` to generate the criterion by which
|
|
17488
17511
|
* the value is ranked. The iteratee is invoked with one argument: (value).
|
|
@@ -17504,7 +17527,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
17504
17527
|
* // The `_.property` iteratee shorthand.
|
|
17505
17528
|
* _.maxBy(objects, 'n');
|
|
17506
17529
|
* // => { 'n': 2 }
|
|
17507
|
-
*/function maxBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseGt):undefined;}/**
|
|
17530
|
+
*/function maxBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseGt):undefined$1;}/**
|
|
17508
17531
|
* Computes the mean of the values in `array`.
|
|
17509
17532
|
*
|
|
17510
17533
|
* @static
|
|
@@ -17556,7 +17579,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
17556
17579
|
*
|
|
17557
17580
|
* _.min([]);
|
|
17558
17581
|
* // => undefined
|
|
17559
|
-
*/function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined;}/**
|
|
17582
|
+
*/function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined$1;}/**
|
|
17560
17583
|
* This method is like `_.min` except that it accepts `iteratee` which is
|
|
17561
17584
|
* invoked for each element in `array` to generate the criterion by which
|
|
17562
17585
|
* the value is ranked. The iteratee is invoked with one argument: (value).
|
|
@@ -17578,7 +17601,7 @@ result.source=source;if(isError(result)){throw result;}return result;}/**
|
|
|
17578
17601
|
* // The `_.property` iteratee shorthand.
|
|
17579
17602
|
* _.minBy(objects, 'n');
|
|
17580
17603
|
* // => { 'n': 1 }
|
|
17581
|
-
*/function minBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseLt):undefined;}/**
|
|
17604
|
+
*/function minBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseLt):undefined$1;}/**
|
|
17582
17605
|
* Multiply two numbers.
|
|
17583
17606
|
*
|
|
17584
17607
|
* @static
|
|
@@ -17674,14 +17697,14 @@ lodash.each=forEach;lodash.eachRight=forEachRight;lodash.first=head;mixin(lodash
|
|
|
17674
17697
|
* @type {string}
|
|
17675
17698
|
*/lodash.VERSION=VERSION;// Assign default placeholders.
|
|
17676
17699
|
arrayEach(['bind','bindKey','curry','curryRight','partial','partialRight'],function(methodName){lodash[methodName].placeholder=lodash;});// Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
|
|
17677
|
-
arrayEach(['drop','take'],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined?1:nativeMax(toInteger(n),0);var result=this.__filtered__&&!index?new LazyWrapper(this):this.clone();if(result.__filtered__){result.__takeCount__=nativeMin(n,result.__takeCount__);}else {result.__views__.push({'size':nativeMin(n,MAX_ARRAY_LENGTH),'type':methodName+(result.__dir__<0?'Right':'')});}return result;};LazyWrapper.prototype[methodName+'Right']=function(n){return this.reverse()[methodName](n).reverse();};});// Add `LazyWrapper` methods that accept an `iteratee` value.
|
|
17700
|
+
arrayEach(['drop','take'],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined$1?1:nativeMax(toInteger(n),0);var result=this.__filtered__&&!index?new LazyWrapper(this):this.clone();if(result.__filtered__){result.__takeCount__=nativeMin(n,result.__takeCount__);}else {result.__views__.push({'size':nativeMin(n,MAX_ARRAY_LENGTH),'type':methodName+(result.__dir__<0?'Right':'')});}return result;};LazyWrapper.prototype[methodName+'Right']=function(n){return this.reverse()[methodName](n).reverse();};});// Add `LazyWrapper` methods that accept an `iteratee` value.
|
|
17678
17701
|
arrayEach(['filter','map','takeWhile'],function(methodName,index){var type=index+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee){var result=this.clone();result.__iteratees__.push({'iteratee':getIteratee(iteratee,3),'type':type});result.__filtered__=result.__filtered__||isFilter;return result;};});// Add `LazyWrapper` methods for `_.head` and `_.last`.
|
|
17679
17702
|
arrayEach(['head','last'],function(methodName,index){var takeName='take'+(index?'Right':'');LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0];};});// Add `LazyWrapper` methods for `_.initial` and `_.tail`.
|
|
17680
|
-
arrayEach(['initial','tail'],function(methodName,index){var dropName='drop'+(index?'':'Right');LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1);};});LazyWrapper.prototype.compact=function(){return this.filter(identity);};LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head();};LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate);};LazyWrapper.prototype.invokeMap=baseRest(function(path,args){if(typeof path=='function'){return new LazyWrapper(this);}return this.map(function(value){return baseInvoke(value,path,args);});});LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)));};LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result=this;if(result.__filtered__&&(start>0||end<0)){return new LazyWrapper(result);}if(start<0){result=result.takeRight(-start);}else if(start){result=result.drop(start);}if(end!==undefined){end=toInteger(end);result=end<0?result.dropRight(-end):result.take(end-start);}return result;};LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse();};LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH);};// Add `LazyWrapper` methods to `lodash.prototype`.
|
|
17703
|
+
arrayEach(['initial','tail'],function(methodName,index){var dropName='drop'+(index?'':'Right');LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1);};});LazyWrapper.prototype.compact=function(){return this.filter(identity);};LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head();};LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate);};LazyWrapper.prototype.invokeMap=baseRest(function(path,args){if(typeof path=='function'){return new LazyWrapper(this);}return this.map(function(value){return baseInvoke(value,path,args);});});LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)));};LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result=this;if(result.__filtered__&&(start>0||end<0)){return new LazyWrapper(result);}if(start<0){result=result.takeRight(-start);}else if(start){result=result.drop(start);}if(end!==undefined$1){end=toInteger(end);result=end<0?result.dropRight(-end):result.take(end-start);}return result;};LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse();};LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH);};// Add `LazyWrapper` methods to `lodash.prototype`.
|
|
17681
17704
|
baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?'take'+(methodName=='last'?'Right':''):methodName],retUnwrapped=isTaker||/^find/.test(methodName);if(!lodashFunc){return;}lodash.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee=args[0],useLazy=isLazy||isArray(value);var interceptor=function(value){var result=lodashFunc.apply(lodash,arrayPush([value],args));return isTaker&&chainAll?result[0]:result;};if(useLazy&&checkIteratee&&typeof iteratee=='function'&&iteratee.length!=1){// Avoid lazy use if the iteratee has a "length" value other than `1`.
|
|
17682
|
-
isLazy=useLazy=false;}var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result=func.apply(value,args);result.__actions__.push({'func':thru,'args':[interceptor],'thisArg':undefined});return new LodashWrapper(result,chainAll);}if(isUnwrapped&&onlyLazy){return func.apply(this,args);}result=this.thru(interceptor);return isUnwrapped?isTaker?result.value()[0]:result.value():result;};});// Add `Array` methods to `lodash.prototype`.
|
|
17705
|
+
isLazy=useLazy=false;}var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result=func.apply(value,args);result.__actions__.push({'func':thru,'args':[interceptor],'thisArg':undefined$1});return new LodashWrapper(result,chainAll);}if(isUnwrapped&&onlyLazy){return func.apply(this,args);}result=this.thru(interceptor);return isUnwrapped?isTaker?result.value()[0]:result.value():result;};});// Add `Array` methods to `lodash.prototype`.
|
|
17683
17706
|
arrayEach(['pop','push','shift','sort','splice','unshift'],function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?'tap':'thru',retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray(value)?value:[],args);}return this[chainName](function(value){return func.apply(isArray(value)?value:[],args);});};});// Map minified method names to their real names.
|
|
17684
|
-
baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+'';if(!hasOwnProperty.call(realNames,key)){realNames[key]=[];}realNames[key].push({'name':methodName,'func':lodashFunc});}});realNames[createHybrid(undefined,WRAP_BIND_KEY_FLAG).name]=[{'name':'wrapper','func':undefined}];// Add methods to `LazyWrapper`.
|
|
17707
|
+
baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+'';if(!hasOwnProperty.call(realNames,key)){realNames[key]=[];}realNames[key].push({'name':methodName,'func':lodashFunc});}});realNames[createHybrid(undefined$1,WRAP_BIND_KEY_FLAG).name]=[{'name':'wrapper','func':undefined$1}];// Add methods to `LazyWrapper`.
|
|
17685
17708
|
LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;// Add chain sequence methods to the `lodash` wrapper.
|
|
17686
17709
|
lodash.prototype.at=wrapperAt;lodash.prototype.chain=wrapperChain;lodash.prototype.commit=wrapperCommit;lodash.prototype.next=wrapperNext;lodash.prototype.plant=wrapperPlant;lodash.prototype.reverse=wrapperReverse;lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue;// Add lazy aliases.
|
|
17687
17710
|
lodash.prototype.first=lodash.prototype.head;if(symIterator){lodash.prototype[symIterator]=wrapperToIterator;}return lodash;};/*--------------------------------------------------------------------------*/// Export lodash.
|